gravitino.api.job.job_template_change.TemplateUpdate¶
- class gravitino.api.job.job_template_change.TemplateUpdate(new_executable: str | None = None, new_arguments: List[str] | None = None, new_environments: Dict[str, str] | None = None, new_custom_fields: Dict[str, str] | None = None)¶
Bases:
ABCBase class for template updates.
- __init__(new_executable: str | None = None, new_arguments: List[str] | None = None, new_environments: Dict[str, str] | None = None, new_custom_fields: Dict[str, str] | None = None)¶
Initialize a TemplateUpdate.
- Args:
new_executable: The new executable of the job template. new_arguments: The new arguments of the job template. new_environments: The new environments of the job template. new_custom_fields: The new custom fields of the job template.
Methods
__init__([new_executable, new_arguments, ...])Initialize a TemplateUpdate.
Get the new arguments of the job template.
Get the new custom fields of the job template.
Get the new environments of the job template.
Get the new executable of the job template.
- get_new_arguments() List[str] | None¶
Get the new arguments of the job template.
- Returns:
The new arguments of the job template.
- get_new_custom_fields() Dict[str, str] | None¶
Get the new custom fields of the job template.
- Returns:
The new custom fields of the job template.
- get_new_environments() Dict[str, str] | None¶
Get the new environments of the job template.
- Returns:
The new environments of the job template.
- get_new_executable() str | None¶
Get the new executable of the job template.
- Returns:
The new executable of the job template.