databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

[FEATURE] For Enums expose a function that will return a list of all possible constants defined

Open alexott opened this issue 1 year ago • 0 comments
trafficstars

Problem Statement

In the terraform provider, we may need a validation logic that will check that the value is in the list of all possible constants.

Proposed Solution

For all generated enums generate a function that will return a slice with all defined values for a given type (maybe only string-based types).

Additional Context

See comment here: https://github.com/databricks/terraform-provider-databricks/pull/4051#discussion_r1799699908

alexott avatar Oct 14 '24 17:10 alexott