databricks-sdk-py
databricks-sdk-py copied to clipboard
[hotfix] workload size string assignment
Resolves https://github.com/databricks/databricks-sdk-py/issues/494
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")