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
-
-
-
Constructor Detail
-
AccountMetastoreAssignmentsAPI
public AccountMetastoreAssignmentsAPI(ApiClient apiClient)
Regular-use constructor
-
AccountMetastoreAssignmentsAPI
public AccountMetastoreAssignmentsAPI(AccountMetastoreAssignmentsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public Iterable<CreateMetastoreAssignmentsResponseItem> create(long workspaceId, String metastoreId)
-
create
public Iterable<CreateMetastoreAssignmentsResponseItem> create(AccountsCreateMetastoreAssignment request)
Assigns a workspace to a metastore.Creates an assignment to a metastore for a workspace Please add a header X-Databricks-Account-Console-API-Version: 2.0 to access this API.
-
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. Please add a header X-Databricks-Account-Console-API-Version: 2.0 to access this API.
-
get
public AccountsMetastoreAssignment get(long workspaceId)
-
get
public AccountsMetastoreAssignment 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. Please add a header X-Databricks-Account-Console-API-Version: 2.0 to access this API.
-
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. Please add a header X-Databricks-Account-Console-API-Version: 2.0 to access this API
-
update
public void update(long workspaceId, String metastoreId)
-
update
public void update(AccountsUpdateMetastoreAssignment 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. Please add a header X-Databricks-Account-Console-API-Version: 2.0 to access this API.
-
impl
public AccountMetastoreAssignmentsService impl()
-
-