class azure.purview.scanning.PurviewScanningClient(endpoint: str, credential: ‘TokenCredential’, **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 (TokenCredential) – Credential needed for the client to connect to Azure.

close()None[source] send_request(request: HttpRequest, **kwargs: Any)HttpResponse[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 = client.send_request(request) <HttpResponse: 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

HttpResponse

Subpackages

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploqKmptbC6jpqxrqqVYr22vtWinLBlo5iur7rIp55oaV5le3GukWiYs62imnuxwdGvoJ6vXqiworrNoqWgZpipuq0%3D