Skip to content

Commit

Permalink
Merging main. (#21768)
Browse files Browse the repository at this point in the history
* [Purview catalog] release for new api-version `2021-05-01-preview` (#21169)

* regenerate with api-version 2021-05-01-preview

* Update CHANGELOG.md

* update readme.me and setup.py (#21170)

* [Purview administration] first release (#20874)

* part1 test

* test and readme

* CI fix

* fix dependency

* fix CI

* regenerate

* review

* regenerate with new api version 2021-07-01-preview

* update readme.md for python2.7 claim and setup.py for python 3.10

* Fix py.typed packaging

Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>

* [webpubsub] support AAD, Api management proxy (#21235)

* codegen

* update test

* update readme.md

* add test

* from connection string

* example

* Update _version.py

* api management proxy

* Update _web_pub_sub_service_client.py

* review

* api management

* fix dependency

* fix dependency

* apim proxy

* edit code in _patch.py instead of generated code

* review

* fix broken link

* Update setup.py

* Update dev_requirements.txt

* fix ci

* fix ci

* fix ci failure of windows_python27

* Update sdk/webpubsub/azure-messaging-webpubsubservice/examples/send_messages_aad.py

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* Update sdk/webpubsub/azure-messaging-webpubsubservice/examples/send_messages_aad.py

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* Update README.md

* review

* regenerate code

* fix ci

* fix ci

* move operation onto client

* review

* Update send_messages_connection_string_apim_proxy.py

* Update send_messages_aad_apim_proxy.py

* regenerate for 2021-10-01

* test

* Update CHANGELOG.md

* Update sdk/webpubsub/azure-messaging-webpubsubservice/README.md

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* Update sdk/webpubsub/azure-messaging-webpubsubservice/README.md

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

Co-authored-by: Liangying.Wei <lianwei@microsoft.com>

* Update Cosmos CODEOWNERS (#20572)

Replacing @southpolesteve and @zfoster with new owners

* Fix typo in doc/dev/README.md (#20411)

* fix typo compatability to compatibility

* Use xxx_if_not_exists API to simplify code example and to avoid uncessary issue (#20670)

* Replace deprecated unittest aliases (#20337)

* fix function has duplicate type signatures mypy error (#19739)

* fix for service principal environment vars (#21287)

* [Storage]fix type annotation (#20096)

* [Storage][Logging]Let users opt in logging_request_body (#19710)

* [Storage][Logging]Let users opt in logging_request_body

* Update policies.py

* Update policies.py

* Update policies.py

* Update policies.py

* logging response body

* Update settings_fake.py

* Feature/storage stg79 (#21286)

* update swagger

* encryption scope sas

* permanent delete sas

* sync copy from url with encryption scope

* manually edit swagger

* Update _version.py

* [AutoRelease] t2-containerservice-2021-10-18-97657 (#21294)

* CodeGen from PR 16215 in Azure/azure-rest-api-specs
Dev containerservice microsoft.container service 2021 09 01 (#16215)

* Adds base for updating Microsoft.ContainerService from version stable/2021-08-01 to version 2021-09-01

* Updates readme

* Updates API version in new specs and examples

* Add gmsaProfile in WindowsProfile for AKS (#15976)

* Add gmsaProfile in WindowsProfile for AKS

* fix spell errors

* Fix lint issue

* Update readme.md for AKS 2021-09-01

* Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 API (#16082)

* Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 RP API

* Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 RP API

Co-authored-by: Charlie Li <charlili@microsoft.com>

* Agent pool start/stop  (#16105)

* added examples for agentpool start/stop

* fixed code styling

* added 201 response code in examples

* added 201 response code object

* added missing parameter

* updated description for power state and added title

* added power state to request body properties

* Update specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2021-09-01/managedClusters.json

Co-authored-by: Matthew Christopher <matthchr@microsoft.com>

Co-authored-by: Matthew Christopher <matthchr@microsoft.com>

Co-authored-by: Charlie Li <39974812+chengliangli0918@users.noreply.github.com>
Co-authored-by: Charlie Li <charlili@microsoft.com>
Co-authored-by: rsamigullin <89222124+rsamigullin@users.noreply.github.com>
Co-authored-by: Matthew Christopher <matthchr@microsoft.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Charlie Li <39974812+chengliangli0918@users.noreply.github.com>
Co-authored-by: Charlie Li <charlili@microsoft.com>
Co-authored-by: rsamigullin <89222124+rsamigullin@users.noreply.github.com>
Co-authored-by: Matthew Christopher <matthchr@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* Increment package version after release of azure-messaging-webpubsubservice (#21280)

* Increment version for purview releases (#21279)

* Increment package version after release of azure-purview-administration

* Increment package version after release of azure-purview-catalog

* Increment package version after release of azure-purview-scanning

* [WIP]Refactor AzureJSONEncoder (#21028)

* Refactor AzureJSONEncoder

* Improved readability of AzureJSONEncoder datetime handling

* Rename _timestr_as_isostr() to _datetime_as_isostr()
* Move datetime.timedelta object handling function call (_timedelta_as_str()) to _datetime_as_isostr() inside
* Rename private method (_datetime_as_isostr, _timedelta_as_str) parameter value, o to dt, td

* Add some docstring

* Fix typo and add type checking

* Fix typo some docstring 
* Renamed _timedelta_as_str to _timedelta_as_isostr
* Add type checking in _datetime_as_isostr

* Improve type checking and rename some inner variables

* update changelog (#21308)

* adjust the docker-start-proxy to take advantage of the linux specific commands that allow contact of localhost (#21310)

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>

* Remove link to private repo (#21312)

* fix uri (#20632)

* fix uri

* update

* update changelog

* udpates

* [formrecognizer] Add proper defaults on DocumentTableCell (#21213)

* add proper defaults on document table cell

* default kind field

* set default in _from_generated and improve init

* revert changes to init, fix test comment

* set content default for kind

* update testcase to account for default scenarios

* Sync eng/common directory with azure-sdk-tools for PR 2100 (#21311)

* Add group id into metadata for java use

* Update Update-DocsMsPackages.ps1

* Update Update-DocsMsPackages.ps1

* Update eng/common/scripts/Update-DocsMsPackages.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/Update-DocsMsPackages.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Revert "Feature/storage stg79 (#21286)" (#21317)

This reverts commit 14496e7d739a14b7a91f4ad10d0e5a3ddf7b27a1.

* Sync eng/common directory with azure-sdk-tools for PR 2085 (#21325)

* Fix up identity resolver to make it more reliable, publish notification configuration as a tool

* Use both username and email to resolve queuing user

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>

* [AutoRelease] t2-recoveryservicesbackup-2021-10-19-33781 (#21330)

* CodeGen from PR 15881 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2021-08-01 (#15881)

* Adds base for updating Microsoft.RecoveryServices from version stable/2021-07-01 to version 2021-08-01

* Updates readme

* Updates API version in new specs and examples

* Fixing readme file

* version,CHANGELOG

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>

* update to latest test-proxy tag (#21334)

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>

* [Perf] Support multiple test proxies (#21203)

- Some scenarios require multiple test-proxy URLs to bottleneck client
- test-proxy URLs are assigned round-robin to parallel test instances
- Ported from Azure/azure-sdk-for-net#24265

* [AutoRelease] t2-hybridkubernetes-2021-10-04-45305 (#21037)

* CodeGen from PR 15956 in Azure/azure-rest-api-specs
New GA version changes - 2021-10-01 (#15956)

* New GA api-version changes- 2021-01-01

* readme changes

* readme changes

* add systemdata definition

* system data ref fix

* system data ref fix

* fix

* fix

* fix

* remove empty patch section

* revert patch section

* lint fix

* lint fix

* lintfix

* readme changes

* Update readme.md

* remove property bag from cc update example

* Fixing listClusterUserCreds examples

* hide creds

* example file naming changes and clientProxy flag correction

Co-authored-by: Siri Teja Reddy Kasireddy <sikasire@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Siri Teja Reddy Kasireddy <sikasire@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* del useless version (#21345)

* Updating CODEOWNERS for ACS Identity (#20881)

Co-authored-by: Aigerim Beishenbekova <aigerimb@Aigerims-MacBook-Pro.local>

* [core] fix isinstace str check in core rest (#21341)

* Sync eng/common directory with azure-sdk-tools for PR 2093 (#21350)

* Consume Codeowners parser library, ceperate users from teams in codeownerse

* Update get-pr-owners and related logic

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>

* [Search] Update for missing properties (#21205)

* Expose select kwarg on list operations.

* Update search for missing properties: session_id, scoring_statistics

* Update `SearchIndexerDataSourceConnection` missing properties: identity, encryption_key

* Fix linter issues.

* Update CHANGELOG.

* [ACR] React to stable/2021-07-01 swagger changes (#21110)

* Fix OrMetadata (#21316)

* settings files

* OrMedata Fix

* [AutoRelease] t2-chaos-2021-10-21-14806 (#21354)

* CodeGen from PR 16453 in Azure/azure-rest-api-specs
Adding Microsoft.Chaos API Version 2021-09-15-preview. (#16453)

* [baseline] Microsoft.Chaos private preview API Version 2021-09-15-preview.

* msft.chaos PublicPreview API 2021-09-15-preview
* Add neccessary readme's from swagger tool branch generation.
* remove artifiact resource from public preview.
* fix static linter issues.

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* [AutoRelease] t2-dataprotection-2021-10-19-69515 (#21333)

* CodeGen from PR 16451 in Azure/azure-rest-api-specs
Update readme.python.md (#16451)

* Update readme.python.md

* config readme

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* docs (#21360)

* Fix Monitor Query async logs query sample (#21351)

* Fix Monitor Query async logs query sample

* Remove extra space

* Added support for Async Generators in TableClient.submit_transaction method (#21119)

* added support for async iterables in submit_transcation method

* the warning is a known issue in pylint https://github.com/PyCQA/pylint/issues/3507

* fixed formatting issues

* Code tweaks + tests

* Fixed grammar

* Improved readability

* Fix for Py27

Co-authored-by: antisch <antisch@microsoft.com>

* move async test to _async (#21363)

* [SchemaRegistry] add async version of avro serializer (#21026)

fixes: #20709

* Remove azure-mgmt-webpubsub (#21347)

* Update Language-Settings.ps1 (#21367)

* patching last references to master in the repo! (#21339)

* [AutoRelease] t2-network-2021-10-21-48085 (#21357)

* CodeGen from PR 16471 in Azure/azure-rest-api-specs
readme.python config (#16471)

* version,CHANGELOG

* test

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* Removed auto pagination (#21358)

* Removed auto pagenation

* removed

* added manual pagenation

* fixed issue

* spacing

* pylint

* linter

* [Cosmos] get_user_client() method documentation update (#21379)

* Fully automate cluster buildout. Add azure file share mount to stress tests. (#21382)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* update error code in tests (#21362)

* [formrecognizer] Rename DocumentElement to DocumentContentElement (#21323)

* rename DocumentElement to DocumentContentElement

* add to changelog

* [AutoRelease] t2-keyvault-2021-10-15-69767 (#21276)

* CodeGen from PR 16400 in Azure/azure-rest-api-specs
Update readme.python.md (#16400)

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* [AutoRelease] t2-chaos-2021-10-25-61789 (#21390)

* CodeGen from PR 16501 in Azure/azure-rest-api-specs
Update Chaos Client Name + Update outdated examples. (#16501)

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>

* [AVA] Updated sdk to 1.1 (#21326)

* updated sdk to 1.1

* small changes to changelog and readme

* adding preview version back to changelog

* updating version number

* changing order of versions in readme

* [AutoRelease] t2-azurearcdata-2021-10-14-24172 (#21251)

* CodeGen from PR 16275 in Azure/azure-rest-api-specs
Adding 2021-11-01 version for Microsoft.AzureArcData (#16275)

* Adding API Version 2021-11-01

* Updating example and naming

* Remove password

* Update field description

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* [AutoRelease] t2-containerregistry-2021-10-26-15283 (#21410)

* CodeGen from PR 15990 in Azure/azure-rest-api-specs
[ACR] [New Api Version] add 2021-08-01-preview  (#15990)

* Initial commit for comparison with previous release

* Add new swagger 2021-08-01-preview and examples

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* [AutoRelease] t2-cosmosdb-2021-10-26-16894 (#21412)

* CodeGen from PR 15733 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.DocumentDB to add version stable/2021-10-15 (#15733)

* Adds base for updating Microsoft.DocumentDB from version stable/2021-06-15 to version 2021-09-15

* Updates readme

* Updates API version in new specs and examples

* Add support for fetching continuous backup information for latest restorable timestamp.

* Adding locations API and backupRedundancy

* Fixing ref

* Add 10-15 Preview along with ClientEncryptionKey management changes

* Renaming 2021-09-15 api version to 2021-10-15

* Fixing some more renames

* fix validation checks

* add clientencryptionkeys to custom-words

* initial commit

* Swagger specifiations

* readme file updated

* Review comments addressed

* Added TotalThroughputLimit property to Database Create and Update

* Rebased and added type to capacity

* Added changes to preview folder as well

* Added changes to missing files

* initial checkin of base version

* Adding examples; /deallocate and /start api in swagger

* update readme.md file

* Removing 2021-10-15-preview changes

* managed cassandra swagger changes for GA

* Fixing linter issues

* minor description fixes

* adding missing example

* add stable and preview swagger

* revert to Thu Sep 9 2021 change

* fix linter errors in swagger

* fix validation errors

* validation fixes

* remove fetchNodeStatus from stable

* remove unused example file, fix validation error

* Fixing the spell check and formatting issues

* remove /repair api, make /command async

* remove unreferrenced example json

* remove pageable link from /status api

* remove backups api, add cassandraAuditLoggingEnabled property

* add cassandraAuditLoggingEnabled property

* make /status api async, minor fixes

* remove async tag to /status

* remove connectivity property, add Ldap as preview

* remove unreferenced example files

* use guid in subid for examples

* add backupStorageCustomerKeyUri property

* fix api response code

* remove ldap

* Changing operationId for locations API

* review comments

Co-authored-by: REDMOND\amisi <amisi@microsoft.com>
Co-authored-by: Anuj Toshniwal <antoshni@microsoft.com>
Co-authored-by: Abhijit Karanjkar <abhijitkaranjkar@gmail.com>
Co-authored-by: Praful Johari <pjohari@microsoft.com>
Co-authored-by: visunda <visunda@microsoft.com>
Co-authored-by: Vivek Sundararajan <s.vivek.rajan@gmail.com>
Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: REDMOND\amisi <amisi@microsoft.com>
Co-authored-by: Anuj Toshniwal <antoshni@microsoft.com>
Co-authored-by: Abhijit Karanjkar <abhijitkaranjkar@gmail.com>
Co-authored-by: Praful Johari <pjohari@microsoft.com>
Co-authored-by: visunda <visunda@microsoft.com>
Co-authored-by: Vivek Sundararajan <s.vivek.rajan@gmail.com>
Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* Update reply comment (#21399)

* release_iseus_status_auto_reply

* issue_aoto_close_revert

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update reply_generator.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update reply_generator.py

* Add files via upload

* Update reply_generator.py

* Update update_issue_body.py

* Update reply_generator.py

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* add auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update auto_close.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* fix bug

* Update main.py

* Update auto_close.py

* Update auto_close.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update auto_close.py

* Update main.py

* Update auto-close

* Update auto_pipeline_run.py

* Update update_issue_body.py

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* Add pipeline link

* Update pipeline link

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update requirement.txt

* Update auto_pipeline_run.py

* Add get_python_pipeline

* Update auto_pipeline_run.py

* test

* test

* add outputfolder

* add label

* Update main.py

* Update get_python_pipeline.py

* Update main.py

* Update auto_pipeline_run.py

* Add utils

* Update main.py

* Update main.py

* Delete old py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update utils.py

* Update utils.py

* Update main.py

* Update main.py

* Update reply_generator.py

* Update utils.py

* Add get_changelog function

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update reply_generator.py

* Update function

* del useless code

* Update utils.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update utils.py

* Update auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update utils.py

* Update utils.py

* Fix auto-close bug

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update release_issue_status.yml for Azure Pipelines

* Add assign

* Update reply_generator.py

* Update reply_generator.py

* Update assignee

* Update assignee

* Update main.py

Co-authored-by: Zed <601306339@qq.com>
Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* [textanalytics] feature/ta-v3.2-preview.2 (#21409)

* [textanalytics] regen on v3.2 preview.2 (#20674)

* regenerate with version 3.2-preview.2

* hook up convenience layer to new api version

* fix import and skip tests for now

* [textanalytics] add support for custom text actions (#20721)

* impl for custom actions sync/async + models

* remove project_name and deployment_name from result models

* update naming to classify documents

* add samples for arch board

* fix sample

* update naming to align with all langs

* update sample names

* arch board feedback

* rename samples and fix types

* regenerate on latest swagger

* add new tests and recordings

* make corrections to code based on renames

* remove samples from PR

* fix

* update changelog

* update missing docstrings

* bump azure-core for azure.core.rest

* re-enable tests and record for v3.2-preview.2 (#21106)

* add 2.7 disclaimer in readme and 3.10 to setup classifiers (#21096)

* [textanalytics] support multiple actions of the same type (#21152)

* allow support for multiple actions of the same type

* rerecord all analyze tests now that we set task_name

* lint

* review feedback

* izzy's feedback

* [textanalytics] add samples for custom text actions (#21182)

* add samples for custom text actions

* add samples + links to samples readme

* wording

* switch to asyncio.run in async samples

* [textanalytics] update readme + docs (#21272)

* readme updates

* more docs updates

* update with aka links to service docs

* updating env vars with temp persistent resource (#21342)

* rerecord test

* [textanalytics] enabling support for rehydration of LROs in TA (#21338)

* enabling support for rehydration of LROs in TA

* lint

* updating docs

* review feedback

* update envars so live tests pass

* Add latest released version to prepare prerelease (#21420)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>

* Removing URL validation

* Removing validations for recording apis

* remove unnecessary awaits in test (#21423)

* Update Monitor Query library samples (#21371)

* Update Monitor Query library samples

* Update casing of uri

* Link to DefaultAzureCredential docs

* [core] remove asynciterable inclusion in 2.7 HttpRequest content keyword description (#21424)

fixes #21406

* fix doc about duplicate actions (#21429)

* [core] fix "read" not awaited warning in ContentDecodePolicy for async responses (#21318)

* fix assertion for signature type fields (#21428)

* Auto check base branch (#21441)

* version auto-calculation rule

* single api version rule

* Update main.py

* additional rule for track1

* when changelog is null

* Update PythonSdkLiveTest.yml for Azure Pipelines

Add `ISSUE_LINK`

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update livetest_package.txt

* Create create_pr.py

* Update PythonSdkLiveTest.yml for Azure Pipelines

use python script tu create pr

* Update PythonSdkLiveTest.yml for Azure Pipelines

* create py

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update token

* Update token

* test create_pr

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update create_pr.py

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update PythonSdkLiveTest.yml for Azure Pipelines

* add_comment

* update by jf

* Update PythonSdkLiveTest.yml

* Update create_auto_release_pr

* Update create_auto_release_pr.py

* Update create_auto_release_pr.py

* Update yaml and py

* Update create_auto_release_pr.py

* Update create_auto_release_pr.py

* Update create_auto_release_pr.py

* Update PythonSdkLiveTest.yml

* Update create_auto_release_pr.py

* Update PythonSdkLiveTest.yml

* Update PythonSdkLiveTest.yml for Azure Pipelines

* Update create_auto_release_pr.py

* update for swagger exception

* update

* Update create_auto_release_pr.py

* update

* update

* update

* update

* update

* update

* update

* Update main.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
Co-authored-by: BigCat20196 <1095260342@qq.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* auto branch attention (#21445)

* release_iseus_status_auto_reply

* issue_aoto_close_revert

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update reply_generator.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update reply_generator.py

* Add files via upload

* Update reply_generator.py

* Update update_issue_body.py

* Update reply_generator.py

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* add auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update auto_close.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* fix bug

* Update main.py

* Update auto_close.py

* Update auto_close.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update auto_close.py

* Update main.py

* Update auto-close

* Update auto_pipeline_run.py

* Update update_issue_body.py

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* Add pipeline link

* Update pipeline link

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update requirement.txt

* Update auto_pipeline_run.py

* Add get_python_pipeline

* Update auto_pipeline_run.py

* test

* test

* add outputfolder

* add label

* Update main.py

* Update get_python_pipeline.py

* Update main.py

* Update auto_pipeline_run.py

* Add utils

* Update main.py

* Update main.py

* Delete old py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update utils.py

* Update utils.py

* Update main.py

* Update main.py

* Update reply_generator.py

* Update utils.py

* Add get_changelog function

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update reply_generator.py

* Update function

* del useless code

* Update utils.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update utils.py

* Update auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update utils.py

* Update utils.py

* Fix auto-close bug

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update release_issue_status.yml for Azure Pipelines

* Add assign

* Update reply_generator.py

* Update reply_generator.py

* Update assignee

* Update assignee

* Update main.py

* Update main.py

* Update main.py

Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: BigCat20196 <1095260342@qq.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* [SchemaRegistry] avro serializer add exceptions (#21381)

* exceptions file

* abstract object serializer

* add tests

* async apache tests

* lint

* update internal docstring

* more docstring

* fix tests

* async update

* fix

* remove fastavro

* docstring

* test fix

* adams comments

* lint

* comments

* changelog

* nit

* lint

* nit

* [qna] fix metadata conversion from user's tuples to the dict object the service requires (#21432)

* [textanalytics] updating custom samples (#21434)

* updating samples to use given training data

* updates

* Sync eng/common directory with azure-sdk-tools for PR 2152 (#21425)

* Remove the new sdk check and populate json for track 1 package

* Update Save-Package-Properties.ps1

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>

* Removing bad comments

* [Test Proxy] Rename decorators, support variables API (#21386)

* [AutoRelease] t2-videoanalyzer-2021-10-25-84743 (#21389)

* CodeGen from PR 16513 in Azure/azure-rest-api-specs
Remove readonly on segment length property (#16513)

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* [ServiceBus] GA SBAdminClient maxMessageSizeInKilobytes (#21353)

* [ServiceBus] Add large message support to SBAdministrationClient (#20812)

* impl

* update swagger

* upload recordings

* fix mypy pylint

* review feedback

* update classifier

* Increment version for servicebus releases (#21115)

Increment package version after release of azure-servicebus

* add multi api version support

* add api version

* fix mypy

* more mypy fix

* address review

Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>

* opt out of autorest verification (#21473)

* Bit more complicated parsing of the `requirements_to_exclude` during `install_depend_packages.py` (#21459)

* we split the reqs being compared by specifier, then compare the whole package names. no more startsWith means we don't accidentally clean out a real dev_req
* apply black to install_depend_packages.py

* Remove legacy resource group live test deployment (#21458)

* Remove legacy resource group live test deployment

* Remove DeployArmTemplate flag and deploy by default

* Use absolute path to deploy test resources template

* [QnA] Renames (#21464)

* First GA regen

* Updated operations

* Updated tests

* Updated samples

* Updated changelog

* Fixed some type hints

* Review feedback

* Fixed URLs

* Renamed context

* [QnA] Made operations groups internal (#21477)

* Made operations private

* Updated changelog

* update doc links (#21483)

* [KV] Update logging tests (#21454)

* update release issue status (#21489)

* release_iseus_status_auto_reply

* issue_aoto_close_revert

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update scripts/release_issue_status/main.py

* Update scripts/release_issue_status/update_issue_body.py

* Update reply_generator.py

* Update main.py

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update scripts/release_issue_status/update_issue_body.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update scripts/release_issue_status/main.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update reply_generator.py

* Update update_issue_body.py

* Update main.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update update_issue_body.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update reply_generator.py

* Add files via upload

* Update reply_generator.py

* Update update_issue_body.py

* Update reply_generator.py

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* add auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update auto_close.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* fix bug

* Update main.py

* Update auto_close.py

* Update auto_close.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update auto_close.py

* Update main.py

* Update auto-close

* Update auto_pipeline_run.py

* Update update_issue_body.py

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update auto_pipeline_run.py

* Add pipeline link

* Update pipeline link

* Update auto_pipeline_run.py

* Update release_issue_status.yml for Azure Pipelines

* Update auto_pipeline_run.py

* Update requirement.txt

* Update auto_pipeline_run.py

* Add get_python_pipeline

* Update auto_pipeline_run.py

* test

* test

* add outputfolder

* add label

* Update main.py

* Update get_python_pipeline.py

* Update main.py

* Update auto_pipeline_run.py

* Add utils

* Update main.py

* Update main.py

* Delete old py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update main.py

* Update utils.py

* Update utils.py

* Update main.py

* Update main.py

* Update reply_generator.py

* Update utils.py

* Add get_changelog function

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update reply_generator.py

* Update function

* del useless code

* Update utils.py

* Update main.py

* Update reply_generator.py

* Update main.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update reply_generator.py

* Update main.py

* Update main.py

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update release_issue_status.yml for Azure Pipelines

* Update release_issue_status.yml for Azure Pipelines

* Update main.py

* Update utils.py

* Update auto-close

* Update release_issue_status.yml for Azure Pipelines

* Update utils.py

* Update utils.py

* Fix auto-close bug

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update utils.py

* Update release_issue_status.yml for Azure Pipelines

* Add assign

* Update reply_generator.py

* Update reply_generator.py

* Update assignee

* Update assignee

* Update main.py

* Update main.py

* Update main.py

* update md

* update md

* update md

* update md

* update md

* update md

Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: BigCat20196 <1095260342@qq.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>

* version rule (#21490)

* [textanalytics] expose action errors (#21472)

* update implementation

* add tests and edits

* update changelog

* review feedback

* update (#19662)

* [formrecognizer] Add signature field type tests (#21480)

* add signature field type tests, update recordings

* update test assertion method

* [Search] Add reset_documents and reset_skills operations (#21475)

* Add reset_skills and reset_documents calls.

* Update changelog.

* Add async operations. Allow name or object invocation.

* Code review comment.

* Expose DocumentKeysOrIds and update typehints.

* Add reset_skills tests.

* Code review feedback.

* [SchemaRegistry] fix failing avro tests (#21478)

* fix

* recordings

* update avro version

* importerror

* pin avro dep

* [SchemaRegistry] remove serializer namespace from client package (#21474)

* remove serializer nmspc from schemaregistry

* newline

* [Identity] Fix multi-tenant auth using async AadClient (#21322)

* [Schema Registry] bug bash docs (#21457)

fixes: #21177

* [textanalytics] custom model docstrings edits (#21498)

* update model docstrings

* fix

* Handling Proper Defaulting of `BuildTargetingString` within nested templates (#21426)

* adding targeting-string-resolve.yml and calling at the root of each "job" in our pipeline. The BuildTargetingString should apply appropriately in all cases now.

* Improved some error behaviour (#21499)

* re-gen clu LLC client (#21417)

* regenrate client

* update model names

* tmp commit

* update model names

* fixing tests

* fix samples

* update readme

* fix remaining samples

* fix env key error

* add recorded tests

* update samples

* add additional samples

* async samples

* disable some samples

* update samples readme

* revert setup.py

* fix broken link

* [AutoRelease] t2-eventhub-2021-10-25-83263 (#21397)

* CodeGen from PR 16363 in Azure/azure-rest-api-specs
EventHub : New API version 2021-11-01 (#16363)

* base commit for new api version 2021-11-01

* new api version 2021-11-01 changes

* CI fixes

* CI fixes

* fix for Python SDK

* added common def v2

* avocado fix

* updated common types

* update to address S360

* S360 fix for DisasterRecoveryConfigs

* Revert "S360 fix for DisasterRecoveryConfigs"

This reverts commit 2476975abd304ee89f1382ceaee280ad3a711e15.

* Added SchemaRegistry API

* CI fixes - Schemagroup

* corrected Schemagroup group properties

* reverted the proxyresource location change

* Revert "reverted the proxyresource location change"

This reverts commit ac79e8a163198742f32adfdc40cc11aa2e039e90.

* addresing S360 swagger correctness fro operations and capture

* updated description for datalake in capture

* subscription format to uuid

Co-authored-by: Damodar Avadhani <davadhani@microsoft.com>
Co-authored-by: v-ajnava <v-ajnava@microsoft.com>

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Damodar Avadhani <davadhani@microsoft.com>
Co-authored-by: v-ajnava <v-ajnava@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>

* delete eventgrid (#21509)

* Eventgrid del temporarily (#21510)

* delete eventgrid

* Update ci.yml

* Revert "delete eventgrid" (#21512)

* Revert "delete eventgrid (#21509)"

This reverts commit 700dc5e334e868df4b61fba97cf183c31084bbd4.

* Update ci.yml

* Update CHANGELOG.md

* [formrecognizer] Initial work for adding get_children methods (#21224)

* initial get_children work

* add support for cross page elements, update return types

* add tests

* add recordings

* update DocumentContentElement test

* move get children to DocumentKeyValueElement, typing fixes

* remove references to selection marks

* fix document key value element test

* remove long type annotation

* update changelog

* newline

* doc fixes and improvements

* rename test class

* refactor get children methods

* update wording for confidence

* fix document content element docs

* specify return type in get element list helper

* more doc fixes

* fix type return

* refactor get_children into separate methods

* update tests for new methods

* add docs

* update changelog

* remove extra param and check from internal _get_children

* transform words and lines to convenience layer versions

* add test

* pass named params

* pin chardet to assist withfailures (#21521)

* Sync eng/common directory with azure-sdk-tools for PR 2177 (#21523)

* support charset_normalizer (#21520)

* support charset_normalizer

* update

* update

* Increment package version after release of azure-core (#21532)

* [textanalytics] release prep (#21522)

* update release date

* update sample descriptions

* update swagger readme

* bump azure-core

* [AutoRelease] t2-signalr-2021-11-01-50053 (#21514)

* CodeGen from PR 16044 in Azure/azure-rest-api-specs
[SignalR] Add stable version 2021-10-01 (#16044)

* init

* remove

* Add 2021-10-01

* Minor update

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* Use https for sparse checkout command (#21535)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* Use docker to do package validation. (#21541)

Co-authored-by: Sima Zhu <sizhu@microsoft.com>

* fix UnboundLocalError (#19744)

* fix UnboundLocalError

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* [rest] add kwargs to iter_bytes and iter_raw (#21529)

* add ReplaceLatestEntryTitle parameter for updating changelog (#21485)

* [SchemaRegistry] fix logging_enable bug (#21488)

* move kwarg

* adams comments

* move to helper

* update samples/tests with logging

* remove from samples

* Increment package version after release of azure-ai-textanalytics (#21547)

* [QnA][CLU] Release prep (#21518)

* Added release date

* Bump core version

* Fix async samples

* Bug in setup.py

* Monitor metadata bg (#21513)

* Sync eng/common directory with azure-sdk-tools for PR 2053 (#21558)

* Changing inline bash for stress test resource deployment

* PR-mod

* pr-mod

* pr-mod

* pr-mod

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>

* raise IncompleteReadError if only receive partial response (#20888)

* raise IncompleteReadError if only receive partial response

* update

* Update CHANGELOG.md

* update

* update

* update

* update

* update

* update

* update

* address review feedback

* update

* update

* update

* update

* Update exceptions.py

* [rest] fix str check in content kwarg to be six.string_types check for 2.7 (#21550)

* Exclude azure-mgmt-videoanalyzer from docs onboarding (#21564)

* [rest] GA in docs! (#21545)

* Support for CNCF cloud event (#21236)

* Support for CNCF cloud event

* changelog

* lint

* Update sdk/eventgrid/azure-eventgrid/dev_requirements.txt

* comments

* ci plus do

* tests

* comments

* readme

* comments

* Update _helpers.py

* lint

* Update _helpers.py

* Update _helpers.py

* [rest] allow users to pass file descriptors to json without raising (#21504)

* update release date (#21574)

* Stress test usability feedback (#21569)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* [formrecognizer] Improve URL related doc strings (#21208)

Fixes #20953
Fixes #21173

* [formrecognizer] Use get_words and get_lines in samples (#21533)

* use get_words and get_lines in samples

* fix comment and add info on README

* fix wording in sample

* update readme

* revert additions to README

* add get_words() example to README

* add get children samples

* remove get_lines from entities

* update comment

* Minor updated to parameters and argument message (#21551)

* unredact some headers/query params at the debug info level (#21571)

* fix test by adding raw property in mock response (#21577)

* [AutoRelease] t2-deviceupdate-2021-11-04-38122 (#21250)

* CodeGen from PR 16197 in Azure/azure-rest-api-specs
Changing Identity definition reference to common type (#16197)

This also adds the necessary user assigned identity definitions

* version,CHANGELOG

* Update CHANGELOG.md

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>

* [AutoRelease] t2-quota-2021-11-01-54332 (#21507)

* CodeGen from PR 16438 in Azure/azure-rest-api-specs
[QuotaRP] Fix LimitObject polymorphism (#16438)

* Fix LimitObject polymorphism

* move properties out of allOf

* add type to LimitObject

* value is required

* Updating Operations Tag to QuotaOperations.

* Update quota.json

Updating Summary field for operations.

Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* Add prompt before replasing latest release title on prepare release run (#21579)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>

* [SchemaRegistry] final api review changes (#21589)

* adding exception to regression tests for telemetry-exporter (#21576)

* Increment package version after release of azure-core (#21594)

* update type hints to reflect actual document body (#21593)

* [formrecognizer] Update changelog for release (#21555)

* update changelog for release

* update samples readme

* add changelog entry for new samples

* reword samples entry

* Update azure-core version to unbreak Search. (#21599)

* [acr] regen with autorest 5.11.0, bump min core dep to 1.20.0 (#21600)

* Revert "Update azure-core version to unbreak Search. (#21599)" (#21610)

This reverts commit 8e98c7f4c38c8303475ca125a63258915c4c5d08.

* update changelog (#21608)

* [SchemaRegistry] update core + SR version (#21573)

for issue #21460

* [SchemaRegistry] generate GA SR from swagger (#21570)

fixes: #20661

* [formrecognizer] Remove get children methods (#21602)

* remove get_words and get_lines methods on models

* remove references to parent elements

* remove extra tests

* delete recordings

* update sample to use document get_words

* remove references to deleted methods in samples

* update changelog

* remove references to old samples in README

* add error for DocumentLines converted from dicts

* shorten long line

* [WebPubSub] Use consistent service description and introduction across all languages (#21544)

* Update Web PubSub readme

1. To keep the service description consistent across different languages
2. update some links

* Update README.md

* delete redundant network version (#21612)

* STG79 Preview (#21591)

* settings files

* update swagger

* encryption scope sas

* permanent delete sas

* sync copy from url with encryption scope

* manually edit swagger

* Update _version.py

* gitignore

* skip failure

* updated versions

* changelog

Co-authored-by: xiafu <xiafu@microsoft.com>
Co-authored-by: Xiaoxi Fu <49707495+xiafu-msft@users.noreply.github.com>

* [AutoRelease] t2-eventgrid-2021-10-21-28743 (#21361)

* CodeGen from PR 16469 in Azure/azure-rest-api-specs
Adding missing identity properties and ExtensionTopics operation (#16469)

* Adding missing identity properties and ExtensionTopics operation

* fixing prettier check issues

* Add identity to topic

* Add system data to Extension topic response

* fix lintdiff issue

* version,CHANGELOG

* test

* update test

* Update test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: BigCat20196 <1095260342@qq.com>

* Latest API(2021-10-31-preview) changes implementation in azure-communication-identity (#21331)

* update Communication Identity API to enable to use M365 Teams identities to build custom Teams endpoint

* the convenience layer for custom teams endpoint  is created, samples are added, updated CHANGELOG.md, README.md

* live tests & recordings are added

* changed communication identity SDK version & updated live test recordings

* fixed API review comment&updated all related files

* replacing ACS --> Communication Services

* renamed function name as per the azure board review

* disable tests for custom teams endpoint in int

* fix lint issues

* small lint issue fix

* regenerated code which supports older api switching

* api version switching added to clients classes

* fixed failed tests for azure-communication-networktraversal

* recordings are updated

* indent fix in identity_samples.py

Co-authored-by: Petr Švihlík <rocky.intel@gmail.com>

* indent fix in identity_samples_async.py

Co-authored-by: Petr Švihlík <rocky.intel@gmail.com>

* generate_teams_user_aad_token replaced to test utils

* test commit, reverting generated code imports

* reverting the last commit

* upgraded min version of azure-core&msrest for autogenerated code

* upgraded min version of azure-core&msrest in shared_requirements.txt

* upgraded min version of azure-core&msrest for chat SDK

* upgraded min version of azure-core&msrest in shared_requirements.txt for chat sdk

* classifiers dev status updated to beta, azure-core&msrect upgraded for networktraversal

Co-authored-by: Martin Barnas <martinbarnas@microsoft.com>
Co-authored-by: Aigerim Beishenbekova <aigerimb@DESKTOP-H8RSQNI.corp.microsoft.com>
Co-authored-by: Aigerim Beishenbekova <aigerimb@DESKTOP-PIOH0CF.corp.microsoft.com>
Co-authored-by: Petr Švihlík <rocky.intel@gmail.com>
Co-authored-by: Aigerim Beishenbekova <aigerimb@DESKTOP-PQMEAO3.corp.microsoft.com>

* [AutoRelease] t2-monitor-2021-11-03-63776 (#21559)

* CodeGen from PR 16645 in Azure/azure-rest-api-specs
config readme (#16645)

* version,CHANGELOG

* test

* Update dev_requirements.txt

* Update dev_requirements.txt

* test,version,CHANGELOG

* test,version,CHANGELOG

* test yaml

* Update CHANGELOG.md

* fix test

* fix test

* fix test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
Co-authored-by: BigCat20196 <1095260342@qq.com>

* Add Mixed Reality Remote Rendering SDK (#16643)

* Azure Remote Rendering python SDK

fix type hints, fix linter issues

linter and type hints

mypy type fixes

rebase to new authorization pr, regenerate models for updated swagger spec pulling out remoterendering functions

update MANIFEST.in to include all needed files

fix mypy type issues

linter issues

add namespace exclusion for mixed reality

install and extra requires

dev requirements

TokenCredential -> AsyncTokenCredential

version to 1.0.0b1 preview version

remove yaml from manifest

factoring out polling, start models, linting and mypy

add option to specify api version when creating a client

making params to constructor keyword only

undo kwargs changes to client, but want to be able to go back

add rehyrdration of poller

fix linting issues

copy shared code from authentication package

rename of models

make params in async client keyword only

rename update_rendering_session to extend_rendering_session

change kwargs, point to release swagger, change typo

move out of mixedreality folder

pipeline setup files

fix relative path, fename env variable

rename md files so that they are not flagged because of missing headings in the ci pipeline

intermediate rename

rename and move

move pipeline things back

add test infra setup

fix relative paths

fix ci.yml

fix msrest version

in line with mr authentication update azure-core minimum version

remove package version from namespace package

switch to released api version, use swagger directive to rename conversion output

fix changelog

reference namespace package

fix relative dev requirements path

construct client tests

tests

debug live pipeline

try to get live tests

fix python 27

add async client tests, exclude async tests from python 2.7

fix python 3.5 type hinting issue

add recorded tests, enable configuring polling interval on client and per request

put back nspkg to dev requirements

linting

add line to changelog

fix artifact paramater name

prolong session time to prevent live issues in spin up

fix recorded tests

rename Error to RemoteRenderingError, change poller continuation token to not use pickle

try to fix CI

try to fix 2.7

bump template azure core version so analyze step does not complain

more fudging with dev_requirements to fix pipeline

remove pickle from polling

python 2.7 fix

rename max_lease_time_minutes to lease_time_minutes, rename extend_sesssion to update_session

* AsyncLROPoller was introduced in 1.6.0

* fix frozen requirement

* fix mypy error

* throw an exception on error state of conversion and session polling

* fix issues with polling interval in kwargs

* updated README

* updated samples

* fix link

* async polling and readme fix

* fix README long description issue

* polling type fix

* fix README long description issue

* fix tests for failing conversion

* add py.typed to Manifest

* fix package name

* fix type and add how to create sts client

* do not expose RemoteRenderingApiVersion

* make error message clearer

* fix documentation path

* rename remote_renderin_endpoint to endpoint

* adjust session poller default polling interval

* added python 2.7 disclaimer, fix AAD example

* 'can not' -> 'cannot' in clients

* remove deleted:    azure-mixedreality-remoterendering_python.json

* remove outdated comment

* make lease_time_minutes in update_rendering_session a kwargs

* update for release

* [formrecognizer] Add new samples to README (#21607)

* add new sample to table

* fix link

* regenerate artifacts (#21525)

* regenerate artifacts

* update

* update

* update

* [ServiceBus] update release notes (#21615)

* [SchemaRegistry] remove version from docstring (#21617)

* update azure-search-documents dependency on typing-extensions to >= 3.7.4.3 (#21618)

* [Key Vault] Address archboard feedback (#21567)

* Changelog and version (#21614)

* adding trust-proxy-cert to the repo itself (#21624)

* Update changelog. (#21625)

* [SchemaRegistry] avro docs cleanup (#21619)

* avro cleanup

* readme update

* [rest] store decompressed body in response content for aiohttp with decompression headers (#21620)

* [SchemaRegistry] regenerate to fix client side validation (#21629)

* doc updates (#21628)

* Change versions to beta (#21627)

* settings files

* gitignore

* update versions

* [KV-keys]Name change in SKR (#21609)

* [SchemaRegistry] swagger updates + run black (#21631)

* regen josh's swagger updates + run black

* rerecord

* changelog

* [rest] add decompression tests and fix multiple body() calls (#21630)

* [KV] Enable SKR tests on KV (#21621)

* Sync eng/common directory with azure-sdk-tools for PR 2219 (#21622)

* adding retry to docker container start

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>

* Increment package version after release of azure-batch (#20007)

* update changelog (#21644)

* Changelog Date Formatting (#21646)

* settings files

* gitignore

* changelog date fix

* changelog date fix

* Use working region/subscription for search deployments (#21568)

* update changelog (#21648)

* Increment version for core releases (#21649)

Increment package version after release of azure-core

* update broken links (#21643)

* update broken links

* update links

* fix dup content (#21651)

* [SchemaRegistry] update format type (#21647)

* updating chart.yaml for stress-test-addons (#21650)

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>

* [AutoRelease] t2-synapse-2021-11-08-68636 (#21640)

* CodeGen from PR 16581 in Azure/azure-rest-api-specs
[Synapse]Add auto gen readme files for cli kusto support (#16581)

* Add blockchain to latest profile

* Add additional types

* addclikustosupportautogenfiles

* removealias

* addrepo

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* [webpubsub] add live tests (#21654)

* [AutoRelease] t2-network-2021-11-05-99038 (#21613)

* CodeGen from PR 16618 in Azure/azure-rest-api-specs
[python] repl…
  • Loading branch information
Show file tree
Hide file tree
Showing 3,893 changed files with 523,652 additions and 279,022 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
/sdk/communication/ @acsdevx-msft
/sdk/communication/azure-communication-phonenumbers/ @RoyHerrod @danielav7 @whisper6284 @AlonsoMondal
/sdk/communication/azure-communication-sms/ @RoyHerrod @arifibrahim4
/sdk/communication/azure-communication-identity/ @Azure/acs-identity-sdk

# PRLabel: %KeyVault
/sdk/keyvault/ @schaabs @chlowell @mccoyp @YalinLi0312
Expand All @@ -65,7 +66,7 @@
/sdk/containerservice/ @samkreter @zqingqing1 @GaneshaThirumurthi

# PRLabel: %Cosmos
/sdk/cosmos/ @southpolesteve @zfoster
/sdk/cosmos/ @kushagraThapar @simorenoh @simplynaveen20 @xinlian12 @moderakh

# PRLabel: %Data Factory
/sdk/datafactory/ @hvermis
Expand Down
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,17 @@ venv/
code_reports

# Azure Storage test credentials
sdk/storage/azure-storage-blob/tests/settings/settings_real.py
sdk/storage/azure-storage-queue/tests/settings/settings_real.py
sdk/storage/azure-storage-file-share/tests/settings/settings_real.py
sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py


# The locations below are deprecated - keep to prevent any accidental secrets leakage ==========
sdk/storage/azure-storage-blob/tests/_shared/settings_real.py
sdk/storage/azure-storage-queue/tests/_shared/settings_real.py
sdk/storage/azure-storage-file-share/tests/_shared/settings_real.py
sdk/storage/azure-storage-file-datalake/tests/settings_real.py

# The locations below are deprecated - keep to prevent any accidental secrets leakage ==========
sdk/storage/azure-storage-blob/tests/settings_real.py
sdk/storage/azure-storage-queue/tests/settings_real.py
sdk/storage/azure-storage-file-share/tests/settings_real.py
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You can find the [most up to date list of all of the new packages on our page](h
### Client: Previous Versions

Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide you with similar functionalities to the Preview ones as they allow you to use and consume existing resources and interact with them, for example: upload a blob. They might not implement the [guidelines](https://azure.github.io/azure-sdk/python/guidelines/index.html) or have the same feature set as the Novemeber releases. They do however offer wider coverage of services.
Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide you with similar functionalities to the Preview ones as they allow you to use and consume existing resources and interact with them, for example: upload a blob. They might not implement the [guidelines](https://azure.github.io/azure-sdk/python/guidelines/index.html) or have the same feature set as the November releases. They do however offer wider coverage of services.

### Management: New Releases
A new set of management libraries that follow the [Azure SDK Design Guidelines for Python](https://azure.github.io/azure-sdk/python/guidelines/) are now available. These new libraries provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more.
Expand Down
2 changes: 1 addition & 1 deletion doc/dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Overview of the documents:
- [Release](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/release.md) : How to release a package when ready
- [Packaging](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/packaging.md) : How to organize packaging information for packages under `azure`
- [Testing](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/tests.md): How to write unit and functional tests for a library
- [Docstrings and Type hints](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/docstring_typehint.md): How to document an SDK for compatability with internal tools (API View) and our documentation at [MS Docs][ms_docs] and the [azure.github.io][azure_github_io] site.
- [Docstrings and Type hints](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/docstring_typehint.md): How to document an SDK for compatibility with internal tools (API View) and our documentation at [MS Docs][ms_docs] and the [azure.github.io][azure_github_io] site.

The [mgmt](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt) folder contains information specific to management packages (i.e. packages prefixed by `azure-mgmt`)

Expand Down
2 changes: 1 addition & 1 deletion doc/dev/get_unreleased_package_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ The following figure shows the wheel and zip of the package.Click to download th
(1) If there is no link in the figure above, it may be folded. You can also find it in the check.
![img.png](unreleased_package_guide_example3.png)

(2) [Private repo](https://github.com/Azure/azure-rest-api-specs-pr) can only be triggered when the target branch is `main`
(2) The private Azure/azure-rest-api-specs-pr repo can only be triggered when the target branch is `main`
44 changes: 44 additions & 0 deletions doc/dev/package_version/package_version_rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
This file claims the rules how Python decide next version number for package.

The package version contains two part:
1. the package is preview or stable?
2. version number

# How to judge preview or stable?
Python SDK is generated with [swagger](https://github.com/Azure/azure-rest-api-specs), so if swagger content is preview,
the package is preview; if swagger content is stable, the package is stable.

(1) For single api package(for example: [datadog](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/datadog)),
as long as the current tag is preview, the package version should be preview

(2) For multi api package(for example: [network](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/network/azure-mgmt-network)),
there will be `DEFAULT_API_VERSION`(for example: [`DEFAULT_API_VERSION` of network](https://github.com/Azure/azure-sdk-for-python/blob/59709af16b7cd29a51d562137bc5bbfdf53f9327/sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py#L60)).
As long as it is preview, then the package version is preview.

(note1: If the name of tag contains 'preview' or the tag contains files of 'preview' folder, then the tag is preview tag.
For exampe: [preview tag](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager#tag-package-2021-06-01-preview))

(note2: If the api-version contains 'preview', then it is preview api-version. for example: [preview api-version](https://github.com/Azure/azure-rest-api-specs/blob/69eacf00a36d565d3220d5dd6f4a5293664f1ae9/specification/network/resource-manager/Microsoft.Network/preview/2015-05-01-preview/network.json#L6))

(note3: The difference about single api and multi api, please see the detailed file)

(note4: preview package version contains `b`, for example: `1.0.0b1`)

# How to decide next version number
1\. If current version is preview version, the new tag is preview tag, then next version is `x.x.xbx+1`

2\. If current version is stable version, the new tag is stable tag, then :
* if there is breaking change, next version is `x+1.x.x`
* if there is new feature but no breaking change, next version is `x.x+1.x`
* if there is only bugfix, next version is `x.x.x+1`

3\. If current version is stable version, the new tag is preview tag, calculate version number according to `2`
and then append `b1` in the result


According to the up rules, we could summarize all the possibilities in the following table:

![img.png](version_summary.png)

(`-` means that this item doesn't influence result)

Binary file added doc/dev/package_version/version summary.xlsx
Binary file not shown.
Binary file added doc/dev/package_version/version_summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/dev/perfstress_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The framework has a series of common command line options built in:
- `-w --warm-up=5` Number of seconds to spend warming up the connection before measuring begins. Default is 5.
- `--sync` Whether to run the tests in sync or async. Default is False (async).
- `--no-cleanup` Whether to keep newly created resources after test run. Default is False (resources will be deleted).
- `-x --test-proxy` Whether to run the tests against the test proxy server. Specfiy the URL for the proxy endpoint (e.g. "https://localhost:5001").
- `-x --test-proxies` Whether to run the tests against the test proxy server. Specify the URL(s) for the proxy endpoint(s) (e.g. "https://localhost:5001").
- `--profile` Whether to run the perftest with cProfile. If enabled (default is False), the output file of the **last completed single iteration** will be written to the current working directory in the format `"cProfile-<TestClassName>-<TestID>-<sync/async>.pstats"`.


Expand Down
53 changes: 45 additions & 8 deletions doc/dev/test_proxy_migration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ class TestExample(AzureTestCase):
### New test structure

To use the proxy, test classes should inherit from AzureRecordedTestCase and recorded test methods should use a
RecordedByProxy decorator:
`recorded_by_proxy` decorator:

```py
from devtools_testutils import AzureRecordedTestCase, RecordedByProxy
from devtools_testutils import AzureRecordedTestCase, recorded_by_proxy

class TestExample(AzureRecordedTestCase):

@RecordedByProxy
@recorded_by_proxy
def test_example(self):
...

@ExamplePreparer()
@RecordedByProxy
@recorded_by_proxy
def test_example_with_preparer(self):
...
```

For async tests, import the RecordedByProxyAsync decorator from `devtools_testutils.aio` and use it in the same
way as RecordedByProxy.
For async tests, import the `recorded_by_proxy_async` decorator from `devtools_testutils.aio` and use it in the same
way as `recorded_by_proxy`.

> **Note:** since AzureRecordedTestCase doesn't inherit from `unittest.TestCase`, test class names need to start
> with "Test" in order to be properly collected by pytest by default. For more information, please refer to
Expand Down Expand Up @@ -135,6 +135,43 @@ made to `https://fakeendpoint-secondary.table.core.windows.net`, and URIs will a

For more details about sanitizers and their options, please refer to [devtools_testutils/sanitizers.py][py_sanitizers].

### Record test variables

To run recorded tests successfully when there's an element of non-secret randomness to them, the test proxy provides a
[`variables` API](https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy#storing-variables).
This makes it possible for a test to record the values of variables that were used during recording and use the same
values in playback mode without a sanitizer.

For example, imagine that a test uses a randomized `table_name` variable when creating resources. The same random value
for `table_name` can be used in playback mode by using this `variables` API.

There are two requirements for a test to use recorded variables. First, the test method should accept `**kwargs` and/or
a `variables` parameter. Second, the test method should `return` a dictionary with any test variables that it wants to
record. This dictionary will be stored in the recording when the test is run live, and will be passed to the test as a
`variables` keyword argument when the test is run in playback.

Below is a code example of how a test method could use recorded variables:

```python
from devtools_testutils import AzureRecordedTestCase, recorded_by_proxy

class TestExample(AzureRecordedTestCase):

@recorded_by_proxy
def test_example(self, variables):
# in live mode, variables is an empty dictionary
# in playback mode, the value of variables is {"table_name": "random-value"}
if self.is_live:
table_name = "random-value"
variables = {"table_name": table_name}

# use variables["table_name"] when using the table name throughout the test
...

# return the variables at the end of the test
return variables
```

## Implementation details

### What does the test proxy do?
Expand All @@ -147,7 +184,7 @@ For example, if an operation would typically make a GET request to
`https://localhost:5001/Tables` instead. The original endpoint should be stored in an `x-recording-upstream-base-uri` --
the proxy will send the original request and record the result.

The RecordedByProxy and RecordedByProxyAsync decorators patch test requests to do this for you.
The `recorded_by_proxy` and `recorded_by_proxy_async` decorators patch test requests to do this for you.

### How does the test proxy know when and what to record or play back?

Expand Down Expand Up @@ -179,7 +216,7 @@ Running tests in playback follows the same pattern, except that requests will be
`/playback/stop` instead. A header, `x-recording-mode`, should be set to `record` for all requests when recording and
`playback` when playing recordings back. More details can be found [here][detailed_docs].

The RecordedByProxy and RecordedByProxyAsync decorators send the appropriate requests at the start and end of each test
The `recorded_by_proxy` and `recorded_by_proxy_async` decorators send the appropriate requests at the start and end of each test
case.

[detailed_docs]: https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md
Expand Down
1 change: 1 addition & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ known_content_issues:
- ['sdk/purview/azure-purview-scanning/swagger/README.md',  '#4554']
- ['sdk/agrifood/azure-agrifood-farming/swagger/README.md',  '#4554']
- ['sdk/purview/azure-purview-account/swagger/README.md', '#4554']
- ['sdk/purview/azure-purview-administration/swagger/README.md', '#4554']
- ['sdk/containerregistry/azure-containerregistry/swagger/README.md', '#4554']
- ['sdk/appconfiguration/azure-appconfiguration/swagger/README.md', '#4554']
- ['sdk/attestation/azure-security-attestation/swagger/README.md', '#4554']
Expand Down
2 changes: 1 addition & 1 deletion eng/CredScanSuppression.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"sdk/identity/azure-identity/tests/ec-certificate.pem",
"sdk/core/azure-servicemanagement-legacy/tests/legacy_mgmt_settings_fake.py",
"sdk/storage/azure-storage-blob/tests/fake_credentials.py",
"sdk/storage/azure-storage-file-datalake/tests/fake_credentials.py",
"tools/azure-sdk-tools/devtools_testutils/fake_credentials.py",
"tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py"
],
"_justification": "File contains private key used by test code."
Expand Down
7 changes: 5 additions & 2 deletions eng/ci_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ cryptography==3.1
setuptools==44.1.0; python_version == '2.7'
setuptools==46.4.0; python_version >= '3.5'
virtualenv==20.0.23
wheel==0.34.2
wheel==0.37.0
Jinja2==2.11.2
packaging==20.4
tox==3.15.0
tox-monorepo==0.1.2
twine==1.15.0; python_version == '2.7' or python_version == '3.5'
twine==3.1.1; python_version >= '3.6'
pathlib2==2.3.5
readme-renderer[md]==25.0
readme-renderer[md]==25.0; python_version < '3.10'
doc-warden==0.7.1
# we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed
coverage==4.5.4
Expand All @@ -22,6 +22,9 @@ pip==20.3
black==21.6b0; python_version >= '3.6'
wrapt<=1.12.1; python_version == '2.7'

# python 3.10 pinned packages
cffi==1.15.0rc2; python_version >= '3.10'

# locking packages defined as deps from azure-sdk-tools or azure-devtools
pytoml==0.1.21
pyOpenSSL==19.1.0
Expand Down
30 changes: 24 additions & 6 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ if (!$PSBoundParameters.ContainsKey('ErrorAction')) {
$ErrorActionPreference = 'Stop'
}

function Log($Message) {
function Log($Message)
{
Write-Host ('{0} - {1}' -f [DateTime]::Now.ToLongTimeString(), $Message)
}

function Retry([scriptblock] $Action, [int] $Attempts = 5) {
function Retry([scriptblock] $Action, [int] $Attempts = 5)
{
$attempt = 0
$sleep = 5

Expand All @@ -109,7 +111,20 @@ function Retry([scriptblock] $Action, [int] $Attempts = 5) {
}
}

function MergeHashes([hashtable] $source, [psvariable] $dest) {
function LoadCloudConfig([string] $env)
{
$configPath = "$PSScriptRoot/clouds/$env.json"
if (!(Test-Path $configPath)) {
Write-Warning "Could not find cloud configuration for environment '$env'"
return @{}
}

$config = Get-Content $configPath | ConvertFrom-Json -AsHashtable
return $config
}

function MergeHashes([hashtable] $source, [psvariable] $dest)
{
foreach ($key in $source.Keys) {
if ($dest.Value.ContainsKey($key) -and $dest.Value[$key] -ne $source[$key]) {
Write-Warning ("Overwriting '$($dest.Name).$($key)' with value '$($dest.Value[$key])' " +
Expand All @@ -119,7 +134,8 @@ function MergeHashes([hashtable] $source, [psvariable] $dest) {
}
}

function BuildBicepFile([System.IO.FileSystemInfo] $file) {
function BuildBicepFile([System.IO.FileSystemInfo] $file)
{
if (!(Get-Command bicep -ErrorAction Ignore)) {
Write-Error "A bicep file was found at '$($file.FullName)' but the Azure Bicep CLI is not installed. See https://aka.ms/install-bicep-pwsh"
throw
Expand Down Expand Up @@ -334,7 +350,7 @@ try {
$serviceName = if (Split-Path $ServiceDirectory) {
Split-Path -Leaf $ServiceDirectory
} else {
$ServiceDirectory
$ServiceDirectory.Trim('/')
}

$ResourceGroupName = if ($ResourceGroupName) {
Expand Down Expand Up @@ -492,6 +508,8 @@ try {
$templateParameters.Add('testApplicationSecret', $TestApplicationSecret)
}

$defaultCloudParameters = LoadCloudConfig $Environment
MergeHashes $defaultCloudParameters $(Get-Variable templateParameters)
MergeHashes $ArmTemplateParameters $(Get-Variable templateParameters)
MergeHashes $AdditionalParameters $(Get-Variable templateParameters)

Expand Down Expand Up @@ -600,7 +618,7 @@ try {
$outputFile = "$($templateFile.originalFilePath).env"

$environmentText = $deploymentOutputs | ConvertTo-Json;
$bytes = ([System.Text.Encoding]::UTF8).GetBytes($environmentText)
$bytes = [System.Text.Encoding]::UTF8.GetBytes($environmentText)
$protectedBytes = [Security.Cryptography.ProtectedData]::Protect($bytes, $null, [Security.Cryptography.DataProtectionScope]::CurrentUser)

Set-Content $outputFile -Value $protectedBytes -AsByteStream -Force
Expand Down
15 changes: 15 additions & 0 deletions eng/common/TestResources/clouds/AzureChinaCloud.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"azConfigEndpointSuffix": ".azconfig.azure.cn",
"azureAuthorityHost": "https://login.chinacloudapi.cn/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.cn",
"containerRegistryEndpointSuffix": ".azurecr.cn",
"cosmosEndpointSuffix": "cosmos.azure.cn",
"enableStorageVersioning": false,
"keyVaultDomainSuffix": ".vault.azure.cn",
"keyVaultEndpointSuffix": ".vault.azure.cn",
"keyVaultSku": "standard",
"searchEndpointSuffix": "search.azure.cn",
"serviceBusEndpointSuffix": ".servicebus.chinacloudapi.cn",
"storageEndpointSuffix": "core.chinacloudapi.cn",
"textAnalyticsSku": "S"
}
8 changes: 8 additions & 0 deletions eng/common/TestResources/clouds/AzureCloud.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"azureAuthorityHost": "https://login.microsoftonline.com/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.com",
"communicationServicesEndpointSuffix": ".communication.azure.com",
"keyVaultDomainSuffix": ".vault.azure.net",
"keyVaultEndpointSuffix": ".vault.azure.net",
"storageEndpointSuffix": "core.windows.net"
}
15 changes: 15 additions & 0 deletions eng/common/TestResources/clouds/AzureUSGovernment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"azConfigEndpointSuffix": ".azconfig.azure.us",
"azureAuthorityHost": "https://login.microsoftonline.us/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.us",
"containerRegistryEndpointSuffix": ".azurecr.us",
"cosmosEndpointSuffix": "cosmos.azure.us",
"enableStorageVersioning": false,
"formRecognizerLocation": "usgovvirginia",
"keyVaultDomainSuffix": ".vault.usgovcloudapi.net",
"keyVaultEndpointSuffix": ".vault.usgovcloudapi.net",
"keyVaultSku": "premium",
"searchEndpointSuffix": "search.azure.us",
"serviceBusEndpointSuffix": ".servicebus.usgovcloudapi.net",
"storageEndpointSuffix": "core.usgovcloudapi.net"
}
Loading

0 comments on commit 6a79f61

Please sign in to comment.