Swagger parser update: 2.0.8-OpenAPITools.org-1 (#1721)

* Update Swagger-Parser Version

* Update samples

* surpress javadoc warning

* fix TS tests

* Set version to 2.0.8-OpenAPITools.org-1
This commit is contained in:
Jérémie Bresson
2018-12-22 11:12:08 +01:00
committed by William Cheng
parent 43abd61144
commit a7dfc650b6
715 changed files with 6588 additions and 6470 deletions

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
> Client call123testSpecialTags(body)
To test special tags
@@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
Client body = new Client(); // Client | client model
try {
Client result = apiInstance.call123testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type

View File

@@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
> OuterComposite fakeOuterCompositeSerialize(body)
@@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi();
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass)
> testBodyWithFileSchema(body)
@@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace();
@@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user)
> testBodyWithQueryParams(query, body)
@@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String |
User user = new User(); // User |
User body = new User(); // User |
try {
apiInstance.testBodyWithQueryParams(query, user);
apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace();
@@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **String**| |
**user** | [**User**](User.md)| |
**body** | [**User**](User.md)| |
### Return type
@@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a>
# **testClientModel**
> Client testClientModel(client)
> Client testClientModel(body)
To test \&quot;client\&quot; model
@@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model
Client body = new Client(); // Client | client model
try {
Client result = apiInstance.testClientModel(client);
Client result = apiInstance.testClientModel(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type
@@ -528,7 +528,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody)
> testInlineAdditionalProperties(param)
test inline additionalProperties
@@ -540,9 +540,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi();
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
Map<String, String> param = new HashMap(); // Map<String, String> | request body
try {
apiInstance.testInlineAdditionalProperties(requestBody);
apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace();
@@ -553,7 +553,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body |
**param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a>
# **testClassname**
> Client testClassname(client)
> Client testClassname(body)
To test class name in snake case
@@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model
Client body = new Client(); // Client | client model
try {
Client result = apiInstance.testClassname(client);
Client result = apiInstance.testClassname(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a>
# **addPet**
> addPet(pet)
> addPet(body)
Add a new pet to the store
@@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try {
apiInstance.addPet(pet);
apiInstance.addPet(body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace();
@@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a>
# **updatePet**
> updatePet(pet)
> updatePet(body)
Update an existing pet
@@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
try {
apiInstance.updatePet(pet);
apiInstance.updatePet(body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace();
@@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type

View File

@@ -152,7 +152,7 @@ No authorization required
<a name="placeOrder"></a>
# **placeOrder**
> Order placeOrder(order)
> Order placeOrder(body)
Place an order for a pet
@@ -164,9 +164,9 @@ Place an order for a pet
StoreApi apiInstance = new StoreApi();
Order order = new Order(); // Order | order placed for purchasing the pet
Order body = new Order(); // Order | order placed for purchasing the pet
try {
Order result = apiInstance.placeOrder(order);
Order result = apiInstance.placeOrder(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder");
@@ -178,7 +178,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type

View File

@@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a>
# **createUser**
> createUser(user)
> createUser(body)
Create user
@@ -30,9 +30,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object
User body = new User(); // User | Created user object
try {
apiInstance.createUser(user);
apiInstance.createUser(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace();
@@ -43,7 +43,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object |
**body** | [**User**](User.md)| Created user object |
### Return type
@@ -60,7 +60,7 @@ No authorization required
<a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput**
> createUsersWithArrayInput(user)
> createUsersWithArrayInput(body)
Creates list of users with given input array
@@ -72,9 +72,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(null); // List<User> | List of user object
List<User> body = Arrays.asList(null); // List<User> | List of user object
try {
apiInstance.createUsersWithArrayInput(user);
apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace();
@@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object |
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type
@@ -102,7 +102,7 @@ No authorization required
<a name="createUsersWithListInput"></a>
# **createUsersWithListInput**
> createUsersWithListInput(user)
> createUsersWithListInput(body)
Creates list of users with given input array
@@ -114,9 +114,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(null); // List<User> | List of user object
List<User> body = Arrays.asList(null); // List<User> | List of user object
try {
apiInstance.createUsersWithListInput(user);
apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace();
@@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object |
**body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type
@@ -314,7 +314,7 @@ No authorization required
<a name="updateUser"></a>
# **updateUser**
> updateUser(username, user)
> updateUser(username, body)
Updated user
@@ -329,9 +329,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted
User user = new User(); // User | Updated user object
User body = new User(); // User | Updated user object
try {
apiInstance.updateUser(username, user);
apiInstance.updateUser(username, body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace();
@@ -343,7 +343,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object |
**body** | [**User**](User.md)| Updated user object |
### Return type

View File

@@ -56,14 +56,14 @@ public class AnotherFakeApi {
/**
* Build call for call123testSpecialTags
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/another-fake/dummy";
@@ -103,15 +103,15 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)");
}
com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client call123testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(client);
public Client call123testSpecialTags(Client body) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(body);
return resp.getData();
}
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class AnotherFakeApi {
/**
* To test special tags (asynchronously)
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class AnotherFakeApi {
};
}
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -179,14 +179,14 @@ public class FakeApi {
}
/**
* Build call for fakeOuterCompositeSerialize
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = outerComposite;
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -226,10 +226,10 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(body, progressListener, progressRequestListener);
return call;
}
@@ -237,24 +237,24 @@ public class FakeApi {
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite);
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(body);
return resp.getData();
}
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return ApiResponse&lt;OuterComposite&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null, null);
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -262,12 +262,12 @@ public class FakeApi {
/**
* (asynchronously)
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback<OuterComposite> callback) throws ApiException {
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback<OuterComposite> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -288,7 +288,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -527,14 +527,14 @@ public class FakeApi {
}
/**
* Build call for testBodyWithFileSchema
* @param fileSchemaTestClass (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = fileSchemaTestClass;
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-file-schema";
@@ -574,15 +574,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'fileSchemaTestClass' is set
if (fileSchemaTestClass == null) {
throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)");
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(body, progressListener, progressRequestListener);
return call;
}
@@ -590,34 +590,34 @@ public class FakeApi {
/**
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body);
}
/**
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null, null);
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* (asynchronously)
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -638,21 +638,21 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testBodyWithQueryParams
* @param query (required)
* @param user (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-query-params";
@@ -696,20 +696,20 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling testBodyWithQueryParams(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)");
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, body, progressListener, progressRequestListener);
return call;
}
@@ -718,23 +718,23 @@ public class FakeApi {
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithQueryParams(String query, User user) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, user);
public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body);
}
/**
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, null, null);
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, null, null);
return apiClient.execute(call);
}
@@ -742,12 +742,12 @@ public class FakeApi {
* (asynchronously)
*
* @param query (required)
* @param user (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -768,20 +768,20 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testClientModel
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClientModelCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake";
@@ -821,15 +821,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
}
com.squareup.okhttp.Call call = testClientModelCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener);
return call;
}
@@ -837,24 +837,24 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClientModel(Client client) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(client);
public Client testClientModel(Client body) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(body);
return resp.getData();
}
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -862,12 +862,12 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model (asynchronously)
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClientModelAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -888,7 +888,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -1521,14 +1521,14 @@ public class FakeApi {
}
/**
* Build call for testInlineAdditionalProperties
* @param requestBody request body (required)
* @param param request body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = requestBody;
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = param;
// create path and map variables
String localVarPath = "/fake/inline-additionalProperties";
@@ -1568,15 +1568,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)");
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)");
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(param, progressListener, progressRequestListener);
return call;
}
@@ -1584,34 +1584,34 @@ public class FakeApi {
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param);
}
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null, null);
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, null, null);
return apiClient.execute(call);
}
/**
* test inline additionalProperties (asynchronously)
*
* @param requestBody request body (required)
* @param param request body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> requestBody, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> param, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1632,7 +1632,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -56,14 +56,14 @@ public class FakeClassnameTags123Api {
/**
* Build call for testClassname
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClassnameCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClassnameCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake_classname_test";
@@ -103,15 +103,15 @@ public class FakeClassnameTags123Api {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)");
}
com.squareup.okhttp.Call call = testClassnameCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClassname(Client client) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(client);
public Client testClassname(Client body) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(body);
return resp.getData();
}
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case (asynchronously)
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClassnameAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClassnameAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class FakeClassnameTags123Api {
};
}
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -58,14 +58,14 @@ public class PetApi {
/**
* Build call for addPet
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -105,15 +105,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)");
}
com.squareup.okhttp.Call call = addPetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -121,34 +121,34 @@ public class PetApi {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void addPet(Pet pet) throws ApiException {
addPetWithHttpInfo(pet);
public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body);
}
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Add a new pet to the store (asynchronously)
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call addPetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call addPetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -169,7 +169,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -682,14 +682,14 @@ public class PetApi {
}
/**
* Build call for updatePet
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -729,15 +729,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)");
}
com.squareup.okhttp.Call call = updatePetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -745,34 +745,34 @@ public class PetApi {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updatePet(Pet pet) throws ApiException {
updatePetWithHttpInfo(pet);
public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body);
}
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Update an existing pet (asynchronously)
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updatePetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updatePetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -793,7 +793,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -408,14 +408,14 @@ public class StoreApi {
}
/**
* Build call for placeOrder
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call placeOrderCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = order;
public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/store/order";
@@ -455,15 +455,15 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'order' is set
if (order == null) {
throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)");
}
com.squareup.okhttp.Call call = placeOrderCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderCall(body, progressListener, progressRequestListener);
return call;
}
@@ -471,24 +471,24 @@ public class StoreApi {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Order placeOrder(Order order) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(order);
public Order placeOrder(Order body) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(body);
return resp.getData();
}
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return ApiResponse&lt;Order&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, null, null);
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -496,12 +496,12 @@ public class StoreApi {
/**
* Place an order for a pet (asynchronously)
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call placeOrderAsync(Order order, final ApiCallback<Order> callback) throws ApiException {
public com.squareup.okhttp.Call placeOrderAsync(Order body, final ApiCallback<Order> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -522,7 +522,7 @@ public class StoreApi {
};
}
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -56,14 +56,14 @@ public class UserApi {
/**
* Build call for createUser
* @param user Created user object (required)
* @param body Created user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUserCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user";
@@ -103,15 +103,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUserValidateBeforeCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUserValidateBeforeCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)");
}
com.squareup.okhttp.Call call = createUserCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,34 +119,34 @@ public class UserApi {
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUser(User user) throws ApiException {
createUserWithHttpInfo(user);
public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body);
}
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Create user (asynchronously)
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUserAsync(User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUserAsync(User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -167,20 +167,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithArrayInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithArray";
@@ -220,15 +220,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -236,34 +236,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithArrayInput(List<User> user) throws ApiException {
createUsersWithArrayInputWithHttpInfo(user);
public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -284,20 +284,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithListInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithList";
@@ -337,15 +337,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithListInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -353,34 +353,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithListInput(List<User> user) throws ApiException {
createUsersWithListInputWithHttpInfo(user);
public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -401,7 +401,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -894,14 +894,14 @@ public class UserApi {
/**
* Build call for updateUser
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updateUserCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -942,20 +942,20 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)");
}
com.squareup.okhttp.Call call = updateUserCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserCall(username, body, progressListener, progressRequestListener);
return call;
}
@@ -964,23 +964,23 @@ public class UserApi {
* 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)
* @param body Updated user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updateUser(String username, User user) throws ApiException {
updateUserWithHttpInfo(username, user);
public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body);
}
/**
* 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)
* @param body Updated user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, null, null);
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, null, null);
return apiClient.execute(call);
}
@@ -988,12 +988,12 @@ public class UserApi {
* Updated user (asynchronously)
* 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)
* @param body Updated user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updateUserAsync(String username, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updateUserAsync(String username, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1014,7 +1014,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}