Skip to content

Client Base

Abstract base class for generated connector clients.

Classes

ConnectorClientBase

ConnectorClientBase(credential: AsyncTokenCredential | AzureKeyCredential, *, max_retry_attempts: int = 3, timeout: float = 30.0, use_exponential_backoff: bool = True, initial_retry_delay_seconds: float = 0.5, maximum_retry_delay_seconds: float = 120.0, retry_jitter_factor: float = 0.1, retry_unsafe_http_methods: bool = False, transport: Optional[AsyncHttpTransport] = None, **kwargs: Any)

Bases: ABC

Abstract base class for generated connector clients.

Initialize a ConnectorClientBase.

Parameters:

Name Type Description Default
credential AsyncTokenCredential | AzureKeyCredential

Caller-owned Azure Core credential.

required
timeout float

Total network timeout for each request, including retries, response loading, and body reads. Nonpositive values disable SDK and transport deadlines.

30.0
transport Optional[AsyncHttpTransport]

Optional Azure Core async HTTP transport closed by the client through its asynchronous lifecycle.

None

Attributes

connector_name abstractmethod property
connector_name: str

Get the connector name.

http_client property
http_client: ConnectorHttpClient

Get the HTTP client for making connector requests.

Methods:

close async
close() -> None

Close the HTTP client and release resources.