From 2b0bceeed9fa3ea90629c10174bf1553e92142f2 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 20 Apr 2016 12:51:28 -0700 Subject: [PATCH] Add missing regen files --- .../implementation/api/Error.java | 68 ++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ .../api/FirstParameterGroupInner.java | 71 ++++++++++ ...MultiParamGroupsSecondParamGroupInner.java | 71 ++++++++++ ...erGroupingPostOptionalParametersInner.java | 71 ++++++++++ ...erGroupingPostRequiredParametersInner.java | 123 ++++++++++++++++++ .../azurereport/implementation/api/Error.java | 68 ++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ .../implementation/api/Error.java | 68 ++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ .../api/FlattenedProductInner.java | 100 ++++++++++++++ .../api/ResourceCollectionInner.java | 95 ++++++++++++++ .../implementation/api/ResourceInner.java | 115 ++++++++++++++++ .../implementation/api/Error.java | 93 +++++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ ...eaderCustomNamedRequestIdHeadersInner.java | 45 +++++++ .../implementation/api/OdataFilter.java | 68 ++++++++++ .../implementation/api/Error.java | 68 ++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ ...RORetrysDelete202Retry200HeadersInner.java | 73 +++++++++++ ...yncRelativeRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...ng202Accepted200SucceededHeadersInner.java | 73 +++++++++++ .../LRORetrysPost202Retry200HeadersInner.java | 73 +++++++++++ ...yncRelativeRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...yncRelativeRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...OSADsDelete202NonRetry400HeadersInner.java | 73 +++++++++++ ...lete202RetryInvalidHeaderHeadersInner.java | 72 ++++++++++ ...leteAsyncRelativeRetry400HeadersInner.java | 100 ++++++++++++++ ...elativeRetryInvalidHeaderHeadersInner.java | 98 ++++++++++++++ ...veRetryInvalidJsonPollingHeadersInner.java | 100 ++++++++++++++ ...syncRelativeRetryNoStatusHeadersInner.java | 100 ++++++++++++++ .../LROSADsDeleteNonRetry400HeadersInner.java | 73 +++++++++++ .../LROSADsPost202NoLocationHeadersInner.java | 72 ++++++++++ ...LROSADsPost202NonRetry400HeadersInner.java | 73 +++++++++++ ...Post202RetryInvalidHeaderHeadersInner.java | 72 ++++++++++ ...PostAsyncRelativeRetry400HeadersInner.java | 100 ++++++++++++++ ...elativeRetryInvalidHeaderHeadersInner.java | 98 ++++++++++++++ ...veRetryInvalidJsonPollingHeadersInner.java | 100 ++++++++++++++ ...yncRelativeRetryNoPayloadHeadersInner.java | 100 ++++++++++++++ .../LROSADsPostNonRetry400HeadersInner.java | 73 +++++++++++ ...sPutAsyncRelativeRetry400HeadersInner.java | 100 ++++++++++++++ ...elativeRetryInvalidHeaderHeadersInner.java | 100 ++++++++++++++ ...veRetryInvalidJsonPollingHeadersInner.java | 100 ++++++++++++++ ...syncRelativeRetryNoStatusHeadersInner.java | 100 ++++++++++++++ ...ativeRetryNoStatusPayloadHeadersInner.java | 100 ++++++++++++++ ...stomHeaderPost202Retry200HeadersInner.java | 73 +++++++++++ ...erPostAsyncRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...derPutAsyncRetrySucceededHeadersInner.java | 100 ++++++++++++++ .../LROsDelete202NoRetry204HeadersInner.java | 73 +++++++++++ .../LROsDelete202Retry200HeadersInner.java | 73 +++++++++++ ...eleteAsyncNoHeaderInRetryHeadersInner.java | 46 +++++++ ...leteAsyncNoRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...ROsDeleteAsyncRetryFailedHeadersInner.java | 100 ++++++++++++++ ...DeleteAsyncRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...sDeleteAsyncRetrycanceledHeadersInner.java | 100 ++++++++++++++ ...LROsDeleteNoHeaderInRetryHeadersInner.java | 46 +++++++ ...ng202Accepted200SucceededHeadersInner.java | 73 +++++++++++ ...oning202DeletingFailed200HeadersInner.java | 73 +++++++++++ ...ing202Deletingcanceled200HeadersInner.java | 73 +++++++++++ .../LROsPost202NoRetry204HeadersInner.java | 73 +++++++++++ .../api/LROsPost202Retry200HeadersInner.java | 73 +++++++++++ ...PostAsyncNoRetrySucceededHeadersInner.java | 100 ++++++++++++++ .../LROsPostAsyncRetryFailedHeadersInner.java | 100 ++++++++++++++ ...OsPostAsyncRetrySucceededHeadersInner.java | 100 ++++++++++++++ ...ROsPostAsyncRetrycanceledHeadersInner.java | 100 ++++++++++++++ ...OsPutAsyncNoHeaderInRetryHeadersInner.java | 45 +++++++ ...sPutAsyncNoRetrySucceededHeadersInner.java | 73 +++++++++++ ...OsPutAsyncNoRetrycanceledHeadersInner.java | 73 +++++++++++ .../LROsPutAsyncRetryFailedHeadersInner.java | 100 ++++++++++++++ ...ROsPutAsyncRetrySucceededHeadersInner.java | 100 ++++++++++++++ .../LROsPutNoHeaderInRetryHeadersInner.java | 44 +++++++ .../implementation/api/OperationResult.java | 70 ++++++++++ .../api/OperationResultError.java | 68 ++++++++++ .../lro/implementation/api/ProductInner.java | 65 +++++++++ .../lro/implementation/api/SkuInner.java | 68 ++++++++++ .../implementation/api/SubProductInner.java | 65 +++++++++ .../implementation/api/OperationResult.java | 45 +++++++ .../paging/implementation/api/PageImpl.java | 77 +++++++++++ .../PagingGetMultiplePagesOptionsInner.java | 72 ++++++++++ ...ltiplePagesWithOffsetNextOptionsInner.java | 72 ++++++++++ ...etMultiplePagesWithOffsetOptionsInner.java | 98 ++++++++++++++ .../implementation/api/ProductInner.java | 43 ++++++ .../implementation/api/ProductProperties.java | 68 ++++++++++ .../implementation/api/Error.java | 68 ++++++++++ .../implementation/api/ErrorException.java | 89 +++++++++++++ .../api/SampleResourceGroupInner.java | 68 ++++++++++ ...t_parameterized_custom_host_test_client.py | 8 +- 87 files changed, 7045 insertions(+), 2 deletions(-) create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/FirstParameterGroupInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostOptionalParametersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostRequiredParametersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/FlattenedProductInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceCollectionInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdataFilter.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDelete202Retry200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPost202Retry200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NoLocationHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NonRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostNonRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202NoRetry204HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202Retry200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202NoRetry204HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202Retry200HeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResult.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResultError.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/ProductInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SkuInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SubProductInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/OperationResult.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PageImpl.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesOptionsInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductInner.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductProperties.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/Error.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/ErrorException.java create mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/SampleResourceGroupInner.java diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/Error.java new file mode 100644 index 0000000000..483487146f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/Error.java @@ -0,0 +1,68 @@ +/** + * 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.azureparametergrouping.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The status property. + */ + private Integer status; + + /** + * The message property. + */ + private String message; + + /** + * Get the status value. + * + * @return the status value + */ + public Integer status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the Error object itself. + */ + public Error setStatus(Integer status) { + this.status = status; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ErrorException.java new file mode 100644 index 0000000000..f1c118eaa9 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.azureparametergrouping.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/FirstParameterGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/FirstParameterGroupInner.java new file mode 100644 index 0000000000..d0505a76d1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/FirstParameterGroupInner.java @@ -0,0 +1,71 @@ +/** + * 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.azureparametergrouping.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the postMultiParamGroups operation. + */ +public class FirstParameterGroupInner { + /** + * The headerOne property. + */ + @JsonProperty(value = "") + private String headerOne; + + /** + * Query parameter with default. + */ + @JsonProperty(value = "") + private Integer queryOne; + + /** + * Get the headerOne value. + * + * @return the headerOne value + */ + public String headerOne() { + return this.headerOne; + } + + /** + * Set the headerOne value. + * + * @param headerOne the headerOne value to set + * @return the FirstParameterGroupInner object itself. + */ + public FirstParameterGroupInner setHeaderOne(String headerOne) { + this.headerOne = headerOne; + return this; + } + + /** + * Get the queryOne value. + * + * @return the queryOne value + */ + public Integer queryOne() { + return this.queryOne; + } + + /** + * Set the queryOne value. + * + * @param queryOne the queryOne value to set + * @return the FirstParameterGroupInner object itself. + */ + public FirstParameterGroupInner setQueryOne(Integer queryOne) { + this.queryOne = queryOne; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java new file mode 100644 index 0000000000..efb32f24b1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java @@ -0,0 +1,71 @@ +/** + * 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.azureparametergrouping.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the postMultiParamGroups operation. + */ +public class ParameterGroupingPostMultiParamGroupsSecondParamGroupInner { + /** + * The headerTwo property. + */ + @JsonProperty(value = "") + private String headerTwo; + + /** + * Query parameter with default. + */ + @JsonProperty(value = "") + private Integer queryTwo; + + /** + * Get the headerTwo value. + * + * @return the headerTwo value + */ + public String headerTwo() { + return this.headerTwo; + } + + /** + * Set the headerTwo value. + * + * @param headerTwo the headerTwo value to set + * @return the ParameterGroupingPostMultiParamGroupsSecondParamGroupInner object itself. + */ + public ParameterGroupingPostMultiParamGroupsSecondParamGroupInner setHeaderTwo(String headerTwo) { + this.headerTwo = headerTwo; + return this; + } + + /** + * Get the queryTwo value. + * + * @return the queryTwo value + */ + public Integer queryTwo() { + return this.queryTwo; + } + + /** + * Set the queryTwo value. + * + * @param queryTwo the queryTwo value to set + * @return the ParameterGroupingPostMultiParamGroupsSecondParamGroupInner object itself. + */ + public ParameterGroupingPostMultiParamGroupsSecondParamGroupInner setQueryTwo(Integer queryTwo) { + this.queryTwo = queryTwo; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostOptionalParametersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostOptionalParametersInner.java new file mode 100644 index 0000000000..a95b395471 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostOptionalParametersInner.java @@ -0,0 +1,71 @@ +/** + * 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.azureparametergrouping.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the postOptional operation. + */ +public class ParameterGroupingPostOptionalParametersInner { + /** + * The customHeader property. + */ + @JsonProperty(value = "") + private String customHeader; + + /** + * Query parameter with default. + */ + @JsonProperty(value = "") + private Integer query; + + /** + * Get the customHeader value. + * + * @return the customHeader value + */ + public String customHeader() { + return this.customHeader; + } + + /** + * Set the customHeader value. + * + * @param customHeader the customHeader value to set + * @return the ParameterGroupingPostOptionalParametersInner object itself. + */ + public ParameterGroupingPostOptionalParametersInner setCustomHeader(String customHeader) { + this.customHeader = customHeader; + return this; + } + + /** + * Get the query value. + * + * @return the query value + */ + public Integer query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ParameterGroupingPostOptionalParametersInner object itself. + */ + public ParameterGroupingPostOptionalParametersInner setQuery(Integer query) { + this.query = query; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostRequiredParametersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostRequiredParametersInner.java new file mode 100644 index 0000000000..cc629b2615 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingPostRequiredParametersInner.java @@ -0,0 +1,123 @@ +/** + * 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.azureparametergrouping.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the postRequired operation. + */ +public class ParameterGroupingPostRequiredParametersInner { + /** + * The body property. + */ + @JsonProperty(value = "", required = true) + private int body; + + /** + * The customHeader property. + */ + @JsonProperty(value = "") + private String customHeader; + + /** + * Query parameter with default. + */ + @JsonProperty(value = "") + private Integer query; + + /** + * Path parameter. + */ + @JsonProperty(value = "", required = true) + private String path; + + /** + * Get the body value. + * + * @return the body value + */ + public int body() { + return this.body; + } + + /** + * Set the body value. + * + * @param body the body value to set + * @return the ParameterGroupingPostRequiredParametersInner object itself. + */ + public ParameterGroupingPostRequiredParametersInner setBody(int body) { + this.body = body; + return this; + } + + /** + * Get the customHeader value. + * + * @return the customHeader value + */ + public String customHeader() { + return this.customHeader; + } + + /** + * Set the customHeader value. + * + * @param customHeader the customHeader value to set + * @return the ParameterGroupingPostRequiredParametersInner object itself. + */ + public ParameterGroupingPostRequiredParametersInner setCustomHeader(String customHeader) { + this.customHeader = customHeader; + return this; + } + + /** + * Get the query value. + * + * @return the query value + */ + public Integer query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ParameterGroupingPostRequiredParametersInner object itself. + */ + public ParameterGroupingPostRequiredParametersInner setQuery(Integer query) { + this.query = query; + return this; + } + + /** + * Get the path value. + * + * @return the path value + */ + public String path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the ParameterGroupingPostRequiredParametersInner object itself. + */ + public ParameterGroupingPostRequiredParametersInner setPath(String path) { + this.path = path; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/Error.java new file mode 100644 index 0000000000..ae21d5b34f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/Error.java @@ -0,0 +1,68 @@ +/** + * 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.azurereport.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The status property. + */ + private Integer status; + + /** + * The message property. + */ + private String message; + + /** + * Get the status value. + * + * @return the status value + */ + public Integer status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the Error object itself. + */ + public Error setStatus(Integer status) { + this.status = status; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/ErrorException.java new file mode 100644 index 0000000000..8e16ea655b --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.azurereport.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/Error.java new file mode 100644 index 0000000000..cf7c11c239 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/Error.java @@ -0,0 +1,68 @@ +/** + * 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.azureresource.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The status property. + */ + private Integer status; + + /** + * The message property. + */ + private String message; + + /** + * Get the status value. + * + * @return the status value + */ + public Integer status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the Error object itself. + */ + public Error setStatus(Integer status) { + this.status = status; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ErrorException.java new file mode 100644 index 0000000000..b8197c6297 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.azureresource.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/FlattenedProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/FlattenedProductInner.java new file mode 100644 index 0000000000..b33e3b2cae --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/FlattenedProductInner.java @@ -0,0 +1,100 @@ +/** + * 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.azureresource.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * The FlattenedProductInner model. + */ +@JsonFlatten +public class FlattenedProductInner extends Resource { + /** + * The pname property. + */ + @JsonProperty(value = "properties.pname") + private String pname; + + /** + * The lsize property. + */ + @JsonProperty(value = "properties.lsize") + private Integer lsize; + + /** + * The provisioningState property. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Get the pname value. + * + * @return the pname value + */ + public String pname() { + return this.pname; + } + + /** + * Set the pname value. + * + * @param pname the pname value to set + * @return the FlattenedProductInner object itself. + */ + public FlattenedProductInner setPname(String pname) { + this.pname = pname; + return this; + } + + /** + * Get the lsize value. + * + * @return the lsize value + */ + public Integer lsize() { + return this.lsize; + } + + /** + * Set the lsize value. + * + * @param lsize the lsize value to set + * @return the FlattenedProductInner object itself. + */ + public FlattenedProductInner setLsize(Integer lsize) { + this.lsize = lsize; + return this; + } + + /** + * Get the provisioningState value. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState value. + * + * @param provisioningState the provisioningState value to set + * @return the FlattenedProductInner object itself. + */ + public FlattenedProductInner setProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceCollectionInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceCollectionInner.java new file mode 100644 index 0000000000..3d9b72dca8 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceCollectionInner.java @@ -0,0 +1,95 @@ +/** + * 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.azureresource.implementation.api; + +import java.util.List; +import java.util.Map; + +/** + * The ResourceCollectionInner model. + */ +public class ResourceCollectionInner { + /** + * The productresource property. + */ + private FlattenedProductInner productresource; + + /** + * The arrayofresources property. + */ + private List arrayofresources; + + /** + * The dictionaryofresources property. + */ + private Map dictionaryofresources; + + /** + * Get the productresource value. + * + * @return the productresource value + */ + public FlattenedProductInner productresource() { + return this.productresource; + } + + /** + * Set the productresource value. + * + * @param productresource the productresource value to set + * @return the ResourceCollectionInner object itself. + */ + public ResourceCollectionInner setProductresource(FlattenedProductInner productresource) { + this.productresource = productresource; + return this; + } + + /** + * Get the arrayofresources value. + * + * @return the arrayofresources value + */ + public List arrayofresources() { + return this.arrayofresources; + } + + /** + * Set the arrayofresources value. + * + * @param arrayofresources the arrayofresources value to set + * @return the ResourceCollectionInner object itself. + */ + public ResourceCollectionInner setArrayofresources(List arrayofresources) { + this.arrayofresources = arrayofresources; + return this; + } + + /** + * Get the dictionaryofresources value. + * + * @return the dictionaryofresources value + */ + public Map dictionaryofresources() { + return this.dictionaryofresources; + } + + /** + * Set the dictionaryofresources value. + * + * @param dictionaryofresources the dictionaryofresources value to set + * @return the ResourceCollectionInner object itself. + */ + public ResourceCollectionInner setDictionaryofresources(Map dictionaryofresources) { + this.dictionaryofresources = dictionaryofresources; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceInner.java new file mode 100644 index 0000000000..c89f5bcb0a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/ResourceInner.java @@ -0,0 +1,115 @@ +/** + * 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.azureresource.implementation.api; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ResourceInner model. + */ +public class ResourceInner { + /** + * Resource Id. + */ + @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Resource Type. + */ + @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * The tags property. + */ + private Map tags; + + /** + * Resource Location. + */ + private String location; + + /** + * Resource Name. + */ + @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * Get the id value. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the ResourceInner object itself. + */ + public ResourceInner setTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the ResourceInner object itself. + */ + public ResourceInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/Error.java new file mode 100644 index 0000000000..8a36365c67 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/Error.java @@ -0,0 +1,93 @@ +/** + * 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.azurespecials.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The status property. + */ + private Integer status; + + /** + * The constantId property. + */ + private Integer constantId; + + /** + * The message property. + */ + private String message; + + /** + * Get the status value. + * + * @return the status value + */ + public Integer status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the Error object itself. + */ + public Error setStatus(Integer status) { + this.status = status; + return this; + } + + /** + * Get the constantId value. + * + * @return the constantId value + */ + public Integer constantId() { + return this.constantId; + } + + /** + * Set the constantId value. + * + * @param constantId the constantId value to set + * @return the Error object itself. + */ + public Error setConstantId(Integer constantId) { + this.constantId = constantId; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ErrorException.java new file mode 100644 index 0000000000..823160bb94 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.azurespecials.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java new file mode 100644 index 0000000000..305400de76 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java @@ -0,0 +1,45 @@ +/** + * 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.azurespecials.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for customNamedRequestId operation. + */ +public class HeaderCustomNamedRequestIdHeadersInner { + /** + * Gets the foo-request-id. + */ + @JsonProperty(value = "foo-request-id") + private String fooRequestId; + + /** + * Get the fooRequestId value. + * + * @return the fooRequestId value + */ + public String fooRequestId() { + return this.fooRequestId; + } + + /** + * Set the fooRequestId value. + * + * @param fooRequestId the fooRequestId value to set + * @return the HeaderCustomNamedRequestIdHeadersInner object itself. + */ + public HeaderCustomNamedRequestIdHeadersInner setFooRequestId(String fooRequestId) { + this.fooRequestId = fooRequestId; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdataFilter.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdataFilter.java new file mode 100644 index 0000000000..c9a8a4e873 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdataFilter.java @@ -0,0 +1,68 @@ +/** + * 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.azurespecials.implementation.api; + + +/** + * The OdataFilter model. + */ +public class OdataFilter { + /** + * The id property. + */ + private Integer id; + + /** + * The name property. + */ + private String name; + + /** + * Get the id value. + * + * @return the id value + */ + public Integer id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the OdataFilter object itself. + */ + public OdataFilter setId(Integer id) { + this.id = id; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the OdataFilter object itself. + */ + public OdataFilter setName(String name) { + this.name = name; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/Error.java new file mode 100644 index 0000000000..1a6b1143d0 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/Error.java @@ -0,0 +1,68 @@ +/** + * 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.custombaseuri.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The status property. + */ + private Integer status; + + /** + * The message property. + */ + private String message; + + /** + * Get the status value. + * + * @return the status value + */ + public Integer status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the Error object itself. + */ + public Error setStatus(Integer status) { + this.status = status; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/ErrorException.java new file mode 100644 index 0000000000..b25bb030aa --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.custombaseuri.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDelete202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDelete202Retry200HeadersInner.java new file mode 100644 index 0000000000..ff101e40f7 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDelete202Retry200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for delete202Retry200 operation. + */ +public class LRORetrysDelete202Retry200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/delete/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysDelete202Retry200HeadersInner object itself. + */ + public LRORetrysDelete202Retry200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysDelete202Retry200HeadersInner object itself. + */ + public LRORetrysDelete202Retry200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..4b189dd3df --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRelativeRetrySucceeded operation. + */ +public class LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/retryerror/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java new file mode 100644 index 0000000000..3edd3e36ce --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteProvisioning202Accepted200Succeeded operation. + */ +public class LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/delete/provisioning/202/accepted/200/succeeded. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner object itself. + */ + public LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner object itself. + */ + public LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPost202Retry200HeadersInner.java new file mode 100644 index 0000000000..17f05e340b --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPost202Retry200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202Retry200 operation. + */ +public class LRORetrysPost202Retry200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/post/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysPost202Retry200HeadersInner object itself. + */ + public LRORetrysPost202Retry200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysPost202Retry200HeadersInner object itself. + */ + public LRORetrysPost202Retry200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..46a9731142 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRelativeRetrySucceeded operation. + */ +public class LRORetrysPostAsyncRelativeRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/retryerror/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LRORetrysPostAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPostAsyncRelativeRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysPostAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPostAsyncRelativeRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysPostAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPostAsyncRelativeRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..ec6e038ca6 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetrySucceeded operation. + */ +public class LRORetrysPutAsyncRelativeRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/retryerror/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LRORetrysPutAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPutAsyncRelativeRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LRORetrysPutAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPutAsyncRelativeRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LRORetrysPutAsyncRelativeRetrySucceededHeadersInner object itself. + */ + public LRORetrysPutAsyncRelativeRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java new file mode 100644 index 0000000000..1253833fe1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for delete202NonRetry400 operation. + */ +public class LROSADsDelete202NonRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/delete/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDelete202NonRetry400HeadersInner object itself. + */ + public LROSADsDelete202NonRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDelete202NonRetry400HeadersInner object itself. + */ + public LROSADsDelete202NonRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java new file mode 100644 index 0000000000..ccd091e32a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java @@ -0,0 +1,72 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for delete202RetryInvalidHeader operation. + */ +public class LROSADsDelete202RetryInvalidHeaderHeadersInner { + /** + * Location to poll for result status: will be set to /foo. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to /bar. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDelete202RetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsDelete202RetryInvalidHeaderHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDelete202RetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsDelete202RetryInvalidHeaderHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java new file mode 100644 index 0000000000..70aeb72c91 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRelativeRetry400 operation. + */ +public class LROSADsDeleteAsyncRelativeRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/deleteasync/retry/operationResults/400. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/deleteasync/retry/operationResults/400. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsDeleteAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetry400HeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDeleteAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDeleteAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java new file mode 100644 index 0000000000..90b323ab3b --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java @@ -0,0 +1,98 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRelativeRetryInvalidHeader operation. + */ +public class LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner { + /** + * Location to poll for result status: will be set to /foo. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to /foo. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to /bar. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java new file mode 100644 index 0000000000..8be25f7db4 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRelativeRetryInvalidJsonPolling operation. + */ +public class LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java new file mode 100644 index 0000000000..8bea4f1d1c --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRelativeRetryNoStatus operation. + */ +public class LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java new file mode 100644 index 0000000000..5409dbcb2f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteNonRetry400 operation. + */ +public class LROSADsDeleteNonRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/delete/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsDeleteNonRetry400HeadersInner object itself. + */ + public LROSADsDeleteNonRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsDeleteNonRetry400HeadersInner object itself. + */ + public LROSADsDeleteNonRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NoLocationHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NoLocationHeadersInner.java new file mode 100644 index 0000000000..fda72993b1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NoLocationHeadersInner.java @@ -0,0 +1,72 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202NoLocation operation. + */ +public class LROSADsPost202NoLocationHeadersInner { + /** + * Location to poll for result status: will not be set. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPost202NoLocationHeadersInner object itself. + */ + public LROSADsPost202NoLocationHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPost202NoLocationHeadersInner object itself. + */ + public LROSADsPost202NoLocationHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NonRetry400HeadersInner.java new file mode 100644 index 0000000000..d037112d14 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202NonRetry400HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202NonRetry400 operation. + */ +public class LROSADsPost202NonRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/post/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPost202NonRetry400HeadersInner object itself. + */ + public LROSADsPost202NonRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPost202NonRetry400HeadersInner object itself. + */ + public LROSADsPost202NonRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java new file mode 100644 index 0000000000..9da69a46c0 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java @@ -0,0 +1,72 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202RetryInvalidHeader operation. + */ +public class LROSADsPost202RetryInvalidHeaderHeadersInner { + /** + * Location to poll for result status: will be set to /foo. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to /bar. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPost202RetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPost202RetryInvalidHeaderHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPost202RetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPost202RetryInvalidHeaderHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java new file mode 100644 index 0000000000..ae8bb3afed --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRelativeRetry400 operation. + */ +public class LROSADsPostAsyncRelativeRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/putasync/retry/operationResults/400. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/putasync/retry/operationResults/400. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPostAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetry400HeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPostAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPostAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java new file mode 100644 index 0000000000..7b01d66e62 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java @@ -0,0 +1,98 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRelativeRetryInvalidHeader operation. + */ +public class LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner { + /** + * Location to poll for result status: will be set to foo. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to foo. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to /bar. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java new file mode 100644 index 0000000000..e5718defca --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRelativeRetryInvalidJsonPolling operation. + */ +public class LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java new file mode 100644 index 0000000000..ae5df27821 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRelativeRetryNoPayload operation. + */ +public class LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/error/putasync/retry/failed/operationResults/nopayload. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/error/putasync/retry/failed/operationResults/nopayload. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner object itself. + */ + public LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostNonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostNonRetry400HeadersInner.java new file mode 100644 index 0000000000..bf22dd0670 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPostNonRetry400HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postNonRetry400 operation. + */ +public class LROSADsPostNonRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/retryerror/post/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPostNonRetry400HeadersInner object itself. + */ + public LROSADsPostNonRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPostNonRetry400HeadersInner object itself. + */ + public LROSADsPostNonRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java new file mode 100644 index 0000000000..dfd1a77ed1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetry400 operation. + */ +public class LROSADsPutAsyncRelativeRetry400HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/putasync/retry/operationResults/400. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/nonretryerror/putasync/retry/operationResults/400. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPutAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetry400HeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPutAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetry400HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPutAsyncRelativeRetry400HeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetry400HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java new file mode 100644 index 0000000000..f0285f9967 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetryInvalidHeader operation. + */ +public class LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java new file mode 100644 index 0000000000..a49909a02c --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetryInvalidJsonPolling operation. + */ +public class LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java new file mode 100644 index 0000000000..5579d5ef2a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetryNoStatus operation. + */ +public class LROSADsPutAsyncRelativeRetryNoStatusHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java new file mode 100644 index 0000000000..09d86adffe --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRelativeRetryNoStatusPayload operation. + */ +public class LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner object itself. + */ + public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java new file mode 100644 index 0000000000..9a09381f2a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202Retry200 operation. + */ +public class LROsCustomHeaderPost202Retry200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/customheader/post/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsCustomHeaderPost202Retry200HeadersInner object itself. + */ + public LROsCustomHeaderPost202Retry200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsCustomHeaderPost202Retry200HeadersInner object itself. + */ + public LROsCustomHeaderPost202Retry200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..2efed9dd5a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRetrySucceeded operation. + */ +public class LROsCustomHeaderPostAsyncRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/customheader/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/customheader/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsCustomHeaderPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPostAsyncRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsCustomHeaderPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPostAsyncRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsCustomHeaderPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPostAsyncRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..54e4af2b65 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRetrySucceeded operation. + */ +public class LROsCustomHeaderPutAsyncRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/customheader/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/customheader/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsCustomHeaderPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPutAsyncRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsCustomHeaderPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPutAsyncRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsCustomHeaderPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsCustomHeaderPutAsyncRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202NoRetry204HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202NoRetry204HeadersInner.java new file mode 100644 index 0000000000..d5e9a3f61b --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202NoRetry204HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for delete202NoRetry204 operation. + */ +public class LROsDelete202NoRetry204HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/delete/202/noretry/204. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDelete202NoRetry204HeadersInner object itself. + */ + public LROsDelete202NoRetry204HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDelete202NoRetry204HeadersInner object itself. + */ + public LROsDelete202NoRetry204HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202Retry200HeadersInner.java new file mode 100644 index 0000000000..d54fd9ecd7 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDelete202Retry200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for delete202Retry200 operation. + */ +public class LROsDelete202Retry200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/delete/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDelete202Retry200HeadersInner object itself. + */ + public LROsDelete202Retry200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDelete202Retry200HeadersInner object itself. + */ + public LROsDelete202Retry200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java new file mode 100644 index 0000000000..18b3aa084f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java @@ -0,0 +1,46 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncNoHeaderInRetry operation. + */ +public class LROsDeleteAsyncNoHeaderInRetryHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/put/noheader/202/204/operationresults. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteAsyncNoHeaderInRetryHeadersInner object itself. + */ + public LROsDeleteAsyncNoHeaderInRetryHeadersInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..9339b5b818 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncNoRetrySucceeded operation. + */ +public class LROsDeleteAsyncNoRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/noretry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/noretry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsDeleteAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncNoRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncNoRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncNoRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java new file mode 100644 index 0000000000..1db40338c9 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRetryFailed operation. + */ +public class LROsDeleteAsyncRetryFailedHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsDeleteAsyncRetryFailedHeadersInner object itself. + */ + public LROsDeleteAsyncRetryFailedHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteAsyncRetryFailedHeadersInner object itself. + */ + public LROsDeleteAsyncRetryFailedHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteAsyncRetryFailedHeadersInner object itself. + */ + public LROsDeleteAsyncRetryFailedHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..ac012a9e3b --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRetrySucceeded operation. + */ +public class LROsDeleteAsyncRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsDeleteAsyncRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteAsyncRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteAsyncRetrySucceededHeadersInner object itself. + */ + public LROsDeleteAsyncRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java new file mode 100644 index 0000000000..a60434472a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteAsyncRetrycanceled operation. + */ +public class LROsDeleteAsyncRetrycanceledHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/canceled/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/deleteasync/retry/canceled/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsDeleteAsyncRetrycanceledHeadersInner object itself. + */ + public LROsDeleteAsyncRetrycanceledHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteAsyncRetrycanceledHeadersInner object itself. + */ + public LROsDeleteAsyncRetrycanceledHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteAsyncRetrycanceledHeadersInner object itself. + */ + public LROsDeleteAsyncRetrycanceledHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java new file mode 100644 index 0000000000..d688f4466a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java @@ -0,0 +1,46 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteNoHeaderInRetry operation. + */ +public class LROsDeleteNoHeaderInRetryHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/put/noheader/202/204/operationresults. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteNoHeaderInRetryHeadersInner object itself. + */ + public LROsDeleteNoHeaderInRetryHeadersInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java new file mode 100644 index 0000000000..bbd16fcb90 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteProvisioning202Accepted200Succeeded operation. + */ +public class LROsDeleteProvisioning202Accepted200SucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/delete/provisioning/202/accepted/200/succeeded. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteProvisioning202Accepted200SucceededHeadersInner object itself. + */ + public LROsDeleteProvisioning202Accepted200SucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteProvisioning202Accepted200SucceededHeadersInner object itself. + */ + public LROsDeleteProvisioning202Accepted200SucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java new file mode 100644 index 0000000000..0e9376d8cb --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteProvisioning202DeletingFailed200 operation. + */ +public class LROsDeleteProvisioning202DeletingFailed200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/delete/provisioning/202/deleting/200/failed. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteProvisioning202DeletingFailed200HeadersInner object itself. + */ + public LROsDeleteProvisioning202DeletingFailed200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteProvisioning202DeletingFailed200HeadersInner object itself. + */ + public LROsDeleteProvisioning202DeletingFailed200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java new file mode 100644 index 0000000000..7ec289fa64 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for deleteProvisioning202Deletingcanceled200 operation. + */ +public class LROsDeleteProvisioning202Deletingcanceled200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/delete/provisioning/202/deleting/200/canceled. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsDeleteProvisioning202Deletingcanceled200HeadersInner object itself. + */ + public LROsDeleteProvisioning202Deletingcanceled200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsDeleteProvisioning202Deletingcanceled200HeadersInner object itself. + */ + public LROsDeleteProvisioning202Deletingcanceled200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202NoRetry204HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202NoRetry204HeadersInner.java new file mode 100644 index 0000000000..aacc81c8b5 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202NoRetry204HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202NoRetry204 operation. + */ +public class LROsPost202NoRetry204HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/post/202/noretry/204. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPost202NoRetry204HeadersInner object itself. + */ + public LROsPost202NoRetry204HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPost202NoRetry204HeadersInner object itself. + */ + public LROsPost202NoRetry204HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202Retry200HeadersInner.java new file mode 100644 index 0000000000..1781078e8f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPost202Retry200HeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for post202Retry200 operation. + */ +public class LROsPost202Retry200HeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/post/202/retry/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPost202Retry200HeadersInner object itself. + */ + public LROsPost202Retry200HeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPost202Retry200HeadersInner object itself. + */ + public LROsPost202Retry200HeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..1952ad7042 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncNoRetrySucceeded operation. + */ +public class LROsPostAsyncNoRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPostAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncNoRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPostAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncNoRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPostAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncNoRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java new file mode 100644 index 0000000000..bd1c9ad079 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRetryFailed operation. + */ +public class LROsPostAsyncRetryFailedHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPostAsyncRetryFailedHeadersInner object itself. + */ + public LROsPostAsyncRetryFailedHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPostAsyncRetryFailedHeadersInner object itself. + */ + public LROsPostAsyncRetryFailedHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPostAsyncRetryFailedHeadersInner object itself. + */ + public LROsPostAsyncRetryFailedHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..9c8d5362ae --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRetrySucceeded operation. + */ +public class LROsPostAsyncRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPostAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPostAsyncRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java new file mode 100644 index 0000000000..3279348373 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for postAsyncRetrycanceled operation. + */ +public class LROsPostAsyncRetrycanceledHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/canceled/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/canceled/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPostAsyncRetrycanceledHeadersInner object itself. + */ + public LROsPostAsyncRetrycanceledHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPostAsyncRetrycanceledHeadersInner object itself. + */ + public LROsPostAsyncRetrycanceledHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPostAsyncRetrycanceledHeadersInner object itself. + */ + public LROsPostAsyncRetrycanceledHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java new file mode 100644 index 0000000000..1dcad08abd --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java @@ -0,0 +1,45 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncNoHeaderInRetry operation. + */ +public class LROsPutAsyncNoHeaderInRetryHeadersInner { + /** + * The azureAsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPutAsyncNoHeaderInRetryHeadersInner object itself. + */ + public LROsPutAsyncNoHeaderInRetryHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..9ab28819cc --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncNoRetrySucceeded operation. + */ +public class LROsPutAsyncNoRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/noretry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/noretry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPutAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsPutAsyncNoRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPutAsyncNoRetrySucceededHeadersInner object itself. + */ + public LROsPutAsyncNoRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java new file mode 100644 index 0000000000..572217c429 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java @@ -0,0 +1,73 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncNoRetrycanceled operation. + */ +public class LROsPutAsyncNoRetrycanceledHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/noretry/canceled/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/noretry/canceled/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPutAsyncNoRetrycanceledHeadersInner object itself. + */ + public LROsPutAsyncNoRetrycanceledHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPutAsyncNoRetrycanceledHeadersInner object itself. + */ + public LROsPutAsyncNoRetrycanceledHeadersInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java new file mode 100644 index 0000000000..e3e0cc052f --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRetryFailed operation. + */ +public class LROsPutAsyncRetryFailedHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/failed/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPutAsyncRetryFailedHeadersInner object itself. + */ + public LROsPutAsyncRetryFailedHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPutAsyncRetryFailedHeadersInner object itself. + */ + public LROsPutAsyncRetryFailedHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPutAsyncRetryFailedHeadersInner object itself. + */ + public LROsPutAsyncRetryFailedHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java new file mode 100644 index 0000000000..e6e83266f1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java @@ -0,0 +1,100 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for putAsyncRetrySucceeded operation. + */ +public class LROsPutAsyncRetrySucceededHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * Location to poll for result status: will be set to + * /lro/putasync/retry/succeeded/operationResults/200. + */ + @JsonProperty(value = "Location") + private String location; + + /** + * Number of milliseconds until the next poll should be sent, will be set + * to zero. + */ + @JsonProperty(value = "Retry-After") + private Integer retryAfter; + + /** + * Get the azureAsyncOperation value. + * + * @return the azureAsyncOperation value + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation value. + * + * @param azureAsyncOperation the azureAsyncOperation value to set + * @return the LROsPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPutAsyncRetrySucceededHeadersInner setAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPutAsyncRetrySucceededHeadersInner setLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the retryAfter value. + * + * @return the retryAfter value + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Set the retryAfter value. + * + * @param retryAfter the retryAfter value to set + * @return the LROsPutAsyncRetrySucceededHeadersInner object itself. + */ + public LROsPutAsyncRetrySucceededHeadersInner setRetryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java new file mode 100644 index 0000000000..64c823ec94 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java @@ -0,0 +1,44 @@ +/** + * 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.lro.implementation.api; + + +/** + * Defines headers for putNoHeaderInRetry operation. + */ +public class LROsPutNoHeaderInRetryHeadersInner { + /** + * Location to poll for result status: will be set to + * /lro/putasync/noheader/202/200/operationResults. + */ + private String location; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the LROsPutNoHeaderInRetryHeadersInner object itself. + */ + public LROsPutNoHeaderInRetryHeadersInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResult.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResult.java new file mode 100644 index 0000000000..22a691556e --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResult.java @@ -0,0 +1,70 @@ +/** + * 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.lro.implementation.api; + + +/** + * The OperationResult model. + */ +public class OperationResult { + /** + * The status of the request. Possible values include: 'Succeeded', + * 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', + * 'Updated', 'Deleting', 'Deleted', 'OK'. + */ + private String status; + + /** + * The error property. + */ + private OperationResultError error; + + /** + * Get the status value. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the OperationResult object itself. + */ + public OperationResult setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the error value. + * + * @return the error value + */ + public OperationResultError error() { + return this.error; + } + + /** + * Set the error value. + * + * @param error the error value to set + * @return the OperationResult object itself. + */ + public OperationResult setError(OperationResultError error) { + this.error = error; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResultError.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResultError.java new file mode 100644 index 0000000000..141166ffd4 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/OperationResultError.java @@ -0,0 +1,68 @@ +/** + * 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.lro.implementation.api; + + +/** + * The OperationResultError model. + */ +public class OperationResultError { + /** + * The error code for an operation failure. + */ + private Integer code; + + /** + * The detailed arror message. + */ + private String message; + + /** + * Get the code value. + * + * @return the code value + */ + public Integer code() { + return this.code; + } + + /** + * Set the code value. + * + * @param code the code value to set + * @return the OperationResultError object itself. + */ + public OperationResultError setCode(Integer code) { + this.code = code; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the OperationResultError object itself. + */ + public OperationResultError setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/ProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/ProductInner.java new file mode 100644 index 0000000000..e09b17d42d --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/ProductInner.java @@ -0,0 +1,65 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * The ProductInner model. + */ +@JsonFlatten +public class ProductInner extends Resource { + /** + * The provisioningState property. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Possible values include: 'Succeeded', 'Failed', 'canceled', 'Accepted', + * 'Creating', 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', + * 'OK'. + */ + @JsonProperty(value = "properties.provisioningStateValues", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningStateValues; + + /** + * Get the provisioningState value. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState value. + * + * @param provisioningState the provisioningState value to set + * @return the ProductInner object itself. + */ + public ProductInner setProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the provisioningStateValues value. + * + * @return the provisioningStateValues value + */ + public String provisioningStateValues() { + return this.provisioningStateValues; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SkuInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SkuInner.java new file mode 100644 index 0000000000..3fd0d1efe9 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SkuInner.java @@ -0,0 +1,68 @@ +/** + * 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.lro.implementation.api; + + +/** + * The SkuInner model. + */ +public class SkuInner { + /** + * The name property. + */ + private String name; + + /** + * The id property. + */ + private String id; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the SkuInner object itself. + */ + public SkuInner setName(String name) { + this.name = name; + return this; + } + + /** + * Get the id value. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the SkuInner object itself. + */ + public SkuInner setId(String id) { + this.id = id; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SubProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SubProductInner.java new file mode 100644 index 0000000000..b5bf4875ac --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/SubProductInner.java @@ -0,0 +1,65 @@ +/** + * 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.lro.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.SubResource; + +/** + * The SubProductInner model. + */ +@JsonFlatten +public class SubProductInner extends SubResource { + /** + * The provisioningState property. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + + /** + * Possible values include: 'Succeeded', 'Failed', 'canceled', 'Accepted', + * 'Creating', 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', + * 'OK'. + */ + @JsonProperty(value = "properties.provisioningStateValues", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningStateValues; + + /** + * Get the provisioningState value. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState value. + * + * @param provisioningState the provisioningState value to set + * @return the SubProductInner object itself. + */ + public SubProductInner setProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the provisioningStateValues value. + * + * @return the provisioningStateValues value + */ + public String provisioningStateValues() { + return this.provisioningStateValues; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/OperationResult.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/OperationResult.java new file mode 100644 index 0000000000..9cd7668b54 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/OperationResult.java @@ -0,0 +1,45 @@ +/** + * 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.paging.implementation.api; + + +/** + * The OperationResult model. + */ +public class OperationResult { + /** + * The status of the request. Possible values include: 'Succeeded', + * 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', + * 'Updated', 'Deleting', 'Deleted', 'OK'. + */ + private String status; + + /** + * Get the status value. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set the status value. + * + * @param status the status value to set + * @return the OperationResult object itself. + */ + public OperationResult setStatus(String status) { + this.status = status; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PageImpl.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PageImpl.java new file mode 100644 index 0000000000..f4d4c7808e --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PageImpl.java @@ -0,0 +1,77 @@ +/** + * 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.paging.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("values") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String getNextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List getItems() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesOptionsInner.java new file mode 100644 index 0000000000..cf2b521035 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesOptionsInner.java @@ -0,0 +1,72 @@ +/** + * 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.paging.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the getMultiplePages operation. + */ +public class PagingGetMultiplePagesOptionsInner { + /** + * Sets the maximum number of items to return in the response. + */ + @JsonProperty(value = "") + private Integer maxresults; + + /** + * Sets the maximum time that the server can spend processing the request, + * in seconds. The default is 30 seconds. + */ + @JsonProperty(value = "") + private Integer timeout; + + /** + * Get the maxresults value. + * + * @return the maxresults value + */ + public Integer maxresults() { + return this.maxresults; + } + + /** + * Set the maxresults value. + * + * @param maxresults the maxresults value to set + * @return the PagingGetMultiplePagesOptionsInner object itself. + */ + public PagingGetMultiplePagesOptionsInner setMaxresults(Integer maxresults) { + this.maxresults = maxresults; + return this; + } + + /** + * Get the timeout value. + * + * @return the timeout value + */ + public Integer timeout() { + return this.timeout; + } + + /** + * Set the timeout value. + * + * @param timeout the timeout value to set + * @return the PagingGetMultiplePagesOptionsInner object itself. + */ + public PagingGetMultiplePagesOptionsInner setTimeout(Integer timeout) { + this.timeout = timeout; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java new file mode 100644 index 0000000000..5e43a8190a --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java @@ -0,0 +1,72 @@ +/** + * 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.paging.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the getMultiplePagesWithOffsetNext operation. + */ +public class PagingGetMultiplePagesWithOffsetNextOptionsInner { + /** + * Sets the maximum number of items to return in the response. + */ + @JsonProperty(value = "") + private Integer maxresults; + + /** + * Sets the maximum time that the server can spend processing the request, + * in seconds. The default is 30 seconds. + */ + @JsonProperty(value = "") + private Integer timeout; + + /** + * Get the maxresults value. + * + * @return the maxresults value + */ + public Integer maxresults() { + return this.maxresults; + } + + /** + * Set the maxresults value. + * + * @param maxresults the maxresults value to set + * @return the PagingGetMultiplePagesWithOffsetNextOptionsInner object itself. + */ + public PagingGetMultiplePagesWithOffsetNextOptionsInner setMaxresults(Integer maxresults) { + this.maxresults = maxresults; + return this; + } + + /** + * Get the timeout value. + * + * @return the timeout value + */ + public Integer timeout() { + return this.timeout; + } + + /** + * Set the timeout value. + * + * @param timeout the timeout value to set + * @return the PagingGetMultiplePagesWithOffsetNextOptionsInner object itself. + */ + public PagingGetMultiplePagesWithOffsetNextOptionsInner setTimeout(Integer timeout) { + this.timeout = timeout; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java new file mode 100644 index 0000000000..c46619e6eb --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java @@ -0,0 +1,98 @@ +/** + * 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.paging.implementation.api; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for the getMultiplePagesWithOffset operation. + */ +public class PagingGetMultiplePagesWithOffsetOptionsInner { + /** + * Sets the maximum number of items to return in the response. + */ + @JsonProperty(value = "") + private Integer maxresults; + + /** + * Offset of return value. + */ + @JsonProperty(value = "", required = true) + private int offset; + + /** + * Sets the maximum time that the server can spend processing the request, + * in seconds. The default is 30 seconds. + */ + @JsonProperty(value = "") + private Integer timeout; + + /** + * Get the maxresults value. + * + * @return the maxresults value + */ + public Integer maxresults() { + return this.maxresults; + } + + /** + * Set the maxresults value. + * + * @param maxresults the maxresults value to set + * @return the PagingGetMultiplePagesWithOffsetOptionsInner object itself. + */ + public PagingGetMultiplePagesWithOffsetOptionsInner setMaxresults(Integer maxresults) { + this.maxresults = maxresults; + return this; + } + + /** + * Get the offset value. + * + * @return the offset value + */ + public int offset() { + return this.offset; + } + + /** + * Set the offset value. + * + * @param offset the offset value to set + * @return the PagingGetMultiplePagesWithOffsetOptionsInner object itself. + */ + public PagingGetMultiplePagesWithOffsetOptionsInner setOffset(int offset) { + this.offset = offset; + return this; + } + + /** + * Get the timeout value. + * + * @return the timeout value + */ + public Integer timeout() { + return this.timeout; + } + + /** + * Set the timeout value. + * + * @param timeout the timeout value to set + * @return the PagingGetMultiplePagesWithOffsetOptionsInner object itself. + */ + public PagingGetMultiplePagesWithOffsetOptionsInner setTimeout(Integer timeout) { + this.timeout = timeout; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductInner.java new file mode 100644 index 0000000000..6dd58d7cdd --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductInner.java @@ -0,0 +1,43 @@ +/** + * 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.paging.implementation.api; + + +/** + * The ProductInner model. + */ +public class ProductInner { + /** + * The properties property. + */ + private ProductProperties properties; + + /** + * Get the properties value. + * + * @return the properties value + */ + public ProductProperties properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the ProductInner object itself. + */ + public ProductInner setProperties(ProductProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductProperties.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductProperties.java new file mode 100644 index 0000000000..10a3a634d1 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/ProductProperties.java @@ -0,0 +1,68 @@ +/** + * 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.paging.implementation.api; + + +/** + * The ProductProperties model. + */ +public class ProductProperties { + /** + * The id property. + */ + private Integer id; + + /** + * The name property. + */ + private String name; + + /** + * Get the id value. + * + * @return the id value + */ + public Integer id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the ProductProperties object itself. + */ + public ProductProperties setId(Integer id) { + this.id = id; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the ProductProperties object itself. + */ + public ProductProperties setName(String name) { + this.name = name; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/Error.java new file mode 100644 index 0000000000..b5b44c8263 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/Error.java @@ -0,0 +1,68 @@ +/** + * 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.subscriptionidapiversion.implementation.api; + + +/** + * The Error model. + */ +public class Error { + /** + * The code property. + */ + private Integer code; + + /** + * The message property. + */ + private String message; + + /** + * Get the code value. + * + * @return the code value + */ + public Integer code() { + return this.code; + } + + /** + * Set the code value. + * + * @param code the code value to set + * @return the Error object itself. + */ + public Error setCode(Integer code) { + this.code = code; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the Error object itself. + */ + public Error setMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/ErrorException.java new file mode 100644 index 0000000000..b7236446f2 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/ErrorException.java @@ -0,0 +1,89 @@ +/** + * 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.subscriptionidapiversion.implementation.api; + +import com.microsoft.rest.RestException; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Information about the associated HTTP response. + */ + private Response response; + /** + * The actual response body. + */ + private Error body; + /** + * Initializes a new instance of the ErrorException class. + */ + public ErrorException() { } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message The exception message. + */ + public ErrorException(final String message) { + super(message); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message + * @param cause exception that caused this exception to occur + */ + public ErrorException(final String message, final Throwable cause) { + super(message, cause); + } + /** + * Initializes a new instance of the ErrorException class. + * + * @param cause exception that caused this exception to occur + */ + public ErrorException(final Throwable cause) { + super(cause); + } + /** + * Gets information about the associated HTTP response. + * + * @return the HTTP response + */ + public Response getResponse() { + return response; + } + /** + * Gets the HTTP response body. + * + * @return the response body + */ + public Error getBody() { + return body; + } + /** + * Sets the HTTP response. + * + * @param response the HTTP response + */ + public void setResponse(Response response) { + this.response = response; + } + /** + * Sets the HTTP response body. + * + * @param body the response body + */ + public void setBody(Error body) { + this.body = body; + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/SampleResourceGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/SampleResourceGroupInner.java new file mode 100644 index 0000000000..7ebf765294 --- /dev/null +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/SampleResourceGroupInner.java @@ -0,0 +1,68 @@ +/** + * 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.subscriptionidapiversion.implementation.api; + + +/** + * The SampleResourceGroupInner model. + */ +public class SampleResourceGroupInner { + /** + * resource group name 'testgroup101'. + */ + private String name; + + /** + * resource group location 'West US'. + */ + private String location; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the SampleResourceGroupInner object itself. + */ + public SampleResourceGroupInner setName(String name) { + this.name = name; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the SampleResourceGroupInner object itself. + */ + public SampleResourceGroupInner setLocation(String location) { + this.location = location; + return this; + } + +} diff --git a/AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py b/AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py index 1e9140c3e5..6a61d697f4 100644 --- a/AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py +++ b/AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py @@ -33,9 +33,13 @@ def __init__( self, subscription_id, dns_suffix, filepath=None): if subscription_id is None: - raise ValueError('subscription_id must not be None.') + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") if dns_suffix is None: - raise ValueError('dns_suffix must not be None.') + raise ValueError("Parameter 'dns_suffix' must not be None.") + if not isinstance(dns_suffix, str): + raise TypeError("Parameter 'dns_suffix' must be str.") base_url = '{vault}{secret}{dnsSuffix}' super(AutoRestParameterizedCustomHostTestClientConfiguration, self).__init__(base_url, filepath)