azure.purview.scanning.aio package

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

Creates a Microsoft.Scanning management client.

Variables
Parameters
  • endpoint (str) – The scanning endpoint of your purview account. Example: https://{accountName}.scan.purview.azure.com.

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

async close()None[source]
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any)Awaitable[azure.core.rest._rest_py3.AsyncHttpResponse][source]

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

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = await client.send_request(request)
<AsyncHttpResponse: 200 OK>

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

Parameters

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

Keyword Arguments

stream (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