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

[hotfix] workload size string assignment

Open jbrill opened this issue 1 year ago • 1 comments

Resolves https://github.com/databricks/databricks-sdk-py/issues/494

jbrill avatar Jan 03 '24 16:01 jbrill

This is an autogenerated file, and your change will be removed during the next release of the SDK.

We are planning some work to make the Python SDK accept strings in place of enums and objects in place of dataclasses, but that will be a global change that applies to all APIs in the SDK.

Sounds good. I was able to circumvent the issue temporarily by passing an object directly to the workload_size parameter:

class WorkloadSize:
    def __init__(self, value):
        self.value = value

workload_size = WorkloadSize("Small")

jbrill avatar Jan 03 '24 16:01 jbrill