@Generated public class GroupsAPI extends Object
It is best practice to assign access to workspaces and access-control policies in Unity Catalog to groups, instead of to users individually. All Databricks workspace identities can be assigned as members of groups, and members inherit permissions that are assigned to their group.
Constructor and Description |
---|
GroupsAPI(ApiClient apiClient)
Regular-use constructor
|
GroupsAPI(GroupsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
Group |
create(Group request)
Create a new group.
|
void |
delete(DeleteGroupRequest request)
Delete a group.
|
void |
delete(String id) |
Group |
get(GetGroupRequest request)
Get group details.
|
Group |
get(String id) |
GroupsService |
impl() |
Iterable<Group> |
list(ListGroupsRequest request)
List group details.
|
void |
patch(PartialUpdate request)
Update group details.
|
void |
patch(String id) |
void |
update(Group request)
Replace a group.
|
void |
update(String id) |
public GroupsAPI(ApiClient apiClient)
public GroupsAPI(GroupsService mock)
public Group create(Group request)
Creates a group in the Databricks workspace with a unique name, using the supplied group details.
public void delete(String id)
public void delete(DeleteGroupRequest request)
Deletes a group from the Databricks workspace.
public Group get(GetGroupRequest request)
Gets the information for a specific group in the Databricks workspace.
public Iterable<Group> list(ListGroupsRequest request)
Gets all details of the groups associated with the Databricks workspace.
public void patch(String id)
public void patch(PartialUpdate request)
Partially updates the details of a group.
public void update(String id)
public void update(Group request)
Updates the details of a group by replacing the entire group entity.
public GroupsService impl()
Copyright © 2023. All rights reserved.