From a0f48eadd25a246713ad15b0d9067a348b1c0ce7 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Fri, 8 Oct 2021 15:15:55 +0800 Subject: [PATCH 1/2] regenerate with api-version 2021-05-01-preview --- sdk/purview/azure-purview-catalog/README.md | 4 +++ .../azure/purview/catalog/_configuration.py | 2 +- .../purview/catalog/aio/_configuration.py | 2 +- .../purview/catalog/operations/_operations.py | 30 +++++++++---------- sdk/purview/azure-purview-catalog/setup.py | 1 + .../azure-purview-catalog/swagger/README.md | 2 +- 6 files changed, 23 insertions(+), 18 deletions(-) diff --git a/sdk/purview/azure-purview-catalog/README.md b/sdk/purview/azure-purview-catalog/README.md index 1ce34f87a162..470151502326 100644 --- a/sdk/purview/azure-purview-catalog/README.md +++ b/sdk/purview/azure-purview-catalog/README.md @@ -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 diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/_configuration.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/_configuration.py index ecd736bcfcc5..e2c0316ceab7 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/_configuration.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/_configuration.py @@ -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) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py index 937f049b044e..94b7531193b3 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py @@ -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) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/operations/_operations.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/operations/_operations.py index e20cd5528152..2ff0da1724c6 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/operations/_operations.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/operations/_operations.py @@ -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') @@ -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') @@ -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}') @@ -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') @@ -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') @@ -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') @@ -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') @@ -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') @@ -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') @@ -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/') @@ -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}') @@ -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}') @@ -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') @@ -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') @@ -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') diff --git a/sdk/purview/azure-purview-catalog/setup.py b/sdk/purview/azure-purview-catalog/setup.py index 43f38c4a7cea..e08897cdef1c 100644 --- a/sdk/purview/azure-purview-catalog/setup.py +++ b/sdk/purview/azure-purview-catalog/setup.py @@ -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, diff --git a/sdk/purview/azure-purview-catalog/swagger/README.md b/sdk/purview/azure-purview-catalog/swagger/README.md index b6cb636770c2..9d836a8f7dce 100644 --- a/sdk/purview/azure-purview-catalog/swagger/README.md +++ b/sdk/purview/azure-purview-catalog/swagger/README.md @@ -20,7 +20,7 @@ autorest ### Settings ```yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json +input-file: https://raw.githubusercontent.com/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 From ee1c2a69e19a018a5a6d761b11b52f8f628928a7 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 12 Oct 2021 11:48:55 +0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- sdk/purview/azure-purview-catalog/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/purview/azure-purview-catalog/CHANGELOG.md b/sdk/purview/azure-purview-catalog/CHANGELOG.md index d5e2bb89200a..dfe6e99a2600 100644 --- a/sdk/purview/azure-purview-catalog/CHANGELOG.md +++ b/sdk/purview/azure-purview-catalog/CHANGELOG.md @@ -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**