1 - | import constraints_without_public_constrained_types.model
|
2 - | import constraints_without_public_constrained_types.types
|
3 - | import typing
|
4 - |
|
5 - | class ConA:
|
6 - | con_b: constraints_without_public_constrained_types.model.ConB
|
7 - |
|
8 - | con_b_list: typing.Optional[typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]]
|
9 - |
|
10 - | con_b_map: typing.Optional[typing.Dict[str, str]]
|
11 - |
|
12 - | con_b_set: typing.Optional[typing.List[typing.Set[str]]]
|
13 - |
|
14 - | constrained_union: typing.Optional[constraints_without_public_constrained_types.model.ConstrainedUnion]
|
15 - | """
|
16 - | A union with constrained members.
|
17 - | """
|
18 - |
|
19 - | enum_string: typing.Optional[constraints_without_public_constrained_types.model.EnumString]
|
20 - |
|
21 - | fixed_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob]
|
22 - |
|
23 - | fixed_length_string: typing.Optional[str]
|
24 - |
|
25 - | fixed_value_byte: int
|
26 - |
|
27 - | fixed_value_integer: int
|
28 - |
|
29 - | fixed_value_long: int
|
30 - |
|
31 - | fixed_value_short: int
|
32 - |
|
33 - | length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob]
|
34 - |
|
35 - | length_length_pattern_string: typing.Optional[str]
|
36 - |
|
37 - | length_list: typing.Optional[typing.List[str]]
|
38 - |
|
39 - | length_list_of_pattern_string: typing.Optional[typing.List[str]]
|
40 - |
|
41 - | length_map: typing.Optional[typing.Dict[str, str]]
|
42 - |
|
43 - | length_set_of_pattern_string: typing.Optional[typing.Set[str]]
|
44 - |
|
45 - | length_string: typing.Optional[str]
|
46 - |
|
47 - | list_of_length_blob: typing.Optional[typing.List[constraints_without_public_constrained_types.types.Blob]]
|
48 - |
|
49 - | list_of_length_pattern_string: typing.Optional[typing.List[str]]
|
50 - |
|
51 - | list_of_length_string: typing.Optional[typing.List[str]]
|
52 - |
|
53 - | list_of_pattern_string: typing.Optional[typing.List[str]]
|
54 - |
|
55 - | list_of_range_byte: typing.Optional[typing.List[int]]
|
56 - |
|
57 - | list_of_range_integer: typing.Optional[typing.List[int]]
|
58 - |
|
59 - | list_of_range_long: typing.Optional[typing.List[int]]
|
60 - |
|
61 - | list_of_range_short: typing.Optional[typing.List[int]]
|
62 - |
|
63 - | map_of_length_blob: typing.Optional[typing.Dict[str, constraints_without_public_constrained_types.types.Blob]]
|
64 - |
|
65 - | map_of_length_pattern_string: typing.Optional[typing.Dict[str, str]]
|
66 - |
|
67 - | map_of_length_string: typing.Optional[typing.Dict[str, str]]
|
68 - |
|
69 - | map_of_map_of_list_of_list_of_con_b: typing.Optional[typing.Dict[str, typing.Dict[str, typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]]]]
|
70 - |
|
71 - | map_of_pattern_string: typing.Optional[typing.Dict[str, str]]
|
72 - |
|
73 - | map_of_range_byte: typing.Optional[typing.Dict[str, int]]
|
74 - |
|
75 - | map_of_range_integer: typing.Optional[typing.Dict[str, int]]
|
76 - |
|
77 - | map_of_range_long: typing.Optional[typing.Dict[str, int]]
|
78 - |
|
79 - | map_of_range_short: typing.Optional[typing.Dict[str, int]]
|
80 - |
|
81 - | max_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob]
|
82 - |
|
83 - | max_length_string: typing.Optional[str]
|
84 - |
|
85 - | max_range_byte: int
|
86 - |
|
87 - | max_range_integer: int
|
88 - |
|
89 - | max_range_long: int
|
90 - |
|
91 - | max_range_short: int
|
92 - |
|
93 - | min_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob]
|
94 - |
|
95 - | min_length_string: typing.Optional[str]
|
96 - |
|
97 - | min_range_byte: int
|
98 - |
|
99 - | min_range_integer: int
|
100 - |
|
101 - | min_range_long: int
|
102 - |
|
103 - | min_range_short: int
|
104 - |
|
105 - | non_streaming_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob]
|
106 - |
|
107 - | opt_con_b: typing.Optional[constraints_without_public_constrained_types.model.ConB]
|
108 - |
|
109 - | pattern_string: typing.Optional[str]
|
110 - |
|
111 - | range_byte: int
|
112 - |
|
113 - | range_integer: int
|
114 - |
|
115 - | range_long: int
|
116 - |
|
117 - | range_short: int
|
118 - |
|
119 - | sensitive_length_list: typing.Optional[typing.List[constraints_without_public_constrained_types.model.SensitiveStructure]]
|
120 - |
|
121 - | set_of_length_pattern_string: typing.Optional[typing.Set[str]]
|
122 - |
|
123 - | set_of_length_string: typing.Optional[typing.Set[str]]
|
124 - |
|
125 - | set_of_pattern_string: typing.Optional[typing.Set[str]]
|
126 - |
|
127 - | set_of_range_byte: typing.Optional[typing.List[int]]
|
128 - |
|
129 - | set_of_range_integer: typing.Optional[typing.List[int]]
|
130 - |
|
131 - | set_of_range_long: typing.Optional[typing.List[int]]
|
132 - |
|
133 - | set_of_range_short: typing.Optional[typing.List[int]]
|
134 - |
|
135 - | sparse_length_list: typing.Optional[typing.List[typing.Optional[str]]]
|
136 - |
|
137 - | sparse_length_map: typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
138 - |
|
139 - | sparse_list: typing.Optional[typing.List[typing.Optional[str]]]
|
140 - |
|
141 - | sparse_map: typing.Optional[typing.Dict[str, typing.Optional[typing.List[str]]]]
|
142 - |
|
143 - | def __init__(self, con_b: constraints_without_public_constrained_types.model.ConB, opt_con_b: typing.Optional[constraints_without_public_constrained_types.model.ConB] = ..., length_string: typing.Optional[str] = ..., min_length_string: typing.Optional[str] = ..., max_length_string: typing.Optional[str] = ..., fixed_length_string: typing.Optional[str] = ..., length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob] = ..., min_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob] = ..., max_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob] = ..., fixed_length_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob] = ..., range_integer: int, min_range_integer: int, max_range_integer: int, fixed_value_integer: int, range_short: int, min_range_short: int, max_range_short: int, fixed_value_short: int, range_long: int, min_range_long: int, max_range_long: int, fixed_value_long: int, range_byte: int, min_range_byte: int, max_range_byte: int, fixed_value_byte: int, con_b_list: typing.Optional[typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]] = ..., length_list: typing.Optional[typing.List[str]] = ..., sensitive_length_list: typing.Optional[typing.List[constraints_without_public_constrained_types.model.SensitiveStructure]] = ..., con_b_set: typing.Optional[typing.List[typing.Set[str]]] = ..., con_b_map: typing.Optional[typing.Dict[str, str]] = ..., length_map: typing.Optional[typing.Dict[str, str]] = ..., map_of_map_of_list_of_list_of_con_b: typing.Optional[typing.Dict[str, typing.Dict[str, typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]]]] = ..., sparse_map: typing.Optional[typing.Dict[str, typing.Optional[typing.List[str]]]] = ..., sparse_list: typing.Optional[typing.List[typing.Optional[str]]] = ..., sparse_length_map: typing.Optional[typing.Dict[str, typing.Optional[str]]] = ..., sparse_length_list: typing.Optional[typing.List[typing.Optional[str]]] = ..., constrained_union: typing.Optional[constraints_without_public_constrained_types.model.ConstrainedUnion] = ..., enum_string: typing.Optional[constraints_without_public_constrained_types.model.EnumString] = ..., list_of_length_string: typing.Optional[typing.List[str]] = ..., set_of_length_string: typing.Optional[typing.Set[str]] = ..., map_of_length_string: typing.Optional[typing.Dict[str, str]] = ..., list_of_length_blob: typing.Optional[typing.List[constraints_without_public_constrained_types.types.Blob]] = ..., map_of_length_blob: typing.Optional[typing.Dict[str, constraints_without_public_constrained_types.types.Blob]] = ..., list_of_range_integer: typing.Optional[typing.List[int]] = ..., set_of_range_integer: typing.Optional[typing.List[int]] = ..., map_of_range_integer: typing.Optional[typing.Dict[str, int]] = ..., list_of_range_short: typing.Optional[typing.List[int]] = ..., set_of_range_short: typing.Optional[typing.List[int]] = ..., map_of_range_short: typing.Optional[typing.Dict[str, int]] = ..., list_of_range_long: typing.Optional[typing.List[int]] = ..., set_of_range_long: typing.Optional[typing.List[int]] = ..., map_of_range_long: typing.Optional[typing.Dict[str, int]] = ..., list_of_range_byte: typing.Optional[typing.List[int]] = ..., set_of_range_byte: typing.Optional[typing.List[int]] = ..., map_of_range_byte: typing.Optional[typing.Dict[str, int]] = ..., non_streaming_blob: typing.Optional[constraints_without_public_constrained_types.types.Blob] = ..., pattern_string: typing.Optional[str] = ..., map_of_pattern_string: typing.Optional[typing.Dict[str, str]] = ..., list_of_pattern_string: typing.Optional[typing.List[str]] = ..., set_of_pattern_string: typing.Optional[typing.Set[str]] = ..., length_length_pattern_string: typing.Optional[str] = ..., map_of_length_pattern_string: typing.Optional[typing.Dict[str, str]] = ..., list_of_length_pattern_string: typing.Optional[typing.List[str]] = ..., set_of_length_pattern_string: typing.Optional[typing.Set[str]] = ..., length_list_of_pattern_string: typing.Optional[typing.List[str]] = ..., length_set_of_pattern_string: typing.Optional[typing.Set[str]] = ...) -> None:
|
144 - | ...
|
145 - |
|
146 - |
|
147 - | class ConB:
|
148 - | int: int
|
149 - |
|
150 - | nice: str
|
151 - |
|
152 - | opt_int: typing.Optional[int]
|
153 - |
|
154 - | opt_nice: typing.Optional[str]
|
155 - |
|
156 - | def __init__(self, nice: str, int: int, opt_nice: typing.Optional[str] = ..., opt_int: typing.Optional[int] = ...) -> None:
|
157 - | ...
|
158 - |
|
159 - |
|
160 - | class ConstrainedUnion:
|
161 - | def as_con_b_list(self) -> typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]:
|
162 - | """
|
163 - | Tries to convert the enum instance into [`ConBList`](crate::model::ConstrainedUnion::ConBList), extracting the inner [`Vec`](::std::vec::Vec).
|
164 - | """
|
165 - | ...
|
166 - |
|
167 - |
|
168 - | def as_con_b_map(self) -> typing.Dict[str, str]:
|
169 - | """
|
170 - | Tries to convert the enum instance into [`ConBMap`](crate::model::ConstrainedUnion::ConBMap), extracting the inner [`HashMap`](::std::collections::HashMap).
|
171 - | """
|
172 - | ...
|
173 - |
|
174 - |
|
175 - | def as_con_b_set(self) -> typing.List[typing.Set[str]]:
|
176 - | """
|
177 - | Tries to convert the enum instance into [`ConBSet`](crate::model::ConstrainedUnion::ConBSet), extracting the inner [`Vec`](::std::vec::Vec).
|
178 - | """
|
179 - | ...
|
180 - |
|
181 - |
|
182 - | def as_constrained_structure(self) -> constraints_without_public_constrained_types.model.ConB:
|
183 - | """
|
184 - | Tries to convert the enum instance into [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure), extracting the inner [`ConB`](crate::model::ConB).
|
185 - | """
|
186 - | ...
|
187 - |
|
188 - |
|
189 - | def as_enum_string(self) -> constraints_without_public_constrained_types.model.EnumString:
|
190 - | """
|
191 - | Tries to convert the enum instance into [`EnumString`](crate::model::ConstrainedUnion::EnumString), extracting the inner [`EnumString`](crate::model::EnumString).
|
192 - | """
|
193 - | ...
|
194 - |
|
195 - |
|
196 - | def as_length_string(self) -> str:
|
197 - | """
|
198 - | Tries to convert the enum instance into [`LengthString`](crate::model::ConstrainedUnion::LengthString), extracting the inner [`String`](::std::string::String).
|
199 - | """
|
200 - | ...
|
201 - |
|
202 - |
|
203 - | @staticmethod
|
204 - | def con_b_list(data: typing.List[typing.List[constraints_without_public_constrained_types.model.ConB]]) -> ConstrainedUnion:
|
205 - | """
|
206 - | Creates a new union instance of [`ConBList`](crate::model::ConstrainedUnion::ConBList)
|
207 - | """
|
208 - | ...
|
209 - |
|
210 - |
|
211 - | @staticmethod
|
212 - | def con_b_map(data: typing.Dict[str, str]) -> ConstrainedUnion:
|
213 - | """
|
214 - | Creates a new union instance of [`ConBMap`](crate::model::ConstrainedUnion::ConBMap)
|
215 - | """
|
216 - | ...
|
217 - |
|
218 - |
|
219 - | @staticmethod
|
220 - | def con_b_set(data: typing.List[typing.Set[str]]) -> ConstrainedUnion:
|
221 - | """
|
222 - | Creates a new union instance of [`ConBSet`](crate::model::ConstrainedUnion::ConBSet)
|
223 - | """
|
224 - | ...
|
225 - |
|
226 - |
|
227 - | @staticmethod
|
228 - | def constrained_structure(data: constraints_without_public_constrained_types.model.ConB) -> ConstrainedUnion:
|
229 - | """
|
230 - | Creates a new union instance of [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure)
|
231 - | """
|
232 - | ...
|
233 - |
|
234 - |
|
235 - | @staticmethod
|
236 - | def enum_string(data: constraints_without_public_constrained_types.model.EnumString) -> ConstrainedUnion:
|
237 - | """
|
238 - | Creates a new union instance of [`EnumString`](crate::model::ConstrainedUnion::EnumString)
|
239 - | """
|
240 - | ...
|
241 - |
|
242 - |
|
243 - | def is_con_b_list(self) -> bool:
|
244 - | """
|
245 - | Returns true if this is a [`ConBList`](crate::model::ConstrainedUnion::ConBList).
|
246 - | """
|
247 - | ...
|
248 - |
|
249 - |
|
250 - | def is_con_b_map(self) -> bool:
|
251 - | """
|
252 - | Returns true if this is a [`ConBMap`](crate::model::ConstrainedUnion::ConBMap).
|
253 - | """
|
254 - | ...
|
255 - |
|
256 - |
|
257 - | def is_con_b_set(self) -> bool:
|
258 - | """
|
259 - | Returns true if this is a [`ConBSet`](crate::model::ConstrainedUnion::ConBSet).
|
260 - | """
|
261 - | ...
|
262 - |
|
263 - |
|
264 - | def is_constrained_structure(self) -> bool:
|
265 - | """
|
266 - | Returns true if this is a [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure).
|
267 - | """
|
268 - | ...
|
269 - |
|
270 - |
|
271 - | def is_enum_string(self) -> bool:
|
272 - | """
|
273 - | Returns true if this is a [`EnumString`](crate::model::ConstrainedUnion::EnumString).
|
274 - | """
|
275 - | ...
|
276 - |
|
277 - |
|
278 - | def is_length_string(self) -> bool:
|
279 - | """
|
280 - | Returns true if this is a [`LengthString`](crate::model::ConstrainedUnion::LengthString).
|
281 - | """
|
282 - | ...
|
283 - |
|
284 - |
|
285 - | @staticmethod
|
286 - | def length_string(data: str) -> ConstrainedUnion:
|
287 - | """
|
288 - | Creates a new union instance of [`LengthString`](crate::model::ConstrainedUnion::LengthString)
|
289 - | """
|
290 - | ...
|
291 - |
|
292 - |
|
293 - | class ConstrainedUnionInOutput:
|
294 - | def as_structure(self) -> constraints_without_public_constrained_types.model.TransitivelyConstrainedStructureInOutput:
|
295 - | """
|
296 - | Tries to convert the enum instance into [`Structure`](crate::model::ConstrainedUnionInOutput::Structure), extracting the inner [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
297 - | """
|
298 - | ...
|
299 - |
|
300 - |
|
301 - | def is_structure(self) -> bool:
|
302 - | """
|
303 - | Returns true if this is a [`Structure`](crate::model::ConstrainedUnionInOutput::Structure).
|
304 - | """
|
305 - | ...
|
306 - |
|
307 - |
|
308 - | @staticmethod
|
309 - | def structure(data: constraints_without_public_constrained_types.model.TransitivelyConstrainedStructureInOutput) -> ConstrainedUnionInOutput:
|
310 - | """
|
311 - | Creates a new union instance of [`Structure`](crate::model::ConstrainedUnionInOutput::Structure)
|
312 - | """
|
313 - | ...
|
314 - |
|
315 - |
|
316 - | class EnumString:
|
317 - | M256Mega: EnumString
|
318 - |
|
319 - | T2Micro: EnumString
|
320 - |
|
321 - | T2Nano: EnumString
|
322 - |
|
323 - | name: typing.Any
|
324 - |
|
325 - | value: typing.Any
|
326 - |
|
327 - | class Event:
|
328 - | def as_regular_message(self) -> constraints_without_public_constrained_types.model.EventStreamRegularMessage:
|
329 - | """
|
330 - | Tries to convert the enum instance into [`RegularMessage`](crate::model::Event::RegularMessage), extracting the inner [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
331 - | """
|
332 - | ...
|
333 - |
|
334 - |
|
335 - | def is_regular_message(self) -> bool:
|
336 - | """
|
337 - | Returns true if this is a [`RegularMessage`](crate::model::Event::RegularMessage).
|
338 - | """
|
339 - | ...
|
340 - |
|
341 - |
|
342 - | @staticmethod
|
343 - | def regular_message(data: constraints_without_public_constrained_types.model.EventStreamRegularMessage) -> Event:
|
344 - | """
|
345 - | Creates a new union instance of [`RegularMessage`](crate::model::Event::RegularMessage)
|
346 - | """
|
347 - | ...
|
348 - |
|
349 - |
|
350 - | class EventStreamRegularMessage:
|
351 - | message_content: typing.Optional[str]
|
352 - |
|
353 - | def __init__(self, message_content: typing.Optional[str] = ...) -> None:
|
354 - | ...
|
355 - |
|
356 - |
|
357 - | class RecursiveShapesInputOutputNested1:
|
358 - | recursive_member: constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested2
|
359 - |
|
360 - | def __init__(self, recursive_member: constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested2) -> None:
|
361 - | ...
|
362 - |
|
363 - |
|
364 - | class RecursiveShapesInputOutputNested2:
|
365 - | recursive_member: typing.Optional[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1]
|
366 - |
|
367 - | def __init__(self, recursive_member: typing.Optional[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1] = ...) -> None:
|
368 - | ...
|
369 - |
|
370 - |
|
371 - | class SensitiveStructure:
|
372 - | def __init__(self) -> None:
|
373 - | ...
|
374 - |
|
375 - |
|
376 - | class TransitivelyConstrainedStructureInOutput:
|
377 - | length_string: typing.Optional[str]
|
378 - |
|
379 - | def __init__(self, length_string: typing.Optional[str] = ...) -> None:
|
380 - | ...
|
381 - |
|
382 - |
|
383 - | class ValidationExceptionField:
|
384 - | """
|
385 - | Describes one specific validation failure for an input member.
|
386 - | """
|
387 - |
|
388 - | message: str
|
389 - | """
|
390 - | A detailed description of the validation failure.
|
391 - | """
|
392 - |
|
393 - | path: str
|
394 - | """
|
395 - | A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
396 - | """
|
397 - |
|
398 - | def __init__(self, path: str, message: str) -> None:
|
399 - | ...
|
400 - |
|