gravitino.api.metalake_change.MetalakeChange¶
- class gravitino.api.metalake_change.MetalakeChange¶
Bases:
object
A metalake change is a change to a metalake. It can be used to rename a metalake, update the comment of a metalake, set a property and value pair for a metalake, or remove a property from a metalake.
- __init__()¶
Methods
__init__
()remove_property
(metalake_property)Creates a new metalake change to remove a property from the metalake.
rename
(new_name)Creates a new metalake change to rename the metalake.
set_property
(metalake_property, value)Creates a new metalake change to set a property and value pair for the metalake.
update_comment
(new_comment)Creates a new metalake change to update the metalake comment.
- class RemoveProperty(_property: str)¶
Bases:
object
A metalake change to remove a property from the metalake
- class RenameMetalake(_new_name: str)¶
Bases:
object
A metalake change to rename the metalake.
- class SetProperty(_property: str, _value: str)¶
Bases:
object
A metalake change to set a property and value pair for the metalake
- class UpdateMetalakeComment(_new_comment: str)¶
Bases:
object
A metalake change to update the metalake comment
- static remove_property(metalake_property: str) RemoveProperty ¶
Creates a new metalake change to remove a property from the metalake.
- Args:
metalake_property: The property name to remove.
- Returns:
The metalake change.
- static rename(new_name: str) RenameMetalake ¶
Creates a new metalake change to rename the metalake.
- Args:
new_name: The New name of the metalake.
- Returns:
The metalake change.
- static set_property(metalake_property: str, value: str) SetProperty ¶
Creates a new metalake change to set a property and value pair for the metalake.
- Args:
metalake_property: The property name to set. value: The value to set the property to.
- Returns:
The metalake change.
- static update_comment(new_comment: str) UpdateMetalakeComment ¶
Creates a new metalake change to update the metalake comment.
- Args:
new_comment: The new comment of the metalake.
- Returns:
The metalake change.