Issue 20804: Add java nullability annotations (#20806)

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.
This commit is contained in:
Nicolas Vervelle
2025-03-25 16:01:17 +01:00
committed by GitHub
parent d81b5a37d1
commit 8ca3543436
228 changed files with 4520 additions and 4421 deletions

View File

@@ -90,7 +90,7 @@ public class AnotherFakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call call123testSpecialTagsCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call call123testSpecialTagsCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -145,7 +145,7 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call call123testSpecialTagsValidateBeforeCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call call123testSpecialTagsValidateBeforeCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'uuidTest' is set
if (uuidTest == null) {
throw new ApiException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags(Async)");
@@ -174,7 +174,7 @@ public class AnotherFakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException {
public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException {
ApiResponse<Client> localVarResp = call123testSpecialTagsWithHttpInfo(uuidTest, body);
return localVarResp.getData();
}
@@ -193,7 +193,7 @@ public class AnotherFakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException {
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException {
okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -214,7 +214,7 @@ public class AnotherFakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call call123testSpecialTagsAsync(UUID uuidTest, Client body, final ApiCallback<Client> _callback) throws ApiException {
public okhttp3.Call call123testSpecialTagsAsync(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback<Client> _callback) throws ApiException {
okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, _callback);
Type localVarReturnType = new TypeToken<Client>(){}.getType();

View File

@@ -96,7 +96,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createXmlItemCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
public okhttp3.Call createXmlItemCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -154,7 +154,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createXmlItemValidateBeforeCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
private okhttp3.Call createXmlItemValidateBeforeCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'xmlItem' is set
if (xmlItem == null) {
throw new ApiException("Missing the required parameter 'xmlItem' when calling createXmlItem(Async)");
@@ -176,7 +176,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void createXmlItem(XmlItem xmlItem) throws ApiException {
public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException {
createXmlItemWithHttpInfo(xmlItem);
}
@@ -193,7 +193,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException {
public ApiResponse<Void> createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException {
okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, null);
return localVarApiClient.execute(localVarCall);
}
@@ -212,7 +212,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createXmlItemAsync(XmlItem xmlItem, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call createXmlItemAsync(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -231,7 +231,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output boolean </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call fakeOuterBooleanSerializeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -284,7 +284,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(Boolean body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException {
return fakeOuterBooleanSerializeCall(body, _callback);
}
@@ -302,7 +302,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output boolean </td><td> - </td></tr>
</table>
*/
public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException {
ApiResponse<Boolean> localVarResp = fakeOuterBooleanSerializeWithHttpInfo(body);
return localVarResp.getData();
}
@@ -320,7 +320,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output boolean </td><td> - </td></tr>
</table>
*/
public ApiResponse<Boolean> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
public ApiResponse<Boolean> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<Boolean>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -340,7 +340,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output boolean </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterBooleanSerializeAsync(Boolean body, final ApiCallback<Boolean> _callback) throws ApiException {
public okhttp3.Call fakeOuterBooleanSerializeAsync(@javax.annotation.Nullable Boolean body, final ApiCallback<Boolean> _callback) throws ApiException {
okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<Boolean>(){}.getType();
@@ -360,7 +360,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output composite </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call fakeOuterCompositeSerializeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -413,7 +413,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException {
return fakeOuterCompositeSerializeCall(body, _callback);
}
@@ -431,7 +431,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output composite </td><td> - </td></tr>
</table>
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws ApiException {
ApiResponse<OuterComposite> localVarResp = fakeOuterCompositeSerializeWithHttpInfo(body);
return localVarResp.getData();
}
@@ -449,7 +449,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output composite </td><td> - </td></tr>
</table>
*/
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -469,7 +469,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output composite </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback<OuterComposite> _callback) throws ApiException {
public okhttp3.Call fakeOuterCompositeSerializeAsync(@javax.annotation.Nullable OuterComposite body, final ApiCallback<OuterComposite> _callback) throws ApiException {
okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
@@ -489,7 +489,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output number </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterNumberSerializeCall(BigDecimal body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call fakeOuterNumberSerializeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -542,7 +542,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(BigDecimal body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException {
return fakeOuterNumberSerializeCall(body, _callback);
}
@@ -560,7 +560,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output number </td><td> - </td></tr>
</table>
*/
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException {
ApiResponse<BigDecimal> localVarResp = fakeOuterNumberSerializeWithHttpInfo(body);
return localVarResp.getData();
}
@@ -578,7 +578,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output number </td><td> - </td></tr>
</table>
*/
public ApiResponse<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
public ApiResponse<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<BigDecimal>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -598,7 +598,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output number </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterNumberSerializeAsync(BigDecimal body, final ApiCallback<BigDecimal> _callback) throws ApiException {
public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable BigDecimal body, final ApiCallback<BigDecimal> _callback) throws ApiException {
okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<BigDecimal>(){}.getType();
@@ -618,7 +618,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output string </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -671,7 +671,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException {
return fakeOuterStringSerializeCall(body, _callback);
}
@@ -689,7 +689,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output string </td><td> - </td></tr>
</table>
*/
public String fakeOuterStringSerialize(String body) throws ApiException {
public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException {
ApiResponse<String> localVarResp = fakeOuterStringSerializeWithHttpInfo(body);
return localVarResp.getData();
}
@@ -707,7 +707,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output string </td><td> - </td></tr>
</table>
*/
public ApiResponse<String> fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
public ApiResponse<String> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<String>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -727,7 +727,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Output string </td><td> - </td></tr>
</table>
*/
public okhttp3.Call fakeOuterStringSerializeAsync(String body, final ApiCallback<String> _callback) throws ApiException {
public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback<String> _callback) throws ApiException {
okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<String>(){}.getType();
@@ -747,7 +747,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testBodyWithFileSchemaCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -800,7 +800,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)");
@@ -822,7 +822,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body);
}
@@ -839,7 +839,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException {
okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -858,7 +858,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testBodyWithFileSchemaAsync(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -878,7 +878,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testBodyWithQueryParamsCall(String query, User body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testBodyWithQueryParamsCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -932,7 +932,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)");
@@ -960,7 +960,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public void testBodyWithQueryParams(String query, User body) throws ApiException {
public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body);
}
@@ -978,7 +978,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException {
okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -998,7 +998,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testBodyWithQueryParamsAsync(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -1017,7 +1017,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testClientModelCall(Client body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testClientModelCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1071,7 +1071,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testClientModelValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testClientModelValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
@@ -1094,7 +1094,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public Client testClientModel(Client body) throws ApiException {
public Client testClientModel(@javax.annotation.Nonnull Client body) throws ApiException {
ApiResponse<Client> localVarResp = testClientModelWithHttpInfo(body);
return localVarResp.getData();
}
@@ -1112,7 +1112,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
public ApiResponse<Client> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException {
okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1132,7 +1132,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testClientModelAsync(Client body, final ApiCallback<Client> _callback) throws ApiException {
public okhttp3.Call testClientModelAsync(@javax.annotation.Nonnull Client body, final ApiCallback<Client> _callback) throws ApiException {
okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
@@ -1166,7 +1166,7 @@ public class FakeApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testEndpointParametersCall(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1275,7 +1275,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testEndpointParametersValidateBeforeCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testEndpointParametersValidateBeforeCall(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'number' is set
if (number == null) {
throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)");
@@ -1326,7 +1326,7 @@ public class FakeApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
}
@@ -1357,7 +1357,7 @@ public class FakeApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
public ApiResponse<Void> testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null);
return localVarApiClient.execute(localVarCall);
}
@@ -1390,7 +1390,7 @@ public class FakeApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testEndpointParametersAsync(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testEndpointParametersAsync(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -1417,7 +1417,7 @@ public class FakeApi {
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testEnumParametersCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testEnumParametersCall(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1484,7 +1484,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testEnumParametersValidateBeforeCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testEnumParametersValidateBeforeCall(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException {
return testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback);
}
@@ -1509,7 +1509,7 @@ public class FakeApi {
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
*/
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
public void testEnumParameters(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
}
@@ -1534,7 +1534,7 @@ public class FakeApi {
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
public ApiResponse<Void> testEnumParametersWithHttpInfo(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, null);
return localVarApiClient.execute(localVarCall);
}
@@ -1561,13 +1561,13 @@ public class FakeApi {
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testEnumParametersAsync(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testEnumParametersAsync(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testGroupParametersCall(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1625,7 +1625,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testGroupParametersValidateBeforeCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testGroupParametersValidateBeforeCall(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
throw new ApiException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters(Async)");
@@ -1646,12 +1646,12 @@ public class FakeApi {
}
private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
private ApiResponse<Void> testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws ApiException {
okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, null);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call testGroupParametersAsync(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback<Void> _callback) throws ApiException {
private okhttp3.Call testGroupParametersAsync(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -1659,14 +1659,20 @@ public class FakeApi {
}
public class APItestGroupParametersRequest {
@javax.annotation.Nonnull
private final Integer requiredStringGroup;
@javax.annotation.Nonnull
private final Boolean requiredBooleanGroup;
@javax.annotation.Nonnull
private final Long requiredInt64Group;
@javax.annotation.Nullable
private Integer stringGroup;
@javax.annotation.Nullable
private Boolean booleanGroup;
@javax.annotation.Nullable
private Long int64Group;
private APItestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) {
private APItestGroupParametersRequest(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) {
this.requiredStringGroup = requiredStringGroup;
this.requiredBooleanGroup = requiredBooleanGroup;
this.requiredInt64Group = requiredInt64Group;
@@ -1677,7 +1683,7 @@ public class FakeApi {
* @param stringGroup String in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest stringGroup(Integer stringGroup) {
public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
@@ -1687,7 +1693,7 @@ public class FakeApi {
* @param booleanGroup Boolean in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) {
public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
@@ -1697,7 +1703,7 @@ public class FakeApi {
* @param int64Group Integer in group parameters (optional)
* @return APItestGroupParametersRequest
*/
public APItestGroupParametersRequest int64Group(Long int64Group) {
public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) {
this.int64Group = int64Group;
return this;
}
@@ -1778,7 +1784,7 @@ public class FakeApi {
<tr><td> 400 </td><td> Something wrong </td><td> - </td></tr>
</table>
*/
public APItestGroupParametersRequest testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) {
public APItestGroupParametersRequest testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) {
return new APItestGroupParametersRequest(requiredStringGroup, requiredBooleanGroup, requiredInt64Group);
}
/**
@@ -1794,7 +1800,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testInlineAdditionalPropertiesCall(Map<String, String> param, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testInlineAdditionalPropertiesCall(@javax.annotation.Nonnull Map<String, String> param, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1847,7 +1853,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> param, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(@javax.annotation.Nonnull Map<String, String> param, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)");
@@ -1869,7 +1875,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param);
}
@@ -1886,7 +1892,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map<String, String> param) throws ApiException {
okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, null);
return localVarApiClient.execute(localVarCall);
}
@@ -1905,7 +1911,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testInlineAdditionalPropertiesAsync(Map<String, String> param, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testInlineAdditionalPropertiesAsync(@javax.annotation.Nonnull Map<String, String> param, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -1925,7 +1931,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testJsonFormDataCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1986,7 +1992,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testJsonFormDataValidateBeforeCall(String param, String param2, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testJsonFormDataValidateBeforeCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException("Missing the required parameter 'param' when calling testJsonFormData(Async)");
@@ -2014,7 +2020,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void testJsonFormData(String param, String param2) throws ApiException {
public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
testJsonFormDataWithHttpInfo(param, param2);
}
@@ -2032,7 +2038,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
public ApiResponse<Void> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, null);
return localVarApiClient.execute(localVarCall);
}
@@ -2052,7 +2058,7 @@ public class FakeApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testJsonFormDataAsync(String param, String param2, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testJsonFormDataAsync(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -2075,7 +2081,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testQueryParameterCollectionFormatCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testQueryParameterCollectionFormatCall(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -2132,7 +2138,7 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'pipe' is set
if (pipe == null) {
throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)");
@@ -2178,7 +2184,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context) throws ApiException {
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
}
@@ -2199,7 +2205,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context) throws ApiException {
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null);
return localVarApiClient.execute(localVarCall);
}
@@ -2222,7 +2228,7 @@ public class FakeApi {
<tr><td> 200 </td><td> Success </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testQueryParameterCollectionFormatAsync(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call testQueryParameterCollectionFormatAsync(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);

View File

@@ -88,7 +88,7 @@ public class FakeClassnameTags123Api {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testClassnameCall(Client body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call testClassnameCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -142,7 +142,7 @@ public class FakeClassnameTags123Api {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call testClassnameValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call testClassnameValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)");
@@ -165,7 +165,7 @@ public class FakeClassnameTags123Api {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public Client testClassname(Client body) throws ApiException {
public Client testClassname(@javax.annotation.Nonnull Client body) throws ApiException {
ApiResponse<Client> localVarResp = testClassnameWithHttpInfo(body);
return localVarResp.getData();
}
@@ -183,7 +183,7 @@ public class FakeClassnameTags123Api {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
public ApiResponse<Client> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException {
okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -203,7 +203,7 @@ public class FakeClassnameTags123Api {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call testClassnameAsync(Client body, final ApiCallback<Client> _callback) throws ApiException {
public okhttp3.Call testClassnameAsync(@javax.annotation.Nonnull Client body, final ApiCallback<Client> _callback) throws ApiException {
okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<Client>(){}.getType();

View File

@@ -92,7 +92,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public okhttp3.Call addPetCall(Pet body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -146,7 +146,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addPetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)");
@@ -169,7 +169,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public void addPet(Pet body) throws ApiException {
public void addPet(@javax.annotation.Nonnull Pet body) throws ApiException {
addPetWithHttpInfo(body);
}
@@ -187,7 +187,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
public ApiResponse<Void> addPetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException {
okhttp3.Call localVarCall = addPetValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -207,7 +207,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public okhttp3.Call addPetAsync(Pet body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = addPetValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -228,7 +228,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -282,7 +282,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)");
@@ -306,7 +306,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
</table>
*/
public void deletePet(Long petId, String apiKey) throws ApiException {
public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey);
}
@@ -325,7 +325,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
public ApiResponse<Void> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null);
return localVarApiClient.execute(localVarCall);
}
@@ -346,7 +346,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid pet value </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -366,7 +366,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
</table>
*/
public okhttp3.Call findPetsByStatusCall(List<String> status, final ApiCallback _callback) throws ApiException {
public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List<String> status, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -421,7 +421,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findPetsByStatusValidateBeforeCall(List<String> status, final ApiCallback _callback) throws ApiException {
private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List<String> status, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'status' is set
if (status == null) {
throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)");
@@ -445,7 +445,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
</table>
*/
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
public List<Pet> findPetsByStatus(@javax.annotation.Nonnull List<String> status) throws ApiException {
ApiResponse<List<Pet>> localVarResp = findPetsByStatusWithHttpInfo(status);
return localVarResp.getData();
}
@@ -464,7 +464,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
</table>
*/
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List<String> status) throws ApiException {
okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null);
Type localVarReturnType = new TypeToken<List<Pet>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -485,7 +485,7 @@ public class PetApi {
<tr><td> 400 </td><td> Invalid status value </td><td> - </td></tr>
</table>
*/
public okhttp3.Call findPetsByStatusAsync(List<String> status, final ApiCallback<List<Pet>> _callback) throws ApiException {
public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List<String> status, final ApiCallback<List<Pet>> _callback) throws ApiException {
okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback);
Type localVarReturnType = new TypeToken<List<Pet>>(){}.getType();
@@ -508,7 +508,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public okhttp3.Call findPetsByTagsCall(Set<String> tags, final ApiCallback _callback) throws ApiException {
public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull Set<String> tags, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -564,7 +564,7 @@ public class PetApi {
@Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call findPetsByTagsValidateBeforeCall(Set<String> tags, final ApiCallback _callback) throws ApiException {
private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull Set<String> tags, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'tags' is set
if (tags == null) {
throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)");
@@ -590,7 +590,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public Set<Pet> findPetsByTags(Set<String> tags) throws ApiException {
public Set<Pet> findPetsByTags(@javax.annotation.Nonnull Set<String> tags) throws ApiException {
ApiResponse<Set<Pet>> localVarResp = findPetsByTagsWithHttpInfo(tags);
return localVarResp.getData();
}
@@ -611,7 +611,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public ApiResponse<Set<Pet>> findPetsByTagsWithHttpInfo(Set<String> tags) throws ApiException {
public ApiResponse<Set<Pet>> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set<String> tags) throws ApiException {
okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null);
Type localVarReturnType = new TypeToken<Set<Pet>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -634,7 +634,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public okhttp3.Call findPetsByTagsAsync(Set<String> tags, final ApiCallback<Set<Pet>> _callback) throws ApiException {
public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull Set<String> tags, final ApiCallback<Set<Pet>> _callback) throws ApiException {
okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback);
Type localVarReturnType = new TypeToken<Set<Pet>>(){}.getType();
@@ -656,7 +656,7 @@ public class PetApi {
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -711,7 +711,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)");
@@ -736,7 +736,7 @@ public class PetApi {
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
</table>
*/
public Pet getPetById(Long petId) throws ApiException {
public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException {
ApiResponse<Pet> localVarResp = getPetByIdWithHttpInfo(petId);
return localVarResp.getData();
}
@@ -756,7 +756,7 @@ public class PetApi {
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
public ApiResponse<Pet> getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException {
okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null);
Type localVarReturnType = new TypeToken<Pet>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -778,7 +778,7 @@ public class PetApi {
<tr><td> 404 </td><td> Pet not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback<Pet> _callback) throws ApiException {
public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback<Pet> _callback) throws ApiException {
okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback);
Type localVarReturnType = new TypeToken<Pet>(){}.getType();
@@ -801,7 +801,7 @@ public class PetApi {
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updatePetCall(Pet body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -855,7 +855,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updatePetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)");
@@ -880,7 +880,7 @@ public class PetApi {
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
</table>
*/
public void updatePet(Pet body) throws ApiException {
public void updatePet(@javax.annotation.Nonnull Pet body) throws ApiException {
updatePetWithHttpInfo(body);
}
@@ -900,7 +900,7 @@ public class PetApi {
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
public ApiResponse<Void> updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException {
okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -922,7 +922,7 @@ public class PetApi {
<tr><td> 405 </td><td> Validation exception </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updatePetAsync(Pet body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -943,7 +943,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1005,7 +1005,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)");
@@ -1029,7 +1029,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status);
}
@@ -1048,7 +1048,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
public ApiResponse<Void> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null);
return localVarApiClient.execute(localVarCall);
}
@@ -1069,7 +1069,7 @@ public class PetApi {
<tr><td> 405 </td><td> Invalid input </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -1090,7 +1090,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(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1153,7 +1153,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(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)");
@@ -1178,7 +1178,7 @@ 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 {
public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file);
return localVarResp.getData();
}
@@ -1198,7 +1198,7 @@ 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 {
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1220,7 +1220,7 @@ 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(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
@@ -1242,7 +1242,7 @@ public class PetApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
public okhttp3.Call uploadFileWithRequiredFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1305,7 +1305,7 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile(Async)");
@@ -1335,7 +1335,7 @@ public class PetApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
ApiResponse<ModelApiResponse> localVarResp = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
return localVarResp.getData();
}
@@ -1355,7 +1355,7 @@ public class PetApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, null);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -1377,7 +1377,7 @@ public class PetApi {
<tr><td> 200 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call uploadFileWithRequiredFileAsync(Long petId, File requiredFile, String additionalMetadata, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
public okhttp3.Call uploadFileWithRequiredFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback<ModelApiResponse> _callback) throws ApiException {
okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, _callback);
Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();

View File

@@ -89,7 +89,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -142,7 +142,7 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException {
private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'orderId' is set
if (orderId == null) {
throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)");
@@ -165,7 +165,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public void deleteOrder(String orderId) throws ApiException {
public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId);
}
@@ -183,7 +183,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
public ApiResponse<Void> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException {
okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null);
return localVarApiClient.execute(localVarCall);
}
@@ -203,7 +203,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -349,7 +349,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -404,7 +404,7 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'orderId' is set
if (orderId == null) {
throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)");
@@ -429,7 +429,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public Order getOrderById(Long orderId) throws ApiException {
public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException {
ApiResponse<Order> localVarResp = getOrderByIdWithHttpInfo(orderId);
return localVarResp.getData();
}
@@ -449,7 +449,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
public ApiResponse<Order> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException {
okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -471,7 +471,7 @@ public class StoreApi {
<tr><td> 404 </td><td> Order not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback<Order> _callback) throws ApiException {
public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback<Order> _callback) throws ApiException {
okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
@@ -492,7 +492,7 @@ public class StoreApi {
<tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
</table>
*/
public okhttp3.Call placeOrderCall(Order body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -546,7 +546,7 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call placeOrderValidateBeforeCall(Order body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)");
@@ -570,7 +570,7 @@ public class StoreApi {
<tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
</table>
*/
public Order placeOrder(Order body) throws ApiException {
public Order placeOrder(@javax.annotation.Nonnull Order body) throws ApiException {
ApiResponse<Order> localVarResp = placeOrderWithHttpInfo(body);
return localVarResp.getData();
}
@@ -589,7 +589,7 @@ public class StoreApi {
<tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
</table>
*/
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
public ApiResponse<Order> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body) throws ApiException {
okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, null);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -610,7 +610,7 @@ public class StoreApi {
<tr><td> 400 </td><td> Invalid Order </td><td> - </td></tr>
</table>
*/
public okhttp3.Call placeOrderAsync(Order body, final ApiCallback<Order> _callback) throws ApiException {
public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order body, final ApiCallback<Order> _callback) throws ApiException {
okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, _callback);
Type localVarReturnType = new TypeToken<Order>(){}.getType();

View File

@@ -89,7 +89,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUserCall(User body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call createUserCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -141,7 +141,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUserValidateBeforeCall(User body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)");
@@ -163,7 +163,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void createUser(User body) throws ApiException {
public void createUser(@javax.annotation.Nonnull User body) throws ApiException {
createUserWithHttpInfo(body);
}
@@ -180,7 +180,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
public ApiResponse<Void> createUserWithHttpInfo(@javax.annotation.Nonnull User body) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -199,7 +199,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUserAsync(User body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -218,7 +218,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUsersWithArrayInputCall(List<User> body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List<User> body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -270,7 +270,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List<User> body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List<User> body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)");
@@ -292,7 +292,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void createUsersWithArrayInput(List<User> body) throws ApiException {
public void createUsersWithArrayInput(@javax.annotation.Nonnull List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body);
}
@@ -309,7 +309,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List<User> body) throws ApiException {
okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -328,7 +328,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUsersWithArrayInputAsync(List<User> body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List<User> body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -347,7 +347,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUsersWithListInputCall(List<User> body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List<User> body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -399,7 +399,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUsersWithListInputValidateBeforeCall(List<User> body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List<User> body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)");
@@ -421,7 +421,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public void createUsersWithListInput(List<User> body) throws ApiException {
public void createUsersWithListInput(@javax.annotation.Nonnull List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body);
}
@@ -438,7 +438,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List<User> body) throws ApiException {
okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -457,7 +457,7 @@ public class UserApi {
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
</table>
*/
public okhttp3.Call createUsersWithListInputAsync(List<User> body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List<User> body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -477,7 +477,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException {
public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -530,7 +530,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)");
@@ -553,7 +553,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public void deleteUser(String username) throws ApiException {
public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException {
deleteUserWithHttpInfo(username);
}
@@ -571,7 +571,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
public ApiResponse<Void> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null);
return localVarApiClient.execute(localVarCall);
}
@@ -591,7 +591,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call deleteUserAsync(String username, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
@@ -612,7 +612,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -667,7 +667,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)");
@@ -692,7 +692,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public User getUserByName(String username) throws ApiException {
public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException {
ApiResponse<User> localVarResp = getUserByNameWithHttpInfo(username);
return localVarResp.getData();
}
@@ -712,7 +712,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
public ApiResponse<User> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null);
Type localVarReturnType = new TypeToken<User>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -734,7 +734,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getUserByNameAsync(String username, final ApiCallback<User> _callback) throws ApiException {
public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback<User> _callback) throws ApiException {
okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback);
Type localVarReturnType = new TypeToken<User>(){}.getType();
@@ -756,7 +756,7 @@ public class UserApi {
<tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
</table>
*/
public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException {
public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -812,7 +812,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException {
private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)");
@@ -842,7 +842,7 @@ public class UserApi {
<tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
</table>
*/
public String loginUser(String username, String password) throws ApiException {
public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
ApiResponse<String> localVarResp = loginUserWithHttpInfo(username, password);
return localVarResp.getData();
}
@@ -862,7 +862,7 @@ public class UserApi {
<tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
</table>
*/
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
public ApiResponse<String> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null);
Type localVarReturnType = new TypeToken<String>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -884,7 +884,7 @@ public class UserApi {
<tr><td> 400 </td><td> Invalid username/password supplied </td><td> - </td></tr>
</table>
*/
public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback<String> _callback) throws ApiException {
public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback<String> _callback) throws ApiException {
okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback);
Type localVarReturnType = new TypeToken<String>(){}.getType();
@@ -1026,7 +1026,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updateUserCall(String username, User body, final ApiCallback _callback) throws ApiException {
public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1079,7 +1079,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateUserValidateBeforeCall(String username, User body, final ApiCallback _callback) throws ApiException {
private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)");
@@ -1108,7 +1108,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public void updateUser(String username, User body) throws ApiException {
public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException {
updateUserWithHttpInfo(username, body);
}
@@ -1127,7 +1127,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
public ApiResponse<Void> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException {
okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, null);
return localVarApiClient.execute(localVarCall);
}
@@ -1148,7 +1148,7 @@ public class UserApi {
<tr><td> 404 </td><td> User not found </td><td> - </td></tr>
</table>
*/
public okhttp3.Call updateUserAsync(String username, User body, final ApiCallback<Void> _callback) throws ApiException {
public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback<Void> _callback) throws ApiException {
okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);