gravitino.api.job.job_template_change.JobTemplateChange¶
- class gravitino.api.job.job_template_change.JobTemplateChange¶
Bases:
objectThe interface for job template changes. A job template change is an operation that modifies a job template. It can be one of the following:
Rename the job template.
Update the comment of the job template.
Update the job template details, such as executable, arguments, environments, custom fields, etc.
- __init__()¶
Methods
__init__()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.
- 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.