]>
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 | ||
20effc67 TL |
13 | class ErasureCoded(CrdObject): |
14 | _properties = [ | |
15 | ('algorithm', 'algorithm', str, False, False), | |
16 | ('codingChunks', 'codingChunks', int, True, False), | |
17 | ('dataChunks', 'dataChunks', int, True, False) | |
18 | ] | |
19 | ||
20 | def __init__(self, | |
21 | codingChunks, # type: int | |
22 | dataChunks, # type: int | |
23 | algorithm=_omit, # type: Optional[str] | |
24 | ): | |
25 | super(ErasureCoded, self).__init__( | |
26 | codingChunks=codingChunks, | |
27 | dataChunks=dataChunks, | |
28 | algorithm=algorithm, | |
29 | ) | |
30 | ||
31 | @property | |
32 | def algorithm(self): | |
33 | # type: () -> str | |
34 | return self._property_impl('algorithm') | |
35 | ||
36 | @algorithm.setter | |
37 | def algorithm(self, new_val): | |
38 | # type: (Optional[str]) -> None | |
39 | self._algorithm = new_val | |
40 | ||
41 | @property | |
42 | def codingChunks(self): | |
43 | # type: () -> int | |
44 | return self._property_impl('codingChunks') | |
45 | ||
46 | @codingChunks.setter | |
47 | def codingChunks(self, new_val): | |
48 | # type: (int) -> None | |
49 | self._codingChunks = new_val | |
50 | ||
51 | @property | |
52 | def dataChunks(self): | |
53 | # type: () -> int | |
54 | return self._property_impl('dataChunks') | |
55 | ||
56 | @dataChunks.setter | |
57 | def dataChunks(self, new_val): | |
58 | # type: (int) -> None | |
59 | self._dataChunks = new_val | |
60 | ||
61 | ||
62 | class SnapshotSchedulesItem(CrdObject): | |
63 | _properties = [ | |
64 | ('interval', 'interval', str, False, False), | |
65 | ('startTime', 'startTime', str, False, False) | |
66 | ] | |
67 | ||
68 | def __init__(self, | |
69 | interval=_omit, # type: Optional[str] | |
70 | startTime=_omit, # type: Optional[str] | |
71 | ): | |
72 | super(SnapshotSchedulesItem, self).__init__( | |
73 | interval=interval, | |
74 | startTime=startTime, | |
75 | ) | |
76 | ||
77 | @property | |
78 | def interval(self): | |
79 | # type: () -> str | |
80 | return self._property_impl('interval') | |
81 | ||
82 | @interval.setter | |
83 | def interval(self, new_val): | |
84 | # type: (Optional[str]) -> None | |
85 | self._interval = new_val | |
86 | ||
87 | @property | |
88 | def startTime(self): | |
89 | # type: () -> str | |
90 | return self._property_impl('startTime') | |
91 | ||
92 | @startTime.setter | |
93 | def startTime(self, new_val): | |
94 | # type: (Optional[str]) -> None | |
95 | self._startTime = new_val | |
96 | ||
97 | ||
98 | class SnapshotSchedulesList(CrdObjectList): | |
99 | _items_type = SnapshotSchedulesItem | |
100 | ||
101 | ||
102 | class Mirroring(CrdObject): | |
103 | _properties = [ | |
104 | ('enabled', 'enabled', bool, False, False), | |
105 | ('mode', 'mode', str, False, False), | |
106 | ('snapshotSchedules', 'snapshotSchedules', 'SnapshotSchedulesList', False, False) | |
107 | ] | |
108 | ||
109 | def __init__(self, | |
110 | enabled=_omit, # type: Optional[bool] | |
111 | mode=_omit, # type: Optional[str] | |
112 | snapshotSchedules=_omit, # type: Optional[Union[List[SnapshotSchedulesItem], CrdObjectList]] | |
113 | ): | |
114 | super(Mirroring, self).__init__( | |
115 | enabled=enabled, | |
116 | mode=mode, | |
117 | snapshotSchedules=snapshotSchedules, | |
118 | ) | |
119 | ||
120 | @property | |
121 | def enabled(self): | |
122 | # type: () -> bool | |
123 | return self._property_impl('enabled') | |
124 | ||
125 | @enabled.setter | |
126 | def enabled(self, new_val): | |
127 | # type: (Optional[bool]) -> None | |
128 | self._enabled = new_val | |
129 | ||
130 | @property | |
131 | def mode(self): | |
132 | # type: () -> str | |
133 | return self._property_impl('mode') | |
134 | ||
135 | @mode.setter | |
136 | def mode(self, new_val): | |
137 | # type: (Optional[str]) -> None | |
138 | self._mode = new_val | |
139 | ||
140 | @property | |
141 | def snapshotSchedules(self): | |
142 | # type: () -> Union[List[SnapshotSchedulesItem], CrdObjectList] | |
143 | return self._property_impl('snapshotSchedules') | |
144 | ||
145 | @snapshotSchedules.setter | |
146 | def snapshotSchedules(self, new_val): | |
147 | # type: (Optional[Union[List[SnapshotSchedulesItem], CrdObjectList]]) -> None | |
148 | self._snapshotSchedules = new_val | |
149 | ||
150 | ||
151 | class Quotas(CrdObject): | |
152 | _properties = [ | |
153 | ('maxBytes', 'maxBytes', int, False, False), | |
154 | ('maxObjects', 'maxObjects', int, False, False), | |
155 | ('maxSize', 'maxSize', str, False, False) | |
156 | ] | |
157 | ||
158 | def __init__(self, | |
159 | maxBytes=_omit, # type: Optional[int] | |
160 | maxObjects=_omit, # type: Optional[int] | |
161 | maxSize=_omit, # type: Optional[str] | |
162 | ): | |
163 | super(Quotas, self).__init__( | |
164 | maxBytes=maxBytes, | |
165 | maxObjects=maxObjects, | |
166 | maxSize=maxSize, | |
167 | ) | |
168 | ||
169 | @property | |
170 | def maxBytes(self): | |
171 | # type: () -> int | |
172 | return self._property_impl('maxBytes') | |
173 | ||
174 | @maxBytes.setter | |
175 | def maxBytes(self, new_val): | |
176 | # type: (Optional[int]) -> None | |
177 | self._maxBytes = new_val | |
178 | ||
179 | @property | |
180 | def maxObjects(self): | |
181 | # type: () -> int | |
182 | return self._property_impl('maxObjects') | |
183 | ||
184 | @maxObjects.setter | |
185 | def maxObjects(self, new_val): | |
186 | # type: (Optional[int]) -> None | |
187 | self._maxObjects = new_val | |
188 | ||
189 | @property | |
190 | def maxSize(self): | |
191 | # type: () -> str | |
192 | return self._property_impl('maxSize') | |
193 | ||
194 | @maxSize.setter | |
195 | def maxSize(self, new_val): | |
196 | # type: (Optional[str]) -> None | |
197 | self._maxSize = new_val | |
198 | ||
199 | ||
200 | class Replicated(CrdObject): | |
201 | _properties = [ | |
202 | ('replicasPerFailureDomain', 'replicasPerFailureDomain', int, False, False), | |
203 | ('requireSafeReplicaSize', 'requireSafeReplicaSize', bool, False, False), | |
204 | ('size', 'size', int, True, False), | |
205 | ('subFailureDomain', 'subFailureDomain', str, False, False), | |
206 | ('targetSizeRatio', 'targetSizeRatio', float, False, False) | |
207 | ] | |
208 | ||
209 | def __init__(self, | |
210 | size, # type: int | |
211 | replicasPerFailureDomain=_omit, # type: Optional[int] | |
212 | requireSafeReplicaSize=_omit, # type: Optional[bool] | |
213 | subFailureDomain=_omit, # type: Optional[str] | |
214 | targetSizeRatio=_omit, # type: Optional[float] | |
215 | ): | |
216 | super(Replicated, self).__init__( | |
217 | size=size, | |
218 | replicasPerFailureDomain=replicasPerFailureDomain, | |
219 | requireSafeReplicaSize=requireSafeReplicaSize, | |
220 | subFailureDomain=subFailureDomain, | |
221 | targetSizeRatio=targetSizeRatio, | |
222 | ) | |
223 | ||
224 | @property | |
225 | def replicasPerFailureDomain(self): | |
226 | # type: () -> int | |
227 | return self._property_impl('replicasPerFailureDomain') | |
228 | ||
229 | @replicasPerFailureDomain.setter | |
230 | def replicasPerFailureDomain(self, new_val): | |
231 | # type: (Optional[int]) -> None | |
232 | self._replicasPerFailureDomain = new_val | |
233 | ||
234 | @property | |
235 | def requireSafeReplicaSize(self): | |
236 | # type: () -> bool | |
237 | return self._property_impl('requireSafeReplicaSize') | |
238 | ||
239 | @requireSafeReplicaSize.setter | |
240 | def requireSafeReplicaSize(self, new_val): | |
241 | # type: (Optional[bool]) -> None | |
242 | self._requireSafeReplicaSize = new_val | |
243 | ||
244 | @property | |
245 | def size(self): | |
246 | # type: () -> int | |
247 | return self._property_impl('size') | |
248 | ||
249 | @size.setter | |
250 | def size(self, new_val): | |
251 | # type: (int) -> None | |
252 | self._size = new_val | |
253 | ||
254 | @property | |
255 | def subFailureDomain(self): | |
256 | # type: () -> str | |
257 | return self._property_impl('subFailureDomain') | |
258 | ||
259 | @subFailureDomain.setter | |
260 | def subFailureDomain(self, new_val): | |
261 | # type: (Optional[str]) -> None | |
262 | self._subFailureDomain = new_val | |
263 | ||
264 | @property | |
265 | def targetSizeRatio(self): | |
266 | # type: () -> float | |
267 | return self._property_impl('targetSizeRatio') | |
268 | ||
269 | @targetSizeRatio.setter | |
270 | def targetSizeRatio(self, new_val): | |
271 | # type: (Optional[float]) -> None | |
272 | self._targetSizeRatio = new_val | |
273 | ||
274 | ||
275 | class Mirror(CrdObject): | |
276 | _properties = [ | |
277 | ('disabled', 'disabled', bool, False, False), | |
278 | ('interval', 'interval', str, False, False), | |
279 | ('timeout', 'timeout', str, False, False) | |
280 | ] | |
281 | ||
282 | def __init__(self, | |
283 | disabled=_omit, # type: Optional[bool] | |
284 | interval=_omit, # type: Optional[str] | |
285 | timeout=_omit, # type: Optional[str] | |
286 | ): | |
287 | super(Mirror, self).__init__( | |
288 | disabled=disabled, | |
289 | interval=interval, | |
290 | timeout=timeout, | |
291 | ) | |
292 | ||
293 | @property | |
294 | def disabled(self): | |
295 | # type: () -> bool | |
296 | return self._property_impl('disabled') | |
297 | ||
298 | @disabled.setter | |
299 | def disabled(self, new_val): | |
300 | # type: (Optional[bool]) -> None | |
301 | self._disabled = new_val | |
302 | ||
303 | @property | |
304 | def interval(self): | |
305 | # type: () -> str | |
306 | return self._property_impl('interval') | |
307 | ||
308 | @interval.setter | |
309 | def interval(self, new_val): | |
310 | # type: (Optional[str]) -> None | |
311 | self._interval = new_val | |
312 | ||
313 | @property | |
314 | def timeout(self): | |
315 | # type: () -> str | |
316 | return self._property_impl('timeout') | |
317 | ||
318 | @timeout.setter | |
319 | def timeout(self, new_val): | |
320 | # type: (Optional[str]) -> None | |
321 | self._timeout = new_val | |
322 | ||
323 | ||
324 | class StatusCheck(CrdObject): | |
325 | _properties = [ | |
326 | ('mirror', 'mirror', 'Mirror', False, True) | |
327 | ] | |
328 | ||
329 | def __init__(self, | |
330 | mirror=_omit, # type: Optional[Mirror] | |
331 | ): | |
332 | super(StatusCheck, self).__init__( | |
333 | mirror=mirror, | |
334 | ) | |
335 | ||
336 | @property | |
337 | def mirror(self): | |
338 | # type: () -> Optional[Mirror] | |
339 | return self._property_impl('mirror') | |
340 | ||
341 | @mirror.setter | |
342 | def mirror(self, new_val): | |
343 | # type: (Optional[Mirror]) -> None | |
344 | self._mirror = new_val | |
345 | ||
346 | ||
347 | class DataPoolsItem(CrdObject): | |
348 | _properties = [ | |
349 | ('compressionMode', 'compressionMode', str, False, True), | |
350 | ('crushRoot', 'crushRoot', str, False, True), | |
351 | ('deviceClass', 'deviceClass', str, False, True), | |
352 | ('enableRBDStats', 'enableRBDStats', bool, False, False), | |
353 | ('erasureCoded', 'erasureCoded', 'ErasureCoded', False, False), | |
354 | ('failureDomain', 'failureDomain', str, False, False), | |
355 | ('mirroring', 'mirroring', 'Mirroring', False, False), | |
356 | ('parameters', 'parameters', object, False, True), | |
357 | ('quotas', 'quotas', 'Quotas', False, True), | |
358 | ('replicated', 'replicated', 'Replicated', False, False), | |
359 | ('statusCheck', 'statusCheck', 'StatusCheck', False, False) | |
360 | ] | |
361 | ||
362 | def __init__(self, | |
363 | compressionMode=_omit, # type: Optional[str] | |
364 | crushRoot=_omit, # type: Optional[str] | |
365 | deviceClass=_omit, # type: Optional[str] | |
366 | enableRBDStats=_omit, # type: Optional[bool] | |
367 | erasureCoded=_omit, # type: Optional[ErasureCoded] | |
368 | failureDomain=_omit, # type: Optional[str] | |
369 | mirroring=_omit, # type: Optional[Mirroring] | |
370 | parameters=_omit, # type: Optional[Any] | |
371 | quotas=_omit, # type: Optional[Quotas] | |
372 | replicated=_omit, # type: Optional[Replicated] | |
373 | statusCheck=_omit, # type: Optional[StatusCheck] | |
374 | ): | |
375 | super(DataPoolsItem, self).__init__( | |
376 | compressionMode=compressionMode, | |
377 | crushRoot=crushRoot, | |
378 | deviceClass=deviceClass, | |
379 | enableRBDStats=enableRBDStats, | |
380 | erasureCoded=erasureCoded, | |
381 | failureDomain=failureDomain, | |
382 | mirroring=mirroring, | |
383 | parameters=parameters, | |
384 | quotas=quotas, | |
385 | replicated=replicated, | |
386 | statusCheck=statusCheck, | |
387 | ) | |
388 | ||
389 | @property | |
390 | def compressionMode(self): | |
391 | # type: () -> Optional[str] | |
392 | return self._property_impl('compressionMode') | |
393 | ||
394 | @compressionMode.setter | |
395 | def compressionMode(self, new_val): | |
396 | # type: (Optional[str]) -> None | |
397 | self._compressionMode = new_val | |
398 | ||
399 | @property | |
400 | def crushRoot(self): | |
401 | # type: () -> Optional[str] | |
402 | return self._property_impl('crushRoot') | |
403 | ||
404 | @crushRoot.setter | |
405 | def crushRoot(self, new_val): | |
406 | # type: (Optional[str]) -> None | |
407 | self._crushRoot = new_val | |
408 | ||
409 | @property | |
410 | def deviceClass(self): | |
411 | # type: () -> Optional[str] | |
412 | return self._property_impl('deviceClass') | |
413 | ||
414 | @deviceClass.setter | |
415 | def deviceClass(self, new_val): | |
416 | # type: (Optional[str]) -> None | |
417 | self._deviceClass = new_val | |
418 | ||
419 | @property | |
420 | def enableRBDStats(self): | |
421 | # type: () -> bool | |
422 | return self._property_impl('enableRBDStats') | |
423 | ||
424 | @enableRBDStats.setter | |
425 | def enableRBDStats(self, new_val): | |
426 | # type: (Optional[bool]) -> None | |
427 | self._enableRBDStats = new_val | |
428 | ||
429 | @property | |
430 | def erasureCoded(self): | |
431 | # type: () -> ErasureCoded | |
432 | return self._property_impl('erasureCoded') | |
433 | ||
434 | @erasureCoded.setter | |
435 | def erasureCoded(self, new_val): | |
436 | # type: (Optional[ErasureCoded]) -> None | |
437 | self._erasureCoded = new_val | |
438 | ||
439 | @property | |
440 | def failureDomain(self): | |
441 | # type: () -> str | |
442 | return self._property_impl('failureDomain') | |
443 | ||
444 | @failureDomain.setter | |
445 | def failureDomain(self, new_val): | |
446 | # type: (Optional[str]) -> None | |
447 | self._failureDomain = new_val | |
448 | ||
449 | @property | |
450 | def mirroring(self): | |
451 | # type: () -> Mirroring | |
452 | return self._property_impl('mirroring') | |
453 | ||
454 | @mirroring.setter | |
455 | def mirroring(self, new_val): | |
456 | # type: (Optional[Mirroring]) -> None | |
457 | self._mirroring = new_val | |
458 | ||
459 | @property | |
460 | def parameters(self): | |
461 | # type: () -> Optional[Any] | |
462 | return self._property_impl('parameters') | |
463 | ||
464 | @parameters.setter | |
465 | def parameters(self, new_val): | |
466 | # type: (Optional[Any]) -> None | |
467 | self._parameters = new_val | |
468 | ||
469 | @property | |
470 | def quotas(self): | |
471 | # type: () -> Optional[Quotas] | |
472 | return self._property_impl('quotas') | |
473 | ||
474 | @quotas.setter | |
475 | def quotas(self, new_val): | |
476 | # type: (Optional[Quotas]) -> None | |
477 | self._quotas = new_val | |
478 | ||
479 | @property | |
480 | def replicated(self): | |
481 | # type: () -> Replicated | |
482 | return self._property_impl('replicated') | |
483 | ||
484 | @replicated.setter | |
485 | def replicated(self, new_val): | |
486 | # type: (Optional[Replicated]) -> None | |
487 | self._replicated = new_val | |
488 | ||
489 | @property | |
490 | def statusCheck(self): | |
491 | # type: () -> StatusCheck | |
492 | return self._property_impl('statusCheck') | |
493 | ||
494 | @statusCheck.setter | |
495 | def statusCheck(self, new_val): | |
496 | # type: (Optional[StatusCheck]) -> None | |
497 | self._statusCheck = new_val | |
498 | ||
499 | ||
500 | class DataPoolsList(CrdObjectList): | |
501 | _items_type = DataPoolsItem | |
502 | ||
503 | ||
504 | class MetadataPool(CrdObject): | |
505 | _properties = [ | |
506 | ('compressionMode', 'compressionMode', str, False, True), | |
507 | ('crushRoot', 'crushRoot', str, False, True), | |
508 | ('deviceClass', 'deviceClass', str, False, True), | |
509 | ('enableRBDStats', 'enableRBDStats', bool, False, False), | |
510 | ('erasureCoded', 'erasureCoded', 'ErasureCoded', False, False), | |
511 | ('failureDomain', 'failureDomain', str, False, False), | |
512 | ('mirroring', 'mirroring', 'Mirroring', False, False), | |
513 | ('parameters', 'parameters', object, False, True), | |
514 | ('quotas', 'quotas', 'Quotas', False, True), | |
515 | ('replicated', 'replicated', 'Replicated', False, False), | |
516 | ('statusCheck', 'statusCheck', 'StatusCheck', False, False) | |
517 | ] | |
518 | ||
519 | def __init__(self, | |
520 | compressionMode=_omit, # type: Optional[str] | |
521 | crushRoot=_omit, # type: Optional[str] | |
522 | deviceClass=_omit, # type: Optional[str] | |
523 | enableRBDStats=_omit, # type: Optional[bool] | |
524 | erasureCoded=_omit, # type: Optional[ErasureCoded] | |
525 | failureDomain=_omit, # type: Optional[str] | |
526 | mirroring=_omit, # type: Optional[Mirroring] | |
527 | parameters=_omit, # type: Optional[Any] | |
528 | quotas=_omit, # type: Optional[Quotas] | |
529 | replicated=_omit, # type: Optional[Replicated] | |
530 | statusCheck=_omit, # type: Optional[StatusCheck] | |
531 | ): | |
532 | super(MetadataPool, self).__init__( | |
533 | compressionMode=compressionMode, | |
534 | crushRoot=crushRoot, | |
535 | deviceClass=deviceClass, | |
536 | enableRBDStats=enableRBDStats, | |
537 | erasureCoded=erasureCoded, | |
538 | failureDomain=failureDomain, | |
539 | mirroring=mirroring, | |
540 | parameters=parameters, | |
541 | quotas=quotas, | |
542 | replicated=replicated, | |
543 | statusCheck=statusCheck, | |
544 | ) | |
545 | ||
546 | @property | |
547 | def compressionMode(self): | |
548 | # type: () -> Optional[str] | |
549 | return self._property_impl('compressionMode') | |
550 | ||
551 | @compressionMode.setter | |
552 | def compressionMode(self, new_val): | |
553 | # type: (Optional[str]) -> None | |
554 | self._compressionMode = new_val | |
555 | ||
556 | @property | |
557 | def crushRoot(self): | |
558 | # type: () -> Optional[str] | |
559 | return self._property_impl('crushRoot') | |
560 | ||
561 | @crushRoot.setter | |
562 | def crushRoot(self, new_val): | |
563 | # type: (Optional[str]) -> None | |
564 | self._crushRoot = new_val | |
565 | ||
566 | @property | |
567 | def deviceClass(self): | |
568 | # type: () -> Optional[str] | |
569 | return self._property_impl('deviceClass') | |
570 | ||
571 | @deviceClass.setter | |
572 | def deviceClass(self, new_val): | |
573 | # type: (Optional[str]) -> None | |
574 | self._deviceClass = new_val | |
575 | ||
576 | @property | |
577 | def enableRBDStats(self): | |
578 | # type: () -> bool | |
579 | return self._property_impl('enableRBDStats') | |
580 | ||
581 | @enableRBDStats.setter | |
582 | def enableRBDStats(self, new_val): | |
583 | # type: (Optional[bool]) -> None | |
584 | self._enableRBDStats = new_val | |
585 | ||
586 | @property | |
587 | def erasureCoded(self): | |
588 | # type: () -> ErasureCoded | |
589 | return self._property_impl('erasureCoded') | |
590 | ||
591 | @erasureCoded.setter | |
592 | def erasureCoded(self, new_val): | |
593 | # type: (Optional[ErasureCoded]) -> None | |
594 | self._erasureCoded = new_val | |
595 | ||
596 | @property | |
597 | def failureDomain(self): | |
598 | # type: () -> str | |
599 | return self._property_impl('failureDomain') | |
600 | ||
601 | @failureDomain.setter | |
602 | def failureDomain(self, new_val): | |
603 | # type: (Optional[str]) -> None | |
604 | self._failureDomain = new_val | |
605 | ||
606 | @property | |
607 | def mirroring(self): | |
608 | # type: () -> Mirroring | |
609 | return self._property_impl('mirroring') | |
610 | ||
611 | @mirroring.setter | |
612 | def mirroring(self, new_val): | |
613 | # type: (Optional[Mirroring]) -> None | |
614 | self._mirroring = new_val | |
615 | ||
616 | @property | |
617 | def parameters(self): | |
618 | # type: () -> Optional[Any] | |
619 | return self._property_impl('parameters') | |
620 | ||
621 | @parameters.setter | |
622 | def parameters(self, new_val): | |
623 | # type: (Optional[Any]) -> None | |
624 | self._parameters = new_val | |
625 | ||
626 | @property | |
627 | def quotas(self): | |
628 | # type: () -> Optional[Quotas] | |
629 | return self._property_impl('quotas') | |
630 | ||
631 | @quotas.setter | |
632 | def quotas(self, new_val): | |
633 | # type: (Optional[Quotas]) -> None | |
634 | self._quotas = new_val | |
635 | ||
636 | @property | |
637 | def replicated(self): | |
638 | # type: () -> Replicated | |
639 | return self._property_impl('replicated') | |
640 | ||
641 | @replicated.setter | |
642 | def replicated(self, new_val): | |
643 | # type: (Optional[Replicated]) -> None | |
644 | self._replicated = new_val | |
645 | ||
646 | @property | |
647 | def statusCheck(self): | |
648 | # type: () -> StatusCheck | |
649 | return self._property_impl('statusCheck') | |
650 | ||
651 | @statusCheck.setter | |
652 | def statusCheck(self, new_val): | |
653 | # type: (Optional[StatusCheck]) -> None | |
654 | self._statusCheck = new_val | |
655 | ||
656 | ||
657 | class ValuesList(CrdObjectList): | |
658 | _items_type = str | |
659 | ||
660 | ||
661 | class MatchExpressionsItem(CrdObject): | |
662 | _properties = [ | |
663 | ('key', 'key', str, True, False), | |
664 | ('operator', 'operator', str, True, False), | |
665 | ('values', 'values', 'ValuesList', False, False) | |
666 | ] | |
667 | ||
668 | def __init__(self, | |
669 | key, # type: str | |
670 | operator, # type: str | |
671 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
672 | ): | |
673 | super(MatchExpressionsItem, self).__init__( | |
674 | key=key, | |
675 | operator=operator, | |
676 | values=values, | |
677 | ) | |
678 | ||
679 | @property | |
680 | def key(self): | |
681 | # type: () -> str | |
682 | return self._property_impl('key') | |
683 | ||
684 | @key.setter | |
685 | def key(self, new_val): | |
686 | # type: (str) -> None | |
687 | self._key = new_val | |
688 | ||
689 | @property | |
690 | def operator(self): | |
691 | # type: () -> str | |
692 | return self._property_impl('operator') | |
693 | ||
694 | @operator.setter | |
695 | def operator(self, new_val): | |
696 | # type: (str) -> None | |
697 | self._operator = new_val | |
698 | ||
699 | @property | |
700 | def values(self): | |
701 | # type: () -> Union[List[str], CrdObjectList] | |
702 | return self._property_impl('values') | |
703 | ||
704 | @values.setter | |
705 | def values(self, new_val): | |
706 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
707 | self._values = new_val | |
708 | ||
709 | ||
710 | class MatchExpressionsList(CrdObjectList): | |
711 | _items_type = MatchExpressionsItem | |
712 | ||
713 | ||
714 | class MatchFieldsItem(CrdObject): | |
715 | _properties = [ | |
716 | ('key', 'key', str, True, False), | |
717 | ('operator', 'operator', str, True, False), | |
718 | ('values', 'values', 'ValuesList', False, False) | |
719 | ] | |
720 | ||
721 | def __init__(self, | |
722 | key, # type: str | |
723 | operator, # type: str | |
724 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
725 | ): | |
726 | super(MatchFieldsItem, self).__init__( | |
727 | key=key, | |
728 | operator=operator, | |
729 | values=values, | |
730 | ) | |
731 | ||
732 | @property | |
733 | def key(self): | |
734 | # type: () -> str | |
735 | return self._property_impl('key') | |
736 | ||
737 | @key.setter | |
738 | def key(self, new_val): | |
739 | # type: (str) -> None | |
740 | self._key = new_val | |
741 | ||
742 | @property | |
743 | def operator(self): | |
744 | # type: () -> str | |
745 | return self._property_impl('operator') | |
746 | ||
747 | @operator.setter | |
748 | def operator(self, new_val): | |
749 | # type: (str) -> None | |
750 | self._operator = new_val | |
751 | ||
752 | @property | |
753 | def values(self): | |
754 | # type: () -> Union[List[str], CrdObjectList] | |
755 | return self._property_impl('values') | |
756 | ||
757 | @values.setter | |
758 | def values(self, new_val): | |
759 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
760 | self._values = new_val | |
761 | ||
762 | ||
763 | class MatchFieldsList(CrdObjectList): | |
764 | _items_type = MatchFieldsItem | |
765 | ||
766 | ||
767 | class Preference(CrdObject): | |
768 | _properties = [ | |
769 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
770 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
771 | ] | |
772 | ||
773 | def __init__(self, | |
774 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
775 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
776 | ): | |
777 | super(Preference, self).__init__( | |
778 | matchExpressions=matchExpressions, | |
779 | matchFields=matchFields, | |
780 | ) | |
781 | ||
782 | @property | |
783 | def matchExpressions(self): | |
784 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
785 | return self._property_impl('matchExpressions') | |
786 | ||
787 | @matchExpressions.setter | |
788 | def matchExpressions(self, new_val): | |
789 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
790 | self._matchExpressions = new_val | |
791 | ||
792 | @property | |
793 | def matchFields(self): | |
794 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
795 | return self._property_impl('matchFields') | |
796 | ||
797 | @matchFields.setter | |
798 | def matchFields(self, new_val): | |
799 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
800 | self._matchFields = new_val | |
801 | ||
802 | ||
803 | class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
804 | _properties = [ | |
805 | ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False), | |
806 | ('weight', 'weight', int, False, False), | |
807 | ('preference', 'preference', 'Preference', False, False) | |
808 | ] | |
809 | ||
810 | def __init__(self, | |
811 | podAffinityTerm=_omit, # type: Optional[PodAffinityTerm] | |
812 | weight=_omit, # type: Optional[int] | |
813 | preference=_omit, # type: Optional[Preference] | |
814 | ): | |
815 | super(PreferredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
816 | podAffinityTerm=podAffinityTerm, | |
817 | weight=weight, | |
818 | preference=preference, | |
819 | ) | |
820 | ||
821 | @property | |
822 | def podAffinityTerm(self): | |
823 | # type: () -> PodAffinityTerm | |
824 | return self._property_impl('podAffinityTerm') | |
825 | ||
826 | @podAffinityTerm.setter | |
827 | def podAffinityTerm(self, new_val): | |
828 | # type: (Optional[PodAffinityTerm]) -> None | |
829 | self._podAffinityTerm = new_val | |
830 | ||
831 | @property | |
832 | def weight(self): | |
833 | # type: () -> int | |
834 | return self._property_impl('weight') | |
835 | ||
836 | @weight.setter | |
837 | def weight(self, new_val): | |
838 | # type: (Optional[int]) -> None | |
839 | self._weight = new_val | |
840 | ||
841 | @property | |
842 | def preference(self): | |
843 | # type: () -> Preference | |
844 | return self._property_impl('preference') | |
845 | ||
846 | @preference.setter | |
847 | def preference(self, new_val): | |
848 | # type: (Optional[Preference]) -> None | |
849 | self._preference = new_val | |
850 | ||
851 | ||
852 | class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
853 | _items_type = PreferredDuringSchedulingIgnoredDuringExecutionItem | |
854 | ||
855 | ||
856 | class NodeSelectorTermsItem(CrdObject): | |
857 | _properties = [ | |
858 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
859 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
860 | ] | |
861 | ||
862 | def __init__(self, | |
863 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
864 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
865 | ): | |
866 | super(NodeSelectorTermsItem, self).__init__( | |
867 | matchExpressions=matchExpressions, | |
868 | matchFields=matchFields, | |
869 | ) | |
870 | ||
871 | @property | |
872 | def matchExpressions(self): | |
873 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
874 | return self._property_impl('matchExpressions') | |
875 | ||
876 | @matchExpressions.setter | |
877 | def matchExpressions(self, new_val): | |
878 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
879 | self._matchExpressions = new_val | |
880 | ||
881 | @property | |
882 | def matchFields(self): | |
883 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
884 | return self._property_impl('matchFields') | |
885 | ||
886 | @matchFields.setter | |
887 | def matchFields(self, new_val): | |
888 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
889 | self._matchFields = new_val | |
890 | ||
891 | ||
892 | class NodeSelectorTermsList(CrdObjectList): | |
893 | _items_type = NodeSelectorTermsItem | |
894 | ||
895 | ||
896 | class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject): | |
897 | _properties = [ | |
898 | ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False) | |
899 | ] | |
900 | ||
901 | def __init__(self, | |
902 | nodeSelectorTerms, # type: Union[List[NodeSelectorTermsItem], CrdObjectList] | |
903 | ): | |
904 | super(RequiredDuringSchedulingIgnoredDuringExecution, self).__init__( | |
905 | nodeSelectorTerms=nodeSelectorTerms, | |
906 | ) | |
907 | ||
908 | @property | |
909 | def nodeSelectorTerms(self): | |
910 | # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList] | |
911 | return self._property_impl('nodeSelectorTerms') | |
912 | ||
913 | @nodeSelectorTerms.setter | |
914 | def nodeSelectorTerms(self, new_val): | |
915 | # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None | |
916 | self._nodeSelectorTerms = new_val | |
917 | ||
918 | ||
919 | class NodeAffinity(CrdObject): | |
920 | _properties = [ | |
921 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
922 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False) | |
923 | ] | |
924 | ||
925 | def __init__(self, | |
926 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
927 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution] | |
928 | ): | |
929 | super(NodeAffinity, self).__init__( | |
930 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
931 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
932 | ) | |
933 | ||
934 | @property | |
935 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
936 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
937 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
938 | ||
939 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
940 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
941 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
942 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
943 | ||
944 | @property | |
945 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
946 | # type: () -> RequiredDuringSchedulingIgnoredDuringExecution | |
947 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
948 | ||
949 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
950 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
951 | # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None | |
952 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
953 | ||
954 | ||
955 | class LabelSelector(CrdObject): | |
956 | _properties = [ | |
957 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
958 | ('matchLabels', 'matchLabels', object, False, False) | |
959 | ] | |
960 | ||
961 | def __init__(self, | |
962 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
963 | matchLabels=_omit, # type: Optional[Any] | |
964 | ): | |
965 | super(LabelSelector, self).__init__( | |
966 | matchExpressions=matchExpressions, | |
967 | matchLabels=matchLabels, | |
968 | ) | |
969 | ||
970 | @property | |
971 | def matchExpressions(self): | |
972 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
973 | return self._property_impl('matchExpressions') | |
974 | ||
975 | @matchExpressions.setter | |
976 | def matchExpressions(self, new_val): | |
977 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
978 | self._matchExpressions = new_val | |
979 | ||
980 | @property | |
981 | def matchLabels(self): | |
982 | # type: () -> Any | |
983 | return self._property_impl('matchLabels') | |
984 | ||
985 | @matchLabels.setter | |
986 | def matchLabels(self, new_val): | |
987 | # type: (Optional[Any]) -> None | |
988 | self._matchLabels = new_val | |
989 | ||
990 | ||
991 | class NamespaceSelector(CrdObject): | |
992 | _properties = [ | |
993 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
994 | ('matchLabels', 'matchLabels', object, False, False) | |
995 | ] | |
996 | ||
997 | def __init__(self, | |
998 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
999 | matchLabels=_omit, # type: Optional[Any] | |
1000 | ): | |
1001 | super(NamespaceSelector, self).__init__( | |
1002 | matchExpressions=matchExpressions, | |
1003 | matchLabels=matchLabels, | |
1004 | ) | |
1005 | ||
1006 | @property | |
1007 | def matchExpressions(self): | |
1008 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
1009 | return self._property_impl('matchExpressions') | |
1010 | ||
1011 | @matchExpressions.setter | |
1012 | def matchExpressions(self, new_val): | |
1013 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
1014 | self._matchExpressions = new_val | |
1015 | ||
1016 | @property | |
1017 | def matchLabels(self): | |
1018 | # type: () -> Any | |
1019 | return self._property_impl('matchLabels') | |
1020 | ||
1021 | @matchLabels.setter | |
1022 | def matchLabels(self, new_val): | |
1023 | # type: (Optional[Any]) -> None | |
1024 | self._matchLabels = new_val | |
1025 | ||
1026 | ||
1027 | class NamespacesList(CrdObjectList): | |
1028 | _items_type = str | |
1029 | ||
1030 | ||
1031 | class PodAffinityTerm(CrdObject): | |
1032 | _properties = [ | |
1033 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1034 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
1035 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
1036 | ('topologyKey', 'topologyKey', str, True, False) | |
1037 | ] | |
1038 | ||
1039 | def __init__(self, | |
1040 | topologyKey, # type: str | |
1041 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1042 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
1043 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
1044 | ): | |
1045 | super(PodAffinityTerm, self).__init__( | |
1046 | topologyKey=topologyKey, | |
1047 | labelSelector=labelSelector, | |
1048 | namespaceSelector=namespaceSelector, | |
1049 | namespaces=namespaces, | |
1050 | ) | |
1051 | ||
1052 | @property | |
1053 | def labelSelector(self): | |
1054 | # type: () -> LabelSelector | |
1055 | return self._property_impl('labelSelector') | |
1056 | ||
1057 | @labelSelector.setter | |
1058 | def labelSelector(self, new_val): | |
1059 | # type: (Optional[LabelSelector]) -> None | |
1060 | self._labelSelector = new_val | |
1061 | ||
1062 | @property | |
1063 | def namespaceSelector(self): | |
1064 | # type: () -> NamespaceSelector | |
1065 | return self._property_impl('namespaceSelector') | |
1066 | ||
1067 | @namespaceSelector.setter | |
1068 | def namespaceSelector(self, new_val): | |
1069 | # type: (Optional[NamespaceSelector]) -> None | |
1070 | self._namespaceSelector = new_val | |
1071 | ||
1072 | @property | |
1073 | def namespaces(self): | |
1074 | # type: () -> Union[List[str], CrdObjectList] | |
1075 | return self._property_impl('namespaces') | |
1076 | ||
1077 | @namespaces.setter | |
1078 | def namespaces(self, new_val): | |
1079 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
1080 | self._namespaces = new_val | |
1081 | ||
1082 | @property | |
1083 | def topologyKey(self): | |
1084 | # type: () -> str | |
1085 | return self._property_impl('topologyKey') | |
1086 | ||
1087 | @topologyKey.setter | |
1088 | def topologyKey(self, new_val): | |
1089 | # type: (str) -> None | |
1090 | self._topologyKey = new_val | |
1091 | ||
1092 | ||
1093 | class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
1094 | _properties = [ | |
1095 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1096 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
1097 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
1098 | ('topologyKey', 'topologyKey', str, True, False) | |
1099 | ] | |
1100 | ||
1101 | def __init__(self, | |
1102 | topologyKey, # type: str | |
1103 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1104 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
1105 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
1106 | ): | |
1107 | super(RequiredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
1108 | topologyKey=topologyKey, | |
1109 | labelSelector=labelSelector, | |
1110 | namespaceSelector=namespaceSelector, | |
1111 | namespaces=namespaces, | |
1112 | ) | |
1113 | ||
1114 | @property | |
1115 | def labelSelector(self): | |
1116 | # type: () -> LabelSelector | |
1117 | return self._property_impl('labelSelector') | |
1118 | ||
1119 | @labelSelector.setter | |
1120 | def labelSelector(self, new_val): | |
1121 | # type: (Optional[LabelSelector]) -> None | |
1122 | self._labelSelector = new_val | |
1123 | ||
1124 | @property | |
1125 | def namespaceSelector(self): | |
1126 | # type: () -> NamespaceSelector | |
1127 | return self._property_impl('namespaceSelector') | |
1128 | ||
1129 | @namespaceSelector.setter | |
1130 | def namespaceSelector(self, new_val): | |
1131 | # type: (Optional[NamespaceSelector]) -> None | |
1132 | self._namespaceSelector = new_val | |
1133 | ||
1134 | @property | |
1135 | def namespaces(self): | |
1136 | # type: () -> Union[List[str], CrdObjectList] | |
1137 | return self._property_impl('namespaces') | |
1138 | ||
1139 | @namespaces.setter | |
1140 | def namespaces(self, new_val): | |
1141 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
1142 | self._namespaces = new_val | |
1143 | ||
1144 | @property | |
1145 | def topologyKey(self): | |
1146 | # type: () -> str | |
1147 | return self._property_impl('topologyKey') | |
1148 | ||
1149 | @topologyKey.setter | |
1150 | def topologyKey(self, new_val): | |
1151 | # type: (str) -> None | |
1152 | self._topologyKey = new_val | |
1153 | ||
1154 | ||
1155 | class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
1156 | _items_type = RequiredDuringSchedulingIgnoredDuringExecutionItem | |
1157 | ||
1158 | ||
1159 | class PodAffinity(CrdObject): | |
1160 | _properties = [ | |
1161 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
1162 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
1163 | ] | |
1164 | ||
1165 | def __init__(self, | |
1166 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1167 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1168 | ): | |
1169 | super(PodAffinity, self).__init__( | |
1170 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
1171 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
1172 | ) | |
1173 | ||
1174 | @property | |
1175 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
1176 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1177 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
1178 | ||
1179 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
1180 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1181 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1182 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
1183 | ||
1184 | @property | |
1185 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
1186 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1187 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
1188 | ||
1189 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
1190 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1191 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1192 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
1193 | ||
1194 | ||
1195 | class PodAntiAffinity(CrdObject): | |
1196 | _properties = [ | |
1197 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
1198 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
1199 | ] | |
1200 | ||
1201 | def __init__(self, | |
1202 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1203 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1204 | ): | |
1205 | super(PodAntiAffinity, self).__init__( | |
1206 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
1207 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
1208 | ) | |
1209 | ||
1210 | @property | |
1211 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
1212 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1213 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
1214 | ||
1215 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
1216 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1217 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1218 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
1219 | ||
1220 | @property | |
1221 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
1222 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1223 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
1224 | ||
1225 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
1226 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1227 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1228 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
1229 | ||
1230 | ||
1231 | class TolerationsItem(CrdObject): | |
1232 | _properties = [ | |
1233 | ('effect', 'effect', str, False, False), | |
1234 | ('key', 'key', str, False, False), | |
1235 | ('operator', 'operator', str, False, False), | |
1236 | ('tolerationSeconds', 'tolerationSeconds', int, False, False), | |
1237 | ('value', 'value', str, False, False) | |
1238 | ] | |
1239 | ||
1240 | def __init__(self, | |
1241 | effect=_omit, # type: Optional[str] | |
1242 | key=_omit, # type: Optional[str] | |
1243 | operator=_omit, # type: Optional[str] | |
1244 | tolerationSeconds=_omit, # type: Optional[int] | |
1245 | value=_omit, # type: Optional[str] | |
1246 | ): | |
1247 | super(TolerationsItem, self).__init__( | |
1248 | effect=effect, | |
1249 | key=key, | |
1250 | operator=operator, | |
1251 | tolerationSeconds=tolerationSeconds, | |
1252 | value=value, | |
1253 | ) | |
1254 | ||
1255 | @property | |
1256 | def effect(self): | |
1257 | # type: () -> str | |
1258 | return self._property_impl('effect') | |
1259 | ||
1260 | @effect.setter | |
1261 | def effect(self, new_val): | |
1262 | # type: (Optional[str]) -> None | |
1263 | self._effect = new_val | |
1264 | ||
1265 | @property | |
1266 | def key(self): | |
1267 | # type: () -> str | |
1268 | return self._property_impl('key') | |
1269 | ||
1270 | @key.setter | |
1271 | def key(self, new_val): | |
1272 | # type: (Optional[str]) -> None | |
1273 | self._key = new_val | |
1274 | ||
1275 | @property | |
1276 | def operator(self): | |
1277 | # type: () -> str | |
1278 | return self._property_impl('operator') | |
1279 | ||
1280 | @operator.setter | |
1281 | def operator(self, new_val): | |
1282 | # type: (Optional[str]) -> None | |
1283 | self._operator = new_val | |
1284 | ||
1285 | @property | |
1286 | def tolerationSeconds(self): | |
1287 | # type: () -> int | |
1288 | return self._property_impl('tolerationSeconds') | |
1289 | ||
1290 | @tolerationSeconds.setter | |
1291 | def tolerationSeconds(self, new_val): | |
1292 | # type: (Optional[int]) -> None | |
1293 | self._tolerationSeconds = new_val | |
1294 | ||
1295 | @property | |
1296 | def value(self): | |
1297 | # type: () -> str | |
1298 | return self._property_impl('value') | |
1299 | ||
1300 | @value.setter | |
1301 | def value(self, new_val): | |
1302 | # type: (Optional[str]) -> None | |
1303 | self._value = new_val | |
1304 | ||
1305 | ||
1306 | class TolerationsList(CrdObjectList): | |
1307 | _items_type = TolerationsItem | |
1308 | ||
1309 | ||
1310 | class TopologySpreadConstraintsItem(CrdObject): | |
1311 | _properties = [ | |
1312 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1313 | ('maxSkew', 'maxSkew', int, True, False), | |
1314 | ('topologyKey', 'topologyKey', str, True, False), | |
1315 | ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False) | |
1316 | ] | |
1317 | ||
1318 | def __init__(self, | |
1319 | maxSkew, # type: int | |
1320 | topologyKey, # type: str | |
1321 | whenUnsatisfiable, # type: str | |
1322 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1323 | ): | |
1324 | super(TopologySpreadConstraintsItem, self).__init__( | |
1325 | maxSkew=maxSkew, | |
1326 | topologyKey=topologyKey, | |
1327 | whenUnsatisfiable=whenUnsatisfiable, | |
1328 | labelSelector=labelSelector, | |
1329 | ) | |
1330 | ||
1331 | @property | |
1332 | def labelSelector(self): | |
1333 | # type: () -> LabelSelector | |
1334 | return self._property_impl('labelSelector') | |
1335 | ||
1336 | @labelSelector.setter | |
1337 | def labelSelector(self, new_val): | |
1338 | # type: (Optional[LabelSelector]) -> None | |
1339 | self._labelSelector = new_val | |
1340 | ||
1341 | @property | |
1342 | def maxSkew(self): | |
1343 | # type: () -> int | |
1344 | return self._property_impl('maxSkew') | |
1345 | ||
1346 | @maxSkew.setter | |
1347 | def maxSkew(self, new_val): | |
1348 | # type: (int) -> None | |
1349 | self._maxSkew = new_val | |
1350 | ||
1351 | @property | |
1352 | def topologyKey(self): | |
1353 | # type: () -> str | |
1354 | return self._property_impl('topologyKey') | |
1355 | ||
1356 | @topologyKey.setter | |
1357 | def topologyKey(self, new_val): | |
1358 | # type: (str) -> None | |
1359 | self._topologyKey = new_val | |
1360 | ||
1361 | @property | |
1362 | def whenUnsatisfiable(self): | |
1363 | # type: () -> str | |
1364 | return self._property_impl('whenUnsatisfiable') | |
1365 | ||
1366 | @whenUnsatisfiable.setter | |
1367 | def whenUnsatisfiable(self, new_val): | |
1368 | # type: (str) -> None | |
1369 | self._whenUnsatisfiable = new_val | |
1370 | ||
1371 | ||
1372 | class TopologySpreadConstraintsList(CrdObjectList): | |
1373 | _items_type = TopologySpreadConstraintsItem | |
1374 | ||
1375 | ||
1376 | class Placement(CrdObject): | |
1377 | _properties = [ | |
1378 | ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False), | |
1379 | ('podAffinity', 'podAffinity', 'PodAffinity', False, False), | |
1380 | ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False), | |
1381 | ('tolerations', 'tolerations', 'TolerationsList', False, False), | |
1382 | ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False) | |
1383 | ] | |
1384 | ||
1385 | def __init__(self, | |
1386 | nodeAffinity=_omit, # type: Optional[NodeAffinity] | |
1387 | podAffinity=_omit, # type: Optional[PodAffinity] | |
1388 | podAntiAffinity=_omit, # type: Optional[PodAntiAffinity] | |
1389 | tolerations=_omit, # type: Optional[Union[List[TolerationsItem], CrdObjectList]] | |
1390 | topologySpreadConstraints=_omit, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]] | |
1391 | ): | |
1392 | super(Placement, self).__init__( | |
1393 | nodeAffinity=nodeAffinity, | |
1394 | podAffinity=podAffinity, | |
1395 | podAntiAffinity=podAntiAffinity, | |
1396 | tolerations=tolerations, | |
1397 | topologySpreadConstraints=topologySpreadConstraints, | |
1398 | ) | |
1399 | ||
1400 | @property | |
1401 | def nodeAffinity(self): | |
1402 | # type: () -> NodeAffinity | |
1403 | return self._property_impl('nodeAffinity') | |
1404 | ||
1405 | @nodeAffinity.setter | |
1406 | def nodeAffinity(self, new_val): | |
1407 | # type: (Optional[NodeAffinity]) -> None | |
1408 | self._nodeAffinity = new_val | |
1409 | ||
1410 | @property | |
1411 | def podAffinity(self): | |
1412 | # type: () -> PodAffinity | |
1413 | return self._property_impl('podAffinity') | |
1414 | ||
1415 | @podAffinity.setter | |
1416 | def podAffinity(self, new_val): | |
1417 | # type: (Optional[PodAffinity]) -> None | |
1418 | self._podAffinity = new_val | |
1419 | ||
1420 | @property | |
1421 | def podAntiAffinity(self): | |
1422 | # type: () -> PodAntiAffinity | |
1423 | return self._property_impl('podAntiAffinity') | |
1424 | ||
1425 | @podAntiAffinity.setter | |
1426 | def podAntiAffinity(self, new_val): | |
1427 | # type: (Optional[PodAntiAffinity]) -> None | |
1428 | self._podAntiAffinity = new_val | |
1429 | ||
1430 | @property | |
1431 | def tolerations(self): | |
1432 | # type: () -> Union[List[TolerationsItem], CrdObjectList] | |
1433 | return self._property_impl('tolerations') | |
1434 | ||
1435 | @tolerations.setter | |
1436 | def tolerations(self, new_val): | |
1437 | # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None | |
1438 | self._tolerations = new_val | |
1439 | ||
1440 | @property | |
1441 | def topologySpreadConstraints(self): | |
1442 | # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList] | |
1443 | return self._property_impl('topologySpreadConstraints') | |
1444 | ||
1445 | @topologySpreadConstraints.setter | |
1446 | def topologySpreadConstraints(self, new_val): | |
1447 | # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None | |
1448 | self._topologySpreadConstraints = new_val | |
1449 | ||
1450 | ||
1451 | class Resources(CrdObject): | |
1452 | _properties = [ | |
1453 | ('limits', 'limits', object, False, False), | |
1454 | ('requests', 'requests', object, False, False) | |
1455 | ] | |
1456 | ||
1457 | def __init__(self, | |
1458 | limits=_omit, # type: Optional[Any] | |
1459 | requests=_omit, # type: Optional[Any] | |
1460 | ): | |
1461 | super(Resources, self).__init__( | |
1462 | limits=limits, | |
1463 | requests=requests, | |
1464 | ) | |
1465 | ||
1466 | @property | |
1467 | def limits(self): | |
1468 | # type: () -> Any | |
1469 | return self._property_impl('limits') | |
1470 | ||
1471 | @limits.setter | |
1472 | def limits(self, new_val): | |
1473 | # type: (Optional[Any]) -> None | |
1474 | self._limits = new_val | |
1475 | ||
1476 | @property | |
1477 | def requests(self): | |
1478 | # type: () -> Any | |
1479 | return self._property_impl('requests') | |
1480 | ||
1481 | @requests.setter | |
1482 | def requests(self, new_val): | |
1483 | # type: (Optional[Any]) -> None | |
1484 | self._requests = new_val | |
1485 | ||
1486 | ||
9f95a23c TL |
1487 | class MetadataServer(CrdObject): |
1488 | _properties = [ | |
20effc67 | 1489 | ('activeCount', 'activeCount', int, True, False), |
9f95a23c | 1490 | ('activeStandby', 'activeStandby', bool, False, False), |
20effc67 TL |
1491 | ('annotations', 'annotations', object, False, True), |
1492 | ('labels', 'labels', object, False, True), | |
1493 | ('placement', 'placement', 'Placement', False, True), | |
1494 | ('priorityClassName', 'priorityClassName', str, False, False), | |
1495 | ('resources', 'resources', 'Resources', False, True) | |
9f95a23c TL |
1496 | ] |
1497 | ||
1498 | def __init__(self, | |
20effc67 | 1499 | activeCount, # type: int |
9f95a23c TL |
1500 | activeStandby=_omit, # type: Optional[bool] |
1501 | annotations=_omit, # type: Optional[Any] | |
20effc67 TL |
1502 | labels=_omit, # type: Optional[Any] |
1503 | placement=_omit, # type: Optional[Placement] | |
1504 | priorityClassName=_omit, # type: Optional[str] | |
1505 | resources=_omit, # type: Optional[Resources] | |
9f95a23c TL |
1506 | ): |
1507 | super(MetadataServer, self).__init__( | |
1508 | activeCount=activeCount, | |
1509 | activeStandby=activeStandby, | |
1510 | annotations=annotations, | |
20effc67 | 1511 | labels=labels, |
9f95a23c | 1512 | placement=placement, |
20effc67 | 1513 | priorityClassName=priorityClassName, |
9f95a23c TL |
1514 | resources=resources, |
1515 | ) | |
1516 | ||
1517 | @property | |
1518 | def activeCount(self): | |
1519 | # type: () -> int | |
1520 | return self._property_impl('activeCount') | |
1521 | ||
1522 | @activeCount.setter | |
1523 | def activeCount(self, new_val): | |
20effc67 | 1524 | # type: (int) -> None |
9f95a23c TL |
1525 | self._activeCount = new_val |
1526 | ||
1527 | @property | |
1528 | def activeStandby(self): | |
1529 | # type: () -> bool | |
1530 | return self._property_impl('activeStandby') | |
1531 | ||
1532 | @activeStandby.setter | |
1533 | def activeStandby(self, new_val): | |
1534 | # type: (Optional[bool]) -> None | |
1535 | self._activeStandby = new_val | |
1536 | ||
1537 | @property | |
1538 | def annotations(self): | |
20effc67 | 1539 | # type: () -> Optional[Any] |
9f95a23c TL |
1540 | return self._property_impl('annotations') |
1541 | ||
1542 | @annotations.setter | |
1543 | def annotations(self, new_val): | |
1544 | # type: (Optional[Any]) -> None | |
1545 | self._annotations = new_val | |
1546 | ||
20effc67 TL |
1547 | @property |
1548 | def labels(self): | |
1549 | # type: () -> Optional[Any] | |
1550 | return self._property_impl('labels') | |
1551 | ||
1552 | @labels.setter | |
1553 | def labels(self, new_val): | |
1554 | # type: (Optional[Any]) -> None | |
1555 | self._labels = new_val | |
1556 | ||
9f95a23c TL |
1557 | @property |
1558 | def placement(self): | |
20effc67 | 1559 | # type: () -> Optional[Placement] |
9f95a23c TL |
1560 | return self._property_impl('placement') |
1561 | ||
1562 | @placement.setter | |
1563 | def placement(self, new_val): | |
20effc67 | 1564 | # type: (Optional[Placement]) -> None |
9f95a23c TL |
1565 | self._placement = new_val |
1566 | ||
1567 | @property | |
20effc67 | 1568 | def priorityClassName(self): |
9f95a23c | 1569 | # type: () -> str |
20effc67 | 1570 | return self._property_impl('priorityClassName') |
9f95a23c | 1571 | |
20effc67 TL |
1572 | @priorityClassName.setter |
1573 | def priorityClassName(self, new_val): | |
9f95a23c | 1574 | # type: (Optional[str]) -> None |
20effc67 | 1575 | self._priorityClassName = new_val |
9f95a23c TL |
1576 | |
1577 | @property | |
20effc67 TL |
1578 | def resources(self): |
1579 | # type: () -> Optional[Resources] | |
1580 | return self._property_impl('resources') | |
9f95a23c | 1581 | |
20effc67 TL |
1582 | @resources.setter |
1583 | def resources(self, new_val): | |
1584 | # type: (Optional[Resources]) -> None | |
1585 | self._resources = new_val | |
9f95a23c TL |
1586 | |
1587 | ||
1588 | class Spec(CrdObject): | |
1589 | _properties = [ | |
20effc67 TL |
1590 | ('dataPools', 'dataPools', 'DataPoolsList', True, True), |
1591 | ('metadataPool', 'metadataPool', 'MetadataPool', True, True), | |
1592 | ('metadataServer', 'metadataServer', 'MetadataServer', True, False), | |
1593 | ('mirroring', 'mirroring', 'Mirroring', False, True), | |
1594 | ('preserveFilesystemOnDelete', 'preserveFilesystemOnDelete', bool, False, False), | |
9f95a23c TL |
1595 | ('preservePoolsOnDelete', 'preservePoolsOnDelete', bool, False, False) |
1596 | ] | |
1597 | ||
1598 | def __init__(self, | |
20effc67 TL |
1599 | dataPools, # type: Optional[Union[List[DataPoolsItem], CrdObjectList]] |
1600 | metadataPool, # type: Optional[MetadataPool] | |
1601 | metadataServer, # type: MetadataServer | |
1602 | mirroring=_omit, # type: Optional[Mirroring] | |
1603 | preserveFilesystemOnDelete=_omit, # type: Optional[bool] | |
9f95a23c TL |
1604 | preservePoolsOnDelete=_omit, # type: Optional[bool] |
1605 | ): | |
1606 | super(Spec, self).__init__( | |
9f95a23c | 1607 | dataPools=dataPools, |
20effc67 TL |
1608 | metadataPool=metadataPool, |
1609 | metadataServer=metadataServer, | |
1610 | mirroring=mirroring, | |
1611 | preserveFilesystemOnDelete=preserveFilesystemOnDelete, | |
9f95a23c TL |
1612 | preservePoolsOnDelete=preservePoolsOnDelete, |
1613 | ) | |
1614 | ||
1615 | @property | |
20effc67 TL |
1616 | def dataPools(self): |
1617 | # type: () -> Optional[Union[List[DataPoolsItem], CrdObjectList]] | |
1618 | return self._property_impl('dataPools') | |
9f95a23c | 1619 | |
20effc67 TL |
1620 | @dataPools.setter |
1621 | def dataPools(self, new_val): | |
1622 | # type: (Optional[Union[List[DataPoolsItem], CrdObjectList]]) -> None | |
1623 | self._dataPools = new_val | |
9f95a23c TL |
1624 | |
1625 | @property | |
1626 | def metadataPool(self): | |
20effc67 | 1627 | # type: () -> Optional[MetadataPool] |
9f95a23c TL |
1628 | return self._property_impl('metadataPool') |
1629 | ||
1630 | @metadataPool.setter | |
1631 | def metadataPool(self, new_val): | |
1632 | # type: (Optional[MetadataPool]) -> None | |
1633 | self._metadataPool = new_val | |
1634 | ||
1635 | @property | |
20effc67 TL |
1636 | def metadataServer(self): |
1637 | # type: () -> MetadataServer | |
1638 | return self._property_impl('metadataServer') | |
9f95a23c | 1639 | |
20effc67 TL |
1640 | @metadataServer.setter |
1641 | def metadataServer(self, new_val): | |
1642 | # type: (MetadataServer) -> None | |
1643 | self._metadataServer = new_val | |
1644 | ||
1645 | @property | |
1646 | def mirroring(self): | |
1647 | # type: () -> Optional[Mirroring] | |
1648 | return self._property_impl('mirroring') | |
1649 | ||
1650 | @mirroring.setter | |
1651 | def mirroring(self, new_val): | |
1652 | # type: (Optional[Mirroring]) -> None | |
1653 | self._mirroring = new_val | |
1654 | ||
1655 | @property | |
1656 | def preserveFilesystemOnDelete(self): | |
1657 | # type: () -> bool | |
1658 | return self._property_impl('preserveFilesystemOnDelete') | |
1659 | ||
1660 | @preserveFilesystemOnDelete.setter | |
1661 | def preserveFilesystemOnDelete(self, new_val): | |
1662 | # type: (Optional[bool]) -> None | |
1663 | self._preserveFilesystemOnDelete = new_val | |
9f95a23c TL |
1664 | |
1665 | @property | |
1666 | def preservePoolsOnDelete(self): | |
1667 | # type: () -> bool | |
1668 | return self._property_impl('preservePoolsOnDelete') | |
1669 | ||
1670 | @preservePoolsOnDelete.setter | |
1671 | def preservePoolsOnDelete(self, new_val): | |
1672 | # type: (Optional[bool]) -> None | |
1673 | self._preservePoolsOnDelete = new_val | |
1674 | ||
1675 | ||
20effc67 TL |
1676 | class Status(CrdObject): |
1677 | _properties = [ | |
1678 | ('phase', 'phase', str, False, False) | |
1679 | ] | |
1680 | ||
1681 | def __init__(self, | |
1682 | phase=_omit, # type: Optional[str] | |
1683 | ): | |
1684 | super(Status, self).__init__( | |
1685 | phase=phase, | |
1686 | ) | |
1687 | ||
1688 | @property | |
1689 | def phase(self): | |
1690 | # type: () -> str | |
1691 | return self._property_impl('phase') | |
1692 | ||
1693 | @phase.setter | |
1694 | def phase(self, new_val): | |
1695 | # type: (Optional[str]) -> None | |
1696 | self._phase = new_val | |
1697 | ||
1698 | ||
9f95a23c TL |
1699 | class CephFilesystem(CrdClass): |
1700 | _properties = [ | |
20effc67 TL |
1701 | ('apiVersion', 'apiVersion', str, False, False), |
1702 | ('kind', 'kind', str, False, False), | |
1703 | ('metadata', 'metadata', object, False, False), | |
1704 | ('spec', 'spec', 'Spec', True, False), | |
1705 | ('status', 'status', 'Status', False, False) | |
9f95a23c TL |
1706 | ] |
1707 | ||
1708 | def __init__(self, | |
9f95a23c | 1709 | spec, # type: Spec |
20effc67 TL |
1710 | apiVersion=_omit, # type: Optional[str] |
1711 | kind=_omit, # type: Optional[str] | |
1712 | metadata=_omit, # type: Optional[Any] | |
1713 | status=_omit, # type: Optional[Status] | |
9f95a23c TL |
1714 | ): |
1715 | super(CephFilesystem, self).__init__( | |
20effc67 | 1716 | spec=spec, |
9f95a23c | 1717 | apiVersion=apiVersion, |
20effc67 | 1718 | kind=kind, |
9f95a23c | 1719 | metadata=metadata, |
9f95a23c TL |
1720 | status=status, |
1721 | ) | |
1722 | ||
1723 | @property | |
1724 | def apiVersion(self): | |
1725 | # type: () -> str | |
1726 | return self._property_impl('apiVersion') | |
1727 | ||
1728 | @apiVersion.setter | |
1729 | def apiVersion(self, new_val): | |
20effc67 | 1730 | # type: (Optional[str]) -> None |
9f95a23c TL |
1731 | self._apiVersion = new_val |
1732 | ||
20effc67 TL |
1733 | @property |
1734 | def kind(self): | |
1735 | # type: () -> str | |
1736 | return self._property_impl('kind') | |
1737 | ||
1738 | @kind.setter | |
1739 | def kind(self, new_val): | |
1740 | # type: (Optional[str]) -> None | |
1741 | self._kind = new_val | |
1742 | ||
9f95a23c TL |
1743 | @property |
1744 | def metadata(self): | |
1745 | # type: () -> Any | |
1746 | return self._property_impl('metadata') | |
1747 | ||
1748 | @metadata.setter | |
1749 | def metadata(self, new_val): | |
9f95a23c | 1750 | # type: (Optional[Any]) -> None |
20effc67 | 1751 | self._metadata = new_val |
9f95a23c TL |
1752 | |
1753 | @property | |
1754 | def spec(self): | |
1755 | # type: () -> Spec | |
1756 | return self._property_impl('spec') | |
1757 | ||
1758 | @spec.setter | |
1759 | def spec(self, new_val): | |
1760 | # type: (Spec) -> None | |
1761 | self._spec = new_val | |
20effc67 TL |
1762 | |
1763 | @property | |
1764 | def status(self): | |
1765 | # type: () -> Status | |
1766 | return self._property_impl('status') | |
1767 | ||
1768 | @status.setter | |
1769 | def status(self, new_val): | |
1770 | # type: (Optional[Status]) -> None | |
1771 | self._status = new_val |