Teradata Package for Python Function Reference on VantageCloud Lake - __init__ - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference on VantageCloud Lake
- Deployment
- VantageCloud
- Edition
- Lake
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.08
- Published
- November 2025
- ft:locale
- en-US
- ft:lastEdition
- 2025-12-05
- dita:id
- TeradataPython_FxRef_Lake_2000
- Product Category
- Teradata Vantage
- teradataml.sdk.DeviceCodeAuth.__init__ = __init__(self, auth_token_url, auth_device_auth_url, auth_client_id, auth_client_secret=None)
- DESCRIPTION:
Initializes the object for device code authentication mode.
PARAMETERS:
auth_token_url:
Required Argument.
Specifies the token endpoint URL to fetch the access token.
Types: str
auth_device_auth_url:
Required Argument.
Specifies the device code endpoint URL to initiate device code flow.
Types: str
auth_client_id:
Required Argument.
Specifies the client ID for authentication.
Types: str
auth_client_secret:
Optional Argument.
Specifies the client secret for authentication.
Types: str or None
RETURNS:
None
RAISES:
None
EXAMPLES:
>>> from teradataml.sdk import DeviceCodeAuth
>>> auth = DeviceCodeAuth(
auth_token_url="https://example.com/token",
auth_device_auth_url="https://example.com/device_auth",
auth_client_id="your_client_id",
auth_client_secret="your_client_secret"
)