Class AccountMetastoreAssignmentsAPI
- java.lang.Object
-
- com.databricks.sdk.service.catalog.AccountMetastoreAssignmentsAPI
-
@Generated public class AccountMetastoreAssignmentsAPI extends Object
These APIs manage metastore assignments to a workspace.
-
-
Constructor Summary
Constructors Constructor Description AccountMetastoreAssignmentsAPI(ApiClient apiClient)Regular-use constructorAccountMetastoreAssignmentsAPI(AccountMetastoreAssignmentsService mock)Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetastoreAssignmentcreate(CreateMetastoreAssignment request)Assigns a workspace to a metastore.MetastoreAssignmentcreate(String metastoreId, String defaultCatalogName, long workspaceId)voiddelete(long workspaceId, String metastoreId)voiddelete(DeleteAccountMetastoreAssignmentRequest request)Delete a metastore assignment.MetastoreAssignmentget(long workspaceId)MetastoreAssignmentget(GetAccountMetastoreAssignmentRequest request)Gets the metastore assignment for a workspace.AccountMetastoreAssignmentsServiceimpl()Iterable<MetastoreAssignment>list(ListAccountMetastoreAssignmentsRequest request)Get all workspaces assigned to a metastore.Iterable<MetastoreAssignment>list(String metastoreId)MetastoreAssignmentupdate(long workspaceId, String metastoreId)MetastoreAssignmentupdate(UpdateMetastoreAssignment request)Updates a metastore assignment to a workspaces.
-
-
-
Constructor Detail
-
AccountMetastoreAssignmentsAPI
public AccountMetastoreAssignmentsAPI(ApiClient apiClient)
Regular-use constructor
-
AccountMetastoreAssignmentsAPI
public AccountMetastoreAssignmentsAPI(AccountMetastoreAssignmentsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public MetastoreAssignment create(String metastoreId, String defaultCatalogName, long workspaceId)
-
create
public MetastoreAssignment create(CreateMetastoreAssignment request)
Assigns a workspace to a metastore.Creates an assignment to a metastore for a workspace
-
delete
public void delete(long workspaceId, String metastoreId)
-
delete
public void delete(DeleteAccountMetastoreAssignmentRequest request)
Delete a metastore assignment.Deletes a metastore assignment to a workspace, leaving the workspace with no metastore.
-
get
public MetastoreAssignment get(long workspaceId)
-
get
public MetastoreAssignment get(GetAccountMetastoreAssignmentRequest request)
Gets the metastore assignment for a workspace.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.
-
list
public Iterable<MetastoreAssignment> list(String metastoreId)
-
list
public Iterable<MetastoreAssignment> list(ListAccountMetastoreAssignmentsRequest request)
Get all workspaces assigned to a metastore.Gets a list of all Databricks workspace IDs that have been assigned to given metastore.
-
update
public MetastoreAssignment update(long workspaceId, String metastoreId)
-
update
public MetastoreAssignment update(UpdateMetastoreAssignment request)
Updates a metastore assignment to a workspaces.Updates an assignment to a metastore for a workspace. Currently, only the default catalog may be updated
-
impl
public AccountMetastoreAssignmentsService impl()
-
-