]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | """ |
2 | This file is automatically generated. | |
3 | Do not modify. | |
4 | """ | |
5 | ||
6 | try: | |
7 | from typing import Any, Optional, Union, List | |
8 | except ImportError: | |
9 | pass | |
10 | ||
11 | from .._helper import _omit, CrdObject, CrdObjectList, CrdClass | |
12 | ||
13 | class Rados(CrdObject): | |
14 | _properties = [ | |
20effc67 TL |
15 | ('namespace', 'namespace', str, True, False), |
16 | ('pool', 'pool', str, True, False) | |
9f95a23c TL |
17 | ] |
18 | ||
19 | def __init__(self, | |
20effc67 TL |
20 | namespace, # type: str |
21 | pool, # type: str | |
9f95a23c TL |
22 | ): |
23 | super(Rados, self).__init__( | |
9f95a23c | 24 | namespace=namespace, |
20effc67 | 25 | pool=pool, |
9f95a23c TL |
26 | ) |
27 | ||
20effc67 TL |
28 | @property |
29 | def namespace(self): | |
30 | # type: () -> str | |
31 | return self._property_impl('namespace') | |
32 | ||
33 | @namespace.setter | |
34 | def namespace(self, new_val): | |
35 | # type: (str) -> None | |
36 | self._namespace = new_val | |
37 | ||
9f95a23c TL |
38 | @property |
39 | def pool(self): | |
40 | # type: () -> str | |
41 | return self._property_impl('pool') | |
42 | ||
43 | @pool.setter | |
44 | def pool(self, new_val): | |
20effc67 | 45 | # type: (str) -> None |
9f95a23c | 46 | self._pool = new_val |
20effc67 TL |
47 | |
48 | ||
49 | class ValuesList(CrdObjectList): | |
50 | _items_type = str | |
51 | ||
52 | ||
53 | class MatchExpressionsItem(CrdObject): | |
54 | _properties = [ | |
55 | ('key', 'key', str, True, False), | |
56 | ('operator', 'operator', str, True, False), | |
57 | ('values', 'values', 'ValuesList', False, False) | |
58 | ] | |
59 | ||
60 | def __init__(self, | |
61 | key, # type: str | |
62 | operator, # type: str | |
63 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
64 | ): | |
65 | super(MatchExpressionsItem, self).__init__( | |
66 | key=key, | |
67 | operator=operator, | |
68 | values=values, | |
69 | ) | |
70 | ||
71 | @property | |
72 | def key(self): | |
73 | # type: () -> str | |
74 | return self._property_impl('key') | |
75 | ||
76 | @key.setter | |
77 | def key(self, new_val): | |
78 | # type: (str) -> None | |
79 | self._key = new_val | |
9f95a23c TL |
80 | |
81 | @property | |
20effc67 | 82 | def operator(self): |
9f95a23c | 83 | # type: () -> str |
20effc67 | 84 | return self._property_impl('operator') |
9f95a23c | 85 | |
20effc67 TL |
86 | @operator.setter |
87 | def operator(self, new_val): | |
88 | # type: (str) -> None | |
89 | self._operator = new_val | |
90 | ||
91 | @property | |
92 | def values(self): | |
93 | # type: () -> Union[List[str], CrdObjectList] | |
94 | return self._property_impl('values') | |
95 | ||
96 | @values.setter | |
97 | def values(self, new_val): | |
98 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
99 | self._values = new_val | |
100 | ||
101 | ||
102 | class MatchExpressionsList(CrdObjectList): | |
103 | _items_type = MatchExpressionsItem | |
104 | ||
105 | ||
106 | class MatchFieldsItem(CrdObject): | |
107 | _properties = [ | |
108 | ('key', 'key', str, True, False), | |
109 | ('operator', 'operator', str, True, False), | |
110 | ('values', 'values', 'ValuesList', False, False) | |
111 | ] | |
112 | ||
113 | def __init__(self, | |
114 | key, # type: str | |
115 | operator, # type: str | |
116 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
117 | ): | |
118 | super(MatchFieldsItem, self).__init__( | |
119 | key=key, | |
120 | operator=operator, | |
121 | values=values, | |
122 | ) | |
123 | ||
124 | @property | |
125 | def key(self): | |
126 | # type: () -> str | |
127 | return self._property_impl('key') | |
128 | ||
129 | @key.setter | |
130 | def key(self, new_val): | |
131 | # type: (str) -> None | |
132 | self._key = new_val | |
133 | ||
134 | @property | |
135 | def operator(self): | |
136 | # type: () -> str | |
137 | return self._property_impl('operator') | |
138 | ||
139 | @operator.setter | |
140 | def operator(self, new_val): | |
141 | # type: (str) -> None | |
142 | self._operator = new_val | |
143 | ||
144 | @property | |
145 | def values(self): | |
146 | # type: () -> Union[List[str], CrdObjectList] | |
147 | return self._property_impl('values') | |
148 | ||
149 | @values.setter | |
150 | def values(self, new_val): | |
151 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
152 | self._values = new_val | |
153 | ||
154 | ||
155 | class MatchFieldsList(CrdObjectList): | |
156 | _items_type = MatchFieldsItem | |
157 | ||
158 | ||
159 | class Preference(CrdObject): | |
160 | _properties = [ | |
161 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
162 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
163 | ] | |
164 | ||
165 | def __init__(self, | |
166 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
167 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
168 | ): | |
169 | super(Preference, self).__init__( | |
170 | matchExpressions=matchExpressions, | |
171 | matchFields=matchFields, | |
172 | ) | |
173 | ||
174 | @property | |
175 | def matchExpressions(self): | |
176 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
177 | return self._property_impl('matchExpressions') | |
178 | ||
179 | @matchExpressions.setter | |
180 | def matchExpressions(self, new_val): | |
181 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
182 | self._matchExpressions = new_val | |
183 | ||
184 | @property | |
185 | def matchFields(self): | |
186 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
187 | return self._property_impl('matchFields') | |
188 | ||
189 | @matchFields.setter | |
190 | def matchFields(self, new_val): | |
191 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
192 | self._matchFields = new_val | |
193 | ||
194 | ||
195 | class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
196 | _properties = [ | |
197 | ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False), | |
198 | ('weight', 'weight', int, False, False), | |
199 | ('preference', 'preference', 'Preference', False, False) | |
200 | ] | |
201 | ||
202 | def __init__(self, | |
203 | podAffinityTerm=_omit, # type: Optional[PodAffinityTerm] | |
204 | weight=_omit, # type: Optional[int] | |
205 | preference=_omit, # type: Optional[Preference] | |
206 | ): | |
207 | super(PreferredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
208 | podAffinityTerm=podAffinityTerm, | |
209 | weight=weight, | |
210 | preference=preference, | |
211 | ) | |
212 | ||
213 | @property | |
214 | def podAffinityTerm(self): | |
215 | # type: () -> PodAffinityTerm | |
216 | return self._property_impl('podAffinityTerm') | |
217 | ||
218 | @podAffinityTerm.setter | |
219 | def podAffinityTerm(self, new_val): | |
220 | # type: (Optional[PodAffinityTerm]) -> None | |
221 | self._podAffinityTerm = new_val | |
222 | ||
223 | @property | |
224 | def weight(self): | |
225 | # type: () -> int | |
226 | return self._property_impl('weight') | |
227 | ||
228 | @weight.setter | |
229 | def weight(self, new_val): | |
230 | # type: (Optional[int]) -> None | |
231 | self._weight = new_val | |
232 | ||
233 | @property | |
234 | def preference(self): | |
235 | # type: () -> Preference | |
236 | return self._property_impl('preference') | |
237 | ||
238 | @preference.setter | |
239 | def preference(self, new_val): | |
240 | # type: (Optional[Preference]) -> None | |
241 | self._preference = new_val | |
242 | ||
243 | ||
244 | class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
245 | _items_type = PreferredDuringSchedulingIgnoredDuringExecutionItem | |
246 | ||
247 | ||
248 | class NodeSelectorTermsItem(CrdObject): | |
249 | _properties = [ | |
250 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
251 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
252 | ] | |
253 | ||
254 | def __init__(self, | |
255 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
256 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
257 | ): | |
258 | super(NodeSelectorTermsItem, self).__init__( | |
259 | matchExpressions=matchExpressions, | |
260 | matchFields=matchFields, | |
261 | ) | |
262 | ||
263 | @property | |
264 | def matchExpressions(self): | |
265 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
266 | return self._property_impl('matchExpressions') | |
267 | ||
268 | @matchExpressions.setter | |
269 | def matchExpressions(self, new_val): | |
270 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
271 | self._matchExpressions = new_val | |
272 | ||
273 | @property | |
274 | def matchFields(self): | |
275 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
276 | return self._property_impl('matchFields') | |
277 | ||
278 | @matchFields.setter | |
279 | def matchFields(self, new_val): | |
280 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
281 | self._matchFields = new_val | |
282 | ||
283 | ||
284 | class NodeSelectorTermsList(CrdObjectList): | |
285 | _items_type = NodeSelectorTermsItem | |
286 | ||
287 | ||
288 | class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject): | |
289 | _properties = [ | |
290 | ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False) | |
291 | ] | |
292 | ||
293 | def __init__(self, | |
294 | nodeSelectorTerms, # type: Union[List[NodeSelectorTermsItem], CrdObjectList] | |
295 | ): | |
296 | super(RequiredDuringSchedulingIgnoredDuringExecution, self).__init__( | |
297 | nodeSelectorTerms=nodeSelectorTerms, | |
298 | ) | |
299 | ||
300 | @property | |
301 | def nodeSelectorTerms(self): | |
302 | # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList] | |
303 | return self._property_impl('nodeSelectorTerms') | |
304 | ||
305 | @nodeSelectorTerms.setter | |
306 | def nodeSelectorTerms(self, new_val): | |
307 | # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None | |
308 | self._nodeSelectorTerms = new_val | |
309 | ||
310 | ||
311 | class NodeAffinity(CrdObject): | |
312 | _properties = [ | |
313 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
314 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False) | |
315 | ] | |
316 | ||
317 | def __init__(self, | |
318 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
319 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution] | |
320 | ): | |
321 | super(NodeAffinity, self).__init__( | |
322 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
323 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
324 | ) | |
325 | ||
326 | @property | |
327 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
328 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
329 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
330 | ||
331 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
332 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
333 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
334 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
335 | ||
336 | @property | |
337 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
338 | # type: () -> RequiredDuringSchedulingIgnoredDuringExecution | |
339 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
340 | ||
341 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
342 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
343 | # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None | |
344 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
345 | ||
346 | ||
347 | class LabelSelector(CrdObject): | |
348 | _properties = [ | |
349 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
350 | ('matchLabels', 'matchLabels', object, False, False) | |
351 | ] | |
352 | ||
353 | def __init__(self, | |
354 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
355 | matchLabels=_omit, # type: Optional[Any] | |
356 | ): | |
357 | super(LabelSelector, self).__init__( | |
358 | matchExpressions=matchExpressions, | |
359 | matchLabels=matchLabels, | |
360 | ) | |
361 | ||
362 | @property | |
363 | def matchExpressions(self): | |
364 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
365 | return self._property_impl('matchExpressions') | |
366 | ||
367 | @matchExpressions.setter | |
368 | def matchExpressions(self, new_val): | |
369 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
370 | self._matchExpressions = new_val | |
371 | ||
372 | @property | |
373 | def matchLabels(self): | |
374 | # type: () -> Any | |
375 | return self._property_impl('matchLabels') | |
376 | ||
377 | @matchLabels.setter | |
378 | def matchLabels(self, new_val): | |
379 | # type: (Optional[Any]) -> None | |
380 | self._matchLabels = new_val | |
381 | ||
382 | ||
383 | class NamespaceSelector(CrdObject): | |
384 | _properties = [ | |
385 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
386 | ('matchLabels', 'matchLabels', object, False, False) | |
387 | ] | |
388 | ||
389 | def __init__(self, | |
390 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
391 | matchLabels=_omit, # type: Optional[Any] | |
392 | ): | |
393 | super(NamespaceSelector, self).__init__( | |
394 | matchExpressions=matchExpressions, | |
395 | matchLabels=matchLabels, | |
396 | ) | |
397 | ||
398 | @property | |
399 | def matchExpressions(self): | |
400 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
401 | return self._property_impl('matchExpressions') | |
402 | ||
403 | @matchExpressions.setter | |
404 | def matchExpressions(self, new_val): | |
405 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
406 | self._matchExpressions = new_val | |
407 | ||
408 | @property | |
409 | def matchLabels(self): | |
410 | # type: () -> Any | |
411 | return self._property_impl('matchLabels') | |
412 | ||
413 | @matchLabels.setter | |
414 | def matchLabels(self, new_val): | |
415 | # type: (Optional[Any]) -> None | |
416 | self._matchLabels = new_val | |
417 | ||
418 | ||
419 | class NamespacesList(CrdObjectList): | |
420 | _items_type = str | |
421 | ||
422 | ||
423 | class PodAffinityTerm(CrdObject): | |
424 | _properties = [ | |
425 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
426 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
427 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
428 | ('topologyKey', 'topologyKey', str, True, False) | |
429 | ] | |
430 | ||
431 | def __init__(self, | |
432 | topologyKey, # type: str | |
433 | labelSelector=_omit, # type: Optional[LabelSelector] | |
434 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
435 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
436 | ): | |
437 | super(PodAffinityTerm, self).__init__( | |
438 | topologyKey=topologyKey, | |
439 | labelSelector=labelSelector, | |
440 | namespaceSelector=namespaceSelector, | |
441 | namespaces=namespaces, | |
442 | ) | |
443 | ||
444 | @property | |
445 | def labelSelector(self): | |
446 | # type: () -> LabelSelector | |
447 | return self._property_impl('labelSelector') | |
448 | ||
449 | @labelSelector.setter | |
450 | def labelSelector(self, new_val): | |
451 | # type: (Optional[LabelSelector]) -> None | |
452 | self._labelSelector = new_val | |
453 | ||
454 | @property | |
455 | def namespaceSelector(self): | |
456 | # type: () -> NamespaceSelector | |
457 | return self._property_impl('namespaceSelector') | |
458 | ||
459 | @namespaceSelector.setter | |
460 | def namespaceSelector(self, new_val): | |
461 | # type: (Optional[NamespaceSelector]) -> None | |
462 | self._namespaceSelector = new_val | |
463 | ||
464 | @property | |
465 | def namespaces(self): | |
466 | # type: () -> Union[List[str], CrdObjectList] | |
467 | return self._property_impl('namespaces') | |
468 | ||
469 | @namespaces.setter | |
470 | def namespaces(self, new_val): | |
471 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
472 | self._namespaces = new_val | |
473 | ||
474 | @property | |
475 | def topologyKey(self): | |
476 | # type: () -> str | |
477 | return self._property_impl('topologyKey') | |
478 | ||
479 | @topologyKey.setter | |
480 | def topologyKey(self, new_val): | |
481 | # type: (str) -> None | |
482 | self._topologyKey = new_val | |
483 | ||
484 | ||
485 | class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
486 | _properties = [ | |
487 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
488 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
489 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
490 | ('topologyKey', 'topologyKey', str, True, False) | |
491 | ] | |
492 | ||
493 | def __init__(self, | |
494 | topologyKey, # type: str | |
495 | labelSelector=_omit, # type: Optional[LabelSelector] | |
496 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
497 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
498 | ): | |
499 | super(RequiredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
500 | topologyKey=topologyKey, | |
501 | labelSelector=labelSelector, | |
502 | namespaceSelector=namespaceSelector, | |
503 | namespaces=namespaces, | |
504 | ) | |
505 | ||
506 | @property | |
507 | def labelSelector(self): | |
508 | # type: () -> LabelSelector | |
509 | return self._property_impl('labelSelector') | |
510 | ||
511 | @labelSelector.setter | |
512 | def labelSelector(self, new_val): | |
513 | # type: (Optional[LabelSelector]) -> None | |
514 | self._labelSelector = new_val | |
515 | ||
516 | @property | |
517 | def namespaceSelector(self): | |
518 | # type: () -> NamespaceSelector | |
519 | return self._property_impl('namespaceSelector') | |
520 | ||
521 | @namespaceSelector.setter | |
522 | def namespaceSelector(self, new_val): | |
523 | # type: (Optional[NamespaceSelector]) -> None | |
524 | self._namespaceSelector = new_val | |
525 | ||
526 | @property | |
527 | def namespaces(self): | |
528 | # type: () -> Union[List[str], CrdObjectList] | |
529 | return self._property_impl('namespaces') | |
530 | ||
531 | @namespaces.setter | |
532 | def namespaces(self, new_val): | |
533 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
534 | self._namespaces = new_val | |
535 | ||
536 | @property | |
537 | def topologyKey(self): | |
538 | # type: () -> str | |
539 | return self._property_impl('topologyKey') | |
540 | ||
541 | @topologyKey.setter | |
542 | def topologyKey(self, new_val): | |
543 | # type: (str) -> None | |
544 | self._topologyKey = new_val | |
545 | ||
546 | ||
547 | class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
548 | _items_type = RequiredDuringSchedulingIgnoredDuringExecutionItem | |
549 | ||
550 | ||
551 | class PodAffinity(CrdObject): | |
552 | _properties = [ | |
553 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
554 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
555 | ] | |
556 | ||
557 | def __init__(self, | |
558 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
559 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
560 | ): | |
561 | super(PodAffinity, self).__init__( | |
562 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
563 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
564 | ) | |
565 | ||
566 | @property | |
567 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
568 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
569 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
570 | ||
571 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
572 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
573 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
574 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
575 | ||
576 | @property | |
577 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
578 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
579 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
580 | ||
581 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
582 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
583 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
584 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
585 | ||
586 | ||
587 | class PodAntiAffinity(CrdObject): | |
588 | _properties = [ | |
589 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
590 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
591 | ] | |
592 | ||
593 | def __init__(self, | |
594 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
595 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
596 | ): | |
597 | super(PodAntiAffinity, self).__init__( | |
598 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
599 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
600 | ) | |
601 | ||
602 | @property | |
603 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
604 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
605 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
606 | ||
607 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
608 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
609 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
610 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
611 | ||
612 | @property | |
613 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
614 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
615 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
616 | ||
617 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
618 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
619 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
620 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
621 | ||
622 | ||
623 | class TolerationsItem(CrdObject): | |
624 | _properties = [ | |
625 | ('effect', 'effect', str, False, False), | |
626 | ('key', 'key', str, False, False), | |
627 | ('operator', 'operator', str, False, False), | |
628 | ('tolerationSeconds', 'tolerationSeconds', int, False, False), | |
629 | ('value', 'value', str, False, False) | |
630 | ] | |
631 | ||
632 | def __init__(self, | |
633 | effect=_omit, # type: Optional[str] | |
634 | key=_omit, # type: Optional[str] | |
635 | operator=_omit, # type: Optional[str] | |
636 | tolerationSeconds=_omit, # type: Optional[int] | |
637 | value=_omit, # type: Optional[str] | |
638 | ): | |
639 | super(TolerationsItem, self).__init__( | |
640 | effect=effect, | |
641 | key=key, | |
642 | operator=operator, | |
643 | tolerationSeconds=tolerationSeconds, | |
644 | value=value, | |
645 | ) | |
646 | ||
647 | @property | |
648 | def effect(self): | |
649 | # type: () -> str | |
650 | return self._property_impl('effect') | |
651 | ||
652 | @effect.setter | |
653 | def effect(self, new_val): | |
9f95a23c | 654 | # type: (Optional[str]) -> None |
20effc67 TL |
655 | self._effect = new_val |
656 | ||
657 | @property | |
658 | def key(self): | |
659 | # type: () -> str | |
660 | return self._property_impl('key') | |
661 | ||
662 | @key.setter | |
663 | def key(self, new_val): | |
664 | # type: (Optional[str]) -> None | |
665 | self._key = new_val | |
666 | ||
667 | @property | |
668 | def operator(self): | |
669 | # type: () -> str | |
670 | return self._property_impl('operator') | |
671 | ||
672 | @operator.setter | |
673 | def operator(self, new_val): | |
674 | # type: (Optional[str]) -> None | |
675 | self._operator = new_val | |
676 | ||
677 | @property | |
678 | def tolerationSeconds(self): | |
679 | # type: () -> int | |
680 | return self._property_impl('tolerationSeconds') | |
681 | ||
682 | @tolerationSeconds.setter | |
683 | def tolerationSeconds(self, new_val): | |
684 | # type: (Optional[int]) -> None | |
685 | self._tolerationSeconds = new_val | |
686 | ||
687 | @property | |
688 | def value(self): | |
689 | # type: () -> str | |
690 | return self._property_impl('value') | |
691 | ||
692 | @value.setter | |
693 | def value(self, new_val): | |
694 | # type: (Optional[str]) -> None | |
695 | self._value = new_val | |
696 | ||
697 | ||
698 | class TolerationsList(CrdObjectList): | |
699 | _items_type = TolerationsItem | |
700 | ||
701 | ||
702 | class TopologySpreadConstraintsItem(CrdObject): | |
703 | _properties = [ | |
704 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
705 | ('maxSkew', 'maxSkew', int, True, False), | |
706 | ('topologyKey', 'topologyKey', str, True, False), | |
707 | ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False) | |
708 | ] | |
709 | ||
710 | def __init__(self, | |
711 | maxSkew, # type: int | |
712 | topologyKey, # type: str | |
713 | whenUnsatisfiable, # type: str | |
714 | labelSelector=_omit, # type: Optional[LabelSelector] | |
715 | ): | |
716 | super(TopologySpreadConstraintsItem, self).__init__( | |
717 | maxSkew=maxSkew, | |
718 | topologyKey=topologyKey, | |
719 | whenUnsatisfiable=whenUnsatisfiable, | |
720 | labelSelector=labelSelector, | |
721 | ) | |
722 | ||
723 | @property | |
724 | def labelSelector(self): | |
725 | # type: () -> LabelSelector | |
726 | return self._property_impl('labelSelector') | |
727 | ||
728 | @labelSelector.setter | |
729 | def labelSelector(self, new_val): | |
730 | # type: (Optional[LabelSelector]) -> None | |
731 | self._labelSelector = new_val | |
732 | ||
733 | @property | |
734 | def maxSkew(self): | |
735 | # type: () -> int | |
736 | return self._property_impl('maxSkew') | |
737 | ||
738 | @maxSkew.setter | |
739 | def maxSkew(self, new_val): | |
740 | # type: (int) -> None | |
741 | self._maxSkew = new_val | |
742 | ||
743 | @property | |
744 | def topologyKey(self): | |
745 | # type: () -> str | |
746 | return self._property_impl('topologyKey') | |
747 | ||
748 | @topologyKey.setter | |
749 | def topologyKey(self, new_val): | |
750 | # type: (str) -> None | |
751 | self._topologyKey = new_val | |
752 | ||
753 | @property | |
754 | def whenUnsatisfiable(self): | |
755 | # type: () -> str | |
756 | return self._property_impl('whenUnsatisfiable') | |
757 | ||
758 | @whenUnsatisfiable.setter | |
759 | def whenUnsatisfiable(self, new_val): | |
760 | # type: (str) -> None | |
761 | self._whenUnsatisfiable = new_val | |
762 | ||
763 | ||
764 | class TopologySpreadConstraintsList(CrdObjectList): | |
765 | _items_type = TopologySpreadConstraintsItem | |
766 | ||
767 | ||
768 | class Placement(CrdObject): | |
769 | _properties = [ | |
770 | ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False), | |
771 | ('podAffinity', 'podAffinity', 'PodAffinity', False, False), | |
772 | ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False), | |
773 | ('tolerations', 'tolerations', 'TolerationsList', False, False), | |
774 | ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False) | |
775 | ] | |
776 | ||
777 | def __init__(self, | |
778 | nodeAffinity=_omit, # type: Optional[NodeAffinity] | |
779 | podAffinity=_omit, # type: Optional[PodAffinity] | |
780 | podAntiAffinity=_omit, # type: Optional[PodAntiAffinity] | |
781 | tolerations=_omit, # type: Optional[Union[List[TolerationsItem], CrdObjectList]] | |
782 | topologySpreadConstraints=_omit, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]] | |
783 | ): | |
784 | super(Placement, self).__init__( | |
785 | nodeAffinity=nodeAffinity, | |
786 | podAffinity=podAffinity, | |
787 | podAntiAffinity=podAntiAffinity, | |
788 | tolerations=tolerations, | |
789 | topologySpreadConstraints=topologySpreadConstraints, | |
790 | ) | |
791 | ||
792 | @property | |
793 | def nodeAffinity(self): | |
794 | # type: () -> NodeAffinity | |
795 | return self._property_impl('nodeAffinity') | |
796 | ||
797 | @nodeAffinity.setter | |
798 | def nodeAffinity(self, new_val): | |
799 | # type: (Optional[NodeAffinity]) -> None | |
800 | self._nodeAffinity = new_val | |
801 | ||
802 | @property | |
803 | def podAffinity(self): | |
804 | # type: () -> PodAffinity | |
805 | return self._property_impl('podAffinity') | |
806 | ||
807 | @podAffinity.setter | |
808 | def podAffinity(self, new_val): | |
809 | # type: (Optional[PodAffinity]) -> None | |
810 | self._podAffinity = new_val | |
811 | ||
812 | @property | |
813 | def podAntiAffinity(self): | |
814 | # type: () -> PodAntiAffinity | |
815 | return self._property_impl('podAntiAffinity') | |
816 | ||
817 | @podAntiAffinity.setter | |
818 | def podAntiAffinity(self, new_val): | |
819 | # type: (Optional[PodAntiAffinity]) -> None | |
820 | self._podAntiAffinity = new_val | |
821 | ||
822 | @property | |
823 | def tolerations(self): | |
824 | # type: () -> Union[List[TolerationsItem], CrdObjectList] | |
825 | return self._property_impl('tolerations') | |
826 | ||
827 | @tolerations.setter | |
828 | def tolerations(self, new_val): | |
829 | # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None | |
830 | self._tolerations = new_val | |
831 | ||
832 | @property | |
833 | def topologySpreadConstraints(self): | |
834 | # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList] | |
835 | return self._property_impl('topologySpreadConstraints') | |
836 | ||
837 | @topologySpreadConstraints.setter | |
838 | def topologySpreadConstraints(self, new_val): | |
839 | # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None | |
840 | self._topologySpreadConstraints = new_val | |
841 | ||
842 | ||
843 | class Resources(CrdObject): | |
844 | _properties = [ | |
845 | ('limits', 'limits', object, False, False), | |
846 | ('requests', 'requests', object, False, False) | |
847 | ] | |
848 | ||
849 | def __init__(self, | |
850 | limits=_omit, # type: Optional[Any] | |
851 | requests=_omit, # type: Optional[Any] | |
852 | ): | |
853 | super(Resources, self).__init__( | |
854 | limits=limits, | |
855 | requests=requests, | |
856 | ) | |
857 | ||
858 | @property | |
859 | def limits(self): | |
860 | # type: () -> Any | |
861 | return self._property_impl('limits') | |
862 | ||
863 | @limits.setter | |
864 | def limits(self, new_val): | |
865 | # type: (Optional[Any]) -> None | |
866 | self._limits = new_val | |
867 | ||
868 | @property | |
869 | def requests(self): | |
870 | # type: () -> Any | |
871 | return self._property_impl('requests') | |
872 | ||
873 | @requests.setter | |
874 | def requests(self, new_val): | |
875 | # type: (Optional[Any]) -> None | |
876 | self._requests = new_val | |
9f95a23c TL |
877 | |
878 | ||
879 | class Server(CrdObject): | |
880 | _properties = [ | |
20effc67 TL |
881 | ('active', 'active', int, True, False), |
882 | ('annotations', 'annotations', object, False, True), | |
883 | ('labels', 'labels', object, False, True), | |
884 | ('logLevel', 'logLevel', str, False, False), | |
885 | ('placement', 'placement', 'Placement', False, True), | |
886 | ('priorityClassName', 'priorityClassName', str, False, False), | |
887 | ('resources', 'resources', 'Resources', False, True) | |
9f95a23c TL |
888 | ] |
889 | ||
890 | def __init__(self, | |
20effc67 | 891 | active, # type: int |
9f95a23c | 892 | annotations=_omit, # type: Optional[Any] |
20effc67 TL |
893 | labels=_omit, # type: Optional[Any] |
894 | logLevel=_omit, # type: Optional[str] | |
895 | placement=_omit, # type: Optional[Placement] | |
896 | priorityClassName=_omit, # type: Optional[str] | |
897 | resources=_omit, # type: Optional[Resources] | |
9f95a23c TL |
898 | ): |
899 | super(Server, self).__init__( | |
900 | active=active, | |
901 | annotations=annotations, | |
20effc67 TL |
902 | labels=labels, |
903 | logLevel=logLevel, | |
9f95a23c | 904 | placement=placement, |
20effc67 | 905 | priorityClassName=priorityClassName, |
9f95a23c TL |
906 | resources=resources, |
907 | ) | |
908 | ||
909 | @property | |
910 | def active(self): | |
911 | # type: () -> int | |
912 | return self._property_impl('active') | |
913 | ||
914 | @active.setter | |
915 | def active(self, new_val): | |
20effc67 | 916 | # type: (int) -> None |
9f95a23c TL |
917 | self._active = new_val |
918 | ||
919 | @property | |
920 | def annotations(self): | |
20effc67 | 921 | # type: () -> Optional[Any] |
9f95a23c TL |
922 | return self._property_impl('annotations') |
923 | ||
924 | @annotations.setter | |
925 | def annotations(self, new_val): | |
926 | # type: (Optional[Any]) -> None | |
927 | self._annotations = new_val | |
928 | ||
20effc67 TL |
929 | @property |
930 | def labels(self): | |
931 | # type: () -> Optional[Any] | |
932 | return self._property_impl('labels') | |
933 | ||
934 | @labels.setter | |
935 | def labels(self, new_val): | |
936 | # type: (Optional[Any]) -> None | |
937 | self._labels = new_val | |
938 | ||
939 | @property | |
940 | def logLevel(self): | |
941 | # type: () -> str | |
942 | return self._property_impl('logLevel') | |
943 | ||
944 | @logLevel.setter | |
945 | def logLevel(self, new_val): | |
946 | # type: (Optional[str]) -> None | |
947 | self._logLevel = new_val | |
948 | ||
9f95a23c TL |
949 | @property |
950 | def placement(self): | |
20effc67 | 951 | # type: () -> Optional[Placement] |
9f95a23c TL |
952 | return self._property_impl('placement') |
953 | ||
954 | @placement.setter | |
955 | def placement(self, new_val): | |
20effc67 | 956 | # type: (Optional[Placement]) -> None |
9f95a23c TL |
957 | self._placement = new_val |
958 | ||
20effc67 TL |
959 | @property |
960 | def priorityClassName(self): | |
961 | # type: () -> str | |
962 | return self._property_impl('priorityClassName') | |
963 | ||
964 | @priorityClassName.setter | |
965 | def priorityClassName(self, new_val): | |
966 | # type: (Optional[str]) -> None | |
967 | self._priorityClassName = new_val | |
968 | ||
9f95a23c TL |
969 | @property |
970 | def resources(self): | |
20effc67 | 971 | # type: () -> Optional[Resources] |
9f95a23c TL |
972 | return self._property_impl('resources') |
973 | ||
974 | @resources.setter | |
975 | def resources(self, new_val): | |
20effc67 | 976 | # type: (Optional[Resources]) -> None |
9f95a23c TL |
977 | self._resources = new_val |
978 | ||
979 | ||
980 | class Spec(CrdObject): | |
981 | _properties = [ | |
20effc67 TL |
982 | ('rados', 'rados', 'Rados', True, False), |
983 | ('server', 'server', 'Server', True, False) | |
9f95a23c TL |
984 | ] |
985 | ||
986 | def __init__(self, | |
20effc67 TL |
987 | rados, # type: Rados |
988 | server, # type: Server | |
9f95a23c TL |
989 | ): |
990 | super(Spec, self).__init__( | |
991 | rados=rados, | |
992 | server=server, | |
993 | ) | |
994 | ||
995 | @property | |
996 | def rados(self): | |
997 | # type: () -> Rados | |
998 | return self._property_impl('rados') | |
999 | ||
1000 | @rados.setter | |
1001 | def rados(self, new_val): | |
20effc67 | 1002 | # type: (Rados) -> None |
9f95a23c TL |
1003 | self._rados = new_val |
1004 | ||
1005 | @property | |
1006 | def server(self): | |
1007 | # type: () -> Server | |
1008 | return self._property_impl('server') | |
1009 | ||
1010 | @server.setter | |
1011 | def server(self, new_val): | |
20effc67 | 1012 | # type: (Server) -> None |
9f95a23c TL |
1013 | self._server = new_val |
1014 | ||
1015 | ||
20effc67 TL |
1016 | class Status(CrdObject): |
1017 | _properties = [ | |
1018 | ('phase', 'phase', str, False, False) | |
1019 | ] | |
1020 | ||
1021 | def __init__(self, | |
1022 | phase=_omit, # type: Optional[str] | |
1023 | ): | |
1024 | super(Status, self).__init__( | |
1025 | phase=phase, | |
1026 | ) | |
1027 | ||
1028 | @property | |
1029 | def phase(self): | |
1030 | # type: () -> str | |
1031 | return self._property_impl('phase') | |
1032 | ||
1033 | @phase.setter | |
1034 | def phase(self, new_val): | |
1035 | # type: (Optional[str]) -> None | |
1036 | self._phase = new_val | |
1037 | ||
1038 | ||
9f95a23c TL |
1039 | class CephNFS(CrdClass): |
1040 | _properties = [ | |
20effc67 TL |
1041 | ('apiVersion', 'apiVersion', str, False, False), |
1042 | ('kind', 'kind', str, False, False), | |
1043 | ('metadata', 'metadata', object, False, False), | |
1044 | ('spec', 'spec', 'Spec', True, False), | |
1045 | ('status', 'status', 'Status', False, False) | |
9f95a23c TL |
1046 | ] |
1047 | ||
1048 | def __init__(self, | |
9f95a23c | 1049 | spec, # type: Spec |
20effc67 TL |
1050 | apiVersion=_omit, # type: Optional[str] |
1051 | kind=_omit, # type: Optional[str] | |
1052 | metadata=_omit, # type: Optional[Any] | |
1053 | status=_omit, # type: Optional[Status] | |
9f95a23c TL |
1054 | ): |
1055 | super(CephNFS, self).__init__( | |
20effc67 | 1056 | spec=spec, |
9f95a23c | 1057 | apiVersion=apiVersion, |
20effc67 | 1058 | kind=kind, |
9f95a23c | 1059 | metadata=metadata, |
9f95a23c TL |
1060 | status=status, |
1061 | ) | |
1062 | ||
1063 | @property | |
1064 | def apiVersion(self): | |
1065 | # type: () -> str | |
1066 | return self._property_impl('apiVersion') | |
1067 | ||
1068 | @apiVersion.setter | |
1069 | def apiVersion(self, new_val): | |
20effc67 | 1070 | # type: (Optional[str]) -> None |
9f95a23c TL |
1071 | self._apiVersion = new_val |
1072 | ||
20effc67 TL |
1073 | @property |
1074 | def kind(self): | |
1075 | # type: () -> str | |
1076 | return self._property_impl('kind') | |
1077 | ||
1078 | @kind.setter | |
1079 | def kind(self, new_val): | |
1080 | # type: (Optional[str]) -> None | |
1081 | self._kind = new_val | |
1082 | ||
9f95a23c TL |
1083 | @property |
1084 | def metadata(self): | |
1085 | # type: () -> Any | |
1086 | return self._property_impl('metadata') | |
1087 | ||
1088 | @metadata.setter | |
1089 | def metadata(self, new_val): | |
9f95a23c | 1090 | # type: (Optional[Any]) -> None |
20effc67 | 1091 | self._metadata = new_val |
9f95a23c TL |
1092 | |
1093 | @property | |
1094 | def spec(self): | |
1095 | # type: () -> Spec | |
1096 | return self._property_impl('spec') | |
1097 | ||
1098 | @spec.setter | |
1099 | def spec(self, new_val): | |
1100 | # type: (Spec) -> None | |
1101 | self._spec = new_val | |
20effc67 TL |
1102 | |
1103 | @property | |
1104 | def status(self): | |
1105 | # type: () -> Status | |
1106 | return self._property_impl('status') | |
1107 | ||
1108 | @status.setter | |
1109 | def status(self, new_val): | |
1110 | # type: (Optional[Status]) -> None | |
1111 | self._status = new_val |