* Generate with models
* Updates after arch board meetting. Missing enum rename.
* regen after merge main
* regen after tsp updates
* Add script for custom tsp update
* Update tsp commit in main and regen
* Update tests to use model
* Break down tests
* Add samples
* Add snippets and update readme
* clean up imports
* Update changelog
* Update version
* Fix samples
* Fix formatting
* Regen after merge main
* update latest tsp commit
* Push recordings to assets repo and update tag reference
* Add words to be ignored by cspell
* Revert removal of skip_quote
* Re-record failing tests and fix create dev box test
* fix vcpus cspell file path
* Regen latest main
* Revert removal of skip_quote
* Regen using latest tsp
* temp fix api version
* Fix readme section reference
* Revert "temp fix api version"
This reverts commit fcc70bd766.
* Regen latest main
* Rename to Operation Status
* Use the lro model in test assertion
* Update changelong
* Update readme and code snippets
* Rename samples
* add async tests and update recordings
* add aync samples
* fix issue in async samples
* Update tests recordings
* Update tests and re-record tests
* patch waiting in playback mode
---------
Co-authored-by: Lei Tian <leti@microsoft.com>
* CodeGen from PR 27576 in Azure/azure-rest-api-specs
Merge 482ba279cb21fbf7f4e6bbd4ad14b6c14aa979d7 into b8af2fc3af08e42d2df6f48d1c84070ef1f6589b
* Fix SDK error
* SDK Customization
* test-resources.json
* Samples
* Testcases
* Add SDK README.md
* Rename the folder from samples/_shared to samples/shared
* Update the detection interface
* Correct the comments in sample codes
* Update the README.md
* Update the interface of detect_from_url()
* Removed TODO tag
* Update README.md
* Correct the path of the model object
* Refine liveness samples
* Reorganize samples and tests folder
- Only use images under samples/images for test.
- Move all async samples under samples folder to address relative
import failure
- Delete the folder 'tests/images'
- Add two utility methods in helpers class.
* Add assets.json
* Update CHANGELOG and README
* Fix errors reported by CI pipeline
* Fix typo
* Fix tests error
* Update CHANGELOG and README
* Update customized operations
* Update tests to fix test errors
* Not support live tests for this preview release
* Use `black` to reformat all samples and tests
* Remove all ignore flag from samples
* Add pyproject.toml
* Regenerated code
* update patches
* fix samples
* Update CHANGELOG
* Regenerate SDK based on the latest TypeSpec
* Update customized method to address the TypeSpec changes
* Update customized Enum classes definition and remove ignore flags from samples
* Update README.md
* Fix pylint error
* Use the new name of AAD: 'Microsoft Entra ID'
* Change the order of overload functions of
* Re-format the code snippet in README.md
---------
Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
* Add support for Federated Auth to test resources scripts
* Default -- UseFederatedAuth: false
* Clear secrets if FederatedAuth is set
* Template conditions use AzurePowerShell only when a service connection is needed
* Review feedback and pair with Ben
* Update docs
* http:// -> https://
---------
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
* Fix a lot of linting issues
* Fix mypy issues
* Remove type from kwargs
* Remove any added kwargs: Any instance
---------
Co-authored-by: Michael Zappe <michaelzappe@microsoft.com>
Added some documentation updates regarding test proxy sanitization.
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
* 32851: Fix mypy errors for azure-maps-render
* 32851: Enable type check for azure-maps-render
* 32851: Revert changes for eventgrid
* Use os.getenv default value to avoid unset env vars
* 32851: Use generated model instead of the custom one
* Update sdk/maps/azure-maps-render/samples/async_samples/sample_authentication_async.py
* 32851: Update assets.json for each package to point to the latest recordings
* 32851: Fix pylint errors for azure-maps-search
* 32851: Revert changes in assets.json for each package
* 32851: Ignore mypy errors in azure-maps-search and azure-maps-route packages
* WIP
* Merge encode keys test into basic key type test
* Merge basic and complex keys type into one
* Change type conversion test to live
* Convert tuple and raw entity tests to live
* Avoid edm type for int32, bool, string
* Convert typical values test to live
* Add identical encoder tests to cosmos
* Update comments in encoder tests
* Update encoder tests recordings
* Merged encoder tests
* Convert unit tests to live tests
* Introduce generic type in encoder
* Update sync APIs for the generic entity type support
* Expose default encoder type
* Address expected_entity in test_encoder.py
* Update tests and adjust encoder to fit more scenarios
* Fix issues when getting value from *args
* Update backward compatibility check in tests
* Remove prepare_key() call in default encode_entity()
* Make default encoder tests for "create" pass
* Update expected_entity for non-string key example
* Add expected_backcompat_entity for "create" tests
* Fix bug on encoding enum values
* Make all test_encoder_create_XXX pass after adjustments
* Remove custom encoder tests
* Make all upsert tests pass
* Make all update tests pass
* Make delete and get tests pass
* Make all cosmos sync tests pass
* Update encoding on tuples
* Update tests based on encoder updates
* Update assets.json
* Revert last updates in encoder for entity value in tuple type
* Update assets.json
* Update a cosmos test for intend changes from encoder
* Update error value to compare
* Not filtering out string "None" in new_encoding in _check_backcompat()
* Return detected edm type for enum values
* Add license header
* pop values from encoded result
* Update type hints
* Add async changes
* pop -> get
* Update assets.json
* Move tuple handle into prepare_value()
* Update two failing storage edmtype tests
* Run black
* Able to check_backcompat for non-string key case
* Fix mypy
* Address types
* Make tuple tests backward compatible
* Update tests and recordings
* Changed to get pk and rk from encoded entity in "delete"
* Update tests and recordings
* Fix pylint
* Remove throw error for unknown edm type in "_prepare_value_in_tuple"
* Fix IndexError in "delete"
* Support encoder in "batch"
* Add tests and recordings
* Make batch encoder tests live only
* Fix sphinx
---------
Co-authored-by: antisch <antisch@microsoft.com>
* Add client cache to hold container properties
This adds a client level cache for container properties.
* Added tests for container properties cache
* Update _cosmos_client_connection_async.py
* Update _cosmos_client_connection_async.py
* Fix typos
* Update container.py
* Update _container.py
* Update cache test
* Update test_container_properties_cache.py
* update tests
* Update test_container_properties_cache.py
* Update tests
updated tests that were compensating for extra container reads, the extra reads no longer happen with adding the container cache properties in the client.
* tests updates
* Mypy fixes
* mypy fix
* Update
* Cache update
Fixed some reccomnded changes, and added optimizations for the cache. Only including needed properties info that will be unlikely to change.
* test update
* Update CHANGELOG.md
* added set_properties_cache method
Added a method in base.py to set the properties cache so we only have to change one location in case in the future we want to cache additional properties
* Update _base.py
* Update _cosmos_client_connection.py
* MyPy fixes
* Fix mypy issue
* Update _cosmos_client_connection.py
* Update _cosmos_client_connection.py
* Update _cosmos_client_connection_async.py
* Update _cosmos_client_connection.py
* Update container cache
Changed container cache to be a private attribute.
Also added tests to verify the contents of the cache to be correct ones.
* Update sdk/cosmos/azure-cosmos/CHANGELOG.md
Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
* Additional pylint updates
* more pylint fixes
* pylint fix
* Update test_container_properties_cache.py
---------
Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
Add `AzurePipelinesCredential` to support workload identity federation in
Azure Pipelines with service connections.
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>