Merge remote-tracking branch 'origin/master' into 6.0.x

This commit is contained in:
William Cheng
2022-01-02 15:41:37 +08:00
2007 changed files with 39758 additions and 48375 deletions

View File

@@ -26,8 +26,8 @@ src/commonMain/kotlin/org/openapitools/client/infrastructure/HttpResponse.kt
src/commonMain/kotlin/org/openapitools/client/infrastructure/OctetByteArray.kt
src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt
src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt
src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt
src/commonMain/kotlin/org/openapitools/client/models/Category.kt
src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt
src/commonMain/kotlin/org/openapitools/client/models/Order.kt
src/commonMain/kotlin/org/openapitools/client/models/Pet.kt
src/commonMain/kotlin/org/openapitools/client/models/Tag.kt

View File

@@ -51,8 +51,8 @@ Class | Method | HTTP request | Description
<a name="documentation-for-models"></a>
## Documentation for Models
- [org.openapitools.client.models.ApiResponse](docs/ApiResponse.md)
- [org.openapitools.client.models.Category](docs/Category.md)
- [org.openapitools.client.models.ModelApiResponse](docs/ModelApiResponse.md)
- [org.openapitools.client.models.Order](docs/Order.md)
- [org.openapitools.client.models.Pet](docs/Pet.md)
- [org.openapitools.client.models.Tag](docs/Tag.md)

View File

@@ -1,5 +1,5 @@
# ApiResponse
# ModelApiResponse
## Properties
Name | Type | Description | Notes

View File

