mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 19:32:43 +00:00
[samples] regenerate (#6533)
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
*.class
|
|
||||||
|
|
||||||
# Mobile Tools for Java (J2ME)
|
|
||||||
.mtj.tmp/
|
|
||||||
|
|
||||||
# Package Files #
|
|
||||||
*.jar
|
|
||||||
*.war
|
|
||||||
*.ear
|
|
||||||
|
|
||||||
# exclude jar for gradle wrapper
|
|
||||||
!gradle/wrapper/*.jar
|
|
||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
|
||||||
hs_err_pid*
|
|
||||||
|
|
||||||
# build files
|
|
||||||
**/target
|
|
||||||
target
|
|
||||||
.gradle
|
|
||||||
build
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# OpenAPI Generator Ignore
|
|
||||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
||||||
|
|
||||||
# Use this file to prevent files from being overwritten by the generator.
|
|
||||||
# The patterns follow closely to .gitignore or .dockerignore.
|
|
||||||
|
|
||||||
# As an example, the C# client generator defines ApiClient.cs.
|
|
||||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
||||||
#ApiClient.cs
|
|
||||||
|
|
||||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
||||||
#foo/*/qux
|
|
||||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
||||||
#foo/**/qux
|
|
||||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can also negate patterns with an exclamation (!).
|
|
||||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
||||||
#docs/*.md
|
|
||||||
# Then explicitly reverse the ignore rule for a single file:
|
|
||||||
#!docs/README.md
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
#
|
|
||||||
# Generated by OpenAPI Generator: https://openapi-generator.tech
|
|
||||||
#
|
|
||||||
# Ref: https://docs.travis-ci.com/user/languages/java/
|
|
||||||
#
|
|
||||||
language: java
|
|
||||||
jdk:
|
|
||||||
- openjdk12
|
|
||||||
- openjdk11
|
|
||||||
- openjdk10
|
|
||||||
- openjdk9
|
|
||||||
- openjdk8
|
|
||||||
before_install:
|
|
||||||
# ensure gradlew has proper permission
|
|
||||||
- chmod a+x ./gradlew
|
|
||||||
script:
|
|
||||||
# test using maven
|
|
||||||
#- mvn test
|
|
||||||
# test using gradle
|
|
||||||
- gradle test
|
|
||||||
# test using sbt
|
|
||||||
# - sbt test
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
apply plugin: 'idea'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
|
|
||||||
group = 'org.openapitools'
|
|
||||||
version = '1.0.0'
|
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
maven { url "https://repo1.maven.org/maven2" }
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(hasProperty('target') && target == 'android') {
|
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
|
||||||
apply plugin: 'com.github.dcendents.android-maven'
|
|
||||||
|
|
||||||
android {
|
|
||||||
compileSdkVersion 25
|
|
||||||
buildToolsVersion '25.0.2'
|
|
||||||
defaultConfig {
|
|
||||||
minSdkVersion 14
|
|
||||||
targetSdkVersion 25
|
|
||||||
}
|
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
// Rename the aar correctly
|
|
||||||
libraryVariants.all { variant ->
|
|
||||||
variant.outputs.each { output ->
|
|
||||||
def outputFile = output.outputFile
|
|
||||||
if (outputFile != null && outputFile.name.endsWith('.aar')) {
|
|
||||||
def fileName = "${project.name}-${variant.baseName}-${version}.aar"
|
|
||||||
output.outputFile = new File(outputFile.parent, fileName)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
provided 'javax.annotation:jsr250-api:1.0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
afterEvaluate {
|
|
||||||
android.libraryVariants.all { variant ->
|
|
||||||
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
|
|
||||||
task.description = "Create jar artifact for ${variant.name}"
|
|
||||||
task.dependsOn variant.javaCompile
|
|
||||||
task.from variant.javaCompile.destinationDir
|
|
||||||
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
|
|
||||||
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
|
|
||||||
artifacts.add('archives', task);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task sourcesJar(type: Jar) {
|
|
||||||
from android.sourceSets.main.java.srcDirs
|
|
||||||
classifier = 'sources'
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
archives sourcesJar
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
|
|
||||||
install {
|
|
||||||
repositories.mavenInstaller {
|
|
||||||
pom.artifactId = 'petstore-openapi3-jersey2-java8'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task execute(type:JavaExec) {
|
|
||||||
main = System.getProperty('mainClass')
|
|
||||||
classpath = sourceSets.main.runtimeClasspath
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ext {
|
|
||||||
swagger_annotations_version = "1.5.22"
|
|
||||||
jackson_version = "2.10.3"
|
|
||||||
jackson_databind_version = "2.10.4"
|
|
||||||
jackson_databind_nullable_version = "0.2.1"
|
|
||||||
jersey_version = "2.27"
|
|
||||||
junit_version = "4.13"
|
|
||||||
scribejava_apis_version = "6.9.0"
|
|
||||||
tomitribe_http_signatures_version = "1.3"
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
|
|
||||||
compile "com.google.code.findbugs:jsr305:3.0.2"
|
|
||||||
compile "org.glassfish.jersey.core:jersey-client:$jersey_version"
|
|
||||||
compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
|
|
||||||
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
|
|
||||||
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
|
|
||||||
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
|
|
||||||
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
|
|
||||||
compile "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
|
|
||||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
|
||||||
compile "com.github.scribejava:scribejava-apis:$scribejava_apis_version"
|
|
||||||
compile "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
|
||||||
testCompile "junit:junit:$junit_version"
|
|
||||||
}
|
|
||||||
|
|
||||||
javadoc {
|
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
lazy val root = (project in file(".")).
|
|
||||||
settings(
|
|
||||||
organization := "org.openapitools",
|
|
||||||
name := "petstore-openapi3-jersey2-java8",
|
|
||||||
version := "1.0.0",
|
|
||||||
scalaVersion := "2.11.4",
|
|
||||||
scalacOptions ++= Seq("-feature"),
|
|
||||||
javacOptions in compile ++= Seq("-Xlint:deprecation"),
|
|
||||||
publishArtifact in (Compile, packageDoc) := false,
|
|
||||||
resolvers += Resolver.mavenLocal,
|
|
||||||
libraryDependencies ++= Seq(
|
|
||||||
"io.swagger" % "swagger-annotations" % "1.5.22",
|
|
||||||
"org.glassfish.jersey.core" % "jersey-client" % "2.25.1",
|
|
||||||
"org.glassfish.jersey.media" % "jersey-media-multipart" % "2.25.1",
|
|
||||||
"org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.25.1",
|
|
||||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.10.4" % "compile",
|
|
||||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.4" % "compile",
|
|
||||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.10.4" % "compile",
|
|
||||||
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.10" % "compile",
|
|
||||||
"com.github.scribejava" % "scribejava-apis" % "6.9.0" % "compile",
|
|
||||||
"org.tomitribe" % "tomitribe-http-signatures" % "1.3" % "compile",
|
|
||||||
"junit" % "junit" % "4.13" % "test",
|
|
||||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
||||||
#
|
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
|
||||||
|
|
||||||
git_user_id=$1
|
|
||||||
git_repo_id=$2
|
|
||||||
release_note=$3
|
|
||||||
git_host=$4
|
|
||||||
|
|
||||||
if [ "$git_host" = "" ]; then
|
|
||||||
git_host="github.com"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
|
||||||
git_user_id="GIT_USER_ID"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
|
||||||
git_repo_id="GIT_REPO_ID"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$release_note" = "" ]; then
|
|
||||||
release_note="Minor update"
|
|
||||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Initialize the local directory as a Git repository
|
|
||||||
git init
|
|
||||||
|
|
||||||
# Adds the files in the local repository and stages them for commit.
|
|
||||||
git add .
|
|
||||||
|
|
||||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
||||||
git commit -m "$release_note"
|
|
||||||
|
|
||||||
# Sets the new remote
|
|
||||||
git_remote=`git remote`
|
|
||||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
||||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
||||||
else
|
|
||||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
git pull origin master
|
|
||||||
|
|
||||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
||||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
||||||
git push origin master 2>&1 | grep -v 'To https'
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Uncomment to build for Android
|
|
||||||
#target = android
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
#
|
|
||||||
# Copyright 2015 the original author or authors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
##
|
|
||||||
## Gradle start up script for UN*X
|
|
||||||
##
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
# Attempt to set APP_HOME
|
|
||||||
# Resolve links: $0 may be a link
|
|
||||||
PRG="$0"
|
|
||||||
# Need this for relative symlinks.
|
|
||||||
while [ -h "$PRG" ] ; do
|
|
||||||
ls=`ls -ld "$PRG"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
PRG="$link"
|
|
||||||
else
|
|
||||||
PRG=`dirname "$PRG"`"/$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
SAVED="`pwd`"
|
|
||||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
||||||
APP_HOME="`pwd -P`"
|
|
||||||
cd "$SAVED" >/dev/null
|
|
||||||
|
|
||||||
APP_NAME="Gradle"
|
|
||||||
APP_BASE_NAME=`basename "$0"`
|
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
||||||
MAX_FD="maximum"
|
|
||||||
|
|
||||||
warn () {
|
|
||||||
echo "$*"
|
|
||||||
}
|
|
||||||
|
|
||||||
die () {
|
|
||||||
echo
|
|
||||||
echo "$*"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# OS specific support (must be 'true' or 'false').
|
|
||||||
cygwin=false
|
|
||||||
msys=false
|
|
||||||
darwin=false
|
|
||||||
nonstop=false
|
|
||||||
case "`uname`" in
|
|
||||||
CYGWIN* )
|
|
||||||
cygwin=true
|
|
||||||
;;
|
|
||||||
Darwin* )
|
|
||||||
darwin=true
|
|
||||||
;;
|
|
||||||
MINGW* )
|
|
||||||
msys=true
|
|
||||||
;;
|
|
||||||
NONSTOP* )
|
|
||||||
nonstop=true
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
||||||
# IBM's JDK on AIX uses strange locations for the executables
|
|
||||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
||||||
else
|
|
||||||
JAVACMD="$JAVA_HOME/bin/java"
|
|
||||||
fi
|
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
|
||||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
location of your Java installation."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
JAVACMD="java"
|
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
location of your Java installation."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
|
||||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
|
||||||
MAX_FD_LIMIT=`ulimit -H -n`
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
|
||||||
MAX_FD="$MAX_FD_LIMIT"
|
|
||||||
fi
|
|
||||||
ulimit -n $MAX_FD
|
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Darwin, add options to specify how the application appears in the dock
|
|
||||||
if $darwin; then
|
|
||||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
||||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|
||||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
||||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
||||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
||||||
|
|
||||||
# We build the pattern for arguments to be converted via cygpath
|
|
||||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
||||||
SEP=""
|
|
||||||
for dir in $ROOTDIRSRAW ; do
|
|
||||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
||||||
SEP="|"
|
|
||||||
done
|
|
||||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
||||||
# Add a user-defined pattern to the cygpath arguments
|
|
||||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
||||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
||||||
fi
|
|
||||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
||||||
i=0
|
|
||||||
for arg in "$@" ; do
|
|
||||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
||||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
||||||
|
|
||||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
||||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
||||||
else
|
|
||||||
eval `echo args$i`="\"$arg\""
|
|
||||||
fi
|
|
||||||
i=`expr $i + 1`
|
|
||||||
done
|
|
||||||
case $i in
|
|
||||||
0) set -- ;;
|
|
||||||
1) set -- "$args0" ;;
|
|
||||||
2) set -- "$args0" "$args1" ;;
|
|
||||||
3) set -- "$args0" "$args1" "$args2" ;;
|
|
||||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
||||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
||||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
||||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
||||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
||||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Escape application args
|
|
||||||
save () {
|
|
||||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
|
||||||
echo " "
|
|
||||||
}
|
|
||||||
APP_ARGS=`save "$@"`
|
|
||||||
|
|
||||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
||||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
||||||
|
|
||||||
exec "$JAVACMD" "$@"
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
@rem
|
|
||||||
@rem Copyright 2015 the original author or authors.
|
|
||||||
@rem
|
|
||||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
@rem you may not use this file except in compliance with the License.
|
|
||||||
@rem You may obtain a copy of the License at
|
|
||||||
@rem
|
|
||||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
@rem
|
|
||||||
@rem Unless required by applicable law or agreed to in writing, software
|
|
||||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
@rem See the License for the specific language governing permissions and
|
|
||||||
@rem limitations under the License.
|
|
||||||
@rem
|
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
|
||||||
@rem Gradle startup script for Windows
|
|
||||||
@rem
|
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
|
||||||
set APP_HOME=%DIRNAME%
|
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
||||||
|
|
||||||
@rem Find java.exe
|
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
||||||
|
|
||||||
set JAVA_EXE=java.exe
|
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
|
||||||
if "%ERRORLEVEL%" == "0" goto init
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
echo location of your Java installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto init
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
||||||
echo.
|
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
echo location of your Java installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:init
|
|
||||||
@rem Get command-line arguments, handling Windows variants
|
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
||||||
|
|
||||||
:win9xME_args
|
|
||||||
@rem Slurp the command line arguments.
|
|
||||||
set CMD_LINE_ARGS=
|
|
||||||
set _SKIP=2
|
|
||||||
|
|
||||||
:win9xME_args_slurp
|
|
||||||
if "x%~1" == "x" goto execute
|
|
||||||
|
|
||||||
set CMD_LINE_ARGS=%*
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Setup the command line
|
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
|
||||||
|
|
||||||
:end
|
|
||||||
@rem End local scope for the variables with windows NT shell
|
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.openapitools</groupId>
|
|
||||||
<artifactId>petstore-openapi3-jersey2-java8</artifactId>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<name>petstore-openapi3-jersey2-java8</name>
|
|
||||||
<version>1.0.0</version>
|
|
||||||
<url>https://github.com/openapitools/openapi-generator</url>
|
|
||||||
<description>OpenAPI Java</description>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:git:git@github.com:openapitools/openapi-generator.git</connection>
|
|
||||||
<developerConnection>scm:git:git@github.com:openapitools/openapi-generator.git</developerConnection>
|
|
||||||
<url>https://github.com/openapitools/openapi-generator</url>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>Unlicense</name>
|
|
||||||
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>OpenAPI-Generator Contributors</name>
|
|
||||||
<email>team@openapitools.org</email>
|
|
||||||
<organization>OpenAPITools.org</organization>
|
|
||||||
<organizationUrl>http://openapitools.org</organizationUrl>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
|
||||||
<version>3.0.0-M1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>enforce-maven</id>
|
|
||||||
<goals>
|
|
||||||
<goal>enforce</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<rules>
|
|
||||||
<requireMavenVersion>
|
|
||||||
<version>2.2.0</version>
|
|
||||||
</requireMavenVersion>
|
|
||||||
</rules>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>3.0.0-M4</version>
|
|
||||||
<configuration>
|
|
||||||
<systemProperties>
|
|
||||||
<property>
|
|
||||||
<name>loggerPath</name>
|
|
||||||
<value>conf/log4j.properties</value>
|
|
||||||
</property>
|
|
||||||
</systemProperties>
|
|
||||||
<argLine>-Xms512m -Xmx1500m</argLine>
|
|
||||||
<parallel>methods</parallel>
|
|
||||||
<threadCount>10</threadCount>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>copy-dependencies</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- attach test jar -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>2.6</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
<goal>test-jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
|
||||||
<version>1.10</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>add_sources</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>add-source</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<sources>
|
|
||||||
<source>src/main/java</source>
|
|
||||||
</sources>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>add_test_sources</id>
|
|
||||||
<phase>generate-test-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>add-test-source</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<sources>
|
|
||||||
<source>src/test/java</source>
|
|
||||||
</sources>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.8.1</version>
|
|
||||||
<configuration>
|
|
||||||
<source>1.8</source>
|
|
||||||
<target>1.8</target>
|
|
||||||
<fork>true</fork>
|
|
||||||
<meminitial>128m</meminitial>
|
|
||||||
<maxmem>512m</maxmem>
|
|
||||||
<compilerArgs>
|
|
||||||
<arg>-Xlint:all</arg>
|
|
||||||
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
|
|
||||||
</compilerArgs>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>3.1.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-javadocs</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
<tags>
|
|
||||||
<tag>
|
|
||||||
<name>http.response.details</name>
|
|
||||||
<placement>a</placement>
|
|
||||||
<head>Http Response Details:</head>
|
|
||||||
</tag>
|
|
||||||
</tags>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
<version>2.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-sources</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar-no-fork</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<version>1.5</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>sign</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.swagger</groupId>
|
|
||||||
<artifactId>swagger-annotations</artifactId>
|
|
||||||
<version>${swagger-annotations-version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- @Nullable annotation -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.findbugs</groupId>
|
|
||||||
<artifactId>jsr305</artifactId>
|
|
||||||
<version>3.0.2</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- HTTP client: jersey-client -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.glassfish.jersey.core</groupId>
|
|
||||||
<artifactId>jersey-client</artifactId>
|
|
||||||
<version>${jersey-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.glassfish.jersey.inject</groupId>
|
|
||||||
<artifactId>jersey-hk2</artifactId>
|
|
||||||
<version>${jersey-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.glassfish.jersey.media</groupId>
|
|
||||||
<artifactId>jersey-media-multipart</artifactId>
|
|
||||||
<version>${jersey-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.glassfish.jersey.media</groupId>
|
|
||||||
<artifactId>jersey-media-json-jackson</artifactId>
|
|
||||||
<version>${jersey-version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- JSON processing: jackson -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-core</artifactId>
|
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-annotations</artifactId>
|
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
|
||||||
<artifactId>jackson-databind</artifactId>
|
|
||||||
<version>${jackson-databind-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.openapitools</groupId>
|
|
||||||
<artifactId>jackson-databind-nullable</artifactId>
|
|
||||||
<version>${jackson-databind-nullable-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.tomitribe</groupId>
|
|
||||||
<artifactId>tomitribe-http-signatures</artifactId>
|
|
||||||
<version>${http-signature-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.scribejava</groupId>
|
|
||||||
<artifactId>scribejava-apis</artifactId>
|
|
||||||
<version>${scribejava-apis-version}</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- test dependencies -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>${junit-version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<swagger-annotations-version>1.6.1</swagger-annotations-version>
|
|
||||||
<jersey-version>2.30.1</jersey-version>
|
|
||||||
<jackson-version>2.10.4</jackson-version>
|
|
||||||
<jackson-databind-version>2.10.4</jackson-databind-version>
|
|
||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
|
||||||
<junit-version>4.13</junit-version>
|
|
||||||
<http-signature-version>1.4</http-signature-version>
|
|
||||||
<scribejava-apis-version>6.9.0</scribejava-apis-version>
|
|
||||||
</properties>
|
|
||||||
</project>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
rootProject.name = "petstore-openapi3-jersey2-java8"
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<manifest package="org.openapitools.client" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<application />
|
|
||||||
</manifest>
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,94 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API Exception
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class ApiException extends Exception {
|
|
||||||
private int code = 0;
|
|
||||||
private Map<String, List<String>> responseHeaders = null;
|
|
||||||
private String responseBody = null;
|
|
||||||
|
|
||||||
public ApiException() {}
|
|
||||||
|
|
||||||
public ApiException(Throwable throwable) {
|
|
||||||
super(throwable);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
|
||||||
super(message, throwable);
|
|
||||||
this.code = code;
|
|
||||||
this.responseHeaders = responseHeaders;
|
|
||||||
this.responseBody = responseBody;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
|
||||||
this(message, (Throwable) null, code, responseHeaders, responseBody);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) {
|
|
||||||
this(message, throwable, code, responseHeaders, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
|
||||||
this((String) null, (Throwable) null, code, responseHeaders, responseBody);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(int code, String message) {
|
|
||||||
super(message);
|
|
||||||
this.code = code;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) {
|
|
||||||
this(code, message);
|
|
||||||
this.responseHeaders = responseHeaders;
|
|
||||||
this.responseBody = responseBody;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the HTTP status code.
|
|
||||||
*
|
|
||||||
* @return HTTP status code
|
|
||||||
*/
|
|
||||||
public int getCode() {
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the HTTP response headers.
|
|
||||||
*
|
|
||||||
* @return A map of list of string
|
|
||||||
*/
|
|
||||||
public Map<String, List<String>> getResponseHeaders() {
|
|
||||||
return responseHeaders;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the HTTP response body.
|
|
||||||
*
|
|
||||||
* @return Response body in the form of string
|
|
||||||
*/
|
|
||||||
public String getResponseBody() {
|
|
||||||
return responseBody;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API response returned by API call.
|
|
||||||
*
|
|
||||||
* @param <T> The type of data that is deserialized from response body
|
|
||||||
*/
|
|
||||||
public class ApiResponse<T> {
|
|
||||||
private final int statusCode;
|
|
||||||
private final Map<String, List<String>> headers;
|
|
||||||
private final T data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param statusCode The status code of HTTP response
|
|
||||||
* @param headers The headers of HTTP response
|
|
||||||
*/
|
|
||||||
public ApiResponse(int statusCode, Map<String, List<String>> headers) {
|
|
||||||
this(statusCode, headers, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param statusCode The status code of HTTP response
|
|
||||||
* @param headers The headers of HTTP response
|
|
||||||
* @param data The object deserialized from response bod
|
|
||||||
*/
|
|
||||||
public ApiResponse(int statusCode, Map<String, List<String>> headers, T data) {
|
|
||||||
this.statusCode = statusCode;
|
|
||||||
this.headers = headers;
|
|
||||||
this.data = data;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the status code
|
|
||||||
*
|
|
||||||
* @return status code
|
|
||||||
*/
|
|
||||||
public int getStatusCode() {
|
|
||||||
return statusCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the headers
|
|
||||||
*
|
|
||||||
* @return map of headers
|
|
||||||
*/
|
|
||||||
public Map<String, List<String>> getHeaders() {
|
|
||||||
return headers;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the data
|
|
||||||
*
|
|
||||||
* @return data
|
|
||||||
*/
|
|
||||||
public T getData() {
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
|
|
||||||
public class Configuration {
|
|
||||||
private static ApiClient defaultApiClient = new ApiClient();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the default API client, which would be used when creating API
|
|
||||||
* instances without providing an API client.
|
|
||||||
*
|
|
||||||
* @return Default API client
|
|
||||||
*/
|
|
||||||
public static ApiClient getDefaultApiClient() {
|
|
||||||
return defaultApiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the default API client, which would be used when creating API
|
|
||||||
* instances without providing an API client.
|
|
||||||
*
|
|
||||||
* @param apiClient API client
|
|
||||||
*/
|
|
||||||
public static void setDefaultApiClient(ApiClient apiClient) {
|
|
||||||
defaultApiClient = apiClient;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.*;
|
|
||||||
import com.fasterxml.jackson.databind.*;
|
|
||||||
import org.openapitools.jackson.nullable.JsonNullableModule;
|
|
||||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
|
||||||
|
|
||||||
import java.text.DateFormat;
|
|
||||||
|
|
||||||
import javax.ws.rs.ext.ContextResolver;
|
|
||||||
|
|
||||||
|
|
||||||
public class JSON implements ContextResolver<ObjectMapper> {
|
|
||||||
private ObjectMapper mapper;
|
|
||||||
|
|
||||||
public JSON() {
|
|
||||||
mapper = new ObjectMapper();
|
|
||||||
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
||||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true);
|
|
||||||
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true);
|
|
||||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
|
||||||
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
|
||||||
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
|
|
||||||
mapper.setDateFormat(new RFC3339DateFormat());
|
|
||||||
mapper.registerModule(new JavaTimeModule());
|
|
||||||
JsonNullableModule jnm = new JsonNullableModule();
|
|
||||||
mapper.registerModule(jnm);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the date format for JSON (de)serialization with Date properties.
|
|
||||||
* @param dateFormat Date format
|
|
||||||
*/
|
|
||||||
public void setDateFormat(DateFormat dateFormat) {
|
|
||||||
mapper.setDateFormat(dateFormat);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ObjectMapper getContext(Class<?> type) {
|
|
||||||
return mapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the object mapper
|
|
||||||
*
|
|
||||||
* @return object mapper
|
|
||||||
*/
|
|
||||||
public ObjectMapper getMapper() { return mapper; }
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
|
|
||||||
public class Pair {
|
|
||||||
private String name = "";
|
|
||||||
private String value = "";
|
|
||||||
|
|
||||||
public Pair (String name, String value) {
|
|
||||||
setName(name);
|
|
||||||
setValue(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setName(String name) {
|
|
||||||
if (!isValidString(name)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setValue(String value) {
|
|
||||||
if (!isValidString(value)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return this.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getValue() {
|
|
||||||
return this.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isValidString(String arg) {
|
|
||||||
if (arg == null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (arg.trim().isEmpty()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
|
|
||||||
import com.fasterxml.jackson.databind.util.ISO8601Utils;
|
|
||||||
|
|
||||||
import java.text.FieldPosition;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
|
|
||||||
public class RFC3339DateFormat extends ISO8601DateFormat {
|
|
||||||
|
|
||||||
// Same as ISO8601DateFormat but serializing milliseconds.
|
|
||||||
@Override
|
|
||||||
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
|
|
||||||
String value = ISO8601Utils.format(date, true);
|
|
||||||
toAppendTo.append(value);
|
|
||||||
return toAppendTo;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Representing a Server configuration.
|
|
||||||
*/
|
|
||||||
public class ServerConfiguration {
|
|
||||||
public String URL;
|
|
||||||
public String description;
|
|
||||||
public Map<String, ServerVariable> variables;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param URL A URL to the target host.
|
|
||||||
* @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 substitution in the server's URL template.
|
|
||||||
*/
|
|
||||||
public ServerConfiguration(String URL, String description, Map<String, ServerVariable> variables) {
|
|
||||||
this.URL = URL;
|
|
||||||
this.description = description;
|
|
||||||
this.variables = variables;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Format URL template using given variables.
|
|
||||||
*
|
|
||||||
* @param variables A map between a variable name and its value.
|
|
||||||
* @return Formatted URL.
|
|
||||||
*/
|
|
||||||
public String URL(Map<String, String> variables) {
|
|
||||||
String url = this.URL;
|
|
||||||
|
|
||||||
// go through variables and replace placeholders
|
|
||||||
for (Map.Entry<String, ServerVariable> variable: this.variables.entrySet()) {
|
|
||||||
String name = variable.getKey();
|
|
||||||
ServerVariable serverVariable = variable.getValue();
|
|
||||||
String value = serverVariable.defaultValue;
|
|
||||||
|
|
||||||
if (variables != null && variables.containsKey(name)) {
|
|
||||||
value = variables.get(name);
|
|
||||||
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
|
|
||||||
throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Format URL template using default server variables.
|
|
||||||
*
|
|
||||||
* @return Formatted URL.
|
|
||||||
*/
|
|
||||||
public String URL() {
|
|
||||||
return URL(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Representing a Server Variable for server URL template substitution.
|
|
||||||
*/
|
|
||||||
public class ServerVariable {
|
|
||||||
public String description;
|
|
||||||
public String defaultValue;
|
|
||||||
public HashSet<String> enumValues = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param description A description for the server variable.
|
|
||||||
* @param defaultValue The default value to use for substitution.
|
|
||||||
* @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
|
|
||||||
*/
|
|
||||||
public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) {
|
|
||||||
this.description = description;
|
|
||||||
this.defaultValue = defaultValue;
|
|
||||||
this.enumValues = enumValues;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
|
|
||||||
public class StringUtil {
|
|
||||||
/**
|
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
|
||||||
*
|
|
||||||
* @param array The array
|
|
||||||
* @param value The value to search
|
|
||||||
* @return true if the array contains the value
|
|
||||||
*/
|
|
||||||
public static boolean containsIgnoreCase(String[] array, String value) {
|
|
||||||
for (String str : array) {
|
|
||||||
if (value == null && str == null) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (value != null && value.equalsIgnoreCase(str)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Join an array of strings with the given separator.
|
|
||||||
* <p>
|
|
||||||
* Note: This might be replaced by utility method from commons-lang or guava someday
|
|
||||||
* if one of those libraries is added as dependency.
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @param array The array of strings
|
|
||||||
* @param separator The separator
|
|
||||||
* @return the resulting string
|
|
||||||
*/
|
|
||||||
public static String join(String[] array, String separator) {
|
|
||||||
int len = array.length;
|
|
||||||
if (len == 0) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
StringBuilder out = new StringBuilder();
|
|
||||||
out.append(array[0]);
|
|
||||||
for (int i = 1; i < len; i++) {
|
|
||||||
out.append(separator).append(array[i]);
|
|
||||||
}
|
|
||||||
return out.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Join a list of strings with the given separator.
|
|
||||||
*
|
|
||||||
* @param list The list of strings
|
|
||||||
* @param separator The separator
|
|
||||||
* @return the resulting string
|
|
||||||
*/
|
|
||||||
public static String join(Collection<String> list, String separator) {
|
|
||||||
Iterator<String> iterator = list.iterator();
|
|
||||||
StringBuilder out = new StringBuilder();
|
|
||||||
if (iterator.hasNext()) {
|
|
||||||
out.append(iterator.next());
|
|
||||||
}
|
|
||||||
while (iterator.hasNext()) {
|
|
||||||
out.append(separator).append(iterator.next());
|
|
||||||
}
|
|
||||||
return out.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,115 +0,0 @@
|
|||||||
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.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class AnotherFakeApi {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AnotherFakeApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public AnotherFakeApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* To test special tags
|
|
||||||
* To test special tags and operation ID starting with number
|
|
||||||
* @param client client model (required)
|
|
||||||
* @return Client
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Client call123testSpecialTags(Client client) throws ApiException {
|
|
||||||
return call123testSpecialTagsWithHttpInfo(client).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* To test special tags
|
|
||||||
* To test special tags and operation ID starting with number
|
|
||||||
* @param client client model (required)
|
|
||||||
* @return ApiResponse<Client>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
|
|
||||||
Object localVarPostBody = client;
|
|
||||||
|
|
||||||
// verify the required parameter 'client' is set
|
|
||||||
if (client == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/another-fake/dummy";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<Client> localVarReturnType = new GenericType<Client>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("AnotherFakeApi.call123testSpecialTags", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
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.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class DefaultApi {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public DefaultApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public DefaultApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @return InlineResponseDefault
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> response </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public InlineResponseDefault fooGet() throws ApiException {
|
|
||||||
return fooGetWithHttpInfo().getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @return ApiResponse<InlineResponseDefault>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> response </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<InlineResponseDefault> fooGetWithHttpInfo() throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/foo";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<InlineResponseDefault> localVarReturnType = new GenericType<InlineResponseDefault>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("DefaultApi.fooGet", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,115 +0,0 @@
|
|||||||
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.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class FakeClassnameTags123Api {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeClassnameTags123Api() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public FakeClassnameTags123Api(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* To test class name in snake case
|
|
||||||
* To test class name in snake case
|
|
||||||
* @param client client model (required)
|
|
||||||
* @return Client
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Client testClassname(Client client) throws ApiException {
|
|
||||||
return testClassnameWithHttpInfo(client).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* To test class name in snake case
|
|
||||||
* To test class name in snake case
|
|
||||||
* @param client client model (required)
|
|
||||||
* @return ApiResponse<Client>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
|
|
||||||
Object localVarPostBody = client;
|
|
||||||
|
|
||||||
// verify the required parameter 'client' is set
|
|
||||||
if (client == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/fake_classname_test";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key_query" };
|
|
||||||
|
|
||||||
GenericType<Client> localVarReturnType = new GenericType<Client>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("FakeClassnameTags123Api.testClassname", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,697 +0,0 @@
|
|||||||
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 org.openapitools.client.model.ModelApiResponse;
|
|
||||||
import org.openapitools.client.model.Pet;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class PetApi {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a new pet to the store
|
|
||||||
*
|
|
||||||
* @param pet Pet object that needs to be added to the store (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void addPet(Pet pet) throws ApiException {
|
|
||||||
addPetWithHttpInfo(pet);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a new pet to the store
|
|
||||||
*
|
|
||||||
* @param pet Pet object that needs to be added to the store (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
|
|
||||||
Object localVarPostBody = pet;
|
|
||||||
|
|
||||||
// verify the required parameter 'pet' is set
|
|
||||||
if (pet == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "http_signature_test", "petstore_auth" };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.addPet", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Deletes a pet
|
|
||||||
*
|
|
||||||
* @param petId Pet id to delete (required)
|
|
||||||
* @param apiKey (optional)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void deletePet(Long petId, String apiKey) throws ApiException {
|
|
||||||
deletePetWithHttpInfo(petId, apiKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deletes a pet
|
|
||||||
*
|
|
||||||
* @param petId Pet id to delete (required)
|
|
||||||
* @param apiKey (optional)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}"
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
if (apiKey != null)
|
|
||||||
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.deletePet", localVarPath, "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
|
|
||||||
* @param status Status values that need to be considered for filter (required)
|
|
||||||
* @return List<Pet>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid status value </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
|
|
||||||
return findPetsByStatusWithHttpInfo(status).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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)
|
|
||||||
* @return ApiResponse<List<Pet>>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid status value </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'status' is set
|
|
||||||
if (status == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/findByStatus";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "http_signature_test", "petstore_auth" };
|
|
||||||
|
|
||||||
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.findPetsByStatus", localVarPath, "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, tag3 for testing.
|
|
||||||
* @param tags Tags to filter by (required)
|
|
||||||
* @return List<Pet>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
|
|
||||||
return findPetsByTagsWithHttpInfo(tags).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds Pets by tags
|
|
||||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
||||||
* @param tags Tags to filter by (required)
|
|
||||||
* @return ApiResponse<List<Pet>>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid tag value </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'tags' is set
|
|
||||||
if (tags == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/findByTags";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "http_signature_test", "petstore_auth" };
|
|
||||||
|
|
||||||
GenericType<List<Pet>> localVarReturnType = new GenericType<List<Pet>>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.findPetsByTags", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Find pet by ID
|
|
||||||
* Returns a single pet
|
|
||||||
* @param petId ID of pet to return (required)
|
|
||||||
* @return Pet
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Pet getPetById(Long petId) throws ApiException {
|
|
||||||
return getPetByIdWithHttpInfo(petId).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Find pet by ID
|
|
||||||
* Returns a single pet
|
|
||||||
* @param petId ID of pet to return (required)
|
|
||||||
* @return ApiResponse<Pet>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}"
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key" };
|
|
||||||
|
|
||||||
GenericType<Pet> localVarReturnType = new GenericType<Pet>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.getPetById", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Update an existing pet
|
|
||||||
*
|
|
||||||
* @param pet Pet object that needs to be added to the store (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> Pet not found </td><td> - </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void updatePet(Pet pet) throws ApiException {
|
|
||||||
updatePetWithHttpInfo(pet);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update an existing pet
|
|
||||||
*
|
|
||||||
* @param pet Pet object that needs to be added to the store (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> Pet not found </td><td> - </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
|
|
||||||
Object localVarPostBody = pet;
|
|
||||||
|
|
||||||
// verify the required parameter 'pet' is set
|
|
||||||
if (pet == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json", "application/xml"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "http_signature_test", "petstore_auth" };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.updatePet", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Updates a pet in the store with form data
|
|
||||||
*
|
|
||||||
* @param petId ID of pet that needs to be updated (required)
|
|
||||||
* @param name Updated name of the pet (optional)
|
|
||||||
* @param status Updated status of the pet (optional)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
|
|
||||||
updatePetWithFormWithHttpInfo(petId, name, status);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Updates a pet in the store with form data
|
|
||||||
*
|
|
||||||
* @param petId ID of pet that needs to be updated (required)
|
|
||||||
* @param name Updated name of the pet (optional)
|
|
||||||
* @param status Updated status of the pet (optional)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}"
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
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 = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/x-www-form-urlencoded"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.updatePetWithForm", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* uploads an image
|
|
||||||
*
|
|
||||||
* @param petId ID of pet to update (required)
|
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
|
||||||
* @param file file to upload (optional)
|
|
||||||
* @return ModelApiResponse
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
|
|
||||||
return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* uploads an image
|
|
||||||
*
|
|
||||||
* @param petId ID of pet to update (required)
|
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
|
||||||
* @param file file to upload (optional)
|
|
||||||
* @return ApiResponse<ModelApiResponse>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/pet/{petId}/uploadImage"
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (additionalMetadata != null)
|
|
||||||
localVarFormParams.put("additionalMetadata", additionalMetadata);
|
|
||||||
if (file != null)
|
|
||||||
localVarFormParams.put("file", file);
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"multipart/form-data"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
|
||||||
|
|
||||||
GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.uploadFile", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* uploads an image (required)
|
|
||||||
*
|
|
||||||
* @param petId ID of pet to update (required)
|
|
||||||
* @param requiredFile file to upload (required)
|
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
|
||||||
* @return ModelApiResponse
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
|
|
||||||
return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* uploads an image (required)
|
|
||||||
*
|
|
||||||
* @param petId ID of pet to update (required)
|
|
||||||
* @param requiredFile file to upload (required)
|
|
||||||
* @param additionalMetadata Additional data to pass to server (optional)
|
|
||||||
* @return ApiResponse<ModelApiResponse>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'petId' is set
|
|
||||||
if (petId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
|
|
||||||
}
|
|
||||||
|
|
||||||
// verify the required parameter 'requiredFile' is set
|
|
||||||
if (requiredFile == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/fake/{petId}/uploadImageWithRequiredFile"
|
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (additionalMetadata != null)
|
|
||||||
localVarFormParams.put("additionalMetadata", additionalMetadata);
|
|
||||||
if (requiredFile != null)
|
|
||||||
localVarFormParams.put("requiredFile", requiredFile);
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"multipart/form-data"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
|
||||||
|
|
||||||
GenericType<ModelApiResponse> localVarReturnType = new GenericType<ModelApiResponse>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("PetApi.uploadFileWithRequiredFile", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,316 +0,0 @@
|
|||||||
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.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class StoreApi {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete purchase order by ID
|
|
||||||
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
|
||||||
* @param orderId ID of the order that needs to be deleted (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> Order not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void deleteOrder(String orderId) throws ApiException {
|
|
||||||
deleteOrderWithHttpInfo(orderId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete purchase order by ID
|
|
||||||
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
|
||||||
* @param orderId ID of the order that needs to be deleted (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> Order not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
|
||||||
if (orderId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/order/{order_id}"
|
|
||||||
.replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("StoreApi.deleteOrder", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Returns pet inventories by status
|
|
||||||
* Returns a map of status codes to quantities
|
|
||||||
* @return Map<String, Integer>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Map<String, Integer> getInventory() throws ApiException {
|
|
||||||
return getInventoryWithHttpInfo().getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns pet inventories by status
|
|
||||||
* Returns a map of status codes to quantities
|
|
||||||
* @return ApiResponse<Map<String, Integer>>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/inventory";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { "api_key" };
|
|
||||||
|
|
||||||
GenericType<Map<String, Integer>> localVarReturnType = new GenericType<Map<String, Integer>>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("StoreApi.getInventory", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Find purchase order by ID
|
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
|
||||||
* @param orderId ID of pet that needs to be fetched (required)
|
|
||||||
* @return Order
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Order getOrderById(Long orderId) throws ApiException {
|
|
||||||
return getOrderByIdWithHttpInfo(orderId).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Find purchase order by ID
|
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
|
||||||
* @param orderId ID of pet that needs to be fetched (required)
|
|
||||||
* @return ApiResponse<Order>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid ID supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'orderId' is set
|
|
||||||
if (orderId == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/order/{order_id}"
|
|
||||||
.replaceAll("\\{" + "order_id" + "\\}", apiClient.escapeString(orderId.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("StoreApi.getOrderById", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Place an order for a pet
|
|
||||||
*
|
|
||||||
* @param order order placed for purchasing the pet (required)
|
|
||||||
* @return Order
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid Order </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public Order placeOrder(Order order) throws ApiException {
|
|
||||||
return placeOrderWithHttpInfo(order).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Place an order for a pet
|
|
||||||
*
|
|
||||||
* @param order order placed for purchasing the pet (required)
|
|
||||||
* @return ApiResponse<Order>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid Order </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
|
|
||||||
Object localVarPostBody = order;
|
|
||||||
|
|
||||||
// verify the required parameter 'order' is set
|
|
||||||
if (order == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/store/order";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<Order> localVarReturnType = new GenericType<Order>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("StoreApi.placeOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,588 +0,0 @@
|
|||||||
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.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
public class UserApi {
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
|
||||||
}
|
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the API cilent
|
|
||||||
*
|
|
||||||
* @return API client
|
|
||||||
*/
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the API cilent
|
|
||||||
*
|
|
||||||
* @param apiClient an instance of API client
|
|
||||||
*/
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param user Created user object (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void createUser(User user) throws ApiException {
|
|
||||||
createUserWithHttpInfo(user);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param user Created user object (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
|
|
||||||
Object localVarPostBody = user;
|
|
||||||
|
|
||||||
// verify the required parameter 'user' is set
|
|
||||||
if (user == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.createUser", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Creates list of users with given input array
|
|
||||||
*
|
|
||||||
* @param user List of user object (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
|
||||||
createUsersWithArrayInputWithHttpInfo(user);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates list of users with given input array
|
|
||||||
*
|
|
||||||
* @param user List of user object (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
|
|
||||||
Object localVarPostBody = user;
|
|
||||||
|
|
||||||
// verify the required parameter 'user' is set
|
|
||||||
if (user == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/createWithArray";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.createUsersWithArrayInput", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Creates list of users with given input array
|
|
||||||
*
|
|
||||||
* @param user List of user object (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
|
||||||
createUsersWithListInputWithHttpInfo(user);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates list of users with given input array
|
|
||||||
*
|
|
||||||
* @param user List of user object (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
|
|
||||||
Object localVarPostBody = user;
|
|
||||||
|
|
||||||
// verify the required parameter 'user' is set
|
|
||||||
if (user == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/createWithList";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.createUsersWithListInput", localVarPath, "POST", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Delete user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param username The name that needs to be deleted (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void deleteUser(String username) throws ApiException {
|
|
||||||
deleteUserWithHttpInfo(username);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param username The name that needs to be deleted (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
|
||||||
if (username == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/{username}"
|
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.deleteUser", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Get user by user name
|
|
||||||
*
|
|
||||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
|
||||||
* @return User
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public User getUserByName(String username) throws ApiException {
|
|
||||||
return getUserByNameWithHttpInfo(username).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get user by user name
|
|
||||||
*
|
|
||||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
|
||||||
* @return ApiResponse<User>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid username supplied </td><td> - </td></tr>
|
|
||||||
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
|
||||||
if (username == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/{username}"
|
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<User> localVarReturnType = new GenericType<User>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.getUserByName", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Logs user into the system
|
|
||||||
*
|
|
||||||
* @param username The user name for login (required)
|
|
||||||
* @param password The password for login in clear text (required)
|
|
||||||
* @return String
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public String loginUser(String username, String password) throws ApiException {
|
|
||||||
return loginUserWithHttpInfo(username, password).getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs user into the system
|
|
||||||
*
|
|
||||||
* @param username The user name for login (required)
|
|
||||||
* @param password The password for login in clear text (required)
|
|
||||||
* @return ApiResponse<String>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
|
||||||
if (username == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// verify the required parameter 'password' is set
|
|
||||||
if (password == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'password' when calling loginUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/login";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "username", username));
|
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "password", password));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/xml", "application/json"
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.loginUser", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, localVarReturnType, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Logs out current logged in user session
|
|
||||||
*
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void logoutUser() throws ApiException {
|
|
||||||
logoutUserWithHttpInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs out current logged in user session
|
|
||||||
*
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
|
||||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/logout";
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.logoutUser", localVarPath, "GET", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Updated user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param username name that need to be deleted (required)
|
|
||||||
* @param user Updated user object (required)
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public void updateUser(String username, User user) throws ApiException {
|
|
||||||
updateUserWithHttpInfo(username, user);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Updated user
|
|
||||||
* This can only be done by the logged in user.
|
|
||||||
* @param username name that need to be deleted (required)
|
|
||||||
* @param user Updated user object (required)
|
|
||||||
* @return ApiResponse<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
|
||||||
* @http.response.details
|
|
||||||
<table summary="Response Details" border="1">
|
|
||||||
<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> 404 </td><td> User not found </td><td> - </td></tr>
|
|
||||||
</table>
|
|
||||||
*/
|
|
||||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
|
|
||||||
Object localVarPostBody = user;
|
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
|
||||||
if (username == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// verify the required parameter 'user' is set
|
|
||||||
if (user == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
|
||||||
String localVarPath = "/user/{username}"
|
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
|
||||||
|
|
||||||
// query params
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
|
||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
|
||||||
|
|
||||||
};
|
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
|
||||||
};
|
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
|
||||||
|
|
||||||
return apiClient.invokeAPI("UserApi.updateUser", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
|
|
||||||
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
|
|
||||||
localVarAuthNames, null, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
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 {
|
|
||||||
private final String location;
|
|
||||||
private final String paramName;
|
|
||||||
|
|
||||||
private String apiKey;
|
|
||||||
private String apiKeyPrefix;
|
|
||||||
|
|
||||||
public ApiKeyAuth(String location, String paramName) {
|
|
||||||
this.location = location;
|
|
||||||
this.paramName = paramName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLocation() {
|
|
||||||
return location;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getParamName() {
|
|
||||||
return paramName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getApiKey() {
|
|
||||||
return apiKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiKey(String apiKey) {
|
|
||||||
this.apiKey = apiKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getApiKeyPrefix() {
|
|
||||||
return apiKeyPrefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiKeyPrefix(String apiKeyPrefix) {
|
|
||||||
this.apiKeyPrefix = apiKeyPrefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
|
|
||||||
if (apiKey == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String value;
|
|
||||||
if (apiKeyPrefix != null) {
|
|
||||||
value = apiKeyPrefix + " " + apiKey;
|
|
||||||
} else {
|
|
||||||
value = apiKey;
|
|
||||||
}
|
|
||||||
if ("query".equals(location)) {
|
|
||||||
queryParams.add(new Pair(paramName, value));
|
|
||||||
} else if ("header".equals(location)) {
|
|
||||||
headerParams.put(paramName, value);
|
|
||||||
} else if ("cookie".equals(location)) {
|
|
||||||
cookieParams.put(paramName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
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 {
|
|
||||||
/**
|
|
||||||
* Apply authentication settings to header and query params.
|
|
||||||
*
|
|
||||||
* @param queryParams List of query parameters
|
|
||||||
* @param headerParams Map of header parameters
|
|
||||||
* @param cookieParams Map of cookie parameters
|
|
||||||
*/
|
|
||||||
void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
import org.openapitools.client.Pair;
|
|
||||||
import org.openapitools.client.ApiException;
|
|
||||||
|
|
||||||
import java.util.Base64;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class HttpBasicAuth implements Authentication {
|
|
||||||
private String username;
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsername(String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
|
|
||||||
if (username == null && password == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
|
|
||||||
headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
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 {
|
|
||||||
private final String scheme;
|
|
||||||
private String bearerToken;
|
|
||||||
|
|
||||||
public HttpBearerAuth(String scheme) {
|
|
||||||
this.scheme = scheme;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
|
||||||
*
|
|
||||||
* @return The bearer token
|
|
||||||
*/
|
|
||||||
public String getBearerToken() {
|
|
||||||
return bearerToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
|
||||||
*
|
|
||||||
* @param bearerToken The bearer token to send in the Authorization header
|
|
||||||
*/
|
|
||||||
public void setBearerToken(String bearerToken) {
|
|
||||||
this.bearerToken = bearerToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
|
|
||||||
if(bearerToken == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String upperCaseBearer(String scheme) {
|
|
||||||
return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,265 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
import org.openapitools.client.Pair;
|
|
||||||
import org.openapitools.client.ApiException;
|
|
||||||
|
|
||||||
import java.net.URI;
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
import java.security.MessageDigest;
|
|
||||||
import java.security.Key;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Base64;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.List;
|
|
||||||
import java.security.spec.AlgorithmParameterSpec;
|
|
||||||
import java.security.InvalidKeyException;
|
|
||||||
|
|
||||||
import org.tomitribe.auth.signatures.Algorithm;
|
|
||||||
import org.tomitribe.auth.signatures.Signer;
|
|
||||||
import org.tomitribe.auth.signatures.Signature;
|
|
||||||
import org.tomitribe.auth.signatures.SigningAlgorithm;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A Configuration object for the HTTP message signature security scheme.
|
|
||||||
*/
|
|
||||||
public class HttpSignatureAuth implements Authentication {
|
|
||||||
|
|
||||||
private Signer signer;
|
|
||||||
|
|
||||||
// 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 SigningAlgorithm signingAlgorithm;
|
|
||||||
|
|
||||||
// The HTTP cryptographic algorithm.
|
|
||||||
private Algorithm algorithm;
|
|
||||||
|
|
||||||
// The cryptographic parameters.
|
|
||||||
private AlgorithmParameterSpec parameterSpec;
|
|
||||||
|
|
||||||
// The list of HTTP headers that should be included in the HTTP signature.
|
|
||||||
private List<String> headers;
|
|
||||||
|
|
||||||
// The digest algorithm which is used to calculate a cryptographic digest of the HTTP request body.
|
|
||||||
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 signingAlgorithm The signature algorithm.
|
|
||||||
* @param algorithm The cryptographic algorithm.
|
|
||||||
* @param digestAlgorithm The digest algorithm.
|
|
||||||
* @param headers The list of HTTP headers that should be included in the HTTP signature.
|
|
||||||
*/
|
|
||||||
public HttpSignatureAuth(String keyId,
|
|
||||||
SigningAlgorithm signingAlgorithm,
|
|
||||||
Algorithm algorithm,
|
|
||||||
String digestAlgorithm,
|
|
||||||
AlgorithmParameterSpec parameterSpec,
|
|
||||||
List<String> headers) {
|
|
||||||
this.keyId = keyId;
|
|
||||||
this.signingAlgorithm = signingAlgorithm;
|
|
||||||
this.algorithm = algorithm;
|
|
||||||
this.parameterSpec = parameterSpec;
|
|
||||||
this.digestAlgorithm = digestAlgorithm;
|
|
||||||
this.headers = headers;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 SigningAlgorithm getSigningAlgorithm() {
|
|
||||||
return signingAlgorithm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the HTTP signature algorithm which is used to sign HTTP requests.
|
|
||||||
*
|
|
||||||
* @param signingAlgorithm The HTTP signature algorithm.
|
|
||||||
*/
|
|
||||||
public void setSigningAlgorithm(SigningAlgorithm signingAlgorithm) {
|
|
||||||
this.signingAlgorithm = signingAlgorithm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the HTTP cryptographic algorithm which is used to sign HTTP requests.
|
|
||||||
*/
|
|
||||||
public Algorithm getAlgorithm() {
|
|
||||||
return algorithm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the HTTP cryptographic algorithm which is used to sign HTTP requests.
|
|
||||||
*
|
|
||||||
* @param algorithm The HTTP signature algorithm.
|
|
||||||
*/
|
|
||||||
public void setAlgorithm(Algorithm algorithm) {
|
|
||||||
this.algorithm = algorithm;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the cryptographic parameters which are used to sign HTTP requests.
|
|
||||||
*/
|
|
||||||
public AlgorithmParameterSpec getAlgorithmParameterSpec() {
|
|
||||||
return parameterSpec;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cryptographic parameters which are used to sign HTTP requests.
|
|
||||||
*
|
|
||||||
* @param parameterSpec The cryptographic parameters.
|
|
||||||
*/
|
|
||||||
public void setAlgorithmParameterSpec(AlgorithmParameterSpec parameterSpec) {
|
|
||||||
this.parameterSpec = parameterSpec;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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() {
|
|
||||||
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) {
|
|
||||||
this.headers = headers;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the signer instance used to sign HTTP messages.
|
|
||||||
*
|
|
||||||
* @return the signer instance.
|
|
||||||
*/
|
|
||||||
public Signer getSigner() {
|
|
||||||
return signer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the signer instance used to sign HTTP messages.
|
|
||||||
*
|
|
||||||
* @param signer The signer instance to set.
|
|
||||||
*/
|
|
||||||
public void setSigner(Signer signer) {
|
|
||||||
this.signer = signer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the private key used to sign HTTP requests using the HTTP signature scheme.
|
|
||||||
*
|
|
||||||
* @param key The private key.
|
|
||||||
*
|
|
||||||
* @throws InvalidKeyException Unable to parse the key, or the security provider for this key
|
|
||||||
* is not installed.
|
|
||||||
*/
|
|
||||||
public void setPrivateKey(Key key) throws InvalidKeyException, ApiException {
|
|
||||||
if (key == null) {
|
|
||||||
throw new ApiException("Private key (java.security.Key) cannot be null");
|
|
||||||
}
|
|
||||||
signer = new Signer(key, new Signature(keyId, signingAlgorithm, algorithm, parameterSpec, null, headers));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams,
|
|
||||||
String payload, String method, URI uri) throws ApiException {
|
|
||||||
try {
|
|
||||||
if (headers.contains("host")) {
|
|
||||||
headerParams.put("host", uri.getHost());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (headers.contains("date")) {
|
|
||||||
headerParams.put("date", new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US).format(new Date()));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (headers.contains("digest")) {
|
|
||||||
headerParams.put("digest",
|
|
||||||
this.digestAlgorithm + "=" +
|
|
||||||
new String(Base64.getEncoder().encode(MessageDigest.getInstance(this.digestAlgorithm).digest(payload.getBytes()))));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (signer == null) {
|
|
||||||
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
|
|
||||||
String path = uri.getPath();
|
|
||||||
|
|
||||||
List<String> urlQueries = new ArrayList<String>();
|
|
||||||
for (Pair queryParam : queryParams) {
|
|
||||||
urlQueries.add(queryParam.getName() + "=" + URLEncoder.encode(queryParam.getValue(), "utf8").replaceAll("\\+", "%20"));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!urlQueries.isEmpty()) {
|
|
||||||
path = path + "?" + String.join("&", urlQueries);
|
|
||||||
}
|
|
||||||
|
|
||||||
headerParams.put("Authorization", signer.sign(method, path, headerParams).toString());
|
|
||||||
} catch (Exception ex) {
|
|
||||||
throw new ApiException("Failed to create signature in the HTTP request header: " + ex.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
import org.openapitools.client.Pair;
|
|
||||||
import org.openapitools.client.ApiException;
|
|
||||||
import com.github.scribejava.core.builder.ServiceBuilder;
|
|
||||||
import com.github.scribejava.core.builder.api.DefaultApi20;
|
|
||||||
import com.github.scribejava.core.exceptions.OAuthException;
|
|
||||||
import com.github.scribejava.core.model.OAuth2AccessToken;
|
|
||||||
import com.github.scribejava.core.oauth.OAuth20Service;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.UriBuilder;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.ExecutionException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
|
|
||||||
public class OAuth implements Authentication {
|
|
||||||
private static final Logger log = Logger.getLogger(OAuth.class.getName());
|
|
||||||
|
|
||||||
private String tokenUrl;
|
|
||||||
private String absoluteTokenUrl;
|
|
||||||
private OAuthFlow flow = OAuthFlow.application;
|
|
||||||
private OAuth20Service service;
|
|
||||||
private DefaultApi20 authApi;
|
|
||||||
private String scope;
|
|
||||||
private String username;
|
|
||||||
private String password;
|
|
||||||
private String code;
|
|
||||||
private volatile OAuth2AccessToken accessToken;
|
|
||||||
|
|
||||||
public OAuth(String basePath, String tokenUrl) {
|
|
||||||
this.tokenUrl = tokenUrl;
|
|
||||||
this.absoluteTokenUrl = createAbsoluteTokenUrl(basePath, tokenUrl);
|
|
||||||
authApi = new DefaultApi20() {
|
|
||||||
@Override
|
|
||||||
public String getAccessTokenEndpoint() {
|
|
||||||
return absoluteTokenUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected String getAuthorizationBaseUrl() {
|
|
||||||
throw new UnsupportedOperationException("Shouldn't get there !");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String createAbsoluteTokenUrl(String basePath, String tokenUrl) {
|
|
||||||
if (!URI.create(tokenUrl).isAbsolute()) {
|
|
||||||
try {
|
|
||||||
return UriBuilder.fromPath(basePath).path(tokenUrl).build().toURL().toString();
|
|
||||||
} catch (MalformedURLException e) {
|
|
||||||
log.log(Level.SEVERE, "Couldn't create absolute token URL", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tokenUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyToParams(
|
|
||||||
List<Pair> queryParams,
|
|
||||||
Map<String, String> headerParams,
|
|
||||||
Map<String, String> cookieParams,
|
|
||||||
String payload,
|
|
||||||
String method,
|
|
||||||
URI uri)
|
|
||||||
throws ApiException {
|
|
||||||
|
|
||||||
if (accessToken == null) {
|
|
||||||
obtainAccessToken(null);
|
|
||||||
}
|
|
||||||
if (accessToken != null) {
|
|
||||||
headerParams.put("Authorization", "Bearer " + accessToken.getAccessToken());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth2AccessToken renewAccessToken() throws ApiException {
|
|
||||||
String refreshToken = null;
|
|
||||||
if (accessToken != null) {
|
|
||||||
refreshToken = accessToken.getRefreshToken();
|
|
||||||
accessToken = null;
|
|
||||||
}
|
|
||||||
return obtainAccessToken(refreshToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
public synchronized OAuth2AccessToken obtainAccessToken(String refreshToken) throws ApiException {
|
|
||||||
if (service == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
if (refreshToken != null) {
|
|
||||||
return service.refreshAccessToken(refreshToken);
|
|
||||||
}
|
|
||||||
} catch (OAuthException | InterruptedException | ExecutionException | IOException e) {
|
|
||||||
log.log(Level.FINE, "Refreshing the access token using the refresh token failed", e);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
switch (flow) {
|
|
||||||
case password:
|
|
||||||
if (username != null && password != null) {
|
|
||||||
accessToken = service.getAccessTokenPasswordGrant(username, password, scope);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case accessCode:
|
|
||||||
if (code != null) {
|
|
||||||
accessToken = service.getAccessToken(code);
|
|
||||||
code = null;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case application:
|
|
||||||
accessToken = service.getAccessTokenClientCredentialsGrant(scope);
|
|
||||||
}
|
|
||||||
} catch (OAuthException | InterruptedException | ExecutionException | IOException e) {
|
|
||||||
throw new ApiException(e);
|
|
||||||
}
|
|
||||||
return accessToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth2AccessToken getAccessToken() {
|
|
||||||
return accessToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth setAccessToken(OAuth2AccessToken accessToken) {
|
|
||||||
this.accessToken = accessToken;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth setAccessToken(String accessToken) {
|
|
||||||
this.accessToken = new OAuth2AccessToken(accessToken);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth setScope(String scope) {
|
|
||||||
this.scope = scope;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth setCredentials(String clientId, String clientSecret) {
|
|
||||||
service = new ServiceBuilder(clientId)
|
|
||||||
.apiSecret(clientSecret)
|
|
||||||
.build(authApi);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth usePasswordFlow(String username, String password) {
|
|
||||||
this.flow = OAuthFlow.password;
|
|
||||||
this.username = username;
|
|
||||||
this.password = password;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth useAuthorizationCodeFlow(String code) {
|
|
||||||
this.flow = OAuthFlow.accessCode;
|
|
||||||
this.code = code;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuth setFlow(OAuthFlow flow) {
|
|
||||||
this.flow = flow;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBasePath(String basePath) {
|
|
||||||
this.absoluteTokenUrl = createAbsoluteTokenUrl(basePath, tokenUrl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.auth;
|
|
||||||
|
|
||||||
public enum OAuthFlow {
|
|
||||||
accessCode, implicit, password, application
|
|
||||||
}
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.lang.reflect.Type;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
|
|
||||||
*/
|
|
||||||
|
|
||||||
public abstract class AbstractOpenApiSchema {
|
|
||||||
|
|
||||||
// store the actual instance of the schema/object
|
|
||||||
private Object instance;
|
|
||||||
|
|
||||||
// is nullable
|
|
||||||
private Boolean isNullable;
|
|
||||||
|
|
||||||
// schema type (e.g. oneOf, anyOf)
|
|
||||||
private final String schemaType;
|
|
||||||
|
|
||||||
public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
|
|
||||||
this.schemaType = schemaType;
|
|
||||||
this.isNullable = isNullable;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Get the list of schemas allowed to be stored in this object
|
|
||||||
*
|
|
||||||
* @return an instance of the actual schema/object
|
|
||||||
*/
|
|
||||||
public abstract Map<String, GenericType> getSchemas();
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Get the actual instance
|
|
||||||
*
|
|
||||||
* @return an instance of the actual schema/object
|
|
||||||
*/
|
|
||||||
@JsonValue
|
|
||||||
public Object getActualInstance() {return instance;}
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Set the actual instance
|
|
||||||
*
|
|
||||||
* @param instance the actual instance of the schema/object
|
|
||||||
*/
|
|
||||||
public void setActualInstance(Object instance) {this.instance = instance;}
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Get the schema type (e.g. anyOf, oneOf)
|
|
||||||
*
|
|
||||||
* @return the schema type
|
|
||||||
*/
|
|
||||||
public String getSchemaType() {
|
|
||||||
return schemaType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ").append(getClass()).append(" {\n");
|
|
||||||
sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
|
|
||||||
sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n");
|
|
||||||
sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
AbstractOpenApiSchema a = (AbstractOpenApiSchema) o;
|
|
||||||
return Objects.equals(this.instance, a.instance) &&
|
|
||||||
Objects.equals(this.isNullable, a.isNullable) &&
|
|
||||||
Objects.equals(this.schemaType, a.schemaType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(instance, isNullable, schemaType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Is nullalble
|
|
||||||
*
|
|
||||||
* @return true if it's nullable
|
|
||||||
*/
|
|
||||||
public Boolean isNullable() {
|
|
||||||
if (Boolean.TRUE.equals(isNullable)) {
|
|
||||||
return Boolean.TRUE;
|
|
||||||
} else {
|
|
||||||
return Boolean.FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,367 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import org.openapitools.jackson.nullable.JsonNullable;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_EMPTY_MAP,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING
|
|
||||||
})
|
|
||||||
|
|
||||||
public class AdditionalPropertiesClass {
|
|
||||||
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
|
|
||||||
private Map<String, String> mapProperty = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
|
||||||
private Map<String, Map<String, String>> mapOfMapProperty = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
|
||||||
private JsonNullable<Object> anytype1 = JsonNullable.<Object>of(null);
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1";
|
|
||||||
private Object mapWithUndeclaredPropertiesAnytype1;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2";
|
|
||||||
private Object mapWithUndeclaredPropertiesAnytype2;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3";
|
|
||||||
private Map<String, Object> mapWithUndeclaredPropertiesAnytype3 = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map";
|
|
||||||
private Object emptyMap;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string";
|
|
||||||
private Map<String, String> mapWithUndeclaredPropertiesString = null;
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
|
||||||
|
|
||||||
this.mapProperty = mapProperty;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
|
||||||
if (this.mapProperty == null) {
|
|
||||||
this.mapProperty = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapProperty
|
|
||||||
* @return mapProperty
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, String> getMapProperty() {
|
|
||||||
return mapProperty;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapProperty(Map<String, String> mapProperty) {
|
|
||||||
this.mapProperty = mapProperty;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
|
||||||
|
|
||||||
this.mapOfMapProperty = mapOfMapProperty;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
|
||||||
if (this.mapOfMapProperty == null) {
|
|
||||||
this.mapOfMapProperty = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapOfMapProperty
|
|
||||||
* @return mapOfMapProperty
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
|
||||||
return mapOfMapProperty;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
|
||||||
this.mapOfMapProperty = mapOfMapProperty;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
|
||||||
this.anytype1 = JsonNullable.<Object>of(anytype1);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get anytype1
|
|
||||||
* @return anytype1
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public Object getAnytype1() {
|
|
||||||
return anytype1.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<Object> getAnytype1_JsonNullable() {
|
|
||||||
return anytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
|
||||||
public void setAnytype1_JsonNullable(JsonNullable<Object> anytype1) {
|
|
||||||
this.anytype1 = anytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAnytype1(Object anytype1) {
|
|
||||||
this.anytype1 = JsonNullable.<Object>of(anytype1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
|
|
||||||
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapWithUndeclaredPropertiesAnytype1
|
|
||||||
* @return mapWithUndeclaredPropertiesAnytype1
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getMapWithUndeclaredPropertiesAnytype1() {
|
|
||||||
return mapWithUndeclaredPropertiesAnytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
|
|
||||||
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapWithUndeclaredPropertiesAnytype2
|
|
||||||
* @return mapWithUndeclaredPropertiesAnytype2
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getMapWithUndeclaredPropertiesAnytype2() {
|
|
||||||
return mapWithUndeclaredPropertiesAnytype2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
|
|
||||||
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(String key, Object mapWithUndeclaredPropertiesAnytype3Item) {
|
|
||||||
if (this.mapWithUndeclaredPropertiesAnytype3 == null) {
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype3 = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype3.put(key, mapWithUndeclaredPropertiesAnytype3Item);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapWithUndeclaredPropertiesAnytype3
|
|
||||||
* @return mapWithUndeclaredPropertiesAnytype3
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3)
|
|
||||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Object> getMapWithUndeclaredPropertiesAnytype3() {
|
|
||||||
return mapWithUndeclaredPropertiesAnytype3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
|
|
||||||
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass emptyMap(Object emptyMap) {
|
|
||||||
|
|
||||||
this.emptyMap = emptyMap;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* an object with no declared properties and no undeclared properties, hence it's an empty map.
|
|
||||||
* @return emptyMap
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "an object with no declared properties and no undeclared properties, hence it's an empty map.")
|
|
||||||
@JsonProperty(JSON_PROPERTY_EMPTY_MAP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getEmptyMap() {
|
|
||||||
return emptyMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEmptyMap(Object emptyMap) {
|
|
||||||
this.emptyMap = emptyMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
|
|
||||||
|
|
||||||
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String key, String mapWithUndeclaredPropertiesStringItem) {
|
|
||||||
if (this.mapWithUndeclaredPropertiesString == null) {
|
|
||||||
this.mapWithUndeclaredPropertiesString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapWithUndeclaredPropertiesString.put(key, mapWithUndeclaredPropertiesStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapWithUndeclaredPropertiesString
|
|
||||||
* @return mapWithUndeclaredPropertiesString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, String> getMapWithUndeclaredPropertiesString() {
|
|
||||||
return mapWithUndeclaredPropertiesString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
|
|
||||||
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
|
||||||
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
|
|
||||||
Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty) &&
|
|
||||||
Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) &&
|
|
||||||
Objects.equals(this.mapWithUndeclaredPropertiesAnytype1, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype1) &&
|
|
||||||
Objects.equals(this.mapWithUndeclaredPropertiesAnytype2, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype2) &&
|
|
||||||
Objects.equals(this.mapWithUndeclaredPropertiesAnytype3, additionalPropertiesClass.mapWithUndeclaredPropertiesAnytype3) &&
|
|
||||||
Objects.equals(this.emptyMap, additionalPropertiesClass.emptyMap) &&
|
|
||||||
Objects.equals(this.mapWithUndeclaredPropertiesString, additionalPropertiesClass.mapWithUndeclaredPropertiesString);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(mapProperty, mapOfMapProperty, anytype1, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, emptyMap, mapWithUndeclaredPropertiesString);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class AdditionalPropertiesClass {\n");
|
|
||||||
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
|
|
||||||
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n");
|
|
||||||
sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n");
|
|
||||||
sb.append(" mapWithUndeclaredPropertiesAnytype1: ").append(toIndentedString(mapWithUndeclaredPropertiesAnytype1)).append("\n");
|
|
||||||
sb.append(" mapWithUndeclaredPropertiesAnytype2: ").append(toIndentedString(mapWithUndeclaredPropertiesAnytype2)).append("\n");
|
|
||||||
sb.append(" mapWithUndeclaredPropertiesAnytype3: ").append(toIndentedString(mapWithUndeclaredPropertiesAnytype3)).append("\n");
|
|
||||||
sb.append(" emptyMap: ").append(toIndentedString(emptyMap)).append("\n");
|
|
||||||
sb.append(" mapWithUndeclaredPropertiesString: ").append(toIndentedString(mapWithUndeclaredPropertiesString)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Cat;
|
|
||||||
import org.openapitools.client.model.Dog;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Animal
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Animal.JSON_PROPERTY_CLASS_NAME,
|
|
||||||
Animal.JSON_PROPERTY_COLOR
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
|
||||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Animal {
|
|
||||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
|
||||||
private String className;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_COLOR = "color";
|
|
||||||
private String color = "red";
|
|
||||||
|
|
||||||
|
|
||||||
public Animal className(String className) {
|
|
||||||
|
|
||||||
this.className = className;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get className
|
|
||||||
* @return className
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getClassName() {
|
|
||||||
return className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setClassName(String className) {
|
|
||||||
this.className = className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Animal color(String color) {
|
|
||||||
|
|
||||||
this.color = color;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get color
|
|
||||||
* @return color
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getColor() {
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setColor(String color) {
|
|
||||||
this.color = color;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Animal animal = (Animal) o;
|
|
||||||
return Objects.equals(this.className, animal.className) &&
|
|
||||||
Objects.equals(this.color, animal.color);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(className, color);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Animal {\n");
|
|
||||||
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
|
||||||
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Apple
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Apple.JSON_PROPERTY_CULTIVAR,
|
|
||||||
Apple.JSON_PROPERTY_ORIGIN
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Apple {
|
|
||||||
public static final String JSON_PROPERTY_CULTIVAR = "cultivar";
|
|
||||||
private String cultivar;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ORIGIN = "origin";
|
|
||||||
private String origin;
|
|
||||||
|
|
||||||
|
|
||||||
public Apple cultivar(String cultivar) {
|
|
||||||
|
|
||||||
this.cultivar = cultivar;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get cultivar
|
|
||||||
* @return cultivar
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CULTIVAR)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getCultivar() {
|
|
||||||
return cultivar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCultivar(String cultivar) {
|
|
||||||
this.cultivar = cultivar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Apple origin(String origin) {
|
|
||||||
|
|
||||||
this.origin = origin;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get origin
|
|
||||||
* @return origin
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ORIGIN)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getOrigin() {
|
|
||||||
return origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setOrigin(String origin) {
|
|
||||||
this.origin = origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Apple apple = (Apple) o;
|
|
||||||
return Objects.equals(this.cultivar, apple.cultivar) &&
|
|
||||||
Objects.equals(this.origin, apple.origin);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(cultivar, origin);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Apple {\n");
|
|
||||||
sb.append(" cultivar: ").append(toIndentedString(cultivar)).append("\n");
|
|
||||||
sb.append(" origin: ").append(toIndentedString(origin)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AppleReq
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
AppleReq.JSON_PROPERTY_CULTIVAR,
|
|
||||||
AppleReq.JSON_PROPERTY_MEALY
|
|
||||||
})
|
|
||||||
|
|
||||||
public class AppleReq {
|
|
||||||
public static final String JSON_PROPERTY_CULTIVAR = "cultivar";
|
|
||||||
private String cultivar;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MEALY = "mealy";
|
|
||||||
private Boolean mealy;
|
|
||||||
|
|
||||||
|
|
||||||
public AppleReq cultivar(String cultivar) {
|
|
||||||
|
|
||||||
this.cultivar = cultivar;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get cultivar
|
|
||||||
* @return cultivar
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CULTIVAR)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getCultivar() {
|
|
||||||
return cultivar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCultivar(String cultivar) {
|
|
||||||
this.cultivar = cultivar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AppleReq mealy(Boolean mealy) {
|
|
||||||
|
|
||||||
this.mealy = mealy;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mealy
|
|
||||||
* @return mealy
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MEALY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getMealy() {
|
|
||||||
return mealy;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMealy(Boolean mealy) {
|
|
||||||
this.mealy = mealy;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
AppleReq appleReq = (AppleReq) o;
|
|
||||||
return Objects.equals(this.cultivar, appleReq.cultivar) &&
|
|
||||||
Objects.equals(this.mealy, appleReq.mealy);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(cultivar, mealy);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class AppleReq {\n");
|
|
||||||
sb.append(" cultivar: ").append(toIndentedString(cultivar)).append("\n");
|
|
||||||
sb.append(" mealy: ").append(toIndentedString(mealy)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ArrayOfArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ArrayOfArrayOfNumberOnly {
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
|
||||||
|
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
|
||||||
if (this.arrayArrayNumber == null) {
|
|
||||||
this.arrayArrayNumber = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayArrayNumber
|
|
||||||
* @return arrayArrayNumber
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
|
||||||
return arrayArrayNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
|
|
||||||
return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(arrayArrayNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ArrayOfArrayOfNumberOnly {\n");
|
|
||||||
sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ArrayOfNumberOnly {
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
|
||||||
private List<BigDecimal> arrayNumber = null;
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
|
||||||
|
|
||||||
this.arrayNumber = arrayNumber;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
|
||||||
if (this.arrayNumber == null) {
|
|
||||||
this.arrayNumber = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayNumber
|
|
||||||
* @return arrayNumber
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<BigDecimal> getArrayNumber() {
|
|
||||||
return arrayNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
|
||||||
this.arrayNumber = arrayNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
|
|
||||||
return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(arrayNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ArrayOfNumberOnly {\n");
|
|
||||||
sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,191 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.openapitools.client.model.ReadOnlyFirst;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ArrayTest
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING,
|
|
||||||
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
|
|
||||||
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ArrayTest {
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
|
||||||
private List<String> arrayOfString = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
|
||||||
private List<List<Long>> arrayArrayOfInteger = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
|
||||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
|
||||||
|
|
||||||
this.arrayOfString = arrayOfString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
|
||||||
if (this.arrayOfString == null) {
|
|
||||||
this.arrayOfString = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayOfString
|
|
||||||
* @return arrayOfString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<String> getArrayOfString() {
|
|
||||||
return arrayOfString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayOfString(List<String> arrayOfString) {
|
|
||||||
this.arrayOfString = arrayOfString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
|
||||||
|
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
|
||||||
if (this.arrayArrayOfInteger == null) {
|
|
||||||
this.arrayArrayOfInteger = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayArrayOfInteger
|
|
||||||
* @return arrayArrayOfInteger
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
|
||||||
return arrayArrayOfInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
|
||||||
|
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
|
||||||
if (this.arrayArrayOfModel == null) {
|
|
||||||
this.arrayArrayOfModel = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayArrayOfModel
|
|
||||||
* @return arrayArrayOfModel
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
|
||||||
return arrayArrayOfModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ArrayTest arrayTest = (ArrayTest) o;
|
|
||||||
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
|
|
||||||
Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
|
|
||||||
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ArrayTest {\n");
|
|
||||||
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
|
|
||||||
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
|
|
||||||
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Banana
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Banana.JSON_PROPERTY_LENGTH_CM
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Banana {
|
|
||||||
public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm";
|
|
||||||
private BigDecimal lengthCm;
|
|
||||||
|
|
||||||
|
|
||||||
public Banana lengthCm(BigDecimal lengthCm) {
|
|
||||||
|
|
||||||
this.lengthCm = lengthCm;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get lengthCm
|
|
||||||
* @return lengthCm
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public BigDecimal getLengthCm() {
|
|
||||||
return lengthCm;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setLengthCm(BigDecimal lengthCm) {
|
|
||||||
this.lengthCm = lengthCm;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Banana banana = (Banana) o;
|
|
||||||
return Objects.equals(this.lengthCm, banana.lengthCm);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(lengthCm);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Banana {\n");
|
|
||||||
sb.append(" lengthCm: ").append(toIndentedString(lengthCm)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* BananaReq
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
BananaReq.JSON_PROPERTY_LENGTH_CM,
|
|
||||||
BananaReq.JSON_PROPERTY_SWEET
|
|
||||||
})
|
|
||||||
|
|
||||||
public class BananaReq {
|
|
||||||
public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm";
|
|
||||||
private BigDecimal lengthCm;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SWEET = "sweet";
|
|
||||||
private Boolean sweet;
|
|
||||||
|
|
||||||
|
|
||||||
public BananaReq lengthCm(BigDecimal lengthCm) {
|
|
||||||
|
|
||||||
this.lengthCm = lengthCm;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get lengthCm
|
|
||||||
* @return lengthCm
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public BigDecimal getLengthCm() {
|
|
||||||
return lengthCm;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setLengthCm(BigDecimal lengthCm) {
|
|
||||||
this.lengthCm = lengthCm;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public BananaReq sweet(Boolean sweet) {
|
|
||||||
|
|
||||||
this.sweet = sweet;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get sweet
|
|
||||||
* @return sweet
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SWEET)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getSweet() {
|
|
||||||
return sweet;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setSweet(Boolean sweet) {
|
|
||||||
this.sweet = sweet;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
BananaReq bananaReq = (BananaReq) o;
|
|
||||||
return Objects.equals(this.lengthCm, bananaReq.lengthCm) &&
|
|
||||||
Objects.equals(this.sweet, bananaReq.sweet);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(lengthCm, sweet);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class BananaReq {\n");
|
|
||||||
sb.append(" lengthCm: ").append(toIndentedString(lengthCm)).append("\n");
|
|
||||||
sb.append(" sweet: ").append(toIndentedString(sweet)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* BasquePig
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
BasquePig.JSON_PROPERTY_CLASS_NAME
|
|
||||||
})
|
|
||||||
|
|
||||||
public class BasquePig {
|
|
||||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
|
||||||
private String className;
|
|
||||||
|
|
||||||
|
|
||||||
public BasquePig className(String className) {
|
|
||||||
|
|
||||||
this.className = className;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get className
|
|
||||||
* @return className
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getClassName() {
|
|
||||||
return className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setClassName(String className) {
|
|
||||||
this.className = className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
BasquePig basquePig = (BasquePig) o;
|
|
||||||
return Objects.equals(this.className, basquePig.className);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(className);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class BasquePig {\n");
|
|
||||||
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,257 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Capitalization
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Capitalization.JSON_PROPERTY_SMALL_CAMEL,
|
|
||||||
Capitalization.JSON_PROPERTY_CAPITAL_CAMEL,
|
|
||||||
Capitalization.JSON_PROPERTY_SMALL_SNAKE,
|
|
||||||
Capitalization.JSON_PROPERTY_CAPITAL_SNAKE,
|
|
||||||
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
|
|
||||||
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Capitalization {
|
|
||||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
|
||||||
private String smallCamel;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
|
||||||
private String capitalCamel;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
|
||||||
private String smallSnake;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
|
||||||
private String capitalSnake;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
|
||||||
private String scAETHFlowPoints;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
|
||||||
private String ATT_NAME;
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization smallCamel(String smallCamel) {
|
|
||||||
|
|
||||||
this.smallCamel = smallCamel;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get smallCamel
|
|
||||||
* @return smallCamel
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getSmallCamel() {
|
|
||||||
return smallCamel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setSmallCamel(String smallCamel) {
|
|
||||||
this.smallCamel = smallCamel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization capitalCamel(String capitalCamel) {
|
|
||||||
|
|
||||||
this.capitalCamel = capitalCamel;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get capitalCamel
|
|
||||||
* @return capitalCamel
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getCapitalCamel() {
|
|
||||||
return capitalCamel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCapitalCamel(String capitalCamel) {
|
|
||||||
this.capitalCamel = capitalCamel;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization smallSnake(String smallSnake) {
|
|
||||||
|
|
||||||
this.smallSnake = smallSnake;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get smallSnake
|
|
||||||
* @return smallSnake
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getSmallSnake() {
|
|
||||||
return smallSnake;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setSmallSnake(String smallSnake) {
|
|
||||||
this.smallSnake = smallSnake;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization capitalSnake(String capitalSnake) {
|
|
||||||
|
|
||||||
this.capitalSnake = capitalSnake;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get capitalSnake
|
|
||||||
* @return capitalSnake
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getCapitalSnake() {
|
|
||||||
return capitalSnake;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCapitalSnake(String capitalSnake) {
|
|
||||||
this.capitalSnake = capitalSnake;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
|
||||||
|
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get scAETHFlowPoints
|
|
||||||
* @return scAETHFlowPoints
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getScAETHFlowPoints() {
|
|
||||||
return scAETHFlowPoints;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setScAETHFlowPoints(String scAETHFlowPoints) {
|
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Capitalization ATT_NAME(String ATT_NAME) {
|
|
||||||
|
|
||||||
this.ATT_NAME = ATT_NAME;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name of the pet
|
|
||||||
* @return ATT_NAME
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Name of the pet ")
|
|
||||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getATTNAME() {
|
|
||||||
return ATT_NAME;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setATTNAME(String ATT_NAME) {
|
|
||||||
this.ATT_NAME = ATT_NAME;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Capitalization capitalization = (Capitalization) o;
|
|
||||||
return Objects.equals(this.smallCamel, capitalization.smallCamel) &&
|
|
||||||
Objects.equals(this.capitalCamel, capitalization.capitalCamel) &&
|
|
||||||
Objects.equals(this.smallSnake, capitalization.smallSnake) &&
|
|
||||||
Objects.equals(this.capitalSnake, capitalization.capitalSnake) &&
|
|
||||||
Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
|
|
||||||
Objects.equals(this.ATT_NAME, capitalization.ATT_NAME);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Capitalization {\n");
|
|
||||||
sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n");
|
|
||||||
sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n");
|
|
||||||
sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n");
|
|
||||||
sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n");
|
|
||||||
sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n");
|
|
||||||
sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import org.openapitools.client.model.CatAllOf;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Cat
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Cat.JSON_PROPERTY_DECLAWED
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Cat extends Animal {
|
|
||||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
|
||||||
private Boolean declawed;
|
|
||||||
|
|
||||||
|
|
||||||
public Cat declawed(Boolean declawed) {
|
|
||||||
|
|
||||||
this.declawed = declawed;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get declawed
|
|
||||||
* @return declawed
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getDeclawed() {
|
|
||||||
return declawed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDeclawed(Boolean declawed) {
|
|
||||||
this.declawed = declawed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Cat cat = (Cat) o;
|
|
||||||
return Objects.equals(this.declawed, cat.declawed) &&
|
|
||||||
super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(declawed, super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Cat {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* CatAllOf
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
CatAllOf.JSON_PROPERTY_DECLAWED
|
|
||||||
})
|
|
||||||
|
|
||||||
public class CatAllOf {
|
|
||||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
|
||||||
private Boolean declawed;
|
|
||||||
|
|
||||||
|
|
||||||
public CatAllOf declawed(Boolean declawed) {
|
|
||||||
|
|
||||||
this.declawed = declawed;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get declawed
|
|
||||||
* @return declawed
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getDeclawed() {
|
|
||||||
return declawed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDeclawed(Boolean declawed) {
|
|
||||||
this.declawed = declawed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
CatAllOf catAllOf = (CatAllOf) o;
|
|
||||||
return Objects.equals(this.declawed, catAllOf.declawed);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(declawed);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class CatAllOf {\n");
|
|
||||||
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Category
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Category.JSON_PROPERTY_ID,
|
|
||||||
Category.JSON_PROPERTY_NAME
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Category {
|
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private String name = "default-name";
|
|
||||||
|
|
||||||
|
|
||||||
public Category id(Long id) {
|
|
||||||
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get id
|
|
||||||
* @return id
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Category name(String name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Category category = (Category) o;
|
|
||||||
return Objects.equals(this.id, category.id) &&
|
|
||||||
Objects.equals(this.name, category.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(id, name);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Category {\n");
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.ChildCatAllOf;
|
|
||||||
import org.openapitools.client.model.ParentPet;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ChildCat
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ChildCat.JSON_PROPERTY_NAME
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "pet_type", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ChildCat extends ParentPet {
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
|
|
||||||
public ChildCat name(String name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ChildCat childCat = (ChildCat) o;
|
|
||||||
return Objects.equals(this.name, childCat.name) &&
|
|
||||||
super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name, super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ChildCat {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ChildCatAllOf
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ChildCatAllOf.JSON_PROPERTY_NAME
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ChildCatAllOf {
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
|
|
||||||
public ChildCatAllOf name(String name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ChildCatAllOf childCatAllOf = (ChildCatAllOf) o;
|
|
||||||
return Objects.equals(this.name, childCatAllOf.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ChildCatAllOf {\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Model for testing model with \"_class\" property
|
|
||||||
*/
|
|
||||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ClassModel {
|
|
||||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
|
||||||
private String propertyClass;
|
|
||||||
|
|
||||||
|
|
||||||
public ClassModel propertyClass(String propertyClass) {
|
|
||||||
|
|
||||||
this.propertyClass = propertyClass;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get propertyClass
|
|
||||||
* @return propertyClass
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getPropertyClass() {
|
|
||||||
return propertyClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
|
||||||
this.propertyClass = propertyClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ClassModel classModel = (ClassModel) o;
|
|
||||||
return Objects.equals(this.propertyClass, classModel.propertyClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(propertyClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ClassModel {\n");
|
|
||||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Client
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Client.JSON_PROPERTY_CLIENT
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Client {
|
|
||||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
|
||||||
private String client;
|
|
||||||
|
|
||||||
|
|
||||||
public Client client(String client) {
|
|
||||||
|
|
||||||
this.client = client;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get client
|
|
||||||
* @return client
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getClient() {
|
|
||||||
return client;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setClient(String client) {
|
|
||||||
this.client = client;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Client client = (Client) o;
|
|
||||||
return Objects.equals(this.client, client.client);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(client);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Client {\n");
|
|
||||||
sb.append(" client: ").append(toIndentedString(client)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.QuadrilateralInterface;
|
|
||||||
import org.openapitools.client.model.ShapeInterface;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ComplexQuadrilateral
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ComplexQuadrilateral.JSON_PROPERTY_SHAPE_TYPE,
|
|
||||||
ComplexQuadrilateral.JSON_PROPERTY_QUADRILATERAL_TYPE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ComplexQuadrilateral {
|
|
||||||
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
|
|
||||||
private String shapeType;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType";
|
|
||||||
private String quadrilateralType;
|
|
||||||
|
|
||||||
|
|
||||||
public ComplexQuadrilateral shapeType(String shapeType) {
|
|
||||||
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shapeType
|
|
||||||
* @return shapeType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getShapeType() {
|
|
||||||
return shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShapeType(String shapeType) {
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ComplexQuadrilateral quadrilateralType(String quadrilateralType) {
|
|
||||||
|
|
||||||
this.quadrilateralType = quadrilateralType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get quadrilateralType
|
|
||||||
* @return quadrilateralType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getQuadrilateralType() {
|
|
||||||
return quadrilateralType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setQuadrilateralType(String quadrilateralType) {
|
|
||||||
this.quadrilateralType = quadrilateralType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ComplexQuadrilateral complexQuadrilateral = (ComplexQuadrilateral) o;
|
|
||||||
return Objects.equals(this.shapeType, complexQuadrilateral.shapeType) &&
|
|
||||||
Objects.equals(this.quadrilateralType, complexQuadrilateral.quadrilateralType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(shapeType, quadrilateralType);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ComplexQuadrilateral {\n");
|
|
||||||
sb.append(" shapeType: ").append(toIndentedString(shapeType)).append("\n");
|
|
||||||
sb.append(" quadrilateralType: ").append(toIndentedString(quadrilateralType)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* DanishPig
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
DanishPig.JSON_PROPERTY_CLASS_NAME
|
|
||||||
})
|
|
||||||
|
|
||||||
public class DanishPig {
|
|
||||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
|
||||||
private String className;
|
|
||||||
|
|
||||||
|
|
||||||
public DanishPig className(String className) {
|
|
||||||
|
|
||||||
this.className = className;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get className
|
|
||||||
* @return className
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getClassName() {
|
|
||||||
return className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setClassName(String className) {
|
|
||||||
this.className = className;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
DanishPig danishPig = (DanishPig) o;
|
|
||||||
return Objects.equals(this.className, danishPig.className);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(className);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class DanishPig {\n");
|
|
||||||
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import org.openapitools.client.model.DogAllOf;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dog
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Dog.JSON_PROPERTY_BREED
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Dog extends Animal {
|
|
||||||
public static final String JSON_PROPERTY_BREED = "breed";
|
|
||||||
private String breed;
|
|
||||||
|
|
||||||
|
|
||||||
public Dog breed(String breed) {
|
|
||||||
|
|
||||||
this.breed = breed;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get breed
|
|
||||||
* @return breed
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BREED)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getBreed() {
|
|
||||||
return breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setBreed(String breed) {
|
|
||||||
this.breed = breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Dog dog = (Dog) o;
|
|
||||||
return Objects.equals(this.breed, dog.breed) &&
|
|
||||||
super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(breed, super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Dog {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* DogAllOf
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
DogAllOf.JSON_PROPERTY_BREED
|
|
||||||
})
|
|
||||||
|
|
||||||
public class DogAllOf {
|
|
||||||
public static final String JSON_PROPERTY_BREED = "breed";
|
|
||||||
private String breed;
|
|
||||||
|
|
||||||
|
|
||||||
public DogAllOf breed(String breed) {
|
|
||||||
|
|
||||||
this.breed = breed;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get breed
|
|
||||||
* @return breed
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BREED)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getBreed() {
|
|
||||||
return breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setBreed(String breed) {
|
|
||||||
this.breed = breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
DogAllOf dogAllOf = (DogAllOf) o;
|
|
||||||
return Objects.equals(this.breed, dogAllOf.breed);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(breed);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class DogAllOf {\n");
|
|
||||||
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,226 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.openapitools.client.model.Fruit;
|
|
||||||
import org.openapitools.client.model.NullableShape;
|
|
||||||
import org.openapitools.client.model.Shape;
|
|
||||||
import org.openapitools.client.model.ShapeOrNull;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import org.openapitools.jackson.nullable.JsonNullable;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Drawing
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Drawing.JSON_PROPERTY_MAIN_SHAPE,
|
|
||||||
Drawing.JSON_PROPERTY_SHAPE_OR_NULL,
|
|
||||||
Drawing.JSON_PROPERTY_NULLABLE_SHAPE,
|
|
||||||
Drawing.JSON_PROPERTY_SHAPES
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Drawing extends HashMap<String, Fruit> {
|
|
||||||
public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape";
|
|
||||||
private Shape mainShape = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull";
|
|
||||||
private ShapeOrNull shapeOrNull = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NULLABLE_SHAPE = "nullableShape";
|
|
||||||
private JsonNullable<NullableShape> nullableShape = JsonNullable.<NullableShape>of(null);
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SHAPES = "shapes";
|
|
||||||
private List<Shape> shapes = null;
|
|
||||||
|
|
||||||
|
|
||||||
public Drawing mainShape(Shape mainShape) {
|
|
||||||
|
|
||||||
this.mainShape = mainShape;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mainShape
|
|
||||||
* @return mainShape
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAIN_SHAPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Shape getMainShape() {
|
|
||||||
return mainShape;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMainShape(Shape mainShape) {
|
|
||||||
this.mainShape = mainShape;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Drawing shapeOrNull(ShapeOrNull shapeOrNull) {
|
|
||||||
|
|
||||||
this.shapeOrNull = shapeOrNull;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shapeOrNull
|
|
||||||
* @return shapeOrNull
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public ShapeOrNull getShapeOrNull() {
|
|
||||||
return shapeOrNull;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShapeOrNull(ShapeOrNull shapeOrNull) {
|
|
||||||
this.shapeOrNull = shapeOrNull;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Drawing nullableShape(NullableShape nullableShape) {
|
|
||||||
this.nullableShape = JsonNullable.<NullableShape>of(nullableShape);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get nullableShape
|
|
||||||
* @return nullableShape
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public NullableShape getNullableShape() {
|
|
||||||
return nullableShape.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<NullableShape> getNullableShape_JsonNullable() {
|
|
||||||
return nullableShape;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE)
|
|
||||||
public void setNullableShape_JsonNullable(JsonNullable<NullableShape> nullableShape) {
|
|
||||||
this.nullableShape = nullableShape;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNullableShape(NullableShape nullableShape) {
|
|
||||||
this.nullableShape = JsonNullable.<NullableShape>of(nullableShape);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Drawing shapes(List<Shape> shapes) {
|
|
||||||
|
|
||||||
this.shapes = shapes;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Drawing addShapesItem(Shape shapesItem) {
|
|
||||||
if (this.shapes == null) {
|
|
||||||
this.shapes = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.shapes.add(shapesItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shapes
|
|
||||||
* @return shapes
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHAPES)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<Shape> getShapes() {
|
|
||||||
return shapes;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShapes(List<Shape> shapes) {
|
|
||||||
this.shapes = shapes;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Drawing drawing = (Drawing) o;
|
|
||||||
return Objects.equals(this.mainShape, drawing.mainShape) &&
|
|
||||||
Objects.equals(this.shapeOrNull, drawing.shapeOrNull) &&
|
|
||||||
Objects.equals(this.nullableShape, drawing.nullableShape) &&
|
|
||||||
Objects.equals(this.shapes, drawing.shapes) &&
|
|
||||||
super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(mainShape, shapeOrNull, nullableShape, shapes, super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Drawing {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append(" mainShape: ").append(toIndentedString(mainShape)).append("\n");
|
|
||||||
sb.append(" shapeOrNull: ").append(toIndentedString(shapeOrNull)).append("\n");
|
|
||||||
sb.append(" nullableShape: ").append(toIndentedString(nullableShape)).append("\n");
|
|
||||||
sb.append(" shapes: ").append(toIndentedString(shapes)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,213 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* EnumArrays
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
|
|
||||||
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
|
|
||||||
})
|
|
||||||
|
|
||||||
public class EnumArrays {
|
|
||||||
/**
|
|
||||||
* Gets or Sets justSymbol
|
|
||||||
*/
|
|
||||||
public enum JustSymbolEnum {
|
|
||||||
GREATER_THAN_OR_EQUAL_TO(">="),
|
|
||||||
|
|
||||||
DOLLAR("$");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
JustSymbolEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static JustSymbolEnum fromValue(String value) {
|
|
||||||
for (JustSymbolEnum b : JustSymbolEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
|
||||||
private JustSymbolEnum justSymbol;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets arrayEnum
|
|
||||||
*/
|
|
||||||
public enum ArrayEnumEnum {
|
|
||||||
FISH("fish"),
|
|
||||||
|
|
||||||
CRAB("crab");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
ArrayEnumEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static ArrayEnumEnum fromValue(String value) {
|
|
||||||
for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
|
|
||||||
private List<ArrayEnumEnum> arrayEnum = null;
|
|
||||||
|
|
||||||
|
|
||||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
|
||||||
|
|
||||||
this.justSymbol = justSymbol;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get justSymbol
|
|
||||||
* @return justSymbol
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JustSymbolEnum getJustSymbol() {
|
|
||||||
return justSymbol;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
|
||||||
this.justSymbol = justSymbol;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
|
||||||
|
|
||||||
this.arrayEnum = arrayEnum;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
|
||||||
if (this.arrayEnum == null) {
|
|
||||||
this.arrayEnum = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayEnum
|
|
||||||
* @return arrayEnum
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
|
||||||
return arrayEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
|
||||||
this.arrayEnum = arrayEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
EnumArrays enumArrays = (EnumArrays) o;
|
|
||||||
return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
|
|
||||||
Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(justSymbol, arrayEnum);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class EnumArrays {\n");
|
|
||||||
sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
|
|
||||||
sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
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.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets EnumClass
|
|
||||||
*/
|
|
||||||
public enum EnumClass {
|
|
||||||
|
|
||||||
_ABC("_abc"),
|
|
||||||
|
|
||||||
_EFG("-efg"),
|
|
||||||
|
|
||||||
_XYZ_("(xyz)");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
EnumClass(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumClass fromValue(String value) {
|
|
||||||
for (EnumClass b : EnumClass.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,479 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
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 java.util.NoSuchElementException;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* EnumTest
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
EnumTest.JSON_PROPERTY_ENUM_STRING,
|
|
||||||
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
|
|
||||||
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
|
|
||||||
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM,
|
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER,
|
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE,
|
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class EnumTest {
|
|
||||||
/**
|
|
||||||
* Gets or Sets enumString
|
|
||||||
*/
|
|
||||||
public enum EnumStringEnum {
|
|
||||||
UPPER("UPPER"),
|
|
||||||
|
|
||||||
LOWER("lower"),
|
|
||||||
|
|
||||||
EMPTY("");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
EnumStringEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumStringEnum fromValue(String value) {
|
|
||||||
for (EnumStringEnum b : EnumStringEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
|
||||||
private EnumStringEnum enumString;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets enumStringRequired
|
|
||||||
*/
|
|
||||||
public enum EnumStringRequiredEnum {
|
|
||||||
UPPER("UPPER"),
|
|
||||||
|
|
||||||
LOWER("lower"),
|
|
||||||
|
|
||||||
EMPTY("");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
EnumStringRequiredEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumStringRequiredEnum fromValue(String value) {
|
|
||||||
for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
|
||||||
private EnumStringRequiredEnum enumStringRequired;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets enumInteger
|
|
||||||
*/
|
|
||||||
public enum EnumIntegerEnum {
|
|
||||||
NUMBER_1(1),
|
|
||||||
|
|
||||||
NUMBER_MINUS_1(-1);
|
|
||||||
|
|
||||||
private Integer value;
|
|
||||||
|
|
||||||
EnumIntegerEnum(Integer value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public Integer getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumIntegerEnum fromValue(Integer value) {
|
|
||||||
for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
|
||||||
private EnumIntegerEnum enumInteger;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets enumNumber
|
|
||||||
*/
|
|
||||||
public enum EnumNumberEnum {
|
|
||||||
NUMBER_1_DOT_1(1.1),
|
|
||||||
|
|
||||||
NUMBER_MINUS_1_DOT_2(-1.2);
|
|
||||||
|
|
||||||
private Double value;
|
|
||||||
|
|
||||||
EnumNumberEnum(Double value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public Double getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumNumberEnum fromValue(Double value) {
|
|
||||||
for (EnumNumberEnum b : EnumNumberEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
|
|
||||||
private EnumNumberEnum enumNumber;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
|
||||||
private JsonNullable<OuterEnum> outerEnum = JsonNullable.<OuterEnum>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
|
|
||||||
private OuterEnumInteger outerEnumInteger;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
|
|
||||||
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
|
|
||||||
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest enumString(EnumStringEnum enumString) {
|
|
||||||
|
|
||||||
this.enumString = enumString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get enumString
|
|
||||||
* @return enumString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public EnumStringEnum getEnumString() {
|
|
||||||
return enumString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumString(EnumStringEnum enumString) {
|
|
||||||
this.enumString = enumString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
|
|
||||||
|
|
||||||
this.enumStringRequired = enumStringRequired;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get enumStringRequired
|
|
||||||
* @return enumStringRequired
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
|
||||||
return enumStringRequired;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
|
|
||||||
this.enumStringRequired = enumStringRequired;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
|
||||||
|
|
||||||
this.enumInteger = enumInteger;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get enumInteger
|
|
||||||
* @return enumInteger
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
|
||||||
return enumInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
|
||||||
this.enumInteger = enumInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
|
||||||
|
|
||||||
this.enumNumber = enumNumber;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get enumNumber
|
|
||||||
* @return enumNumber
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public EnumNumberEnum getEnumNumber() {
|
|
||||||
return enumNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
|
||||||
this.enumNumber = enumNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnum(OuterEnum outerEnum) {
|
|
||||||
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get outerEnum
|
|
||||||
* @return outerEnum
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public OuterEnum getOuterEnum() {
|
|
||||||
return outerEnum.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<OuterEnum> getOuterEnum_JsonNullable() {
|
|
||||||
return outerEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
|
||||||
public void setOuterEnum_JsonNullable(JsonNullable<OuterEnum> outerEnum) {
|
|
||||||
this.outerEnum = outerEnum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOuterEnum(OuterEnum outerEnum) {
|
|
||||||
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
|
|
||||||
|
|
||||||
this.outerEnumInteger = outerEnumInteger;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get outerEnumInteger
|
|
||||||
* @return outerEnumInteger
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OuterEnumInteger getOuterEnumInteger() {
|
|
||||||
return outerEnumInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
|
|
||||||
this.outerEnumInteger = outerEnumInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
|
||||||
|
|
||||||
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get outerEnumDefaultValue
|
|
||||||
* @return outerEnumDefaultValue
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OuterEnumDefaultValue getOuterEnumDefaultValue() {
|
|
||||||
return outerEnumDefaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
|
||||||
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
|
||||||
|
|
||||||
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get outerEnumIntegerDefaultValue
|
|
||||||
* @return outerEnumIntegerDefaultValue
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
|
|
||||||
return outerEnumIntegerDefaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
|
||||||
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
EnumTest enumTest = (EnumTest) o;
|
|
||||||
return Objects.equals(this.enumString, enumTest.enumString) &&
|
|
||||||
Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
|
|
||||||
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
|
||||||
Objects.equals(this.enumNumber, enumTest.enumNumber) &&
|
|
||||||
Objects.equals(this.outerEnum, enumTest.outerEnum) &&
|
|
||||||
Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
|
|
||||||
Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
|
|
||||||
Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum, outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class EnumTest {\n");
|
|
||||||
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
|
|
||||||
sb.append(" enumStringRequired: ").append(toIndentedString(enumStringRequired)).append("\n");
|
|
||||||
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
|
||||||
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
|
||||||
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
|
|
||||||
sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n");
|
|
||||||
sb.append(" outerEnumDefaultValue: ").append(toIndentedString(outerEnumDefaultValue)).append("\n");
|
|
||||||
sb.append(" outerEnumIntegerDefaultValue: ").append(toIndentedString(outerEnumIntegerDefaultValue)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.ShapeInterface;
|
|
||||||
import org.openapitools.client.model.TriangleInterface;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* EquilateralTriangle
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
EquilateralTriangle.JSON_PROPERTY_SHAPE_TYPE,
|
|
||||||
EquilateralTriangle.JSON_PROPERTY_TRIANGLE_TYPE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class EquilateralTriangle {
|
|
||||||
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
|
|
||||||
private String shapeType;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
|
|
||||||
private String triangleType;
|
|
||||||
|
|
||||||
|
|
||||||
public EquilateralTriangle shapeType(String shapeType) {
|
|
||||||
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shapeType
|
|
||||||
* @return shapeType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getShapeType() {
|
|
||||||
return shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShapeType(String shapeType) {
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EquilateralTriangle triangleType(String triangleType) {
|
|
||||||
|
|
||||||
this.triangleType = triangleType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get triangleType
|
|
||||||
* @return triangleType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getTriangleType() {
|
|
||||||
return triangleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setTriangleType(String triangleType) {
|
|
||||||
this.triangleType = triangleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
EquilateralTriangle equilateralTriangle = (EquilateralTriangle) o;
|
|
||||||
return Objects.equals(this.shapeType, equilateralTriangle.shapeType) &&
|
|
||||||
Objects.equals(this.triangleType, equilateralTriangle.triangleType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(shapeType, triangleType);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class EquilateralTriangle {\n");
|
|
||||||
sb.append(" shapeType: ").append(toIndentedString(shapeType)).append("\n");
|
|
||||||
sb.append(" triangleType: ").append(toIndentedString(triangleType)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* FileSchemaTestClass
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
FileSchemaTestClass.JSON_PROPERTY_FILE,
|
|
||||||
FileSchemaTestClass.JSON_PROPERTY_FILES
|
|
||||||
})
|
|
||||||
|
|
||||||
public class FileSchemaTestClass {
|
|
||||||
public static final String JSON_PROPERTY_FILE = "file";
|
|
||||||
private java.io.File file;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_FILES = "files";
|
|
||||||
private List<java.io.File> files = null;
|
|
||||||
|
|
||||||
|
|
||||||
public FileSchemaTestClass file(java.io.File file) {
|
|
||||||
|
|
||||||
this.file = file;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get file
|
|
||||||
* @return file
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FILE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public java.io.File getFile() {
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setFile(java.io.File file) {
|
|
||||||
this.file = file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FileSchemaTestClass files(List<java.io.File> files) {
|
|
||||||
|
|
||||||
this.files = files;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public FileSchemaTestClass addFilesItem(java.io.File filesItem) {
|
|
||||||
if (this.files == null) {
|
|
||||||
this.files = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.files.add(filesItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get files
|
|
||||||
* @return files
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FILES)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<java.io.File> getFiles() {
|
|
||||||
return files;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setFiles(List<java.io.File> files) {
|
|
||||||
this.files = files;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
|
|
||||||
return Objects.equals(this.file, fileSchemaTestClass.file) &&
|
|
||||||
Objects.equals(this.files, fileSchemaTestClass.files);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(file, files);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class FileSchemaTestClass {\n");
|
|
||||||
sb.append(" file: ").append(toIndentedString(file)).append("\n");
|
|
||||||
sb.append(" files: ").append(toIndentedString(files)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Foo
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Foo.JSON_PROPERTY_BAR
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Foo {
|
|
||||||
public static final String JSON_PROPERTY_BAR = "bar";
|
|
||||||
private String bar = "bar";
|
|
||||||
|
|
||||||
|
|
||||||
public Foo bar(String bar) {
|
|
||||||
|
|
||||||
this.bar = bar;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get bar
|
|
||||||
* @return bar
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BAR)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getBar() {
|
|
||||||
return bar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setBar(String bar) {
|
|
||||||
this.bar = bar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Foo foo = (Foo) o;
|
|
||||||
return Objects.equals(this.bar, foo.bar);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(bar);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Foo {\n");
|
|
||||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,547 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.File;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.OffsetDateTime;
|
|
||||||
import java.util.UUID;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* FormatTest
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
FormatTest.JSON_PROPERTY_INTEGER,
|
|
||||||
FormatTest.JSON_PROPERTY_INT32,
|
|
||||||
FormatTest.JSON_PROPERTY_INT64,
|
|
||||||
FormatTest.JSON_PROPERTY_NUMBER,
|
|
||||||
FormatTest.JSON_PROPERTY_FLOAT,
|
|
||||||
FormatTest.JSON_PROPERTY_DOUBLE,
|
|
||||||
FormatTest.JSON_PROPERTY_STRING,
|
|
||||||
FormatTest.JSON_PROPERTY_BYTE,
|
|
||||||
FormatTest.JSON_PROPERTY_BINARY,
|
|
||||||
FormatTest.JSON_PROPERTY_DATE,
|
|
||||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
|
||||||
FormatTest.JSON_PROPERTY_UUID,
|
|
||||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
|
||||||
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS,
|
|
||||||
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER
|
|
||||||
})
|
|
||||||
|
|
||||||
public class FormatTest {
|
|
||||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
|
||||||
private Integer integer;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
|
||||||
private Integer int32;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
|
||||||
private Long int64;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
|
||||||
private BigDecimal number;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
|
||||||
private Float _float;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
|
||||||
private Double _double;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STRING = "string";
|
|
||||||
private String string;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
|
||||||
private byte[] _byte;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
|
||||||
private File binary;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE = "date";
|
|
||||||
private LocalDate date;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
|
||||||
private OffsetDateTime dateTime;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
|
||||||
private UUID uuid;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
|
|
||||||
private String patternWithDigits;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
|
|
||||||
private String patternWithDigitsAndDelimiter;
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest integer(Integer integer) {
|
|
||||||
|
|
||||||
this.integer = integer;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get integer
|
|
||||||
* minimum: 10
|
|
||||||
* maximum: 100
|
|
||||||
* @return integer
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getInteger() {
|
|
||||||
return integer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInteger(Integer integer) {
|
|
||||||
this.integer = integer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest int32(Integer int32) {
|
|
||||||
|
|
||||||
this.int32 = int32;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get int32
|
|
||||||
* minimum: 20
|
|
||||||
* maximum: 200
|
|
||||||
* @return int32
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INT32)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getInt32() {
|
|
||||||
return int32;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInt32(Integer int32) {
|
|
||||||
this.int32 = int32;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest int64(Long int64) {
|
|
||||||
|
|
||||||
this.int64 = int64;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get int64
|
|
||||||
* @return int64
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INT64)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getInt64() {
|
|
||||||
return int64;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInt64(Long int64) {
|
|
||||||
this.int64 = int64;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest number(BigDecimal number) {
|
|
||||||
|
|
||||||
this.number = number;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get number
|
|
||||||
* minimum: 32.1
|
|
||||||
* maximum: 543.2
|
|
||||||
* @return number
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public BigDecimal getNumber() {
|
|
||||||
return number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setNumber(BigDecimal number) {
|
|
||||||
this.number = number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest _float(Float _float) {
|
|
||||||
|
|
||||||
this._float = _float;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get _float
|
|
||||||
* minimum: 54.3
|
|
||||||
* maximum: 987.6
|
|
||||||
* @return _float
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Float getFloat() {
|
|
||||||
return _float;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setFloat(Float _float) {
|
|
||||||
this._float = _float;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest _double(Double _double) {
|
|
||||||
|
|
||||||
this._double = _double;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get _double
|
|
||||||
* minimum: 67.8
|
|
||||||
* maximum: 123.4
|
|
||||||
* @return _double
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Double getDouble() {
|
|
||||||
return _double;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDouble(Double _double) {
|
|
||||||
this._double = _double;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest string(String string) {
|
|
||||||
|
|
||||||
this.string = string;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get string
|
|
||||||
* @return string
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getString() {
|
|
||||||
return string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setString(String string) {
|
|
||||||
this.string = string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest _byte(byte[] _byte) {
|
|
||||||
|
|
||||||
this._byte = _byte;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get _byte
|
|
||||||
* @return _byte
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public byte[] getByte() {
|
|
||||||
return _byte;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setByte(byte[] _byte) {
|
|
||||||
this._byte = _byte;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest binary(File binary) {
|
|
||||||
|
|
||||||
this.binary = binary;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get binary
|
|
||||||
* @return binary
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public File getBinary() {
|
|
||||||
return binary;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setBinary(File binary) {
|
|
||||||
this.binary = binary;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest date(LocalDate date) {
|
|
||||||
|
|
||||||
this.date = date;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get date
|
|
||||||
* @return date
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public LocalDate getDate() {
|
|
||||||
return date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDate(LocalDate date) {
|
|
||||||
this.date = date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest dateTime(OffsetDateTime dateTime) {
|
|
||||||
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get dateTime
|
|
||||||
* @return dateTime
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OffsetDateTime getDateTime() {
|
|
||||||
return dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDateTime(OffsetDateTime dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest uuid(UUID uuid) {
|
|
||||||
|
|
||||||
this.uuid = uuid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get uuid
|
|
||||||
* @return uuid
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_UUID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public UUID getUuid() {
|
|
||||||
return uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setUuid(UUID uuid) {
|
|
||||||
this.uuid = uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest password(String password) {
|
|
||||||
|
|
||||||
this.password = password;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get password
|
|
||||||
* @return password
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest patternWithDigits(String patternWithDigits) {
|
|
||||||
|
|
||||||
this.patternWithDigits = patternWithDigits;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A string that is a 10 digit number. Can have leading zeros.
|
|
||||||
* @return patternWithDigits
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getPatternWithDigits() {
|
|
||||||
return patternWithDigits;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPatternWithDigits(String patternWithDigits) {
|
|
||||||
this.patternWithDigits = patternWithDigits;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
|
||||||
|
|
||||||
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
|
||||||
* @return patternWithDigitsAndDelimiter
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(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)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getPatternWithDigitsAndDelimiter() {
|
|
||||||
return patternWithDigitsAndDelimiter;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
|
||||||
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
FormatTest formatTest = (FormatTest) o;
|
|
||||||
return Objects.equals(this.integer, formatTest.integer) &&
|
|
||||||
Objects.equals(this.int32, formatTest.int32) &&
|
|
||||||
Objects.equals(this.int64, formatTest.int64) &&
|
|
||||||
Objects.equals(this.number, formatTest.number) &&
|
|
||||||
Objects.equals(this._float, formatTest._float) &&
|
|
||||||
Objects.equals(this._double, formatTest._double) &&
|
|
||||||
Objects.equals(this.string, formatTest.string) &&
|
|
||||||
Arrays.equals(this._byte, formatTest._byte) &&
|
|
||||||
Objects.equals(this.binary, formatTest.binary) &&
|
|
||||||
Objects.equals(this.date, formatTest.date) &&
|
|
||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
|
||||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
|
||||||
Objects.equals(this.password, formatTest.password) &&
|
|
||||||
Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
|
|
||||||
Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class FormatTest {\n");
|
|
||||||
sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
|
|
||||||
sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
|
|
||||||
sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
|
|
||||||
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
|
||||||
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
|
||||||
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
|
||||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
|
||||||
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
|
||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
|
||||||
sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n");
|
|
||||||
sb.append(" patternWithDigitsAndDelimiter: ").append(toIndentedString(patternWithDigitsAndDelimiter)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.openapitools.client.model.Apple;
|
|
||||||
import org.openapitools.client.model.Banana;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=Fruit.FruitDeserializer.class)
|
|
||||||
public class Fruit extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(Fruit.class.getName());
|
|
||||||
|
|
||||||
public static class FruitDeserializer extends StdDeserializer<Fruit> {
|
|
||||||
public FruitDeserializer() {
|
|
||||||
this(Fruit.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FruitDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Fruit deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
int match = 0;
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialize Apple
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Apple.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Apple'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Apple'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize Banana
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Banana.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Banana'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Banana'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (match == 1) {
|
|
||||||
Fruit ret = new Fruit();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
throw new IOException(String.format("Failed deserialization for Fruit: %d classes match result, expected 1", match));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public Fruit() {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Fruit(Apple o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Fruit(Banana o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("Apple", new GenericType<Apple>() {
|
|
||||||
});
|
|
||||||
schemas.put("Banana", new GenericType<Banana>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return Fruit.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof Apple) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof Banana) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be Apple, Banana");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.openapitools.client.model.AppleReq;
|
|
||||||
import org.openapitools.client.model.BananaReq;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=FruitReq.FruitReqDeserializer.class)
|
|
||||||
public class FruitReq extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(FruitReq.class.getName());
|
|
||||||
|
|
||||||
public static class FruitReqDeserializer extends StdDeserializer<FruitReq> {
|
|
||||||
public FruitReqDeserializer() {
|
|
||||||
this(FruitReq.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FruitReqDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public FruitReq deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
int match = 0;
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialize AppleReq
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(AppleReq.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'AppleReq'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'AppleReq'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize BananaReq
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(BananaReq.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'BananaReq'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'BananaReq'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (match == 1) {
|
|
||||||
FruitReq ret = new FruitReq();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
throw new IOException(String.format("Failed deserialization for FruitReq: %d classes match result, expected 1", match));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public FruitReq() {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FruitReq(AppleReq o) {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FruitReq(BananaReq o) {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("AppleReq", new GenericType<AppleReq>() {
|
|
||||||
});
|
|
||||||
schemas.put("BananaReq", new GenericType<BananaReq>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return FruitReq.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof AppleReq) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof BananaReq) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be AppleReq, BananaReq");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.openapitools.client.model.Apple;
|
|
||||||
import org.openapitools.client.model.Banana;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=GmFruit.GmFruitDeserializer.class)
|
|
||||||
public class GmFruit extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(GmFruit.class.getName());
|
|
||||||
|
|
||||||
public static class GmFruitDeserializer extends StdDeserializer<GmFruit> {
|
|
||||||
public GmFruitDeserializer() {
|
|
||||||
this(GmFruit.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GmFruitDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public GmFruit deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialzie Apple
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Apple.class);
|
|
||||||
GmFruit ret = new GmFruit();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue, log to help debugging
|
|
||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialzie Banana
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Banana.class);
|
|
||||||
GmFruit ret = new GmFruit();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue, log to help debugging
|
|
||||||
log.log(Level.FINER, "Input data does not match 'GmFruit'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new IOException(String.format("Failed deserialization for GmFruit: no match found"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in anyOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public GmFruit() {
|
|
||||||
super("anyOf", Boolean.FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GmFruit(Apple o) {
|
|
||||||
super("anyOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GmFruit(Banana o) {
|
|
||||||
super("anyOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("Apple", new GenericType<Apple>() {
|
|
||||||
});
|
|
||||||
schemas.put("Banana", new GenericType<Banana>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return GmFruit.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof Apple) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof Banana) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be Apple, Banana");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,111 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.ChildCat;
|
|
||||||
import org.openapitools.client.model.ParentPet;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* GrandparentAnimal
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
GrandparentAnimal.JSON_PROPERTY_PET_TYPE
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "pet_type", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
@JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"),
|
|
||||||
@JsonSubTypes.Type(value = ParentPet.class, name = "ParentPet"),
|
|
||||||
})
|
|
||||||
|
|
||||||
public class GrandparentAnimal {
|
|
||||||
public static final String JSON_PROPERTY_PET_TYPE = "pet_type";
|
|
||||||
private String petType;
|
|
||||||
|
|
||||||
|
|
||||||
public GrandparentAnimal petType(String petType) {
|
|
||||||
|
|
||||||
this.petType = petType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get petType
|
|
||||||
* @return petType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PET_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getPetType() {
|
|
||||||
return petType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPetType(String petType) {
|
|
||||||
this.petType = petType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
GrandparentAnimal grandparentAnimal = (GrandparentAnimal) o;
|
|
||||||
return Objects.equals(this.petType, grandparentAnimal.petType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(petType);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class GrandparentAnimal {\n");
|
|
||||||
sb.append(" petType: ").append(toIndentedString(petType)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,115 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HasOnlyReadOnly
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
HasOnlyReadOnly.JSON_PROPERTY_BAR,
|
|
||||||
HasOnlyReadOnly.JSON_PROPERTY_FOO
|
|
||||||
})
|
|
||||||
|
|
||||||
public class HasOnlyReadOnly {
|
|
||||||
public static final String JSON_PROPERTY_BAR = "bar";
|
|
||||||
private String bar;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_FOO = "foo";
|
|
||||||
private String foo;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get bar
|
|
||||||
* @return bar
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BAR)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getBar() {
|
|
||||||
return bar;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get foo
|
|
||||||
* @return foo
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FOO)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getFoo() {
|
|
||||||
return foo;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
|
|
||||||
return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
|
|
||||||
Objects.equals(this.foo, hasOnlyReadOnly.foo);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(bar, foo);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class HasOnlyReadOnly {\n");
|
|
||||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
|
||||||
sb.append(" foo: ").append(toIndentedString(foo)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,116 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
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 in generated model.
|
|
||||||
*/
|
|
||||||
@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.")
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class HealthCheckResult {
|
|
||||||
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
|
|
||||||
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
|
|
||||||
|
|
||||||
|
|
||||||
public HealthCheckResult nullableMessage(String nullableMessage) {
|
|
||||||
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get nullableMessage
|
|
||||||
* @return nullableMessage
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public String getNullableMessage() {
|
|
||||||
return nullableMessage.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<String> getNullableMessage_JsonNullable() {
|
|
||||||
return nullableMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
|
||||||
public void setNullableMessage_JsonNullable(JsonNullable<String> nullableMessage) {
|
|
||||||
this.nullableMessage = nullableMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNullableMessage(String nullableMessage) {
|
|
||||||
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
HealthCheckResult healthCheckResult = (HealthCheckResult) o;
|
|
||||||
return Objects.equals(this.nullableMessage, healthCheckResult.nullableMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(nullableMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class HealthCheckResult {\n");
|
|
||||||
sb.append(" nullableMessage: ").append(toIndentedString(nullableMessage)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject.JSON_PROPERTY_NAME,
|
|
||||||
InlineObject.JSON_PROPERTY_STATUS
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject {
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STATUS = "status";
|
|
||||||
private String status;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject name(String name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Updated name of the pet
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Updated name of the pet")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject status(String status) {
|
|
||||||
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Updated status of the pet
|
|
||||||
* @return status
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Updated status of the pet")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setStatus(String status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject inlineObject = (InlineObject) o;
|
|
||||||
return Objects.equals(this.name, inlineObject.name) &&
|
|
||||||
Objects.equals(this.status, inlineObject.status);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name, status);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject {\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.File;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject1
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject1.JSON_PROPERTY_ADDITIONAL_METADATA,
|
|
||||||
InlineObject1.JSON_PROPERTY_FILE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject1 {
|
|
||||||
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
|
|
||||||
private String additionalMetadata;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_FILE = "file";
|
|
||||||
private File file;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject1 additionalMetadata(String additionalMetadata) {
|
|
||||||
|
|
||||||
this.additionalMetadata = additionalMetadata;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Additional data to pass to server
|
|
||||||
* @return additionalMetadata
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Additional data to pass to server")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getAdditionalMetadata() {
|
|
||||||
return additionalMetadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setAdditionalMetadata(String additionalMetadata) {
|
|
||||||
this.additionalMetadata = additionalMetadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject1 file(File file) {
|
|
||||||
|
|
||||||
this.file = file;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* file to upload
|
|
||||||
* @return file
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "file to upload")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FILE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public File getFile() {
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setFile(File file) {
|
|
||||||
this.file = file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject1 inlineObject1 = (InlineObject1) o;
|
|
||||||
return Objects.equals(this.additionalMetadata, inlineObject1.additionalMetadata) &&
|
|
||||||
Objects.equals(this.file, inlineObject1.file);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(additionalMetadata, file);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject1 {\n");
|
|
||||||
sb.append(" additionalMetadata: ").append(toIndentedString(additionalMetadata)).append("\n");
|
|
||||||
sb.append(" file: ").append(toIndentedString(file)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,215 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject2
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING_ARRAY,
|
|
||||||
InlineObject2.JSON_PROPERTY_ENUM_FORM_STRING
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject2 {
|
|
||||||
/**
|
|
||||||
* Gets or Sets enumFormStringArray
|
|
||||||
*/
|
|
||||||
public enum EnumFormStringArrayEnum {
|
|
||||||
GREATER_THAN(">"),
|
|
||||||
|
|
||||||
DOLLAR("$");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
EnumFormStringArrayEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumFormStringArrayEnum fromValue(String value) {
|
|
||||||
for (EnumFormStringArrayEnum b : EnumFormStringArrayEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_FORM_STRING_ARRAY = "enum_form_string_array";
|
|
||||||
private List<EnumFormStringArrayEnum> enumFormStringArray = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Form parameter enum test (string)
|
|
||||||
*/
|
|
||||||
public enum EnumFormStringEnum {
|
|
||||||
_ABC("_abc"),
|
|
||||||
|
|
||||||
_EFG("-efg"),
|
|
||||||
|
|
||||||
_XYZ_("(xyz)");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
EnumFormStringEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static EnumFormStringEnum fromValue(String value) {
|
|
||||||
for (EnumFormStringEnum b : EnumFormStringEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ENUM_FORM_STRING = "enum_form_string";
|
|
||||||
private EnumFormStringEnum enumFormString = EnumFormStringEnum._EFG;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject2 enumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) {
|
|
||||||
|
|
||||||
this.enumFormStringArray = enumFormStringArray;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public InlineObject2 addEnumFormStringArrayItem(EnumFormStringArrayEnum enumFormStringArrayItem) {
|
|
||||||
if (this.enumFormStringArray == null) {
|
|
||||||
this.enumFormStringArray = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.enumFormStringArray.add(enumFormStringArrayItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Form parameter enum test (string array)
|
|
||||||
* @return enumFormStringArray
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Form parameter enum test (string array)")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING_ARRAY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<EnumFormStringArrayEnum> getEnumFormStringArray() {
|
|
||||||
return enumFormStringArray;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) {
|
|
||||||
this.enumFormStringArray = enumFormStringArray;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject2 enumFormString(EnumFormStringEnum enumFormString) {
|
|
||||||
|
|
||||||
this.enumFormString = enumFormString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Form parameter enum test (string)
|
|
||||||
* @return enumFormString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Form parameter enum test (string)")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public EnumFormStringEnum getEnumFormString() {
|
|
||||||
return enumFormString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setEnumFormString(EnumFormStringEnum enumFormString) {
|
|
||||||
this.enumFormString = enumFormString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject2 inlineObject2 = (InlineObject2) o;
|
|
||||||
return Objects.equals(this.enumFormStringArray, inlineObject2.enumFormStringArray) &&
|
|
||||||
Objects.equals(this.enumFormString, inlineObject2.enumFormString);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(enumFormStringArray, enumFormString);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject2 {\n");
|
|
||||||
sb.append(" enumFormStringArray: ").append(toIndentedString(enumFormStringArray)).append("\n");
|
|
||||||
sb.append(" enumFormString: ").append(toIndentedString(enumFormString)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,514 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.File;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.OffsetDateTime;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject3
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject3.JSON_PROPERTY_INTEGER,
|
|
||||||
InlineObject3.JSON_PROPERTY_INT32,
|
|
||||||
InlineObject3.JSON_PROPERTY_INT64,
|
|
||||||
InlineObject3.JSON_PROPERTY_NUMBER,
|
|
||||||
InlineObject3.JSON_PROPERTY_FLOAT,
|
|
||||||
InlineObject3.JSON_PROPERTY_DOUBLE,
|
|
||||||
InlineObject3.JSON_PROPERTY_STRING,
|
|
||||||
InlineObject3.JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER,
|
|
||||||
InlineObject3.JSON_PROPERTY_BYTE,
|
|
||||||
InlineObject3.JSON_PROPERTY_BINARY,
|
|
||||||
InlineObject3.JSON_PROPERTY_DATE,
|
|
||||||
InlineObject3.JSON_PROPERTY_DATE_TIME,
|
|
||||||
InlineObject3.JSON_PROPERTY_PASSWORD,
|
|
||||||
InlineObject3.JSON_PROPERTY_CALLBACK
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject3 {
|
|
||||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
|
||||||
private Integer integer;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
|
||||||
private Integer int32;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
|
||||||
private Long int64;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
|
||||||
private BigDecimal number;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
|
||||||
private Float _float;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
|
||||||
private Double _double;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STRING = "string";
|
|
||||||
private String string;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER = "pattern_without_delimiter";
|
|
||||||
private String patternWithoutDelimiter;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
|
||||||
private byte[] _byte;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
|
||||||
private File binary;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE = "date";
|
|
||||||
private LocalDate date;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
|
||||||
private OffsetDateTime dateTime;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_CALLBACK = "callback";
|
|
||||||
private String callback;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 integer(Integer integer) {
|
|
||||||
|
|
||||||
this.integer = integer;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* minimum: 10
|
|
||||||
* maximum: 100
|
|
||||||
* @return integer
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getInteger() {
|
|
||||||
return integer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInteger(Integer integer) {
|
|
||||||
this.integer = integer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 int32(Integer int32) {
|
|
||||||
|
|
||||||
this.int32 = int32;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* minimum: 20
|
|
||||||
* maximum: 200
|
|
||||||
* @return int32
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INT32)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getInt32() {
|
|
||||||
return int32;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInt32(Integer int32) {
|
|
||||||
this.int32 = int32;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 int64(Long int64) {
|
|
||||||
|
|
||||||
this.int64 = int64;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return int64
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INT64)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getInt64() {
|
|
||||||
return int64;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setInt64(Long int64) {
|
|
||||||
this.int64 = int64;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 number(BigDecimal number) {
|
|
||||||
|
|
||||||
this.number = number;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* minimum: 32.1
|
|
||||||
* maximum: 543.2
|
|
||||||
* @return number
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public BigDecimal getNumber() {
|
|
||||||
return number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setNumber(BigDecimal number) {
|
|
||||||
this.number = number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 _float(Float _float) {
|
|
||||||
|
|
||||||
this._float = _float;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* maximum: 987.6
|
|
||||||
* @return _float
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Float getFloat() {
|
|
||||||
return _float;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setFloat(Float _float) {
|
|
||||||
this._float = _float;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 _double(Double _double) {
|
|
||||||
|
|
||||||
this._double = _double;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* minimum: 67.8
|
|
||||||
* maximum: 123.4
|
|
||||||
* @return _double
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public Double getDouble() {
|
|
||||||
return _double;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDouble(Double _double) {
|
|
||||||
this._double = _double;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 string(String string) {
|
|
||||||
|
|
||||||
this.string = string;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return string
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getString() {
|
|
||||||
return string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setString(String string) {
|
|
||||||
this.string = string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 patternWithoutDelimiter(String patternWithoutDelimiter) {
|
|
||||||
|
|
||||||
this.patternWithoutDelimiter = patternWithoutDelimiter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return patternWithoutDelimiter
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getPatternWithoutDelimiter() {
|
|
||||||
return patternWithoutDelimiter;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPatternWithoutDelimiter(String patternWithoutDelimiter) {
|
|
||||||
this.patternWithoutDelimiter = patternWithoutDelimiter;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 _byte(byte[] _byte) {
|
|
||||||
|
|
||||||
this._byte = _byte;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return _byte
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public byte[] getByte() {
|
|
||||||
return _byte;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setByte(byte[] _byte) {
|
|
||||||
this._byte = _byte;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 binary(File binary) {
|
|
||||||
|
|
||||||
this.binary = binary;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return binary
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public File getBinary() {
|
|
||||||
return binary;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setBinary(File binary) {
|
|
||||||
this.binary = binary;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 date(LocalDate date) {
|
|
||||||
|
|
||||||
this.date = date;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return date
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public LocalDate getDate() {
|
|
||||||
return date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDate(LocalDate date) {
|
|
||||||
this.date = date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 dateTime(OffsetDateTime dateTime) {
|
|
||||||
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return dateTime
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OffsetDateTime getDateTime() {
|
|
||||||
return dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDateTime(OffsetDateTime dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 password(String password) {
|
|
||||||
|
|
||||||
this.password = password;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return password
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject3 callback(String callback) {
|
|
||||||
|
|
||||||
this.callback = callback;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* None
|
|
||||||
* @return callback
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "None")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CALLBACK)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getCallback() {
|
|
||||||
return callback;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCallback(String callback) {
|
|
||||||
this.callback = callback;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject3 inlineObject3 = (InlineObject3) o;
|
|
||||||
return Objects.equals(this.integer, inlineObject3.integer) &&
|
|
||||||
Objects.equals(this.int32, inlineObject3.int32) &&
|
|
||||||
Objects.equals(this.int64, inlineObject3.int64) &&
|
|
||||||
Objects.equals(this.number, inlineObject3.number) &&
|
|
||||||
Objects.equals(this._float, inlineObject3._float) &&
|
|
||||||
Objects.equals(this._double, inlineObject3._double) &&
|
|
||||||
Objects.equals(this.string, inlineObject3.string) &&
|
|
||||||
Objects.equals(this.patternWithoutDelimiter, inlineObject3.patternWithoutDelimiter) &&
|
|
||||||
Arrays.equals(this._byte, inlineObject3._byte) &&
|
|
||||||
Objects.equals(this.binary, inlineObject3.binary) &&
|
|
||||||
Objects.equals(this.date, inlineObject3.date) &&
|
|
||||||
Objects.equals(this.dateTime, inlineObject3.dateTime) &&
|
|
||||||
Objects.equals(this.password, inlineObject3.password) &&
|
|
||||||
Objects.equals(this.callback, inlineObject3.callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), binary, date, dateTime, password, callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject3 {\n");
|
|
||||||
sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
|
|
||||||
sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
|
|
||||||
sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
|
|
||||||
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
|
||||||
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
|
||||||
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
|
||||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
|
||||||
sb.append(" patternWithoutDelimiter: ").append(toIndentedString(patternWithoutDelimiter)).append("\n");
|
|
||||||
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
|
||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
|
||||||
sb.append(" callback: ").append(toIndentedString(callback)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject4
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject4.JSON_PROPERTY_PARAM,
|
|
||||||
InlineObject4.JSON_PROPERTY_PARAM2
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject4 {
|
|
||||||
public static final String JSON_PROPERTY_PARAM = "param";
|
|
||||||
private String param;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PARAM2 = "param2";
|
|
||||||
private String param2;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject4 param(String param) {
|
|
||||||
|
|
||||||
this.param = param;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* field1
|
|
||||||
* @return param
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "field1")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PARAM)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getParam() {
|
|
||||||
return param;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setParam(String param) {
|
|
||||||
this.param = param;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject4 param2(String param2) {
|
|
||||||
|
|
||||||
this.param2 = param2;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* field2
|
|
||||||
* @return param2
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "field2")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PARAM2)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getParam2() {
|
|
||||||
return param2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setParam2(String param2) {
|
|
||||||
this.param2 = param2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject4 inlineObject4 = (InlineObject4) o;
|
|
||||||
return Objects.equals(this.param, inlineObject4.param) &&
|
|
||||||
Objects.equals(this.param2, inlineObject4.param2);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(param, param2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject4 {\n");
|
|
||||||
sb.append(" param: ").append(toIndentedString(param)).append("\n");
|
|
||||||
sb.append(" param2: ").append(toIndentedString(param2)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.File;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineObject5
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineObject5.JSON_PROPERTY_ADDITIONAL_METADATA,
|
|
||||||
InlineObject5.JSON_PROPERTY_REQUIRED_FILE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineObject5 {
|
|
||||||
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
|
|
||||||
private String additionalMetadata;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_REQUIRED_FILE = "requiredFile";
|
|
||||||
private File requiredFile;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject5 additionalMetadata(String additionalMetadata) {
|
|
||||||
|
|
||||||
this.additionalMetadata = additionalMetadata;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Additional data to pass to server
|
|
||||||
* @return additionalMetadata
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Additional data to pass to server")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getAdditionalMetadata() {
|
|
||||||
return additionalMetadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setAdditionalMetadata(String additionalMetadata) {
|
|
||||||
this.additionalMetadata = additionalMetadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public InlineObject5 requiredFile(File requiredFile) {
|
|
||||||
|
|
||||||
this.requiredFile = requiredFile;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* file to upload
|
|
||||||
* @return requiredFile
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "file to upload")
|
|
||||||
@JsonProperty(JSON_PROPERTY_REQUIRED_FILE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public File getRequiredFile() {
|
|
||||||
return requiredFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setRequiredFile(File requiredFile) {
|
|
||||||
this.requiredFile = requiredFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineObject5 inlineObject5 = (InlineObject5) o;
|
|
||||||
return Objects.equals(this.additionalMetadata, inlineObject5.additionalMetadata) &&
|
|
||||||
Objects.equals(this.requiredFile, inlineObject5.requiredFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(additionalMetadata, requiredFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineObject5 {\n");
|
|
||||||
sb.append(" additionalMetadata: ").append(toIndentedString(additionalMetadata)).append("\n");
|
|
||||||
sb.append(" requiredFile: ").append(toIndentedString(requiredFile)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Foo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* InlineResponseDefault
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
InlineResponseDefault.JSON_PROPERTY_STRING
|
|
||||||
})
|
|
||||||
|
|
||||||
public class InlineResponseDefault {
|
|
||||||
public static final String JSON_PROPERTY_STRING = "string";
|
|
||||||
private Foo string;
|
|
||||||
|
|
||||||
|
|
||||||
public InlineResponseDefault string(Foo string) {
|
|
||||||
|
|
||||||
this.string = string;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get string
|
|
||||||
* @return string
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Foo getString() {
|
|
||||||
return string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setString(Foo string) {
|
|
||||||
this.string = string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
InlineResponseDefault inlineResponseDefault = (InlineResponseDefault) o;
|
|
||||||
return Objects.equals(this.string, inlineResponseDefault.string);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(string);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class InlineResponseDefault {\n");
|
|
||||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.ShapeInterface;
|
|
||||||
import org.openapitools.client.model.TriangleInterface;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* IsoscelesTriangle
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
IsoscelesTriangle.JSON_PROPERTY_SHAPE_TYPE,
|
|
||||||
IsoscelesTriangle.JSON_PROPERTY_TRIANGLE_TYPE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class IsoscelesTriangle {
|
|
||||||
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
|
|
||||||
private String shapeType;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
|
|
||||||
private String triangleType;
|
|
||||||
|
|
||||||
|
|
||||||
public IsoscelesTriangle shapeType(String shapeType) {
|
|
||||||
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shapeType
|
|
||||||
* @return shapeType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getShapeType() {
|
|
||||||
return shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShapeType(String shapeType) {
|
|
||||||
this.shapeType = shapeType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public IsoscelesTriangle triangleType(String triangleType) {
|
|
||||||
|
|
||||||
this.triangleType = triangleType;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get triangleType
|
|
||||||
* @return triangleType
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getTriangleType() {
|
|
||||||
return triangleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setTriangleType(String triangleType) {
|
|
||||||
this.triangleType = triangleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
IsoscelesTriangle isoscelesTriangle = (IsoscelesTriangle) o;
|
|
||||||
return Objects.equals(this.shapeType, isoscelesTriangle.shapeType) &&
|
|
||||||
Objects.equals(this.triangleType, isoscelesTriangle.triangleType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(shapeType, triangleType);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class IsoscelesTriangle {\n");
|
|
||||||
sb.append(" shapeType: ").append(toIndentedString(shapeType)).append("\n");
|
|
||||||
sb.append(" triangleType: ").append(toIndentedString(triangleType)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Pig;
|
|
||||||
import org.openapitools.client.model.Whale;
|
|
||||||
import org.openapitools.client.model.Zebra;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=Mammal.MammalDeserializer.class)
|
|
||||||
public class Mammal extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(Mammal.class.getName());
|
|
||||||
|
|
||||||
public static class MammalDeserializer extends StdDeserializer<Mammal> {
|
|
||||||
public MammalDeserializer() {
|
|
||||||
this(Mammal.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public MammalDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Mammal deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
int match = 0;
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialize Pig
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Pig.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Pig'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Pig'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize Whale
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Whale.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Whale'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Whale'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize Zebra
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Zebra.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Zebra'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Zebra'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (match == 1) {
|
|
||||||
Mammal ret = new Mammal();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
throw new IOException(String.format("Failed deserialization for Mammal: %d classes match result, expected 1", match));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public Mammal() {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Mammal(Pig o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Mammal(Whale o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Mammal(Zebra o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("Pig", new GenericType<Pig>() {
|
|
||||||
});
|
|
||||||
schemas.put("Whale", new GenericType<Whale>() {
|
|
||||||
});
|
|
||||||
schemas.put("Zebra", new GenericType<Zebra>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return Mammal.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof Pig) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof Whale) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof Zebra) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be Pig, Whale, Zebra");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,265 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MapTest
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING,
|
|
||||||
MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING,
|
|
||||||
MapTest.JSON_PROPERTY_DIRECT_MAP,
|
|
||||||
MapTest.JSON_PROPERTY_INDIRECT_MAP
|
|
||||||
})
|
|
||||||
|
|
||||||
public class MapTest {
|
|
||||||
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
|
|
||||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets inner
|
|
||||||
*/
|
|
||||||
public enum InnerEnum {
|
|
||||||
UPPER("UPPER"),
|
|
||||||
|
|
||||||
LOWER("lower");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
InnerEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static InnerEnum fromValue(String value) {
|
|
||||||
for (InnerEnum b : InnerEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
|
|
||||||
private Map<String, Boolean> directMap = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
|
|
||||||
private Map<String, Boolean> indirectMap = null;
|
|
||||||
|
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
|
||||||
|
|
||||||
this.mapMapOfString = mapMapOfString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
|
||||||
if (this.mapMapOfString == null) {
|
|
||||||
this.mapMapOfString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapMapOfString
|
|
||||||
* @return mapMapOfString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
|
||||||
return mapMapOfString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
|
||||||
this.mapMapOfString = mapMapOfString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
|
||||||
|
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
|
||||||
if (this.mapOfEnumString == null) {
|
|
||||||
this.mapOfEnumString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapOfEnumString
|
|
||||||
* @return mapOfEnumString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
|
||||||
return mapOfEnumString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MapTest directMap(Map<String, Boolean> directMap) {
|
|
||||||
|
|
||||||
this.directMap = directMap;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
|
||||||
if (this.directMap == null) {
|
|
||||||
this.directMap = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.directMap.put(key, directMapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get directMap
|
|
||||||
* @return directMap
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Boolean> getDirectMap() {
|
|
||||||
return directMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDirectMap(Map<String, Boolean> directMap) {
|
|
||||||
this.directMap = directMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
|
||||||
|
|
||||||
this.indirectMap = indirectMap;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
|
||||||
if (this.indirectMap == null) {
|
|
||||||
this.indirectMap = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.indirectMap.put(key, indirectMapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get indirectMap
|
|
||||||
* @return indirectMap
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Boolean> getIndirectMap() {
|
|
||||||
return indirectMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
|
||||||
this.indirectMap = indirectMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
MapTest mapTest = (MapTest) o;
|
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
|
||||||
Objects.equals(this.directMap, mapTest.directMap) &&
|
|
||||||
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class MapTest {\n");
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
|
||||||
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
|
||||||
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.time.OffsetDateTime;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.UUID;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID,
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
|
|
||||||
})
|
|
||||||
|
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
|
||||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
|
||||||
private UUID uuid;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
|
||||||
private OffsetDateTime dateTime;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP = "map";
|
|
||||||
private Map<String, Animal> map = null;
|
|
||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
|
||||||
|
|
||||||
this.uuid = uuid;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get uuid
|
|
||||||
* @return uuid
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_UUID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public UUID getUuid() {
|
|
||||||
return uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setUuid(UUID uuid) {
|
|
||||||
this.uuid = uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
|
|
||||||
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get dateTime
|
|
||||||
* @return dateTime
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OffsetDateTime getDateTime() {
|
|
||||||
return dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setDateTime(OffsetDateTime dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
|
||||||
|
|
||||||
this.map = map;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
|
||||||
if (this.map == null) {
|
|
||||||
this.map = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.map.put(key, mapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get map
|
|
||||||
* @return map
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Animal> getMap() {
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMap(Map<String, Animal> map) {
|
|
||||||
this.map = map;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
|
|
||||||
return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
|
|
||||||
Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
|
|
||||||
Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(uuid, dateTime, map);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
|
||||||
sb.append(" map: ").append(toIndentedString(map)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Model for testing model name starting with number
|
|
||||||
*/
|
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Model200Response.JSON_PROPERTY_NAME,
|
|
||||||
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Model200Response {
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private Integer name;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
|
|
||||||
private String propertyClass;
|
|
||||||
|
|
||||||
|
|
||||||
public Model200Response name(Integer name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(Integer name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Model200Response propertyClass(String propertyClass) {
|
|
||||||
|
|
||||||
this.propertyClass = propertyClass;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get propertyClass
|
|
||||||
* @return propertyClass
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getPropertyClass() {
|
|
||||||
return propertyClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
|
||||||
this.propertyClass = propertyClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Model200Response _200response = (Model200Response) o;
|
|
||||||
return Objects.equals(this.name, _200response.name) &&
|
|
||||||
Objects.equals(this.propertyClass, _200response.propertyClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name, propertyClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Model200Response {\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ModelApiResponse
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ModelApiResponse.JSON_PROPERTY_CODE,
|
|
||||||
ModelApiResponse.JSON_PROPERTY_TYPE,
|
|
||||||
ModelApiResponse.JSON_PROPERTY_MESSAGE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ModelApiResponse {
|
|
||||||
public static final String JSON_PROPERTY_CODE = "code";
|
|
||||||
private Integer code;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_TYPE = "type";
|
|
||||||
private String type;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MESSAGE = "message";
|
|
||||||
private String message;
|
|
||||||
|
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
|
||||||
|
|
||||||
this.code = code;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get code
|
|
||||||
* @return code
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CODE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getCode() {
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCode(Integer code) {
|
|
||||||
this.code = code;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ModelApiResponse type(String type) {
|
|
||||||
|
|
||||||
this.type = type;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get type
|
|
||||||
* @return type
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ModelApiResponse message(String message) {
|
|
||||||
|
|
||||||
this.message = message;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get message
|
|
||||||
* @return message
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getMessage() {
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMessage(String message) {
|
|
||||||
this.message = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
|
||||||
return Objects.equals(this.code, _apiResponse.code) &&
|
|
||||||
Objects.equals(this.type, _apiResponse.type) &&
|
|
||||||
Objects.equals(this.message, _apiResponse.message);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(code, type, message);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ModelApiResponse {\n");
|
|
||||||
sb.append(" code: ").append(toIndentedString(code)).append("\n");
|
|
||||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
|
||||||
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Model for testing reserved words
|
|
||||||
*/
|
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
ModelReturn.JSON_PROPERTY_RETURN
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ModelReturn {
|
|
||||||
public static final String JSON_PROPERTY_RETURN = "return";
|
|
||||||
private Integer _return;
|
|
||||||
|
|
||||||
|
|
||||||
public ModelReturn _return(Integer _return) {
|
|
||||||
|
|
||||||
this._return = _return;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get _return
|
|
||||||
* @return _return
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getReturn() {
|
|
||||||
return _return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setReturn(Integer _return) {
|
|
||||||
this._return = _return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
ModelReturn _return = (ModelReturn) o;
|
|
||||||
return Objects.equals(this._return, _return._return);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(_return);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ModelReturn {\n");
|
|
||||||
sb.append(" _return: ").append(toIndentedString(_return)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Model for testing model name same as property name
|
|
||||||
*/
|
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Name.JSON_PROPERTY_NAME,
|
|
||||||
Name.JSON_PROPERTY_SNAKE_CASE,
|
|
||||||
Name.JSON_PROPERTY_PROPERTY,
|
|
||||||
Name.JSON_PROPERTY_123NUMBER
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Name {
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private Integer name;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
|
|
||||||
private Integer snakeCase;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PROPERTY = "property";
|
|
||||||
private String property;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_123NUMBER = "123Number";
|
|
||||||
private Integer _123number;
|
|
||||||
|
|
||||||
|
|
||||||
public Name name(Integer name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public Integer getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(Integer name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get snakeCase
|
|
||||||
* @return snakeCase
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getSnakeCase() {
|
|
||||||
return snakeCase;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Name property(String property) {
|
|
||||||
|
|
||||||
this.property = property;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get property
|
|
||||||
* @return property
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getProperty() {
|
|
||||||
return property;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setProperty(String property) {
|
|
||||||
this.property = property;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get _123number
|
|
||||||
* @return _123number
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer get123number() {
|
|
||||||
return _123number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Name name = (Name) o;
|
|
||||||
return Objects.equals(this.name, name.name) &&
|
|
||||||
Objects.equals(this.snakeCase, name.snakeCase) &&
|
|
||||||
Objects.equals(this.property, name.property) &&
|
|
||||||
Objects.equals(this._123number, name._123number);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name, snakeCase, property, _123number);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Name {\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
|
||||||
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
|
||||||
sb.append(" _123number: ").append(toIndentedString(_123number)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,619 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDate;
|
|
||||||
import java.time.OffsetDateTime;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import org.openapitools.jackson.nullable.JsonNullable;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NullableClass
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
NullableClass.JSON_PROPERTY_INTEGER_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_NUMBER_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_BOOLEAN_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_STRING_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_DATE_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_DATETIME_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_ARRAY_NULLABLE_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_ARRAY_ITEMS_NULLABLE,
|
|
||||||
NullableClass.JSON_PROPERTY_OBJECT_NULLABLE_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP,
|
|
||||||
NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class NullableClass extends HashMap<String, Object> {
|
|
||||||
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
|
|
||||||
private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop";
|
|
||||||
private JsonNullable<BigDecimal> numberProp = JsonNullable.<BigDecimal>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop";
|
|
||||||
private JsonNullable<Boolean> booleanProp = JsonNullable.<Boolean>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STRING_PROP = "string_prop";
|
|
||||||
private JsonNullable<String> stringProp = JsonNullable.<String>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATE_PROP = "date_prop";
|
|
||||||
private JsonNullable<LocalDate> dateProp = JsonNullable.<LocalDate>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop";
|
|
||||||
private JsonNullable<OffsetDateTime> datetimeProp = JsonNullable.<OffsetDateTime>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
|
|
||||||
private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
|
|
||||||
private JsonNullable<List<Object>> arrayAndItemsNullableProp = JsonNullable.<List<Object>>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
|
|
||||||
private List<Object> arrayItemsNullable = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
|
|
||||||
private JsonNullable<Map<String, Object>> objectNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
|
|
||||||
private JsonNullable<Map<String, Object>> objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
|
|
||||||
private Map<String, Object> objectItemsNullable = null;
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass integerProp(Integer integerProp) {
|
|
||||||
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get integerProp
|
|
||||||
* @return integerProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public Integer getIntegerProp() {
|
|
||||||
return integerProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<Integer> getIntegerProp_JsonNullable() {
|
|
||||||
return integerProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
|
||||||
public void setIntegerProp_JsonNullable(JsonNullable<Integer> integerProp) {
|
|
||||||
this.integerProp = integerProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIntegerProp(Integer integerProp) {
|
|
||||||
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass numberProp(BigDecimal numberProp) {
|
|
||||||
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get numberProp
|
|
||||||
* @return numberProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public BigDecimal getNumberProp() {
|
|
||||||
return numberProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<BigDecimal> getNumberProp_JsonNullable() {
|
|
||||||
return numberProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
|
||||||
public void setNumberProp_JsonNullable(JsonNullable<BigDecimal> numberProp) {
|
|
||||||
this.numberProp = numberProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumberProp(BigDecimal numberProp) {
|
|
||||||
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass booleanProp(Boolean booleanProp) {
|
|
||||||
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get booleanProp
|
|
||||||
* @return booleanProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public Boolean getBooleanProp() {
|
|
||||||
return booleanProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<Boolean> getBooleanProp_JsonNullable() {
|
|
||||||
return booleanProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
|
||||||
public void setBooleanProp_JsonNullable(JsonNullable<Boolean> booleanProp) {
|
|
||||||
this.booleanProp = booleanProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBooleanProp(Boolean booleanProp) {
|
|
||||||
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass stringProp(String stringProp) {
|
|
||||||
this.stringProp = JsonNullable.<String>of(stringProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get stringProp
|
|
||||||
* @return stringProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public String getStringProp() {
|
|
||||||
return stringProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<String> getStringProp_JsonNullable() {
|
|
||||||
return stringProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
|
||||||
public void setStringProp_JsonNullable(JsonNullable<String> stringProp) {
|
|
||||||
this.stringProp = stringProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStringProp(String stringProp) {
|
|
||||||
this.stringProp = JsonNullable.<String>of(stringProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass dateProp(LocalDate dateProp) {
|
|
||||||
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get dateProp
|
|
||||||
* @return dateProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public LocalDate getDateProp() {
|
|
||||||
return dateProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<LocalDate> getDateProp_JsonNullable() {
|
|
||||||
return dateProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
|
||||||
public void setDateProp_JsonNullable(JsonNullable<LocalDate> dateProp) {
|
|
||||||
this.dateProp = dateProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDateProp(LocalDate dateProp) {
|
|
||||||
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass datetimeProp(OffsetDateTime datetimeProp) {
|
|
||||||
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get datetimeProp
|
|
||||||
* @return datetimeProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public OffsetDateTime getDatetimeProp() {
|
|
||||||
return datetimeProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<OffsetDateTime> getDatetimeProp_JsonNullable() {
|
|
||||||
return datetimeProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
|
||||||
public void setDatetimeProp_JsonNullable(JsonNullable<OffsetDateTime> datetimeProp) {
|
|
||||||
this.datetimeProp = datetimeProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetimeProp(OffsetDateTime datetimeProp) {
|
|
||||||
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass arrayNullableProp(List<Object> arrayNullableProp) {
|
|
||||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) {
|
|
||||||
if (this.arrayNullableProp == null || !this.arrayNullableProp.isPresent()) {
|
|
||||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
this.arrayNullableProp.get().add(arrayNullablePropItem);
|
|
||||||
} catch (java.util.NoSuchElementException e) {
|
|
||||||
// this can never happen, as we make sure above that the value is present
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayNullableProp
|
|
||||||
* @return arrayNullableProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public List<Object> getArrayNullableProp() {
|
|
||||||
return arrayNullableProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<List<Object>> getArrayNullableProp_JsonNullable() {
|
|
||||||
return arrayNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
|
||||||
public void setArrayNullableProp_JsonNullable(JsonNullable<List<Object>> arrayNullableProp) {
|
|
||||||
this.arrayNullableProp = arrayNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setArrayNullableProp(List<Object> arrayNullableProp) {
|
|
||||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
|
||||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullablePropItem) {
|
|
||||||
if (this.arrayAndItemsNullableProp == null || !this.arrayAndItemsNullableProp.isPresent()) {
|
|
||||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
this.arrayAndItemsNullableProp.get().add(arrayAndItemsNullablePropItem);
|
|
||||||
} catch (java.util.NoSuchElementException e) {
|
|
||||||
// this can never happen, as we make sure above that the value is present
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayAndItemsNullableProp
|
|
||||||
* @return arrayAndItemsNullableProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public List<Object> getArrayAndItemsNullableProp() {
|
|
||||||
return arrayAndItemsNullableProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<List<Object>> getArrayAndItemsNullableProp_JsonNullable() {
|
|
||||||
return arrayAndItemsNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
|
||||||
public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable<List<Object>> arrayAndItemsNullableProp) {
|
|
||||||
this.arrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setArrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
|
||||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) {
|
|
||||||
|
|
||||||
this.arrayItemsNullable = arrayItemsNullable;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) {
|
|
||||||
if (this.arrayItemsNullable == null) {
|
|
||||||
this.arrayItemsNullable = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.arrayItemsNullable.add(arrayItemsNullableItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get arrayItemsNullable
|
|
||||||
* @return arrayItemsNullable
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<Object> getArrayItemsNullable() {
|
|
||||||
return arrayItemsNullable;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
|
|
||||||
this.arrayItemsNullable = arrayItemsNullable;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) {
|
|
||||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass putObjectNullablePropItem(String key, Object objectNullablePropItem) {
|
|
||||||
if (this.objectNullableProp == null || !this.objectNullableProp.isPresent()) {
|
|
||||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
this.objectNullableProp.get().put(key, objectNullablePropItem);
|
|
||||||
} catch (java.util.NoSuchElementException e) {
|
|
||||||
// this can never happen, as we make sure above that the value is present
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get objectNullableProp
|
|
||||||
* @return objectNullableProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public Map<String, Object> getObjectNullableProp() {
|
|
||||||
return objectNullableProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<Map<String, Object>> getObjectNullableProp_JsonNullable() {
|
|
||||||
return objectNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
|
||||||
public void setObjectNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectNullableProp) {
|
|
||||||
this.objectNullableProp = objectNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setObjectNullableProp(Map<String, Object> objectNullableProp) {
|
|
||||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
|
||||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass putObjectAndItemsNullablePropItem(String key, Object objectAndItemsNullablePropItem) {
|
|
||||||
if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) {
|
|
||||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem);
|
|
||||||
} catch (java.util.NoSuchElementException e) {
|
|
||||||
// this can never happen, as we make sure above that the value is present
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get objectAndItemsNullableProp
|
|
||||||
* @return objectAndItemsNullableProp
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonIgnore
|
|
||||||
|
|
||||||
public Map<String, Object> getObjectAndItemsNullableProp() {
|
|
||||||
return objectAndItemsNullableProp.orElse(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
|
||||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public JsonNullable<Map<String, Object>> getObjectAndItemsNullableProp_JsonNullable() {
|
|
||||||
return objectAndItemsNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
|
||||||
public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectAndItemsNullableProp) {
|
|
||||||
this.objectAndItemsNullableProp = objectAndItemsNullableProp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
|
||||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) {
|
|
||||||
|
|
||||||
this.objectItemsNullable = objectItemsNullable;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNullableItem) {
|
|
||||||
if (this.objectItemsNullable == null) {
|
|
||||||
this.objectItemsNullable = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.objectItemsNullable.put(key, objectItemsNullableItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get objectItemsNullable
|
|
||||||
* @return objectItemsNullable
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
|
||||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Object> getObjectItemsNullable() {
|
|
||||||
return objectItemsNullable;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
|
|
||||||
this.objectItemsNullable = objectItemsNullable;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
NullableClass nullableClass = (NullableClass) o;
|
|
||||||
return Objects.equals(this.integerProp, nullableClass.integerProp) &&
|
|
||||||
Objects.equals(this.numberProp, nullableClass.numberProp) &&
|
|
||||||
Objects.equals(this.booleanProp, nullableClass.booleanProp) &&
|
|
||||||
Objects.equals(this.stringProp, nullableClass.stringProp) &&
|
|
||||||
Objects.equals(this.dateProp, nullableClass.dateProp) &&
|
|
||||||
Objects.equals(this.datetimeProp, nullableClass.datetimeProp) &&
|
|
||||||
Objects.equals(this.arrayNullableProp, nullableClass.arrayNullableProp) &&
|
|
||||||
Objects.equals(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) &&
|
|
||||||
Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) &&
|
|
||||||
Objects.equals(this.objectNullableProp, nullableClass.objectNullableProp) &&
|
|
||||||
Objects.equals(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) &&
|
|
||||||
Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable) &&
|
|
||||||
super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(integerProp, numberProp, booleanProp, stringProp, dateProp, datetimeProp, arrayNullableProp, arrayAndItemsNullableProp, arrayItemsNullable, objectNullableProp, objectAndItemsNullableProp, objectItemsNullable, super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class NullableClass {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append(" integerProp: ").append(toIndentedString(integerProp)).append("\n");
|
|
||||||
sb.append(" numberProp: ").append(toIndentedString(numberProp)).append("\n");
|
|
||||||
sb.append(" booleanProp: ").append(toIndentedString(booleanProp)).append("\n");
|
|
||||||
sb.append(" stringProp: ").append(toIndentedString(stringProp)).append("\n");
|
|
||||||
sb.append(" dateProp: ").append(toIndentedString(dateProp)).append("\n");
|
|
||||||
sb.append(" datetimeProp: ").append(toIndentedString(datetimeProp)).append("\n");
|
|
||||||
sb.append(" arrayNullableProp: ").append(toIndentedString(arrayNullableProp)).append("\n");
|
|
||||||
sb.append(" arrayAndItemsNullableProp: ").append(toIndentedString(arrayAndItemsNullableProp)).append("\n");
|
|
||||||
sb.append(" arrayItemsNullable: ").append(toIndentedString(arrayItemsNullable)).append("\n");
|
|
||||||
sb.append(" objectNullableProp: ").append(toIndentedString(objectNullableProp)).append("\n");
|
|
||||||
sb.append(" objectAndItemsNullableProp: ").append(toIndentedString(objectAndItemsNullableProp)).append("\n");
|
|
||||||
sb.append(" objectItemsNullable: ").append(toIndentedString(objectItemsNullable)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.Quadrilateral;
|
|
||||||
import org.openapitools.client.model.Triangle;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=NullableShape.NullableShapeDeserializer.class)
|
|
||||||
public class NullableShape extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(NullableShape.class.getName());
|
|
||||||
|
|
||||||
public static class NullableShapeDeserializer extends StdDeserializer<NullableShape> {
|
|
||||||
public NullableShapeDeserializer() {
|
|
||||||
this(NullableShape.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableShapeDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public NullableShape deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
int match = 0;
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialize Quadrilateral
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Quadrilateral.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Quadrilateral'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Quadrilateral'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize Triangle
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(Triangle.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'Triangle'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'Triangle'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (match == 1) {
|
|
||||||
NullableShape ret = new NullableShape();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
throw new IOException(String.format("Failed deserialization for NullableShape: %d classes match result, expected 1", match));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public NullableShape() {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableShape(Quadrilateral o) {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullableShape(Triangle o) {
|
|
||||||
super("oneOf", Boolean.TRUE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("Quadrilateral", new GenericType<Quadrilateral>() {
|
|
||||||
});
|
|
||||||
schemas.put("Triangle", new GenericType<Triangle>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return NullableShape.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof Quadrilateral) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof Triangle) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be Quadrilateral, Triangle");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NumberOnly
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
NumberOnly.JSON_PROPERTY_JUST_NUMBER
|
|
||||||
})
|
|
||||||
|
|
||||||
public class NumberOnly {
|
|
||||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
|
||||||
private BigDecimal justNumber;
|
|
||||||
|
|
||||||
|
|
||||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
|
||||||
|
|
||||||
this.justNumber = justNumber;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get justNumber
|
|
||||||
* @return justNumber
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public BigDecimal getJustNumber() {
|
|
||||||
return justNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setJustNumber(BigDecimal justNumber) {
|
|
||||||
this.justNumber = justNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
NumberOnly numberOnly = (NumberOnly) o;
|
|
||||||
return Objects.equals(this.justNumber, numberOnly.justNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(justNumber);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class NumberOnly {\n");
|
|
||||||
sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,295 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.time.OffsetDateTime;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Order
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Order.JSON_PROPERTY_ID,
|
|
||||||
Order.JSON_PROPERTY_PET_ID,
|
|
||||||
Order.JSON_PROPERTY_QUANTITY,
|
|
||||||
Order.JSON_PROPERTY_SHIP_DATE,
|
|
||||||
Order.JSON_PROPERTY_STATUS,
|
|
||||||
Order.JSON_PROPERTY_COMPLETE
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Order {
|
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PET_ID = "petId";
|
|
||||||
private Long petId;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_QUANTITY = "quantity";
|
|
||||||
private Integer quantity;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
|
|
||||||
private OffsetDateTime shipDate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Order Status
|
|
||||||
*/
|
|
||||||
public enum StatusEnum {
|
|
||||||
PLACED("placed"),
|
|
||||||
|
|
||||||
APPROVED("approved"),
|
|
||||||
|
|
||||||
DELIVERED("delivered");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
StatusEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static StatusEnum fromValue(String value) {
|
|
||||||
for (StatusEnum b : StatusEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STATUS = "status";
|
|
||||||
private StatusEnum status;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_COMPLETE = "complete";
|
|
||||||
private Boolean complete = false;
|
|
||||||
|
|
||||||
|
|
||||||
public Order id(Long id) {
|
|
||||||
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get id
|
|
||||||
* @return id
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Order petId(Long petId) {
|
|
||||||
|
|
||||||
this.petId = petId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get petId
|
|
||||||
* @return petId
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getPetId() {
|
|
||||||
return petId;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPetId(Long petId) {
|
|
||||||
this.petId = petId;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Order quantity(Integer quantity) {
|
|
||||||
|
|
||||||
this.quantity = quantity;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get quantity
|
|
||||||
* @return quantity
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Integer getQuantity() {
|
|
||||||
return quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setQuantity(Integer quantity) {
|
|
||||||
this.quantity = quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Order shipDate(OffsetDateTime shipDate) {
|
|
||||||
|
|
||||||
this.shipDate = shipDate;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get shipDate
|
|
||||||
* @return shipDate
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public OffsetDateTime getShipDate() {
|
|
||||||
return shipDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setShipDate(OffsetDateTime shipDate) {
|
|
||||||
this.shipDate = shipDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Order status(StatusEnum status) {
|
|
||||||
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Order Status
|
|
||||||
* @return status
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public StatusEnum getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Order complete(Boolean complete) {
|
|
||||||
|
|
||||||
this.complete = complete;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get complete
|
|
||||||
* @return complete
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getComplete() {
|
|
||||||
return complete;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setComplete(Boolean complete) {
|
|
||||||
this.complete = complete;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Order order = (Order) o;
|
|
||||||
return Objects.equals(this.id, order.id) &&
|
|
||||||
Objects.equals(this.petId, order.petId) &&
|
|
||||||
Objects.equals(this.quantity, order.quantity) &&
|
|
||||||
Objects.equals(this.shipDate, order.shipDate) &&
|
|
||||||
Objects.equals(this.status, order.status) &&
|
|
||||||
Objects.equals(this.complete, order.complete);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Order {\n");
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
||||||
sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
|
|
||||||
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
|
|
||||||
sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
|
|
||||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
||||||
sb.append(" complete: ").append(toIndentedString(complete)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OuterComposite
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
OuterComposite.JSON_PROPERTY_MY_NUMBER,
|
|
||||||
OuterComposite.JSON_PROPERTY_MY_STRING,
|
|
||||||
OuterComposite.JSON_PROPERTY_MY_BOOLEAN
|
|
||||||
})
|
|
||||||
|
|
||||||
public class OuterComposite {
|
|
||||||
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
|
|
||||||
private BigDecimal myNumber;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MY_STRING = "my_string";
|
|
||||||
private String myString;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
|
|
||||||
private Boolean myBoolean;
|
|
||||||
|
|
||||||
|
|
||||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
|
||||||
|
|
||||||
this.myNumber = myNumber;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get myNumber
|
|
||||||
* @return myNumber
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public BigDecimal getMyNumber() {
|
|
||||||
return myNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMyNumber(BigDecimal myNumber) {
|
|
||||||
this.myNumber = myNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public OuterComposite myString(String myString) {
|
|
||||||
|
|
||||||
this.myString = myString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get myString
|
|
||||||
* @return myString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public String getMyString() {
|
|
||||||
return myString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMyString(String myString) {
|
|
||||||
this.myString = myString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public OuterComposite myBoolean(Boolean myBoolean) {
|
|
||||||
|
|
||||||
this.myBoolean = myBoolean;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get myBoolean
|
|
||||||
* @return myBoolean
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Boolean getMyBoolean() {
|
|
||||||
return myBoolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setMyBoolean(Boolean myBoolean) {
|
|
||||||
this.myBoolean = myBoolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
OuterComposite outerComposite = (OuterComposite) o;
|
|
||||||
return Objects.equals(this.myNumber, outerComposite.myNumber) &&
|
|
||||||
Objects.equals(this.myString, outerComposite.myString) &&
|
|
||||||
Objects.equals(this.myBoolean, outerComposite.myBoolean);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(myNumber, myString, myBoolean);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class OuterComposite {\n");
|
|
||||||
sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n");
|
|
||||||
sb.append(" myString: ").append(toIndentedString(myString)).append("\n");
|
|
||||||
sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
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.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets OuterEnum
|
|
||||||
*/
|
|
||||||
public enum OuterEnum {
|
|
||||||
|
|
||||||
PLACED("placed"),
|
|
||||||
|
|
||||||
APPROVED("approved"),
|
|
||||||
|
|
||||||
DELIVERED("delivered");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
OuterEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static OuterEnum fromValue(String value) {
|
|
||||||
for (OuterEnum b : OuterEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
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.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets OuterEnumDefaultValue
|
|
||||||
*/
|
|
||||||
public enum OuterEnumDefaultValue {
|
|
||||||
|
|
||||||
PLACED("placed"),
|
|
||||||
|
|
||||||
APPROVED("approved"),
|
|
||||||
|
|
||||||
DELIVERED("delivered");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
OuterEnumDefaultValue(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static OuterEnumDefaultValue fromValue(String value) {
|
|
||||||
for (OuterEnumDefaultValue b : OuterEnumDefaultValue.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
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.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets OuterEnumInteger
|
|
||||||
*/
|
|
||||||
public enum OuterEnumInteger {
|
|
||||||
|
|
||||||
NUMBER_0(0),
|
|
||||||
|
|
||||||
NUMBER_1(1),
|
|
||||||
|
|
||||||
NUMBER_2(2);
|
|
||||||
|
|
||||||
private Integer value;
|
|
||||||
|
|
||||||
OuterEnumInteger(Integer value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public Integer getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static OuterEnumInteger fromValue(Integer value) {
|
|
||||||
for (OuterEnumInteger b : OuterEnumInteger.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
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.JsonValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets or Sets OuterEnumIntegerDefaultValue
|
|
||||||
*/
|
|
||||||
public enum OuterEnumIntegerDefaultValue {
|
|
||||||
|
|
||||||
NUMBER_0(0),
|
|
||||||
|
|
||||||
NUMBER_1(1),
|
|
||||||
|
|
||||||
NUMBER_2(2);
|
|
||||||
|
|
||||||
private Integer value;
|
|
||||||
|
|
||||||
OuterEnumIntegerDefaultValue(Integer value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public Integer getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static OuterEnumIntegerDefaultValue fromValue(Integer value) {
|
|
||||||
for (OuterEnumIntegerDefaultValue b : OuterEnumIntegerDefaultValue.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.ChildCat;
|
|
||||||
import org.openapitools.client.model.GrandparentAnimal;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ParentPet
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
})
|
|
||||||
|
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "pet_type", visible = true)
|
|
||||||
@JsonSubTypes({
|
|
||||||
@JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"),
|
|
||||||
})
|
|
||||||
|
|
||||||
public class ParentPet extends GrandparentAnimal {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return super.equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(super.hashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class ParentPet {\n");
|
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,309 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.openapitools.client.model.Category;
|
|
||||||
import org.openapitools.client.model.Tag;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pet
|
|
||||||
*/
|
|
||||||
@JsonPropertyOrder({
|
|
||||||
Pet.JSON_PROPERTY_ID,
|
|
||||||
Pet.JSON_PROPERTY_CATEGORY,
|
|
||||||
Pet.JSON_PROPERTY_NAME,
|
|
||||||
Pet.JSON_PROPERTY_PHOTO_URLS,
|
|
||||||
Pet.JSON_PROPERTY_TAGS,
|
|
||||||
Pet.JSON_PROPERTY_STATUS
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Pet {
|
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
|
||||||
private Category category;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
|
||||||
private List<String> photoUrls = new ArrayList<>();
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
|
||||||
private List<Tag> tags = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* pet status in the store
|
|
||||||
*/
|
|
||||||
public enum StatusEnum {
|
|
||||||
AVAILABLE("available"),
|
|
||||||
|
|
||||||
PENDING("pending"),
|
|
||||||
|
|
||||||
SOLD("sold");
|
|
||||||
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
StatusEnum(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonValue
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return String.valueOf(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static StatusEnum fromValue(String value) {
|
|
||||||
for (StatusEnum b : StatusEnum.values()) {
|
|
||||||
if (b.value.equals(value)) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STATUS = "status";
|
|
||||||
private StatusEnum status;
|
|
||||||
|
|
||||||
|
|
||||||
public Pet id(Long id) {
|
|
||||||
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get id
|
|
||||||
* @return id
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_ID)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Pet category(Category category) {
|
|
||||||
|
|
||||||
this.category = category;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get category
|
|
||||||
* @return category
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Category getCategory() {
|
|
||||||
return category;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setCategory(Category category) {
|
|
||||||
this.category = category;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Pet name(String name) {
|
|
||||||
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name
|
|
||||||
* @return name
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Pet photoUrls(List<String> photoUrls) {
|
|
||||||
|
|
||||||
this.photoUrls = photoUrls;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Pet addPhotoUrlsItem(String photoUrlsItem) {
|
|
||||||
this.photoUrls.add(photoUrlsItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get photoUrls
|
|
||||||
* @return photoUrls
|
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
|
||||||
|
|
||||||
public List<String> getPhotoUrls() {
|
|
||||||
return photoUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setPhotoUrls(List<String> photoUrls) {
|
|
||||||
this.photoUrls = photoUrls;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Pet tags(List<Tag> tags) {
|
|
||||||
|
|
||||||
this.tags = tags;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
|
||||||
if (this.tags == null) {
|
|
||||||
this.tags = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.tags.add(tagsItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get tags
|
|
||||||
* @return tags
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public List<Tag> getTags() {
|
|
||||||
return tags;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setTags(List<Tag> tags) {
|
|
||||||
this.tags = tags;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Pet status(StatusEnum status) {
|
|
||||||
|
|
||||||
this.status = status;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* pet status in the store
|
|
||||||
* @return status
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
|
||||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public StatusEnum getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (o == null || getClass() != o.getClass()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Pet pet = (Pet) o;
|
|
||||||
return Objects.equals(this.id, pet.id) &&
|
|
||||||
Objects.equals(this.category, pet.category) &&
|
|
||||||
Objects.equals(this.name, pet.name) &&
|
|
||||||
Objects.equals(this.photoUrls, pet.photoUrls) &&
|
|
||||||
Objects.equals(this.tags, pet.tags) &&
|
|
||||||
Objects.equals(this.status, pet.status);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(id, category, name, photoUrls, tags, status);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Pet {\n");
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
||||||
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
|
|
||||||
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
|
|
||||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
||||||
sb.append("}");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
|
||||||
}
|
|
||||||
return o.toString().replace("\n", "\n ");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import org.openapitools.client.model.BasquePig;
|
|
||||||
import org.openapitools.client.model.DanishPig;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
import javax.ws.rs.core.GenericType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
||||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
|
||||||
|
|
||||||
|
|
||||||
@JsonDeserialize(using=Pig.PigDeserializer.class)
|
|
||||||
public class Pig extends AbstractOpenApiSchema {
|
|
||||||
private static final Logger log = Logger.getLogger(Pig.class.getName());
|
|
||||||
|
|
||||||
public static class PigDeserializer extends StdDeserializer<Pig> {
|
|
||||||
public PigDeserializer() {
|
|
||||||
this(Pig.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public PigDeserializer(Class<?> vc) {
|
|
||||||
super(vc);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Pig deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
|
||||||
JsonNode tree = jp.readValueAsTree();
|
|
||||||
|
|
||||||
int match = 0;
|
|
||||||
Object deserialized = null;
|
|
||||||
// deserialize BasquePig
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(BasquePig.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'BasquePig'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'BasquePig'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// deserialize DanishPig
|
|
||||||
try {
|
|
||||||
deserialized = tree.traverse(jp.getCodec()).readValueAs(DanishPig.class);
|
|
||||||
match++;
|
|
||||||
log.log(Level.FINER, "Input data matches schema 'DanishPig'");
|
|
||||||
} catch (Exception e) {
|
|
||||||
// deserialization failed, continue
|
|
||||||
log.log(Level.FINER, "Input data does not match schema 'DanishPig'", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (match == 1) {
|
|
||||||
Pig ret = new Pig();
|
|
||||||
ret.setActualInstance(deserialized);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
throw new IOException(String.format("Failed deserialization for Pig: %d classes match result, expected 1", match));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// store a list of schema names defined in oneOf
|
|
||||||
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
|
||||||
|
|
||||||
public Pig() {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Pig(BasquePig o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Pig(DanishPig o) {
|
|
||||||
super("oneOf", Boolean.FALSE);
|
|
||||||
setActualInstance(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
schemas.put("BasquePig", new GenericType<BasquePig>() {
|
|
||||||
});
|
|
||||||
schemas.put("DanishPig", new GenericType<DanishPig>() {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, GenericType> getSchemas() {
|
|
||||||
return Pig.schemas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setActualInstance(Object instance) {
|
|
||||||
if (instance instanceof BasquePig) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (instance instanceof DanishPig) {
|
|
||||||
super.setActualInstance(instance);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new RuntimeException("Invalid instance type. Must be BasquePig, DanishPig");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user