diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/__init__.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/__init__.py index 59acedc03008..6353cdc9f5d2 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/__init__.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/__init__.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_purview_catalog_client import PurviewCatalogClient +from ._purview_catalog_client import PurviewCatalogClient from ._version import VERSION __version__ = VERSION diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/_azure_purview_catalog_client.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/_purview_catalog_client.py similarity index 100% rename from sdk/purview/azure-purview-catalog/azure/purview/catalog/_azure_purview_catalog_client.py rename to sdk/purview/azure-purview-catalog/azure/purview/catalog/_purview_catalog_client.py diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/__init__.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/__init__.py index 2697a8974770..5ec7cc9b24c3 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/__init__.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/__init__.py @@ -6,5 +6,5 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_purview_catalog_client import PurviewCatalogClient +from ._purview_catalog_client import PurviewCatalogClient __all__ = ['PurviewCatalogClient'] diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_azure_purview_catalog_client.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_purview_catalog_client.py similarity index 100% rename from sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_azure_purview_catalog_client.py rename to sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_purview_catalog_client.py diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/__init__.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/__init__.py index 1ecde53701ea..d8d447b3b39a 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/__init__.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/__init__.py @@ -7,22 +7,13 @@ # -------------------------------------------------------------------------- try: - from ._request_builders_py3 import build_search_request - from ._request_builders_py3 import build_suggest_request - from ._request_builders_py3 import build_auto_complete_request from ._request_builders_py3 import build_get_lineage_graph_request from ._request_builders_py3 import build_next_page_lineage_request except (SyntaxError, ImportError): - from ._request_builders import build_search_request # type: ignore - from ._request_builders import build_suggest_request # type: ignore - from ._request_builders import build_auto_complete_request # type: ignore from ._request_builders import build_get_lineage_graph_request # type: ignore from ._request_builders import build_next_page_lineage_request # type: ignore __all__ = [ - 'build_search_request', - 'build_suggest_request', - 'build_auto_complete_request', 'build_get_lineage_graph_request', 'build_next_page_lineage_request', ] diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders.py index 821bb69460f5..68b24acbb172 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders.py @@ -18,339 +18,6 @@ _SERIALIZER = Serializer() -def build_search_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - """Gets data using search. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the search criteria. - :paramtype json: Any - :keyword content: An object specifying the search criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "facets": [ - { - "count": "int (optional)", - "facet": "str (optional)", - "sort": "object (optional)" - } - ], - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)", - "offset": "int (optional)", - "taxonomySetting": { - "assetTypes": [ - "str (optional)" - ], - "facet": { - "count": "int (optional)", - "facet": "str (optional)", - "sort": "object (optional)" - } - } - } - - - # response body for status code(s): 200 - response_body == { - "@search.count": "int (optional)", - "@search.facets": { - "assetType": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "classification": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "classificationCategory": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "contactId": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "fileExtension": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "label": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "term": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ] - }, - "value": [ - { - "@search.highlights": { - "description": [ - "str (optional)" - ], - "entityType": [ - "str (optional)" - ], - "id": [ - "str (optional)" - ], - "name": [ - "str (optional)" - ], - "qualifiedName": [ - "str (optional)" - ] - }, - "@search.score": "float (optional)", - "@search.text": "str (optional)", - "assetType": [ - "str (optional)" - ], - "classification": [ - "str (optional)" - ], - "contact": [ - { - "contactType": "str (optional)", - "id": "str (optional)", - "info": "str (optional)" - } - ], - "description": "str (optional)", - "entityType": "str (optional)", - "id": "str (optional)", - "label": [ - "str (optional)" - ], - "name": "str (optional)", - "owner": "str (optional)", - "qualifiedName": "str (optional)", - "term": [ - { - "glossaryName": "str (optional)", - "guid": "str (optional)", - "name": "str (optional)" - } - ] - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/query') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) - - -def build_suggest_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - """Get search suggestions by query criteria. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the suggest criteria. - :paramtype json: Any - :keyword content: An object specifying the suggest criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)" - } - - - # response body for status code(s): 200 - response_body == { - "value": [ - { - "@search.score": "float (optional)", - "@search.text": "str (optional)", - "assetType": [ - "str (optional)" - ], - "classification": [ - "str (optional)" - ], - "contact": [ - { - "contactType": "str (optional)", - "id": "str (optional)", - "info": "str (optional)" - } - ], - "description": "str (optional)", - "entityType": "str (optional)", - "id": "str (optional)", - "label": [ - "str (optional)" - ], - "name": "str (optional)", - "owner": "str (optional)", - "qualifiedName": "str (optional)", - "term": [ - { - "glossaryName": "str (optional)", - "guid": "str (optional)", - "name": "str (optional)" - } - ] - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/suggest') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) - - -def build_auto_complete_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - """Get auto complete options. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the autocomplete criteria. - :paramtype json: Any - :keyword content: An object specifying the autocomplete criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)" - } - - - # response body for status code(s): 200 - response_body == { - "value": [ - { - "queryPlusText": "str (optional)", - "text": "str (optional)" - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/autocomplete') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - **kwargs - ) - - def build_get_lineage_graph_request( guid, # type: str **kwargs # type: Any diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders_py3.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders_py3.py index 3ef22cd3a031..db9e62e0b063 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders_py3.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/_request_builders_py3.py @@ -18,351 +18,6 @@ _SERIALIZER = Serializer() -def build_search_request( - *, - json: Any = None, - content: Any = None, - **kwargs: Any -) -> HttpRequest: - """Gets data using search. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the search criteria. - :paramtype json: Any - :keyword content: An object specifying the search criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "facets": [ - { - "count": "int (optional)", - "facet": "str (optional)", - "sort": "object (optional)" - } - ], - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)", - "offset": "int (optional)", - "taxonomySetting": { - "assetTypes": [ - "str (optional)" - ], - "facet": { - "count": "int (optional)", - "facet": "str (optional)", - "sort": "object (optional)" - } - } - } - - - # response body for status code(s): 200 - response_body == { - "@search.count": "int (optional)", - "@search.facets": { - "assetType": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "classification": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "classificationCategory": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "contactId": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "fileExtension": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "label": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ], - "term": [ - { - "count": "int (optional)", - "value": "str (optional)" - } - ] - }, - "value": [ - { - "@search.highlights": { - "description": [ - "str (optional)" - ], - "entityType": [ - "str (optional)" - ], - "id": [ - "str (optional)" - ], - "name": [ - "str (optional)" - ], - "qualifiedName": [ - "str (optional)" - ] - }, - "@search.score": "float (optional)", - "@search.text": "str (optional)", - "assetType": [ - "str (optional)" - ], - "classification": [ - "str (optional)" - ], - "contact": [ - { - "contactType": "str (optional)", - "id": "str (optional)", - "info": "str (optional)" - } - ], - "description": "str (optional)", - "entityType": "str (optional)", - "id": "str (optional)", - "label": [ - "str (optional)" - ], - "name": "str (optional)", - "owner": "str (optional)", - "qualifiedName": "str (optional)", - "term": [ - { - "glossaryName": "str (optional)", - "guid": "str (optional)", - "name": "str (optional)" - } - ] - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/query') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - json=json, - content=content, - **kwargs - ) - - -def build_suggest_request( - *, - json: Any = None, - content: Any = None, - **kwargs: Any -) -> HttpRequest: - """Get search suggestions by query criteria. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the suggest criteria. - :paramtype json: Any - :keyword content: An object specifying the suggest criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)" - } - - - # response body for status code(s): 200 - response_body == { - "value": [ - { - "@search.score": "float (optional)", - "@search.text": "str (optional)", - "assetType": [ - "str (optional)" - ], - "classification": [ - "str (optional)" - ], - "contact": [ - { - "contactType": "str (optional)", - "id": "str (optional)", - "info": "str (optional)" - } - ], - "description": "str (optional)", - "entityType": "str (optional)", - "id": "str (optional)", - "label": [ - "str (optional)" - ], - "name": "str (optional)", - "owner": "str (optional)", - "qualifiedName": "str (optional)", - "term": [ - { - "glossaryName": "str (optional)", - "guid": "str (optional)", - "name": "str (optional)" - } - ] - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/suggest') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - json=json, - content=content, - **kwargs - ) - - -def build_auto_complete_request( - *, - json: Any = None, - content: Any = None, - **kwargs: Any -) -> HttpRequest: - """Get auto complete options. - - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. - - :keyword json: An object specifying the autocomplete criteria. - :paramtype json: Any - :keyword content: An object specifying the autocomplete criteria. - :paramtype content: Any - :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. - See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. - :rtype: ~azure.purview.catalog.core.rest.HttpRequest - - Example: - .. code-block:: python - - - # JSON input template you can fill out and use as your `json` input. - json = { - "filter": "object (optional)", - "keywords": "str (optional)", - "limit": "int (optional)" - } - - - # response body for status code(s): 200 - response_body == { - "value": [ - { - "queryPlusText": "str (optional)", - "text": "str (optional)" - } - ] - } - - """ - content_type = kwargs.pop("content_type", None) - api_version = "2021-05-01-preview" - accept = "application/json" - - # Construct URL - url = kwargs.pop("template_url", '/search/autocomplete') - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="POST", - url=url, - params=query_parameters, - headers=header_parameters, - json=json, - content=content, - **kwargs - ) - - def build_get_lineage_graph_request( guid: str, *, diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/__init__.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/__init__.py new file mode 100644 index 000000000000..6effc5f937be --- /dev/null +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/__init__.py @@ -0,0 +1,22 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +try: + from ._request_builders_py3 import build_query_request + from ._request_builders_py3 import build_suggest_request + from ._request_builders_py3 import build_auto_complete_request +except (SyntaxError, ImportError): + from ._request_builders import build_query_request # type: ignore + from ._request_builders import build_suggest_request # type: ignore + from ._request_builders import build_auto_complete_request # type: ignore + +__all__ = [ + 'build_query_request', + 'build_suggest_request', + 'build_auto_complete_request', +] diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders.py new file mode 100644 index 000000000000..0a64525f807f --- /dev/null +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders.py @@ -0,0 +1,352 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING + +from azure.core.pipeline.transport._base import _format_url_section +from azure.purview.catalog.core.rest import HttpRequest +from msrest import Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Dict, IO, List, Optional, Union + +_SERIALIZER = Serializer() + + +def build_query_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Gets data using search. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the search criteria. + :paramtype json: Any + :keyword content: An object specifying the search criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "facets": [ + { + "count": "int (optional)", + "facet": "str (optional)", + "sort": "object (optional)" + } + ], + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)", + "offset": "int (optional)", + "taxonomySetting": { + "assetTypes": [ + "str (optional)" + ], + "facet": { + "count": "int (optional)", + "facet": "str (optional)", + "sort": "object (optional)" + } + } + } + + + # response body for status code(s): 200 + response_body == { + "@search.count": "int (optional)", + "@search.facets": { + "assetType": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "classification": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "classificationCategory": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "contactId": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "fileExtension": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "label": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "term": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ] + }, + "value": [ + { + "@search.highlights": { + "description": [ + "str (optional)" + ], + "entityType": [ + "str (optional)" + ], + "id": [ + "str (optional)" + ], + "name": [ + "str (optional)" + ], + "qualifiedName": [ + "str (optional)" + ] + }, + "@search.score": "float (optional)", + "@search.text": "str (optional)", + "assetType": [ + "str (optional)" + ], + "classification": [ + "str (optional)" + ], + "contact": [ + { + "contactType": "str (optional)", + "id": "str (optional)", + "info": "str (optional)" + } + ], + "description": "str (optional)", + "entityType": "str (optional)", + "id": "str (optional)", + "label": [ + "str (optional)" + ], + "name": "str (optional)", + "owner": "str (optional)", + "qualifiedName": "str (optional)", + "term": [ + { + "glossaryName": "str (optional)", + "guid": "str (optional)", + "name": "str (optional)" + } + ] + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/query') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_suggest_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Get search suggestions by query criteria. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the suggest criteria. + :paramtype json: Any + :keyword content: An object specifying the suggest criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)" + } + + + # response body for status code(s): 200 + response_body == { + "value": [ + { + "@search.score": "float (optional)", + "@search.text": "str (optional)", + "assetType": [ + "str (optional)" + ], + "classification": [ + "str (optional)" + ], + "contact": [ + { + "contactType": "str (optional)", + "id": "str (optional)", + "info": "str (optional)" + } + ], + "description": "str (optional)", + "entityType": "str (optional)", + "id": "str (optional)", + "label": [ + "str (optional)" + ], + "name": "str (optional)", + "owner": "str (optional)", + "qualifiedName": "str (optional)", + "term": [ + { + "glossaryName": "str (optional)", + "guid": "str (optional)", + "name": "str (optional)" + } + ] + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/suggest') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_auto_complete_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Get auto complete options. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the autocomplete criteria. + :paramtype json: Any + :keyword content: An object specifying the autocomplete criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)" + } + + + # response body for status code(s): 200 + response_body == { + "value": [ + { + "queryPlusText": "str (optional)", + "text": "str (optional)" + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/autocomplete') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders_py3.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders_py3.py new file mode 100644 index 000000000000..f80c010891d5 --- /dev/null +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/discovery/_request_builders_py3.py @@ -0,0 +1,364 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Dict, IO, List, Optional, TYPE_CHECKING, Union + +from azure.core.pipeline.transport._base import _format_url_section +from azure.purview.catalog.core.rest import HttpRequest +from msrest import Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + +_SERIALIZER = Serializer() + + +def build_query_request( + *, + json: Any = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + """Gets data using search. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the search criteria. + :paramtype json: Any + :keyword content: An object specifying the search criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "facets": [ + { + "count": "int (optional)", + "facet": "str (optional)", + "sort": "object (optional)" + } + ], + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)", + "offset": "int (optional)", + "taxonomySetting": { + "assetTypes": [ + "str (optional)" + ], + "facet": { + "count": "int (optional)", + "facet": "str (optional)", + "sort": "object (optional)" + } + } + } + + + # response body for status code(s): 200 + response_body == { + "@search.count": "int (optional)", + "@search.facets": { + "assetType": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "classification": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "classificationCategory": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "contactId": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "fileExtension": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "label": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ], + "term": [ + { + "count": "int (optional)", + "value": "str (optional)" + } + ] + }, + "value": [ + { + "@search.highlights": { + "description": [ + "str (optional)" + ], + "entityType": [ + "str (optional)" + ], + "id": [ + "str (optional)" + ], + "name": [ + "str (optional)" + ], + "qualifiedName": [ + "str (optional)" + ] + }, + "@search.score": "float (optional)", + "@search.text": "str (optional)", + "assetType": [ + "str (optional)" + ], + "classification": [ + "str (optional)" + ], + "contact": [ + { + "contactType": "str (optional)", + "id": "str (optional)", + "info": "str (optional)" + } + ], + "description": "str (optional)", + "entityType": "str (optional)", + "id": "str (optional)", + "label": [ + "str (optional)" + ], + "name": "str (optional)", + "owner": "str (optional)", + "qualifiedName": "str (optional)", + "term": [ + { + "glossaryName": "str (optional)", + "guid": "str (optional)", + "name": "str (optional)" + } + ] + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/query') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_suggest_request( + *, + json: Any = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + """Get search suggestions by query criteria. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the suggest criteria. + :paramtype json: Any + :keyword content: An object specifying the suggest criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)" + } + + + # response body for status code(s): 200 + response_body == { + "value": [ + { + "@search.score": "float (optional)", + "@search.text": "str (optional)", + "assetType": [ + "str (optional)" + ], + "classification": [ + "str (optional)" + ], + "contact": [ + { + "contactType": "str (optional)", + "id": "str (optional)", + "info": "str (optional)" + } + ], + "description": "str (optional)", + "entityType": "str (optional)", + "id": "str (optional)", + "label": [ + "str (optional)" + ], + "name": "str (optional)", + "owner": "str (optional)", + "qualifiedName": "str (optional)", + "term": [ + { + "glossaryName": "str (optional)", + "guid": "str (optional)", + "name": "str (optional)" + } + ] + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/suggest') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_auto_complete_request( + *, + json: Any = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + """Get auto complete options. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder into your code flow. + + :keyword json: An object specifying the autocomplete criteria. + :paramtype json: Any + :keyword content: An object specifying the autocomplete criteria. + :paramtype content: Any + :return: Returns an :class:`~azure.purview.catalog.core.rest.HttpRequest` that you will pass to the client's `send_request` method. + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this response into your code flow. + :rtype: ~azure.purview.catalog.core.rest.HttpRequest + + Example: + .. code-block:: python + + + # JSON input template you can fill out and use as your `json` input. + json = { + "filter": "object (optional)", + "keywords": "str (optional)", + "limit": "int (optional)" + } + + + # response body for status code(s): 200 + response_body == { + "value": [ + { + "queryPlusText": "str (optional)", + "text": "str (optional)" + } + ] + } + + """ + content_type = kwargs.pop("content_type", None) + api_version = "2021-05-01-preview" + accept = "application/json" + + # Construct URL + url = kwargs.pop("template_url", '/search/autocomplete') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + json=json, + content=content, + **kwargs + ) + diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/__init__.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/__init__.py index fccbb351f1a0..90de88e8223e 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/__init__.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/__init__.py @@ -13,7 +13,7 @@ from ._request_builders_py3 import build_delete_by_guids_request from ._request_builders_py3 import build_add_classification_request from ._request_builders_py3 import build_get_by_guid_request - from ._request_builders_py3 import build_create_or_update_by_guid_request + from ._request_builders_py3 import build_partial_update_entity_attribute_by_guid_request from ._request_builders_py3 import build_delete_by_guid_request from ._request_builders_py3 import build_get_classification_request from ._request_builders_py3 import build_delete_classification_request @@ -21,7 +21,7 @@ from ._request_builders_py3 import build_add_classifications_request from ._request_builders_py3 import build_update_classifications_request from ._request_builders_py3 import build_get_by_unique_attributes_request - from ._request_builders_py3 import build_create_or_update_by_unique_attribute_request + from ._request_builders_py3 import build_partial_update_entity_by_unique_attributes_request from ._request_builders_py3 import build_delete_by_unique_attribute_request from ._request_builders_py3 import build_delete_classification_by_unique_attribute_request from ._request_builders_py3 import build_add_classifications_by_unique_attribute_request @@ -36,7 +36,7 @@ from ._request_builders import build_delete_by_guids_request # type: ignore from ._request_builders import build_add_classification_request # type: ignore from ._request_builders import build_get_by_guid_request # type: ignore - from ._request_builders import build_create_or_update_by_guid_request # type: ignore + from ._request_builders import build_partial_update_entity_attribute_by_guid_request # type: ignore from ._request_builders import build_delete_by_guid_request # type: ignore from ._request_builders import build_get_classification_request # type: ignore from ._request_builders import build_delete_classification_request # type: ignore @@ -44,7 +44,7 @@ from ._request_builders import build_add_classifications_request # type: ignore from ._request_builders import build_update_classifications_request # type: ignore from ._request_builders import build_get_by_unique_attributes_request # type: ignore - from ._request_builders import build_create_or_update_by_unique_attribute_request # type: ignore + from ._request_builders import build_partial_update_entity_by_unique_attributes_request # type: ignore from ._request_builders import build_delete_by_unique_attribute_request # type: ignore from ._request_builders import build_delete_classification_by_unique_attribute_request # type: ignore from ._request_builders import build_add_classifications_by_unique_attribute_request # type: ignore @@ -60,7 +60,7 @@ 'build_delete_by_guids_request', 'build_add_classification_request', 'build_get_by_guid_request', - 'build_create_or_update_by_guid_request', + 'build_partial_update_entity_attribute_by_guid_request', 'build_delete_by_guid_request', 'build_get_classification_request', 'build_delete_classification_request', @@ -68,7 +68,7 @@ 'build_add_classifications_request', 'build_update_classifications_request', 'build_get_by_unique_attributes_request', - 'build_create_or_update_by_unique_attribute_request', + 'build_partial_update_entity_by_unique_attributes_request', 'build_delete_by_unique_attribute_request', 'build_delete_classification_by_unique_attribute_request', 'build_add_classifications_by_unique_attribute_request', diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders.py index e0bcba592e79..5bcdb543fdd7 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders.py @@ -742,7 +742,6 @@ def build_add_classification_request( "str (optional)" ] } - """ content_type = kwargs.pop("content_type", None) @@ -880,7 +879,7 @@ def build_get_by_guid_request( ) -def build_create_or_update_by_guid_request( +def build_partial_update_entity_attribute_by_guid_request( guid, # type: str **kwargs # type: Any ): @@ -1365,7 +1364,6 @@ def build_add_classifications_request( ] } ] - """ content_type = kwargs.pop("content_type", None) @@ -1431,7 +1429,6 @@ def build_update_classifications_request( ] } ] - """ content_type = kwargs.pop("content_type", None) @@ -1584,7 +1581,7 @@ def build_get_by_unique_attributes_request( ) -def build_create_or_update_by_unique_attribute_request( +def build_partial_update_entity_by_unique_attributes_request( type_name, # type: str **kwargs # type: Any ): @@ -2055,7 +2052,6 @@ def build_add_classifications_by_unique_attribute_request( ] } ] - """ attr_qualified_name = kwargs.pop('attr_qualified_name', None) # type: Optional[str] content_type = kwargs.pop("content_type", None) @@ -2130,7 +2126,6 @@ def build_update_classifications_by_unique_attribute_request( ] } ] - """ attr_qualified_name = kwargs.pop('attr_qualified_name', None) # type: Optional[str] content_type = kwargs.pop("content_type", None) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders_py3.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders_py3.py index f14b47450054..035e62cc7636 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders_py3.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/entity/_request_builders_py3.py @@ -748,7 +748,6 @@ def build_add_classification_request( "str (optional)" ] } - """ content_type = kwargs.pop("content_type", None) @@ -888,7 +887,7 @@ def build_get_by_guid_request( ) -def build_create_or_update_by_guid_request( +def build_partial_update_entity_attribute_by_guid_request( guid: str, *, json: Any = None, @@ -1375,7 +1374,6 @@ def build_add_classifications_request( ] } ] - """ content_type = kwargs.pop("content_type", None) @@ -1445,7 +1443,6 @@ def build_update_classifications_request( ] } ] - """ content_type = kwargs.pop("content_type", None) @@ -1600,7 +1597,7 @@ def build_get_by_unique_attributes_request( ) -def build_create_or_update_by_unique_attribute_request( +def build_partial_update_entity_by_unique_attributes_request( type_name: str, *, json: Any = None, @@ -2078,7 +2075,6 @@ def build_add_classifications_by_unique_attribute_request( ] } ] - """ content_type = kwargs.pop("content_type", None) @@ -2157,7 +2153,6 @@ def build_update_classifications_by_unique_attribute_request( ] } ] - """ content_type = kwargs.pop("content_type", None) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders.py index a4def2831748..3be20e0437e2 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders.py @@ -3110,7 +3110,6 @@ def build_assign_term_to_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -3174,7 +3173,6 @@ def build_remove_term_assignment_from_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -3238,7 +3236,6 @@ def build_delete_term_assignment_from_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -4505,7 +4502,8 @@ def build_import_glossary_terms_via_csv_request( Example: .. code-block:: python - # multipart input template you can fill out and use as your `files` input. + + # multipart input template you can fill out and use as your `files` input. files = { "file": "IO. The csv file to import glossary terms from." } @@ -4583,7 +4581,8 @@ def build_import_glossary_terms_via_csv_by_glossary_name_request( Example: .. code-block:: python - # multipart input template you can fill out and use as your `files` input. + + # multipart input template you can fill out and use as your `files` input. files = { "file": "IO. The csv file to import glossary terms from." } @@ -4723,7 +4722,6 @@ def build_export_glossary_terms_as_csv_request( json = [ "str (optional)" ] - """ include_term_hierarchy = kwargs.pop('include_term_hierarchy', False) # type: Optional[bool] content_type = kwargs.pop("content_type", None) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders_py3.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders_py3.py index 786996b9bbd6..f9ff16182a9c 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders_py3.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/_request_builders_py3.py @@ -3145,7 +3145,6 @@ def build_assign_term_to_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -3213,7 +3212,6 @@ def build_remove_term_assignment_from_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -3281,7 +3279,6 @@ def build_delete_term_assignment_from_entities_request( "relationshipType": "str (optional)" } ] - """ content_type = kwargs.pop("content_type", None) @@ -4559,7 +4556,8 @@ def build_import_glossary_terms_via_csv_request( Example: .. code-block:: python - # multipart input template you can fill out and use as your `files` input. + + # multipart input template you can fill out and use as your `files` input. files = { "file": "IO. The csv file to import glossary terms from." } @@ -4641,7 +4639,8 @@ def build_import_glossary_terms_via_csv_by_glossary_name_request( Example: .. code-block:: python - # multipart input template you can fill out and use as your `files` input. + + # multipart input template you can fill out and use as your `files` input. files = { "file": "IO. The csv file to import glossary terms from." } @@ -4784,7 +4783,6 @@ def build_export_glossary_terms_as_csv_request( json = [ "str (optional)" ] - """ content_type = kwargs.pop("content_type", None) api_version = "2021-05-01-preview" diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders.py index 99c09c5b654d..23c0125407e4 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders.py @@ -1485,7 +1485,6 @@ def build_delete_type_definitions_request( {} ] } - """ content_type = kwargs.pop("content_type", None) diff --git a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders_py3.py b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders_py3.py index 8acb14c0cf6e..bac42136999c 100644 --- a/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders_py3.py +++ b/sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/types/_request_builders_py3.py @@ -1482,7 +1482,6 @@ def build_delete_type_definitions_request( {} ] } - """ content_type = kwargs.pop("content_type", None) diff --git a/sdk/purview/azure-purview-catalog/swagger/README.md b/sdk/purview/azure-purview-catalog/swagger/README.md index 9a37bc533f76..d5348c00307f 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/master/specification/purview/data-plane/Azure.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/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