Skip to content

Commit 3446216

Browse files
committed
Model sync with backward compatibility
1 parent 355277c commit 3446216

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/conductor/client/http/models/target_ref.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class TargetType(str, Enum):
1111
TASK_DEF = "TASK_DEF",
1212
APPLICATION = "APPLICATION",
1313
USER = "USER",
14+
SECRET = "SECRET",
1415
SECRET_NAME = "SECRET_NAME",
1516
TAG = "TAG",
1617
DOMAIN = "DOMAIN"

src/conductor/client/http/models/workflow_summary.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ def output_size(self):
624624
:return: The output_size of this WorkflowSummary. # noqa: E501
625625
:rtype: int
626626
"""
627-
if self._output is not None:
628-
return len(self._output)
629-
return 0
627+
return self._output_size
630628

631629
@output_size.setter
632630
@deprecated(reason="This field is not present in the Java POJO")
@@ -649,9 +647,7 @@ def input_size(self):
649647
:return: The input_size of this WorkflowSummary. # noqa: E501
650648
:rtype: int
651649
"""
652-
if self._input is not None:
653-
return len(self._input)
654-
return 0
650+
return self._input_size
655651

656652
@input_size.setter
657653
@deprecated(reason="This field is not present in the Java POJO")

src/conductor/client/http/models/workflow_task.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
@dataclass
1212
class CacheConfig:
13+
swagger_types = {
14+
'key': 'str',
15+
'ttl_in_second': 'int'
16+
}
17+
18+
attribute_map = {
19+
'key': 'key',
20+
'ttl_in_second': 'ttlInSecond'
21+
}
1322
_key: str = field(default=None, repr=False)
1423
_ttl_in_second: int = field(default=None, repr=False)
1524

0 commit comments

Comments
 (0)