gravitino.api.job.job_template_change.ShellTemplateUpdate¶
- class gravitino.api.job.job_template_change.ShellTemplateUpdate(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, new_scripts: List[str] | None = None)¶
Bases:
TemplateUpdateA template update for shell job templates.
- __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, new_scripts: List[str] | None = None)¶
Initialize a ShellTemplateUpdate.
- Args:
new_executable: The new executable of the shell job template. new_arguments: The new arguments of the shell job template. new_environments: The new environments of the shell job template. new_custom_fields: The new custom fields of the shell job template. new_scripts: The new scripts of the shell job template.
Methods
__init__([new_executable, new_arguments, ...])Initialize a ShellTemplateUpdate.
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 the new scripts of the shell 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.
- get_new_scripts() List[str] | None¶
Get the new scripts of the shell job template.
- Returns:
The new scripts of the shell job template.