2025-12-01
This commit is contained in:
@@ -98,6 +98,8 @@ class AssignedTask(ModelNormal):
|
||||
'job_type': (str,), # noqa: E501
|
||||
'task_type': (str,), # noqa: E501
|
||||
'commands': ([Command],), # noqa: E501
|
||||
'steps_completed': (int,), # noqa: E501
|
||||
'steps_total': (int,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -115,6 +117,8 @@ class AssignedTask(ModelNormal):
|
||||
'job_type': 'job_type', # noqa: E501
|
||||
'task_type': 'task_type', # noqa: E501
|
||||
'commands': 'commands', # noqa: E501
|
||||
'steps_completed': 'steps_completed', # noqa: E501
|
||||
'steps_total': 'steps_total', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
@@ -124,7 +128,7 @@ class AssignedTask(ModelNormal):
|
||||
|
||||
@classmethod
|
||||
@convert_js_args_to_python_args
|
||||
def _from_openapi_data(cls, uuid, job, name, status, priority, job_priority, job_type, task_type, commands, *args, **kwargs): # noqa: E501
|
||||
def _from_openapi_data(cls, uuid, job, name, status, priority, job_priority, job_type, task_type, commands, steps_completed, steps_total, *args, **kwargs): # noqa: E501
|
||||
"""AssignedTask - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
@@ -137,6 +141,8 @@ class AssignedTask(ModelNormal):
|
||||
job_type (str):
|
||||
task_type (str):
|
||||
commands ([Command]):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -205,6 +211,8 @@ class AssignedTask(ModelNormal):
|
||||
self.job_type = job_type
|
||||
self.task_type = task_type
|
||||
self.commands = commands
|
||||
self.steps_completed = steps_completed
|
||||
self.steps_total = steps_total
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
@@ -225,7 +233,7 @@ class AssignedTask(ModelNormal):
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, uuid, job, name, status, priority, job_priority, job_type, task_type, commands, *args, **kwargs): # noqa: E501
|
||||
def __init__(self, uuid, job, name, status, priority, job_priority, job_type, task_type, commands, steps_completed, steps_total, *args, **kwargs): # noqa: E501
|
||||
"""AssignedTask - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
@@ -238,6 +246,8 @@ class AssignedTask(ModelNormal):
|
||||
job_type (str):
|
||||
task_type (str):
|
||||
commands ([Command]):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -304,6 +314,8 @@ class AssignedTask(ModelNormal):
|
||||
self.job_type = job_type
|
||||
self.task_type = task_type
|
||||
self.commands = commands
|
||||
self.steps_completed = steps_completed
|
||||
self.steps_total = steps_total
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
|
||||
Reference in New Issue
Block a user