@Generated public class CleanRoomsAPI extends Object
To create clean rooms, you must be a metastore admin or a user with the **CREATE_CLEAN_ROOM** privilege.
Constructor and Description |
---|
CleanRoomsAPI(ApiClient apiClient)
Regular-use constructor
|
CleanRoomsAPI(CleanRoomsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
CleanRoomInfo |
create(CreateCleanRoom request)
Create a clean room.
|
CleanRoomInfo |
create(String name,
CentralCleanRoomInfo remoteDetailedInfo) |
void |
delete(DeleteCleanRoomRequest request)
Delete a clean room.
|
void |
delete(String nameArg) |
CleanRoomInfo |
get(GetCleanRoomRequest request)
Get a clean room.
|
CleanRoomInfo |
get(String nameArg) |
CleanRoomsService |
impl() |
Iterable<CleanRoomInfo> |
list(ListCleanRoomsRequest request)
List clean rooms.
|
CleanRoomInfo |
update(String nameArg) |
CleanRoomInfo |
update(UpdateCleanRoom request)
Update a clean room.
|
public CleanRoomsAPI(ApiClient apiClient)
public CleanRoomsAPI(CleanRoomsService mock)
public CleanRoomInfo create(String name, CentralCleanRoomInfo remoteDetailedInfo)
public CleanRoomInfo create(CreateCleanRoom request)
Creates a new clean room with specified colaborators. The caller must be a metastore admin or have the **CREATE_CLEAN_ROOM** privilege on the metastore.
public void delete(String nameArg)
public void delete(DeleteCleanRoomRequest request)
Deletes a data object clean room from the metastore. The caller must be an owner of the clean room.
public CleanRoomInfo get(String nameArg)
public CleanRoomInfo get(GetCleanRoomRequest request)
Gets a data object clean room from the metastore. The caller must be a metastore admin or the owner of the clean room.
public Iterable<CleanRoomInfo> list(ListCleanRoomsRequest request)
Gets an array of data object clean rooms from the metastore. The caller must be a metastore admin or the owner of the clean room. There is no guarantee of a specific ordering of the elements in the array.
public CleanRoomInfo update(String nameArg)
public CleanRoomInfo update(UpdateCleanRoom request)
Updates the clean room with the changes and data objects in the request. The caller must be the owner of the clean room or a metastore admin.
When the caller is a metastore admin, only the __owner__ field can be updated.
In the case that the clean room name is changed **updateCleanRoom** requires that the caller is both the clean room owner and a metastore admin.
For each table that is added through this method, the clean room owner must also have **SELECT** privilege on the table. The privilege must be maintained indefinitely for recipients to be able to access the table. Typically, you should use a group as the clean room owner.
Table removals through **update** do not require additional privileges.
public CleanRoomsService impl()
Copyright © 2023. All rights reserved.