@Generated public class CleanRoomsAPI extends Object
| Constructor and Description |
|---|
CleanRoomsAPI(ApiClient apiClient)
Regular-use constructor
|
CleanRoomsAPI(CleanRoomsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CleanRoom |
create(CleanRoom cleanRoom) |
CleanRoom |
create(CreateCleanRoomRequest request)
Create a clean room.
|
CreateCleanRoomOutputCatalogResponse |
createOutputCatalog(CreateCleanRoomOutputCatalogRequest request)
Create an output catalog.
|
CreateCleanRoomOutputCatalogResponse |
createOutputCatalog(String cleanRoomName,
CleanRoomOutputCatalog outputCatalog) |
void |
delete(DeleteCleanRoomRequest request)
Delete a clean room.
|
void |
delete(String name) |
CleanRoom |
get(GetCleanRoomRequest request)
Get a clean room.
|
CleanRoom |
get(String name) |
CleanRoomsService |
impl() |
Iterable<CleanRoom> |
list(ListCleanRoomsRequest request)
List clean rooms.
|
CleanRoom |
update(String name) |
CleanRoom |
update(UpdateCleanRoomRequest request)
Update a clean room.
|
public CleanRoomsAPI(ApiClient apiClient)
public CleanRoomsAPI(CleanRoomsService mock)
public CleanRoom create(CreateCleanRoomRequest request)
Create a new clean room with the specified collaborators. This method is asynchronous; the returned name field inside the clean_room field can be used to poll the clean room status, using the :method:cleanrooms/get method. When this method returns, the clean room will be in a PROVISIONING state, with only name, owner, comment, created_at and status populated. The clean room will be usable once it enters an ACTIVE state.
The caller must be a metastore admin or have the **CREATE_CLEAN_ROOM** privilege on the metastore.
public CreateCleanRoomOutputCatalogResponse createOutputCatalog(String cleanRoomName, CleanRoomOutputCatalog outputCatalog)
public CreateCleanRoomOutputCatalogResponse createOutputCatalog(CreateCleanRoomOutputCatalogRequest request)
Create the output catalog of the clean room.
public void delete(String name)
public void delete(DeleteCleanRoomRequest request)
Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other collaborators have not deleted the clean room, they will still have the clean room in their metastore, but it will be in a DELETED state and no operations other than deletion can be performed on it.
public CleanRoom get(GetCleanRoomRequest request)
Get the details of a clean room given its name.
public Iterable<CleanRoom> list(ListCleanRoomsRequest request)
Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are returned.
public CleanRoom update(UpdateCleanRoomRequest request)
Update a clean room. The caller must be the owner of the clean room, have **MODIFY_CLEAN_ROOM** privilege, or be metastore admin.
When the caller is a metastore admin, only the __owner__ field can be updated.
public CleanRoomsService impl()
Copyright © 2025. All rights reserved.