forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 6.0.x
This commit is contained in:
@@ -39,6 +39,8 @@ docs/MapTest.md
|
||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
docs/Model200Response.md
|
||||
docs/ModelApiResponse.md
|
||||
docs/ModelFile.md
|
||||
docs/ModelList.md
|
||||
docs/ModelReturn.md
|
||||
docs/Name.md
|
||||
docs/NumberOnly.md
|
||||
@@ -124,6 +126,8 @@ src/main/java/org/openapitools/client/model/MapTest.java
|
||||
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
|
||||
src/main/java/org/openapitools/client/model/Model200Response.java
|
||||
src/main/java/org/openapitools/client/model/ModelApiResponse.java
|
||||
src/main/java/org/openapitools/client/model/ModelFile.java
|
||||
src/main/java/org/openapitools/client/model/ModelList.java
|
||||
src/main/java/org/openapitools/client/model/ModelReturn.java
|
||||
src/main/java/org/openapitools/client/model/Name.java
|
||||
src/main/java/org/openapitools/client/model/NumberOnly.java
|
||||
|
||||
@@ -186,6 +186,8 @@ Class | Method | HTTP request | Description
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](docs/Model200Response.md)
|
||||
- [ModelApiResponse](docs/ModelApiResponse.md)
|
||||
- [ModelFile](docs/ModelFile.md)
|
||||
- [ModelList](docs/ModelList.md)
|
||||
- [ModelReturn](docs/ModelReturn.md)
|
||||
- [Name](docs/Name.md)
|
||||
- [NumberOnly](docs/NumberOnly.md)
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**file** | [**java.io.File**](java.io.File.md) | | [optional]
|
||||
**files** | [**List<java.io.File>**](java.io.File.md) | | [optional]
|
||||
**_file** | [**ModelFile**](ModelFile.md) | | [optional]
|
||||
**files** | [**List<ModelFile>**](ModelFile.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
@@ -491,7 +491,7 @@ null (empty response body)
|
||||
|
||||
<a name="uploadFile"></a>
|
||||
# **uploadFile**
|
||||
> ModelApiResponse uploadFile(petId, additionalMetadata, file)
|
||||
> ModelApiResponse uploadFile(petId, additionalMetadata, _file)
|
||||
|
||||
uploads an image
|
||||
|
||||
@@ -517,9 +517,9 @@ public class Example {
|
||||
PetApi apiInstance = new PetApi(defaultClient);
|
||||
Long petId = 56L; // Long | ID of pet to update
|
||||
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
|
||||
File file = new File("/path/to/file"); // File | file to upload
|
||||
File _file = new File("/path/to/file"); // File | file to upload
|
||||
try {
|
||||
ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
|
||||
ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, _file);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#uploadFile");
|
||||
@@ -538,7 +538,7 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **Long**| ID of pet to update |
|
||||
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
|
||||
**file** | **File**| file to upload | [optional]
|
||||
**_file** | **File**| file to upload | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ public class AnotherFakeApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ public class FakeApi {
|
||||
"application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -619,7 +619,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -741,7 +741,7 @@ public class FakeApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -869,7 +869,7 @@ public class FakeApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1000,7 +1000,7 @@ public class FakeApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1197,7 +1197,7 @@ public class FakeApi {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1417,7 +1417,7 @@ public class FakeApi {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1571,7 +1571,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1784,7 +1784,7 @@ public class FakeApi {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1916,7 +1916,7 @@ public class FakeApi {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -2071,7 +2071,7 @@ public class FakeApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ public class FakeClassnameTags123Api {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ public class PetApi {
|
||||
"application/json", "application/xml"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ public class PetApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -393,7 +393,7 @@ public class PetApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -530,7 +530,7 @@ public class PetApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -670,7 +670,7 @@ public class PetApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -806,7 +806,7 @@ public class PetApi {
|
||||
"application/json", "application/xml"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -949,7 +949,7 @@ public class PetApi {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1032,7 +1032,7 @@ public class PetApi {
|
||||
* Build call for uploadFile
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @param _file file to upload (optional)
|
||||
* @param _callback Callback for upload/download progress
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
@@ -1042,7 +1042,7 @@ public class PetApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
|
||||
public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException {
|
||||
String basePath = null;
|
||||
|
||||
// Operation Servers
|
||||
@@ -1073,8 +1073,8 @@ public class PetApi {
|
||||
localVarFormParams.put("additionalMetadata", additionalMetadata);
|
||||
}
|
||||
|
||||
if (file != null) {
|
||||
localVarFormParams.put("file", file);
|
||||
if (_file != null) {
|
||||
localVarFormParams.put("file", _file);
|
||||
}
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
@@ -1089,7 +1089,7 @@ public class PetApi {
|
||||
"multipart/form-data"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1098,7 +1098,7 @@ public class PetApi {
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
|
||||
private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException {
|
||||
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
@@ -1106,7 +1106,7 @@ public class PetApi {
|
||||
}
|
||||
|
||||
|
||||
okhttp3.Call localVarCall = uploadFileCall(petId, additionalMetadata, file, _callback);
|
||||
okhttp3.Call localVarCall = uploadFileCall(petId, additionalMetadata, _file, _callback);
|
||||
return localVarCall;
|
||||
|
||||
}
|
||||
@@ -1116,7 +1116,7 @@ public class PetApi {
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @param _file file to upload (optional)
|
||||
* @return ModelApiResponse
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
@@ -1125,8 +1125,8 @@ public class PetApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
|
||||
ApiResponse<ModelApiResponse> localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, file);
|
||||
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException {
|
||||
ApiResponse<ModelApiResponse> localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file);
|
||||
return localVarResp.getData();
|
||||
}
|
||||
|
||||
@@ -1135,7 +1135,7 @@ public class PetApi {
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @param _file file to upload (optional)
|
||||
* @return ApiResponse<ModelApiResponse>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
* @http.response.details
|
||||
@@ -1144,8 +1144,8 @@ public class PetApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
|
||||
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, file, null);
|
||||
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException {
|
||||
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null);
|
||||
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
|
||||
return localVarApiClient.execute(localVarCall, localVarReturnType);
|
||||
}
|
||||
@@ -1155,7 +1155,7 @@ public class PetApi {
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @param _file file to upload (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
|
||||
@@ -1165,9 +1165,9 @@ public class PetApi {
|
||||
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File file, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
|
||||
public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
|
||||
|
||||
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, file, _callback);
|
||||
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback);
|
||||
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
|
||||
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
|
||||
return localVarCall;
|
||||
@@ -1233,7 +1233,7 @@ public class PetApi {
|
||||
"multipart/form-data"
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ public class StoreApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ public class StoreApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ public class StoreApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -505,7 +505,7 @@ public class StoreApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -494,7 +494,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -623,7 +623,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -766,7 +766,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -903,7 +903,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
@@ -1021,7 +1021,7 @@ public class UserApi {
|
||||
|
||||
};
|
||||
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
|
||||
if (localVarHeaderParams != null && localVarContentTypes != null) {
|
||||
if (localVarContentType != null) {
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.ModelFile;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
|
||||
@@ -35,47 +36,47 @@ import android.os.Parcel;
|
||||
public class FileSchemaTestClass implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_FILE = "file";
|
||||
@SerializedName(SERIALIZED_NAME_FILE)
|
||||
private java.io.File file;
|
||||
private ModelFile _file;
|
||||
|
||||
public static final String SERIALIZED_NAME_FILES = "files";
|
||||
@SerializedName(SERIALIZED_NAME_FILES)
|
||||
private List<java.io.File> files = null;
|
||||
private List<ModelFile> files = null;
|
||||
|
||||
public FileSchemaTestClass() {
|
||||
}
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
public FileSchemaTestClass _file(ModelFile _file) {
|
||||
|
||||
this.file = file;
|
||||
this._file = _file;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file
|
||||
* @return file
|
||||
* Get _file
|
||||
* @return _file
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public java.io.File getFile() {
|
||||
return file;
|
||||
public ModelFile getFile() {
|
||||
return _file;
|
||||
}
|
||||
|
||||
|
||||
public void setFile(java.io.File file) {
|
||||
this.file = file;
|
||||
public void setFile(ModelFile _file) {
|
||||
this._file = _file;
|
||||
}
|
||||
|
||||
|
||||
public FileSchemaTestClass files(List<java.io.File> files) {
|
||||
public FileSchemaTestClass files(List<ModelFile> files) {
|
||||
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass addFilesItem(java.io.File filesItem) {
|
||||
public FileSchemaTestClass addFilesItem(ModelFile filesItem) {
|
||||
if (this.files == null) {
|
||||
this.files = new ArrayList<java.io.File>();
|
||||
this.files = new ArrayList<ModelFile>();
|
||||
}
|
||||
this.files.add(filesItem);
|
||||
return this;
|
||||
@@ -88,12 +89,12 @@ public class FileSchemaTestClass implements Parcelable {
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
public List<java.io.File> getFiles() {
|
||||
public List<ModelFile> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
|
||||
public void setFiles(List<java.io.File> files) {
|
||||
public void setFiles(List<ModelFile> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
@@ -107,20 +108,20 @@ public class FileSchemaTestClass implements Parcelable {
|
||||
return false;
|
||||
}
|
||||
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
|
||||
return Objects.equals(this.file, fileSchemaTestClass.file) &&
|
||||
return Objects.equals(this._file, fileSchemaTestClass._file) &&
|
||||
Objects.equals(this.files, fileSchemaTestClass.files);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(file, files);
|
||||
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(" _file: ").append(toIndentedString(_file)).append("\n");
|
||||
sb.append(" files: ").append(toIndentedString(files)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
@@ -139,13 +140,13 @@ public class FileSchemaTestClass implements Parcelable {
|
||||
|
||||
|
||||
public void writeToParcel(Parcel out, int flags) {
|
||||
out.writeValue(file);
|
||||
out.writeValue(_file);
|
||||
out.writeValue(files);
|
||||
}
|
||||
|
||||
FileSchemaTestClass(Parcel in) {
|
||||
file = (java.io.File)in.readValue(java.io.File.class.getClassLoader());
|
||||
files = (List<java.io.File>)in.readValue(java.io.File.class.getClassLoader());
|
||||
_file = (ModelFile)in.readValue(ModelFile.class.getClassLoader());
|
||||
files = (List<ModelFile>)in.readValue(ModelFile.class.getClassLoader());
|
||||
}
|
||||
|
||||
public int describeContents() {
|
||||
|
||||
Reference in New Issue
Block a user