gravitino.api.tag.tag_change.TagChange¶
- class gravitino.api.tag.tag_change.TagChange¶
Bases:
ABCInterface for supporting tag changes. This interface will be used to provide tag modification operations for each tag.
- __init__()¶
Methods
__init__()remove_property(tag_property)Creates a new tag change instance to remove a property from the tag.
rename(new_name)Create a tag change instance to rename the tag.
set_property(tag_property, tag_value)Creates a new tag change instance to set the property and value for the tag.
update_comment(new_comment)Create a tag change instance to update the tag comment.
- class RemoveProperty(_property: str)¶
Bases:
objectA tag change to remove a property-value pair for the tag.
- property removed_property: str¶
The property to remove.
- class RenameTag(_new_name: str)¶
Bases:
objectA tag change to rename the tag.
- property new_name: str¶
The new name of the tag.
- class SetProperty(_property: str, _value: str)¶
Bases:
objectA tag change to set a property-value pair for the tag.
- property name: str¶
The property to set.
- property value: str¶
The value to set.
- class UpdateTagComment(_new_comment: str)¶
Bases:
objectA tag change to update the tag comment.
- property new_comment: str¶
The new comment of the tag.
- static remove_property(tag_property: str) RemoveProperty¶
Creates a new tag change instance to remove a property from the tag.
- Args:
tag_property (str): The property to remove.
- Returns:
RemoveProperty: The tag change instance to remove a property from the tag.
- static rename(new_name: str) RenameTag¶
Create a tag change instance to rename the tag.
- Args:
new_name (str): The new name of the tag.
- Returns:
RenameTag: A tag change instance to rename the tag.
- static set_property(tag_property: str, tag_value: str) SetProperty¶
Creates a new tag change instance to set the property and value for the tag.
- Args:
tag_property (str): The property to set. tag_value (str): The value to set.
- Returns:
SetProperty: The tag change instance to set the property and value for the tag.
- static update_comment(new_comment: str) UpdateTagComment¶
Create a tag change instance to update the tag comment.
- Args:
new_comment (str): The new comment of the tag.
- Returns:
UpdateTagComment: A tag change instance to update the tag comment.