gravitino.dto.requests.job_template_update_request.UpdateJobTemplateCommentRequest¶
- class gravitino.dto.requests.job_template_update_request.UpdateJobTemplateCommentRequest(new_comment: str)¶
Bases:
JobTemplateUpdateRequestRequest to update the comment of a job template.
- __init__(new_comment: str)¶
Methods
__init__(new_comment)from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])Converts the request to a JobTemplateChange object.
schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])validate()Validates the fields of the request.
Attributes
dataclass_json_config- job_template_change() JobTemplateChange¶
Converts the request to a JobTemplateChange object.
- validate()¶
Validates the fields of the request.
- Raises:
ValueError if the new comment is not set.