@Generated public class WorkspaceBindingsAPI extends Object
NOTE: The __isolation_mode__ is configured for the securable itself (using its Update method) and the workspace bindings are only consulted when the securable's __isolation_mode__ is set to __ISOLATED__.
A securable's workspace bindings can be configured by a metastore admin or the owner of the securable.
The original path (/api/2.1/unity-catalog/workspace-bindings/catalogs/{name}) is deprecated. Please use the new path (/api/2.1/unity-catalog/bindings/{securable_type}/{securable_name}) which introduces the ability to bind a securable in READ_ONLY mode (catalogs only).
Securables that support binding: - catalog
Constructor and Description |
---|
WorkspaceBindingsAPI(ApiClient apiClient)
Regular-use constructor
|
WorkspaceBindingsAPI(WorkspaceBindingsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
CurrentWorkspaceBindings |
get(GetWorkspaceBindingRequest request)
Get catalog workspace bindings.
|
CurrentWorkspaceBindings |
get(String name) |
WorkspaceBindingsResponse |
getBindings(GetBindingsRequest request)
Get securable workspace bindings.
|
WorkspaceBindingsResponse |
getBindings(String securableType,
String securableName) |
WorkspaceBindingsService |
impl() |
CurrentWorkspaceBindings |
update(String name) |
CurrentWorkspaceBindings |
update(UpdateWorkspaceBindings request)
Update catalog workspace bindings.
|
WorkspaceBindingsResponse |
updateBindings(String securableType,
String securableName) |
WorkspaceBindingsResponse |
updateBindings(UpdateWorkspaceBindingsParameters request)
Update securable workspace bindings.
|
public WorkspaceBindingsAPI(ApiClient apiClient)
public WorkspaceBindingsAPI(WorkspaceBindingsService mock)
public CurrentWorkspaceBindings get(String name)
public CurrentWorkspaceBindings get(GetWorkspaceBindingRequest request)
Gets workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.
public WorkspaceBindingsResponse getBindings(String securableType, String securableName)
public WorkspaceBindingsResponse getBindings(GetBindingsRequest request)
Gets workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.
public CurrentWorkspaceBindings update(String name)
public CurrentWorkspaceBindings update(UpdateWorkspaceBindings request)
Updates workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.
public WorkspaceBindingsResponse updateBindings(String securableType, String securableName)
public WorkspaceBindingsResponse updateBindings(UpdateWorkspaceBindingsParameters request)
Updates workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.
public WorkspaceBindingsService impl()
Copyright © 2023. All rights reserved.