Description
The Looker API 4.0 allows database connections to be enabled or disabled via a disabled boolean field. However, this field is currently missing from the Python SDK models for DBConnection and WriteDBConnection.
Impact
Users currently cannot programmatically toggle the "Enabled" status of a database connection using the Python SDK without resorting to raw internal requests.
Proposed Solution
Update python/looker_sdk/sdk/api40/models.py to include the disabled field in:
DBConnection
WriteDBConnection
Additional Context
The field should be an Optional[bool] to maintain consistency with the Looker API 4.0 specification.
Description
The Looker API 4.0 allows database connections to be enabled or disabled via a
disabledboolean field. However, this field is currently missing from the Python SDK models forDBConnectionandWriteDBConnection.Impact
Users currently cannot programmatically toggle the "Enabled" status of a database connection using the Python SDK without resorting to raw internal requests.
Proposed Solution
Update
python/looker_sdk/sdk/api40/models.pyto include thedisabledfield in:DBConnectionWriteDBConnectionAdditional Context
The field should be an
Optional[bool]to maintain consistency with the Looker API 4.0 specification.