From 0e823eb6c403edfbf3a798ad20ad480576196bfd Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 20 Apr 2016 11:41:27 -0700 Subject: [PATCH 1/2] Move models into same folders as operations in Azure.Java --- .../api/ParameterGroupingsInner.java | 5 - .../models/implementation/api/Error.java | 68 ---------- .../implementation/api/ErrorException.java | 89 ------------- .../api/FirstParameterGroupInner.java | 71 ---------- ...MultiParamGroupsSecondParamGroupInner.java | 71 ---------- ...erGroupingPostOptionalParametersInner.java | 71 ---------- ...erGroupingPostRequiredParametersInner.java | 123 ------------------ .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../models/package-info.java | 13 -- .../AutoRestReportServiceForAzureImpl.java | 1 - .../models/implementation/api/Error.java | 68 ---------- .../implementation/api/ErrorException.java | 89 ------------- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../azurereport/models/package-info.java | 13 -- ...RestResourceFlatteningTestServiceImpl.java | 4 - .../models/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/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../azureresource/models/package-info.java | 13 -- .../api/ApiVersionDefaultsInner.java | 1 - .../api/ApiVersionLocalsInner.java | 1 - .../implementation/api/HeadersInner.java | 2 - .../implementation/api/OdatasInner.java | 1 - .../api/SkipUrlEncodingsInner.java | 1 - .../api/SubscriptionInCredentialsInner.java | 1 - .../api/SubscriptionInMethodsInner.java | 1 - .../api/XMsClientRequestIdsInner.java | 1 - .../models/implementation/api/Error.java | 93 ------------- .../implementation/api/ErrorException.java | 89 ------------- ...eaderCustomNamedRequestIdHeadersInner.java | 45 ------- .../implementation/api/OdataFilter.java | 68 ---------- .../implementation/api/OdataFilterInner.java | 68 ---------- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../azurespecials/models/package-info.java | 13 -- .../implementation/api/PathsInner.java | 1 - .../models/implementation/api/Error.java | 68 ---------- .../implementation/api/ErrorException.java | 89 ------------- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../custombaseuri/models/package-info.java | 13 -- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../fixtures/head/models/package-info.java | 13 -- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../headexceptions/models/package-info.java | 13 -- .../implementation/api/LRORetrysInner.java | 7 - .../lro/implementation/api/LROSADsInner.java | 21 --- .../api/LROsCustomHeadersInner.java | 4 - .../lro/implementation/api/LROsInner.java | 26 ---- ...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 ---------- .../implementation/api/ProductInner.java | 65 --------- .../models/implementation/api/SkuInner.java | 68 ---------- .../implementation/api/SubProductInner.java | 65 --------- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../fixtures/lro/models/package-info.java | 13 -- .../implementation/api/PagingsInner.java | 5 - .../implementation/api/OperationResult.java | 45 ------- .../models/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/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../fixtures/paging/models/package-info.java | 13 -- .../implementation/api/GroupsInner.java | 2 - .../models/implementation/api/Error.java | 68 ---------- .../implementation/api/ErrorException.java | 89 ------------- .../api/SampleResourceGroupInner.java | 68 ---------- .../implementation/api/package-info.java | 13 -- .../models/implementation/package-info.java | 13 -- .../models/package-info.java | 13 -- .../ParameterGroupingTests.java | 8 +- .../azurespecials/HeaderOperationsTests.java | 2 +- .../java/fixtures/lro/LRORetrysTests.java | 2 +- .../test/java/fixtures/lro/LROSADsTests.java | 2 +- .../fixtures/lro/LROsCustomHeaderTests.java | 2 +- .../src/test/java/fixtures/lro/LROsTests.java | 6 +- .../java/fixtures/paging/PagingTests.java | 6 +- .../subscriptionidapiversion/GroupTests.java | 2 +- .../Java/Azure.Java/AzureJavaCodeGenerator.cs | 20 +-- .../TemplateModels/AzureEnumTemplateModel.cs | 2 +- .../AzureMethodGroupTemplateModel.cs | 6 +- .../TemplateModels/AzureModelTemplateModel.cs | 2 +- .../AzureServiceClientTemplateModel.cs | 6 +- .../Azure.Java/Templates/PageTemplate.cshtml | 2 +- .../custombaseurimoreoptions/Paths.java | 16 +-- ...ParameterizedCustomHostTestClientImpl.java | 4 +- .../implementation/PathsImpl.java | 72 +++++----- 152 files changed, 70 insertions(+), 7672 deletions(-) delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/FirstParameterGroupInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostOptionalParametersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostRequiredParametersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/FlattenedProductInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceCollectionInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilter.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilterInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDelete202Retry200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPost202Retry200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NoLocationHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NonRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostNonRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202NoRetry204HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202Retry200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202NoRetry204HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202Retry200HeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResult.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResultError.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/ProductInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SkuInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SubProductInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/OperationResult.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PageImpl.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesOptionsInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductProperties.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/Error.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/ErrorException.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/SampleResourceGroupInner.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/package-info.java delete mode 100644 AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/package-info.java diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingsInner.java index db1c35356a..eef531d96e 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/implementation/api/ParameterGroupingsInner.java @@ -17,11 +17,6 @@ import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.Validator; -import fixtures.azureparametergrouping.models.implementation.api.ErrorException; -import fixtures.azureparametergrouping.models.implementation.api.FirstParameterGroupInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostMultiParamGroupsSecondParamGroupInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostOptionalParametersInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostRequiredParametersInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/Error.java deleted file mode 100644 index 649f8b4a13..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/Error.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ErrorException.java deleted file mode 100644 index a4baef77ca..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/models/implementation/api/FirstParameterGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/FirstParameterGroupInner.java deleted file mode 100644 index fb1ced9666..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/FirstParameterGroupInner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java deleted file mode 100644 index 8a6b9a8341..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostMultiParamGroupsSecondParamGroupInner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ParameterGroupingPostOptionalParametersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostOptionalParametersInner.java deleted file mode 100644 index a1113a87b4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostOptionalParametersInner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ParameterGroupingPostRequiredParametersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostRequiredParametersInner.java deleted file mode 100644 index c6b6465553..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/ParameterGroupingPostRequiredParametersInner.java +++ /dev/null @@ -1,123 +0,0 @@ -/** - * 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.models.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/azureparametergrouping/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/package-info.java deleted file mode 100644 index ef96c332f6..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestParameterGroupingTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.azureparametergrouping.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/package-info.java deleted file mode 100644 index bc5f625fee..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestParameterGroupingTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.azureparametergrouping.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/package-info.java deleted file mode 100644 index e30bc323b3..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestParameterGroupingTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.azureparametergrouping.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/AutoRestReportServiceForAzureImpl.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/AutoRestReportServiceForAzureImpl.java index ca968c4050..4956932825 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/AutoRestReportServiceForAzureImpl.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/implementation/api/AutoRestReportServiceForAzureImpl.java @@ -21,7 +21,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurereport.models.implementation.api.ErrorException; import java.io.IOException; import java.util.Map; import java.util.UUID; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/Error.java deleted file mode 100644 index 8590d024eb..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/Error.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/ErrorException.java deleted file mode 100644 index 38b914363e..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/azurereport/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/package-info.java deleted file mode 100644 index 292587146e..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestReportServiceForAzure. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurereport.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/package-info.java deleted file mode 100644 index 3ec4bff849..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestReportServiceForAzure. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurereport.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/package-info.java deleted file mode 100644 index 10dd5da3f7..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurereport/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestReportServiceForAzure. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurereport.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/AutoRestResourceFlatteningTestServiceImpl.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/AutoRestResourceFlatteningTestServiceImpl.java index cf30682c9c..ec8909a9ba 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/AutoRestResourceFlatteningTestServiceImpl.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/implementation/api/AutoRestResourceFlatteningTestServiceImpl.java @@ -22,10 +22,6 @@ import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.Validator; -import fixtures.azureresource.models.implementation.api.ErrorException; -import fixtures.azureresource.models.implementation.api.FlattenedProductInner; -import fixtures.azureresource.models.implementation.api.ResourceCollectionInner; -import fixtures.azureresource.models.implementation.api.ResourceInner; import java.io.IOException; import java.util.List; import java.util.Map; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/Error.java deleted file mode 100644 index cc756cbc94..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/Error.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ErrorException.java deleted file mode 100644 index ee097e99dc..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/models/implementation/api/FlattenedProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/FlattenedProductInner.java deleted file mode 100644 index b183bf9914..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/FlattenedProductInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ResourceCollectionInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceCollectionInner.java deleted file mode 100644 index f28b73dcfd..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceCollectionInner.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ResourceInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceInner.java deleted file mode 100644 index 97585243ad..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/ResourceInner.java +++ /dev/null @@ -1,115 +0,0 @@ -/** - * 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.models.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/azureresource/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/package-info.java deleted file mode 100644 index 9347da19c9..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestResourceFlatteningTestService. - * Resource Flattening for AutoRest. - */ -package fixtures.azureresource.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/package-info.java deleted file mode 100644 index 6444f7ba18..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestResourceFlatteningTestService. - * Resource Flattening for AutoRest. - */ -package fixtures.azureresource.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/package-info.java deleted file mode 100644 index 2c484ffc3d..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureresource/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestResourceFlatteningTestService. - * Resource Flattening for AutoRest. - */ -package fixtures.azureresource.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionDefaultsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionDefaultsInner.java index cb3ba3c745..81f2fdce19 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionDefaultsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionDefaultsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionLocalsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionLocalsInner.java index 59d7a443de..99f7708d4a 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionLocalsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/ApiVersionLocalsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeadersInner.java index 146be8c22d..e6ed609a20 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeadersInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/HeadersInner.java @@ -16,8 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.ServiceResponseWithHeaders; -import fixtures.azurespecials.models.implementation.api.ErrorException; -import fixtures.azurespecials.models.implementation.api.HeaderCustomNamedRequestIdHeadersInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdatasInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdatasInner.java index 760c7d7946..8a401d0bda 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdatasInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/OdatasInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SkipUrlEncodingsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SkipUrlEncodingsInner.java index 3836cd85d6..0db5bc4a43 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SkipUrlEncodingsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SkipUrlEncodingsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInCredentialsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInCredentialsInner.java index dad092b3b7..11c2bec1fb 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInCredentialsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInCredentialsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInMethodsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInMethodsInner.java index 6396f64c8a..719f33c17c 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInMethodsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/SubscriptionInMethodsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/XMsClientRequestIdsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/XMsClientRequestIdsInner.java index f338a9146a..22dcdfc459 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/XMsClientRequestIdsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/implementation/api/XMsClientRequestIdsInner.java @@ -17,7 +17,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.azurespecials.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/Error.java deleted file mode 100644 index 032821ba8d..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/Error.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/ErrorException.java deleted file mode 100644 index 3cf9c8da7a..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/models/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java deleted file mode 100644 index 4d4e5a62f8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/HeaderCustomNamedRequestIdHeadersInner.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 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.models.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/models/implementation/api/OdataFilter.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilter.java deleted file mode 100644 index b536bcfc71..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilter.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/azurespecials/models/implementation/api/OdataFilterInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilterInner.java deleted file mode 100644 index bbb901daa1..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/OdataFilterInner.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.implementation.api; - - -/** - * The OdataFilterInner model. - */ -public class OdataFilterInner { - /** - * 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 OdataFilterInner object itself. - */ - public OdataFilterInner 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 OdataFilterInner object itself. - */ - public OdataFilterInner setName(String name) { - this.name = name; - return this; - } - -} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/package-info.java deleted file mode 100644 index 56896ed5f3..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestAzureSpecialParametersTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurespecials.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/package-info.java deleted file mode 100644 index de2de5c6f0..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestAzureSpecialParametersTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurespecials.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/package-info.java deleted file mode 100644 index 477570c1b5..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestAzureSpecialParametersTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.azurespecials.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/PathsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/PathsInner.java index 53db92bb2f..d3a91af3da 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/PathsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/implementation/api/PathsInner.java @@ -16,7 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.custombaseuri.models.implementation.api.ErrorException; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/Error.java deleted file mode 100644 index bdd4a154af..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/Error.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/ErrorException.java deleted file mode 100644 index dde909f921..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/custombaseuri/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/package-info.java deleted file mode 100644 index 11701d6c98..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestParameterizedHostTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.custombaseuri.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/package-info.java deleted file mode 100644 index 6ed5eb8263..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestParameterizedHostTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.custombaseuri.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/package-info.java deleted file mode 100644 index 22f43a6215..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/custombaseuri/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestParameterizedHostTestClient. - * Test Infrastructure for AutoRest. - */ -package fixtures.custombaseuri.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/api/package-info.java deleted file mode 100644 index 92f0112e6b..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestHeadTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.head.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/package-info.java deleted file mode 100644 index 4822ce5d6d..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestHeadTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.head.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/package-info.java deleted file mode 100644 index 5d7b910144..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/head/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestHeadTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.head.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/api/package-info.java deleted file mode 100644 index 289f94629b..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestHeadExceptionTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.headexceptions.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/package-info.java deleted file mode 100644 index 0a992c8202..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestHeadExceptionTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.headexceptions.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/package-info.java deleted file mode 100644 index 6524f78af9..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/headexceptions/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestHeadExceptionTestService. - * Test Infrastructure for AutoRest. - */ -package fixtures.headexceptions.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysInner.java index 4d9a7efdb4..f50d272a3f 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LRORetrysInner.java @@ -19,13 +19,6 @@ import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.ServiceResponseWithHeaders; import com.microsoft.rest.Validator; -import fixtures.lro.models.implementation.api.LRORetrysDelete202Retry200HeadersInner; -import fixtures.lro.models.implementation.api.LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner; -import fixtures.lro.models.implementation.api.LRORetrysPost202Retry200HeadersInner; -import fixtures.lro.models.implementation.api.LRORetrysPostAsyncRelativeRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LRORetrysPutAsyncRelativeRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.ProductInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsInner.java index f832e0c660..9bfbc26afc 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROSADsInner.java @@ -19,27 +19,6 @@ import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.ServiceResponseWithHeaders; import com.microsoft.rest.Validator; -import fixtures.lro.models.implementation.api.LROSADsDelete202NonRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDelete202RetryInvalidHeaderHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDeleteAsyncRelativeRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsDeleteNonRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPost202NoLocationHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPost202NonRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPost202RetryInvalidHeaderHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPostAsyncRelativeRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPostNonRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPutAsyncRelativeRetry400HeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPutAsyncRelativeRetryNoStatusHeadersInner; -import fixtures.lro.models.implementation.api.LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner; -import fixtures.lro.models.implementation.api.ProductInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeadersInner.java index 99b5df3e55..d5ad0d915d 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeadersInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsCustomHeadersInner.java @@ -19,10 +19,6 @@ import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.ServiceResponseWithHeaders; import com.microsoft.rest.Validator; -import fixtures.lro.models.implementation.api.LROsCustomHeaderPost202Retry200HeadersInner; -import fixtures.lro.models.implementation.api.LROsCustomHeaderPostAsyncRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsCustomHeaderPutAsyncRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.ProductInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsInner.java index 73e7ba7d82..1faab00482 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/implementation/api/LROsInner.java @@ -19,32 +19,6 @@ import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.ServiceResponseWithHeaders; import com.microsoft.rest.Validator; -import fixtures.lro.models.implementation.api.LROsDelete202NoRetry204HeadersInner; -import fixtures.lro.models.implementation.api.LROsDelete202Retry200HeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteAsyncNoHeaderInRetryHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteAsyncNoRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteAsyncRetrycanceledHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteAsyncRetryFailedHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteAsyncRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteNoHeaderInRetryHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteProvisioning202Accepted200SucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteProvisioning202Deletingcanceled200HeadersInner; -import fixtures.lro.models.implementation.api.LROsDeleteProvisioning202DeletingFailed200HeadersInner; -import fixtures.lro.models.implementation.api.LROsPost202NoRetry204HeadersInner; -import fixtures.lro.models.implementation.api.LROsPost202Retry200HeadersInner; -import fixtures.lro.models.implementation.api.LROsPostAsyncNoRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsPostAsyncRetrycanceledHeadersInner; -import fixtures.lro.models.implementation.api.LROsPostAsyncRetryFailedHeadersInner; -import fixtures.lro.models.implementation.api.LROsPostAsyncRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutAsyncNoHeaderInRetryHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutAsyncNoRetrycanceledHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutAsyncNoRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutAsyncRetryFailedHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutAsyncRetrySucceededHeadersInner; -import fixtures.lro.models.implementation.api.LROsPutNoHeaderInRetryHeadersInner; -import fixtures.lro.models.implementation.api.ProductInner; -import fixtures.lro.models.implementation.api.SkuInner; -import fixtures.lro.models.implementation.api.SubProductInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDelete202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDelete202Retry200HeadersInner.java deleted file mode 100644 index 2ae6f61e69..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDelete202Retry200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java deleted file mode 100644 index 275e78ad73..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteAsyncRelativeRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java deleted file mode 100644 index bef1d73b46..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysDeleteProvisioning202Accepted200SucceededHeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LRORetrysPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPost202Retry200HeadersInner.java deleted file mode 100644 index 364385aac7..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPost202Retry200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java deleted file mode 100644 index 208f7b988f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPostAsyncRelativeRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java deleted file mode 100644 index fdb720e0d9..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LRORetrysPutAsyncRelativeRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java deleted file mode 100644 index 41fd465804..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202NonRetry400HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java deleted file mode 100644 index 9b466d5af5..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDelete202RetryInvalidHeaderHeadersInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java deleted file mode 100644 index db823b54a8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetry400HeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java deleted file mode 100644 index bcdbcc222f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeadersInner.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java deleted file mode 100644 index da3e6ddcb0..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java deleted file mode 100644 index 0b6fbca4f4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteAsyncRelativeRetryNoStatusHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java deleted file mode 100644 index 7a4f4b957f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsDeleteNonRetry400HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPost202NoLocationHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NoLocationHeadersInner.java deleted file mode 100644 index c5a0511db4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NoLocationHeadersInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPost202NonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NonRetry400HeadersInner.java deleted file mode 100644 index 60b62b6ba8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202NonRetry400HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java deleted file mode 100644 index aac4bd2cb0..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPost202RetryInvalidHeaderHeadersInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java deleted file mode 100644 index 10958adb15..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetry400HeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java deleted file mode 100644 index f7e4ae3dfc..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidHeaderHeadersInner.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java deleted file mode 100644 index 118c22f504..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java deleted file mode 100644 index 8f7c7735ed..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostAsyncRelativeRetryNoPayloadHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPostNonRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostNonRetry400HeadersInner.java deleted file mode 100644 index fb3f4e2253..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPostNonRetry400HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java deleted file mode 100644 index 58a8128886..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetry400HeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java deleted file mode 100644 index bc541f8cc8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidHeaderHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java deleted file mode 100644 index 75d321f569..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java deleted file mode 100644 index 898e4e5aaa..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java deleted file mode 100644 index 0ad1bc92eb..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java deleted file mode 100644 index 85d069d073..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPost202Retry200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java deleted file mode 100644 index f8aad19230..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPostAsyncRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java deleted file mode 100644 index bc133507c4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsCustomHeaderPutAsyncRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDelete202NoRetry204HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202NoRetry204HeadersInner.java deleted file mode 100644 index 793d466887..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202NoRetry204HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDelete202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202Retry200HeadersInner.java deleted file mode 100644 index 95b56d54d4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDelete202Retry200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java deleted file mode 100644 index 2d8c4ef539..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoHeaderInRetryHeadersInner.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java deleted file mode 100644 index 9ec2062681..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncNoRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java deleted file mode 100644 index d9fceaac09..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetryFailedHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java deleted file mode 100644 index 787cb24bb7..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java deleted file mode 100644 index 9855bfd1ea..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteAsyncRetrycanceledHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java deleted file mode 100644 index 9f02699424..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteNoHeaderInRetryHeadersInner.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java deleted file mode 100644 index 367b8f1250..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Accepted200SucceededHeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java deleted file mode 100644 index 49645cd20b..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202DeletingFailed200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java deleted file mode 100644 index 08fb5215c8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsDeleteProvisioning202Deletingcanceled200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPost202NoRetry204HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202NoRetry204HeadersInner.java deleted file mode 100644 index d7d73a2974..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202NoRetry204HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPost202Retry200HeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202Retry200HeadersInner.java deleted file mode 100644 index ac36bd999a..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPost202Retry200HeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java deleted file mode 100644 index 0b325aed09..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncNoRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java deleted file mode 100644 index a880ae47ba..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetryFailedHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java deleted file mode 100644 index 36e8d19f76..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java deleted file mode 100644 index 2727b9e574..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPostAsyncRetrycanceledHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java deleted file mode 100644 index afd2eb2228..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoHeaderInRetryHeadersInner.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java deleted file mode 100644 index 4ecf8b6a5f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrySucceededHeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java deleted file mode 100644 index 6abc148944..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncNoRetrycanceledHeadersInner.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java deleted file mode 100644 index 0908956f3d..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetryFailedHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java deleted file mode 100644 index 293263e49a..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutAsyncRetrySucceededHeadersInner.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.models.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/models/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java deleted file mode 100644 index 38431bb248..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/LROsPutNoHeaderInRetryHeadersInner.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * 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.models.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/models/implementation/api/OperationResult.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResult.java deleted file mode 100644 index 7ed3f1dad4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResult.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * 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.models.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/models/implementation/api/OperationResultError.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResultError.java deleted file mode 100644 index cba28194bb..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/OperationResultError.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/ProductInner.java deleted file mode 100644 index 8192332d19..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/ProductInner.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * 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.models.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/models/implementation/api/SkuInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SkuInner.java deleted file mode 100644 index 72d3e007e8..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SkuInner.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/SubProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SubProductInner.java deleted file mode 100644 index efcf72c7d4..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/SubProductInner.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * 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.models.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/lro/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/package-info.java deleted file mode 100644 index dc4eae327e..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestLongRunningOperationTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.lro.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/package-info.java deleted file mode 100644 index 8763bf585e..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestLongRunningOperationTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.lro.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/package-info.java deleted file mode 100644 index 9ae664df14..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/lro/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestLongRunningOperationTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.lro.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingsInner.java index 7bff162397..204fe872fe 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/implementation/api/PagingsInner.java @@ -20,11 +20,6 @@ import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; import com.microsoft.rest.Validator; -import fixtures.paging.models.implementation.api.PageImpl; -import fixtures.paging.models.implementation.api.PagingGetMultiplePagesOptionsInner; -import fixtures.paging.models.implementation.api.PagingGetMultiplePagesWithOffsetNextOptionsInner; -import fixtures.paging.models.implementation.api.PagingGetMultiplePagesWithOffsetOptionsInner; -import fixtures.paging.models.implementation.api.ProductInner; import java.io.IOException; import java.util.List; import okhttp3.ResponseBody; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/OperationResult.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/OperationResult.java deleted file mode 100644 index 862ed9f583..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/OperationResult.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 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.models.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/models/implementation/api/PageImpl.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PageImpl.java deleted file mode 100644 index 9e679b108f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PageImpl.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * 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.models.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/models/implementation/api/PagingGetMultiplePagesOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesOptionsInner.java deleted file mode 100644 index d7bb46b061..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesOptionsInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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.models.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/models/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java deleted file mode 100644 index b9cad0deb9..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetNextOptionsInner.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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.models.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/models/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java deleted file mode 100644 index e524dcae74..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/PagingGetMultiplePagesWithOffsetOptionsInner.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ProductInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductInner.java deleted file mode 100644 index 120f76355c..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductInner.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ProductProperties.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductProperties.java deleted file mode 100644 index 32fa02b4f7..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/ProductProperties.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/paging/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/package-info.java deleted file mode 100644 index 9ac5d25de6..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for AutoRestPagingTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.paging.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/package-info.java deleted file mode 100644 index 2b970ddeef..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for AutoRestPagingTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.paging.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/package-info.java deleted file mode 100644 index 1ce439d618..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for AutoRestPagingTestService. - * Long-running Operation for AutoRest. - */ -package fixtures.paging.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/GroupsInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/GroupsInner.java index d46acf4907..db4e20736d 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/GroupsInner.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/implementation/api/GroupsInner.java @@ -16,8 +16,6 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.ServiceResponseCallback; -import fixtures.subscriptionidapiversion.models.implementation.api.ErrorException; -import fixtures.subscriptionidapiversion.models.implementation.api.SampleResourceGroupInner; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Call; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/Error.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/Error.java deleted file mode 100644 index 5cf8eba5b5..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/Error.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/models/implementation/api/ErrorException.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/ErrorException.java deleted file mode 100644 index 76e51bb5a1..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/ErrorException.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * 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.models.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/models/implementation/api/SampleResourceGroupInner.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/SampleResourceGroupInner.java deleted file mode 100644 index 2f779ec8f0..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/SampleResourceGroupInner.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.models.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/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/package-info.java deleted file mode 100644 index 8cfbd561e0..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/api/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation.api classes for MicrosoftAzureTestUrl. - * Some cool documentation. - */ -package fixtures.subscriptionidapiversion.models.implementation.api; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/package-info.java deleted file mode 100644 index 52ab2c983f..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/implementation/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models.implementation classes for MicrosoftAzureTestUrl. - * Some cool documentation. - */ -package fixtures.subscriptionidapiversion.models.implementation; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/package-info.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/package-info.java deleted file mode 100644 index bf0d22d96e..0000000000 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/subscriptionidapiversion/models/package-info.java +++ /dev/null @@ -1,13 +0,0 @@ -// 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. - -/** - * This package contains the models classes for MicrosoftAzureTestUrl. - * Some cool documentation. - */ -package fixtures.subscriptionidapiversion.models; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azureparametergrouping/ParameterGroupingTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azureparametergrouping/ParameterGroupingTests.java index dff6e94c53..6fa0da5f8c 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azureparametergrouping/ParameterGroupingTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azureparametergrouping/ParameterGroupingTests.java @@ -6,10 +6,10 @@ import org.junit.Test; import fixtures.azureparametergrouping.implementation.api.AutoRestParameterGroupingTestServiceImpl; -import fixtures.azureparametergrouping.models.implementation.api.FirstParameterGroupInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostMultiParamGroupsSecondParamGroupInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostOptionalParametersInner; -import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostRequiredParametersInner; +import fixtures.azureparametergrouping.implementation.api.FirstParameterGroupInner; +import fixtures.azureparametergrouping.implementation.api.ParameterGroupingPostMultiParamGroupsSecondParamGroupInner; +import fixtures.azureparametergrouping.implementation.api.ParameterGroupingPostOptionalParametersInner; +import fixtures.azureparametergrouping.implementation.api.ParameterGroupingPostRequiredParametersInner; public class ParameterGroupingTests { diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurespecials/HeaderOperationsTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurespecials/HeaderOperationsTests.java index 4cd0a909f0..b7cff3dd0d 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurespecials/HeaderOperationsTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/azurespecials/HeaderOperationsTests.java @@ -7,7 +7,7 @@ import org.junit.Test; import fixtures.azurespecials.implementation.api.AutoRestAzureSpecialParametersTestClientImpl; -import fixtures.azurespecials.models.implementation.api.HeaderCustomNamedRequestIdHeadersInner; +import fixtures.azurespecials.implementation.api.HeaderCustomNamedRequestIdHeadersInner; public class HeaderOperationsTests { diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LRORetrysTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LRORetrysTests.java index fe6aa722e1..2194f08809 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LRORetrysTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LRORetrysTests.java @@ -7,7 +7,7 @@ import org.junit.Test; import fixtures.lro.implementation.api.AutoRestLongRunningOperationTestServiceImpl; -import fixtures.lro.models.implementation.api.ProductInner; +import fixtures.lro.implementation.api.ProductInner; public class LRORetrysTests { diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROSADsTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROSADsTests.java index 5f4fb87fbc..19dd132e5e 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROSADsTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROSADsTests.java @@ -11,7 +11,7 @@ import java.net.MalformedURLException; import fixtures.lro.implementation.api.AutoRestLongRunningOperationTestServiceImpl; -import fixtures.lro.models.implementation.api.ProductInner; +import fixtures.lro.implementation.api.ProductInner; import static org.junit.Assert.fail; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsCustomHeaderTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsCustomHeaderTests.java index 6251efe6ca..a69a83f25b 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsCustomHeaderTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsCustomHeaderTests.java @@ -12,7 +12,7 @@ import java.util.Map; import fixtures.lro.implementation.api.AutoRestLongRunningOperationTestServiceImpl; -import fixtures.lro.models.implementation.api.ProductInner; +import fixtures.lro.implementation.api.ProductInner; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; import retrofit2.Retrofit; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsTests.java index 47a9ca5263..17137b7e0b 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/lro/LROsTests.java @@ -13,9 +13,9 @@ import java.util.concurrent.TimeUnit; import fixtures.lro.implementation.api.AutoRestLongRunningOperationTestServiceImpl; -import fixtures.lro.models.implementation.api.ProductInner; -import fixtures.lro.models.implementation.api.SkuInner; -import fixtures.lro.models.implementation.api.SubProductInner; +import fixtures.lro.implementation.api.ProductInner; +import fixtures.lro.implementation.api.SkuInner; +import fixtures.lro.implementation.api.SubProductInner; import static org.junit.Assert.fail; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/paging/PagingTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/paging/PagingTests.java index c2708e3ec7..a81a7d69d0 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/paging/PagingTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/paging/PagingTests.java @@ -15,9 +15,9 @@ import javax.xml.ws.WebServiceException; import fixtures.paging.implementation.api.AutoRestPagingTestServiceImpl; -import fixtures.paging.models.implementation.api.PagingGetMultiplePagesWithOffsetOptionsInner; -import fixtures.paging.models.implementation.api.ProductInner; -import fixtures.paging.models.implementation.api.ProductProperties; +import fixtures.paging.implementation.api.PagingGetMultiplePagesWithOffsetOptionsInner; +import fixtures.paging.implementation.api.ProductInner; +import fixtures.paging.implementation.api.ProductProperties; import okhttp3.logging.HttpLoggingInterceptor; import static org.junit.Assert.fail; diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/subscriptionidapiversion/GroupTests.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/subscriptionidapiversion/GroupTests.java index 36f9d48004..6ed0932506 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/subscriptionidapiversion/GroupTests.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/test/java/fixtures/subscriptionidapiversion/GroupTests.java @@ -7,7 +7,7 @@ import java.util.UUID; import fixtures.subscriptionidapiversion.implementation.api.MicrosoftAzureTestUrlImpl; -import fixtures.subscriptionidapiversion.models.implementation.api.SampleResourceGroupInner; +import fixtures.subscriptionidapiversion.implementation.api.SampleResourceGroupInner; public class GroupTests { private static MicrosoftAzureTestUrlImpl client; diff --git a/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs b/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs index 94c1c84ec6..5d8ab44d38 100644 --- a/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs +++ b/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs @@ -113,7 +113,7 @@ public override async Task Generate(ServiceClient serviceClient) { Model = new AzureModelTemplateModel(modelType, serviceClient) }; - await Write(modelTemplate, Path.Combine("models", "implementation", "api", modelType.Name.ToPascalCase() + ".java")); + await Write(modelTemplate, Path.Combine("implementation", "api", modelType.Name.ToPascalCase() + ".java")); } //MethodGroups @@ -136,7 +136,7 @@ public override async Task Generate(ServiceClient serviceClient) { Model = new AzureEnumTemplateModel(enumType), }; - await Write(enumTemplate, Path.Combine("models", "implementation", "api", enumTemplate.Model.Name.ToPascalCase() + ".java")); + await Write(enumTemplate, Path.Combine("implementation", "api", enumTemplate.Model.Name.ToPascalCase() + ".java")); } // Page class @@ -146,7 +146,7 @@ public override async Task Generate(ServiceClient serviceClient) { Model = new PageTemplateModel(pageClass.Value, pageClass.Key.Key, pageClass.Key.Value), }; - await Write(pageTemplate, Path.Combine("models", "implementation", "api", pageTemplate.Model.TypeDefinitionName + ".java")); + await Write(pageTemplate, Path.Combine("implementation", "api", pageTemplate.Model.TypeDefinitionName + ".java")); } // Exceptions @@ -161,7 +161,7 @@ public override async Task Generate(ServiceClient serviceClient) { Model = new AzureModelTemplateModel(exceptionType, serviceClient), }; - await Write(exceptionTemplate, Path.Combine("models", "implementation", "api", exceptionTemplate.Model.ExceptionTypeDefinitionName + ".java")); + await Write(exceptionTemplate, Path.Combine("implementation", "api", exceptionTemplate.Model.ExceptionTypeDefinitionName + ".java")); } // package-info.java @@ -177,18 +177,6 @@ await Write(new PackageInfoTemplate { Model = new PackageInfoTemplateModel(serviceClient, serviceClient.Name, "implementation.api") }, Path.Combine("implementation", "api", _packageInfoFileName)); - await Write(new PackageInfoTemplate - { - Model = new PackageInfoTemplateModel(serviceClient, serviceClient.Name, "models") - }, Path.Combine("models", _packageInfoFileName)); - await Write(new PackageInfoTemplate - { - Model = new PackageInfoTemplateModel(serviceClient, serviceClient.Name, "models.implementation") - }, Path.Combine("models", "implementation", _packageInfoFileName)); - await Write(new PackageInfoTemplate - { - Model = new PackageInfoTemplateModel(serviceClient, serviceClient.Name, "models.implementation.api") - }, Path.Combine("models", "implementation", "api", _packageInfoFileName)); } } } diff --git a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureEnumTemplateModel.cs b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureEnumTemplateModel.cs index cc7ee15e03..4b4acacd62 100644 --- a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureEnumTemplateModel.cs +++ b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureEnumTemplateModel.cs @@ -18,7 +18,7 @@ public override string ModelsPackage { get { - return "models.implementation.api"; + return "implementation.api"; } } } diff --git a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodGroupTemplateModel.cs b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodGroupTemplateModel.cs index bfbb6ed922..4b95ddf2d6 100644 --- a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodGroupTemplateModel.cs +++ b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureMethodGroupTemplateModel.cs @@ -34,11 +34,7 @@ public override IEnumerable ImplImports var ns = Namespace.ToLower(CultureInfo.InvariantCulture); foreach (var i in base.ImplImports.ToList()) { - if (i.StartsWith(ns + ".models", StringComparison.OrdinalIgnoreCase)) - { - imports.Add(i.Replace(ns + ".models", ns + ".models.implementation.api")); - } - else if (i.StartsWith(ns, StringComparison.OrdinalIgnoreCase)) + if (i.StartsWith(ns, StringComparison.OrdinalIgnoreCase)) { // Same package, do nothing } diff --git a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureModelTemplateModel.cs b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureModelTemplateModel.cs index d648bf2cae..261279d0ac 100644 --- a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureModelTemplateModel.cs +++ b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureModelTemplateModel.cs @@ -68,7 +68,7 @@ public override string ModelsPackage { get { - return "models.implementation.api"; + return "implementation.api"; } } } diff --git a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureServiceClientTemplateModel.cs b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureServiceClientTemplateModel.cs index aa4e4622fc..591cd54fcd 100644 --- a/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureServiceClientTemplateModel.cs +++ b/AutoRest/Generators/Java/Azure.Java/TemplateModels/AzureServiceClientTemplateModel.cs @@ -60,11 +60,7 @@ public override IEnumerable ImplImports var ns = Namespace.ToLower(CultureInfo.InvariantCulture); foreach (var i in base.ImplImports.ToList()) { - if (i.StartsWith(ns + ".models", StringComparison.OrdinalIgnoreCase)) - { - imports.Add(i.Replace(ns + ".models", ns + ".models.implementation.api")); - } - else if (i.StartsWith(ns, StringComparison.OrdinalIgnoreCase)) + if (i.StartsWith(ns, StringComparison.OrdinalIgnoreCase)) { // same package, do nothing } diff --git a/AutoRest/Generators/Java/Azure.Java/Templates/PageTemplate.cshtml b/AutoRest/Generators/Java/Azure.Java/Templates/PageTemplate.cshtml index 3dae65703b..212e814b5b 100644 --- a/AutoRest/Generators/Java/Azure.Java/Templates/PageTemplate.cshtml +++ b/AutoRest/Generators/Java/Azure.Java/Templates/PageTemplate.cshtml @@ -8,7 +8,7 @@ */ @EmptyLine -package @(Settings.Namespace.ToLower()).models.implementation.api; +package @(Settings.Namespace.ToLower()).implementation.api; @EmptyLine @foreach (var importClass in Model.ImportList) { diff --git a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/Paths.java b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/Paths.java index 1b075b27b1..914e8cf635 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/Paths.java +++ b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/Paths.java @@ -24,52 +24,52 @@ public interface Paths { /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @return the {@link ServiceResponse} object if successful. */ - ServiceResponse getEmpty(String keyName, String vault, String secret) throws ErrorException, IOException, IllegalArgumentException; + ServiceResponse getEmpty(String vault, String secret, String keyName) throws ErrorException, IOException, IllegalArgumentException; /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - ServiceCall getEmptyAsync(String keyName, String vault, String secret, final ServiceCallback serviceCallback) throws IllegalArgumentException; + ServiceCall getEmptyAsync(String vault, String secret, String keyName, final ServiceCallback serviceCallback) throws IllegalArgumentException; /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param keyVersion The key version. Default value 'v1'. * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @return the {@link ServiceResponse} object if successful. */ - ServiceResponse getEmpty(String keyName, String vault, String secret, String keyVersion) throws ErrorException, IOException, IllegalArgumentException; + ServiceResponse getEmpty(String vault, String secret, String keyName, String keyVersion) throws ErrorException, IOException, IllegalArgumentException; /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param keyVersion The key version. Default value 'v1'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - ServiceCall getEmptyAsync(String keyName, String vault, String secret, String keyVersion, final ServiceCallback serviceCallback) throws IllegalArgumentException; + ServiceCall getEmptyAsync(String vault, String secret, String keyName, String keyVersion, final ServiceCallback serviceCallback) throws IllegalArgumentException; } diff --git a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/AutoRestParameterizedCustomHostTestClientImpl.java b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/AutoRestParameterizedCustomHostTestClientImpl.java index bffa226bba..86dc396dd5 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/AutoRestParameterizedCustomHostTestClientImpl.java +++ b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/AutoRestParameterizedCustomHostTestClientImpl.java @@ -89,7 +89,7 @@ public Paths paths() { * Initializes an instance of AutoRestParameterizedCustomHostTestClient client. */ public AutoRestParameterizedCustomHostTestClientImpl() { - this("http://{vault}{secret}{dnsSuffix}"); + this("{vault}{secret}{dnsSuffix}"); } /** @@ -111,7 +111,7 @@ private AutoRestParameterizedCustomHostTestClientImpl(String baseUrl) { */ public AutoRestParameterizedCustomHostTestClientImpl(OkHttpClient.Builder clientBuilder, Retrofit.Builder retrofitBuilder) { super(clientBuilder, retrofitBuilder); - this.baseUrl = new AutoRestBaseUrl("http://{vault}{secret}{dnsSuffix}"); + this.baseUrl = new AutoRestBaseUrl("{vault}{secret}{dnsSuffix}"); initialize(); } diff --git a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/PathsImpl.java b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/PathsImpl.java index c314b8b785..2488110002 100644 --- a/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/PathsImpl.java +++ b/AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/custombaseurimoreoptions/implementation/PathsImpl.java @@ -64,21 +64,15 @@ interface PathsService { /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @return the {@link ServiceResponse} object if successful. */ - public ServiceResponse getEmpty(String keyName, String vault, String secret) throws ErrorException, IOException, IllegalArgumentException { - if (keyName == null) { - throw new IllegalArgumentException("Parameter keyName is required and cannot be null."); - } - if (this.client.getSubscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."); - } + public ServiceResponse getEmpty(String vault, String secret, String keyName) throws ErrorException, IOException, IllegalArgumentException { if (vault == null) { throw new IllegalArgumentException("Parameter vault is required and cannot be null."); } @@ -88,6 +82,12 @@ public ServiceResponse getEmpty(String keyName, String vault, String secre if (this.client.getDnsSuffix() == null) { throw new IllegalArgumentException("Parameter this.client.getDnsSuffix() is required and cannot be null."); } + if (keyName == null) { + throw new IllegalArgumentException("Parameter keyName is required and cannot be null."); + } + if (this.client.getSubscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."); + } final String keyVersion = null; this.client.getBaseUrl().set("{vault}", vault); this.client.getBaseUrl().set("{secret}", secret); @@ -99,25 +99,17 @@ public ServiceResponse getEmpty(String keyName, String vault, String secre /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getEmptyAsync(String keyName, String vault, String secret, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getEmptyAsync(String vault, String secret, String keyName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } - if (keyName == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); - return null; - } - if (this.client.getSubscriptionId() == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); - return null; - } if (vault == null) { serviceCallback.failure(new IllegalArgumentException("Parameter vault is required and cannot be null.")); return null; @@ -130,6 +122,14 @@ public ServiceCall getEmptyAsync(String keyName, String vault, String secret, fi serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getDnsSuffix() is required and cannot be null.")); return null; } + if (keyName == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); + return null; + } + if (this.client.getSubscriptionId() == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return null; + } final String keyVersion = null; this.client.getBaseUrl().set("{vault}", vault); this.client.getBaseUrl().set("{secret}", secret); @@ -152,22 +152,16 @@ public void onResponse(Call call, Response response) /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param keyVersion The key version. Default value 'v1'. * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @return the {@link ServiceResponse} object if successful. */ - public ServiceResponse getEmpty(String keyName, String vault, String secret, String keyVersion) throws ErrorException, IOException, IllegalArgumentException { - if (keyName == null) { - throw new IllegalArgumentException("Parameter keyName is required and cannot be null."); - } - if (this.client.getSubscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."); - } + public ServiceResponse getEmpty(String vault, String secret, String keyName, String keyVersion) throws ErrorException, IOException, IllegalArgumentException { if (vault == null) { throw new IllegalArgumentException("Parameter vault is required and cannot be null."); } @@ -177,6 +171,12 @@ public ServiceResponse getEmpty(String keyName, String vault, String secre if (this.client.getDnsSuffix() == null) { throw new IllegalArgumentException("Parameter this.client.getDnsSuffix() is required and cannot be null."); } + if (keyName == null) { + throw new IllegalArgumentException("Parameter keyName is required and cannot be null."); + } + if (this.client.getSubscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."); + } this.client.getBaseUrl().set("{vault}", vault); this.client.getBaseUrl().set("{secret}", secret); this.client.getBaseUrl().set("{dnsSuffix}", this.client.getDnsSuffix()); @@ -187,26 +187,18 @@ public ServiceResponse getEmpty(String keyName, String vault, String secre /** * Get a 200 to test a valid base uri. * - * @param keyName The key name with value 'key1'. * @param vault The vault name, e.g. https://myvault * @param secret Secret value. + * @param keyName The key name with value 'key1'. * @param keyVersion The key version. Default value 'v1'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getEmptyAsync(String keyName, String vault, String secret, String keyVersion, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getEmptyAsync(String vault, String secret, String keyName, String keyVersion, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } - if (keyName == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); - return null; - } - if (this.client.getSubscriptionId() == null) { - serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); - return null; - } if (vault == null) { serviceCallback.failure(new IllegalArgumentException("Parameter vault is required and cannot be null.")); return null; @@ -219,6 +211,14 @@ public ServiceCall getEmptyAsync(String keyName, String vault, String secret, St serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getDnsSuffix() is required and cannot be null.")); return null; } + if (keyName == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter keyName is required and cannot be null.")); + return null; + } + if (this.client.getSubscriptionId() == null) { + serviceCallback.failure(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return null; + } this.client.getBaseUrl().set("{vault}", vault); this.client.getBaseUrl().set("{secret}", secret); this.client.getBaseUrl().set("{dnsSuffix}", this.client.getDnsSuffix()); From 2b0bceeed9fa3ea90629c10174bf1553e92142f2 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Wed, 20 Apr 2016 12:51:28 -0700 Subject: [PATCH 2/2] 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)