gravitino.dto.responses.job_template_list_response.JobTemplateListResponse

class gravitino.dto.responses.job_template_list_response.JobTemplateListResponse(_code: int, _job_templates: List[JobTemplateDTO])

Bases: BaseResponse

Represents a response containing a list of job templates.

__init__(_code: int, _job_templates: List[JobTemplateDTO]) None

Methods

__init__(_code, _job_templates)

code()

from_dict(kvs, *[, infer_missing])

from_json(s[, infer_missing])

Deserialize JSON string into a JobTemplateListResponse object.

job_templates()

Returns the list of job templates from the response.

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

validate()

Validates the response data.

Attributes

dataclass_json_config

classmethod from_json(s: str, infer_missing: bool = False, **kwargs) JobTemplateListResponse

Deserialize JSON string into a JobTemplateListResponse object.

job_templates() List[JobTemplateDTO]

Returns the list of job templates from the response.

validate()

Validates the response data.

Raises:

IllegalArgumentException: If the job templates list is not set or contains invalid items.