gravitino.dto.requests.catalog_update_request.CatalogUpdateRequest¶
- class gravitino.dto.requests.catalog_update_request.CatalogUpdateRequest¶
Bases:
object
Represents an interface for catalog update requests.
- __init__()¶
Methods
__init__
()- class RemoveCatalogPropertyRequest(catalog_property: str)¶
Bases:
CatalogUpdateRequestBase
Request 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:
CatalogUpdateRequestBase
Represents 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:
CatalogUpdateRequestBase
Request 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:
CatalogUpdateRequestBase
Request to update the comment of a catalog.
- validate()¶
Validates the fields of the request. Always pass.