gravitino.api.job.job_template_change.RenameJobTemplate

class gravitino.api.job.job_template_change.RenameJobTemplate(new_name: str)

Bases: JobTemplateChange

A job template change to rename the job template.

__init__(new_name: str)

Initialize a RenameJobTemplate change.

Args:

new_name: The new name of the job template.

Methods

__init__(new_name)

Initialize a RenameJobTemplate change.

get_new_name()

Get the new name 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_name() str

Get the new name of the job template.

Returns:

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