]>
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 DataPool(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(DataPool, 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 TargetRef(CrdObject): | |
501 | _properties = [ | |
502 | ('apiVersion', 'apiVersion', str, False, False), | |
503 | ('fieldPath', 'fieldPath', str, False, False), | |
504 | ('kind', 'kind', str, False, False), | |
505 | ('name', 'name', str, False, False), | |
506 | ('namespace', 'namespace', str, False, False), | |
507 | ('resourceVersion', 'resourceVersion', str, False, False), | |
508 | ('uid', 'uid', str, False, False) | |
509 | ] | |
510 | ||
511 | def __init__(self, | |
512 | apiVersion=_omit, # type: Optional[str] | |
513 | fieldPath=_omit, # type: Optional[str] | |
514 | kind=_omit, # type: Optional[str] | |
515 | name=_omit, # type: Optional[str] | |
516 | namespace=_omit, # type: Optional[str] | |
517 | resourceVersion=_omit, # type: Optional[str] | |
518 | uid=_omit, # type: Optional[str] | |
519 | ): | |
520 | super(TargetRef, self).__init__( | |
521 | apiVersion=apiVersion, | |
522 | fieldPath=fieldPath, | |
523 | kind=kind, | |
524 | name=name, | |
525 | namespace=namespace, | |
526 | resourceVersion=resourceVersion, | |
527 | uid=uid, | |
528 | ) | |
529 | ||
530 | @property | |
531 | def apiVersion(self): | |
532 | # type: () -> str | |
533 | return self._property_impl('apiVersion') | |
534 | ||
535 | @apiVersion.setter | |
536 | def apiVersion(self, new_val): | |
537 | # type: (Optional[str]) -> None | |
538 | self._apiVersion = new_val | |
539 | ||
540 | @property | |
541 | def fieldPath(self): | |
542 | # type: () -> str | |
543 | return self._property_impl('fieldPath') | |
544 | ||
545 | @fieldPath.setter | |
546 | def fieldPath(self, new_val): | |
547 | # type: (Optional[str]) -> None | |
548 | self._fieldPath = new_val | |
549 | ||
550 | @property | |
551 | def kind(self): | |
552 | # type: () -> str | |
553 | return self._property_impl('kind') | |
554 | ||
555 | @kind.setter | |
556 | def kind(self, new_val): | |
557 | # type: (Optional[str]) -> None | |
558 | self._kind = new_val | |
559 | ||
560 | @property | |
561 | def name(self): | |
562 | # type: () -> str | |
563 | return self._property_impl('name') | |
564 | ||
565 | @name.setter | |
566 | def name(self, new_val): | |
567 | # type: (Optional[str]) -> None | |
568 | self._name = new_val | |
569 | ||
570 | @property | |
571 | def namespace(self): | |
572 | # type: () -> str | |
573 | return self._property_impl('namespace') | |
574 | ||
575 | @namespace.setter | |
576 | def namespace(self, new_val): | |
577 | # type: (Optional[str]) -> None | |
578 | self._namespace = new_val | |
579 | ||
580 | @property | |
581 | def resourceVersion(self): | |
582 | # type: () -> str | |
583 | return self._property_impl('resourceVersion') | |
584 | ||
585 | @resourceVersion.setter | |
586 | def resourceVersion(self, new_val): | |
587 | # type: (Optional[str]) -> None | |
588 | self._resourceVersion = new_val | |
589 | ||
590 | @property | |
591 | def uid(self): | |
592 | # type: () -> str | |
593 | return self._property_impl('uid') | |
594 | ||
595 | @uid.setter | |
596 | def uid(self, new_val): | |
597 | # type: (Optional[str]) -> None | |
598 | self._uid = new_val | |
599 | ||
600 | ||
601 | class ExternalRgwEndpointsItem(CrdObject): | |
602 | _properties = [ | |
603 | ('hostname', 'hostname', str, False, False), | |
604 | ('ip', 'ip', str, True, False), | |
605 | ('nodeName', 'nodeName', str, False, False), | |
606 | ('targetRef', 'targetRef', 'TargetRef', False, False) | |
607 | ] | |
608 | ||
609 | def __init__(self, | |
610 | ip, # type: str | |
611 | hostname=_omit, # type: Optional[str] | |
612 | nodeName=_omit, # type: Optional[str] | |
613 | targetRef=_omit, # type: Optional[TargetRef] | |
614 | ): | |
615 | super(ExternalRgwEndpointsItem, self).__init__( | |
616 | ip=ip, | |
617 | hostname=hostname, | |
618 | nodeName=nodeName, | |
619 | targetRef=targetRef, | |
620 | ) | |
621 | ||
622 | @property | |
623 | def hostname(self): | |
624 | # type: () -> str | |
625 | return self._property_impl('hostname') | |
626 | ||
627 | @hostname.setter | |
628 | def hostname(self, new_val): | |
629 | # type: (Optional[str]) -> None | |
630 | self._hostname = new_val | |
631 | ||
632 | @property | |
633 | def ip(self): | |
634 | # type: () -> str | |
635 | return self._property_impl('ip') | |
636 | ||
637 | @ip.setter | |
638 | def ip(self, new_val): | |
639 | # type: (str) -> None | |
640 | self._ip = new_val | |
641 | ||
642 | @property | |
643 | def nodeName(self): | |
644 | # type: () -> str | |
645 | return self._property_impl('nodeName') | |
646 | ||
647 | @nodeName.setter | |
648 | def nodeName(self, new_val): | |
649 | # type: (Optional[str]) -> None | |
650 | self._nodeName = new_val | |
651 | ||
652 | @property | |
653 | def targetRef(self): | |
654 | # type: () -> TargetRef | |
655 | return self._property_impl('targetRef') | |
656 | ||
657 | @targetRef.setter | |
658 | def targetRef(self, new_val): | |
659 | # type: (Optional[TargetRef]) -> None | |
660 | self._targetRef = new_val | |
661 | ||
662 | ||
663 | class ExternalRgwEndpointsList(CrdObjectList): | |
664 | _items_type = ExternalRgwEndpointsItem | |
665 | ||
666 | ||
667 | class ValuesList(CrdObjectList): | |
668 | _items_type = str | |
669 | ||
670 | ||
671 | class MatchExpressionsItem(CrdObject): | |
672 | _properties = [ | |
673 | ('key', 'key', str, True, False), | |
674 | ('operator', 'operator', str, True, False), | |
675 | ('values', 'values', 'ValuesList', False, False) | |
676 | ] | |
677 | ||
678 | def __init__(self, | |
679 | key, # type: str | |
680 | operator, # type: str | |
681 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
682 | ): | |
683 | super(MatchExpressionsItem, self).__init__( | |
684 | key=key, | |
685 | operator=operator, | |
686 | values=values, | |
687 | ) | |
688 | ||
689 | @property | |
690 | def key(self): | |
691 | # type: () -> str | |
692 | return self._property_impl('key') | |
693 | ||
694 | @key.setter | |
695 | def key(self, new_val): | |
696 | # type: (str) -> None | |
697 | self._key = new_val | |
698 | ||
699 | @property | |
700 | def operator(self): | |
701 | # type: () -> str | |
702 | return self._property_impl('operator') | |
703 | ||
704 | @operator.setter | |
705 | def operator(self, new_val): | |
706 | # type: (str) -> None | |
707 | self._operator = new_val | |
708 | ||
709 | @property | |
710 | def values(self): | |
711 | # type: () -> Union[List[str], CrdObjectList] | |
712 | return self._property_impl('values') | |
713 | ||
714 | @values.setter | |
715 | def values(self, new_val): | |
716 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
717 | self._values = new_val | |
718 | ||
719 | ||
720 | class MatchExpressionsList(CrdObjectList): | |
721 | _items_type = MatchExpressionsItem | |
722 | ||
723 | ||
724 | class MatchFieldsItem(CrdObject): | |
725 | _properties = [ | |
726 | ('key', 'key', str, True, False), | |
727 | ('operator', 'operator', str, True, False), | |
728 | ('values', 'values', 'ValuesList', False, False) | |
729 | ] | |
730 | ||
731 | def __init__(self, | |
732 | key, # type: str | |
733 | operator, # type: str | |
734 | values=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
735 | ): | |
736 | super(MatchFieldsItem, self).__init__( | |
737 | key=key, | |
738 | operator=operator, | |
739 | values=values, | |
740 | ) | |
741 | ||
742 | @property | |
743 | def key(self): | |
744 | # type: () -> str | |
745 | return self._property_impl('key') | |
746 | ||
747 | @key.setter | |
748 | def key(self, new_val): | |
749 | # type: (str) -> None | |
750 | self._key = new_val | |
751 | ||
752 | @property | |
753 | def operator(self): | |
754 | # type: () -> str | |
755 | return self._property_impl('operator') | |
756 | ||
757 | @operator.setter | |
758 | def operator(self, new_val): | |
759 | # type: (str) -> None | |
760 | self._operator = new_val | |
761 | ||
762 | @property | |
763 | def values(self): | |
764 | # type: () -> Union[List[str], CrdObjectList] | |
765 | return self._property_impl('values') | |
766 | ||
767 | @values.setter | |
768 | def values(self, new_val): | |
769 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
770 | self._values = new_val | |
771 | ||
772 | ||
773 | class MatchFieldsList(CrdObjectList): | |
774 | _items_type = MatchFieldsItem | |
775 | ||
776 | ||
777 | class Preference(CrdObject): | |
778 | _properties = [ | |
779 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
780 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
781 | ] | |
782 | ||
783 | def __init__(self, | |
784 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
785 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
786 | ): | |
787 | super(Preference, self).__init__( | |
788 | matchExpressions=matchExpressions, | |
789 | matchFields=matchFields, | |
790 | ) | |
791 | ||
792 | @property | |
793 | def matchExpressions(self): | |
794 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
795 | return self._property_impl('matchExpressions') | |
796 | ||
797 | @matchExpressions.setter | |
798 | def matchExpressions(self, new_val): | |
799 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
800 | self._matchExpressions = new_val | |
801 | ||
802 | @property | |
803 | def matchFields(self): | |
804 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
805 | return self._property_impl('matchFields') | |
806 | ||
807 | @matchFields.setter | |
808 | def matchFields(self, new_val): | |
809 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
810 | self._matchFields = new_val | |
811 | ||
812 | ||
813 | class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
814 | _properties = [ | |
815 | ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False), | |
816 | ('weight', 'weight', int, False, False), | |
817 | ('preference', 'preference', 'Preference', False, False) | |
818 | ] | |
819 | ||
820 | def __init__(self, | |
821 | podAffinityTerm=_omit, # type: Optional[PodAffinityTerm] | |
822 | weight=_omit, # type: Optional[int] | |
823 | preference=_omit, # type: Optional[Preference] | |
824 | ): | |
825 | super(PreferredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
826 | podAffinityTerm=podAffinityTerm, | |
827 | weight=weight, | |
828 | preference=preference, | |
829 | ) | |
830 | ||
831 | @property | |
832 | def podAffinityTerm(self): | |
833 | # type: () -> PodAffinityTerm | |
834 | return self._property_impl('podAffinityTerm') | |
835 | ||
836 | @podAffinityTerm.setter | |
837 | def podAffinityTerm(self, new_val): | |
838 | # type: (Optional[PodAffinityTerm]) -> None | |
839 | self._podAffinityTerm = new_val | |
840 | ||
841 | @property | |
842 | def weight(self): | |
843 | # type: () -> int | |
844 | return self._property_impl('weight') | |
845 | ||
846 | @weight.setter | |
847 | def weight(self, new_val): | |
848 | # type: (Optional[int]) -> None | |
849 | self._weight = new_val | |
850 | ||
851 | @property | |
852 | def preference(self): | |
853 | # type: () -> Preference | |
854 | return self._property_impl('preference') | |
855 | ||
856 | @preference.setter | |
857 | def preference(self, new_val): | |
858 | # type: (Optional[Preference]) -> None | |
859 | self._preference = new_val | |
860 | ||
861 | ||
862 | class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
863 | _items_type = PreferredDuringSchedulingIgnoredDuringExecutionItem | |
864 | ||
865 | ||
866 | class NodeSelectorTermsItem(CrdObject): | |
867 | _properties = [ | |
868 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
869 | ('matchFields', 'matchFields', 'MatchFieldsList', False, False) | |
870 | ] | |
871 | ||
872 | def __init__(self, | |
873 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
874 | matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]] | |
875 | ): | |
876 | super(NodeSelectorTermsItem, self).__init__( | |
877 | matchExpressions=matchExpressions, | |
878 | matchFields=matchFields, | |
879 | ) | |
880 | ||
881 | @property | |
882 | def matchExpressions(self): | |
883 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
884 | return self._property_impl('matchExpressions') | |
885 | ||
886 | @matchExpressions.setter | |
887 | def matchExpressions(self, new_val): | |
888 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
889 | self._matchExpressions = new_val | |
890 | ||
891 | @property | |
892 | def matchFields(self): | |
893 | # type: () -> Union[List[MatchFieldsItem], CrdObjectList] | |
894 | return self._property_impl('matchFields') | |
895 | ||
896 | @matchFields.setter | |
897 | def matchFields(self, new_val): | |
898 | # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None | |
899 | self._matchFields = new_val | |
900 | ||
901 | ||
902 | class NodeSelectorTermsList(CrdObjectList): | |
903 | _items_type = NodeSelectorTermsItem | |
904 | ||
905 | ||
906 | class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject): | |
907 | _properties = [ | |
908 | ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False) | |
909 | ] | |
910 | ||
911 | def __init__(self, | |
912 | nodeSelectorTerms, # type: Union[List[NodeSelectorTermsItem], CrdObjectList] | |
913 | ): | |
914 | super(RequiredDuringSchedulingIgnoredDuringExecution, self).__init__( | |
915 | nodeSelectorTerms=nodeSelectorTerms, | |
916 | ) | |
917 | ||
918 | @property | |
919 | def nodeSelectorTerms(self): | |
920 | # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList] | |
921 | return self._property_impl('nodeSelectorTerms') | |
922 | ||
923 | @nodeSelectorTerms.setter | |
924 | def nodeSelectorTerms(self, new_val): | |
925 | # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None | |
926 | self._nodeSelectorTerms = new_val | |
927 | ||
928 | ||
929 | class NodeAffinity(CrdObject): | |
930 | _properties = [ | |
931 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
932 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False) | |
933 | ] | |
934 | ||
935 | def __init__(self, | |
936 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
937 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution] | |
938 | ): | |
939 | super(NodeAffinity, self).__init__( | |
940 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
941 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
942 | ) | |
943 | ||
944 | @property | |
945 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
946 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
947 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
948 | ||
949 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
950 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
951 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
952 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
953 | ||
954 | @property | |
955 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
956 | # type: () -> RequiredDuringSchedulingIgnoredDuringExecution | |
957 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
958 | ||
959 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
960 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
961 | # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None | |
962 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
963 | ||
964 | ||
965 | class LabelSelector(CrdObject): | |
966 | _properties = [ | |
967 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
968 | ('matchLabels', 'matchLabels', object, False, False) | |
969 | ] | |
970 | ||
971 | def __init__(self, | |
972 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
973 | matchLabels=_omit, # type: Optional[Any] | |
974 | ): | |
975 | super(LabelSelector, self).__init__( | |
976 | matchExpressions=matchExpressions, | |
977 | matchLabels=matchLabels, | |
978 | ) | |
979 | ||
980 | @property | |
981 | def matchExpressions(self): | |
982 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
983 | return self._property_impl('matchExpressions') | |
984 | ||
985 | @matchExpressions.setter | |
986 | def matchExpressions(self, new_val): | |
987 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
988 | self._matchExpressions = new_val | |
989 | ||
990 | @property | |
991 | def matchLabels(self): | |
992 | # type: () -> Any | |
993 | return self._property_impl('matchLabels') | |
994 | ||
995 | @matchLabels.setter | |
996 | def matchLabels(self, new_val): | |
997 | # type: (Optional[Any]) -> None | |
998 | self._matchLabels = new_val | |
999 | ||
1000 | ||
1001 | class NamespaceSelector(CrdObject): | |
1002 | _properties = [ | |
1003 | ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False), | |
1004 | ('matchLabels', 'matchLabels', object, False, False) | |
1005 | ] | |
1006 | ||
1007 | def __init__(self, | |
1008 | matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]] | |
1009 | matchLabels=_omit, # type: Optional[Any] | |
1010 | ): | |
1011 | super(NamespaceSelector, self).__init__( | |
1012 | matchExpressions=matchExpressions, | |
1013 | matchLabels=matchLabels, | |
1014 | ) | |
1015 | ||
1016 | @property | |
1017 | def matchExpressions(self): | |
1018 | # type: () -> Union[List[MatchExpressionsItem], CrdObjectList] | |
1019 | return self._property_impl('matchExpressions') | |
1020 | ||
1021 | @matchExpressions.setter | |
1022 | def matchExpressions(self, new_val): | |
1023 | # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None | |
1024 | self._matchExpressions = new_val | |
1025 | ||
1026 | @property | |
1027 | def matchLabels(self): | |
1028 | # type: () -> Any | |
1029 | return self._property_impl('matchLabels') | |
1030 | ||
1031 | @matchLabels.setter | |
1032 | def matchLabels(self, new_val): | |
1033 | # type: (Optional[Any]) -> None | |
1034 | self._matchLabels = new_val | |
1035 | ||
1036 | ||
1037 | class NamespacesList(CrdObjectList): | |
1038 | _items_type = str | |
1039 | ||
1040 | ||
1041 | class PodAffinityTerm(CrdObject): | |
1042 | _properties = [ | |
1043 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1044 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
1045 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
1046 | ('topologyKey', 'topologyKey', str, True, False) | |
1047 | ] | |
1048 | ||
1049 | def __init__(self, | |
1050 | topologyKey, # type: str | |
1051 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1052 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
1053 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
1054 | ): | |
1055 | super(PodAffinityTerm, self).__init__( | |
1056 | topologyKey=topologyKey, | |
1057 | labelSelector=labelSelector, | |
1058 | namespaceSelector=namespaceSelector, | |
1059 | namespaces=namespaces, | |
1060 | ) | |
1061 | ||
1062 | @property | |
1063 | def labelSelector(self): | |
1064 | # type: () -> LabelSelector | |
1065 | return self._property_impl('labelSelector') | |
1066 | ||
1067 | @labelSelector.setter | |
1068 | def labelSelector(self, new_val): | |
1069 | # type: (Optional[LabelSelector]) -> None | |
1070 | self._labelSelector = new_val | |
1071 | ||
1072 | @property | |
1073 | def namespaceSelector(self): | |
1074 | # type: () -> NamespaceSelector | |
1075 | return self._property_impl('namespaceSelector') | |
1076 | ||
1077 | @namespaceSelector.setter | |
1078 | def namespaceSelector(self, new_val): | |
1079 | # type: (Optional[NamespaceSelector]) -> None | |
1080 | self._namespaceSelector = new_val | |
1081 | ||
1082 | @property | |
1083 | def namespaces(self): | |
1084 | # type: () -> Union[List[str], CrdObjectList] | |
1085 | return self._property_impl('namespaces') | |
1086 | ||
1087 | @namespaces.setter | |
1088 | def namespaces(self, new_val): | |
1089 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
1090 | self._namespaces = new_val | |
1091 | ||
1092 | @property | |
1093 | def topologyKey(self): | |
1094 | # type: () -> str | |
1095 | return self._property_impl('topologyKey') | |
1096 | ||
1097 | @topologyKey.setter | |
1098 | def topologyKey(self, new_val): | |
1099 | # type: (str) -> None | |
1100 | self._topologyKey = new_val | |
1101 | ||
1102 | ||
1103 | class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject): | |
1104 | _properties = [ | |
1105 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1106 | ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False), | |
1107 | ('namespaces', 'namespaces', 'NamespacesList', False, False), | |
1108 | ('topologyKey', 'topologyKey', str, True, False) | |
1109 | ] | |
1110 | ||
1111 | def __init__(self, | |
1112 | topologyKey, # type: str | |
1113 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1114 | namespaceSelector=_omit, # type: Optional[NamespaceSelector] | |
1115 | namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
1116 | ): | |
1117 | super(RequiredDuringSchedulingIgnoredDuringExecutionItem, self).__init__( | |
1118 | topologyKey=topologyKey, | |
1119 | labelSelector=labelSelector, | |
1120 | namespaceSelector=namespaceSelector, | |
1121 | namespaces=namespaces, | |
1122 | ) | |
1123 | ||
1124 | @property | |
1125 | def labelSelector(self): | |
1126 | # type: () -> LabelSelector | |
1127 | return self._property_impl('labelSelector') | |
1128 | ||
1129 | @labelSelector.setter | |
1130 | def labelSelector(self, new_val): | |
1131 | # type: (Optional[LabelSelector]) -> None | |
1132 | self._labelSelector = new_val | |
1133 | ||
1134 | @property | |
1135 | def namespaceSelector(self): | |
1136 | # type: () -> NamespaceSelector | |
1137 | return self._property_impl('namespaceSelector') | |
1138 | ||
1139 | @namespaceSelector.setter | |
1140 | def namespaceSelector(self, new_val): | |
1141 | # type: (Optional[NamespaceSelector]) -> None | |
1142 | self._namespaceSelector = new_val | |
1143 | ||
1144 | @property | |
1145 | def namespaces(self): | |
1146 | # type: () -> Union[List[str], CrdObjectList] | |
1147 | return self._property_impl('namespaces') | |
1148 | ||
1149 | @namespaces.setter | |
1150 | def namespaces(self, new_val): | |
1151 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
1152 | self._namespaces = new_val | |
1153 | ||
1154 | @property | |
1155 | def topologyKey(self): | |
1156 | # type: () -> str | |
1157 | return self._property_impl('topologyKey') | |
1158 | ||
1159 | @topologyKey.setter | |
1160 | def topologyKey(self, new_val): | |
1161 | # type: (str) -> None | |
1162 | self._topologyKey = new_val | |
1163 | ||
1164 | ||
1165 | class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList): | |
1166 | _items_type = RequiredDuringSchedulingIgnoredDuringExecutionItem | |
1167 | ||
1168 | ||
1169 | class PodAffinity(CrdObject): | |
1170 | _properties = [ | |
1171 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
1172 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
1173 | ] | |
1174 | ||
1175 | def __init__(self, | |
1176 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1177 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1178 | ): | |
1179 | super(PodAffinity, self).__init__( | |
1180 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
1181 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
1182 | ) | |
1183 | ||
1184 | @property | |
1185 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
1186 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1187 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
1188 | ||
1189 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
1190 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1191 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1192 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
1193 | ||
1194 | @property | |
1195 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
1196 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1197 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
1198 | ||
1199 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
1200 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1201 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1202 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
1203 | ||
1204 | ||
1205 | class PodAntiAffinity(CrdObject): | |
1206 | _properties = [ | |
1207 | ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False), | |
1208 | ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False) | |
1209 | ] | |
1210 | ||
1211 | def __init__(self, | |
1212 | preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1213 | requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]] | |
1214 | ): | |
1215 | super(PodAntiAffinity, self).__init__( | |
1216 | preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution, | |
1217 | requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution, | |
1218 | ) | |
1219 | ||
1220 | @property | |
1221 | def preferredDuringSchedulingIgnoredDuringExecution(self): | |
1222 | # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1223 | return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution') | |
1224 | ||
1225 | @preferredDuringSchedulingIgnoredDuringExecution.setter | |
1226 | def preferredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1227 | # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1228 | self._preferredDuringSchedulingIgnoredDuringExecution = new_val | |
1229 | ||
1230 | @property | |
1231 | def requiredDuringSchedulingIgnoredDuringExecution(self): | |
1232 | # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList] | |
1233 | return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution') | |
1234 | ||
1235 | @requiredDuringSchedulingIgnoredDuringExecution.setter | |
1236 | def requiredDuringSchedulingIgnoredDuringExecution(self, new_val): | |
1237 | # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None | |
1238 | self._requiredDuringSchedulingIgnoredDuringExecution = new_val | |
1239 | ||
1240 | ||
1241 | class TolerationsItem(CrdObject): | |
1242 | _properties = [ | |
1243 | ('effect', 'effect', str, False, False), | |
1244 | ('key', 'key', str, False, False), | |
1245 | ('operator', 'operator', str, False, False), | |
1246 | ('tolerationSeconds', 'tolerationSeconds', int, False, False), | |
1247 | ('value', 'value', str, False, False) | |
1248 | ] | |
1249 | ||
1250 | def __init__(self, | |
1251 | effect=_omit, # type: Optional[str] | |
1252 | key=_omit, # type: Optional[str] | |
1253 | operator=_omit, # type: Optional[str] | |
1254 | tolerationSeconds=_omit, # type: Optional[int] | |
1255 | value=_omit, # type: Optional[str] | |
1256 | ): | |
1257 | super(TolerationsItem, self).__init__( | |
1258 | effect=effect, | |
1259 | key=key, | |
1260 | operator=operator, | |
1261 | tolerationSeconds=tolerationSeconds, | |
1262 | value=value, | |
1263 | ) | |
1264 | ||
1265 | @property | |
1266 | def effect(self): | |
1267 | # type: () -> str | |
1268 | return self._property_impl('effect') | |
1269 | ||
1270 | @effect.setter | |
1271 | def effect(self, new_val): | |
1272 | # type: (Optional[str]) -> None | |
1273 | self._effect = new_val | |
1274 | ||
1275 | @property | |
1276 | def key(self): | |
1277 | # type: () -> str | |
1278 | return self._property_impl('key') | |
1279 | ||
1280 | @key.setter | |
1281 | def key(self, new_val): | |
1282 | # type: (Optional[str]) -> None | |
1283 | self._key = new_val | |
1284 | ||
1285 | @property | |
1286 | def operator(self): | |
1287 | # type: () -> str | |
1288 | return self._property_impl('operator') | |
1289 | ||
1290 | @operator.setter | |
1291 | def operator(self, new_val): | |
1292 | # type: (Optional[str]) -> None | |
1293 | self._operator = new_val | |
1294 | ||
1295 | @property | |
1296 | def tolerationSeconds(self): | |
1297 | # type: () -> int | |
1298 | return self._property_impl('tolerationSeconds') | |
1299 | ||
1300 | @tolerationSeconds.setter | |
1301 | def tolerationSeconds(self, new_val): | |
1302 | # type: (Optional[int]) -> None | |
1303 | self._tolerationSeconds = new_val | |
1304 | ||
1305 | @property | |
1306 | def value(self): | |
1307 | # type: () -> str | |
1308 | return self._property_impl('value') | |
1309 | ||
1310 | @value.setter | |
1311 | def value(self, new_val): | |
1312 | # type: (Optional[str]) -> None | |
1313 | self._value = new_val | |
1314 | ||
1315 | ||
1316 | class TolerationsList(CrdObjectList): | |
1317 | _items_type = TolerationsItem | |
1318 | ||
1319 | ||
1320 | class TopologySpreadConstraintsItem(CrdObject): | |
1321 | _properties = [ | |
1322 | ('labelSelector', 'labelSelector', 'LabelSelector', False, False), | |
1323 | ('maxSkew', 'maxSkew', int, True, False), | |
1324 | ('topologyKey', 'topologyKey', str, True, False), | |
1325 | ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False) | |
1326 | ] | |
1327 | ||
1328 | def __init__(self, | |
1329 | maxSkew, # type: int | |
1330 | topologyKey, # type: str | |
1331 | whenUnsatisfiable, # type: str | |
1332 | labelSelector=_omit, # type: Optional[LabelSelector] | |
1333 | ): | |
1334 | super(TopologySpreadConstraintsItem, self).__init__( | |
1335 | maxSkew=maxSkew, | |
1336 | topologyKey=topologyKey, | |
1337 | whenUnsatisfiable=whenUnsatisfiable, | |
1338 | labelSelector=labelSelector, | |
1339 | ) | |
1340 | ||
1341 | @property | |
1342 | def labelSelector(self): | |
1343 | # type: () -> LabelSelector | |
1344 | return self._property_impl('labelSelector') | |
1345 | ||
1346 | @labelSelector.setter | |
1347 | def labelSelector(self, new_val): | |
1348 | # type: (Optional[LabelSelector]) -> None | |
1349 | self._labelSelector = new_val | |
1350 | ||
1351 | @property | |
1352 | def maxSkew(self): | |
1353 | # type: () -> int | |
1354 | return self._property_impl('maxSkew') | |
1355 | ||
1356 | @maxSkew.setter | |
1357 | def maxSkew(self, new_val): | |
1358 | # type: (int) -> None | |
1359 | self._maxSkew = new_val | |
1360 | ||
1361 | @property | |
1362 | def topologyKey(self): | |
1363 | # type: () -> str | |
1364 | return self._property_impl('topologyKey') | |
1365 | ||
1366 | @topologyKey.setter | |
1367 | def topologyKey(self, new_val): | |
1368 | # type: (str) -> None | |
1369 | self._topologyKey = new_val | |
1370 | ||
1371 | @property | |
1372 | def whenUnsatisfiable(self): | |
1373 | # type: () -> str | |
1374 | return self._property_impl('whenUnsatisfiable') | |
1375 | ||
1376 | @whenUnsatisfiable.setter | |
1377 | def whenUnsatisfiable(self, new_val): | |
1378 | # type: (str) -> None | |
1379 | self._whenUnsatisfiable = new_val | |
1380 | ||
1381 | ||
1382 | class TopologySpreadConstraintsList(CrdObjectList): | |
1383 | _items_type = TopologySpreadConstraintsItem | |
1384 | ||
1385 | ||
1386 | class Placement(CrdObject): | |
1387 | _properties = [ | |
1388 | ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False), | |
1389 | ('podAffinity', 'podAffinity', 'PodAffinity', False, False), | |
1390 | ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False), | |
1391 | ('tolerations', 'tolerations', 'TolerationsList', False, False), | |
1392 | ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False) | |
1393 | ] | |
1394 | ||
1395 | def __init__(self, | |
1396 | nodeAffinity=_omit, # type: Optional[NodeAffinity] | |
1397 | podAffinity=_omit, # type: Optional[PodAffinity] | |
1398 | podAntiAffinity=_omit, # type: Optional[PodAntiAffinity] | |
1399 | tolerations=_omit, # type: Optional[Union[List[TolerationsItem], CrdObjectList]] | |
1400 | topologySpreadConstraints=_omit, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]] | |
1401 | ): | |
1402 | super(Placement, self).__init__( | |
1403 | nodeAffinity=nodeAffinity, | |
1404 | podAffinity=podAffinity, | |
1405 | podAntiAffinity=podAntiAffinity, | |
1406 | tolerations=tolerations, | |
1407 | topologySpreadConstraints=topologySpreadConstraints, | |
1408 | ) | |
1409 | ||
1410 | @property | |
1411 | def nodeAffinity(self): | |
1412 | # type: () -> NodeAffinity | |
1413 | return self._property_impl('nodeAffinity') | |
1414 | ||
1415 | @nodeAffinity.setter | |
1416 | def nodeAffinity(self, new_val): | |
1417 | # type: (Optional[NodeAffinity]) -> None | |
1418 | self._nodeAffinity = new_val | |
1419 | ||
1420 | @property | |
1421 | def podAffinity(self): | |
1422 | # type: () -> PodAffinity | |
1423 | return self._property_impl('podAffinity') | |
1424 | ||
1425 | @podAffinity.setter | |
1426 | def podAffinity(self, new_val): | |
1427 | # type: (Optional[PodAffinity]) -> None | |
1428 | self._podAffinity = new_val | |
1429 | ||
1430 | @property | |
1431 | def podAntiAffinity(self): | |
1432 | # type: () -> PodAntiAffinity | |
1433 | return self._property_impl('podAntiAffinity') | |
1434 | ||
1435 | @podAntiAffinity.setter | |
1436 | def podAntiAffinity(self, new_val): | |
1437 | # type: (Optional[PodAntiAffinity]) -> None | |
1438 | self._podAntiAffinity = new_val | |
1439 | ||
1440 | @property | |
1441 | def tolerations(self): | |
1442 | # type: () -> Union[List[TolerationsItem], CrdObjectList] | |
1443 | return self._property_impl('tolerations') | |
1444 | ||
1445 | @tolerations.setter | |
1446 | def tolerations(self, new_val): | |
1447 | # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None | |
1448 | self._tolerations = new_val | |
1449 | ||
1450 | @property | |
1451 | def topologySpreadConstraints(self): | |
1452 | # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList] | |
1453 | return self._property_impl('topologySpreadConstraints') | |
1454 | ||
1455 | @topologySpreadConstraints.setter | |
1456 | def topologySpreadConstraints(self, new_val): | |
1457 | # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None | |
1458 | self._topologySpreadConstraints = new_val | |
1459 | ||
1460 | ||
1461 | class Resources(CrdObject): | |
1462 | _properties = [ | |
1463 | ('limits', 'limits', object, False, False), | |
1464 | ('requests', 'requests', object, False, False) | |
1465 | ] | |
1466 | ||
1467 | def __init__(self, | |
1468 | limits=_omit, # type: Optional[Any] | |
1469 | requests=_omit, # type: Optional[Any] | |
1470 | ): | |
1471 | super(Resources, self).__init__( | |
1472 | limits=limits, | |
1473 | requests=requests, | |
1474 | ) | |
1475 | ||
1476 | @property | |
1477 | def limits(self): | |
1478 | # type: () -> Any | |
1479 | return self._property_impl('limits') | |
1480 | ||
1481 | @limits.setter | |
1482 | def limits(self, new_val): | |
1483 | # type: (Optional[Any]) -> None | |
1484 | self._limits = new_val | |
1485 | ||
1486 | @property | |
1487 | def requests(self): | |
1488 | # type: () -> Any | |
1489 | return self._property_impl('requests') | |
1490 | ||
1491 | @requests.setter | |
1492 | def requests(self, new_val): | |
1493 | # type: (Optional[Any]) -> None | |
1494 | self._requests = new_val | |
1495 | ||
1496 | ||
1497 | class Service(CrdObject): | |
1498 | _properties = [ | |
1499 | ('annotations', 'annotations', object, False, False) | |
1500 | ] | |
1501 | ||
1502 | def __init__(self, | |
1503 | annotations=_omit, # type: Optional[Any] | |
1504 | ): | |
1505 | super(Service, self).__init__( | |
1506 | annotations=annotations, | |
1507 | ) | |
1508 | ||
1509 | @property | |
1510 | def annotations(self): | |
1511 | # type: () -> Any | |
1512 | return self._property_impl('annotations') | |
1513 | ||
1514 | @annotations.setter | |
1515 | def annotations(self, new_val): | |
1516 | # type: (Optional[Any]) -> None | |
1517 | self._annotations = new_val | |
1518 | ||
1519 | ||
9f95a23c TL |
1520 | class Gateway(CrdObject): |
1521 | _properties = [ | |
20effc67 TL |
1522 | ('annotations', 'annotations', object, False, True), |
1523 | ('externalRgwEndpoints', 'externalRgwEndpoints', 'ExternalRgwEndpointsList', False, True), | |
1524 | ('instances', 'instances', int, True, False), | |
1525 | ('labels', 'labels', object, False, True), | |
1526 | ('placement', 'placement', 'Placement', False, True), | |
9f95a23c | 1527 | ('port', 'port', int, False, False), |
20effc67 TL |
1528 | ('priorityClassName', 'priorityClassName', str, False, False), |
1529 | ('resources', 'resources', 'Resources', False, True), | |
1530 | ('securePort', 'securePort', int, False, True), | |
1531 | ('service', 'service', 'Service', False, True), | |
1532 | ('sslCertificateRef', 'sslCertificateRef', str, False, True) | |
9f95a23c TL |
1533 | ] |
1534 | ||
1535 | def __init__(self, | |
20effc67 | 1536 | instances, # type: int |
9f95a23c | 1537 | annotations=_omit, # type: Optional[Any] |
20effc67 TL |
1538 | externalRgwEndpoints=_omit, # type: Optional[Union[List[ExternalRgwEndpointsItem], CrdObjectList]] |
1539 | labels=_omit, # type: Optional[Any] | |
1540 | placement=_omit, # type: Optional[Placement] | |
1541 | port=_omit, # type: Optional[int] | |
1542 | priorityClassName=_omit, # type: Optional[str] | |
1543 | resources=_omit, # type: Optional[Resources] | |
1544 | securePort=_omit, # type: Optional[int] | |
1545 | service=_omit, # type: Optional[Service] | |
1546 | sslCertificateRef=_omit, # type: Optional[str] | |
9f95a23c TL |
1547 | ): |
1548 | super(Gateway, self).__init__( | |
9f95a23c TL |
1549 | instances=instances, |
1550 | annotations=annotations, | |
20effc67 TL |
1551 | externalRgwEndpoints=externalRgwEndpoints, |
1552 | labels=labels, | |
9f95a23c | 1553 | placement=placement, |
20effc67 TL |
1554 | port=port, |
1555 | priorityClassName=priorityClassName, | |
9f95a23c | 1556 | resources=resources, |
20effc67 TL |
1557 | securePort=securePort, |
1558 | service=service, | |
1559 | sslCertificateRef=sslCertificateRef, | |
9f95a23c TL |
1560 | ) |
1561 | ||
1562 | @property | |
20effc67 TL |
1563 | def annotations(self): |
1564 | # type: () -> Optional[Any] | |
1565 | return self._property_impl('annotations') | |
9f95a23c | 1566 | |
20effc67 TL |
1567 | @annotations.setter |
1568 | def annotations(self, new_val): | |
1569 | # type: (Optional[Any]) -> None | |
1570 | self._annotations = new_val | |
9f95a23c TL |
1571 | |
1572 | @property | |
20effc67 TL |
1573 | def externalRgwEndpoints(self): |
1574 | # type: () -> Optional[Union[List[ExternalRgwEndpointsItem], CrdObjectList]] | |
1575 | return self._property_impl('externalRgwEndpoints') | |
9f95a23c | 1576 | |
20effc67 TL |
1577 | @externalRgwEndpoints.setter |
1578 | def externalRgwEndpoints(self, new_val): | |
1579 | # type: (Optional[Union[List[ExternalRgwEndpointsItem], CrdObjectList]]) -> None | |
1580 | self._externalRgwEndpoints = new_val | |
1581 | ||
1582 | @property | |
1583 | def instances(self): | |
1584 | # type: () -> int | |
1585 | return self._property_impl('instances') | |
1586 | ||
1587 | @instances.setter | |
1588 | def instances(self, new_val): | |
1589 | # type: (int) -> None | |
1590 | self._instances = new_val | |
1591 | ||
1592 | @property | |
1593 | def labels(self): | |
1594 | # type: () -> Optional[Any] | |
1595 | return self._property_impl('labels') | |
1596 | ||
1597 | @labels.setter | |
1598 | def labels(self, new_val): | |
9f95a23c | 1599 | # type: (Optional[Any]) -> None |
20effc67 TL |
1600 | self._labels = new_val |
1601 | ||
1602 | @property | |
1603 | def placement(self): | |
1604 | # type: () -> Optional[Placement] | |
1605 | return self._property_impl('placement') | |
1606 | ||
1607 | @placement.setter | |
1608 | def placement(self, new_val): | |
1609 | # type: (Optional[Placement]) -> None | |
1610 | self._placement = new_val | |
9f95a23c TL |
1611 | |
1612 | @property | |
1613 | def port(self): | |
1614 | # type: () -> int | |
1615 | return self._property_impl('port') | |
1616 | ||
1617 | @port.setter | |
1618 | def port(self, new_val): | |
1619 | # type: (Optional[int]) -> None | |
1620 | self._port = new_val | |
1621 | ||
20effc67 TL |
1622 | @property |
1623 | def priorityClassName(self): | |
1624 | # type: () -> str | |
1625 | return self._property_impl('priorityClassName') | |
1626 | ||
1627 | @priorityClassName.setter | |
1628 | def priorityClassName(self, new_val): | |
1629 | # type: (Optional[str]) -> None | |
1630 | self._priorityClassName = new_val | |
1631 | ||
1632 | @property | |
1633 | def resources(self): | |
1634 | # type: () -> Optional[Resources] | |
1635 | return self._property_impl('resources') | |
1636 | ||
1637 | @resources.setter | |
1638 | def resources(self, new_val): | |
1639 | # type: (Optional[Resources]) -> None | |
1640 | self._resources = new_val | |
1641 | ||
9f95a23c TL |
1642 | @property |
1643 | def securePort(self): | |
20effc67 | 1644 | # type: () -> Optional[int] |
9f95a23c TL |
1645 | return self._property_impl('securePort') |
1646 | ||
1647 | @securePort.setter | |
1648 | def securePort(self, new_val): | |
20effc67 | 1649 | # type: (Optional[int]) -> None |
9f95a23c TL |
1650 | self._securePort = new_val |
1651 | ||
1652 | @property | |
20effc67 TL |
1653 | def service(self): |
1654 | # type: () -> Optional[Service] | |
1655 | return self._property_impl('service') | |
1656 | ||
1657 | @service.setter | |
1658 | def service(self, new_val): | |
1659 | # type: (Optional[Service]) -> None | |
1660 | self._service = new_val | |
1661 | ||
1662 | @property | |
1663 | def sslCertificateRef(self): | |
1664 | # type: () -> Optional[str] | |
1665 | return self._property_impl('sslCertificateRef') | |
1666 | ||
1667 | @sslCertificateRef.setter | |
1668 | def sslCertificateRef(self, new_val): | |
1669 | # type: (Optional[str]) -> None | |
1670 | self._sslCertificateRef = new_val | |
1671 | ||
1672 | ||
1673 | class Bucket(CrdObject): | |
1674 | _properties = [ | |
1675 | ('disabled', 'disabled', bool, False, False), | |
1676 | ('interval', 'interval', str, False, False), | |
1677 | ('timeout', 'timeout', str, False, False) | |
1678 | ] | |
1679 | ||
1680 | def __init__(self, | |
1681 | disabled=_omit, # type: Optional[bool] | |
1682 | interval=_omit, # type: Optional[str] | |
1683 | timeout=_omit, # type: Optional[str] | |
1684 | ): | |
1685 | super(Bucket, self).__init__( | |
1686 | disabled=disabled, | |
1687 | interval=interval, | |
1688 | timeout=timeout, | |
1689 | ) | |
1690 | ||
1691 | @property | |
1692 | def disabled(self): | |
1693 | # type: () -> bool | |
1694 | return self._property_impl('disabled') | |
1695 | ||
1696 | @disabled.setter | |
1697 | def disabled(self, new_val): | |
1698 | # type: (Optional[bool]) -> None | |
1699 | self._disabled = new_val | |
1700 | ||
1701 | @property | |
1702 | def interval(self): | |
1703 | # type: () -> str | |
1704 | return self._property_impl('interval') | |
1705 | ||
1706 | @interval.setter | |
1707 | def interval(self, new_val): | |
1708 | # type: (Optional[str]) -> None | |
1709 | self._interval = new_val | |
1710 | ||
1711 | @property | |
1712 | def timeout(self): | |
1713 | # type: () -> str | |
1714 | return self._property_impl('timeout') | |
1715 | ||
1716 | @timeout.setter | |
1717 | def timeout(self, new_val): | |
1718 | # type: (Optional[str]) -> None | |
1719 | self._timeout = new_val | |
1720 | ||
1721 | ||
1722 | class CommandList(CrdObjectList): | |
1723 | _items_type = str | |
1724 | ||
1725 | ||
1726 | class Exec(CrdObject): | |
1727 | _properties = [ | |
1728 | ('command', 'command', 'CommandList', False, False) | |
1729 | ] | |
1730 | ||
1731 | def __init__(self, | |
1732 | command=_omit, # type: Optional[Union[List[str], CrdObjectList]] | |
1733 | ): | |
1734 | super(Exec, self).__init__( | |
1735 | command=command, | |
1736 | ) | |
1737 | ||
1738 | @property | |
1739 | def command(self): | |
1740 | # type: () -> Union[List[str], CrdObjectList] | |
1741 | return self._property_impl('command') | |
1742 | ||
1743 | @command.setter | |
1744 | def command(self, new_val): | |
1745 | # type: (Optional[Union[List[str], CrdObjectList]]) -> None | |
1746 | self._command = new_val | |
1747 | ||
1748 | ||
1749 | class HttpHeadersItem(CrdObject): | |
1750 | _properties = [ | |
1751 | ('name', 'name', str, True, False), | |
1752 | ('value', 'value', str, True, False) | |
1753 | ] | |
1754 | ||
1755 | def __init__(self, | |
1756 | name, # type: str | |
1757 | value, # type: str | |
1758 | ): | |
1759 | super(HttpHeadersItem, self).__init__( | |
1760 | name=name, | |
1761 | value=value, | |
1762 | ) | |
1763 | ||
1764 | @property | |
1765 | def name(self): | |
1766 | # type: () -> str | |
1767 | return self._property_impl('name') | |
1768 | ||
1769 | @name.setter | |
1770 | def name(self, new_val): | |
1771 | # type: (str) -> None | |
1772 | self._name = new_val | |
1773 | ||
1774 | @property | |
1775 | def value(self): | |
1776 | # type: () -> str | |
1777 | return self._property_impl('value') | |
1778 | ||
1779 | @value.setter | |
1780 | def value(self, new_val): | |
1781 | # type: (str) -> None | |
1782 | self._value = new_val | |
1783 | ||
1784 | ||
1785 | class HttpHeadersList(CrdObjectList): | |
1786 | _items_type = HttpHeadersItem | |
1787 | ||
1788 | ||
1789 | class HttpGet(CrdObject): | |
1790 | _properties = [ | |
1791 | ('host', 'host', str, False, False), | |
1792 | ('httpHeaders', 'httpHeaders', 'HttpHeadersList', False, False), | |
1793 | ('path', 'path', str, False, False), | |
1794 | ('port', 'port', Union[int, str], True, False), | |
1795 | ('scheme', 'scheme', str, False, False) | |
1796 | ] | |
1797 | ||
1798 | def __init__(self, | |
1799 | port, # type: Union[int, str] | |
1800 | host=_omit, # type: Optional[str] | |
1801 | httpHeaders=_omit, # type: Optional[Union[List[HttpHeadersItem], CrdObjectList]] | |
1802 | path=_omit, # type: Optional[str] | |
1803 | scheme=_omit, # type: Optional[str] | |
1804 | ): | |
1805 | super(HttpGet, self).__init__( | |
1806 | port=port, | |
1807 | host=host, | |
1808 | httpHeaders=httpHeaders, | |
1809 | path=path, | |
1810 | scheme=scheme, | |
1811 | ) | |
1812 | ||
1813 | @property | |
1814 | def host(self): | |
1815 | # type: () -> str | |
1816 | return self._property_impl('host') | |
1817 | ||
1818 | @host.setter | |
1819 | def host(self, new_val): | |
1820 | # type: (Optional[str]) -> None | |
1821 | self._host = new_val | |
1822 | ||
1823 | @property | |
1824 | def httpHeaders(self): | |
1825 | # type: () -> Union[List[HttpHeadersItem], CrdObjectList] | |
1826 | return self._property_impl('httpHeaders') | |
1827 | ||
1828 | @httpHeaders.setter | |
1829 | def httpHeaders(self, new_val): | |
1830 | # type: (Optional[Union[List[HttpHeadersItem], CrdObjectList]]) -> None | |
1831 | self._httpHeaders = new_val | |
1832 | ||
1833 | @property | |
1834 | def path(self): | |
1835 | # type: () -> str | |
1836 | return self._property_impl('path') | |
1837 | ||
1838 | @path.setter | |
1839 | def path(self, new_val): | |
1840 | # type: (Optional[str]) -> None | |
1841 | self._path = new_val | |
1842 | ||
1843 | @property | |
1844 | def port(self): | |
1845 | # type: () -> Union[int, str] | |
1846 | return self._property_impl('port') | |
1847 | ||
1848 | @port.setter | |
1849 | def port(self, new_val): | |
1850 | # type: (Union[int, str]) -> None | |
1851 | self._port = new_val | |
1852 | ||
1853 | @property | |
1854 | def scheme(self): | |
1855 | # type: () -> str | |
1856 | return self._property_impl('scheme') | |
1857 | ||
1858 | @scheme.setter | |
1859 | def scheme(self, new_val): | |
1860 | # type: (Optional[str]) -> None | |
1861 | self._scheme = new_val | |
1862 | ||
1863 | ||
1864 | class TcpSocket(CrdObject): | |
1865 | _properties = [ | |
1866 | ('host', 'host', str, False, False), | |
1867 | ('port', 'port', Union[int, str], True, False) | |
1868 | ] | |
1869 | ||
1870 | def __init__(self, | |
1871 | port, # type: Union[int, str] | |
1872 | host=_omit, # type: Optional[str] | |
1873 | ): | |
1874 | super(TcpSocket, self).__init__( | |
1875 | port=port, | |
1876 | host=host, | |
1877 | ) | |
1878 | ||
1879 | @property | |
1880 | def host(self): | |
1881 | # type: () -> str | |
1882 | return self._property_impl('host') | |
1883 | ||
1884 | @host.setter | |
1885 | def host(self, new_val): | |
1886 | # type: (Optional[str]) -> None | |
1887 | self._host = new_val | |
1888 | ||
1889 | @property | |
1890 | def port(self): | |
1891 | # type: () -> Union[int, str] | |
1892 | return self._property_impl('port') | |
1893 | ||
1894 | @port.setter | |
1895 | def port(self, new_val): | |
1896 | # type: (Union[int, str]) -> None | |
1897 | self._port = new_val | |
1898 | ||
1899 | ||
1900 | class Probe(CrdObject): | |
1901 | _properties = [ | |
1902 | ('exec', 'exec_1', 'Exec', False, False), | |
1903 | ('failureThreshold', 'failureThreshold', int, False, False), | |
1904 | ('httpGet', 'httpGet', 'HttpGet', False, False), | |
1905 | ('initialDelaySeconds', 'initialDelaySeconds', int, False, False), | |
1906 | ('periodSeconds', 'periodSeconds', int, False, False), | |
1907 | ('successThreshold', 'successThreshold', int, False, False), | |
1908 | ('tcpSocket', 'tcpSocket', 'TcpSocket', False, False), | |
1909 | ('terminationGracePeriodSeconds', 'terminationGracePeriodSeconds', int, False, False), | |
1910 | ('timeoutSeconds', 'timeoutSeconds', int, False, False) | |
1911 | ] | |
1912 | ||
1913 | def __init__(self, | |
1914 | exec_1=_omit, # type: Optional[Exec] | |
1915 | failureThreshold=_omit, # type: Optional[int] | |
1916 | httpGet=_omit, # type: Optional[HttpGet] | |
1917 | initialDelaySeconds=_omit, # type: Optional[int] | |
1918 | periodSeconds=_omit, # type: Optional[int] | |
1919 | successThreshold=_omit, # type: Optional[int] | |
1920 | tcpSocket=_omit, # type: Optional[TcpSocket] | |
1921 | terminationGracePeriodSeconds=_omit, # type: Optional[int] | |
1922 | timeoutSeconds=_omit, # type: Optional[int] | |
1923 | ): | |
1924 | super(Probe, self).__init__( | |
1925 | exec_1=exec_1, | |
1926 | failureThreshold=failureThreshold, | |
1927 | httpGet=httpGet, | |
1928 | initialDelaySeconds=initialDelaySeconds, | |
1929 | periodSeconds=periodSeconds, | |
1930 | successThreshold=successThreshold, | |
1931 | tcpSocket=tcpSocket, | |
1932 | terminationGracePeriodSeconds=terminationGracePeriodSeconds, | |
1933 | timeoutSeconds=timeoutSeconds, | |
1934 | ) | |
1935 | ||
1936 | @property | |
1937 | def exec_1(self): | |
1938 | # type: () -> Exec | |
1939 | return self._property_impl('exec_1') | |
1940 | ||
1941 | @exec_1.setter | |
1942 | def exec_1(self, new_val): | |
1943 | # type: (Optional[Exec]) -> None | |
1944 | self._exec_1 = new_val | |
1945 | ||
1946 | @property | |
1947 | def failureThreshold(self): | |
9f95a23c | 1948 | # type: () -> int |
20effc67 | 1949 | return self._property_impl('failureThreshold') |
9f95a23c | 1950 | |
20effc67 TL |
1951 | @failureThreshold.setter |
1952 | def failureThreshold(self, new_val): | |
9f95a23c | 1953 | # type: (Optional[int]) -> None |
20effc67 | 1954 | self._failureThreshold = new_val |
9f95a23c TL |
1955 | |
1956 | @property | |
20effc67 TL |
1957 | def httpGet(self): |
1958 | # type: () -> HttpGet | |
1959 | return self._property_impl('httpGet') | |
9f95a23c | 1960 | |
20effc67 TL |
1961 | @httpGet.setter |
1962 | def httpGet(self, new_val): | |
1963 | # type: (Optional[HttpGet]) -> None | |
1964 | self._httpGet = new_val | |
9f95a23c TL |
1965 | |
1966 | @property | |
20effc67 TL |
1967 | def initialDelaySeconds(self): |
1968 | # type: () -> int | |
1969 | return self._property_impl('initialDelaySeconds') | |
9f95a23c | 1970 | |
20effc67 TL |
1971 | @initialDelaySeconds.setter |
1972 | def initialDelaySeconds(self, new_val): | |
1973 | # type: (Optional[int]) -> None | |
1974 | self._initialDelaySeconds = new_val | |
1975 | ||
1976 | @property | |
1977 | def periodSeconds(self): | |
1978 | # type: () -> int | |
1979 | return self._property_impl('periodSeconds') | |
1980 | ||
1981 | @periodSeconds.setter | |
1982 | def periodSeconds(self, new_val): | |
1983 | # type: (Optional[int]) -> None | |
1984 | self._periodSeconds = new_val | |
1985 | ||
1986 | @property | |
1987 | def successThreshold(self): | |
1988 | # type: () -> int | |
1989 | return self._property_impl('successThreshold') | |
1990 | ||
1991 | @successThreshold.setter | |
1992 | def successThreshold(self, new_val): | |
1993 | # type: (Optional[int]) -> None | |
1994 | self._successThreshold = new_val | |
1995 | ||
1996 | @property | |
1997 | def tcpSocket(self): | |
1998 | # type: () -> TcpSocket | |
1999 | return self._property_impl('tcpSocket') | |
2000 | ||
2001 | @tcpSocket.setter | |
2002 | def tcpSocket(self, new_val): | |
2003 | # type: (Optional[TcpSocket]) -> None | |
2004 | self._tcpSocket = new_val | |
2005 | ||
2006 | @property | |
2007 | def terminationGracePeriodSeconds(self): | |
2008 | # type: () -> int | |
2009 | return self._property_impl('terminationGracePeriodSeconds') | |
2010 | ||
2011 | @terminationGracePeriodSeconds.setter | |
2012 | def terminationGracePeriodSeconds(self, new_val): | |
2013 | # type: (Optional[int]) -> None | |
2014 | self._terminationGracePeriodSeconds = new_val | |
9f95a23c TL |
2015 | |
2016 | @property | |
20effc67 TL |
2017 | def timeoutSeconds(self): |
2018 | # type: () -> int | |
2019 | return self._property_impl('timeoutSeconds') | |
9f95a23c | 2020 | |
20effc67 TL |
2021 | @timeoutSeconds.setter |
2022 | def timeoutSeconds(self, new_val): | |
2023 | # type: (Optional[int]) -> None | |
2024 | self._timeoutSeconds = new_val | |
9f95a23c TL |
2025 | |
2026 | ||
20effc67 | 2027 | class LivenessProbe(CrdObject): |
9f95a23c | 2028 | _properties = [ |
20effc67 TL |
2029 | ('disabled', 'disabled', bool, False, False), |
2030 | ('probe', 'probe', 'Probe', False, False) | |
9f95a23c TL |
2031 | ] |
2032 | ||
2033 | def __init__(self, | |
20effc67 TL |
2034 | disabled=_omit, # type: Optional[bool] |
2035 | probe=_omit, # type: Optional[Probe] | |
9f95a23c | 2036 | ): |
20effc67 TL |
2037 | super(LivenessProbe, self).__init__( |
2038 | disabled=disabled, | |
2039 | probe=probe, | |
9f95a23c TL |
2040 | ) |
2041 | ||
2042 | @property | |
20effc67 TL |
2043 | def disabled(self): |
2044 | # type: () -> bool | |
2045 | return self._property_impl('disabled') | |
9f95a23c | 2046 | |
20effc67 TL |
2047 | @disabled.setter |
2048 | def disabled(self, new_val): | |
2049 | # type: (Optional[bool]) -> None | |
2050 | self._disabled = new_val | |
2051 | ||
2052 | @property | |
2053 | def probe(self): | |
2054 | # type: () -> Probe | |
2055 | return self._property_impl('probe') | |
2056 | ||
2057 | @probe.setter | |
2058 | def probe(self, new_val): | |
2059 | # type: (Optional[Probe]) -> None | |
2060 | self._probe = new_val | |
9f95a23c TL |
2061 | |
2062 | ||
20effc67 | 2063 | class HealthCheck(CrdObject): |
9f95a23c | 2064 | _properties = [ |
20effc67 TL |
2065 | ('bucket', 'bucket', 'Bucket', False, False), |
2066 | ('livenessProbe', 'livenessProbe', 'LivenessProbe', False, False) | |
9f95a23c TL |
2067 | ] |
2068 | ||
2069 | def __init__(self, | |
20effc67 TL |
2070 | bucket=_omit, # type: Optional[Bucket] |
2071 | livenessProbe=_omit, # type: Optional[LivenessProbe] | |
9f95a23c | 2072 | ): |
20effc67 TL |
2073 | super(HealthCheck, self).__init__( |
2074 | bucket=bucket, | |
2075 | livenessProbe=livenessProbe, | |
9f95a23c TL |
2076 | ) |
2077 | ||
2078 | @property | |
20effc67 TL |
2079 | def bucket(self): |
2080 | # type: () -> Bucket | |
2081 | return self._property_impl('bucket') | |
9f95a23c | 2082 | |
20effc67 TL |
2083 | @bucket.setter |
2084 | def bucket(self, new_val): | |
2085 | # type: (Optional[Bucket]) -> None | |
2086 | self._bucket = new_val | |
9f95a23c TL |
2087 | |
2088 | @property | |
20effc67 TL |
2089 | def livenessProbe(self): |
2090 | # type: () -> LivenessProbe | |
2091 | return self._property_impl('livenessProbe') | |
9f95a23c | 2092 | |
20effc67 TL |
2093 | @livenessProbe.setter |
2094 | def livenessProbe(self, new_val): | |
2095 | # type: (Optional[LivenessProbe]) -> None | |
2096 | self._livenessProbe = new_val | |
9f95a23c TL |
2097 | |
2098 | ||
2099 | class MetadataPool(CrdObject): | |
2100 | _properties = [ | |
20effc67 TL |
2101 | ('compressionMode', 'compressionMode', str, False, True), |
2102 | ('crushRoot', 'crushRoot', str, False, True), | |
2103 | ('deviceClass', 'deviceClass', str, False, True), | |
2104 | ('enableRBDStats', 'enableRBDStats', bool, False, False), | |
2105 | ('erasureCoded', 'erasureCoded', 'ErasureCoded', False, False), | |
9f95a23c | 2106 | ('failureDomain', 'failureDomain', str, False, False), |
20effc67 TL |
2107 | ('mirroring', 'mirroring', 'Mirroring', False, False), |
2108 | ('parameters', 'parameters', object, False, True), | |
2109 | ('quotas', 'quotas', 'Quotas', False, True), | |
2110 | ('replicated', 'replicated', 'Replicated', False, False), | |
2111 | ('statusCheck', 'statusCheck', 'StatusCheck', False, False) | |
9f95a23c TL |
2112 | ] |
2113 | ||
2114 | def __init__(self, | |
20effc67 TL |
2115 | compressionMode=_omit, # type: Optional[str] |
2116 | crushRoot=_omit, # type: Optional[str] | |
2117 | deviceClass=_omit, # type: Optional[str] | |
2118 | enableRBDStats=_omit, # type: Optional[bool] | |
2119 | erasureCoded=_omit, # type: Optional[ErasureCoded] | |
9f95a23c | 2120 | failureDomain=_omit, # type: Optional[str] |
20effc67 TL |
2121 | mirroring=_omit, # type: Optional[Mirroring] |
2122 | parameters=_omit, # type: Optional[Any] | |
2123 | quotas=_omit, # type: Optional[Quotas] | |
9f95a23c | 2124 | replicated=_omit, # type: Optional[Replicated] |
20effc67 | 2125 | statusCheck=_omit, # type: Optional[StatusCheck] |
9f95a23c TL |
2126 | ): |
2127 | super(MetadataPool, self).__init__( | |
20effc67 TL |
2128 | compressionMode=compressionMode, |
2129 | crushRoot=crushRoot, | |
2130 | deviceClass=deviceClass, | |
2131 | enableRBDStats=enableRBDStats, | |
2132 | erasureCoded=erasureCoded, | |
9f95a23c | 2133 | failureDomain=failureDomain, |
20effc67 TL |
2134 | mirroring=mirroring, |
2135 | parameters=parameters, | |
2136 | quotas=quotas, | |
9f95a23c | 2137 | replicated=replicated, |
20effc67 | 2138 | statusCheck=statusCheck, |
9f95a23c TL |
2139 | ) |
2140 | ||
20effc67 TL |
2141 | @property |
2142 | def compressionMode(self): | |
2143 | # type: () -> Optional[str] | |
2144 | return self._property_impl('compressionMode') | |
2145 | ||
2146 | @compressionMode.setter | |
2147 | def compressionMode(self, new_val): | |
2148 | # type: (Optional[str]) -> None | |
2149 | self._compressionMode = new_val | |
2150 | ||
2151 | @property | |
2152 | def crushRoot(self): | |
2153 | # type: () -> Optional[str] | |
2154 | return self._property_impl('crushRoot') | |
2155 | ||
2156 | @crushRoot.setter | |
2157 | def crushRoot(self, new_val): | |
2158 | # type: (Optional[str]) -> None | |
2159 | self._crushRoot = new_val | |
2160 | ||
2161 | @property | |
2162 | def deviceClass(self): | |
2163 | # type: () -> Optional[str] | |
2164 | return self._property_impl('deviceClass') | |
2165 | ||
2166 | @deviceClass.setter | |
2167 | def deviceClass(self, new_val): | |
2168 | # type: (Optional[str]) -> None | |
2169 | self._deviceClass = new_val | |
2170 | ||
2171 | @property | |
2172 | def enableRBDStats(self): | |
2173 | # type: () -> bool | |
2174 | return self._property_impl('enableRBDStats') | |
2175 | ||
2176 | @enableRBDStats.setter | |
2177 | def enableRBDStats(self, new_val): | |
2178 | # type: (Optional[bool]) -> None | |
2179 | self._enableRBDStats = new_val | |
2180 | ||
2181 | @property | |
2182 | def erasureCoded(self): | |
2183 | # type: () -> ErasureCoded | |
2184 | return self._property_impl('erasureCoded') | |
2185 | ||
2186 | @erasureCoded.setter | |
2187 | def erasureCoded(self, new_val): | |
2188 | # type: (Optional[ErasureCoded]) -> None | |
2189 | self._erasureCoded = new_val | |
2190 | ||
9f95a23c TL |
2191 | @property |
2192 | def failureDomain(self): | |
2193 | # type: () -> str | |
2194 | return self._property_impl('failureDomain') | |
2195 | ||
2196 | @failureDomain.setter | |
2197 | def failureDomain(self, new_val): | |
2198 | # type: (Optional[str]) -> None | |
2199 | self._failureDomain = new_val | |
2200 | ||
20effc67 TL |
2201 | @property |
2202 | def mirroring(self): | |
2203 | # type: () -> Mirroring | |
2204 | return self._property_impl('mirroring') | |
2205 | ||
2206 | @mirroring.setter | |
2207 | def mirroring(self, new_val): | |
2208 | # type: (Optional[Mirroring]) -> None | |
2209 | self._mirroring = new_val | |
2210 | ||
2211 | @property | |
2212 | def parameters(self): | |
2213 | # type: () -> Optional[Any] | |
2214 | return self._property_impl('parameters') | |
2215 | ||
2216 | @parameters.setter | |
2217 | def parameters(self, new_val): | |
2218 | # type: (Optional[Any]) -> None | |
2219 | self._parameters = new_val | |
2220 | ||
2221 | @property | |
2222 | def quotas(self): | |
2223 | # type: () -> Optional[Quotas] | |
2224 | return self._property_impl('quotas') | |
2225 | ||
2226 | @quotas.setter | |
2227 | def quotas(self, new_val): | |
2228 | # type: (Optional[Quotas]) -> None | |
2229 | self._quotas = new_val | |
2230 | ||
9f95a23c TL |
2231 | @property |
2232 | def replicated(self): | |
2233 | # type: () -> Replicated | |
2234 | return self._property_impl('replicated') | |
2235 | ||
2236 | @replicated.setter | |
2237 | def replicated(self, new_val): | |
2238 | # type: (Optional[Replicated]) -> None | |
2239 | self._replicated = new_val | |
2240 | ||
2241 | @property | |
20effc67 TL |
2242 | def statusCheck(self): |
2243 | # type: () -> StatusCheck | |
2244 | return self._property_impl('statusCheck') | |
9f95a23c | 2245 | |
20effc67 TL |
2246 | @statusCheck.setter |
2247 | def statusCheck(self, new_val): | |
2248 | # type: (Optional[StatusCheck]) -> None | |
2249 | self._statusCheck = new_val | |
9f95a23c TL |
2250 | |
2251 | ||
20effc67 | 2252 | class Kms(CrdObject): |
9f95a23c | 2253 | _properties = [ |
20effc67 TL |
2254 | ('connectionDetails', 'connectionDetails', object, False, True), |
2255 | ('tokenSecretName', 'tokenSecretName', str, False, False) | |
9f95a23c TL |
2256 | ] |
2257 | ||
2258 | def __init__(self, | |
20effc67 TL |
2259 | connectionDetails=_omit, # type: Optional[Any] |
2260 | tokenSecretName=_omit, # type: Optional[str] | |
9f95a23c | 2261 | ): |
20effc67 TL |
2262 | super(Kms, self).__init__( |
2263 | connectionDetails=connectionDetails, | |
2264 | tokenSecretName=tokenSecretName, | |
9f95a23c TL |
2265 | ) |
2266 | ||
2267 | @property | |
20effc67 TL |
2268 | def connectionDetails(self): |
2269 | # type: () -> Optional[Any] | |
2270 | return self._property_impl('connectionDetails') | |
9f95a23c | 2271 | |
20effc67 TL |
2272 | @connectionDetails.setter |
2273 | def connectionDetails(self, new_val): | |
2274 | # type: (Optional[Any]) -> None | |
2275 | self._connectionDetails = new_val | |
9f95a23c TL |
2276 | |
2277 | @property | |
20effc67 TL |
2278 | def tokenSecretName(self): |
2279 | # type: () -> str | |
2280 | return self._property_impl('tokenSecretName') | |
9f95a23c | 2281 | |
20effc67 TL |
2282 | @tokenSecretName.setter |
2283 | def tokenSecretName(self, new_val): | |
2284 | # type: (Optional[str]) -> None | |
2285 | self._tokenSecretName = new_val | |
2286 | ||
2287 | ||
2288 | class Security(CrdObject): | |
2289 | _properties = [ | |
2290 | ('kms', 'kms', 'Kms', False, True) | |
2291 | ] | |
2292 | ||
2293 | def __init__(self, | |
2294 | kms=_omit, # type: Optional[Kms] | |
2295 | ): | |
2296 | super(Security, self).__init__( | |
2297 | kms=kms, | |
2298 | ) | |
2299 | ||
2300 | @property | |
2301 | def kms(self): | |
2302 | # type: () -> Optional[Kms] | |
2303 | return self._property_impl('kms') | |
9f95a23c | 2304 | |
20effc67 TL |
2305 | @kms.setter |
2306 | def kms(self, new_val): | |
2307 | # type: (Optional[Kms]) -> None | |
2308 | self._kms = new_val | |
2309 | ||
2310 | ||
2311 | class Zone(CrdObject): | |
2312 | _properties = [ | |
2313 | ('name', 'name', str, True, False) | |
2314 | ] | |
2315 | ||
2316 | def __init__(self, | |
2317 | name, # type: str | |
2318 | ): | |
2319 | super(Zone, self).__init__( | |
2320 | name=name, | |
2321 | ) | |
2322 | ||
9f95a23c | 2323 | @property |
20effc67 TL |
2324 | def name(self): |
2325 | # type: () -> str | |
2326 | return self._property_impl('name') | |
9f95a23c | 2327 | |
20effc67 TL |
2328 | @name.setter |
2329 | def name(self, new_val): | |
2330 | # type: (str) -> None | |
2331 | self._name = new_val | |
9f95a23c TL |
2332 | |
2333 | ||
2334 | class Spec(CrdObject): | |
2335 | _properties = [ | |
20effc67 TL |
2336 | ('dataPool', 'dataPool', 'DataPool', False, True), |
2337 | ('gateway', 'gateway', 'Gateway', False, True), | |
2338 | ('healthCheck', 'healthCheck', 'HealthCheck', False, True), | |
2339 | ('metadataPool', 'metadataPool', 'MetadataPool', False, True), | |
2340 | ('preservePoolsOnDelete', 'preservePoolsOnDelete', bool, False, False), | |
2341 | ('security', 'security', 'Security', False, True), | |
2342 | ('zone', 'zone', 'Zone', False, True) | |
9f95a23c TL |
2343 | ] |
2344 | ||
2345 | def __init__(self, | |
20effc67 | 2346 | dataPool=_omit, # type: Optional[DataPool] |
9f95a23c | 2347 | gateway=_omit, # type: Optional[Gateway] |
20effc67 | 2348 | healthCheck=_omit, # type: Optional[HealthCheck] |
9f95a23c | 2349 | metadataPool=_omit, # type: Optional[MetadataPool] |
9f95a23c | 2350 | preservePoolsOnDelete=_omit, # type: Optional[bool] |
20effc67 TL |
2351 | security=_omit, # type: Optional[Security] |
2352 | zone=_omit, # type: Optional[Zone] | |
9f95a23c TL |
2353 | ): |
2354 | super(Spec, self).__init__( | |
20effc67 | 2355 | dataPool=dataPool, |
9f95a23c | 2356 | gateway=gateway, |
20effc67 | 2357 | healthCheck=healthCheck, |
9f95a23c | 2358 | metadataPool=metadataPool, |
9f95a23c | 2359 | preservePoolsOnDelete=preservePoolsOnDelete, |
20effc67 TL |
2360 | security=security, |
2361 | zone=zone, | |
9f95a23c TL |
2362 | ) |
2363 | ||
20effc67 TL |
2364 | @property |
2365 | def dataPool(self): | |
2366 | # type: () -> Optional[DataPool] | |
2367 | return self._property_impl('dataPool') | |
2368 | ||
2369 | @dataPool.setter | |
2370 | def dataPool(self, new_val): | |
2371 | # type: (Optional[DataPool]) -> None | |
2372 | self._dataPool = new_val | |
2373 | ||
9f95a23c TL |
2374 | @property |
2375 | def gateway(self): | |
20effc67 | 2376 | # type: () -> Optional[Gateway] |
9f95a23c TL |
2377 | return self._property_impl('gateway') |
2378 | ||
2379 | @gateway.setter | |
2380 | def gateway(self, new_val): | |
2381 | # type: (Optional[Gateway]) -> None | |
2382 | self._gateway = new_val | |
2383 | ||
20effc67 TL |
2384 | @property |
2385 | def healthCheck(self): | |
2386 | # type: () -> Optional[HealthCheck] | |
2387 | return self._property_impl('healthCheck') | |
2388 | ||
2389 | @healthCheck.setter | |
2390 | def healthCheck(self, new_val): | |
2391 | # type: (Optional[HealthCheck]) -> None | |
2392 | self._healthCheck = new_val | |
2393 | ||
9f95a23c TL |
2394 | @property |
2395 | def metadataPool(self): | |
20effc67 | 2396 | # type: () -> Optional[MetadataPool] |
9f95a23c TL |
2397 | return self._property_impl('metadataPool') |
2398 | ||
2399 | @metadataPool.setter | |
2400 | def metadataPool(self, new_val): | |
2401 | # type: (Optional[MetadataPool]) -> None | |
2402 | self._metadataPool = new_val | |
2403 | ||
9f95a23c TL |
2404 | @property |
2405 | def preservePoolsOnDelete(self): | |
2406 | # type: () -> bool | |
2407 | return self._property_impl('preservePoolsOnDelete') | |
2408 | ||
2409 | @preservePoolsOnDelete.setter | |
2410 | def preservePoolsOnDelete(self, new_val): | |
2411 | # type: (Optional[bool]) -> None | |
2412 | self._preservePoolsOnDelete = new_val | |
20effc67 TL |
2413 | |
2414 | @property | |
2415 | def security(self): | |
2416 | # type: () -> Optional[Security] | |
2417 | return self._property_impl('security') | |
2418 | ||
2419 | @security.setter | |
2420 | def security(self, new_val): | |
2421 | # type: (Optional[Security]) -> None | |
2422 | self._security = new_val | |
2423 | ||
2424 | @property | |
2425 | def zone(self): | |
2426 | # type: () -> Optional[Zone] | |
2427 | return self._property_impl('zone') | |
2428 | ||
2429 | @zone.setter | |
2430 | def zone(self, new_val): | |
2431 | # type: (Optional[Zone]) -> None | |
2432 | self._zone = new_val | |
2433 | ||
2434 | ||
2435 | class BucketStatus(CrdObject): | |
2436 | _properties = [ | |
2437 | ('details', 'details', str, False, False), | |
2438 | ('health', 'health', str, False, False), | |
2439 | ('lastChanged', 'lastChanged', str, False, False), | |
2440 | ('lastChecked', 'lastChecked', str, False, False) | |
2441 | ] | |
2442 | ||
2443 | def __init__(self, | |
2444 | details=_omit, # type: Optional[str] | |
2445 | health=_omit, # type: Optional[str] | |
2446 | lastChanged=_omit, # type: Optional[str] | |
2447 | lastChecked=_omit, # type: Optional[str] | |
2448 | ): | |
2449 | super(BucketStatus, self).__init__( | |
2450 | details=details, | |
2451 | health=health, | |
2452 | lastChanged=lastChanged, | |
2453 | lastChecked=lastChecked, | |
2454 | ) | |
2455 | ||
2456 | @property | |
2457 | def details(self): | |
2458 | # type: () -> str | |
2459 | return self._property_impl('details') | |
2460 | ||
2461 | @details.setter | |
2462 | def details(self, new_val): | |
2463 | # type: (Optional[str]) -> None | |
2464 | self._details = new_val | |
2465 | ||
2466 | @property | |
2467 | def health(self): | |
2468 | # type: () -> str | |
2469 | return self._property_impl('health') | |
2470 | ||
2471 | @health.setter | |
2472 | def health(self, new_val): | |
2473 | # type: (Optional[str]) -> None | |
2474 | self._health = new_val | |
2475 | ||
2476 | @property | |
2477 | def lastChanged(self): | |
2478 | # type: () -> str | |
2479 | return self._property_impl('lastChanged') | |
2480 | ||
2481 | @lastChanged.setter | |
2482 | def lastChanged(self, new_val): | |
2483 | # type: (Optional[str]) -> None | |
2484 | self._lastChanged = new_val | |
2485 | ||
2486 | @property | |
2487 | def lastChecked(self): | |
2488 | # type: () -> str | |
2489 | return self._property_impl('lastChecked') | |
2490 | ||
2491 | @lastChecked.setter | |
2492 | def lastChecked(self, new_val): | |
2493 | # type: (Optional[str]) -> None | |
2494 | self._lastChecked = new_val | |
2495 | ||
2496 | ||
2497 | class Status(CrdObject): | |
2498 | _properties = [ | |
2499 | ('bucketStatus', 'bucketStatus', 'BucketStatus', False, False), | |
2500 | ('info', 'info', object, False, True), | |
2501 | ('message', 'message', str, False, False), | |
2502 | ('phase', 'phase', str, False, False) | |
2503 | ] | |
2504 | ||
2505 | def __init__(self, | |
2506 | bucketStatus=_omit, # type: Optional[BucketStatus] | |
2507 | info=_omit, # type: Optional[Any] | |
2508 | message=_omit, # type: Optional[str] | |
2509 | phase=_omit, # type: Optional[str] | |
2510 | ): | |
2511 | super(Status, self).__init__( | |
2512 | bucketStatus=bucketStatus, | |
2513 | info=info, | |
2514 | message=message, | |
2515 | phase=phase, | |
2516 | ) | |
2517 | ||
2518 | @property | |
2519 | def bucketStatus(self): | |
2520 | # type: () -> BucketStatus | |
2521 | return self._property_impl('bucketStatus') | |
2522 | ||
2523 | @bucketStatus.setter | |
2524 | def bucketStatus(self, new_val): | |
2525 | # type: (Optional[BucketStatus]) -> None | |
2526 | self._bucketStatus = new_val | |
2527 | ||
2528 | @property | |
2529 | def info(self): | |
2530 | # type: () -> Optional[Any] | |
2531 | return self._property_impl('info') | |
2532 | ||
2533 | @info.setter | |
2534 | def info(self, new_val): | |
2535 | # type: (Optional[Any]) -> None | |
2536 | self._info = new_val | |
2537 | ||
2538 | @property | |
2539 | def message(self): | |
2540 | # type: () -> str | |
2541 | return self._property_impl('message') | |
2542 | ||
2543 | @message.setter | |
2544 | def message(self, new_val): | |
2545 | # type: (Optional[str]) -> None | |
2546 | self._message = new_val | |
2547 | ||
2548 | @property | |
2549 | def phase(self): | |
2550 | # type: () -> str | |
2551 | return self._property_impl('phase') | |
2552 | ||
2553 | @phase.setter | |
2554 | def phase(self, new_val): | |
2555 | # type: (Optional[str]) -> None | |
2556 | self._phase = new_val | |
9f95a23c TL |
2557 | |
2558 | ||
2559 | class CephObjectStore(CrdClass): | |
2560 | _properties = [ | |
20effc67 TL |
2561 | ('apiVersion', 'apiVersion', str, False, False), |
2562 | ('kind', 'kind', str, False, False), | |
2563 | ('metadata', 'metadata', object, False, False), | |
2564 | ('spec', 'spec', 'Spec', True, False), | |
2565 | ('status', 'status', 'Status', False, False) | |
9f95a23c TL |
2566 | ] |
2567 | ||
2568 | def __init__(self, | |
9f95a23c | 2569 | spec, # type: Spec |
20effc67 TL |
2570 | apiVersion=_omit, # type: Optional[str] |
2571 | kind=_omit, # type: Optional[str] | |
2572 | metadata=_omit, # type: Optional[Any] | |
2573 | status=_omit, # type: Optional[Status] | |
9f95a23c TL |
2574 | ): |
2575 | super(CephObjectStore, self).__init__( | |
20effc67 | 2576 | spec=spec, |
9f95a23c | 2577 | apiVersion=apiVersion, |
20effc67 | 2578 | kind=kind, |
9f95a23c | 2579 | metadata=metadata, |
9f95a23c TL |
2580 | status=status, |
2581 | ) | |
2582 | ||
2583 | @property | |
2584 | def apiVersion(self): | |
2585 | # type: () -> str | |
2586 | return self._property_impl('apiVersion') | |
2587 | ||
2588 | @apiVersion.setter | |
2589 | def apiVersion(self, new_val): | |
20effc67 | 2590 | # type: (Optional[str]) -> None |
9f95a23c TL |
2591 | self._apiVersion = new_val |
2592 | ||
20effc67 TL |
2593 | @property |
2594 | def kind(self): | |
2595 | # type: () -> str | |
2596 | return self._property_impl('kind') | |
2597 | ||
2598 | @kind.setter | |
2599 | def kind(self, new_val): | |
2600 | # type: (Optional[str]) -> None | |
2601 | self._kind = new_val | |
2602 | ||
9f95a23c TL |
2603 | @property |
2604 | def metadata(self): | |
2605 | # type: () -> Any | |
2606 | return self._property_impl('metadata') | |
2607 | ||
2608 | @metadata.setter | |
2609 | def metadata(self, new_val): | |
9f95a23c | 2610 | # type: (Optional[Any]) -> None |
20effc67 | 2611 | self._metadata = new_val |
9f95a23c TL |
2612 | |
2613 | @property | |
2614 | def spec(self): | |
2615 | # type: () -> Spec | |
2616 | return self._property_impl('spec') | |
2617 | ||
2618 | @spec.setter | |
2619 | def spec(self, new_val): | |
2620 | # type: (Spec) -> None | |
2621 | self._spec = new_val | |
20effc67 TL |
2622 | |
2623 | @property | |
2624 | def status(self): | |
2625 | # type: () -> Status | |
2626 | return self._property_impl('status') | |
2627 | ||
2628 | @status.setter | |
2629 | def status(self, new_val): | |
2630 | # type: (Optional[Status]) -> None | |
2631 | self._status = new_val |