diff --git a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodTemplateModel.cs b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodTemplateModel.cs index 70c734c997..7ca81c35d5 100644 --- a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodTemplateModel.cs +++ b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodTemplateModel.cs @@ -267,6 +267,15 @@ public override string MethodRequiredParameterInvocationWithCallback } } + public override bool IsParameterizedHost + { + get + { + return ServiceClient.Extensions.ContainsKey(Generator.Extensions.ParameterizedHostExtension) + && !IsPagingNextOperation; + } + } + public override IEnumerable Exceptions { get diff --git a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/Arrays.java b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/Arrays.java index 1e5016890f..9a286963a3 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/Arrays.java +++ b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/Arrays.java @@ -1,1249 +1,1249 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -package fixtures.bodyarray; - -import com.microsoft.rest.ServiceCall; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceResponse; -import fixtures.bodyarray.models.ErrorException; -import fixtures.bodyarray.models.Product; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.Period; - -/** - * An instance of this class provides access to all the operations defined - * in Arrays. - */ -public interface Arrays { - /** - * Get null array value. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getNull() throws ErrorException, IOException; - - /** - * Get null array value. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get invalid array [1, 2, 3. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getInvalid() throws ErrorException, IOException; - - /** - * Get invalid array [1, 2, 3. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get empty array value []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getEmpty() throws ErrorException, IOException; - - /** - * Get empty array value []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value empty []. - * - * @param arrayBody the List<String> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putEmpty(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value empty []. - * - * @param arrayBody the List<String> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putEmptyAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get boolean array value [true, false, false, true]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getBooleanTfft() throws ErrorException, IOException; - - /** - * Get boolean array value [true, false, false, true]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getBooleanTfftAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value empty [true, false, false, true]. - * - * @param arrayBody the List<Boolean> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putBooleanTfft(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value empty [true, false, false, true]. - * - * @param arrayBody the List<Boolean> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putBooleanTfftAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get boolean array value [true, null, false]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getBooleanInvalidNull() throws ErrorException, IOException; - - /** - * Get boolean array value [true, null, false]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getBooleanInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get boolean array value [true, 'boolean', false]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getBooleanInvalidString() throws ErrorException, IOException; - - /** - * Get boolean array value [true, 'boolean', false]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getBooleanInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getIntegerValid() throws ErrorException, IOException; - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getIntegerValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Integer> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putIntegerValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Integer> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putIntegerValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get integer array value [1, null, 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getIntInvalidNull() throws ErrorException, IOException; - - /** - * Get integer array value [1, null, 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getIntInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get integer array value [1, 'integer', 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getIntInvalidString() throws ErrorException, IOException; - - /** - * Get integer array value [1, 'integer', 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getIntInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getLongValid() throws ErrorException, IOException; - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getLongValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Long> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putLongValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Long> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putLongValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get long array value [1, null, 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getLongInvalidNull() throws ErrorException, IOException; - - /** - * Get long array value [1, null, 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getLongInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get long array value [1, 'integer', 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getLongInvalidString() throws ErrorException, IOException; - - /** - * Get long array value [1, 'integer', 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getLongInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getFloatValid() throws ErrorException, IOException; - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getFloatValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putFloatValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putFloatValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getFloatInvalidNull() throws ErrorException, IOException; - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getFloatInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getFloatInvalidString() throws ErrorException, IOException; - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getFloatInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDoubleValid() throws ErrorException, IOException; - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDoubleValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDoubleValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDoubleValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDoubleInvalidNull() throws ErrorException, IOException; - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDoubleInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDoubleInvalidString() throws ErrorException, IOException; - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDoubleInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get string array value ['foo1', 'foo2', 'foo3']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getStringValid() throws ErrorException, IOException; - - /** - * Get string array value ['foo1', 'foo2', 'foo3']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getStringValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['foo1', 'foo2', 'foo3']. - * - * @param arrayBody the List<String> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putStringValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['foo1', 'foo2', 'foo3']. - * - * @param arrayBody the List<String> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putStringValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get string array value ['foo', null, 'foo2']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getStringWithNull() throws ErrorException, IOException; - - /** - * Get string array value ['foo', null, 'foo2']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getStringWithNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get string array value ['foo', 123, 'foo2']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getStringWithInvalid() throws ErrorException, IOException; - - /** - * Get string array value ['foo', 123, 'foo2']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getStringWithInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getUuidValid() throws ErrorException, IOException; - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getUuidValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param arrayBody the List<UUID> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putUuidValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param arrayBody the List<UUID> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putUuidValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getUuidInvalidChars() throws ErrorException, IOException; - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getUuidInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateValid() throws ErrorException, IOException; - - /** - * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param arrayBody the List<LocalDate> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDateValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param arrayBody the List<LocalDate> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDateValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get date array value ['2012-01-01', null, '1776-07-04']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateInvalidNull() throws ErrorException, IOException; - - /** - * Get date array value ['2012-01-01', null, '1776-07-04']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get date array value ['2011-03-22', 'date']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateInvalidChars() throws ErrorException, IOException; - - /** - * Get date array value ['2011-03-22', 'date']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateTimeValid() throws ErrorException, IOException; - - /** - * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateTimeValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param arrayBody the List<DateTime> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDateTimeValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param arrayBody the List<DateTime> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDateTimeValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get date array value ['2000-12-01t00:00:01z', null]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateTimeInvalidNull() throws ErrorException, IOException; - - /** - * Get date array value ['2000-12-01t00:00:01z', null]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateTimeInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get date array value ['2000-12-01t00:00:01z', 'date-time']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateTimeInvalidChars() throws ErrorException, IOException; - - /** - * Get date array value ['2000-12-01t00:00:01z', 'date-time']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateTimeInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDateTimeRfc1123Valid() throws ErrorException, IOException; - - /** - * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDateTimeRfc1123ValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param arrayBody the List<DateTimeRfc1123> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDateTimeRfc1123Valid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param arrayBody the List<DateTimeRfc1123> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDateTimeRfc1123ValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Period> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getDurationValid() throws ErrorException, IOException; - - /** - * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDurationValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param arrayBody the List<Period> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDurationValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param arrayBody the List<Period> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDurationValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getByteValid() throws ErrorException, IOException; - - /** - * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getByteValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. - * - * @param arrayBody the List<byte[]> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putByteValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. - * - * @param arrayBody the List<byte[]> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putByteValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getByteInvalidNull() throws ErrorException, IOException; - - /** - * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getByteInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getBase64Url() throws ErrorException, IOException; - - /** - * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getBase64UrlAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get array of complex type null value. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getComplexNull() throws ErrorException, IOException; - - /** - * Get array of complex type null value. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getComplexNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get empty array of complex type []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getComplexEmpty() throws ErrorException, IOException; - - /** - * Get empty array of complex type []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getComplexEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getComplexItemNull() throws ErrorException, IOException; - - /** - * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getComplexItemNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getComplexItemEmpty() throws ErrorException, IOException; - - /** - * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getComplexItemEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse> getComplexValid() throws ErrorException, IOException; - - /** - * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getComplexValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; - - /** - * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param arrayBody the List<Product> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putComplexValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param arrayBody the List<Product> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putComplexValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get a null array. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getArrayNull() throws ErrorException, IOException; - - /** - * Get a null array. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getArrayNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an empty array []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getArrayEmpty() throws ErrorException, IOException; - - /** - * Get an empty array []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getArrayEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getArrayItemNull() throws ErrorException, IOException; - - /** - * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getArrayItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getArrayItemEmpty() throws ErrorException, IOException; - - /** - * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getArrayItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getArrayValid() throws ErrorException, IOException; - - /** - * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getArrayValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param arrayBody the List<List<String>> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putArrayValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param arrayBody the List<List<String>> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putArrayValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries with value null. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getDictionaryNull() throws ErrorException, IOException; - - /** - * Get an array of Dictionaries with value null. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDictionaryNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getDictionaryEmpty() throws ErrorException, IOException; - - /** - * Get an array of Dictionaries of type <string, string> with value []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDictionaryEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getDictionaryItemNull() throws ErrorException, IOException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDictionaryItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getDictionaryItemEmpty() throws ErrorException, IOException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDictionaryItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - ServiceResponse>> getDictionaryValid() throws ErrorException, IOException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall getDictionaryValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param arrayBody the List<Map<String, String>> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - ServiceResponse putDictionaryValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException; - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param arrayBody the List<Map<String, String>> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link ServiceCall} object - */ - ServiceCall putDictionaryValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; - -} +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +package fixtures.bodyarray; + +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import fixtures.bodyarray.models.ErrorException; +import fixtures.bodyarray.models.Product; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import org.joda.time.DateTime; +import org.joda.time.LocalDate; +import org.joda.time.Period; + +/** + * An instance of this class provides access to all the operations defined + * in Arrays. + */ +public interface Arrays { + /** + * Get null array value. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getNull() throws ErrorException, IOException; + + /** + * Get null array value. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get invalid array [1, 2, 3. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getInvalid() throws ErrorException, IOException; + + /** + * Get invalid array [1, 2, 3. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get empty array value []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getEmpty() throws ErrorException, IOException; + + /** + * Get empty array value []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value empty []. + * + * @param arrayBody the List<String> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putEmpty(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value empty []. + * + * @param arrayBody the List<String> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putEmptyAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get boolean array value [true, false, false, true]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getBooleanTfft() throws ErrorException, IOException; + + /** + * Get boolean array value [true, false, false, true]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getBooleanTfftAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value empty [true, false, false, true]. + * + * @param arrayBody the List<Boolean> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putBooleanTfft(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value empty [true, false, false, true]. + * + * @param arrayBody the List<Boolean> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putBooleanTfftAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get boolean array value [true, null, false]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getBooleanInvalidNull() throws ErrorException, IOException; + + /** + * Get boolean array value [true, null, false]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getBooleanInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get boolean array value [true, 'boolean', false]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getBooleanInvalidString() throws ErrorException, IOException; + + /** + * Get boolean array value [true, 'boolean', false]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getBooleanInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getIntegerValid() throws ErrorException, IOException; + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getIntegerValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Integer> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putIntegerValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Integer> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putIntegerValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get integer array value [1, null, 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getIntInvalidNull() throws ErrorException, IOException; + + /** + * Get integer array value [1, null, 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getIntInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get integer array value [1, 'integer', 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getIntInvalidString() throws ErrorException, IOException; + + /** + * Get integer array value [1, 'integer', 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getIntInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getLongValid() throws ErrorException, IOException; + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getLongValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Long> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putLongValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Long> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putLongValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get long array value [1, null, 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getLongInvalidNull() throws ErrorException, IOException; + + /** + * Get long array value [1, null, 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getLongInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get long array value [1, 'integer', 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getLongInvalidString() throws ErrorException, IOException; + + /** + * Get long array value [1, 'integer', 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getLongInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getFloatValid() throws ErrorException, IOException; + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getFloatValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putFloatValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putFloatValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getFloatInvalidNull() throws ErrorException, IOException; + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getFloatInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getFloatInvalidString() throws ErrorException, IOException; + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getFloatInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDoubleValid() throws ErrorException, IOException; + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDoubleValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDoubleValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDoubleValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDoubleInvalidNull() throws ErrorException, IOException; + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDoubleInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDoubleInvalidString() throws ErrorException, IOException; + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDoubleInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get string array value ['foo1', 'foo2', 'foo3']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getStringValid() throws ErrorException, IOException; + + /** + * Get string array value ['foo1', 'foo2', 'foo3']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStringValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['foo1', 'foo2', 'foo3']. + * + * @param arrayBody the List<String> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putStringValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['foo1', 'foo2', 'foo3']. + * + * @param arrayBody the List<String> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putStringValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get string array value ['foo', null, 'foo2']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getStringWithNull() throws ErrorException, IOException; + + /** + * Get string array value ['foo', null, 'foo2']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStringWithNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get string array value ['foo', 123, 'foo2']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getStringWithInvalid() throws ErrorException, IOException; + + /** + * Get string array value ['foo', 123, 'foo2']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStringWithInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getUuidValid() throws ErrorException, IOException; + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getUuidValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param arrayBody the List<UUID> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putUuidValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param arrayBody the List<UUID> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putUuidValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getUuidInvalidChars() throws ErrorException, IOException; + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getUuidInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateValid() throws ErrorException, IOException; + + /** + * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param arrayBody the List<LocalDate> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDateValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param arrayBody the List<LocalDate> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDateValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get date array value ['2012-01-01', null, '1776-07-04']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateInvalidNull() throws ErrorException, IOException; + + /** + * Get date array value ['2012-01-01', null, '1776-07-04']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get date array value ['2011-03-22', 'date']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateInvalidChars() throws ErrorException, IOException; + + /** + * Get date array value ['2011-03-22', 'date']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateTimeValid() throws ErrorException, IOException; + + /** + * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateTimeValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param arrayBody the List<DateTime> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDateTimeValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param arrayBody the List<DateTime> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDateTimeValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get date array value ['2000-12-01t00:00:01z', null]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateTimeInvalidNull() throws ErrorException, IOException; + + /** + * Get date array value ['2000-12-01t00:00:01z', null]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateTimeInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get date array value ['2000-12-01t00:00:01z', 'date-time']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateTimeInvalidChars() throws ErrorException, IOException; + + /** + * Get date array value ['2000-12-01t00:00:01z', 'date-time']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateTimeInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDateTimeRfc1123Valid() throws ErrorException, IOException; + + /** + * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDateTimeRfc1123ValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param arrayBody the List<DateTimeRfc1123> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDateTimeRfc1123Valid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param arrayBody the List<DateTimeRfc1123> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDateTimeRfc1123ValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Period> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getDurationValid() throws ErrorException, IOException; + + /** + * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDurationValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param arrayBody the List<Period> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDurationValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param arrayBody the List<Period> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDurationValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getByteValid() throws ErrorException, IOException; + + /** + * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getByteValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. + * + * @param arrayBody the List<byte[]> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putByteValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. + * + * @param arrayBody the List<byte[]> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putByteValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getByteInvalidNull() throws ErrorException, IOException; + + /** + * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getByteInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getBase64Url() throws ErrorException, IOException; + + /** + * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getBase64UrlAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get array of complex type null value. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getComplexNull() throws ErrorException, IOException; + + /** + * Get array of complex type null value. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getComplexNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get empty array of complex type []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getComplexEmpty() throws ErrorException, IOException; + + /** + * Get empty array of complex type []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getComplexEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getComplexItemNull() throws ErrorException, IOException; + + /** + * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getComplexItemNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getComplexItemEmpty() throws ErrorException, IOException; + + /** + * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getComplexItemEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> getComplexValid() throws ErrorException, IOException; + + /** + * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getComplexValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException; + + /** + * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param arrayBody the List<Product> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putComplexValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param arrayBody the List<Product> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putComplexValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get a null array. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getArrayNull() throws ErrorException, IOException; + + /** + * Get a null array. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getArrayNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an empty array []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getArrayEmpty() throws ErrorException, IOException; + + /** + * Get an empty array []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getArrayEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getArrayItemNull() throws ErrorException, IOException; + + /** + * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getArrayItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getArrayItemEmpty() throws ErrorException, IOException; + + /** + * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getArrayItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getArrayValid() throws ErrorException, IOException; + + /** + * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getArrayValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param arrayBody the List<List<String>> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putArrayValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param arrayBody the List<List<String>> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putArrayValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries with value null. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getDictionaryNull() throws ErrorException, IOException; + + /** + * Get an array of Dictionaries with value null. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDictionaryNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getDictionaryEmpty() throws ErrorException, IOException; + + /** + * Get an array of Dictionaries of type <string, string> with value []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDictionaryEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getDictionaryItemNull() throws ErrorException, IOException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDictionaryItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getDictionaryItemEmpty() throws ErrorException, IOException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDictionaryItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse>> getDictionaryValid() throws ErrorException, IOException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDictionaryValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param arrayBody the List<Map<String, String>> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse putDictionaryValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException; + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param arrayBody the List<Map<String, String>> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall putDictionaryValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java index 9707bc263a..a60b29da22 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java +++ b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java @@ -1,3477 +1,3477 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -package fixtures.bodyarray.implementation; - -import retrofit2.Retrofit; -import fixtures.bodyarray.Arrays; -import fixtures.bodyarray.AutoRestSwaggerBATArrayService; -import com.google.common.reflect.TypeToken; -import com.microsoft.rest.DateTimeRfc1123; -import com.microsoft.rest.ServiceCall; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceResponse; -import com.microsoft.rest.ServiceResponseBuilder; -import com.microsoft.rest.ServiceResponseCallback; -import com.microsoft.rest.Validator; -import fixtures.bodyarray.models.ErrorException; -import fixtures.bodyarray.models.Product; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import okhttp3.ResponseBody; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.Period; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.GET; -import retrofit2.http.Headers; -import retrofit2.http.PUT; -import retrofit2.Response; - -/** - * An instance of this class provides access to all the operations defined - * in Arrays. - */ -public final class ArraysImpl implements Arrays { - /** The Retrofit service to perform REST calls. */ - private ArraysService service; - /** The service client containing this operation class. */ - private AutoRestSwaggerBATArrayService client; - - /** - * Initializes an instance of Arrays. - * - * @param retrofit the Retrofit instance built from a Retrofit Builder. - * @param client the instance of the service client containing this operation class. - */ - public ArraysImpl(Retrofit retrofit, AutoRestSwaggerBATArrayService client) { - this.service = retrofit.create(ArraysService.class); - this.client = client; - } - - /** - * The interface defining all the services for Arrays to be - * used by Retrofit to perform actually REST calls. - */ - interface ArraysService { - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/null") - Call getNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/invalid") - Call getInvalid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/empty") - Call getEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/empty") - Call putEmpty(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/boolean/tfft") - Call getBooleanTfft(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/boolean/tfft") - Call putBooleanTfft(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/boolean/true.null.false") - Call getBooleanInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/boolean/true.boolean.false") - Call getBooleanInvalidString(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/integer/1.-1.3.300") - Call getIntegerValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/integer/1.-1.3.300") - Call putIntegerValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/integer/1.null.zero") - Call getIntInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/integer/1.integer.0") - Call getIntInvalidString(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/long/1.-1.3.300") - Call getLongValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/long/1.-1.3.300") - Call putLongValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/long/1.null.zero") - Call getLongInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/long/1.integer.0") - Call getLongInvalidString(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/float/0--0.01-1.2e20") - Call getFloatValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/float/0--0.01-1.2e20") - Call putFloatValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/float/0.0-null-1.2e20") - Call getFloatInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/float/1.number.0") - Call getFloatInvalidString(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/double/0--0.01-1.2e20") - Call getDoubleValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/double/0--0.01-1.2e20") - Call putDoubleValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/double/0.0-null-1.2e20") - Call getDoubleInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/double/1.number.0") - Call getDoubleInvalidString(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/string/foo1.foo2.foo3") - Call getStringValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/string/foo1.foo2.foo3") - Call putStringValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/string/foo.null.foo2") - Call getStringWithNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/string/foo.123.foo2") - Call getStringWithInvalid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/uuid/valid") - Call getUuidValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/uuid/valid") - Call putUuidValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/uuid/invalidchars") - Call getUuidInvalidChars(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date/valid") - Call getDateValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/date/valid") - Call putDateValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date/invalidnull") - Call getDateInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date/invalidchars") - Call getDateInvalidChars(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date-time/valid") - Call getDateTimeValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/date-time/valid") - Call putDateTimeValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date-time/invalidnull") - Call getDateTimeInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date-time/invalidchars") - Call getDateTimeInvalidChars(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/date-time-rfc1123/valid") - Call getDateTimeRfc1123Valid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/date-time-rfc1123/valid") - Call putDateTimeRfc1123Valid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/duration/valid") - Call getDurationValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/duration/valid") - Call putDurationValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/byte/valid") - Call getByteValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/prim/byte/valid") - Call putByteValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/byte/invalidnull") - Call getByteInvalidNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/prim/base64url/valid") - Call getBase64Url(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/complex/null") - Call getComplexNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/complex/empty") - Call getComplexEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/complex/itemnull") - Call getComplexItemNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/complex/itemempty") - Call getComplexItemEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/complex/valid") - Call getComplexValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/complex/valid") - Call putComplexValid(@Body List arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/array/null") - Call getArrayNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/array/empty") - Call getArrayEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/array/itemnull") - Call getArrayItemNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/array/itemempty") - Call getArrayItemEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/array/valid") - Call getArrayValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/array/valid") - Call putArrayValid(@Body List> arrayBody); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/dictionary/null") - Call getDictionaryNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/dictionary/empty") - Call getDictionaryEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/dictionary/itemnull") - Call getDictionaryItemNull(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/dictionary/itemempty") - Call getDictionaryItemEmpty(); - - @Headers("Content-Type: application/json; charset=utf-8") - @GET("array/dictionary/valid") - Call getDictionaryValid(); - - @Headers("Content-Type: application/json; charset=utf-8") - @PUT("array/dictionary/valid") - Call putDictionaryValid(@Body List> arrayBody); - - } - - /** - * Get null array value. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getNull() throws ErrorException, IOException { - Call call = service.getNull(); - return getNullDelegate(call.execute()); - } - - /** - * Get null array value. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get invalid array [1, 2, 3. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getInvalid() throws ErrorException, IOException { - Call call = service.getInvalid(); - return getInvalidDelegate(call.execute()); - } - - /** - * Get invalid array [1, 2, 3. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getInvalid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getInvalidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getInvalidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get empty array value []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getEmpty() throws ErrorException, IOException { - Call call = service.getEmpty(); - return getEmptyDelegate(call.execute()); - } - - /** - * Get empty array value []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value empty []. - * - * @param arrayBody the List<String> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putEmpty(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putEmpty(arrayBody); - return putEmptyDelegate(call.execute()); - } - - /** - * Set array value empty []. - * - * @param arrayBody the List<String> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putEmptyAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putEmpty(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putEmptyDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get boolean array value [true, false, false, true]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getBooleanTfft() throws ErrorException, IOException { - Call call = service.getBooleanTfft(); - return getBooleanTfftDelegate(call.execute()); - } - - /** - * Get boolean array value [true, false, false, true]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getBooleanTfftAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getBooleanTfft(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getBooleanTfftDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getBooleanTfftDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value empty [true, false, false, true]. - * - * @param arrayBody the List<Boolean> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putBooleanTfft(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putBooleanTfft(arrayBody); - return putBooleanTfftDelegate(call.execute()); - } - - /** - * Set array value empty [true, false, false, true]. - * - * @param arrayBody the List<Boolean> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putBooleanTfftAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putBooleanTfft(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putBooleanTfftDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putBooleanTfftDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get boolean array value [true, null, false]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getBooleanInvalidNull() throws ErrorException, IOException { - Call call = service.getBooleanInvalidNull(); - return getBooleanInvalidNullDelegate(call.execute()); - } - - /** - * Get boolean array value [true, null, false]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getBooleanInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getBooleanInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getBooleanInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getBooleanInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get boolean array value [true, 'boolean', false]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getBooleanInvalidString() throws ErrorException, IOException { - Call call = service.getBooleanInvalidString(); - return getBooleanInvalidStringDelegate(call.execute()); - } - - /** - * Get boolean array value [true, 'boolean', false]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getBooleanInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getBooleanInvalidString(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getBooleanInvalidStringDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getBooleanInvalidStringDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getIntegerValid() throws ErrorException, IOException { - Call call = service.getIntegerValid(); - return getIntegerValidDelegate(call.execute()); - } - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getIntegerValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getIntegerValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getIntegerValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getIntegerValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Integer> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putIntegerValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putIntegerValid(arrayBody); - return putIntegerValidDelegate(call.execute()); - } - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Integer> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putIntegerValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putIntegerValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putIntegerValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putIntegerValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get integer array value [1, null, 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getIntInvalidNull() throws ErrorException, IOException { - Call call = service.getIntInvalidNull(); - return getIntInvalidNullDelegate(call.execute()); - } - - /** - * Get integer array value [1, null, 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getIntInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getIntInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getIntInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getIntInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get integer array value [1, 'integer', 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getIntInvalidString() throws ErrorException, IOException { - Call call = service.getIntInvalidString(); - return getIntInvalidStringDelegate(call.execute()); - } - - /** - * Get integer array value [1, 'integer', 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getIntInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getIntInvalidString(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getIntInvalidStringDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getIntInvalidStringDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getLongValid() throws ErrorException, IOException { - Call call = service.getLongValid(); - return getLongValidDelegate(call.execute()); - } - - /** - * Get integer array value [1, -1, 3, 300]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getLongValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getLongValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getLongValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getLongValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Long> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putLongValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putLongValid(arrayBody); - return putLongValidDelegate(call.execute()); - } - - /** - * Set array value empty [1, -1, 3, 300]. - * - * @param arrayBody the List<Long> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putLongValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putLongValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putLongValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putLongValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get long array value [1, null, 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getLongInvalidNull() throws ErrorException, IOException { - Call call = service.getLongInvalidNull(); - return getLongInvalidNullDelegate(call.execute()); - } - - /** - * Get long array value [1, null, 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getLongInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getLongInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getLongInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getLongInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get long array value [1, 'integer', 0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getLongInvalidString() throws ErrorException, IOException { - Call call = service.getLongInvalidString(); - return getLongInvalidStringDelegate(call.execute()); - } - - /** - * Get long array value [1, 'integer', 0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getLongInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getLongInvalidString(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getLongInvalidStringDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getLongInvalidStringDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getFloatValid() throws ErrorException, IOException { - Call call = service.getFloatValid(); - return getFloatValidDelegate(call.execute()); - } - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getFloatValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getFloatValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getFloatValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getFloatValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putFloatValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putFloatValid(arrayBody); - return putFloatValidDelegate(call.execute()); - } - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putFloatValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putFloatValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putFloatValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putFloatValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getFloatInvalidNull() throws ErrorException, IOException { - Call call = service.getFloatInvalidNull(); - return getFloatInvalidNullDelegate(call.execute()); - } - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getFloatInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getFloatInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getFloatInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getFloatInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getFloatInvalidString() throws ErrorException, IOException { - Call call = service.getFloatInvalidString(); - return getFloatInvalidStringDelegate(call.execute()); - } - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getFloatInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getFloatInvalidString(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getFloatInvalidStringDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getFloatInvalidStringDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDoubleValid() throws ErrorException, IOException { - Call call = service.getDoubleValid(); - return getDoubleValidDelegate(call.execute()); - } - - /** - * Get float array value [0, -0.01, 1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDoubleValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDoubleValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDoubleValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDoubleValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDoubleValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putDoubleValid(arrayBody); - return putDoubleValidDelegate(call.execute()); - } - - /** - * Set array value [0, -0.01, 1.2e20]. - * - * @param arrayBody the List<Double> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDoubleValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putDoubleValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDoubleValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDoubleValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDoubleInvalidNull() throws ErrorException, IOException { - Call call = service.getDoubleInvalidNull(); - return getDoubleInvalidNullDelegate(call.execute()); - } - - /** - * Get float array value [0.0, null, -1.2e20]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDoubleInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDoubleInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDoubleInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDoubleInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDoubleInvalidString() throws ErrorException, IOException { - Call call = service.getDoubleInvalidString(); - return getDoubleInvalidStringDelegate(call.execute()); - } - - /** - * Get boolean array value [1.0, 'number', 0.0]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDoubleInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDoubleInvalidString(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDoubleInvalidStringDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDoubleInvalidStringDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get string array value ['foo1', 'foo2', 'foo3']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getStringValid() throws ErrorException, IOException { - Call call = service.getStringValid(); - return getStringValidDelegate(call.execute()); - } - - /** - * Get string array value ['foo1', 'foo2', 'foo3']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getStringValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getStringValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getStringValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getStringValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['foo1', 'foo2', 'foo3']. - * - * @param arrayBody the List<String> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putStringValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putStringValid(arrayBody); - return putStringValidDelegate(call.execute()); - } - - /** - * Set array value ['foo1', 'foo2', 'foo3']. - * - * @param arrayBody the List<String> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putStringValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putStringValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putStringValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putStringValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get string array value ['foo', null, 'foo2']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getStringWithNull() throws ErrorException, IOException { - Call call = service.getStringWithNull(); - return getStringWithNullDelegate(call.execute()); - } - - /** - * Get string array value ['foo', null, 'foo2']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getStringWithNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getStringWithNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getStringWithNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getStringWithNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get string array value ['foo', 123, 'foo2']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getStringWithInvalid() throws ErrorException, IOException { - Call call = service.getStringWithInvalid(); - return getStringWithInvalidDelegate(call.execute()); - } - - /** - * Get string array value ['foo', 123, 'foo2']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getStringWithInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getStringWithInvalid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getStringWithInvalidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getStringWithInvalidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getUuidValid() throws ErrorException, IOException { - Call call = service.getUuidValid(); - return getUuidValidDelegate(call.execute()); - } - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getUuidValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getUuidValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getUuidValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getUuidValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param arrayBody the List<UUID> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putUuidValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putUuidValid(arrayBody); - return putUuidValidDelegate(call.execute()); - } - - /** - * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - * - * @param arrayBody the List<UUID> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putUuidValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putUuidValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putUuidValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putUuidValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getUuidInvalidChars() throws ErrorException, IOException { - Call call = service.getUuidInvalidChars(); - return getUuidInvalidCharsDelegate(call.execute()); - } - - /** - * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getUuidInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getUuidInvalidChars(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getUuidInvalidCharsDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getUuidInvalidCharsDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateValid() throws ErrorException, IOException { - Call call = service.getDateValid(); - return getDateValidDelegate(call.execute()); - } - - /** - * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param arrayBody the List<LocalDate> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDateValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putDateValid(arrayBody); - return putDateValidDelegate(call.execute()); - } - - /** - * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - * - * @param arrayBody the List<LocalDate> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDateValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putDateValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDateValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDateValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date array value ['2012-01-01', null, '1776-07-04']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateInvalidNull() throws ErrorException, IOException { - Call call = service.getDateInvalidNull(); - return getDateInvalidNullDelegate(call.execute()); - } - - /** - * Get date array value ['2012-01-01', null, '1776-07-04']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date array value ['2011-03-22', 'date']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateInvalidChars() throws ErrorException, IOException { - Call call = service.getDateInvalidChars(); - return getDateInvalidCharsDelegate(call.execute()); - } - - /** - * Get date array value ['2011-03-22', 'date']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateInvalidChars(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateInvalidCharsDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateInvalidCharsDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateTimeValid() throws ErrorException, IOException { - Call call = service.getDateTimeValid(); - return getDateTimeValidDelegate(call.execute()); - } - - /** - * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateTimeValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateTimeValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateTimeValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateTimeValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param arrayBody the List<DateTime> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDateTimeValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putDateTimeValid(arrayBody); - return putDateTimeValidDelegate(call.execute()); - } - - /** - * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. - * - * @param arrayBody the List<DateTime> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDateTimeValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putDateTimeValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDateTimeValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDateTimeValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date array value ['2000-12-01t00:00:01z', null]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateTimeInvalidNull() throws ErrorException, IOException { - Call call = service.getDateTimeInvalidNull(); - return getDateTimeInvalidNullDelegate(call.execute()); - } - - /** - * Get date array value ['2000-12-01t00:00:01z', null]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateTimeInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateTimeInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateTimeInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateTimeInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date array value ['2000-12-01t00:00:01z', 'date-time']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateTimeInvalidChars() throws ErrorException, IOException { - Call call = service.getDateTimeInvalidChars(); - return getDateTimeInvalidCharsDelegate(call.execute()); - } - - /** - * Get date array value ['2000-12-01t00:00:01z', 'date-time']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateTimeInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateTimeInvalidChars(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDateTimeInvalidCharsDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateTimeInvalidCharsDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDateTimeRfc1123Valid() throws ErrorException, IOException { - Call call = service.getDateTimeRfc1123Valid(); - ServiceResponse> response = getDateTimeRfc1123ValidDelegate(call.execute()); - List body = null; - if (response.getBody() != null) { - body = new ArrayList(); - for (DateTimeRfc1123 item : response.getBody()) { - DateTime value; - value = item.getDateTime(); - body.add(value); - } - } - return new ServiceResponse>(body, response.getResponse()); - } - - /** - * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDateTimeRfc1123ValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDateTimeRfc1123Valid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - ServiceResponse> result = getDateTimeRfc1123ValidDelegate(response); - List body = null; - if (result.getBody() != null) { - body = new ArrayList(); - for (DateTimeRfc1123 item : result.getBody()) { - DateTime value; - value = item.getDateTime(); - body.add(value); - } - } - serviceCallback.success(new ServiceResponse>(body, result.getResponse())); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDateTimeRfc1123ValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param arrayBody the List<DateTimeRfc1123> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDateTimeRfc1123Valid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - List arrayBodyConverted = new ArrayList(); - for (DateTime item : arrayBody) { - DateTimeRfc1123 value = new DateTimeRfc1123(item); - arrayBodyConverted.add(value); - } - Call call = service.putDateTimeRfc1123Valid(arrayBodyConverted); - return putDateTimeRfc1123ValidDelegate(call.execute()); - } - - /** - * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. - * - * @param arrayBody the List<DateTimeRfc1123> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDateTimeRfc1123ValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - List arrayBodyConverted = new ArrayList(); - for (DateTime item : arrayBody) { - DateTimeRfc1123 value = new DateTimeRfc1123(item); - arrayBodyConverted.add(value); - } - Call call = service.putDateTimeRfc1123Valid(arrayBodyConverted); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDateTimeRfc1123ValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDateTimeRfc1123ValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Period> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getDurationValid() throws ErrorException, IOException { - Call call = service.getDurationValid(); - return getDurationValidDelegate(call.execute()); - } - - /** - * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDurationValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDurationValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDurationValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getDurationValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param arrayBody the List<Period> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDurationValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putDurationValid(arrayBody); - return putDurationValidDelegate(call.execute()); - } - - /** - * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - * - * @param arrayBody the List<Period> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDurationValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putDurationValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDurationValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDurationValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getByteValid() throws ErrorException, IOException { - Call call = service.getByteValid(); - return getByteValidDelegate(call.execute()); - } - - /** - * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getByteValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getByteValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getByteValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getByteValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. - * - * @param arrayBody the List<byte[]> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putByteValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putByteValid(arrayBody); - return putByteValidDelegate(call.execute()); - } - - /** - * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. - * - * @param arrayBody the List<byte[]> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putByteValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putByteValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putByteValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putByteValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getByteInvalidNull() throws ErrorException, IOException { - Call call = service.getByteInvalidNull(); - return getByteInvalidNullDelegate(call.execute()); - } - - /** - * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getByteInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getByteInvalidNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getByteInvalidNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getByteInvalidNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<String> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getBase64Url() throws ErrorException, IOException { - Call call = service.getBase64Url(); - return getBase64UrlDelegate(call.execute()); - } - - /** - * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getBase64UrlAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getBase64Url(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getBase64UrlDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getBase64UrlDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get array of complex type null value. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getComplexNull() throws ErrorException, IOException { - Call call = service.getComplexNull(); - return getComplexNullDelegate(call.execute()); - } - - /** - * Get array of complex type null value. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getComplexNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getComplexNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getComplexNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getComplexNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get empty array of complex type []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getComplexEmpty() throws ErrorException, IOException { - Call call = service.getComplexEmpty(); - return getComplexEmptyDelegate(call.execute()); - } - - /** - * Get empty array of complex type []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getComplexEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getComplexEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getComplexEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getComplexEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getComplexItemNull() throws ErrorException, IOException { - Call call = service.getComplexItemNull(); - return getComplexItemNullDelegate(call.execute()); - } - - /** - * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getComplexItemNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getComplexItemNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getComplexItemNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getComplexItemNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getComplexItemEmpty() throws ErrorException, IOException { - Call call = service.getComplexItemEmpty(); - return getComplexItemEmptyDelegate(call.execute()); - } - - /** - * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getComplexItemEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getComplexItemEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getComplexItemEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getComplexItemEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse> getComplexValid() throws ErrorException, IOException { - Call call = service.getComplexValid(); - return getComplexValidDelegate(call.execute()); - } - - /** - * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getComplexValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getComplexValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getComplexValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse> getComplexValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param arrayBody the List<Product> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putComplexValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putComplexValid(arrayBody); - return putComplexValidDelegate(call.execute()); - } - - /** - * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. - * - * @param arrayBody the List<Product> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putComplexValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putComplexValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putComplexValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putComplexValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get a null array. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getArrayNull() throws ErrorException, IOException { - Call call = service.getArrayNull(); - return getArrayNullDelegate(call.execute()); - } - - /** - * Get a null array. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getArrayNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getArrayNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getArrayNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getArrayNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an empty array []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getArrayEmpty() throws ErrorException, IOException { - Call call = service.getArrayEmpty(); - return getArrayEmptyDelegate(call.execute()); - } - - /** - * Get an empty array []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getArrayEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getArrayEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getArrayEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getArrayEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getArrayItemNull() throws ErrorException, IOException { - Call call = service.getArrayItemNull(); - return getArrayItemNullDelegate(call.execute()); - } - - /** - * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getArrayItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getArrayItemNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getArrayItemNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getArrayItemNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getArrayItemEmpty() throws ErrorException, IOException { - Call call = service.getArrayItemEmpty(); - return getArrayItemEmptyDelegate(call.execute()); - } - - /** - * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getArrayItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getArrayItemEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getArrayItemEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getArrayItemEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getArrayValid() throws ErrorException, IOException { - Call call = service.getArrayValid(); - return getArrayValidDelegate(call.execute()); - } - - /** - * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getArrayValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getArrayValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getArrayValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getArrayValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param arrayBody the List<List<String>> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putArrayValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putArrayValid(arrayBody); - return putArrayValidDelegate(call.execute()); - } - - /** - * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - * - * @param arrayBody the List<List<String>> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putArrayValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putArrayValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putArrayValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putArrayValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries with value null. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getDictionaryNull() throws ErrorException, IOException { - Call call = service.getDictionaryNull(); - return getDictionaryNullDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries with value null. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDictionaryNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDictionaryNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDictionaryNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getDictionaryNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries of type <string, string> with value []. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getDictionaryEmpty() throws ErrorException, IOException { - Call call = service.getDictionaryEmpty(); - return getDictionaryEmptyDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries of type <string, string> with value []. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDictionaryEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDictionaryEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDictionaryEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getDictionaryEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getDictionaryItemNull() throws ErrorException, IOException { - Call call = service.getDictionaryItemNull(); - return getDictionaryItemNullDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDictionaryItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDictionaryItemNull(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDictionaryItemNullDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getDictionaryItemNullDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getDictionaryItemEmpty() throws ErrorException, IOException { - Call call = service.getDictionaryItemEmpty(); - return getDictionaryItemEmptyDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDictionaryItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDictionaryItemEmpty(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDictionaryItemEmptyDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getDictionaryItemEmptyDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. - */ - public ServiceResponse>> getDictionaryValid() throws ErrorException, IOException { - Call call = service.getDictionaryValid(); - return getDictionaryValidDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall getDictionaryValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - Call call = service.getDictionaryValid(); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>>(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(getDictionaryValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse>> getDictionaryValidDelegate(Response response) throws ErrorException, IOException { - return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>>() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param arrayBody the List<Map<String, String>> value - * @throws ErrorException exception thrown from REST call - * @throws IOException exception thrown from serialization/deserialization - * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the {@link ServiceResponse} object if successful. - */ - public ServiceResponse putDictionaryValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException { - if (arrayBody == null) { - throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); - } - Validator.validate(arrayBody); - Call call = service.putDictionaryValid(arrayBody); - return putDictionaryValidDelegate(call.execute()); - } - - /** - * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - * - * @param arrayBody the List<Map<String, String>> value - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if callback is null - * @return the {@link Call} object - */ - public ServiceCall putDictionaryValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { - if (serviceCallback == null) { - throw new IllegalArgumentException("ServiceCallback is required for async calls."); - } - if (arrayBody == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); - return null; - } - Validator.validate(arrayBody, serviceCallback); - Call call = service.putDictionaryValid(arrayBody); - final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { - @Override - public void onResponse(Call call, Response response) { - try { - serviceCallback.success(putDictionaryValidDelegate(response)); - } catch (ErrorException | IOException exception) { - serviceCallback.failure(exception); - } - } - }); - return serviceCall; - } - - private ServiceResponse putDictionaryValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { - return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorException.class) - .build(response); - } - -} +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +package fixtures.bodyarray.implementation; + +import retrofit2.Retrofit; +import fixtures.bodyarray.Arrays; +import fixtures.bodyarray.AutoRestSwaggerBATArrayService; +import com.google.common.reflect.TypeToken; +import com.microsoft.rest.DateTimeRfc1123; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.ServiceResponseBuilder; +import com.microsoft.rest.ServiceResponseCallback; +import com.microsoft.rest.Validator; +import fixtures.bodyarray.models.ErrorException; +import fixtures.bodyarray.models.Product; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import okhttp3.ResponseBody; +import org.joda.time.DateTime; +import org.joda.time.LocalDate; +import org.joda.time.Period; +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Headers; +import retrofit2.http.PUT; +import retrofit2.Response; + +/** + * An instance of this class provides access to all the operations defined + * in Arrays. + */ +public final class ArraysImpl implements Arrays { + /** The Retrofit service to perform REST calls. */ + private ArraysService service; + /** The service client containing this operation class. */ + private AutoRestSwaggerBATArrayService client; + + /** + * Initializes an instance of Arrays. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ArraysImpl(Retrofit retrofit, AutoRestSwaggerBATArrayService client) { + this.service = retrofit.create(ArraysService.class); + this.client = client; + } + + /** + * The interface defining all the services for Arrays to be + * used by Retrofit to perform actually REST calls. + */ + interface ArraysService { + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/null") + Call getNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/invalid") + Call getInvalid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/empty") + Call getEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/empty") + Call putEmpty(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/boolean/tfft") + Call getBooleanTfft(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/boolean/tfft") + Call putBooleanTfft(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/boolean/true.null.false") + Call getBooleanInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/boolean/true.boolean.false") + Call getBooleanInvalidString(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/integer/1.-1.3.300") + Call getIntegerValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/integer/1.-1.3.300") + Call putIntegerValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/integer/1.null.zero") + Call getIntInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/integer/1.integer.0") + Call getIntInvalidString(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/long/1.-1.3.300") + Call getLongValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/long/1.-1.3.300") + Call putLongValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/long/1.null.zero") + Call getLongInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/long/1.integer.0") + Call getLongInvalidString(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/float/0--0.01-1.2e20") + Call getFloatValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/float/0--0.01-1.2e20") + Call putFloatValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/float/0.0-null-1.2e20") + Call getFloatInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/float/1.number.0") + Call getFloatInvalidString(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/double/0--0.01-1.2e20") + Call getDoubleValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/double/0--0.01-1.2e20") + Call putDoubleValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/double/0.0-null-1.2e20") + Call getDoubleInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/double/1.number.0") + Call getDoubleInvalidString(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/string/foo1.foo2.foo3") + Call getStringValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/string/foo1.foo2.foo3") + Call putStringValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/string/foo.null.foo2") + Call getStringWithNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/string/foo.123.foo2") + Call getStringWithInvalid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/uuid/valid") + Call getUuidValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/uuid/valid") + Call putUuidValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/uuid/invalidchars") + Call getUuidInvalidChars(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date/valid") + Call getDateValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/date/valid") + Call putDateValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date/invalidnull") + Call getDateInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date/invalidchars") + Call getDateInvalidChars(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date-time/valid") + Call getDateTimeValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/date-time/valid") + Call putDateTimeValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date-time/invalidnull") + Call getDateTimeInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date-time/invalidchars") + Call getDateTimeInvalidChars(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/date-time-rfc1123/valid") + Call getDateTimeRfc1123Valid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/date-time-rfc1123/valid") + Call putDateTimeRfc1123Valid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/duration/valid") + Call getDurationValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/duration/valid") + Call putDurationValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/byte/valid") + Call getByteValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/prim/byte/valid") + Call putByteValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/byte/invalidnull") + Call getByteInvalidNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/prim/base64url/valid") + Call getBase64Url(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/complex/null") + Call getComplexNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/complex/empty") + Call getComplexEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/complex/itemnull") + Call getComplexItemNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/complex/itemempty") + Call getComplexItemEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/complex/valid") + Call getComplexValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/complex/valid") + Call putComplexValid(@Body List arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/array/null") + Call getArrayNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/array/empty") + Call getArrayEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/array/itemnull") + Call getArrayItemNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/array/itemempty") + Call getArrayItemEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/array/valid") + Call getArrayValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/array/valid") + Call putArrayValid(@Body List> arrayBody); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/dictionary/null") + Call getDictionaryNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/dictionary/empty") + Call getDictionaryEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/dictionary/itemnull") + Call getDictionaryItemNull(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/dictionary/itemempty") + Call getDictionaryItemEmpty(); + + @Headers("Content-Type: application/json; charset=utf-8") + @GET("array/dictionary/valid") + Call getDictionaryValid(); + + @Headers("Content-Type: application/json; charset=utf-8") + @PUT("array/dictionary/valid") + Call putDictionaryValid(@Body List> arrayBody); + + } + + /** + * Get null array value. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getNull() throws ErrorException, IOException { + Call call = service.getNull(); + return getNullDelegate(call.execute()); + } + + /** + * Get null array value. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get invalid array [1, 2, 3. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getInvalid() throws ErrorException, IOException { + Call call = service.getInvalid(); + return getInvalidDelegate(call.execute()); + } + + /** + * Get invalid array [1, 2, 3. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getInvalid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getInvalidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getInvalidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get empty array value []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getEmpty() throws ErrorException, IOException { + Call call = service.getEmpty(); + return getEmptyDelegate(call.execute()); + } + + /** + * Get empty array value []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value empty []. + * + * @param arrayBody the List<String> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putEmpty(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putEmpty(arrayBody); + return putEmptyDelegate(call.execute()); + } + + /** + * Set array value empty []. + * + * @param arrayBody the List<String> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putEmptyAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putEmpty(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putEmptyDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get boolean array value [true, false, false, true]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getBooleanTfft() throws ErrorException, IOException { + Call call = service.getBooleanTfft(); + return getBooleanTfftDelegate(call.execute()); + } + + /** + * Get boolean array value [true, false, false, true]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getBooleanTfftAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getBooleanTfft(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getBooleanTfftDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getBooleanTfftDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value empty [true, false, false, true]. + * + * @param arrayBody the List<Boolean> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putBooleanTfft(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putBooleanTfft(arrayBody); + return putBooleanTfftDelegate(call.execute()); + } + + /** + * Set array value empty [true, false, false, true]. + * + * @param arrayBody the List<Boolean> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putBooleanTfftAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putBooleanTfft(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putBooleanTfftDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putBooleanTfftDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get boolean array value [true, null, false]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getBooleanInvalidNull() throws ErrorException, IOException { + Call call = service.getBooleanInvalidNull(); + return getBooleanInvalidNullDelegate(call.execute()); + } + + /** + * Get boolean array value [true, null, false]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getBooleanInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getBooleanInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getBooleanInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getBooleanInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get boolean array value [true, 'boolean', false]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Boolean> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getBooleanInvalidString() throws ErrorException, IOException { + Call call = service.getBooleanInvalidString(); + return getBooleanInvalidStringDelegate(call.execute()); + } + + /** + * Get boolean array value [true, 'boolean', false]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getBooleanInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getBooleanInvalidString(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getBooleanInvalidStringDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getBooleanInvalidStringDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getIntegerValid() throws ErrorException, IOException { + Call call = service.getIntegerValid(); + return getIntegerValidDelegate(call.execute()); + } + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getIntegerValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getIntegerValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getIntegerValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getIntegerValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Integer> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putIntegerValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putIntegerValid(arrayBody); + return putIntegerValidDelegate(call.execute()); + } + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Integer> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putIntegerValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putIntegerValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putIntegerValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putIntegerValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get integer array value [1, null, 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getIntInvalidNull() throws ErrorException, IOException { + Call call = service.getIntInvalidNull(); + return getIntInvalidNullDelegate(call.execute()); + } + + /** + * Get integer array value [1, null, 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getIntInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getIntInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getIntInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getIntInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get integer array value [1, 'integer', 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Integer> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getIntInvalidString() throws ErrorException, IOException { + Call call = service.getIntInvalidString(); + return getIntInvalidStringDelegate(call.execute()); + } + + /** + * Get integer array value [1, 'integer', 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getIntInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getIntInvalidString(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getIntInvalidStringDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getIntInvalidStringDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getLongValid() throws ErrorException, IOException { + Call call = service.getLongValid(); + return getLongValidDelegate(call.execute()); + } + + /** + * Get integer array value [1, -1, 3, 300]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getLongValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getLongValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getLongValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getLongValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Long> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putLongValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putLongValid(arrayBody); + return putLongValidDelegate(call.execute()); + } + + /** + * Set array value empty [1, -1, 3, 300]. + * + * @param arrayBody the List<Long> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putLongValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putLongValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putLongValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putLongValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get long array value [1, null, 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getLongInvalidNull() throws ErrorException, IOException { + Call call = service.getLongInvalidNull(); + return getLongInvalidNullDelegate(call.execute()); + } + + /** + * Get long array value [1, null, 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getLongInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getLongInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getLongInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getLongInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get long array value [1, 'integer', 0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Long> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getLongInvalidString() throws ErrorException, IOException { + Call call = service.getLongInvalidString(); + return getLongInvalidStringDelegate(call.execute()); + } + + /** + * Get long array value [1, 'integer', 0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getLongInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getLongInvalidString(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getLongInvalidStringDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getLongInvalidStringDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getFloatValid() throws ErrorException, IOException { + Call call = service.getFloatValid(); + return getFloatValidDelegate(call.execute()); + } + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getFloatValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getFloatValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getFloatValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getFloatValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putFloatValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putFloatValid(arrayBody); + return putFloatValidDelegate(call.execute()); + } + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putFloatValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putFloatValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putFloatValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putFloatValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getFloatInvalidNull() throws ErrorException, IOException { + Call call = service.getFloatInvalidNull(); + return getFloatInvalidNullDelegate(call.execute()); + } + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getFloatInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getFloatInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getFloatInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getFloatInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getFloatInvalidString() throws ErrorException, IOException { + Call call = service.getFloatInvalidString(); + return getFloatInvalidStringDelegate(call.execute()); + } + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getFloatInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getFloatInvalidString(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getFloatInvalidStringDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getFloatInvalidStringDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDoubleValid() throws ErrorException, IOException { + Call call = service.getDoubleValid(); + return getDoubleValidDelegate(call.execute()); + } + + /** + * Get float array value [0, -0.01, 1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDoubleValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDoubleValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDoubleValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDoubleValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDoubleValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putDoubleValid(arrayBody); + return putDoubleValidDelegate(call.execute()); + } + + /** + * Set array value [0, -0.01, 1.2e20]. + * + * @param arrayBody the List<Double> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDoubleValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putDoubleValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDoubleValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDoubleValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDoubleInvalidNull() throws ErrorException, IOException { + Call call = service.getDoubleInvalidNull(); + return getDoubleInvalidNullDelegate(call.execute()); + } + + /** + * Get float array value [0.0, null, -1.2e20]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDoubleInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDoubleInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDoubleInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDoubleInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Double> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDoubleInvalidString() throws ErrorException, IOException { + Call call = service.getDoubleInvalidString(); + return getDoubleInvalidStringDelegate(call.execute()); + } + + /** + * Get boolean array value [1.0, 'number', 0.0]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDoubleInvalidStringAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDoubleInvalidString(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDoubleInvalidStringDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDoubleInvalidStringDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get string array value ['foo1', 'foo2', 'foo3']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getStringValid() throws ErrorException, IOException { + Call call = service.getStringValid(); + return getStringValidDelegate(call.execute()); + } + + /** + * Get string array value ['foo1', 'foo2', 'foo3']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getStringValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getStringValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getStringValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getStringValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['foo1', 'foo2', 'foo3']. + * + * @param arrayBody the List<String> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putStringValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putStringValid(arrayBody); + return putStringValidDelegate(call.execute()); + } + + /** + * Set array value ['foo1', 'foo2', 'foo3']. + * + * @param arrayBody the List<String> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putStringValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putStringValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putStringValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putStringValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get string array value ['foo', null, 'foo2']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getStringWithNull() throws ErrorException, IOException { + Call call = service.getStringWithNull(); + return getStringWithNullDelegate(call.execute()); + } + + /** + * Get string array value ['foo', null, 'foo2']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getStringWithNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getStringWithNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getStringWithNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getStringWithNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get string array value ['foo', 123, 'foo2']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getStringWithInvalid() throws ErrorException, IOException { + Call call = service.getStringWithInvalid(); + return getStringWithInvalidDelegate(call.execute()); + } + + /** + * Get string array value ['foo', 123, 'foo2']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getStringWithInvalidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getStringWithInvalid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getStringWithInvalidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getStringWithInvalidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getUuidValid() throws ErrorException, IOException { + Call call = service.getUuidValid(); + return getUuidValidDelegate(call.execute()); + } + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getUuidValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getUuidValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getUuidValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getUuidValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param arrayBody the List<UUID> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putUuidValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putUuidValid(arrayBody); + return putUuidValidDelegate(call.execute()); + } + + /** + * Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. + * + * @param arrayBody the List<UUID> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putUuidValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putUuidValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putUuidValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putUuidValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<UUID> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getUuidInvalidChars() throws ErrorException, IOException { + Call call = service.getUuidInvalidChars(); + return getUuidInvalidCharsDelegate(call.execute()); + } + + /** + * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getUuidInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getUuidInvalidChars(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getUuidInvalidCharsDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getUuidInvalidCharsDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateValid() throws ErrorException, IOException { + Call call = service.getDateValid(); + return getDateValidDelegate(call.execute()); + } + + /** + * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param arrayBody the List<LocalDate> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDateValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putDateValid(arrayBody); + return putDateValidDelegate(call.execute()); + } + + /** + * Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. + * + * @param arrayBody the List<LocalDate> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDateValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putDateValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDateValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDateValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date array value ['2012-01-01', null, '1776-07-04']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateInvalidNull() throws ErrorException, IOException { + Call call = service.getDateInvalidNull(); + return getDateInvalidNullDelegate(call.execute()); + } + + /** + * Get date array value ['2012-01-01', null, '1776-07-04']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date array value ['2011-03-22', 'date']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<LocalDate> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateInvalidChars() throws ErrorException, IOException { + Call call = service.getDateInvalidChars(); + return getDateInvalidCharsDelegate(call.execute()); + } + + /** + * Get date array value ['2011-03-22', 'date']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateInvalidChars(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateInvalidCharsDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateInvalidCharsDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateTimeValid() throws ErrorException, IOException { + Call call = service.getDateTimeValid(); + return getDateTimeValidDelegate(call.execute()); + } + + /** + * Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateTimeValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateTimeValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateTimeValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateTimeValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param arrayBody the List<DateTime> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDateTimeValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putDateTimeValid(arrayBody); + return putDateTimeValidDelegate(call.execute()); + } + + /** + * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. + * + * @param arrayBody the List<DateTime> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDateTimeValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putDateTimeValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDateTimeValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDateTimeValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date array value ['2000-12-01t00:00:01z', null]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateTimeInvalidNull() throws ErrorException, IOException { + Call call = service.getDateTimeInvalidNull(); + return getDateTimeInvalidNullDelegate(call.execute()); + } + + /** + * Get date array value ['2000-12-01t00:00:01z', null]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateTimeInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateTimeInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateTimeInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateTimeInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date array value ['2000-12-01t00:00:01z', 'date-time']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateTimeInvalidChars() throws ErrorException, IOException { + Call call = service.getDateTimeInvalidChars(); + return getDateTimeInvalidCharsDelegate(call.execute()); + } + + /** + * Get date array value ['2000-12-01t00:00:01z', 'date-time']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateTimeInvalidCharsAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateTimeInvalidChars(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDateTimeInvalidCharsDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateTimeInvalidCharsDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<DateTime> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDateTimeRfc1123Valid() throws ErrorException, IOException { + Call call = service.getDateTimeRfc1123Valid(); + ServiceResponse> response = getDateTimeRfc1123ValidDelegate(call.execute()); + List body = null; + if (response.getBody() != null) { + body = new ArrayList(); + for (DateTimeRfc1123 item : response.getBody()) { + DateTime value; + value = item.getDateTime(); + body.add(value); + } + } + return new ServiceResponse>(body, response.getResponse()); + } + + /** + * Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDateTimeRfc1123ValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDateTimeRfc1123Valid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + ServiceResponse> result = getDateTimeRfc1123ValidDelegate(response); + List body = null; + if (result.getBody() != null) { + body = new ArrayList(); + for (DateTimeRfc1123 item : result.getBody()) { + DateTime value; + value = item.getDateTime(); + body.add(value); + } + } + serviceCallback.success(new ServiceResponse>(body, result.getResponse())); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDateTimeRfc1123ValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param arrayBody the List<DateTimeRfc1123> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDateTimeRfc1123Valid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + List arrayBodyConverted = new ArrayList(); + for (DateTime item : arrayBody) { + DateTimeRfc1123 value = new DateTimeRfc1123(item); + arrayBodyConverted.add(value); + } + Call call = service.putDateTimeRfc1123Valid(arrayBodyConverted); + return putDateTimeRfc1123ValidDelegate(call.execute()); + } + + /** + * Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. + * + * @param arrayBody the List<DateTimeRfc1123> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDateTimeRfc1123ValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + List arrayBodyConverted = new ArrayList(); + for (DateTime item : arrayBody) { + DateTimeRfc1123 value = new DateTimeRfc1123(item); + arrayBodyConverted.add(value); + } + Call call = service.putDateTimeRfc1123Valid(arrayBodyConverted); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDateTimeRfc1123ValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDateTimeRfc1123ValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Period> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getDurationValid() throws ErrorException, IOException { + Call call = service.getDurationValid(); + return getDurationValidDelegate(call.execute()); + } + + /** + * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDurationValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDurationValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDurationValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getDurationValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param arrayBody the List<Period> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDurationValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putDurationValid(arrayBody); + return putDurationValidDelegate(call.execute()); + } + + /** + * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + * + * @param arrayBody the List<Period> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDurationValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putDurationValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDurationValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDurationValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getByteValid() throws ErrorException, IOException { + Call call = service.getByteValid(); + return getByteValidDelegate(call.execute()); + } + + /** + * Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getByteValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getByteValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getByteValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getByteValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. + * + * @param arrayBody the List<byte[]> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putByteValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putByteValid(arrayBody); + return putByteValidDelegate(call.execute()); + } + + /** + * Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. + * + * @param arrayBody the List<byte[]> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putByteValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putByteValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putByteValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putByteValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<byte[]> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getByteInvalidNull() throws ErrorException, IOException { + Call call = service.getByteInvalidNull(); + return getByteInvalidNullDelegate(call.execute()); + } + + /** + * Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getByteInvalidNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getByteInvalidNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getByteInvalidNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getByteInvalidNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<String> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getBase64Url() throws ErrorException, IOException { + Call call = service.getBase64Url(); + return getBase64UrlDelegate(call.execute()); + } + + /** + * Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getBase64UrlAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getBase64Url(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getBase64UrlDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getBase64UrlDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get array of complex type null value. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getComplexNull() throws ErrorException, IOException { + Call call = service.getComplexNull(); + return getComplexNullDelegate(call.execute()); + } + + /** + * Get array of complex type null value. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getComplexNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getComplexNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getComplexNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getComplexNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get empty array of complex type []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getComplexEmpty() throws ErrorException, IOException { + Call call = service.getComplexEmpty(); + return getComplexEmptyDelegate(call.execute()); + } + + /** + * Get empty array of complex type []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getComplexEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getComplexEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getComplexEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getComplexEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getComplexItemNull() throws ErrorException, IOException { + Call call = service.getComplexItemNull(); + return getComplexItemNullDelegate(call.execute()); + } + + /** + * Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getComplexItemNullAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getComplexItemNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getComplexItemNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getComplexItemNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getComplexItemEmpty() throws ErrorException, IOException { + Call call = service.getComplexItemEmpty(); + return getComplexItemEmptyDelegate(call.execute()); + } + + /** + * Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getComplexItemEmptyAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getComplexItemEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getComplexItemEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getComplexItemEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Product> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse> getComplexValid() throws ErrorException, IOException { + Call call = service.getComplexValid(); + return getComplexValidDelegate(call.execute()); + } + + /** + * Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getComplexValidAsync(final ServiceCallback> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getComplexValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getComplexValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse> getComplexValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param arrayBody the List<Product> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putComplexValid(List arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putComplexValid(arrayBody); + return putComplexValidDelegate(call.execute()); + } + + /** + * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. + * + * @param arrayBody the List<Product> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putComplexValidAsync(List arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putComplexValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putComplexValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putComplexValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get a null array. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getArrayNull() throws ErrorException, IOException { + Call call = service.getArrayNull(); + return getArrayNullDelegate(call.execute()); + } + + /** + * Get a null array. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getArrayNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getArrayNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getArrayNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getArrayNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an empty array []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getArrayEmpty() throws ErrorException, IOException { + Call call = service.getArrayEmpty(); + return getArrayEmptyDelegate(call.execute()); + } + + /** + * Get an empty array []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getArrayEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getArrayEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getArrayEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getArrayEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getArrayItemNull() throws ErrorException, IOException { + Call call = service.getArrayItemNull(); + return getArrayItemNullDelegate(call.execute()); + } + + /** + * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getArrayItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getArrayItemNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getArrayItemNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getArrayItemNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getArrayItemEmpty() throws ErrorException, IOException { + Call call = service.getArrayItemEmpty(); + return getArrayItemEmptyDelegate(call.execute()); + } + + /** + * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getArrayItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getArrayItemEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getArrayItemEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getArrayItemEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<List<String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getArrayValid() throws ErrorException, IOException { + Call call = service.getArrayValid(); + return getArrayValidDelegate(call.execute()); + } + + /** + * Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getArrayValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getArrayValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getArrayValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getArrayValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param arrayBody the List<List<String>> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putArrayValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putArrayValid(arrayBody); + return putArrayValidDelegate(call.execute()); + } + + /** + * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. + * + * @param arrayBody the List<List<String>> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putArrayValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putArrayValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putArrayValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putArrayValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries with value null. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getDictionaryNull() throws ErrorException, IOException { + Call call = service.getDictionaryNull(); + return getDictionaryNullDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries with value null. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDictionaryNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDictionaryNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDictionaryNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getDictionaryNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries of type <string, string> with value []. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getDictionaryEmpty() throws ErrorException, IOException { + Call call = service.getDictionaryEmpty(); + return getDictionaryEmptyDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries of type <string, string> with value []. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDictionaryEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDictionaryEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDictionaryEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getDictionaryEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getDictionaryItemNull() throws ErrorException, IOException { + Call call = service.getDictionaryItemNull(); + return getDictionaryItemNullDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDictionaryItemNullAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDictionaryItemNull(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDictionaryItemNullDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getDictionaryItemNullDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getDictionaryItemEmpty() throws ErrorException, IOException { + Call call = service.getDictionaryItemEmpty(); + return getDictionaryItemEmptyDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDictionaryItemEmptyAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDictionaryItemEmpty(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDictionaryItemEmptyDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getDictionaryItemEmptyDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @return the List<Map<String, String>> object wrapped in {@link ServiceResponse} if successful. + */ + public ServiceResponse>> getDictionaryValid() throws ErrorException, IOException { + Call call = service.getDictionaryValid(); + return getDictionaryValidDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall getDictionaryValidAsync(final ServiceCallback>> serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + Call call = service.getDictionaryValid(); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback>>(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(getDictionaryValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse>> getDictionaryValidDelegate(Response response) throws ErrorException, IOException { + return new ServiceResponseBuilder>, ErrorException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param arrayBody the List<Map<String, String>> value + * @throws ErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + public ServiceResponse putDictionaryValid(List> arrayBody) throws ErrorException, IOException, IllegalArgumentException { + if (arrayBody == null) { + throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); + } + Validator.validate(arrayBody); + Call call = service.putDictionaryValid(arrayBody); + return putDictionaryValidDelegate(call.execute()); + } + + /** + * Get an array of Dictionaries of type <string, string> with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. + * + * @param arrayBody the List<Map<String, String>> value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link Call} object + */ + public ServiceCall putDictionaryValidAsync(List> arrayBody, final ServiceCallback serviceCallback) throws IllegalArgumentException { + if (serviceCallback == null) { + throw new IllegalArgumentException("ServiceCallback is required for async calls."); + } + if (arrayBody == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter arrayBody is required and cannot be null.")); + return null; + } + Validator.validate(arrayBody, serviceCallback); + Call call = service.putDictionaryValid(arrayBody); + final ServiceCall serviceCall = new ServiceCall(call); + call.enqueue(new ServiceResponseCallback(serviceCallback) { + @Override + public void onResponse(Call call, Response response) { + try { + serviceCallback.success(putDictionaryValidDelegate(response)); + } catch (ErrorException | IOException exception) { + serviceCallback.failure(exception); + } + } + }); + return serviceCall; + } + + private ServiceResponse putDictionaryValidDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return new ServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/AutoRest/Generators/Java/Java/TemplateModels/MethodTemplateModel.cs b/AutoRest/Generators/Java/Java/TemplateModels/MethodTemplateModel.cs index 8cd1baee6f..99cd16b939 100644 --- a/AutoRest/Generators/Java/Java/TemplateModels/MethodTemplateModel.cs +++ b/AutoRest/Generators/Java/Java/TemplateModels/MethodTemplateModel.cs @@ -74,7 +74,7 @@ public virtual IEnumerable RetrofitParameters { var parameters = LogicalParameterModels.Where(p => p.Location != ParameterLocation.None) .Where(p => !p.Extensions.ContainsKey("hostParameter")).ToList(); - if (ServiceClient.Extensions.ContainsKey(Generator.Extensions.ParameterizedHostExtension)) + if (IsParameterizedHost) { parameters.Add(new ParameterModel(new Parameter { @@ -242,6 +242,14 @@ public string MethodRequiredParameterApiInvocation } } + public virtual bool IsParameterizedHost + { + get + { + return ServiceClient.Extensions.ContainsKey(Generator.Extensions.ParameterizedHostExtension); + } + } + public string ParameterConversion { get @@ -723,7 +731,8 @@ public virtual List ImplImports } // parameters this.LocalParameters.Concat(this.LogicalParameterModels) - .ForEach(p => imports.AddRange(p.ImplImports)); + .ForEach(p => imports.AddRange(p.ClientImplImports)); + this.RetrofitParameters.ForEach(p => imports.AddRange(p.WireImplImports)); // return type imports.AddRange(this.ReturnTypeModel.ImplImports); if (ReturnType.Body.IsPrimaryType(KnownPrimaryType.Stream)) @@ -740,7 +749,7 @@ public virtual List ImplImports if (exceptionImport != null) imports.Add(JavaCodeNamer.GetJavaException(ex, ServiceClient)); }); // parameterized host - if (ServiceClient.Extensions.ContainsKey(Generator.Extensions.ParameterizedHostExtension)) + if (IsParameterizedHost) { imports.Add("com.google.common.base.Joiner"); } diff --git a/AutoRest/Generators/Java/Java/Templates/MethodTemplate.cshtml b/AutoRest/Generators/Java/Java/Templates/MethodTemplate.cshtml index bbfe79d97f..cb5711c005 100644 --- a/AutoRest/Generators/Java/Java/Templates/MethodTemplate.cshtml +++ b/AutoRest/Generators/Java/Java/Templates/MethodTemplate.cshtml @@ -59,7 +59,7 @@ public @Model.ReturnTypeModel.ClientResponseTypeString @(Model.Name)(@Model.Meth } @Model.BuildInputMappings(true) -@if (Model.ServiceClient.Extensions.ContainsKey(Microsoft.Rest.Generator.Extensions.ParameterizedHostExtension)) +@if (Model.IsParameterizedHost) { @: String parameterizedHost = Joiner.on(", ").join(@Model.HostParameterReplacementArgs); } @@ -116,7 +116,7 @@ public ServiceCall @(Model.Name)Async(@Model.MethodRequiredParameterDeclarationW } @Model.BuildInputMappings(true) -@if (Model.ServiceClient.Extensions.ContainsKey(Microsoft.Rest.Generator.Extensions.ParameterizedHostExtension)) +@if (Model.IsParameterizedHost) { @: String parameterizedHost = Joiner.on(", ").join(@Model.HostParameterReplacementArgs); } @@ -185,7 +185,7 @@ public @Model.ReturnTypeModel.ClientResponseTypeString @(Model.Name)(@Model.Meth } @Model.BuildInputMappings() -@if (Model.ServiceClient.Extensions.ContainsKey(Microsoft.Rest.Generator.Extensions.ParameterizedHostExtension)) +@if (Model.IsParameterizedHost) { @: String parameterizedHost = Joiner.on(", ").join(@Model.HostParameterReplacementArgs); } @@ -238,7 +238,7 @@ public ServiceCall @(Model.Name)Async(@Model.MethodParameterDeclarationWithCallb } @Model.BuildInputMappings() -@if (Model.ServiceClient.Extensions.ContainsKey(Microsoft.Rest.Generator.Extensions.ParameterizedHostExtension)) +@if (Model.IsParameterizedHost) { @: String parameterizedHost = Joiner.on(", ").join(@Model.HostParameterReplacementArgs); } diff --git a/AutoRest/Generators/Java/Java/TypeModels/ParameterModel.cs b/AutoRest/Generators/Java/Java/TypeModels/ParameterModel.cs index 2858b1dde9..d71745166e 100644 --- a/AutoRest/Generators/Java/Java/TypeModels/ParameterModel.cs +++ b/AutoRest/Generators/Java/Java/TypeModels/ParameterModel.cs @@ -204,12 +204,20 @@ public IEnumerable RetrofitImports } private List _implImports; + + public IEnumerable ClientImplImports + { + get + { + return ClientType.Imports; + } + } - public IEnumerable ImplImports + public IEnumerable WireImplImports { get { - var imports = new List(ClientType.Imports); + var imports = new List(WireType.Imports); if (Location != ParameterLocation.Body) { if (this.Type.IsPrimaryType(KnownPrimaryType.ByteArray))