From 2ad0ce7b807a2b02b560f1a2bc22fa3f2aef1d19 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Mon, 1 Nov 2021 18:39:16 -0700 Subject: [PATCH] catch up to testserver (#1074) --- ChangeLog.md | 14 + autorest/codegen/templates/setup.py.jinja2 | 2 +- docs/client/initializing.md | 2 +- .../azure_key_credential/generated/setup.py | 2 +- .../specification/basic/generated/setup.py | 2 +- .../directives/generated/setup.py | 2 +- .../management/generated/setup.py | 2 +- eng/pipelines/ci.yml | 7 +- package.json | 4 +- tasks.py | 14 +- .../AzureBodyDuration/setup.py | 2 +- .../AzureParameterGrouping/setup.py | 2 +- .../AcceptanceTests/AzureReport/setup.py | 2 +- .../AcceptanceTests/AzureSpecials/setup.py | 2 +- .../AcceptanceTests/CustomBaseUri/setup.py | 2 +- .../CustomPollerPager/setup.py | 2 +- .../AcceptanceTests/CustomUrlPaging/setup.py | 2 +- .../Expected/AcceptanceTests/Head/setup.py | 2 +- .../AcceptanceTests/HeadExceptions/setup.py | 2 +- .../HeadWithAzureKeyCredentialPolicy/setup.py | 2 +- .../Expected/AcceptanceTests/Lro/setup.py | 2 +- .../LroWithParameterizedEndpoints/setup.py | 2 +- .../Expected/AcceptanceTests/Paging/setup.py | 2 +- .../StorageManagementClient/setup.py | 2 +- .../SubscriptionIdApiVersion/setup.py | 2 +- test/azure/legacy/requirements.txt | 2 +- .../AzureBodyDurationLowLevel/setup.py | 2 +- .../AzureParameterGroupingLowLevel/setup.py | 2 +- .../AzureReportLowLevel/setup.py | 2 +- .../AzureSpecialsLowLevel/setup.py | 2 +- .../CustomBaseUriLowLevel/setup.py | 2 +- .../CustomUrlPagingLowLevel/setup.py | 2 +- .../HeadExceptionsLowLevel/setup.py | 2 +- .../AcceptanceTests/HeadLowLevel/setup.py | 2 +- .../AcceptanceTests/LroLowLevel/setup.py | 2 +- .../setup.py | 2 +- .../AcceptanceTests/PagingLowLevel/setup.py | 2 +- .../StorageManagementClientLowLevel/setup.py | 2 +- .../SubscriptionIdApiVersionLowLevel/setup.py | 2 +- test/azure/low-level/requirements.txt | 2 +- .../AzureBodyDurationVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../AzureReportVersionTolerant/setup.py | 2 +- .../AzureSpecialsVersionTolerant/setup.py | 2 +- .../CustomBaseUriVersionTolerant/setup.py | 2 +- .../CustomPollerPagerVersionTolerant/setup.py | 2 +- .../CustomUrlPagingVersionTolerant/setup.py | 2 +- .../HeadExceptionsVersionTolerant/setup.py | 2 +- .../HeadVersionTolerant/setup.py | 2 +- .../LroVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../PagingVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../setup.py | 2 +- test/azure/version-tolerant/requirements.txt | 2 +- .../AcceptanceTests/asynctests/conftest.py | 67 ++++ .../asynctests/test_service_driven_async.py} | 43 ++- .../AcceptanceTests}/conftest.py | 8 + .../AcceptanceTests/test_service_driven.py} | 39 ++- .../rest/params/_request_builders.py | 66 ---- .../rest/params/_request_builders_py3.py | 48 --- .../__init__.py | 0 .../_configuration.py | 2 +- .../_llc_client.py | 8 +- .../_version.py | 0 .../aio/__init__.py | 0 .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 8 +- .../llcservicedriveninitiallowlevel}/py.typed | 0 .../rest/__init__.py | 0 .../rest/params/__init__.py | 3 + .../rest/params/_request_builders.py | 109 ++++++ .../rest/params/_request_builders_py3.py | 85 +++++ .../LLCServiceDrivenInitialLowLevel}/setup.py | 6 +- .../__init__.py | 0 .../_configuration.py | 2 +- .../_llc_client.py | 8 +- .../_version.py | 0 .../aio/__init__.py | 0 .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 8 +- .../py.typed | 0 .../rest/__init__.py | 0 .../rest/params/__init__.py | 9 + .../rest/params/_request_builders.py | 172 ++++++++++ .../rest/params/_request_builders_py3.py | 132 +++++++ .../setup.py | 6 +- .../rest/params/_request_builders.py | 67 ---- .../rest/params/_request_builders_py3.py | 51 --- ...tial_requirements.txt => requirements.txt} | 5 +- test/llc/low-level/tox.ini | 12 +- .../asynctests/test_service_driven_async.py} | 31 +- .../AcceptanceTests}/conftest.py | 0 .../AcceptanceTests/test_service_driven.py} | 29 +- .../aio/operations/_operations.py | 91 ----- .../operations/_operations.py | 134 -------- .../__init__.py | 0 .../_configuration.py | 2 +- .../_llc_client.py | 2 +- .../_version.py | 0 .../aio/__init__.py | 0 .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 2 +- .../aio/operations/__init__.py | 0 .../aio/operations/_operations.py | 73 +++- .../operations/__init__.py | 0 .../operations/_operations.py | 111 ++++-- .../py.typed | 0 .../setup.py | 6 +- .../__init__.py | 0 .../_configuration.py | 2 +- .../_llc_client.py | 2 +- .../_version.py | 0 .../aio/__init__.py | 0 .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 2 +- .../aio/operations/__init__.py | 0 .../aio/operations/_operations.py | 216 ++++++++++++ .../operations/__init__.py | 0 .../operations/_operations.py | 321 ++++++++++++++++++ .../py.typed | 0 .../setup.py | 6 +- .../version-tolerant/initial_requirements.txt | 9 - .../requirements.txt} | 5 +- test/llc/version-tolerant/tox.ini | 12 +- .../version-tolerant/update_requirements.txt | 9 - test/multiapi/requirements.txt | 2 +- .../AdditionalProperties/setup.py | 2 +- .../AcceptanceTests/Anything/setup.py | 2 +- .../AcceptanceTests/BodyArray/setup.py | 2 +- .../BodyArrayWithNamespaceFolders/setup.py | 2 +- .../setup.py | 2 +- .../AcceptanceTests/BodyBinary/setup.py | 2 +- .../AcceptanceTests/BodyBoolean/setup.py | 2 +- .../AcceptanceTests/BodyByte/setup.py | 2 +- .../BodyByteWithPackageName/setup.py | 2 +- .../AcceptanceTests/BodyComplex/setup.py | 2 +- .../BodyComplexPythonThreeOnly/setup.py | 2 +- .../AcceptanceTests/BodyDate/setup.py | 2 +- .../AcceptanceTests/BodyDateTime/setup.py | 2 +- .../BodyDateTimeRfc1123/setup.py | 2 +- .../AcceptanceTests/BodyDictionary/setup.py | 2 +- .../AcceptanceTests/BodyDuration/setup.py | 2 +- .../AcceptanceTests/BodyFile/setup.py | 2 +- .../AcceptanceTests/BodyFormData/setup.py | 2 +- .../BodyFormUrlEncodedData/setup.py | 2 +- .../AcceptanceTests/BodyInteger/setup.py | 2 +- .../AcceptanceTests/BodyNumber/setup.py | 2 +- .../AcceptanceTests/BodyString/setup.py | 2 +- .../AcceptanceTests/BodyTime/setup.py | 2 +- .../AcceptanceTests/Constants/setup.py | 2 +- .../AcceptanceTests/CustomBaseUri/setup.py | 2 +- .../CustomBaseUriMoreOptions/setup.py | 2 +- .../AcceptanceTests/ExtensibleEnums/setup.py | 2 +- .../Expected/AcceptanceTests/Header/setup.py | 2 +- .../Expected/AcceptanceTests/Http/setup.py | 2 +- .../IncorrectErrorResponse/setup.py | 2 +- .../AcceptanceTests/MediaTypes/setup.py | 2 +- .../AcceptanceTests/ModelFlattening/setup.py | 2 +- .../MultipleInheritance/setup.py | 2 +- .../AcceptanceTests/NoOperations/setup.py | 2 +- .../AcceptanceTests/NonStringEnums/setup.py | 2 +- .../AcceptanceTests/ObjectType/setup.py | 2 +- .../ParameterFlattening/setup.py | 2 +- .../ParameterizedEndpoint/setup.py | 2 +- .../Expected/AcceptanceTests/Report/setup.py | 2 +- .../AcceptanceTests/RequiredOptional/setup.py | 2 +- .../AcceptanceTests/ReservedWords/setup.py | 2 +- .../Expected/AcceptanceTests/Url/setup.py | 2 +- .../UrlMultiCollectionFormat/setup.py | 2 +- .../AcceptanceTests/Validation/setup.py | 2 +- .../Expected/AcceptanceTests/Xml/setup.py | 2 +- .../AcceptanceTests/XmsErrorResponse/setup.py | 2 +- .../_xms_error_response_extensions.py | 4 +- .../aio/_xms_error_response_extensions.py | 4 +- test/vanilla/legacy/requirements.txt | 2 +- .../AdditionalPropertiesLowLevel/setup.py | 2 +- .../AcceptanceTests/AnythingLowLevel/setup.py | 2 +- .../BodyArrayLowLevel/setup.py | 2 +- .../BodyBinaryLowLevel/setup.py | 2 +- .../BodyBooleanLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyByteLowLevel/setup.py | 2 +- .../BodyComplexLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyDateLowLevel/setup.py | 2 +- .../BodyDateTimeLowLevel/setup.py | 2 +- .../BodyDateTimeRfc1123LowLevel/setup.py | 2 +- .../BodyDictionaryLowLevel/setup.py | 2 +- .../BodyDurationLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyFileLowLevel/setup.py | 2 +- .../BodyFormDataLowLevel/setup.py | 2 +- .../BodyFormUrlEncodedDataLowLevel/setup.py | 2 +- .../BodyIntegerLowLevel/setup.py | 2 +- .../BodyNumberLowLevel/setup.py | 2 +- .../BodyStringLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyTimeLowLevel/setup.py | 2 +- .../ConstantsLowLevel/setup.py | 2 +- .../CustomBaseUriLowLevel/setup.py | 2 +- .../CustomBaseUriMoreOptionsLowLevel/setup.py | 2 +- .../ExtensibleEnumsLowLevel/setup.py | 2 +- .../AcceptanceTests/HeaderLowLevel/setup.py | 2 +- .../AcceptanceTests/HttpLowLevel/setup.py | 2 +- .../IncorrectErrorResponseLowLevel/setup.py | 2 +- .../MediaTypesLowLevel/setup.py | 2 +- .../ModelFlatteningLowLevel/setup.py | 2 +- .../MultipleInheritanceLowLevel/setup.py | 2 +- .../NoOperationsLowLevel/setup.py | 2 +- .../NonStringEnumsLowLevel/setup.py | 2 +- .../ObjectTypeLowLevel/setup.py | 2 +- .../ParameterFlatteningLowLevel/setup.py | 2 +- .../ParameterizedEndpointLowLevel/setup.py | 2 +- .../AcceptanceTests/ReportLowLevel/setup.py | 2 +- .../RequiredOptionalLowLevel/setup.py | 2 +- .../ReservedWordsLowLevel/setup.py | 2 +- .../AcceptanceTests/UrlLowLevel/setup.py | 2 +- .../UrlMultiCollectionFormatLowLevel/setup.py | 2 +- .../ValidationLowLevel/setup.py | 2 +- .../AcceptanceTests/XmlLowLevel/setup.py | 2 +- .../XmsErrorResponseLowLevel/setup.py | 2 +- .../_xms_error_response_extensions.py | 4 +- .../aio/_xms_error_response_extensions.py | 4 +- test/vanilla/low-level/requirements.txt | 2 +- .../setup.py | 2 +- .../AnythingVersionTolerant/setup.py | 2 +- .../BodyArrayVersionTolerant/setup.py | 2 +- .../BodyBinaryVersionTolerant/setup.py | 2 +- .../BodyBooleanVersionTolerant/setup.py | 2 +- .../BodyByteVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../BodyComplexVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../BodyDateTimeVersionTolerant/setup.py | 2 +- .../BodyDateVersionTolerant/setup.py | 2 +- .../BodyDictionaryVersionTolerant/setup.py | 2 +- .../BodyDurationVersionTolerant/setup.py | 2 +- .../BodyFileVersionTolerant/setup.py | 2 +- .../BodyFormDataVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../BodyIntegerVersionTolerant/setup.py | 2 +- .../BodyNumberVersionTolerant/setup.py | 2 +- .../BodyStringVersionTolerant/setup.py | 2 +- .../BodyTimeVersionTolerant/setup.py | 2 +- .../ConstantsVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../CustomBaseUriVersionTolerant/setup.py | 2 +- .../ExtensibleEnumsVersionTolerant/setup.py | 2 +- .../HeaderVersionTolerant/setup.py | 2 +- .../HttpVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../MediaTypesVersionTolerant/setup.py | 2 +- .../ModelFlatteningVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../NoOperationsVersionTolerant/setup.py | 2 +- .../NonStringEnumsVersionTolerant/setup.py | 2 +- .../ObjectTypeVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../setup.py | 2 +- .../ReportVersionTolerant/setup.py | 2 +- .../RequiredOptionalVersionTolerant/setup.py | 2 +- .../ReservedWordsVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../UrlVersionTolerant/setup.py | 2 +- .../ValidationVersionTolerant/setup.py | 2 +- .../XmlVersionTolerant/setup.py | 2 +- .../XmsErrorResponseVersionTolerant/setup.py | 2 +- .../_xms_error_response_extensions.py | 4 +- .../aio/_xms_error_response_extensions.py | 4 +- .../vanilla/version-tolerant/requirements.txt | 2 +- 267 files changed, 1642 insertions(+), 830 deletions(-) create mode 100644 test/llc/low-level/AcceptanceTests/asynctests/conftest.py rename test/llc/{version-tolerant/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py => low-level/AcceptanceTests/asynctests/test_service_driven_async.py} (51%) rename test/llc/{version-tolerant/UpdateAcceptanceTests => low-level/AcceptanceTests}/conftest.py (91%) rename test/llc/{version-tolerant/UpdateAcceptanceTests/test_required_to_optional.py => low-level/AcceptanceTests/test_service_driven.py} (53%) delete mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders.py delete mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/__init__.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/_configuration.py (95%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/_llc_client.py (93%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/_version.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/aio/__init__.py (100%) rename test/llc/{version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant => low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/aio/_configuration.py (95%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/aio/_llc_client.py (92%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/py.typed (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/rest/__init__.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel}/rest/params/__init__.py (78%) create mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py create mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py rename test/llc/{version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant => low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel}/setup.py (88%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/__init__.py (100%) rename test/llc/{version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant => low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/_configuration.py (95%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/_llc_client.py (92%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/_version.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/aio/__init__.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/aio/_configuration.py (95%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCInitialLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/aio/_llc_client.py (92%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/py.typed (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/rest/__init__.py (100%) rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel/llcpackagelowlevel => LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel}/rest/params/__init__.py (55%) create mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py create mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py rename test/llc/low-level/Expected/AcceptanceTests/{LLCUpdateOneLowLevel => LLCServiceDrivenUpdateOneLowLevel}/setup.py (87%) delete mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders.py delete mode 100644 test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py rename test/llc/low-level/{initial_requirements.txt => requirements.txt} (55%) rename test/llc/{low-level/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py => version-tolerant/AcceptanceTests/asynctests/test_service_driven_async.py} (68%) rename test/llc/{low-level/UpdateAcceptanceTests => version-tolerant/AcceptanceTests}/conftest.py (100%) rename test/llc/{low-level/UpdateAcceptanceTests/test_required_to_optional.py => version-tolerant/AcceptanceTests/test_service_driven.py} (70%) delete mode 100644 test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py delete mode 100644 test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/__init__.py (100%) rename test/llc/{low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel => version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/_configuration.py (95%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/_llc_client.py (97%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/_version.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/aio/__init__.py (100%) rename test/llc/{low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel => version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/aio/_configuration.py (95%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/aio/_llc_client.py (97%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/aio/operations/__init__.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/aio/operations/_operations.py (57%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/operations/__init__.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/operations/_operations.py (54%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant}/py.typed (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant => LLCServiceDrivenInitialVersionTolerant}/setup.py (88%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/__init__.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/_configuration.py (95%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/_llc_client.py (97%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/_version.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/aio/__init__.py (100%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/aio/_configuration.py (95%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCInitialVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/aio/_llc_client.py (96%) rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/aio/operations/__init__.py (100%) create mode 100644 test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/_operations.py rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/operations/__init__.py (100%) create mode 100644 test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py rename test/llc/version-tolerant/Expected/AcceptanceTests/{LLCUpdateOneVersionTolerant/llcpackageversiontolerant => LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant}/py.typed (100%) rename test/llc/{low-level/Expected/AcceptanceTests/LLCInitialLowLevel => version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant}/setup.py (87%) delete mode 100644 test/llc/version-tolerant/initial_requirements.txt rename test/llc/{low-level/update_requirements.txt => version-tolerant/requirements.txt} (53%) delete mode 100644 test/llc/version-tolerant/update_requirements.txt diff --git a/ChangeLog.md b/ChangeLog.md index e4a706a08b3..dccbc4ed77d 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,19 @@ # Change Log +### 2021-11-01 - 5.10.0 + +| Library | Min Version +| --------------- | ------- +|`@autorest/core` | `3.6.2` +|`@autorest/modelerfour` | `4.19.1` +|`azure-core` dep of generated code | `1.19.1` +|`msrest` dep of generated code | `0.6.21` +|`azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` + +**New Features** + +- Allow users to override constant swagger params with kwarg input #1060 + ### 2021-10-15 - 5.9.3 | Library | Min Version diff --git a/autorest/codegen/templates/setup.py.jinja2 b/autorest/codegen/templates/setup.py.jinja2 index 5b2a2cf2ca2..86b35362828 100644 --- a/autorest/codegen/templates/setup.py.jinja2 +++ b/autorest/codegen/templates/setup.py.jinja2 @@ -16,7 +16,7 @@ VERSION = "{{ code_model.options.get('package_version', '0.0.0') }}" # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"{{ azure_mgmt_core_import }}] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"{{ azure_mgmt_core_import }}] setup( name=NAME, diff --git a/docs/client/initializing.md b/docs/client/initializing.md index 80848de29e6..434d7378c49 100644 --- a/docs/client/initializing.md +++ b/docs/client/initializing.md @@ -22,7 +22,7 @@ The following are core libraries your generated code depend on, and the minimum | Library | Description | Min Version | | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | -| [`azure-core`][azure_core_library] | The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.19.0 | +| [`azure-core`][azure_core_library] | The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.19.1 | | [`msrest`][msrest_library] | Library mainly used for serializing and deserializing objects | 0.6.21 | | [`azure-mgmt-core`][azure_mgmt_core_library] | Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules. | 1.2.1 | diff --git a/docs/samples/specification/azure_key_credential/generated/setup.py b/docs/samples/specification/azure_key_credential/generated/setup.py index 1047b33fd54..ce6df5f71b2 100644 --- a/docs/samples/specification/azure_key_credential/generated/setup.py +++ b/docs/samples/specification/azure_key_credential/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/docs/samples/specification/basic/generated/setup.py b/docs/samples/specification/basic/generated/setup.py index 6b6ab2ed886..b4328aea384 100644 --- a/docs/samples/specification/basic/generated/setup.py +++ b/docs/samples/specification/basic/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/docs/samples/specification/directives/generated/setup.py b/docs/samples/specification/directives/generated/setup.py index e356d936f42..ebe0bb2c4e7 100644 --- a/docs/samples/specification/directives/generated/setup.py +++ b/docs/samples/specification/directives/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/docs/samples/specification/management/generated/setup.py b/docs/samples/specification/management/generated/setup.py index 59b86c38618..5f5c11be113 100644 --- a/docs/samples/specification/management/generated/setup.py +++ b/docs/samples/specification/management/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/eng/pipelines/ci.yml b/eng/pipelines/ci.yml index c07afa1bfc5..7fe8bb11544 100644 --- a/eng/pipelines/ci.yml +++ b/eng/pipelines/ci.yml @@ -73,6 +73,7 @@ jobs: git diff --staged -w displayName: 'Diff regeneration' + - task: UsePythonVersion@0 displayName: 'Use Python $(PythonVersion)' inputs: @@ -151,14 +152,12 @@ jobs: - script: | cd $(TestFolder)/llc/low-level - tox -e initial-ci - tox -e update-ci + tox -e ci displayName: 'Execute low level update "llc" Tests - Python $(PythonVersion)' - script: | cd $(TestFolder)/llc/version-tolerant - tox -e initial-ci - tox -e update-ci + tox -e ci displayName: 'Execute version-tolerant update "llc" Tests - Python $(PythonVersion)' - script: | diff --git a/package.json b/package.json index b34d9726eec..0103048815b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "5.9.3", + "version": "5.10.0", "description": "The Python extension for generators in AutoRest.", "scripts": { "prepare": "node run-python3.js prepare.py", @@ -27,7 +27,7 @@ "@azure-tools/extension": "~3.2.1" }, "devDependencies": { - "@microsoft.azure/autorest.testserver": "^3.0.41" + "@microsoft.azure/autorest.testserver": "^3.1.5" }, "files": [ "autorest/**/*.py", diff --git a/tasks.py b/tasks.py index 5110a905403..5d09454f0a9 100644 --- a/tasks.py +++ b/tasks.py @@ -78,8 +78,8 @@ class _SwaggerGroup(Enum): } _LLC_SWAGGER_MAPPINGS = { - 'LLCInitial': 'llc_initial.json', - 'LLCUpdateOne': 'llc_update1.json' + 'LLCServiceDrivenInitial': 'llc_initial.json', + 'LLCServiceDrivenUpdateOne': 'llc_update1.json' } _AZURE_SWAGGER_MAPPINGS = { @@ -117,8 +117,11 @@ class _SwaggerGroup(Enum): 'AzureSpecials': 'azurespecialproperties', 'StorageManagementClient': 'storage', 'CustomUrlPaging': 'custombaseurlpaging', - 'LLCInitial': 'llcpackage', - 'LLCUpdateOne': 'llcpackage' +} + +_OVERRIDE_PACKAGE_NAME = { + "LLCServiceDrivenInitial": "llcservicedriveninitial", + "LLCServiceDrivenUpdateOne": "llcservicedrivenupdateone", } _PACKAGES_WITH_CLIENT_SIDE_VALIDATION = [ @@ -198,6 +201,9 @@ def _build_command_line( override_flags: Optional[Dict[str, Any]] = None, **kwargs, ) -> str: + if _OVERRIDE_PACKAGE_NAME.get(package_name): + override_flags = override_flags or {} + override_flags.update({"package-name": _OVERRIDE_PACKAGE_NAME[package_name]}) flags = _build_flags(package_name, swagger_name, debug, swagger_group, override_flags, **kwargs) flag_strings = [ f"--{flag}={value}" for flag, value in flags.items() diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py index e49609d6959..622c81205fd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py index 9c52dcb8b28..13c446bd60b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py index 0b89b79f89b..675c4dc29e2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py index 83a2c4999e9..cf7b56baaac 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py index f577d506da0..31df6cb82a7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py index 8e456056dd7..afc168439c9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py index 6b0f8b1dac3..a99a2d0292d 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py index 8e456056dd7..afc168439c9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py index 94850b010c2..760883b4512 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py index 617f67fe305..32deaf46f72 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py index 954e9367d2e..608fc656ae7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py index 792614cf4e7..833e3e9b0ce 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py index 4d51a08c4f6..6bb4651a0e3 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/requirements.txt b/test/azure/legacy/requirements.txt index cae432178db..570e8f8aab6 100644 --- a/test/azure/legacy/requirements.txt +++ b/test/azure/legacy/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.19.0 +azure-core==1.19.1 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDuration diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py index e49609d6959..622c81205fd 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py index 9c52dcb8b28..13c446bd60b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py index 0b89b79f89b..675c4dc29e2 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py index f577d506da0..31df6cb82a7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py index 6b0f8b1dac3..a99a2d0292d 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py index 8e456056dd7..afc168439c9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py index 94850b010c2..760883b4512 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py index 617f67fe305..32deaf46f72 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py index 954e9367d2e..608fc656ae7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py index 792614cf4e7..833e3e9b0ce 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py index 4d51a08c4f6..6bb4651a0e3 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/requirements.txt b/test/azure/low-level/requirements.txt index cd0163fc47c..5c2f51f624a 100644 --- a/test/azure/low-level/requirements.txt +++ b/test/azure/low-level/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.19.0 +azure-core==1.19.1 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationLowLevel diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py index e49609d6959..622c81205fd 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py index 9c52dcb8b28..13c446bd60b 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py index 0b89b79f89b..675c4dc29e2 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py index a32340d6488..fdaea97eca7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py index f577d506da0..31df6cb82a7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py index 6b0f8b1dac3..a99a2d0292d 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py index 8e456056dd7..afc168439c9 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py index 94850b010c2..760883b4512 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py index 617f67fe305..32deaf46f72 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py index 954e9367d2e..608fc656ae7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py index 792614cf4e7..833e3e9b0ce 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py index 4d51a08c4f6..6bb4651a0e3 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/requirements.txt b/test/azure/version-tolerant/requirements.txt index 4ecacc0ba28..2668b58a49d 100644 --- a/test/azure/version-tolerant/requirements.txt +++ b/test/azure/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.19.0 +azure-core==1.19.1 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant diff --git a/test/llc/low-level/AcceptanceTests/asynctests/conftest.py b/test/llc/low-level/AcceptanceTests/asynctests/conftest.py new file mode 100644 index 00000000000..829fcdf90df --- /dev/null +++ b/test/llc/low-level/AcceptanceTests/asynctests/conftest.py @@ -0,0 +1,67 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +import sys +import subprocess +import os +import signal +from os.path import dirname, realpath +cwd = dirname(realpath(__file__)) + +#Ideally this would be in a common helper library shared between the tests +def start_server_process(): + cmd = "node {}/../../../../node_modules/@microsoft.azure/autorest.testserver".format(cwd) + if os.name == 'nt': #On windows, subprocess creation works without being in the shell + return subprocess.Popen(cmd) + + return subprocess.Popen(cmd, shell=True, preexec_fn=os.setsid) #On linux, have to set shell=True + +#Ideally this would be in a common helper library shared between the tests +def terminate_server_process(process): + if os.name == 'nt': + process.kill() + else: + os.killpg(os.getpgid(process.pid), signal.SIGTERM) # Send the signal to all the process groups + +@pytest.fixture(scope="session") +def testserver(): + """Start the Autorest testserver.""" + server = start_server_process() + yield + terminate_server_process(server) + +@pytest.fixture() +def base_send_request(): + async def send_request(client, request): + response = await client.send_request(request) + response.raise_for_status() + return response + return send_request + +# Ignore collection of async tests for Python 2 +collect_ignore = [] +if sys.version_info < (3,5): + collect_ignore.append("asynctests") diff --git a/test/llc/version-tolerant/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py b/test/llc/low-level/AcceptanceTests/asynctests/test_service_driven_async.py similarity index 51% rename from test/llc/version-tolerant/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py rename to test/llc/low-level/AcceptanceTests/asynctests/test_service_driven_async.py index 464cfb0fde6..46ce3acca1a 100644 --- a/test/llc/version-tolerant/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py +++ b/test/llc/low-level/AcceptanceTests/asynctests/test_service_driven_async.py @@ -24,22 +24,41 @@ # IN THE SOFTWARE. # # -------------------------------------------------------------------------- -from async_generator import yield_, async_generator import pytest +from llcservicedriveninitiallowlevel.aio import LLCClient as LLCClientInitial +from llcservicedrivenupdateonelowlevel.aio import LLCClient as LLCClientUpdateOne -from llcpackageversiontolerant.aio import LLCClient +from llcservicedriveninitiallowlevel.rest import params as params_initial +from llcservicedrivenupdateonelowlevel.rest import params as params_update_one + + +@pytest.fixture +async def initial_client(): + async with LLCClientInitial() as client: + yield client + +@pytest.fixture +async def update_one_client(): + async with LLCClientUpdateOne() as client: + yield client + +@pytest.fixture +def initial_send_request(initial_client, base_send_request): + async def _send_request(request): + return await base_send_request(initial_client, request) + return _send_request @pytest.fixture -@async_generator -async def client(): - async with LLCClient() as client: - await yield_(client) +def update_one_send_request(update_one_client, base_send_request): + async def _send_request(request): + return await base_send_request(update_one_client, request) + return _send_request @pytest.mark.asyncio -async def test_required_to_optional(client): - await client.params.get_required( - parameter1="foo", - parameter2="foo", - parameter3="foo", - ) +async def test_required_to_optional(initial_send_request, update_one_send_request): + request = params_initial.build_get_required_request(parameter="foo") + await initial_send_request(request) + + request = params_update_one.build_get_required_request(parameter="foo", new_parameter="bar") + await update_one_send_request(request) diff --git a/test/llc/version-tolerant/UpdateAcceptanceTests/conftest.py b/test/llc/low-level/AcceptanceTests/conftest.py similarity index 91% rename from test/llc/version-tolerant/UpdateAcceptanceTests/conftest.py rename to test/llc/low-level/AcceptanceTests/conftest.py index 8e287c175bb..e36a9a9c0c2 100644 --- a/test/llc/version-tolerant/UpdateAcceptanceTests/conftest.py +++ b/test/llc/low-level/AcceptanceTests/conftest.py @@ -53,6 +53,14 @@ def testserver(): yield terminate_server_process(server) +@pytest.fixture() +def base_send_request(): + def send_request(client, request): + response = client.send_request(request) + response.raise_for_status() + return response + return send_request + # Ignore collection of async tests for Python 2 collect_ignore = [] if sys.version_info < (3,5): diff --git a/test/llc/version-tolerant/UpdateAcceptanceTests/test_required_to_optional.py b/test/llc/low-level/AcceptanceTests/test_service_driven.py similarity index 53% rename from test/llc/version-tolerant/UpdateAcceptanceTests/test_required_to_optional.py rename to test/llc/low-level/AcceptanceTests/test_service_driven.py index c6ddc5e3478..08173ad8dc4 100644 --- a/test/llc/version-tolerant/UpdateAcceptanceTests/test_required_to_optional.py +++ b/test/llc/low-level/AcceptanceTests/test_service_driven.py @@ -26,18 +26,39 @@ # -------------------------------------------------------------------------- import pytest +from llcservicedriveninitiallowlevel import LLCClient as LLCClientInitial +from llcservicedrivenupdateonelowlevel import LLCClient as LLCClientUpdateOne + +from llcservicedriveninitiallowlevel.rest import params as params_initial +from llcservicedrivenupdateonelowlevel.rest import params as params_update_one -from llcpackageversiontolerant import LLCClient @pytest.fixture -def client(): - with LLCClient() as client: +def initial_client(): + with LLCClientInitial() as client: yield client +@pytest.fixture +def update_one_client(): + with LLCClientUpdateOne() as client: + yield client + +@pytest.fixture +def initial_send_request(initial_client, base_send_request): + def _send_request(request): + return base_send_request(initial_client, request) + return _send_request + +@pytest.fixture +def update_one_send_request(update_one_client, base_send_request): + def _send_request(request): + return base_send_request(update_one_client, request) + return _send_request + + +def test_required_to_optional(initial_send_request, update_one_send_request): + request = params_initial.build_get_required_request(parameter="foo") + initial_send_request(request) -def test_required_to_optional(client): - client.params.get_required( - parameter1="foo", - parameter2="foo", - parameter3="foo", - ) + request = params_update_one.build_get_required_request(parameter="foo", new_parameter="bar") + update_one_send_request(request) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders.py deleted file mode 100644 index b9b883dca4b..00000000000 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING - -from azure.core.rest import HttpRequest -from msrest import Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - -_SERIALIZER = Serializer() - -# fmt: off - -def build_get_required_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - """Get true Boolean value on path. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder - into your code flow. - - :keyword parameter1: I am a required parameter. - :paramtype parameter1: str - :keyword parameter2: I am a required parameter. - :paramtype parameter2: str - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's - `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to - incorporate this response into your code flow. - :rtype: ~azure.core.rest.HttpRequest - """ - - parameter1 = kwargs.pop('parameter1') # type: str - parameter2 = kwargs.pop('parameter2') # type: str - parameter3 = kwargs.pop('parameter3') # type: str - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/llc/parameters') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') - query_parameters['parameter2'] = _SERIALIZER.query("parameter2", parameter2, 'str') - query_parameters['parameter3'] = _SERIALIZER.query("parameter3", parameter3, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py deleted file mode 100644 index d961281dba4..00000000000 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any - -from azure.core.rest import HttpRequest -from msrest import Serializer - -_SERIALIZER = Serializer() - - -def build_get_required_request(*, parameter1: str, parameter2: str, parameter3: str, **kwargs: Any) -> HttpRequest: - """Get true Boolean value on path. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder - into your code flow. - - :keyword parameter1: I am a required parameter. - :paramtype parameter1: str - :keyword parameter2: I am a required parameter. - :paramtype parameter2: str - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's - `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to - incorporate this response into your code flow. - :rtype: ~azure.core.rest.HttpRequest - """ - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/llc/parameters") - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") - query_parameters["parameter2"] = _SERIALIZER.query("parameter2", parameter2, "str") - query_parameters["parameter3"] = _SERIALIZER.query("parameter3", parameter3, "str") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py similarity index 95% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_configuration.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py index 4d1b640f4d1..050d1aa3bd9 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py @@ -31,7 +31,7 @@ def __init__( # type: (...) -> None super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedriveninitial/{}".format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py similarity index 93% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_llc_client.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py index f9e1d1699dc..90178e7b71d 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py @@ -49,12 +49,12 @@ def send_request( # type: (...) -> HttpResponse """Runs the network request through the client's chained policies. - We have helper methods to create requests specific to this service in `llcpackagelowlevel.rest`. + We have helper methods to create requests specific to this service in `llcservicedriveninitiallowlevel.rest`. Use these helper methods to create the request you pass to this method. - >>> from llcpackagelowlevel.rest import params - >>> request = params.build_get_required_request(parameter3=parameter3, parameter1=parameter1, parameter2=parameter2, **kwargs) - + >>> from llcservicedriveninitiallowlevel.rest import params + >>> request = params.build_get_required_request(parameter=parameter, **kwargs) + >>> response = client.send_request(request) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_version.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_version.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_version.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_version.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py similarity index 95% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_configuration.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py index 92561d376b8..35bdf357a0c 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py @@ -24,7 +24,7 @@ class LLCClientConfiguration(Configuration): def __init__(self, **kwargs: Any) -> None: super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedriveninitial/{}".format(VERSION)) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py similarity index 92% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_llc_client.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py index 6df77a23fb5..aed1cc028fa 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py @@ -38,12 +38,12 @@ def __init__(self, *, endpoint: str = "http://localhost:3000", **kwargs: Any) -> def send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. - We have helper methods to create requests specific to this service in `llcpackagelowlevel.rest`. + We have helper methods to create requests specific to this service in `llcservicedriveninitiallowlevel.rest`. Use these helper methods to create the request you pass to this method. - >>> from llcpackagelowlevel.rest import params - >>> request = params.build_get_required_request(parameter3=parameter3, parameter1=parameter1, parameter2=parameter2, **kwargs) - + >>> from llcservicedriveninitiallowlevel.rest import params + >>> request = params.build_get_required_request(parameter=parameter, **kwargs) + >>> response = await client.send_request(request) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/py.typed b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/py.typed similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/py.typed rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/py.typed diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/__init__.py similarity index 78% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/__init__.py index f842c47d569..bff50b1230a 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/rest/params/__init__.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/__init__.py @@ -8,9 +8,12 @@ try: from ._request_builders_py3 import build_get_required_request + from ._request_builders_py3 import build_post_parameters_request except (SyntaxError, ImportError): from ._request_builders import build_get_required_request # type: ignore + from ._request_builders import build_post_parameters_request # type: ignore __all__ = [ "build_get_required_request", + "build_post_parameters_request", ] diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py new file mode 100644 index 00000000000..50a258b212c --- /dev/null +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py @@ -0,0 +1,109 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING + +from azure.core.rest import HttpRequest +from msrest import Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + +_SERIALIZER = Serializer() + +# fmt: off + +def build_get_required_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Get true Boolean value on path. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + parameter = kwargs.pop('parameter') # type: str + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_post_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """POST a JSON. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in + our example to find the input shape. I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :paramtype json: any + :keyword content: Pass in binary content you want in the body of the request (typically bytes, + a byte iterator, or stream input). I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :paramtype content: any + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + json = { + "url": "str" # Required. + } + """ + + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py new file mode 100644 index 00000000000..a3c928e7f69 --- /dev/null +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py @@ -0,0 +1,85 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Optional + +from azure.core.rest import HttpRequest +from msrest import Serializer + +_SERIALIZER = Serializer() + + +def build_get_required_request(*, parameter: str, **kwargs: Any) -> HttpRequest: + """Get true Boolean value on path. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/parameters") + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + + +def build_post_parameters_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: + """POST a JSON. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in + our example to find the input shape. I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :paramtype json: any + :keyword content: Pass in binary content you want in the body of the request (typically bytes, + a byte iterator, or stream input). I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :paramtype content: any + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + json = { + "url": "str" # Required. + } + """ + + content_type = kwargs.pop("content_type", None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/parameters") + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/setup.py similarity index 88% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/setup.py index 58997d7b93b..4bb230cddf0 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -NAME = "llcclient" +NAME = "llcservicedriveninitial" VERSION = "0.1.0" # To install the library, run the following @@ -19,12 +19,12 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, version=VERSION, - description="LLCClient", + description="llcservicedriveninitial", author_email="", url="", keywords=["Swagger", "LLCClient"], diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py similarity index 95% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_configuration.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py index 4d1b640f4d1..1de66af69a9 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py @@ -31,7 +31,7 @@ def __init__( # type: (...) -> None super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedrivenupdateone/{}".format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py similarity index 92% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_llc_client.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py index 52a5e042583..176f644372d 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py @@ -49,12 +49,12 @@ def send_request( # type: (...) -> HttpResponse """Runs the network request through the client's chained policies. - We have helper methods to create requests specific to this service in `llcpackagelowlevel.rest`. + We have helper methods to create requests specific to this service in `llcservicedrivenupdateonelowlevel.rest`. Use these helper methods to create the request you pass to this method. - >>> from llcpackagelowlevel.rest import params - >>> request = params.build_get_required_request(parameter1=parameter1, parameter2=parameter2, parameter3=parameter3, **kwargs) - + >>> from llcservicedrivenupdateonelowlevel.rest import params + >>> request = params.build_get_required_request(parameter=parameter, new_parameter=new_parameter, **kwargs) + >>> response = client.send_request(request) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_version.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_version.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_version.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_version.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py similarity index 95% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_configuration.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py index 92561d376b8..fdb5ddb9fba 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py @@ -24,7 +24,7 @@ class LLCClientConfiguration(Configuration): def __init__(self, **kwargs: Any) -> None: super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedrivenupdateone/{}".format(VERSION)) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py similarity index 92% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_llc_client.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py index 322d904158d..1d4565905fd 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/llcpackagelowlevel/aio/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py @@ -38,12 +38,12 @@ def __init__(self, *, endpoint: str = "http://localhost:3000", **kwargs: Any) -> def send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. - We have helper methods to create requests specific to this service in `llcpackagelowlevel.rest`. + We have helper methods to create requests specific to this service in `llcservicedrivenupdateonelowlevel.rest`. Use these helper methods to create the request you pass to this method. - >>> from llcpackagelowlevel.rest import params - >>> request = params.build_get_required_request(parameter1=parameter1, parameter2=parameter2, parameter3=parameter3, **kwargs) - + >>> from llcservicedrivenupdateonelowlevel.rest import params + >>> request = params.build_get_required_request(parameter=parameter, new_parameter=new_parameter, **kwargs) + >>> response = await client.send_request(request) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/py.typed b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/py.typed similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/py.typed rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/py.typed diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/__init__.py similarity index 100% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/__init__.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/__init__.py similarity index 55% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/__init__.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/__init__.py index f842c47d569..a3bf8ca28d8 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/__init__.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/__init__.py @@ -8,9 +8,18 @@ try: from ._request_builders_py3 import build_get_required_request + from ._request_builders_py3 import build_post_parameters_request + from ._request_builders_py3 import build_delete_parameters_request + from ._request_builders_py3 import build_get_new_operation_request except (SyntaxError, ImportError): from ._request_builders import build_get_required_request # type: ignore + from ._request_builders import build_post_parameters_request # type: ignore + from ._request_builders import build_delete_parameters_request # type: ignore + from ._request_builders import build_get_new_operation_request # type: ignore __all__ = [ "build_get_required_request", + "build_post_parameters_request", + "build_delete_parameters_request", + "build_get_new_operation_request", ] diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py new file mode 100644 index 00000000000..0a95dee6f1a --- /dev/null +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py @@ -0,0 +1,172 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING + +from azure.core.rest import HttpRequest +from msrest import Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, IO, Optional, Union + +_SERIALIZER = Serializer() + +# fmt: off + +def build_get_required_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Get true Boolean value on path. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :keyword new_parameter: I'm a new input optional parameter. + :paramtype new_parameter: str + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + parameter = kwargs.pop('parameter') # type: str + new_parameter = kwargs.pop('new_parameter', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') + if new_parameter is not None: + query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_post_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """POST a JSON or a JPEG. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in + our example to find the input shape. I am a body parameter with a new content type. My only + valid JSON entry is { url: "http://example.org/myimage.jpeg" }. + :paramtype json: any + :keyword content: Pass in binary content you want in the body of the request (typically bytes, + a byte iterator, or stream input). I am a body parameter with a new content type. My only valid + JSON entry is { url: "http://example.org/myimage.jpeg" }. + :paramtype content: any + :keyword str content_type: Media type of the body sent to the API. Default value is + "application/json". Allowed values are: "image/jpeg", "application/json." + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + json = { + "url": "str" # Required. + } + """ + + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_delete_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Delete something. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + return HttpRequest( + method="DELETE", + url=url, + **kwargs + ) + + +def build_get_new_operation_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """I'm a new operation. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/newpath') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + headers=header_parameters, + **kwargs + ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py new file mode 100644 index 00000000000..72c87791182 --- /dev/null +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py @@ -0,0 +1,132 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, IO, Optional, Union + +from azure.core.rest import HttpRequest +from msrest import Serializer + +_SERIALIZER = Serializer() + + +def build_get_required_request(*, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: + """Get true Boolean value on path. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :keyword new_parameter: I'm a new input optional parameter. + :paramtype new_parameter: str + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/parameters") + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + if new_parameter is not None: + query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + + +def build_post_parameters_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: + """POST a JSON or a JPEG. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in + our example to find the input shape. I am a body parameter with a new content type. My only + valid JSON entry is { url: "http://example.org/myimage.jpeg" }. + :paramtype json: any + :keyword content: Pass in binary content you want in the body of the request (typically bytes, + a byte iterator, or stream input). I am a body parameter with a new content type. My only valid + JSON entry is { url: "http://example.org/myimage.jpeg" }. + :paramtype content: any + :keyword str content_type: Media type of the body sent to the API. Default value is + "application/json". Allowed values are: "image/jpeg", "application/json." + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + json = { + "url": "str" # Required. + } + """ + + content_type = kwargs.pop("content_type", None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/parameters") + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + + +def build_delete_parameters_request(**kwargs: Any) -> HttpRequest: + """Delete something. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/parameters") + + return HttpRequest(method="DELETE", url=url, **kwargs) + + +def build_get_new_operation_request(**kwargs: Any) -> HttpRequest: + """I'm a new operation. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", "/servicedriven/newpath") + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/setup.py similarity index 87% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py rename to test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/setup.py index 58997d7b93b..d66a3ad048e 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -NAME = "llcclient" +NAME = "llcservicedrivenupdateone" VERSION = "0.1.0" # To install the library, run the following @@ -19,12 +19,12 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, version=VERSION, - description="LLCClient", + description="llcservicedrivenupdateone", author_email="", url="", keywords=["Swagger", "LLCClient"], diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders.py deleted file mode 100644 index 521702b6f29..00000000000 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING - -from azure.core.rest import HttpRequest -from msrest import Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - -_SERIALIZER = Serializer() - -# fmt: off - -def build_get_required_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - """Get true Boolean value on path. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder - into your code flow. - - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :keyword parameter1: I am a required parameter with a client default value. - :paramtype parameter1: str - :keyword parameter2: I was a required parameter, but now I'm optional. - :paramtype parameter2: str - :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's - `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to - incorporate this response into your code flow. - :rtype: ~azure.core.rest.HttpRequest - """ - - parameter3 = kwargs.pop('parameter3') # type: str - parameter1 = kwargs.pop('parameter1', "DefaultValue") # type: str - parameter2 = kwargs.pop('parameter2', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/llc/parameters') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') - if parameter2 is not None: - query_parameters['parameter2'] = _SERIALIZER.query("parameter2", parameter2, 'str') - query_parameters['parameter3'] = _SERIALIZER.query("parameter3", parameter3, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py deleted file mode 100644 index 68df6a85503..00000000000 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/rest/params/_request_builders_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Optional - -from azure.core.rest import HttpRequest -from msrest import Serializer - -_SERIALIZER = Serializer() - - -def build_get_required_request( - *, parameter3: str, parameter1: str = "DefaultValue", parameter2: Optional[str] = None, **kwargs: Any -) -> HttpRequest: - """Get true Boolean value on path. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder - into your code flow. - - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :keyword parameter1: I am a required parameter with a client default value. - :paramtype parameter1: str - :keyword parameter2: I was a required parameter, but now I'm optional. - :paramtype parameter2: str - :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's - `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to - incorporate this response into your code flow. - :rtype: ~azure.core.rest.HttpRequest - """ - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/llc/parameters") - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") - if parameter2 is not None: - query_parameters["parameter2"] = _SERIALIZER.query("parameter2", parameter2, "str") - query_parameters["parameter3"] = _SERIALIZER.query("parameter3", parameter3, "str") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) diff --git a/test/llc/low-level/initial_requirements.txt b/test/llc/low-level/requirements.txt similarity index 55% rename from test/llc/low-level/initial_requirements.txt rename to test/llc/low-level/requirements.txt index 47d00edc2ff..a9a4b09aeb5 100644 --- a/test/llc/low-level/initial_requirements.txt +++ b/test/llc/low-level/requirements.txt @@ -5,5 +5,6 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.19.0 --e ./Expected/AcceptanceTests/LLCInitialLowLevel/ \ No newline at end of file +azure-core==1.19.1 +-e ./Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/ +-e ./Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/ \ No newline at end of file diff --git a/test/llc/low-level/tox.ini b/test/llc/low-level/tox.ini index 6c655d19f86..a14c435c24f 100644 --- a/test/llc/low-level/tox.ini +++ b/test/llc/low-level/tox.ini @@ -2,14 +2,8 @@ envlist=py27, py36 skipsdist=True -[testenv:initial-ci] +[testenv:ci] deps= - -rinitial_requirements.txt + -rrequirements.txt commands = - pytest --cov=Expected UpdateAcceptanceTests - -[testenv:update-ci] -deps= - -rupdate_requirements.txt -commands = - pytest --cov=Expected UpdateAcceptanceTests \ No newline at end of file + pytest --cov=Expected AcceptanceTests \ No newline at end of file diff --git a/test/llc/low-level/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py b/test/llc/version-tolerant/AcceptanceTests/asynctests/test_service_driven_async.py similarity index 68% rename from test/llc/low-level/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py rename to test/llc/version-tolerant/AcceptanceTests/asynctests/test_service_driven_async.py index 908150be2e0..aa6a7c25c7b 100644 --- a/test/llc/low-level/UpdateAcceptanceTests/asynctests/test_required_to_optional_async.py +++ b/test/llc/version-tolerant/AcceptanceTests/asynctests/test_service_driven_async.py @@ -25,24 +25,25 @@ # # -------------------------------------------------------------------------- import pytest -from async_generator import yield_, async_generator +from llcservicedriveninitialversiontolerant.aio import LLCClient as LLCClientInitial +from llcservicedrivenupdateoneversiontolerant.aio import LLCClient as LLCClientUpdateOne - -from llcpackagelowlevel.aio import LLCClient -from llcpackagelowlevel.rest.params import build_get_required_request +@pytest.fixture +async def initial_client(): + async with LLCClientInitial() as client: + yield client @pytest.fixture -@async_generator -async def client(): - async with LLCClient() as client: - await yield_(client) +async def update_one_client(): + async with LLCClientUpdateOne() as client: + yield client @pytest.mark.asyncio -async def test_required_to_optional(client): - request = build_get_required_request( - parameter1="foo", - parameter2="foo", - parameter3="foo", +async def test_add_optional_parameter(initial_client, update_one_client): + await initial_client.params.get_required( + parameter="foo" + ) + await update_one_client.params.get_required( + parameter="foo", + new_parameter="bar", ) - response = await client.send_request(request) - assert response.status_code == 200 diff --git a/test/llc/low-level/UpdateAcceptanceTests/conftest.py b/test/llc/version-tolerant/AcceptanceTests/conftest.py similarity index 100% rename from test/llc/low-level/UpdateAcceptanceTests/conftest.py rename to test/llc/version-tolerant/AcceptanceTests/conftest.py diff --git a/test/llc/low-level/UpdateAcceptanceTests/test_required_to_optional.py b/test/llc/version-tolerant/AcceptanceTests/test_service_driven.py similarity index 70% rename from test/llc/low-level/UpdateAcceptanceTests/test_required_to_optional.py rename to test/llc/version-tolerant/AcceptanceTests/test_service_driven.py index d1fe210a05f..c7527b854d7 100644 --- a/test/llc/low-level/UpdateAcceptanceTests/test_required_to_optional.py +++ b/test/llc/version-tolerant/AcceptanceTests/test_service_driven.py @@ -25,23 +25,24 @@ # # -------------------------------------------------------------------------- import pytest - - -from llcpackagelowlevel import LLCClient -from llcpackagelowlevel.rest.params import build_get_required_request - +from llcservicedriveninitialversiontolerant import LLCClient as LLCClientInitial +from llcservicedrivenupdateoneversiontolerant import LLCClient as LLCClientUpdateOne @pytest.fixture -def client(): - with LLCClient() as client: +def initial_client(): + with LLCClientInitial() as client: yield client +@pytest.fixture +def update_one_client(): + with LLCClientUpdateOne() as client: + yield client -def test_required_to_optional(client): - request = build_get_required_request( - parameter1="foo", - parameter2="foo", - parameter3="foo", +def test_add_optional_parameter(initial_client, update_one_client): + initial_client.params.get_required( + parameter="foo" + ) + update_one_client.params.get_required( + parameter="foo", + new_parameter="bar", ) - response = client.send_request(request) - assert response.status_code == 200 \ No newline at end of file diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py deleted file mode 100644 index f9a7c2504e8..00000000000 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ...operations._operations import build_params_get_required_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ParamsOperations: - """ParamsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_required(self, *, parameter1: str, parameter2: str, parameter3: str, **kwargs: Any) -> Any: - """Get true Boolean value on path. - - :keyword parameter1: I am a required parameter. - :paramtype parameter1: str - :keyword parameter2: I am a required parameter. - :paramtype parameter2: str - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :return: any - :rtype: any - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_params_get_required_request( - parameter1=parameter1, - parameter2=parameter2, - parameter3=parameter3, - template_url=self.get_required.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_required.metadata = {"url": "/llc/parameters"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py deleted file mode 100644 index 5ac9685c02b..00000000000 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - - T = TypeVar("T") - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -# fmt: off - -def build_params_get_required_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - parameter1 = kwargs.pop('parameter1') # type: str - parameter2 = kwargs.pop('parameter2') # type: str - parameter3 = kwargs.pop('parameter3') # type: str - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/llc/parameters') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') - query_parameters['parameter2'] = _SERIALIZER.query("parameter2", parameter2, 'str') - query_parameters['parameter3'] = _SERIALIZER.query("parameter3", parameter3, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) - -# fmt: on -class ParamsOperations(object): - """ParamsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_required( - self, **kwargs # type: Any - ): - # type: (...) -> Any - """Get true Boolean value on path. - - :keyword parameter1: I am a required parameter. - :paramtype parameter1: str - :keyword parameter2: I am a required parameter. - :paramtype parameter2: str - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :return: any - :rtype: any - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - parameter1 = kwargs.pop("parameter1") # type: str - parameter2 = kwargs.pop("parameter2") # type: str - parameter3 = kwargs.pop("parameter3") # type: str - - request = build_params_get_required_request( - parameter1=parameter1, - parameter2=parameter2, - parameter3=parameter3, - template_url=self.get_required.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_required.metadata = {"url": "/llc/parameters"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_configuration.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_configuration.py similarity index 95% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_configuration.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_configuration.py index 4d1b640f4d1..050d1aa3bd9 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/_configuration.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_configuration.py @@ -31,7 +31,7 @@ def __init__( # type: (...) -> None super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedriveninitial/{}".format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_llc_client.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_llc_client.py similarity index 97% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_llc_client.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_llc_client.py index fa0bc0f0550..942cd47ab09 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_llc_client.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_llc_client.py @@ -26,7 +26,7 @@ class LLCClient(object): """LLC Swagger, this is the initial swager a service could do. :ivar params: ParamsOperations operations - :vartype params: llcpackageversiontolerant.operations.ParamsOperations + :vartype params: llcservicedriveninitialversiontolerant.operations.ParamsOperations :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_version.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_version.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/_version.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/_version.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/__init__.py diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_configuration.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_configuration.py similarity index 95% rename from test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_configuration.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_configuration.py index 92561d376b8..35bdf357a0c 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/llcpackagelowlevel/aio/_configuration.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_configuration.py @@ -24,7 +24,7 @@ class LLCClientConfiguration(Configuration): def __init__(self, **kwargs: Any) -> None: super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedriveninitial/{}".format(VERSION)) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_llc_client.py similarity index 97% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_llc_client.py index 32c2d8745aa..5062aeea852 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/_llc_client.py @@ -25,7 +25,7 @@ class LLCClient: """LLC Swagger, this is the initial swager a service could do. :ivar params: ParamsOperations operations - :vartype params: llcpackageversiontolerant.aio.operations.ParamsOperations + :vartype params: llcservicedriveninitialversiontolerant.aio.operations.ParamsOperations :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/operations/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/operations/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/operations/_operations.py similarity index 57% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/operations/_operations.py index 15794a8c2a6..d770e820b9b 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/aio/operations/_operations.py @@ -21,7 +21,7 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator_async import distributed_trace_async -from ...operations._operations import build_params_get_required_request +from ...operations._operations import build_params_get_required_request, build_params_post_parameters_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -46,17 +46,11 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_required( - self, *, parameter3: str, parameter1: str = "DefaultValue", parameter2: Optional[str] = None, **kwargs: Any - ) -> Any: + async def get_required(self, *, parameter: str, **kwargs: Any) -> Any: """Get true Boolean value on path. - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :keyword parameter1: I am a required parameter with a client default value. - :paramtype parameter1: str - :keyword parameter2: I was a required parameter, but now I'm optional. - :paramtype parameter2: str + :keyword parameter: I am a required parameter. + :paramtype parameter: str :return: any :rtype: any :raises: ~azure.core.exceptions.HttpResponseError @@ -66,9 +60,7 @@ async def get_required( error_map.update(kwargs.pop("error_map", {})) request = build_params_get_required_request( - parameter3=parameter3, - parameter1=parameter1, - parameter2=parameter2, + parameter=parameter, template_url=self.get_required.metadata["url"], ) request.url = self._client.format_url(request.url) @@ -90,4 +82,57 @@ async def get_required( return deserialized - get_required.metadata = {"url": "/llc/parameters"} # type: ignore + get_required.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace_async + async def post_parameters(self, parameter: Any, **kwargs: Any) -> Any: + """POST a JSON. + + :param parameter: I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :type parameter: Any + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + parameter = { + "url": "str" # Required. + } + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] + + json = parameter + + request = build_params_post_parameters_request( + content_type=content_type, + json=json, + template_url=self.post_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + post_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py similarity index 54% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py index 9c5dedc8436..22440b12a98 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py @@ -36,20 +36,15 @@ def build_params_get_required_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - parameter3 = kwargs.pop('parameter3') # type: str - parameter1 = kwargs.pop('parameter1', "DefaultValue") # type: str - parameter2 = kwargs.pop('parameter2', None) # type: Optional[str] + parameter = kwargs.pop('parameter') # type: str accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/llc/parameters') + url = kwargs.pop("template_url", '/servicedriven/parameters') # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') - if parameter2 is not None: - query_parameters['parameter2'] = _SERIALIZER.query("parameter2", parameter2, 'str') - query_parameters['parameter3'] = _SERIALIZER.query("parameter3", parameter3, 'str') + query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,6 +58,30 @@ def build_params_get_required_request( **kwargs ) + +def build_params_post_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) + # fmt: on class ParamsOperations(object): """ParamsOperations operations. @@ -89,12 +108,8 @@ def get_required( # type: (...) -> Any """Get true Boolean value on path. - :keyword parameter3: I am a required parameter and I'm last in Swagger. - :paramtype parameter3: str - :keyword parameter1: I am a required parameter with a client default value. - :paramtype parameter1: str - :keyword parameter2: I was a required parameter, but now I'm optional. - :paramtype parameter2: str + :keyword parameter: I am a required parameter. + :paramtype parameter: str :return: any :rtype: any :raises: ~azure.core.exceptions.HttpResponseError @@ -103,14 +118,10 @@ def get_required( error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) - parameter3 = kwargs.pop("parameter3") # type: str - parameter1 = kwargs.pop("parameter1", "DefaultValue") # type: str - parameter2 = kwargs.pop("parameter2", None) # type: Optional[str] + parameter = kwargs.pop("parameter") # type: str request = build_params_get_required_request( - parameter3=parameter3, - parameter1=parameter1, - parameter2=parameter2, + parameter=parameter, template_url=self.get_required.metadata["url"], ) request.url = self._client.format_url(request.url) @@ -132,4 +143,62 @@ def get_required( return deserialized - get_required.metadata = {"url": "/llc/parameters"} # type: ignore + get_required.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace + def post_parameters( + self, + parameter, # type: Any + **kwargs # type: Any + ): + # type: (...) -> Any + """POST a JSON. + + :param parameter: I am a body parameter. My only valid JSON entry is { url: + "http://example.org/myimage.jpeg" }. + :type parameter: Any + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + parameter = { + "url": "str" # Required. + } + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] + + json = parameter + + request = build_params_post_parameters_request( + content_type=content_type, + json=json, + template_url=self.post_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + post_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/py.typed b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/py.typed similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/py.typed rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/py.typed diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/setup.py similarity index 88% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/setup.py index 58997d7b93b..4bb230cddf0 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -NAME = "llcclient" +NAME = "llcservicedriveninitial" VERSION = "0.1.0" # To install the library, run the following @@ -19,12 +19,12 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, version=VERSION, - description="LLCClient", + description="llcservicedriveninitial", author_email="", url="", keywords=["Swagger", "LLCClient"], diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_configuration.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_configuration.py similarity index 95% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_configuration.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_configuration.py index 4d1b640f4d1..1de66af69a9 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_configuration.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_configuration.py @@ -31,7 +31,7 @@ def __init__( # type: (...) -> None super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedrivenupdateone/{}".format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_llc_client.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_llc_client.py similarity index 97% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_llc_client.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_llc_client.py index fa0bc0f0550..11c91d8b335 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_llc_client.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_llc_client.py @@ -26,7 +26,7 @@ class LLCClient(object): """LLC Swagger, this is the initial swager a service could do. :ivar params: ParamsOperations operations - :vartype params: llcpackageversiontolerant.operations.ParamsOperations + :vartype params: llcservicedrivenupdateoneversiontolerant.operations.ParamsOperations :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_version.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_version.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/_version.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/_version.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_configuration.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_configuration.py similarity index 95% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_configuration.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_configuration.py index 92561d376b8..fdb5ddb9fba 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/_configuration.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_configuration.py @@ -24,7 +24,7 @@ class LLCClientConfiguration(Configuration): def __init__(self, **kwargs: Any) -> None: super(LLCClientConfiguration, self).__init__(**kwargs) - kwargs.setdefault("sdk_moniker", "llcclient/{}".format(VERSION)) + kwargs.setdefault("sdk_moniker", "llcservicedrivenupdateone/{}".format(VERSION)) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_llc_client.py similarity index 96% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_llc_client.py index 32c2d8745aa..5339e8f98e2 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/_llc_client.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/_llc_client.py @@ -25,7 +25,7 @@ class LLCClient: """LLC Swagger, this is the initial swager a service could do. :ivar params: ParamsOperations operations - :vartype params: llcpackageversiontolerant.aio.operations.ParamsOperations + :vartype params: llcservicedrivenupdateoneversiontolerant.aio.operations.ParamsOperations :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/_operations.py new file mode 100644 index 00000000000..2b1efa60655 --- /dev/null +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/aio/operations/_operations.py @@ -0,0 +1,216 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import functools +from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async + +from ...operations._operations import ( + build_params_delete_parameters_request, + build_params_get_new_operation_request, + build_params_get_required_request, + build_params_post_parameters_request, +) + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class ParamsOperations: + """ParamsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + @distributed_trace_async + async def get_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> Any: + """Get true Boolean value on path. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :keyword new_parameter: I'm a new input optional parameter. + :paramtype new_parameter: str + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_params_get_required_request( + parameter=parameter, + new_parameter=new_parameter, + template_url=self.get_required.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get_required.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace_async + async def post_parameters(self, parameter: Union[IO, Any], **kwargs: Any) -> Any: + """POST a JSON or a JPEG. + + :param parameter: I am a body parameter with a new content type. My only valid JSON entry is { + url: "http://example.org/myimage.jpeg" }. + :type parameter: IO or Any + :keyword str content_type: Media type of the body sent to the API. Default value is + "application/json". Allowed values are: "image/jpeg", "application/json." + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] + + json = None + content = None + if content_type.split(";")[0] in ["image/jpeg"]: + content = parameter + elif content_type.split(";")[0] in ["application/json"]: + json = parameter + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['image/jpeg', 'application/json']".format(content_type) + ) + + request = build_params_post_parameters_request( + content_type=content_type, + json=json, + content=content, + template_url=self.post_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + post_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace_async + async def delete_parameters(self, **kwargs: Any) -> None: + """Delete something. + + :return: None + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[None] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_params_delete_parameters_request( + template_url=self.delete_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + delete_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace_async + async def get_new_operation(self, **kwargs: Any) -> Any: + """I'm a new operation. + + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_params_get_new_operation_request( + template_url=self.get_new_operation.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get_new_operation.metadata = {"url": "/servicedriven/newpath"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/__init__.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/__init__.py similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/__init__.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/__init__.py diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py new file mode 100644 index 00000000000..77009f050e8 --- /dev/null +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py @@ -0,0 +1,321 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import functools +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from msrest import Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + + T = TypeVar("T") + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +# fmt: off + +def build_params_get_required_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + parameter = kwargs.pop('parameter') # type: str + new_parameter = kwargs.pop('new_parameter', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') + if new_parameter is not None: + query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_params_post_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_params_delete_parameters_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/parameters') + + return HttpRequest( + method="DELETE", + url=url, + **kwargs + ) + + +def build_params_get_new_operation_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + accept = "application/json" + # Construct URL + url = kwargs.pop("template_url", '/servicedriven/newpath') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + headers=header_parameters, + **kwargs + ) + +# fmt: on +class ParamsOperations(object): + """ParamsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + @distributed_trace + def get_required( + self, **kwargs # type: Any + ): + # type: (...) -> Any + """Get true Boolean value on path. + + :keyword parameter: I am a required parameter. + :paramtype parameter: str + :keyword new_parameter: I'm a new input optional parameter. + :paramtype new_parameter: str + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + parameter = kwargs.pop("parameter") # type: str + new_parameter = kwargs.pop("new_parameter", None) # type: Optional[str] + + request = build_params_get_required_request( + parameter=parameter, + new_parameter=new_parameter, + template_url=self.get_required.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get_required.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace + def post_parameters( + self, + parameter, # type: Union[IO, Any] + **kwargs # type: Any + ): + # type: (...) -> Any + """POST a JSON or a JPEG. + + :param parameter: I am a body parameter with a new content type. My only valid JSON entry is { + url: "http://example.org/myimage.jpeg" }. + :type parameter: IO or Any + :keyword str content_type: Media type of the body sent to the API. Default value is + "application/json". Allowed values are: "image/jpeg", "application/json." + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] + + json = None + content = None + if content_type.split(";")[0] in ["image/jpeg"]: + content = parameter + elif content_type.split(";")[0] in ["application/json"]: + json = parameter + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['image/jpeg', 'application/json']".format(content_type) + ) + + request = build_params_post_parameters_request( + content_type=content_type, + json=json, + content=content, + template_url=self.post_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + post_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace + def delete_parameters( + self, **kwargs # type: Any + ): + # type: (...) -> None + """Delete something. + + :return: None + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[None] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_params_delete_parameters_request( + template_url=self.delete_parameters.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + delete_parameters.metadata = {"url": "/servicedriven/parameters"} # type: ignore + + @distributed_trace + def get_new_operation( + self, **kwargs # type: Any + ): + # type: (...) -> Any + """I'm a new operation. + + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_params_get_new_operation_request( + template_url=self.get_new_operation.metadata["url"], + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get_new_operation.metadata = {"url": "/servicedriven/newpath"} # type: ignore diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/py.typed b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/py.typed similarity index 100% rename from test/llc/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/py.typed rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/py.typed diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/setup.py similarity index 87% rename from test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py rename to test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/setup.py index 58997d7b93b..d66a3ad048e 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -NAME = "llcclient" +NAME = "llcservicedrivenupdateone" VERSION = "0.1.0" # To install the library, run the following @@ -19,12 +19,12 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, version=VERSION, - description="LLCClient", + description="llcservicedrivenupdateone", author_email="", url="", keywords=["Swagger", "LLCClient"], diff --git a/test/llc/version-tolerant/initial_requirements.txt b/test/llc/version-tolerant/initial_requirements.txt deleted file mode 100644 index 9af5846ec2e..00000000000 --- a/test/llc/version-tolerant/initial_requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -aiohttp;python_full_version>="3.5.2" -requests==2.18.4 -pytest -pytest-cov -pytest-asyncio==0.14.0;python_full_version>="3.5.2" -async_generator;python_full_version>="3.5.2" -msrest==0.6.21 -azure-core==1.19.0 --e ./Expected/AcceptanceTests/LLCInitialVersionTolerant/ \ No newline at end of file diff --git a/test/llc/low-level/update_requirements.txt b/test/llc/version-tolerant/requirements.txt similarity index 53% rename from test/llc/low-level/update_requirements.txt rename to test/llc/version-tolerant/requirements.txt index 6a95f90166d..2b9a22a8497 100644 --- a/test/llc/low-level/update_requirements.txt +++ b/test/llc/version-tolerant/requirements.txt @@ -5,5 +5,6 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.19.0 --e ./Expected/AcceptanceTests/LLCUpdateOneLowLevel \ No newline at end of file +azure-core==1.19.1 +-e ./Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/ +-e ./Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/ \ No newline at end of file diff --git a/test/llc/version-tolerant/tox.ini b/test/llc/version-tolerant/tox.ini index 6c655d19f86..2e23dc87121 100644 --- a/test/llc/version-tolerant/tox.ini +++ b/test/llc/version-tolerant/tox.ini @@ -2,14 +2,8 @@ envlist=py27, py36 skipsdist=True -[testenv:initial-ci] +[testenv:ci] deps= - -rinitial_requirements.txt + -rrequirements.txt commands = - pytest --cov=Expected UpdateAcceptanceTests - -[testenv:update-ci] -deps= - -rupdate_requirements.txt -commands = - pytest --cov=Expected UpdateAcceptanceTests \ No newline at end of file + pytest --cov=Expected AcceptanceTests diff --git a/test/llc/version-tolerant/update_requirements.txt b/test/llc/version-tolerant/update_requirements.txt deleted file mode 100644 index d21e78a6940..00000000000 --- a/test/llc/version-tolerant/update_requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -aiohttp;python_full_version>="3.5.2" -requests==2.18.4 -pytest -pytest-cov -pytest-asyncio==0.14.0;python_full_version>="3.5.2" -async_generator;python_full_version>="3.5.2" -msrest==0.6.21 -azure-core==1.19.0 --e ./Expected/AcceptanceTests/LLCUpdateOneVersionTolerant \ No newline at end of file diff --git a/test/multiapi/requirements.txt b/test/multiapi/requirements.txt index 416375657b1..a6aa66d6e7e 100644 --- a/test/multiapi/requirements.txt +++ b/test/multiapi/requirements.txt @@ -1,7 +1,7 @@ aiohttp; python_full_version >= '3.5.2' azure-common msrest==0.6.21 -azure-core==1.19.0 +azure-core==1.19.1 azure-mgmt-core==1.3.0 pytest pytest-cov diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py index 45c73cca0f3..dedc45c7dba 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py index 413e73bf74b..0e6d50db4fb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py index 5a143aa43bf..ba8b91d7898 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py index 5a143aa43bf..ba8b91d7898 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py index 5a143aa43bf..ba8b91d7898 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/setup.py index c019ae7aa45..b6f59f29a19 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py index ecb9d3e6344..bcf113e82a5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py index 8fbb0c22dcb..d0b29b472af 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py index d275998e147..c7c1e173202 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py index 0eaaf97d9a6..d881b3673d0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py index d4d7833bbb1..47f5093c667 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py index 976f5b5c839..7f53ea78362 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py index 87d4bb498f7..26dfaa0dcc2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py index e164de64391..f19a4227d1d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py index 40d8e3cd72d..3d99c4464ea 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py index 62e387b55f4..88f59a44a48 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py index eec61408436..fffc8486d64 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/setup.py index 25974680ef5..3db5b8d517e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py index db8ef7801e9..582aea0cf09 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py index 6afe60f3025..bbfffb7a6bd 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py index b89448ba330..35666aab7ca 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py index f46edb3e3de..2f0e4f8eb58 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py index fd9bc1e6419..7c0fb59d540 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py index 6fb725e06d6..d2174dad3ac 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py index 97f2e5d3254..2c7f27e5965 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py index ce27e643ce0..b74cb5af905 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py index 1173c0aff24..ca62c7e5c80 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py index 491198bb792..cb112939adc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py index 0d7b326c9c2..a1fde33b484 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py index 9b20d9244a3..0185c598219 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py index 8d98ed47458..188a43ab3c6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py index 799b953cf37..d3b07b9fe61 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py index ebedc354da8..b3830cb3a17 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py index a50ad468ad1..22518505041 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py index 5c1b1d80cd5..4de67fb1d5b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py index 835754cea73..0fab3609040 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py index 4f2b215e2d1..2438aa9179b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py index 454cbce3284..dacf1f894d3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py index 8fd8a453747..b70e7cf58c1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py index 292a2f1eccc..4ef8642d0ee 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py index 819dfc5c53b..9cde60b412a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py index b506d8eadf6..0f3f145c7d4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py index 506c08260da..c5adc6ade37 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py index ede7055d285..dd42add152d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py index c0a906782e3..887988a9327 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py @@ -28,13 +28,13 @@ class XMSErrorResponseExtensions(object): :ivar pet: PetOperations operations :vartype pet: xmserrorresponse.operations.PetOperations - :param base_url: Service URL. Default value is 'http://localhost'. + :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str """ def __init__( self, - base_url="http://localhost", # type: str + base_url="http://localhost:3000", # type: str **kwargs # type: Any ): # type: (...) -> None diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py index 732811412f6..97a74a4b5e4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py @@ -23,11 +23,11 @@ class XMSErrorResponseExtensions: :ivar pet: PetOperations operations :vartype pet: xmserrorresponse.aio.operations.PetOperations - :param base_url: Service URL. Default value is 'http://localhost'. + :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str """ - def __init__(self, base_url: str = "http://localhost", **kwargs: Any) -> None: + def __init__(self, base_url: str = "http://localhost:3000", **kwargs: Any) -> None: self._config = XMSErrorResponseExtensionsConfiguration(**kwargs) self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/test/vanilla/legacy/requirements.txt b/test/vanilla/legacy/requirements.txt index 64e0057ef99..b3ed1dd3372 100644 --- a/test/vanilla/legacy/requirements.txt +++ b/test/vanilla/legacy/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.19.0 +azure-core==1.19.1 -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py index 45c73cca0f3..dedc45c7dba 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py index 413e73bf74b..0e6d50db4fb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py index 5a143aa43bf..ba8b91d7898 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/setup.py index c019ae7aa45..b6f59f29a19 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py index ecb9d3e6344..bcf113e82a5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py index 8fbb0c22dcb..d0b29b472af 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py index 0eaaf97d9a6..d881b3673d0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py index 976f5b5c839..7f53ea78362 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py index 87d4bb498f7..26dfaa0dcc2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py index e164de64391..f19a4227d1d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py index 40d8e3cd72d..3d99c4464ea 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py index 62e387b55f4..88f59a44a48 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py index eec61408436..fffc8486d64 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/setup.py index 25974680ef5..3db5b8d517e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py index db8ef7801e9..582aea0cf09 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py index 6afe60f3025..bbfffb7a6bd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py index b89448ba330..35666aab7ca 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py index f46edb3e3de..2f0e4f8eb58 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py index fd9bc1e6419..7c0fb59d540 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py index 6fb725e06d6..d2174dad3ac 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py index 97f2e5d3254..2c7f27e5965 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py index ce27e643ce0..b74cb5af905 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py index 1173c0aff24..ca62c7e5c80 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py index 491198bb792..cb112939adc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py index 0d7b326c9c2..a1fde33b484 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py index 9b20d9244a3..0185c598219 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py index 8d98ed47458..188a43ab3c6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py index 799b953cf37..d3b07b9fe61 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py index ebedc354da8..b3830cb3a17 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py index a50ad468ad1..22518505041 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py index 5c1b1d80cd5..4de67fb1d5b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py index 835754cea73..0fab3609040 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py index 4f2b215e2d1..2438aa9179b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py index 454cbce3284..dacf1f894d3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py index 8fd8a453747..b70e7cf58c1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py index 292a2f1eccc..4ef8642d0ee 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py index 819dfc5c53b..9cde60b412a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py index b506d8eadf6..0f3f145c7d4 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py index 506c08260da..c5adc6ade37 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py index ede7055d285..dd42add152d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py index 4f8ace80f36..cad6c221f24 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py @@ -24,7 +24,7 @@ class XMSErrorResponseExtensions(object): """XMS Error Response Extensions. - :keyword endpoint: Service URL. Default value is 'http://localhost'. + :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ @@ -32,7 +32,7 @@ def __init__( self, **kwargs # type: Any ): # type: (...) -> None - endpoint = kwargs.pop("endpoint", "http://localhost") # type: str + endpoint = kwargs.pop("endpoint", "http://localhost:3000") # type: str self._config = XMSErrorResponseExtensionsConfiguration(**kwargs) self._client = PipelineClient(base_url=endpoint, config=self._config, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py index fe0af85886a..186346173a7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py @@ -23,11 +23,11 @@ class XMSErrorResponseExtensions: """XMS Error Response Extensions. - :keyword endpoint: Service URL. Default value is 'http://localhost'. + :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ - def __init__(self, *, endpoint: str = "http://localhost", **kwargs: Any) -> None: + def __init__(self, *, endpoint: str = "http://localhost:3000", **kwargs: Any) -> None: self._config = XMSErrorResponseExtensionsConfiguration(**kwargs) self._client = AsyncPipelineClient(base_url=endpoint, config=self._config, **kwargs) diff --git a/test/vanilla/low-level/requirements.txt b/test/vanilla/low-level/requirements.txt index fc35430f74f..30d7f964f8c 100644 --- a/test/vanilla/low-level/requirements.txt +++ b/test/vanilla/low-level/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.19.0 +azure-core==1.19.1 -e ./Expected/AcceptanceTests/AdditionalPropertiesLowLevel -e ./Expected/AcceptanceTests/AnythingLowLevel -e ./Expected/AcceptanceTests/BodyArrayLowLevel diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py index 45c73cca0f3..dedc45c7dba 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py index 413e73bf74b..0e6d50db4fb 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py index 5a143aa43bf..ba8b91d7898 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/setup.py index c019ae7aa45..b6f59f29a19 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py index ecb9d3e6344..bcf113e82a5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py index 8fbb0c22dcb..d0b29b472af 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py index d4d7833bbb1..47f5093c667 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py index 0eaaf97d9a6..d881b3673d0 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py index e164de64391..f19a4227d1d 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py index 87d4bb498f7..26dfaa0dcc2 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py index 976f5b5c839..7f53ea78362 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py index 40d8e3cd72d..3d99c4464ea 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py index bb189bac7cb..560c09b35d2 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py index 62e387b55f4..88f59a44a48 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py index eec61408436..fffc8486d64 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/setup.py index 25974680ef5..3db5b8d517e 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py index db8ef7801e9..582aea0cf09 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py index 6afe60f3025..bbfffb7a6bd 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py index b89448ba330..35666aab7ca 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py index f46edb3e3de..2f0e4f8eb58 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py index fd9bc1e6419..7c0fb59d540 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py index 6fb725e06d6..d2174dad3ac 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py index 7b9167844e0..d542b14f454 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py index 97f2e5d3254..2c7f27e5965 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py index ce27e643ce0..b74cb5af905 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py index 1173c0aff24..ca62c7e5c80 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py index 491198bb792..cb112939adc 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py index 0d7b326c9c2..a1fde33b484 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py index 9b20d9244a3..0185c598219 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py index 8d98ed47458..188a43ab3c6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py index 799b953cf37..d3b07b9fe61 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py index ebedc354da8..b3830cb3a17 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py index a50ad468ad1..22518505041 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py index 5c1b1d80cd5..4de67fb1d5b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py index 835754cea73..0fab3609040 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py index 4f2b215e2d1..2438aa9179b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py index 454cbce3284..dacf1f894d3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py index 8fd8a453747..b70e7cf58c1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py index 819dfc5c53b..9cde60b412a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py index 292a2f1eccc..4ef8642d0ee 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py index b506d8eadf6..0f3f145c7d4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py index 506c08260da..c5adc6ade37 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py index ede7055d285..dd42add152d 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.1"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/_xms_error_response_extensions.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/_xms_error_response_extensions.py index 8c538d15b61..66c4c3b2438 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/_xms_error_response_extensions.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/_xms_error_response_extensions.py @@ -27,7 +27,7 @@ class XMSErrorResponseExtensions(object): :ivar pet: PetOperations operations :vartype pet: xmserrorresponseversiontolerant.operations.PetOperations - :keyword endpoint: Service URL. Default value is 'http://localhost'. + :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ @@ -35,7 +35,7 @@ def __init__( self, **kwargs # type: Any ): # type: (...) -> None - endpoint = kwargs.pop("endpoint", "http://localhost") # type: str + endpoint = kwargs.pop("endpoint", "http://localhost:3000") # type: str self._config = XMSErrorResponseExtensionsConfiguration(**kwargs) self._client = PipelineClient(base_url=endpoint, config=self._config, **kwargs) diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/_xms_error_response_extensions.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/_xms_error_response_extensions.py index 1bdc468fa0d..c5d43703b4b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/_xms_error_response_extensions.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/_xms_error_response_extensions.py @@ -26,11 +26,11 @@ class XMSErrorResponseExtensions: :ivar pet: PetOperations operations :vartype pet: xmserrorresponseversiontolerant.aio.operations.PetOperations - :keyword endpoint: Service URL. Default value is 'http://localhost'. + :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str """ - def __init__(self, *, endpoint: str = "http://localhost", **kwargs: Any) -> None: + def __init__(self, *, endpoint: str = "http://localhost:3000", **kwargs: Any) -> None: self._config = XMSErrorResponseExtensionsConfiguration(**kwargs) self._client = AsyncPipelineClient(base_url=endpoint, config=self._config, **kwargs) diff --git a/test/vanilla/version-tolerant/requirements.txt b/test/vanilla/version-tolerant/requirements.txt index fce6766d733..47e92450132 100644 --- a/test/vanilla/version-tolerant/requirements.txt +++ b/test/vanilla/version-tolerant/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.19.0 +azure-core==1.19.1 -e ./Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant -e ./Expected/AcceptanceTests/AnythingVersionTolerant -e ./Expected/AcceptanceTests/BodyArrayVersionTolerant