azure-sdk-for-python
azure-sdk-for-python copied to clipboard
Purview Catalog Client get_by_unique_attributes won't take any other attribute except the qualified name
- Package Name: azure.purview.catalog
- Package Version: 1.0.0b4
- Operating System: Ubuntu 22.04.3 LTS
- Python Version: 3.10.13
Describe the bug entity.get_by_unique_attributes will not take another other attribute except the qualified name
To Reproduce Steps to reproduce the behavior:
- calling catalog_client.entity.get_by_unique_attributes(type_name='azure_datalake_gen2_path', attr_qualified_name='xxx') returns ResourceNotFoundError, which is ok.
- calling catalog_client.entity.get_by_unique_attributes(type_name='azure_datalake_gen2_path', name='xxx') returns TypeError: Session.request() got an unexpected keyword argument 'name'. Tried several different attributes and it returns the same error.
Expected behavior It should either return a unique entity or return ResourceNotFoundError if it finds None or more than one entity.
Additional context Are there any other ways to use attributes other than qualified name? It stated in REST API reference (https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/get-by-unique-attributes?view=rest-purview-datamapdataplane-2023-09-01&tabs=HTTP#atlasentity) can be changed to other attributes.