mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 01:12:43 +00:00
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:
@@ -89,7 +89,7 @@ public class AnotherFakeApi {
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client call123testSpecialTags(Client client) throws ApiException {
|
||||
public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
ApiResponse<Client> localVarResponse = call123testSpecialTagsWithHttpInfo(client);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public class AnotherFakeApi {
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -141,7 +141,7 @@ public class AnotherFakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client client) throws ApiException {
|
||||
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
|
||||
@@ -260,7 +260,7 @@ public class FakeApi {
|
||||
* @return Boolean
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
|
||||
public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException {
|
||||
ApiResponse<Boolean> localVarResponse = fakeOuterBooleanSerializeWithHttpInfo(body);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -272,7 +272,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Boolean>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Boolean> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
|
||||
public ApiResponse<Boolean> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -312,7 +312,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(Boolean body) throws ApiException {
|
||||
private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(@javax.annotation.Nullable Boolean body) throws ApiException {
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
@@ -345,7 +345,7 @@ public class FakeApi {
|
||||
* @return OuterComposite
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||
public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
|
||||
ApiResponse<OuterComposite> localVarResponse = fakeOuterCompositeSerializeWithHttpInfo(outerComposite);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -357,7 +357,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<OuterComposite>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -397,7 +397,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite outerComposite) throws ApiException {
|
||||
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
@@ -430,7 +430,7 @@ public class FakeApi {
|
||||
* @return BigDecimal
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
|
||||
public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException {
|
||||
ApiResponse<BigDecimal> localVarResponse = fakeOuterNumberSerializeWithHttpInfo(body);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -442,7 +442,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<BigDecimal>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
|
||||
public ApiResponse<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -482,7 +482,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(BigDecimal body) throws ApiException {
|
||||
private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annotation.Nullable BigDecimal body) throws ApiException {
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
@@ -515,7 +515,7 @@ public class FakeApi {
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String fakeOuterStringSerialize(String body) throws ApiException {
|
||||
public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException {
|
||||
ApiResponse<String> localVarResponse = fakeOuterStringSerializeWithHttpInfo(body);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -527,7 +527,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<String>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<String> fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
|
||||
public ApiResponse<String> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -567,7 +567,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(String body) throws ApiException {
|
||||
private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body) throws ApiException {
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
@@ -748,7 +748,7 @@ public class FakeApi {
|
||||
* @param requestBody request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testAdditionalPropertiesReference(Map<String, Object> requestBody) throws ApiException {
|
||||
public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
|
||||
testAdditionalPropertiesReferenceWithHttpInfo(requestBody);
|
||||
}
|
||||
|
||||
@@ -759,7 +759,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testAdditionalPropertiesReferenceWithHttpInfo(Map<String, Object> requestBody) throws ApiException {
|
||||
public ApiResponse<Void> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -793,7 +793,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(Map<String, Object> requestBody) throws ApiException {
|
||||
private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference");
|
||||
@@ -829,7 +829,7 @@ public class FakeApi {
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
}
|
||||
|
||||
@@ -840,7 +840,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -874,7 +874,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
@@ -911,7 +911,7 @@ public class FakeApi {
|
||||
* @param user (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||
public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
testBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
}
|
||||
|
||||
@@ -923,7 +923,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -957,7 +957,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User user) throws ApiException {
|
||||
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
@@ -1013,7 +1013,7 @@ public class FakeApi {
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClientModel(Client client) throws ApiException {
|
||||
public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
ApiResponse<Client> localVarResponse = testClientModelWithHttpInfo(client);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -1025,7 +1025,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1065,7 +1065,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testClientModelRequestBuilder(Client client) throws ApiException {
|
||||
private HttpRequest.Builder testClientModelRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||
@@ -1114,7 +1114,7 @@ public class FakeApi {
|
||||
* @param paramCallback None (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1138,7 +1138,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1172,7 +1172,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testEndpointParametersRequestBuilder(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 {
|
||||
private HttpRequest.Builder testEndpointParametersRequestBuilder(@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 {
|
||||
// verify the required parameter 'number' is set
|
||||
if (number == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
|
||||
@@ -1274,7 +1274,7 @@ public class FakeApi {
|
||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1292,7 +1292,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1326,7 +1326,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testEnumParametersRequestBuilder(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||
private HttpRequest.Builder testEnumParametersRequestBuilder(@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 {
|
||||
|
||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||
|
||||
@@ -1399,11 +1399,17 @@ public class FakeApi {
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException {
|
||||
@javax.annotation.Nonnull
|
||||
Integer requiredStringGroup = apiRequest.requiredStringGroup();
|
||||
@javax.annotation.Nonnull
|
||||
Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup();
|
||||
@javax.annotation.Nonnull
|
||||
Long requiredInt64Group = apiRequest.requiredInt64Group();
|
||||
@javax.annotation.Nullable
|
||||
Integer stringGroup = apiRequest.stringGroup();
|
||||
@javax.annotation.Nullable
|
||||
Boolean booleanGroup = apiRequest.booleanGroup();
|
||||
@javax.annotation.Nullable
|
||||
Long int64Group = apiRequest.int64Group();
|
||||
testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
}
|
||||
@@ -1436,7 +1442,7 @@ public class FakeApi {
|
||||
* @param int64Group Integer in group parameters (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
|
||||
public void testGroupParameters(@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 {
|
||||
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
}
|
||||
|
||||
@@ -1452,7 +1458,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
|
||||
public 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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1486,7 +1492,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
|
||||
private HttpRequest.Builder testGroupParametersRequestBuilder(@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 {
|
||||
// verify the required parameter 'requiredStringGroup' is set
|
||||
if (requiredStringGroup == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
|
||||
@@ -1547,11 +1553,17 @@ public class FakeApi {
|
||||
|
||||
|
||||
public static final class APItestGroupParametersRequest {
|
||||
@javax.annotation.Nonnull
|
||||
private Integer requiredStringGroup; // Required String in group parameters (required)
|
||||
@javax.annotation.Nonnull
|
||||
private Boolean requiredBooleanGroup; // Required Boolean in group parameters (required)
|
||||
@javax.annotation.Nonnull
|
||||
private Long requiredInt64Group; // Required Integer in group parameters (required)
|
||||
@javax.annotation.Nullable
|
||||
private Integer stringGroup; // String in group parameters (optional)
|
||||
@javax.annotation.Nullable
|
||||
private Boolean booleanGroup; // Boolean in group parameters (optional)
|
||||
@javax.annotation.Nullable
|
||||
private Long int64Group; // Integer in group parameters (optional)
|
||||
|
||||
private APItestGroupParametersRequest(Builder builder) {
|
||||
@@ -1562,21 +1574,27 @@ public class FakeApi {
|
||||
this.booleanGroup = builder.booleanGroup;
|
||||
this.int64Group = builder.int64Group;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public Integer requiredStringGroup() {
|
||||
return requiredStringGroup;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public Boolean requiredBooleanGroup() {
|
||||
return requiredBooleanGroup;
|
||||
}
|
||||
@javax.annotation.Nonnull
|
||||
public Long requiredInt64Group() {
|
||||
return requiredInt64Group;
|
||||
}
|
||||
@javax.annotation.Nullable
|
||||
public Integer stringGroup() {
|
||||
return stringGroup;
|
||||
}
|
||||
@javax.annotation.Nullable
|
||||
public Boolean booleanGroup() {
|
||||
return booleanGroup;
|
||||
}
|
||||
@javax.annotation.Nullable
|
||||
public Long int64Group() {
|
||||
return int64Group;
|
||||
}
|
||||
@@ -1592,27 +1610,27 @@ public class FakeApi {
|
||||
private Boolean booleanGroup;
|
||||
private Long int64Group;
|
||||
|
||||
public Builder requiredStringGroup(Integer requiredStringGroup) {
|
||||
public Builder requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) {
|
||||
this.requiredStringGroup = requiredStringGroup;
|
||||
return this;
|
||||
}
|
||||
public Builder requiredBooleanGroup(Boolean requiredBooleanGroup) {
|
||||
public Builder requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) {
|
||||
this.requiredBooleanGroup = requiredBooleanGroup;
|
||||
return this;
|
||||
}
|
||||
public Builder requiredInt64Group(Long requiredInt64Group) {
|
||||
public Builder requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) {
|
||||
this.requiredInt64Group = requiredInt64Group;
|
||||
return this;
|
||||
}
|
||||
public Builder stringGroup(Integer stringGroup) {
|
||||
public Builder stringGroup(@javax.annotation.Nullable Integer stringGroup) {
|
||||
this.stringGroup = stringGroup;
|
||||
return this;
|
||||
}
|
||||
public Builder booleanGroup(Boolean booleanGroup) {
|
||||
public Builder booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) {
|
||||
this.booleanGroup = booleanGroup;
|
||||
return this;
|
||||
}
|
||||
public Builder int64Group(Long int64Group) {
|
||||
public Builder int64Group(@javax.annotation.Nullable Long int64Group) {
|
||||
this.int64Group = int64Group;
|
||||
return this;
|
||||
}
|
||||
@@ -1628,7 +1646,7 @@ public class FakeApi {
|
||||
* @param requestBody request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||
public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
}
|
||||
|
||||
@@ -1639,7 +1657,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1673,7 +1691,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map<String, String> requestBody) throws ApiException {
|
||||
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
@@ -1709,7 +1727,7 @@ public class FakeApi {
|
||||
* @param testInlineFreeformAdditionalPropertiesRequest request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest);
|
||||
}
|
||||
|
||||
@@ -1720,7 +1738,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
public ApiResponse<Void> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1754,7 +1772,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
|
||||
// verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set
|
||||
if (testInlineFreeformAdditionalPropertiesRequest == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties");
|
||||
@@ -1791,7 +1809,7 @@ public class FakeApi {
|
||||
* @param param2 field2 (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1803,7 +1821,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1837,7 +1855,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testJsonFormDataRequestBuilder(String param, String param2) throws ApiException {
|
||||
private HttpRequest.Builder testJsonFormDataRequestBuilder(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData");
|
||||
@@ -1892,7 +1910,7 @@ public class FakeApi {
|
||||
* @param context (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1907,7 +1925,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -1941,7 +1959,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
||||
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(@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 {
|
||||
// verify the required parameter 'pipe' is set
|
||||
if (pipe == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||
@@ -2010,7 +2028,7 @@ public class FakeApi {
|
||||
* @param requestBody request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testStringMapReference(Map<String, String> requestBody) throws ApiException {
|
||||
public void testStringMapReference(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
testStringMapReferenceWithHttpInfo(requestBody);
|
||||
}
|
||||
|
||||
@@ -2021,7 +2039,7 @@ public class FakeApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testStringMapReferenceWithHttpInfo(Map<String, String> requestBody) throws ApiException {
|
||||
public ApiResponse<Void> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -2055,7 +2073,7 @@ public class FakeApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testStringMapReferenceRequestBuilder(Map<String, String> requestBody) throws ApiException {
|
||||
private HttpRequest.Builder testStringMapReferenceRequestBuilder(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference");
|
||||
|
||||
@@ -95,7 +95,7 @@ public class FakeClassnameTags123Api {
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClassname(Client client) throws ApiException {
|
||||
public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
ApiResponse<Client> localVarResponse = testClassnameWithHttpInfo(client);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public class FakeClassnameTags123Api {
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -147,7 +147,7 @@ public class FakeClassnameTags123Api {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder testClassnameRequestBuilder(Client client) throws ApiException {
|
||||
private HttpRequest.Builder testClassnameRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||
|
||||
@@ -96,7 +96,7 @@ public class PetApi {
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void addPet(Pet pet) throws ApiException {
|
||||
public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
addPetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public class PetApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
|
||||
public ApiResponse<Void> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -141,7 +141,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder addPetRequestBuilder(Pet pet) throws ApiException {
|
||||
private HttpRequest.Builder addPetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
||||
@@ -178,7 +178,7 @@ public class PetApi {
|
||||
* @param apiKey (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ public class PetApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -224,7 +224,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder deletePetRequestBuilder(Long petId, String apiKey) throws ApiException {
|
||||
private HttpRequest.Builder deletePetRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet");
|
||||
@@ -259,7 +259,7 @@ public class PetApi {
|
||||
* @return List<Pet>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
|
||||
public List<Pet> findPetsByStatus(@javax.annotation.Nonnull List<String> status) throws ApiException {
|
||||
ApiResponse<List<Pet>> localVarResponse = findPetsByStatusWithHttpInfo(status);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -271,7 +271,7 @@ public class PetApi {
|
||||
* @return ApiResponse<List<Pet>>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
|
||||
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List<String> status) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -311,7 +311,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder findPetsByStatusRequestBuilder(List<String> status) throws ApiException {
|
||||
private HttpRequest.Builder findPetsByStatusRequestBuilder(@javax.annotation.Nonnull List<String> status) throws ApiException {
|
||||
// verify the required parameter 'status' is set
|
||||
if (status == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
|
||||
@@ -359,7 +359,7 @@ public class PetApi {
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
|
||||
public List<Pet> findPetsByTags(@javax.annotation.Nonnull List<String> tags) throws ApiException {
|
||||
ApiResponse<List<Pet>> localVarResponse = findPetsByTagsWithHttpInfo(tags);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -373,7 +373,7 @@ public class PetApi {
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
|
||||
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List<String> tags) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -413,7 +413,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder findPetsByTagsRequestBuilder(List<String> tags) throws ApiException {
|
||||
private HttpRequest.Builder findPetsByTagsRequestBuilder(@javax.annotation.Nonnull List<String> tags) throws ApiException {
|
||||
// verify the required parameter 'tags' is set
|
||||
if (tags == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
|
||||
@@ -459,7 +459,7 @@ public class PetApi {
|
||||
* @return Pet
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Pet getPetById(Long petId) throws ApiException {
|
||||
public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException {
|
||||
ApiResponse<Pet> localVarResponse = getPetByIdWithHttpInfo(petId);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -471,7 +471,7 @@ public class PetApi {
|
||||
* @return ApiResponse<Pet>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
|
||||
public ApiResponse<Pet> getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -511,7 +511,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder getPetByIdRequestBuilder(Long petId) throws ApiException {
|
||||
private HttpRequest.Builder getPetByIdRequestBuilder(@javax.annotation.Nonnull Long petId) throws ApiException {
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById");
|
||||
@@ -542,7 +542,7 @@ public class PetApi {
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updatePet(Pet pet) throws ApiException {
|
||||
public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
updatePetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ public class PetApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -587,7 +587,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException {
|
||||
private HttpRequest.Builder updatePetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
||||
@@ -625,7 +625,7 @@ public class PetApi {
|
||||
* @param status Updated status of the pet (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ public class PetApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -672,7 +672,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder updatePetWithFormRequestBuilder(Long petId, String name, String status) throws ApiException {
|
||||
private HttpRequest.Builder updatePetWithFormRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
|
||||
@@ -723,7 +723,7 @@ public class PetApi {
|
||||
* @return ModelApiResponse
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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> localVarResponse = uploadFileWithHttpInfo(petId, additionalMetadata, _file);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -737,7 +737,7 @@ public class PetApi {
|
||||
* @return ApiResponse<ModelApiResponse>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -777,7 +777,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder uploadFileRequestBuilder(Long petId, String additionalMetadata, File _file) throws ApiException {
|
||||
private HttpRequest.Builder uploadFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile");
|
||||
@@ -845,7 +845,7 @@ public class PetApi {
|
||||
* @return ModelApiResponse
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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> localVarResponse = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -859,7 +859,7 @@ public class PetApi {
|
||||
* @return ApiResponse<ModelApiResponse>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -899,7 +899,7 @@ public class PetApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
|
||||
private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
|
||||
// verify the required parameter 'petId' is set
|
||||
if (petId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
|
||||
|
||||
@@ -94,7 +94,7 @@ public class StoreApi {
|
||||
* @param orderId ID of the order that needs to be deleted (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void deleteOrder(String orderId) throws ApiException {
|
||||
public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException {
|
||||
deleteOrderWithHttpInfo(orderId);
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class StoreApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
|
||||
public ApiResponse<Void> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -139,7 +139,7 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder deleteOrderRequestBuilder(String orderId) throws ApiException {
|
||||
private HttpRequest.Builder deleteOrderRequestBuilder(@javax.annotation.Nonnull String orderId) throws ApiException {
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");
|
||||
@@ -248,7 +248,7 @@ public class StoreApi {
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Order getOrderById(Long orderId) throws ApiException {
|
||||
public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException {
|
||||
ApiResponse<Order> localVarResponse = getOrderByIdWithHttpInfo(orderId);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -260,7 +260,7 @@ public class StoreApi {
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
|
||||
public ApiResponse<Order> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -300,7 +300,7 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder getOrderByIdRequestBuilder(Long orderId) throws ApiException {
|
||||
private HttpRequest.Builder getOrderByIdRequestBuilder(@javax.annotation.Nonnull Long orderId) throws ApiException {
|
||||
// verify the required parameter 'orderId' is set
|
||||
if (orderId == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById");
|
||||
@@ -332,7 +332,7 @@ public class StoreApi {
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Order placeOrder(Order order) throws ApiException {
|
||||
public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException {
|
||||
ApiResponse<Order> localVarResponse = placeOrderWithHttpInfo(order);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -344,7 +344,7 @@ public class StoreApi {
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -384,7 +384,7 @@ public class StoreApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException {
|
||||
private HttpRequest.Builder placeOrderRequestBuilder(@javax.annotation.Nonnull Order order) throws ApiException {
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
||||
|
||||
@@ -95,7 +95,7 @@ public class UserApi {
|
||||
* @param user Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUser(User user) throws ApiException {
|
||||
public void createUser(@javax.annotation.Nonnull User user) throws ApiException {
|
||||
createUserWithHttpInfo(user);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class UserApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
|
||||
public ApiResponse<Void> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -140,7 +140,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder createUserRequestBuilder(User user) throws ApiException {
|
||||
private HttpRequest.Builder createUserRequestBuilder(@javax.annotation.Nonnull User user) throws ApiException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
||||
@@ -176,7 +176,7 @@ public class UserApi {
|
||||
* @param user List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithArrayInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
createUsersWithArrayInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ public class UserApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -221,7 +221,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(List<User> user) throws ApiException {
|
||||
private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
@@ -257,7 +257,7 @@ public class UserApi {
|
||||
* @param user List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithListInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
createUsersWithListInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ public class UserApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -302,7 +302,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder createUsersWithListInputRequestBuilder(List<User> user) throws ApiException {
|
||||
private HttpRequest.Builder createUsersWithListInputRequestBuilder(@javax.annotation.Nonnull List<User> user) throws ApiException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
@@ -338,7 +338,7 @@ public class UserApi {
|
||||
* @param username The name that needs to be deleted (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void deleteUser(String username) throws ApiException {
|
||||
public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
deleteUserWithHttpInfo(username);
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ public class UserApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
|
||||
public ApiResponse<Void> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -383,7 +383,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder deleteUserRequestBuilder(String username) throws ApiException {
|
||||
private HttpRequest.Builder deleteUserRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser");
|
||||
@@ -415,7 +415,7 @@ public class UserApi {
|
||||
* @return User
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public User getUserByName(String username) throws ApiException {
|
||||
public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
ApiResponse<User> localVarResponse = getUserByNameWithHttpInfo(username);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -427,7 +427,7 @@ public class UserApi {
|
||||
* @return ApiResponse<User>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
|
||||
public ApiResponse<User> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -467,7 +467,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder getUserByNameRequestBuilder(String username) throws ApiException {
|
||||
private HttpRequest.Builder getUserByNameRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName");
|
||||
@@ -500,7 +500,7 @@ public class UserApi {
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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> localVarResponse = loginUserWithHttpInfo(username, password);
|
||||
return localVarResponse.getData();
|
||||
}
|
||||
@@ -513,7 +513,7 @@ public class UserApi {
|
||||
* @return ApiResponse<String>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
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 {
|
||||
HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -553,7 +553,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException {
|
||||
private HttpRequest.Builder loginUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
|
||||
@@ -674,7 +674,7 @@ public class UserApi {
|
||||
* @param user Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updateUser(String username, User user) throws ApiException {
|
||||
public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
updateUserWithHttpInfo(username, user);
|
||||
}
|
||||
|
||||
@@ -686,7 +686,7 @@ public class UserApi {
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user);
|
||||
try {
|
||||
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
|
||||
@@ -720,7 +720,7 @@ public class UserApi {
|
||||
}
|
||||
}
|
||||
|
||||
private HttpRequest.Builder updateUserRequestBuilder(String username, User user) throws ApiException {
|
||||
private HttpRequest.Builder updateUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||
|
||||
Reference in New Issue
Block a user