Description
The enum class com.databricks.sdk.service.catalog.Privilege does not contain enum constant for EXTERNAL_USE_LOCATION. Even if API call returns this privilege, it's removed after mapping to Java objects.
Raw API call to endpoint GET /api/2.1/unity-catalog/privilege-assignments/EXTERNAL_LOCATION/external_location_123 properly returns the privilege.
Reproduction
var assignments = workspaceClient.grants().get("EXTERNAL_LOCATION", "external_location_123").getPrivilegeAssignments();
The above should be executed on an already set-up WorkspaceClient instance, with an existing external location named external_location_123 which has the EXTERNAL_USE_LOCATION privilege assigned to some principal.
Expected behavior
Principal assignments returned from the SDK call should include privilege EXTERNAL_USE_LOCATION.
Is it a regression?
Tested on the currently latest SDK version (0.146.0), as well as an older one (0.104.0) - same result.
Debug Logs
N/A
Other Information
- Version: 0.146.0 (also looked at the sources for 0.149.0 - the same)
Additional context
I was looking for a script to regenerate Java classes based on API definition (to contribute regenerated classes), but I wasn't able to find one in this repository.
Description
The enum class
com.databricks.sdk.service.catalog.Privilegedoes not contain enum constant forEXTERNAL_USE_LOCATION. Even if API call returns this privilege, it's removed after mapping to Java objects.Raw API call to endpoint
GET /api/2.1/unity-catalog/privilege-assignments/EXTERNAL_LOCATION/external_location_123properly returns the privilege.Reproduction
The above should be executed on an already set-up
WorkspaceClientinstance, with an existing external location namedexternal_location_123which has theEXTERNAL_USE_LOCATIONprivilege assigned to some principal.Expected behavior
Principal assignments returned from the SDK call should include privilege
EXTERNAL_USE_LOCATION.Is it a regression?
Tested on the currently latest SDK version (0.146.0), as well as an older one (0.104.0) - same result.
Debug Logs
N/A
Other Information
Additional context
I was looking for a script to regenerate Java classes based on API definition (to contribute regenerated classes), but I wasn't able to find one in this repository.