azure.agrifood.farming.aio package

class azure.agrifood.farming.aio.FarmBeatsClient(credential: AsyncTokenCredential, *, endpoint: str = '', **kwargs: Any)[source]

APIs documentation for Azure AgPlatform DataPlane Service.

Variables
Parameters

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

Keyword Arguments
  • endpoint (str) – Service URL. Required. Default value is “”.

  • api_version (str) – Api Version. Default value is “2022-11-01-preview”. Note that overriding this default value may result in unsupported behavior.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

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/dpcodegen/python/send_request

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