Aos8ApiBuilder Class

AosApiClientBuilder

A builder class for creating and configuring an instance of AosApiClient.

__init__()

Initialize the builder with default configuration.

build()

Finalize the builder and return an instance of AosApiClient.

Returns:
  • AosApiClient

    A configured AosApiClient instance.

Raises:
  • ValueError

    If any required fields are missing.

setBaseUrl(base_url)

Set the base URL for the API.

Parameters:
  • base_url (str) –

    The base URL of the API.

Returns:

setDebug(debug)

Enable or disable debug mode.

Parameters:
  • debug (bool) –

    Whether to enable debug logging.

Returns:

setPassword(password)

Set the API password.

Parameters:
  • password (str) –

    The API password.

Returns:

setUsername(username)

Set the API username.

Parameters:
  • username (str) –

    The API username.

Returns:

setVerifySSL(verify)

Enable or disable SSL verification.

Parameters:
  • verify (bool) –

    Whether to verify SSL certificates.

Returns: