gravitino.dto.requests.model_version_update_request.ModelVersionUpdateRequest¶
- class gravitino.dto.requests.model_version_update_request.ModelVersionUpdateRequest¶
Bases:
object
Namespace for all model version update request types.
- __init__()¶
Methods
__init__
()- class RemoveModelVersionPropertyRequest(pro: str)¶
Bases:
ModelVersionUpdateRequestBase
Request to remove model version properties
- key()¶
Returns the key of the property to remove. Returns:
str: The key of the property to remove.
- model_version_change()¶
Convert to model version change operation
- 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 SetModelVersionPropertyRequest(pro: str, value: str)¶
Bases:
ModelVersionUpdateRequestBase
Request to update model version properties
- model_version_change() ModelVersionChange ¶
Convert to model version change operation
- 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 UpdateModelVersionComment(new_comment: str)¶
Bases:
ModelVersionUpdateRequestBase
Request to update model version comment
- model_version_change()¶
Convert to model version change operation
- validate()¶
Validates the fields of the request. Always pass.
- class UpdateModelVersionUriRequest(new_uri: str)¶
Bases:
ModelVersionUpdateRequestBase
Request to update model version uri
- model_version_change()¶
Returns a ModelVersionChange object representing the update uri operation. Returns:
ModelVersionChange: The ModelVersionChange object representing the update uri operation.
- new_uri()¶
Retrieves the new uri of the model version. Returns:
The new uri of the model version.
- validate()¶
Validates the fields of the request. Always pass.