windmill-api 1.361.1__py3-none-any.whl → 1.363.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/index_search/__init__.py +0 -0
- windmill_api/api/index_search/search_jobs_index.py +172 -0
- windmill_api/models/completed_job_flow_status_failure_module.py +11 -0
- windmill_api/models/completed_job_flow_status_modules_item.py +11 -0
- windmill_api/models/delete_completed_job_response_200_flow_status_failure_module.py +11 -0
- windmill_api/models/delete_completed_job_response_200_flow_status_modules_item.py +11 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_flow_status_failure_module.py +11 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_flow_status_modules_item.py +11 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_flow_status_failure_module.py +11 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_flow_status_modules_item.py +11 -0
- windmill_api/models/flow_status_failure_module.py +11 -0
- windmill_api/models/flow_status_module.py +11 -0
- windmill_api/models/flow_status_modules_item.py +11 -0
- windmill_api/models/get_completed_job_response_200_flow_status_failure_module.py +11 -0
- windmill_api/models/get_completed_job_response_200_flow_status_modules_item.py +11 -0
- windmill_api/models/get_job_response_200_type_0_flow_status_failure_module.py +11 -0
- windmill_api/models/get_job_response_200_type_0_flow_status_modules_item.py +11 -0
- windmill_api/models/get_job_response_200_type_1_flow_status_failure_module.py +11 -0
- windmill_api/models/get_job_response_200_type_1_flow_status_modules_item.py +11 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_flow_status_failure_module.py +11 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_flow_status_modules_item.py +11 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_flow_status_failure_module.py +11 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_flow_status_modules_item.py +11 -0
- windmill_api/models/job_search_hit.py +58 -0
- windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module.py +11 -0
- windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item.py +11 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_flow_status_failure_module.py +11 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_flow_status_modules_item.py +11 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_flow_status_failure_module.py +11 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_flow_status_modules_item.py +11 -0
- windmill_api/models/list_jobs_response_200_item_type_0_flow_status_failure_module.py +11 -0
- windmill_api/models/list_jobs_response_200_item_type_0_flow_status_modules_item.py +11 -0
- windmill_api/models/list_jobs_response_200_item_type_1_flow_status_failure_module.py +11 -0
- windmill_api/models/list_jobs_response_200_item_type_1_flow_status_modules_item.py +11 -0
- windmill_api/models/list_queue_response_200_item_flow_status_failure_module.py +11 -0
- windmill_api/models/list_queue_response_200_item_flow_status_modules_item.py +11 -0
- windmill_api/models/queued_job_flow_status_failure_module.py +11 -0
- windmill_api/models/queued_job_flow_status_modules_item.py +11 -0
- windmill_api/models/search_jobs_index_response_200.py +104 -0
- windmill_api/models/search_jobs_index_response_200_hits_item.py +58 -0
- windmill_api/models/search_jobs_index_response_200_query_parse_errors_item.py +58 -0
- {windmill_api-1.361.1.dist-info → windmill_api-1.363.0.dist-info}/METADATA +1 -1
- {windmill_api-1.361.1.dist-info → windmill_api-1.363.0.dist-info}/RECORD +45 -39
- {windmill_api-1.361.1.dist-info → windmill_api-1.363.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.361.1.dist-info → windmill_api-1.363.0.dist-info}/WHEEL +0 -0
|
@@ -36,6 +36,7 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
36
36
|
count (Union[Unset, int]):
|
|
37
37
|
iterator (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemIterator]):
|
|
38
38
|
flow_jobs (Union[Unset, List[str]]):
|
|
39
|
+
flow_jobs_success (Union[Unset, List[bool]]):
|
|
39
40
|
branch_chosen (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchChosen]):
|
|
40
41
|
branchall (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchall]):
|
|
41
42
|
approvers (Union[Unset, List['ListQueueResponse200ItemFlowStatusModulesItemApproversItem']]):
|
|
@@ -48,6 +49,7 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
48
49
|
count: Union[Unset, int] = UNSET
|
|
49
50
|
iterator: Union[Unset, "ListQueueResponse200ItemFlowStatusModulesItemIterator"] = UNSET
|
|
50
51
|
flow_jobs: Union[Unset, List[str]] = UNSET
|
|
52
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
51
53
|
branch_chosen: Union[Unset, "ListQueueResponse200ItemFlowStatusModulesItemBranchChosen"] = UNSET
|
|
52
54
|
branchall: Union[Unset, "ListQueueResponse200ItemFlowStatusModulesItemBranchall"] = UNSET
|
|
53
55
|
approvers: Union[Unset, List["ListQueueResponse200ItemFlowStatusModulesItemApproversItem"]] = UNSET
|
|
@@ -68,6 +70,10 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
68
70
|
if not isinstance(self.flow_jobs, Unset):
|
|
69
71
|
flow_jobs = self.flow_jobs
|
|
70
72
|
|
|
73
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
74
|
+
if not isinstance(self.flow_jobs_success, Unset):
|
|
75
|
+
flow_jobs_success = self.flow_jobs_success
|
|
76
|
+
|
|
71
77
|
branch_chosen: Union[Unset, Dict[str, Any]] = UNSET
|
|
72
78
|
if not isinstance(self.branch_chosen, Unset):
|
|
73
79
|
branch_chosen = self.branch_chosen.to_dict()
|
|
@@ -105,6 +111,8 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
105
111
|
field_dict["iterator"] = iterator
|
|
106
112
|
if flow_jobs is not UNSET:
|
|
107
113
|
field_dict["flow_jobs"] = flow_jobs
|
|
114
|
+
if flow_jobs_success is not UNSET:
|
|
115
|
+
field_dict["flow_jobs_success"] = flow_jobs_success
|
|
108
116
|
if branch_chosen is not UNSET:
|
|
109
117
|
field_dict["branch_chosen"] = branch_chosen
|
|
110
118
|
if branchall is not UNSET:
|
|
@@ -149,6 +157,8 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
149
157
|
|
|
150
158
|
flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET))
|
|
151
159
|
|
|
160
|
+
flow_jobs_success = cast(List[bool], d.pop("flow_jobs_success", UNSET))
|
|
161
|
+
|
|
152
162
|
_branch_chosen = d.pop("branch_chosen", UNSET)
|
|
153
163
|
branch_chosen: Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchChosen]
|
|
154
164
|
if isinstance(_branch_chosen, Unset):
|
|
@@ -179,6 +189,7 @@ class ListQueueResponse200ItemFlowStatusModulesItem:
|
|
|
179
189
|
count=count,
|
|
180
190
|
iterator=iterator,
|
|
181
191
|
flow_jobs=flow_jobs,
|
|
192
|
+
flow_jobs_success=flow_jobs_success,
|
|
182
193
|
branch_chosen=branch_chosen,
|
|
183
194
|
branchall=branchall,
|
|
184
195
|
approvers=approvers,
|
|
@@ -30,6 +30,7 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
30
30
|
count (Union[Unset, int]):
|
|
31
31
|
iterator (Union[Unset, QueuedJobFlowStatusFailureModuleIterator]):
|
|
32
32
|
flow_jobs (Union[Unset, List[str]]):
|
|
33
|
+
flow_jobs_success (Union[Unset, List[bool]]):
|
|
33
34
|
branch_chosen (Union[Unset, QueuedJobFlowStatusFailureModuleBranchChosen]):
|
|
34
35
|
branchall (Union[Unset, QueuedJobFlowStatusFailureModuleBranchall]):
|
|
35
36
|
approvers (Union[Unset, List['QueuedJobFlowStatusFailureModuleApproversItem']]):
|
|
@@ -43,6 +44,7 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
43
44
|
count: Union[Unset, int] = UNSET
|
|
44
45
|
iterator: Union[Unset, "QueuedJobFlowStatusFailureModuleIterator"] = UNSET
|
|
45
46
|
flow_jobs: Union[Unset, List[str]] = UNSET
|
|
47
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
46
48
|
branch_chosen: Union[Unset, "QueuedJobFlowStatusFailureModuleBranchChosen"] = UNSET
|
|
47
49
|
branchall: Union[Unset, "QueuedJobFlowStatusFailureModuleBranchall"] = UNSET
|
|
48
50
|
approvers: Union[Unset, List["QueuedJobFlowStatusFailureModuleApproversItem"]] = UNSET
|
|
@@ -64,6 +66,10 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
64
66
|
if not isinstance(self.flow_jobs, Unset):
|
|
65
67
|
flow_jobs = self.flow_jobs
|
|
66
68
|
|
|
69
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
70
|
+
if not isinstance(self.flow_jobs_success, Unset):
|
|
71
|
+
flow_jobs_success = self.flow_jobs_success
|
|
72
|
+
|
|
67
73
|
branch_chosen: Union[Unset, Dict[str, Any]] = UNSET
|
|
68
74
|
if not isinstance(self.branch_chosen, Unset):
|
|
69
75
|
branch_chosen = self.branch_chosen.to_dict()
|
|
@@ -103,6 +109,8 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
103
109
|
field_dict["iterator"] = iterator
|
|
104
110
|
if flow_jobs is not UNSET:
|
|
105
111
|
field_dict["flow_jobs"] = flow_jobs
|
|
112
|
+
if flow_jobs_success is not UNSET:
|
|
113
|
+
field_dict["flow_jobs_success"] = flow_jobs_success
|
|
106
114
|
if branch_chosen is not UNSET:
|
|
107
115
|
field_dict["branch_chosen"] = branch_chosen
|
|
108
116
|
if branchall is not UNSET:
|
|
@@ -145,6 +153,8 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
145
153
|
|
|
146
154
|
flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET))
|
|
147
155
|
|
|
156
|
+
flow_jobs_success = cast(List[bool], d.pop("flow_jobs_success", UNSET))
|
|
157
|
+
|
|
148
158
|
_branch_chosen = d.pop("branch_chosen", UNSET)
|
|
149
159
|
branch_chosen: Union[Unset, QueuedJobFlowStatusFailureModuleBranchChosen]
|
|
150
160
|
if isinstance(_branch_chosen, Unset):
|
|
@@ -177,6 +187,7 @@ class QueuedJobFlowStatusFailureModule:
|
|
|
177
187
|
count=count,
|
|
178
188
|
iterator=iterator,
|
|
179
189
|
flow_jobs=flow_jobs,
|
|
190
|
+
flow_jobs_success=flow_jobs_success,
|
|
180
191
|
branch_chosen=branch_chosen,
|
|
181
192
|
branchall=branchall,
|
|
182
193
|
approvers=approvers,
|
|
@@ -26,6 +26,7 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
26
26
|
count (Union[Unset, int]):
|
|
27
27
|
iterator (Union[Unset, QueuedJobFlowStatusModulesItemIterator]):
|
|
28
28
|
flow_jobs (Union[Unset, List[str]]):
|
|
29
|
+
flow_jobs_success (Union[Unset, List[bool]]):
|
|
29
30
|
branch_chosen (Union[Unset, QueuedJobFlowStatusModulesItemBranchChosen]):
|
|
30
31
|
branchall (Union[Unset, QueuedJobFlowStatusModulesItemBranchall]):
|
|
31
32
|
approvers (Union[Unset, List['QueuedJobFlowStatusModulesItemApproversItem']]):
|
|
@@ -38,6 +39,7 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
38
39
|
count: Union[Unset, int] = UNSET
|
|
39
40
|
iterator: Union[Unset, "QueuedJobFlowStatusModulesItemIterator"] = UNSET
|
|
40
41
|
flow_jobs: Union[Unset, List[str]] = UNSET
|
|
42
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
41
43
|
branch_chosen: Union[Unset, "QueuedJobFlowStatusModulesItemBranchChosen"] = UNSET
|
|
42
44
|
branchall: Union[Unset, "QueuedJobFlowStatusModulesItemBranchall"] = UNSET
|
|
43
45
|
approvers: Union[Unset, List["QueuedJobFlowStatusModulesItemApproversItem"]] = UNSET
|
|
@@ -58,6 +60,10 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
58
60
|
if not isinstance(self.flow_jobs, Unset):
|
|
59
61
|
flow_jobs = self.flow_jobs
|
|
60
62
|
|
|
63
|
+
flow_jobs_success: Union[Unset, List[bool]] = UNSET
|
|
64
|
+
if not isinstance(self.flow_jobs_success, Unset):
|
|
65
|
+
flow_jobs_success = self.flow_jobs_success
|
|
66
|
+
|
|
61
67
|
branch_chosen: Union[Unset, Dict[str, Any]] = UNSET
|
|
62
68
|
if not isinstance(self.branch_chosen, Unset):
|
|
63
69
|
branch_chosen = self.branch_chosen.to_dict()
|
|
@@ -95,6 +101,8 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
95
101
|
field_dict["iterator"] = iterator
|
|
96
102
|
if flow_jobs is not UNSET:
|
|
97
103
|
field_dict["flow_jobs"] = flow_jobs
|
|
104
|
+
if flow_jobs_success is not UNSET:
|
|
105
|
+
field_dict["flow_jobs_success"] = flow_jobs_success
|
|
98
106
|
if branch_chosen is not UNSET:
|
|
99
107
|
field_dict["branch_chosen"] = branch_chosen
|
|
100
108
|
if branchall is not UNSET:
|
|
@@ -135,6 +143,8 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
135
143
|
|
|
136
144
|
flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET))
|
|
137
145
|
|
|
146
|
+
flow_jobs_success = cast(List[bool], d.pop("flow_jobs_success", UNSET))
|
|
147
|
+
|
|
138
148
|
_branch_chosen = d.pop("branch_chosen", UNSET)
|
|
139
149
|
branch_chosen: Union[Unset, QueuedJobFlowStatusModulesItemBranchChosen]
|
|
140
150
|
if isinstance(_branch_chosen, Unset):
|
|
@@ -165,6 +175,7 @@ class QueuedJobFlowStatusModulesItem:
|
|
|
165
175
|
count=count,
|
|
166
176
|
iterator=iterator,
|
|
167
177
|
flow_jobs=flow_jobs,
|
|
178
|
+
flow_jobs_success=flow_jobs_success,
|
|
168
179
|
branch_chosen=branch_chosen,
|
|
169
180
|
branchall=branchall,
|
|
170
181
|
approvers=approvers,
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.search_jobs_index_response_200_hits_item import SearchJobsIndexResponse200HitsItem
|
|
10
|
+
from ..models.search_jobs_index_response_200_query_parse_errors_item import (
|
|
11
|
+
SearchJobsIndexResponse200QueryParseErrorsItem,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="SearchJobsIndexResponse200")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class SearchJobsIndexResponse200:
|
|
20
|
+
"""
|
|
21
|
+
Attributes:
|
|
22
|
+
query_parse_errors (Union[Unset, List['SearchJobsIndexResponse200QueryParseErrorsItem']]): a list of the terms
|
|
23
|
+
that couldn't be parsed (and thus ignored)
|
|
24
|
+
hits (Union[Unset, List['SearchJobsIndexResponse200HitsItem']]): the jobs that matched the query
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
query_parse_errors: Union[Unset, List["SearchJobsIndexResponse200QueryParseErrorsItem"]] = UNSET
|
|
28
|
+
hits: Union[Unset, List["SearchJobsIndexResponse200HitsItem"]] = UNSET
|
|
29
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
32
|
+
query_parse_errors: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
33
|
+
if not isinstance(self.query_parse_errors, Unset):
|
|
34
|
+
query_parse_errors = []
|
|
35
|
+
for query_parse_errors_item_data in self.query_parse_errors:
|
|
36
|
+
query_parse_errors_item = query_parse_errors_item_data.to_dict()
|
|
37
|
+
|
|
38
|
+
query_parse_errors.append(query_parse_errors_item)
|
|
39
|
+
|
|
40
|
+
hits: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
41
|
+
if not isinstance(self.hits, Unset):
|
|
42
|
+
hits = []
|
|
43
|
+
for hits_item_data in self.hits:
|
|
44
|
+
hits_item = hits_item_data.to_dict()
|
|
45
|
+
|
|
46
|
+
hits.append(hits_item)
|
|
47
|
+
|
|
48
|
+
field_dict: Dict[str, Any] = {}
|
|
49
|
+
field_dict.update(self.additional_properties)
|
|
50
|
+
field_dict.update({})
|
|
51
|
+
if query_parse_errors is not UNSET:
|
|
52
|
+
field_dict["query_parse_errors"] = query_parse_errors
|
|
53
|
+
if hits is not UNSET:
|
|
54
|
+
field_dict["hits"] = hits
|
|
55
|
+
|
|
56
|
+
return field_dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
60
|
+
from ..models.search_jobs_index_response_200_hits_item import SearchJobsIndexResponse200HitsItem
|
|
61
|
+
from ..models.search_jobs_index_response_200_query_parse_errors_item import (
|
|
62
|
+
SearchJobsIndexResponse200QueryParseErrorsItem,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
d = src_dict.copy()
|
|
66
|
+
query_parse_errors = []
|
|
67
|
+
_query_parse_errors = d.pop("query_parse_errors", UNSET)
|
|
68
|
+
for query_parse_errors_item_data in _query_parse_errors or []:
|
|
69
|
+
query_parse_errors_item = SearchJobsIndexResponse200QueryParseErrorsItem.from_dict(
|
|
70
|
+
query_parse_errors_item_data
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
query_parse_errors.append(query_parse_errors_item)
|
|
74
|
+
|
|
75
|
+
hits = []
|
|
76
|
+
_hits = d.pop("hits", UNSET)
|
|
77
|
+
for hits_item_data in _hits or []:
|
|
78
|
+
hits_item = SearchJobsIndexResponse200HitsItem.from_dict(hits_item_data)
|
|
79
|
+
|
|
80
|
+
hits.append(hits_item)
|
|
81
|
+
|
|
82
|
+
search_jobs_index_response_200 = cls(
|
|
83
|
+
query_parse_errors=query_parse_errors,
|
|
84
|
+
hits=hits,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
search_jobs_index_response_200.additional_properties = d
|
|
88
|
+
return search_jobs_index_response_200
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def additional_keys(self) -> List[str]:
|
|
92
|
+
return list(self.additional_properties.keys())
|
|
93
|
+
|
|
94
|
+
def __getitem__(self, key: str) -> Any:
|
|
95
|
+
return self.additional_properties[key]
|
|
96
|
+
|
|
97
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
98
|
+
self.additional_properties[key] = value
|
|
99
|
+
|
|
100
|
+
def __delitem__(self, key: str) -> None:
|
|
101
|
+
del self.additional_properties[key]
|
|
102
|
+
|
|
103
|
+
def __contains__(self, key: str) -> bool:
|
|
104
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="SearchJobsIndexResponse200HitsItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class SearchJobsIndexResponse200HitsItem:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
dancer (Union[Unset, str]):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
dancer: Union[Unset, str] = UNSET
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
dancer = self.dancer
|
|
23
|
+
|
|
24
|
+
field_dict: Dict[str, Any] = {}
|
|
25
|
+
field_dict.update(self.additional_properties)
|
|
26
|
+
field_dict.update({})
|
|
27
|
+
if dancer is not UNSET:
|
|
28
|
+
field_dict["dancer"] = dancer
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
dancer = d.pop("dancer", UNSET)
|
|
36
|
+
|
|
37
|
+
search_jobs_index_response_200_hits_item = cls(
|
|
38
|
+
dancer=dancer,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
search_jobs_index_response_200_hits_item.additional_properties = d
|
|
42
|
+
return search_jobs_index_response_200_hits_item
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="SearchJobsIndexResponse200QueryParseErrorsItem")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class SearchJobsIndexResponse200QueryParseErrorsItem:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
dancer (Union[Unset, str]):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
dancer: Union[Unset, str] = UNSET
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
dancer = self.dancer
|
|
23
|
+
|
|
24
|
+
field_dict: Dict[str, Any] = {}
|
|
25
|
+
field_dict.update(self.additional_properties)
|
|
26
|
+
field_dict.update({})
|
|
27
|
+
if dancer is not UNSET:
|
|
28
|
+
field_dict["dancer"] = dancer
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
dancer = d.pop("dancer", UNSET)
|
|
36
|
+
|
|
37
|
+
search_jobs_index_response_200_query_parse_errors_item = cls(
|
|
38
|
+
dancer=dancer,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
search_jobs_index_response_200_query_parse_errors_item.additional_properties = d
|
|
42
|
+
return search_jobs_index_response_200_query_parse_errors_item
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|