gravitino.api.job.job_template_change.UpdateJobTemplate¶
- class gravitino.api.job.job_template_change.UpdateJobTemplate(template_update: TemplateUpdate)¶
Bases:
JobTemplateChangeA job template change to update the details of the job template.
- __init__(template_update: TemplateUpdate)¶
Initialize an UpdateJobTemplate change.
- Args:
template_update: The job template update details.
Methods
__init__(template_update)Initialize an UpdateJobTemplate change.
Get the job template update.
rename(new_name)Creates a new job template change to update the name of the job template.
update_comment(new_comment)Creates a new job template change to update the comment of the job template.
update_template(template_update)Creates a new job template change to update the details of the job template.
- get_template_update() TemplateUpdate¶
Get the job template update.
- Returns:
The job template update.
- static rename(new_name: str) JobTemplateChange¶
Creates a new job template change to update the name of the job template.
- Args:
new_name: The new name of the job template.
- Returns:
The job template change.
- static update_comment(new_comment: str) JobTemplateChange¶
Creates a new job template change to update the comment of the job template.
- Args:
new_comment: The new comment of the job template.
- Returns:
The job template change.
- static update_template(template_update: TemplateUpdate) JobTemplateChange¶
Creates a new job template change to update the details of the job template.
- Args:
template_update: The template update details.
- Returns:
The job template change.