gravitino.dto.requests.catalog_update_request.CatalogUpdateRequest¶
- class gravitino.dto.requests.catalog_update_request.CatalogUpdateRequest¶
Bases:
objectRepresents an interface for catalog update requests.
- __init__()¶
Methods
__init__()- class RemoveCatalogPropertyRequest(catalog_property: str)¶
Bases:
CatalogUpdateRequestBaseRequest to remove a property from a catalog.
- property: str | None = None¶
The property to remove.
- validate()¶
Ensures that a constructed instance of a REST message is valid according to the REST spec.
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Raises:
IllegalArgumentException: If the message is not valid.
- class RenameCatalogRequest(new_name: str)¶
Bases:
CatalogUpdateRequestBaseRepresents a request to rename a catalog.
- validate()¶
Validates the fields of the request.
- Raises:
IllegalArgumentException if the new name is not set.
- class SetCatalogPropertyRequest(catalog_property: str, value: str)¶
Bases:
CatalogUpdateRequestBaseRequest to set a property on a catalog.
- validate()¶
Ensures that a constructed instance of a REST message is valid according to the REST spec.
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Raises:
IllegalArgumentException: If the message is not valid.
- class UpdateCatalogCommentRequest(new_comment: str)¶
Bases:
CatalogUpdateRequestBaseRequest to update the comment of a catalog.
- validate()¶
Validates the fields of the request. Always pass.