gravitino.api.job.job_template_change.UpdateJobTemplateComment

class gravitino.api.job.job_template_change.UpdateJobTemplateComment(new_comment: str)

Bases: JobTemplateChange

A job template change to update the comment of the job template.

__init__(new_comment: str)

Initialize an UpdateJobTemplateComment change.

Args:

new_comment: The new comment of the job template.

Methods

__init__(new_comment)

Initialize an UpdateJobTemplateComment change.

get_new_comment()

Get the new comment of the job template.

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_new_comment() str

Get the new comment of the job template.

Returns:

The new comment 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.