@@ -354,7 +354,7 @@ Configure petstore_auth:
<a name="uploadFile"></a>
# **uploadFile**
> ApiResponse uploadFile(petId, additionalMetadata, file)
> ModelApiResponse uploadFile(petId, additionalMetadata, file)
uploads an image
@@ -369,7 +369,7 @@ val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
val file : io.ktor.client.request.forms.InputProvider = BINARY_DATA_HERE // io.ktor.client.request.forms.InputProvider | file to upload
try {
val result : ApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
println(result)
} catch (e: ClientException) {
println("4xx response calling PetApi#uploadFile")
@@ -390,7 +390,7 @@ Name | Type | Description | Notes
### Return type
[**ApiResponse**](ApiResponse.md)
[**ModelApiResponse**](ModelApiResponse.md)
### Authorization

View File

@@ -20,7 +20,7 @@
package org.openapitools.client.apis
import org.openapitools.client.models.ApiResponse
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
import org.openapitools.client.infrastructure.*
@@ -34,7 +34,7 @@ import kotlinx.serialization.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.encoding.*
class PetApi(
open class PetApi(
baseUrl: String = ApiClient.BASE_URL,
httpClientEngine: HttpClientEngine? = null,
httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null,
@@ -47,7 +47,7 @@ class PetApi(
* @param body Pet object that needs to be added to the store
* @return void
*/
suspend fun addPet(body: Pet): HttpResponse<Unit> {
open suspend fun addPet(body: Pet): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -80,7 +80,7 @@ class PetApi(
* @param apiKey (optional)
* @return void
*/
suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): HttpResponse<Unit> {
open suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -114,7 +114,7 @@ class PetApi(
* @return kotlin.collections.List<Pet>
*/
@Suppress("UNCHECKED_CAST")
suspend fun findPetsByStatus(status: kotlin.collections.List<kotlin.String>): HttpResponse<kotlin.collections.List<Pet>> {
open suspend fun findPetsByStatus(status: kotlin.collections.List<kotlin.String>): HttpResponse<kotlin.collections.List<Pet>> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -158,7 +158,7 @@ class PetApi(
* @return kotlin.collections.List<Pet>
*/
@Suppress("UNCHECKED_CAST")
suspend fun findPetsByTags(tags: kotlin.collections.List<kotlin.String>): HttpResponse<kotlin.collections.List<Pet>> {
open suspend fun findPetsByTags(tags: kotlin.collections.List<kotlin.String>): HttpResponse<kotlin.collections.List<Pet>> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -202,7 +202,7 @@ class PetApi(
* @return Pet
*/
@Suppress("UNCHECKED_CAST")
suspend fun getPetById(petId: kotlin.Long): HttpResponse<Pet> {
open suspend fun getPetById(petId: kotlin.Long): HttpResponse<Pet> {
val localVariableAuthNames = listOf<String>("api_key")
@@ -234,7 +234,7 @@ class PetApi(
* @param body Pet object that needs to be added to the store
* @return void
*/
suspend fun updatePet(body: Pet): HttpResponse<Unit> {
open suspend fun updatePet(body: Pet): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -268,7 +268,7 @@ class PetApi(
* @param status Updated status of the pet (optional)
* @return void
*/
suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): HttpResponse<Unit> {
open suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>("petstore_auth")
@@ -303,10 +303,10 @@ class PetApi(
* @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @return ApiResponse
* @return ModelApiResponse
*/
@Suppress("UNCHECKED_CAST")
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ApiResponse> {
open suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ModelApiResponse> {
val localVariableAuthNames = listOf<String>("petstore_auth")

View File

@@ -33,7 +33,7 @@ import kotlinx.serialization.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.encoding.*
class StoreApi(
open class StoreApi(
baseUrl: String = ApiClient.BASE_URL,
httpClientEngine: HttpClientEngine? = null,
httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null,
@@ -46,7 +46,7 @@ class StoreApi(
* @param orderId ID of the order that needs to be deleted
* @return void
*/
suspend fun deleteOrder(orderId: kotlin.String): HttpResponse<Unit> {
open suspend fun deleteOrder(orderId: kotlin.String): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -78,7 +78,7 @@ class StoreApi(
* @return kotlin.collections.Map<kotlin.String, kotlin.Int>
*/
@Suppress("UNCHECKED_CAST")
suspend fun getInventory(): HttpResponse<kotlin.collections.Map<kotlin.String, kotlin.Int>> {
open suspend fun getInventory(): HttpResponse<kotlin.collections.Map<kotlin.String, kotlin.Int>> {
val localVariableAuthNames = listOf<String>("api_key")
@@ -121,7 +121,7 @@ class StoreApi(
* @return Order
*/
@Suppress("UNCHECKED_CAST")
suspend fun getOrderById(orderId: kotlin.Long): HttpResponse<Order> {
open suspend fun getOrderById(orderId: kotlin.Long): HttpResponse<Order> {
val localVariableAuthNames = listOf<String>()
@@ -154,7 +154,7 @@ class StoreApi(
* @return Order
*/
@Suppress("UNCHECKED_CAST")
suspend fun placeOrder(body: Order): HttpResponse<Order> {
open suspend fun placeOrder(body: Order): HttpResponse<Order> {
val localVariableAuthNames = listOf<String>()

View File

@@ -33,7 +33,7 @@ import kotlinx.serialization.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.encoding.*
class UserApi(
open class UserApi(
baseUrl: String = ApiClient.BASE_URL,
httpClientEngine: HttpClientEngine? = null,
httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null,
@@ -46,7 +46,7 @@ class UserApi(
* @param body Created user object
* @return void
*/
suspend fun createUser(body: User): HttpResponse<Unit> {
open suspend fun createUser(body: User): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -78,7 +78,7 @@ class UserApi(
* @param body List of user object
* @return void
*/
suspend fun createUsersWithArrayInput(body: kotlin.collections.List<User>): HttpResponse<Unit> {
open suspend fun createUsersWithArrayInput(body: kotlin.collections.List<User>): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -119,7 +119,7 @@ class UserApi(
* @param body List of user object
* @return void
*/
suspend fun createUsersWithListInput(body: kotlin.collections.List<User>): HttpResponse<Unit> {
open suspend fun createUsersWithListInput(body: kotlin.collections.List<User>): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -160,7 +160,7 @@ class UserApi(
* @param username The name that needs to be deleted
* @return void
*/
suspend fun deleteUser(username: kotlin.String): HttpResponse<Unit> {
open suspend fun deleteUser(username: kotlin.String): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -193,7 +193,7 @@ class UserApi(
* @return User
*/
@Suppress("UNCHECKED_CAST")
suspend fun getUserByName(username: kotlin.String): HttpResponse<User> {
open suspend fun getUserByName(username: kotlin.String): HttpResponse<User> {
val localVariableAuthNames = listOf<String>()
@@ -227,7 +227,7 @@ class UserApi(
* @return kotlin.String
*/
@Suppress("UNCHECKED_CAST")
suspend fun loginUser(username: kotlin.String, password: kotlin.String): HttpResponse<kotlin.String> {
open suspend fun loginUser(username: kotlin.String, password: kotlin.String): HttpResponse<kotlin.String> {
val localVariableAuthNames = listOf<String>()
@@ -260,7 +260,7 @@ class UserApi(
*
* @return void
*/
suspend fun logoutUser(): HttpResponse<Unit> {
open suspend fun logoutUser(): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()
@@ -293,7 +293,7 @@ class UserApi(
* @param body Updated user object
* @return void
*/
suspend fun updateUser(username: kotlin.String, body: User): HttpResponse<Unit> {
open suspend fun updateUser(username: kotlin.String, body: User): HttpResponse<Unit> {
val localVariableAuthNames = listOf<String>()

View File

@@ -33,7 +33,7 @@ import kotlinx.serialization.encoding.*
* @param message
*/
@Serializable
data class ApiResponse (
data class ModelApiResponse (
@SerialName(value = "code") val code: kotlin.Int? = null,