azure.purview.catalog.aio package

class azure.purview.catalog.aio.PurviewCatalogClient(credential: AsyncTokenCredential, endpoint: str, **kwargs: Any)[source]

Purview Catalog Service is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Catalog helps organizations get more value from their existing investments. This spec defines REST API of Purview Catalog Service.

Parameters
  • credential (AsyncTokenCredential) – Credential needed for the client to connect to Azure.

  • endpoint (str) – The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com.

async close()None[source]
async send_request(http_request: azure.purview.catalog.core.rest._rest_py3.HttpRequest, **kwargs: Any) → azure.purview.catalog.core.rest._rest_py3.AsyncHttpResponse[source]

Runs the network request through the client’s chained policies.

We have helper methods to create requests specific to this service in azure.purview.catalog.rest. Use these helper methods to create the request you pass to this method. See our example below:

>>> from azure.purview.catalog.rest import build_create_or_update_request
>>> request = build_create_or_update_request(json, content)
<HttpRequest [POST], url: '/atlas/v2/entity'>
>>> response = await client.send_request(request)
<AsyncHttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart

For advanced cases, you can also create your own HttpRequest and pass it in.

Parameters

http_request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments

stream_response (bool) – Whether the response payload will be streamed. Defaults to False.

Returns

The response of your network call. Does not do error handling on your response.

Return type

AsyncHttpResponse