2025-12-01
This commit is contained in:
@@ -102,6 +102,8 @@ class Task(ModelNormal):
|
||||
'task_type': (str,), # noqa: E501
|
||||
'activity': (str,), # noqa: E501
|
||||
'commands': ([Command],), # noqa: E501
|
||||
'steps_completed': (int,), # noqa: E501
|
||||
'steps_total': (int,), # noqa: E501
|
||||
'worker': (TaskWorker,), # noqa: E501
|
||||
'last_touched': (datetime,), # noqa: E501
|
||||
'failed_by_workers': ([TaskWorker],), # noqa: E501
|
||||
@@ -124,6 +126,8 @@ class Task(ModelNormal):
|
||||
'task_type': 'task_type', # noqa: E501
|
||||
'activity': 'activity', # noqa: E501
|
||||
'commands': 'commands', # noqa: E501
|
||||
'steps_completed': 'steps_completed', # noqa: E501
|
||||
'steps_total': 'steps_total', # noqa: E501
|
||||
'worker': 'worker', # noqa: E501
|
||||
'last_touched': 'last_touched', # noqa: E501
|
||||
'failed_by_workers': 'failed_by_workers', # noqa: E501
|
||||
@@ -136,7 +140,7 @@ class Task(ModelNormal):
|
||||
|
||||
@classmethod
|
||||
@convert_js_args_to_python_args
|
||||
def _from_openapi_data(cls, id, created, updated, job_id, index_in_job, name, status, priority, task_type, activity, commands, *args, **kwargs): # noqa: E501
|
||||
def _from_openapi_data(cls, id, created, updated, job_id, index_in_job, name, status, priority, task_type, activity, commands, steps_completed, steps_total, *args, **kwargs): # noqa: E501
|
||||
"""Task - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
@@ -151,6 +155,8 @@ class Task(ModelNormal):
|
||||
task_type (str):
|
||||
activity (str):
|
||||
commands ([Command]):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -224,6 +230,8 @@ class Task(ModelNormal):
|
||||
self.task_type = task_type
|
||||
self.activity = activity
|
||||
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 \
|
||||
@@ -244,7 +252,7 @@ class Task(ModelNormal):
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, id, created, updated, job_id, index_in_job, name, status, priority, task_type, activity, commands, *args, **kwargs): # noqa: E501
|
||||
def __init__(self, id, created, updated, job_id, index_in_job, name, status, priority, task_type, activity, commands, steps_completed, steps_total, *args, **kwargs): # noqa: E501
|
||||
"""Task - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
@@ -259,6 +267,8 @@ class Task(ModelNormal):
|
||||
task_type (str):
|
||||
activity (str):
|
||||
commands ([Command]):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -330,6 +340,8 @@ class Task(ModelNormal):
|
||||
self.task_type = task_type
|
||||
self.activity = activity
|
||||
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