Skip to content

[Missing Field] Add 'disabled' property to Python SDK DBConnection models #1677

@k7ragav

Description

@k7ragav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugRegression or bugp3Priority 3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions