@Generated public class AccountMetastoreAssignmentsAPI extends Object
Constructor and Description |
---|
AccountMetastoreAssignmentsAPI(AccountMetastoreAssignmentsService mock)
Constructor for mocks
|
AccountMetastoreAssignmentsAPI(ApiClient apiClient)
Regular-use constructor
|
Modifier and Type | Method and Description |
---|---|
void |
create(AccountsCreateMetastoreAssignment request)
Assigns a workspace to a metastore.
|
void |
create(long workspaceId,
String metastoreId) |
void |
delete(DeleteAccountMetastoreAssignmentRequest request)
Delete a metastore assignment.
|
void |
delete(long workspaceId,
String metastoreId) |
AccountsMetastoreAssignment |
get(GetAccountMetastoreAssignmentRequest request)
Gets the metastore assignment for a workspace.
|
AccountsMetastoreAssignment |
get(long workspaceId) |
AccountMetastoreAssignmentsService |
impl() |
Iterable<Long> |
list(ListAccountMetastoreAssignmentsRequest request)
Get all workspaces assigned to a metastore.
|
Iterable<Long> |
list(String metastoreId) |
void |
update(AccountsUpdateMetastoreAssignment request)
Updates a metastore assignment to a workspaces.
|
void |
update(long workspaceId,
String metastoreId) |
public AccountMetastoreAssignmentsAPI(ApiClient apiClient)
public AccountMetastoreAssignmentsAPI(AccountMetastoreAssignmentsService mock)
public void create(long workspaceId, String metastoreId)
public void create(AccountsCreateMetastoreAssignment request)
Creates an assignment to a metastore for a workspace
public void delete(long workspaceId, String metastoreId)
public void delete(DeleteAccountMetastoreAssignmentRequest request)
Deletes a metastore assignment to a workspace, leaving the workspace with no metastore.
public AccountsMetastoreAssignment get(long workspaceId)
public AccountsMetastoreAssignment get(GetAccountMetastoreAssignmentRequest request)
Gets the metastore assignment, if any, for the workspace specified by ID. If the workspace is assigned a metastore, the mappig will be returned. If no metastore is assigned to the workspace, the assignment will not be found and a 404 returned.
public Iterable<Long> list(ListAccountMetastoreAssignmentsRequest request)
Gets a list of all Databricks workspace IDs that have been assigned to given metastore.
public void update(long workspaceId, String metastoreId)
public void update(AccountsUpdateMetastoreAssignment request)
Updates an assignment to a metastore for a workspace. Currently, only the default catalog may be updated.
public AccountMetastoreAssignmentsService impl()
Copyright © 2023. All rights reserved.