]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephcluster.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / rook / rook-client-python / rook_client / ceph / cephcluster.py
1 """
2 This file is automatically generated.
3 Do not modify.
4 """
5
6 try:
7 from typing import Any, Optional, Union, List
8 except ImportError:
9 pass
10
11 from .._helper import _omit, CrdObject, CrdObjectList, CrdClass
12
13 class CephVersion(CrdObject):
14 _properties = [
15 ('allowUnsupported', 'allowUnsupported', bool, False, False),
16 ('image', 'image', str, False, False)
17 ]
18
19 def __init__(self,
20 allowUnsupported=_omit, # type: Optional[bool]
21 image=_omit, # type: Optional[str]
22 ):
23 super(CephVersion, self).__init__(
24 allowUnsupported=allowUnsupported,
25 image=image,
26 )
27
28 @property
29 def allowUnsupported(self):
30 # type: () -> bool
31 return self._property_impl('allowUnsupported')
32
33 @allowUnsupported.setter
34 def allowUnsupported(self, new_val):
35 # type: (Optional[bool]) -> None
36 self._allowUnsupported = new_val
37
38 @property
39 def image(self):
40 # type: () -> str
41 return self._property_impl('image')
42
43 @image.setter
44 def image(self, new_val):
45 # type: (Optional[str]) -> None
46 self._image = new_val
47
48
49 class SanitizeDisks(CrdObject):
50 _properties = [
51 ('dataSource', 'dataSource', str, False, False),
52 ('iteration', 'iteration', int, False, False),
53 ('method', 'method', str, False, False)
54 ]
55
56 def __init__(self,
57 dataSource=_omit, # type: Optional[str]
58 iteration=_omit, # type: Optional[int]
59 method=_omit, # type: Optional[str]
60 ):
61 super(SanitizeDisks, self).__init__(
62 dataSource=dataSource,
63 iteration=iteration,
64 method=method,
65 )
66
67 @property
68 def dataSource(self):
69 # type: () -> str
70 return self._property_impl('dataSource')
71
72 @dataSource.setter
73 def dataSource(self, new_val):
74 # type: (Optional[str]) -> None
75 self._dataSource = new_val
76
77 @property
78 def iteration(self):
79 # type: () -> int
80 return self._property_impl('iteration')
81
82 @iteration.setter
83 def iteration(self, new_val):
84 # type: (Optional[int]) -> None
85 self._iteration = new_val
86
87 @property
88 def method(self):
89 # type: () -> str
90 return self._property_impl('method')
91
92 @method.setter
93 def method(self, new_val):
94 # type: (Optional[str]) -> None
95 self._method = new_val
96
97
98 class CleanupPolicy(CrdObject):
99 _properties = [
100 ('allowUninstallWithVolumes', 'allowUninstallWithVolumes', bool, False, False),
101 ('confirmation', 'confirmation', str, False, True),
102 ('sanitizeDisks', 'sanitizeDisks', 'SanitizeDisks', False, True)
103 ]
104
105 def __init__(self,
106 allowUninstallWithVolumes=_omit, # type: Optional[bool]
107 confirmation=_omit, # type: Optional[str]
108 sanitizeDisks=_omit, # type: Optional[SanitizeDisks]
109 ):
110 super(CleanupPolicy, self).__init__(
111 allowUninstallWithVolumes=allowUninstallWithVolumes,
112 confirmation=confirmation,
113 sanitizeDisks=sanitizeDisks,
114 )
115
116 @property
117 def allowUninstallWithVolumes(self):
118 # type: () -> bool
119 return self._property_impl('allowUninstallWithVolumes')
120
121 @allowUninstallWithVolumes.setter
122 def allowUninstallWithVolumes(self, new_val):
123 # type: (Optional[bool]) -> None
124 self._allowUninstallWithVolumes = new_val
125
126 @property
127 def confirmation(self):
128 # type: () -> Optional[str]
129 return self._property_impl('confirmation')
130
131 @confirmation.setter
132 def confirmation(self, new_val):
133 # type: (Optional[str]) -> None
134 self._confirmation = new_val
135
136 @property
137 def sanitizeDisks(self):
138 # type: () -> Optional[SanitizeDisks]
139 return self._property_impl('sanitizeDisks')
140
141 @sanitizeDisks.setter
142 def sanitizeDisks(self, new_val):
143 # type: (Optional[SanitizeDisks]) -> None
144 self._sanitizeDisks = new_val
145
146
147 class CrashCollector(CrdObject):
148 _properties = [
149 ('daysToRetain', 'daysToRetain', int, False, False),
150 ('disable', 'disable', bool, False, False)
151 ]
152
153 def __init__(self,
154 daysToRetain=_omit, # type: Optional[int]
155 disable=_omit, # type: Optional[bool]
156 ):
157 super(CrashCollector, self).__init__(
158 daysToRetain=daysToRetain,
159 disable=disable,
160 )
161
162 @property
163 def daysToRetain(self):
164 # type: () -> int
165 return self._property_impl('daysToRetain')
166
167 @daysToRetain.setter
168 def daysToRetain(self, new_val):
169 # type: (Optional[int]) -> None
170 self._daysToRetain = new_val
171
172 @property
173 def disable(self):
174 # type: () -> bool
175 return self._property_impl('disable')
176
177 @disable.setter
178 def disable(self, new_val):
179 # type: (Optional[bool]) -> None
180 self._disable = new_val
181
182
183 class Dashboard(CrdObject):
184 _properties = [
185 ('enabled', 'enabled', bool, False, False),
186 ('port', 'port', int, False, False),
187 ('ssl', 'ssl', bool, False, False),
188 ('urlPrefix', 'urlPrefix', str, False, False)
189 ]
190
191 def __init__(self,
192 enabled=_omit, # type: Optional[bool]
193 port=_omit, # type: Optional[int]
194 ssl=_omit, # type: Optional[bool]
195 urlPrefix=_omit, # type: Optional[str]
196 ):
197 super(Dashboard, self).__init__(
198 enabled=enabled,
199 port=port,
200 ssl=ssl,
201 urlPrefix=urlPrefix,
202 )
203
204 @property
205 def enabled(self):
206 # type: () -> bool
207 return self._property_impl('enabled')
208
209 @enabled.setter
210 def enabled(self, new_val):
211 # type: (Optional[bool]) -> None
212 self._enabled = new_val
213
214 @property
215 def port(self):
216 # type: () -> int
217 return self._property_impl('port')
218
219 @port.setter
220 def port(self, new_val):
221 # type: (Optional[int]) -> None
222 self._port = new_val
223
224 @property
225 def ssl(self):
226 # type: () -> bool
227 return self._property_impl('ssl')
228
229 @ssl.setter
230 def ssl(self, new_val):
231 # type: (Optional[bool]) -> None
232 self._ssl = new_val
233
234 @property
235 def urlPrefix(self):
236 # type: () -> str
237 return self._property_impl('urlPrefix')
238
239 @urlPrefix.setter
240 def urlPrefix(self, new_val):
241 # type: (Optional[str]) -> None
242 self._urlPrefix = new_val
243
244
245 class DisruptionManagement(CrdObject):
246 _properties = [
247 ('machineDisruptionBudgetNamespace', 'machineDisruptionBudgetNamespace', str, False, False),
248 ('manageMachineDisruptionBudgets', 'manageMachineDisruptionBudgets', bool, False, False),
249 ('managePodBudgets', 'managePodBudgets', bool, False, False),
250 ('osdMaintenanceTimeout', 'osdMaintenanceTimeout', int, False, False),
251 ('pgHealthCheckTimeout', 'pgHealthCheckTimeout', int, False, False)
252 ]
253
254 def __init__(self,
255 machineDisruptionBudgetNamespace=_omit, # type: Optional[str]
256 manageMachineDisruptionBudgets=_omit, # type: Optional[bool]
257 managePodBudgets=_omit, # type: Optional[bool]
258 osdMaintenanceTimeout=_omit, # type: Optional[int]
259 pgHealthCheckTimeout=_omit, # type: Optional[int]
260 ):
261 super(DisruptionManagement, self).__init__(
262 machineDisruptionBudgetNamespace=machineDisruptionBudgetNamespace,
263 manageMachineDisruptionBudgets=manageMachineDisruptionBudgets,
264 managePodBudgets=managePodBudgets,
265 osdMaintenanceTimeout=osdMaintenanceTimeout,
266 pgHealthCheckTimeout=pgHealthCheckTimeout,
267 )
268
269 @property
270 def machineDisruptionBudgetNamespace(self):
271 # type: () -> str
272 return self._property_impl('machineDisruptionBudgetNamespace')
273
274 @machineDisruptionBudgetNamespace.setter
275 def machineDisruptionBudgetNamespace(self, new_val):
276 # type: (Optional[str]) -> None
277 self._machineDisruptionBudgetNamespace = new_val
278
279 @property
280 def manageMachineDisruptionBudgets(self):
281 # type: () -> bool
282 return self._property_impl('manageMachineDisruptionBudgets')
283
284 @manageMachineDisruptionBudgets.setter
285 def manageMachineDisruptionBudgets(self, new_val):
286 # type: (Optional[bool]) -> None
287 self._manageMachineDisruptionBudgets = new_val
288
289 @property
290 def managePodBudgets(self):
291 # type: () -> bool
292 return self._property_impl('managePodBudgets')
293
294 @managePodBudgets.setter
295 def managePodBudgets(self, new_val):
296 # type: (Optional[bool]) -> None
297 self._managePodBudgets = new_val
298
299 @property
300 def osdMaintenanceTimeout(self):
301 # type: () -> int
302 return self._property_impl('osdMaintenanceTimeout')
303
304 @osdMaintenanceTimeout.setter
305 def osdMaintenanceTimeout(self, new_val):
306 # type: (Optional[int]) -> None
307 self._osdMaintenanceTimeout = new_val
308
309 @property
310 def pgHealthCheckTimeout(self):
311 # type: () -> int
312 return self._property_impl('pgHealthCheckTimeout')
313
314 @pgHealthCheckTimeout.setter
315 def pgHealthCheckTimeout(self, new_val):
316 # type: (Optional[int]) -> None
317 self._pgHealthCheckTimeout = new_val
318
319
320 class External(CrdObject):
321 _properties = [
322 ('enable', 'enable', bool, False, False)
323 ]
324
325 def __init__(self,
326 enable=_omit, # type: Optional[bool]
327 ):
328 super(External, self).__init__(
329 enable=enable,
330 )
331
332 @property
333 def enable(self):
334 # type: () -> bool
335 return self._property_impl('enable')
336
337 @enable.setter
338 def enable(self, new_val):
339 # type: (Optional[bool]) -> None
340 self._enable = new_val
341
342
343 class Mon(CrdObject):
344 _properties = [
345 ('allowMultiplePerNode', 'allowMultiplePerNode', bool, False, False),
346 ('count', 'count', int, False, False),
347 ('stretchCluster', 'stretchCluster', 'StretchCluster', False, False),
348 ('volumeClaimTemplate', 'volumeClaimTemplate', 'VolumeClaimTemplate', False, False),
349 ('disabled', 'disabled', bool, False, False),
350 ('interval', 'interval', str, False, False),
351 ('timeout', 'timeout', str, False, False)
352 ]
353
354 def __init__(self,
355 allowMultiplePerNode=_omit, # type: Optional[bool]
356 count=_omit, # type: Optional[int]
357 stretchCluster=_omit, # type: Optional[StretchCluster]
358 volumeClaimTemplate=_omit, # type: Optional[VolumeClaimTemplate]
359 disabled=_omit, # type: Optional[bool]
360 interval=_omit, # type: Optional[str]
361 timeout=_omit, # type: Optional[str]
362 ):
363 super(Mon, self).__init__(
364 allowMultiplePerNode=allowMultiplePerNode,
365 count=count,
366 stretchCluster=stretchCluster,
367 volumeClaimTemplate=volumeClaimTemplate,
368 disabled=disabled,
369 interval=interval,
370 timeout=timeout,
371 )
372
373 @property
374 def allowMultiplePerNode(self):
375 # type: () -> bool
376 return self._property_impl('allowMultiplePerNode')
377
378 @allowMultiplePerNode.setter
379 def allowMultiplePerNode(self, new_val):
380 # type: (Optional[bool]) -> None
381 self._allowMultiplePerNode = new_val
382
383 @property
384 def count(self):
385 # type: () -> int
386 return self._property_impl('count')
387
388 @count.setter
389 def count(self, new_val):
390 # type: (Optional[int]) -> None
391 self._count = new_val
392
393 @property
394 def stretchCluster(self):
395 # type: () -> StretchCluster
396 return self._property_impl('stretchCluster')
397
398 @stretchCluster.setter
399 def stretchCluster(self, new_val):
400 # type: (Optional[StretchCluster]) -> None
401 self._stretchCluster = new_val
402
403 @property
404 def volumeClaimTemplate(self):
405 # type: () -> VolumeClaimTemplate
406 return self._property_impl('volumeClaimTemplate')
407
408 @volumeClaimTemplate.setter
409 def volumeClaimTemplate(self, new_val):
410 # type: (Optional[VolumeClaimTemplate]) -> None
411 self._volumeClaimTemplate = new_val
412
413 @property
414 def disabled(self):
415 # type: () -> bool
416 return self._property_impl('disabled')
417
418 @disabled.setter
419 def disabled(self, new_val):
420 # type: (Optional[bool]) -> None
421 self._disabled = new_val
422
423 @property
424 def interval(self):
425 # type: () -> str
426 return self._property_impl('interval')
427
428 @interval.setter
429 def interval(self, new_val):
430 # type: (Optional[str]) -> None
431 self._interval = new_val
432
433 @property
434 def timeout(self):
435 # type: () -> str
436 return self._property_impl('timeout')
437
438 @timeout.setter
439 def timeout(self, new_val):
440 # type: (Optional[str]) -> None
441 self._timeout = new_val
442
443
444 class Osd(CrdObject):
445 _properties = [
446 ('disabled', 'disabled', bool, False, False),
447 ('interval', 'interval', str, False, False),
448 ('timeout', 'timeout', str, False, False)
449 ]
450
451 def __init__(self,
452 disabled=_omit, # type: Optional[bool]
453 interval=_omit, # type: Optional[str]
454 timeout=_omit, # type: Optional[str]
455 ):
456 super(Osd, self).__init__(
457 disabled=disabled,
458 interval=interval,
459 timeout=timeout,
460 )
461
462 @property
463 def disabled(self):
464 # type: () -> bool
465 return self._property_impl('disabled')
466
467 @disabled.setter
468 def disabled(self, new_val):
469 # type: (Optional[bool]) -> None
470 self._disabled = new_val
471
472 @property
473 def interval(self):
474 # type: () -> str
475 return self._property_impl('interval')
476
477 @interval.setter
478 def interval(self, new_val):
479 # type: (Optional[str]) -> None
480 self._interval = new_val
481
482 @property
483 def timeout(self):
484 # type: () -> str
485 return self._property_impl('timeout')
486
487 @timeout.setter
488 def timeout(self, new_val):
489 # type: (Optional[str]) -> None
490 self._timeout = new_val
491
492
493 class Status(CrdObject):
494 _properties = [
495 ('ceph', 'ceph', 'Ceph', False, False),
496 ('conditions', 'conditions', 'ConditionsList', False, False),
497 ('message', 'message', str, False, False),
498 ('phase', 'phase', str, False, False),
499 ('state', 'state', str, False, False),
500 ('storage', 'storage', 'Storage', False, False),
501 ('version', 'version', 'Version', False, False),
502 ('accessModes', 'accessModes', 'AccessModesList', False, False),
503 ('capacity', 'capacity', object, False, False),
504 ('disabled', 'disabled', bool, False, False),
505 ('interval', 'interval', str, False, False),
506 ('timeout', 'timeout', str, False, False)
507 ]
508
509 def __init__(self,
510 ceph=_omit, # type: Optional[Ceph]
511 conditions=_omit, # type: Optional[Union[List[ConditionsItem], CrdObjectList]]
512 message=_omit, # type: Optional[str]
513 phase=_omit, # type: Optional[str]
514 state=_omit, # type: Optional[str]
515 storage=_omit, # type: Optional[Storage]
516 version=_omit, # type: Optional[Version]
517 accessModes=_omit, # type: Optional[Union[List[str], CrdObjectList]]
518 capacity=_omit, # type: Optional[Any]
519 disabled=_omit, # type: Optional[bool]
520 interval=_omit, # type: Optional[str]
521 timeout=_omit, # type: Optional[str]
522 ):
523 super(Status, self).__init__(
524 ceph=ceph,
525 conditions=conditions,
526 message=message,
527 phase=phase,
528 state=state,
529 storage=storage,
530 version=version,
531 accessModes=accessModes,
532 capacity=capacity,
533 disabled=disabled,
534 interval=interval,
535 timeout=timeout,
536 )
537
538 @property
539 def ceph(self):
540 # type: () -> Ceph
541 return self._property_impl('ceph')
542
543 @ceph.setter
544 def ceph(self, new_val):
545 # type: (Optional[Ceph]) -> None
546 self._ceph = new_val
547
548 @property
549 def conditions(self):
550 # type: () -> Union[List[ConditionsItem], CrdObjectList]
551 return self._property_impl('conditions')
552
553 @conditions.setter
554 def conditions(self, new_val):
555 # type: (Optional[Union[List[ConditionsItem], CrdObjectList]]) -> None
556 self._conditions = new_val
557
558 @property
559 def message(self):
560 # type: () -> str
561 return self._property_impl('message')
562
563 @message.setter
564 def message(self, new_val):
565 # type: (Optional[str]) -> None
566 self._message = new_val
567
568 @property
569 def phase(self):
570 # type: () -> str
571 return self._property_impl('phase')
572
573 @phase.setter
574 def phase(self, new_val):
575 # type: (Optional[str]) -> None
576 self._phase = new_val
577
578 @property
579 def state(self):
580 # type: () -> str
581 return self._property_impl('state')
582
583 @state.setter
584 def state(self, new_val):
585 # type: (Optional[str]) -> None
586 self._state = new_val
587
588 @property
589 def storage(self):
590 # type: () -> Storage
591 return self._property_impl('storage')
592
593 @storage.setter
594 def storage(self, new_val):
595 # type: (Optional[Storage]) -> None
596 self._storage = new_val
597
598 @property
599 def version(self):
600 # type: () -> Version
601 return self._property_impl('version')
602
603 @version.setter
604 def version(self, new_val):
605 # type: (Optional[Version]) -> None
606 self._version = new_val
607
608 @property
609 def accessModes(self):
610 # type: () -> Union[List[str], CrdObjectList]
611 return self._property_impl('accessModes')
612
613 @accessModes.setter
614 def accessModes(self, new_val):
615 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
616 self._accessModes = new_val
617
618 @property
619 def capacity(self):
620 # type: () -> Any
621 return self._property_impl('capacity')
622
623 @capacity.setter
624 def capacity(self, new_val):
625 # type: (Optional[Any]) -> None
626 self._capacity = new_val
627
628 @property
629 def disabled(self):
630 # type: () -> bool
631 return self._property_impl('disabled')
632
633 @disabled.setter
634 def disabled(self, new_val):
635 # type: (Optional[bool]) -> None
636 self._disabled = new_val
637
638 @property
639 def interval(self):
640 # type: () -> str
641 return self._property_impl('interval')
642
643 @interval.setter
644 def interval(self, new_val):
645 # type: (Optional[str]) -> None
646 self._interval = new_val
647
648 @property
649 def timeout(self):
650 # type: () -> str
651 return self._property_impl('timeout')
652
653 @timeout.setter
654 def timeout(self, new_val):
655 # type: (Optional[str]) -> None
656 self._timeout = new_val
657
658
659 class DaemonHealth(CrdObject):
660 _properties = [
661 ('mon', 'mon', 'Mon', False, True),
662 ('osd', 'osd', 'Osd', False, True),
663 ('status', 'status', 'Status', False, True)
664 ]
665
666 def __init__(self,
667 mon=_omit, # type: Optional[Mon]
668 osd=_omit, # type: Optional[Osd]
669 status=_omit, # type: Optional[Status]
670 ):
671 super(DaemonHealth, self).__init__(
672 mon=mon,
673 osd=osd,
674 status=status,
675 )
676
677 @property
678 def mon(self):
679 # type: () -> Optional[Mon]
680 return self._property_impl('mon')
681
682 @mon.setter
683 def mon(self, new_val):
684 # type: (Optional[Mon]) -> None
685 self._mon = new_val
686
687 @property
688 def osd(self):
689 # type: () -> Optional[Osd]
690 return self._property_impl('osd')
691
692 @osd.setter
693 def osd(self, new_val):
694 # type: (Optional[Osd]) -> None
695 self._osd = new_val
696
697 @property
698 def status(self):
699 # type: () -> Optional[Status]
700 return self._property_impl('status')
701
702 @status.setter
703 def status(self, new_val):
704 # type: (Optional[Status]) -> None
705 self._status = new_val
706
707
708 class HealthCheck(CrdObject):
709 _properties = [
710 ('daemonHealth', 'daemonHealth', 'DaemonHealth', False, True),
711 ('livenessProbe', 'livenessProbe', object, False, False)
712 ]
713
714 def __init__(self,
715 daemonHealth=_omit, # type: Optional[DaemonHealth]
716 livenessProbe=_omit, # type: Optional[Any]
717 ):
718 super(HealthCheck, self).__init__(
719 daemonHealth=daemonHealth,
720 livenessProbe=livenessProbe,
721 )
722
723 @property
724 def daemonHealth(self):
725 # type: () -> Optional[DaemonHealth]
726 return self._property_impl('daemonHealth')
727
728 @daemonHealth.setter
729 def daemonHealth(self, new_val):
730 # type: (Optional[DaemonHealth]) -> None
731 self._daemonHealth = new_val
732
733 @property
734 def livenessProbe(self):
735 # type: () -> Any
736 return self._property_impl('livenessProbe')
737
738 @livenessProbe.setter
739 def livenessProbe(self, new_val):
740 # type: (Optional[Any]) -> None
741 self._livenessProbe = new_val
742
743
744 class LogCollector(CrdObject):
745 _properties = [
746 ('enabled', 'enabled', bool, False, False),
747 ('periodicity', 'periodicity', str, False, False)
748 ]
749
750 def __init__(self,
751 enabled=_omit, # type: Optional[bool]
752 periodicity=_omit, # type: Optional[str]
753 ):
754 super(LogCollector, self).__init__(
755 enabled=enabled,
756 periodicity=periodicity,
757 )
758
759 @property
760 def enabled(self):
761 # type: () -> bool
762 return self._property_impl('enabled')
763
764 @enabled.setter
765 def enabled(self, new_val):
766 # type: (Optional[bool]) -> None
767 self._enabled = new_val
768
769 @property
770 def periodicity(self):
771 # type: () -> str
772 return self._property_impl('periodicity')
773
774 @periodicity.setter
775 def periodicity(self, new_val):
776 # type: (Optional[str]) -> None
777 self._periodicity = new_val
778
779
780 class ModulesItem(CrdObject):
781 _properties = [
782 ('enabled', 'enabled', bool, False, False),
783 ('name', 'name', str, False, False)
784 ]
785
786 def __init__(self,
787 enabled=_omit, # type: Optional[bool]
788 name=_omit, # type: Optional[str]
789 ):
790 super(ModulesItem, self).__init__(
791 enabled=enabled,
792 name=name,
793 )
794
795 @property
796 def enabled(self):
797 # type: () -> bool
798 return self._property_impl('enabled')
799
800 @enabled.setter
801 def enabled(self, new_val):
802 # type: (Optional[bool]) -> None
803 self._enabled = new_val
804
805 @property
806 def name(self):
807 # type: () -> str
808 return self._property_impl('name')
809
810 @name.setter
811 def name(self, new_val):
812 # type: (Optional[str]) -> None
813 self._name = new_val
814
815
816 class ModulesList(CrdObjectList):
817 _items_type = ModulesItem
818
819
820 class Mgr(CrdObject):
821 _properties = [
822 ('allowMultiplePerNode', 'allowMultiplePerNode', bool, False, False),
823 ('count', 'count', int, False, False),
824 ('modules', 'modules', 'ModulesList', False, True)
825 ]
826
827 def __init__(self,
828 allowMultiplePerNode=_omit, # type: Optional[bool]
829 count=_omit, # type: Optional[int]
830 modules=_omit, # type: Optional[Union[List[ModulesItem], CrdObjectList]]
831 ):
832 super(Mgr, self).__init__(
833 allowMultiplePerNode=allowMultiplePerNode,
834 count=count,
835 modules=modules,
836 )
837
838 @property
839 def allowMultiplePerNode(self):
840 # type: () -> bool
841 return self._property_impl('allowMultiplePerNode')
842
843 @allowMultiplePerNode.setter
844 def allowMultiplePerNode(self, new_val):
845 # type: (Optional[bool]) -> None
846 self._allowMultiplePerNode = new_val
847
848 @property
849 def count(self):
850 # type: () -> int
851 return self._property_impl('count')
852
853 @count.setter
854 def count(self, new_val):
855 # type: (Optional[int]) -> None
856 self._count = new_val
857
858 @property
859 def modules(self):
860 # type: () -> Optional[Union[List[ModulesItem], CrdObjectList]]
861 return self._property_impl('modules')
862
863 @modules.setter
864 def modules(self, new_val):
865 # type: (Optional[Union[List[ModulesItem], CrdObjectList]]) -> None
866 self._modules = new_val
867
868
869 class FinalizersList(CrdObjectList):
870 _items_type = str
871
872
873 class Metadata(CrdObject):
874 _properties = [
875 ('annotations', 'annotations', object, False, False),
876 ('finalizers', 'finalizers', 'FinalizersList', False, False),
877 ('labels', 'labels', object, False, False),
878 ('name', 'name', str, False, False),
879 ('namespace', 'namespace', str, False, False)
880 ]
881
882 def __init__(self,
883 annotations=_omit, # type: Optional[Any]
884 finalizers=_omit, # type: Optional[Union[List[str], CrdObjectList]]
885 labels=_omit, # type: Optional[Any]
886 name=_omit, # type: Optional[str]
887 namespace=_omit, # type: Optional[str]
888 ):
889 super(Metadata, self).__init__(
890 annotations=annotations,
891 finalizers=finalizers,
892 labels=labels,
893 name=name,
894 namespace=namespace,
895 )
896
897 @property
898 def annotations(self):
899 # type: () -> Any
900 return self._property_impl('annotations')
901
902 @annotations.setter
903 def annotations(self, new_val):
904 # type: (Optional[Any]) -> None
905 self._annotations = new_val
906
907 @property
908 def finalizers(self):
909 # type: () -> Union[List[str], CrdObjectList]
910 return self._property_impl('finalizers')
911
912 @finalizers.setter
913 def finalizers(self, new_val):
914 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
915 self._finalizers = new_val
916
917 @property
918 def labels(self):
919 # type: () -> Any
920 return self._property_impl('labels')
921
922 @labels.setter
923 def labels(self, new_val):
924 # type: (Optional[Any]) -> None
925 self._labels = new_val
926
927 @property
928 def name(self):
929 # type: () -> str
930 return self._property_impl('name')
931
932 @name.setter
933 def name(self, new_val):
934 # type: (Optional[str]) -> None
935 self._name = new_val
936
937 @property
938 def namespace(self):
939 # type: () -> str
940 return self._property_impl('namespace')
941
942 @namespace.setter
943 def namespace(self, new_val):
944 # type: (Optional[str]) -> None
945 self._namespace = new_val
946
947
948 class AccessModesList(CrdObjectList):
949 _items_type = str
950
951
952 class DataSource(CrdObject):
953 _properties = [
954 ('apiGroup', 'apiGroup', str, False, False),
955 ('kind', 'kind', str, True, False),
956 ('name', 'name', str, True, False)
957 ]
958
959 def __init__(self,
960 kind, # type: str
961 name, # type: str
962 apiGroup=_omit, # type: Optional[str]
963 ):
964 super(DataSource, self).__init__(
965 kind=kind,
966 name=name,
967 apiGroup=apiGroup,
968 )
969
970 @property
971 def apiGroup(self):
972 # type: () -> str
973 return self._property_impl('apiGroup')
974
975 @apiGroup.setter
976 def apiGroup(self, new_val):
977 # type: (Optional[str]) -> None
978 self._apiGroup = new_val
979
980 @property
981 def kind(self):
982 # type: () -> str
983 return self._property_impl('kind')
984
985 @kind.setter
986 def kind(self, new_val):
987 # type: (str) -> None
988 self._kind = new_val
989
990 @property
991 def name(self):
992 # type: () -> str
993 return self._property_impl('name')
994
995 @name.setter
996 def name(self, new_val):
997 # type: (str) -> None
998 self._name = new_val
999
1000
1001 class Resources(CrdObject):
1002 _properties = [
1003 ('limits', 'limits', object, False, False),
1004 ('requests', 'requests', object, False, False)
1005 ]
1006
1007 def __init__(self,
1008 limits=_omit, # type: Optional[Any]
1009 requests=_omit, # type: Optional[Any]
1010 ):
1011 super(Resources, self).__init__(
1012 limits=limits,
1013 requests=requests,
1014 )
1015
1016 @property
1017 def limits(self):
1018 # type: () -> Any
1019 return self._property_impl('limits')
1020
1021 @limits.setter
1022 def limits(self, new_val):
1023 # type: (Optional[Any]) -> None
1024 self._limits = new_val
1025
1026 @property
1027 def requests(self):
1028 # type: () -> Any
1029 return self._property_impl('requests')
1030
1031 @requests.setter
1032 def requests(self, new_val):
1033 # type: (Optional[Any]) -> None
1034 self._requests = new_val
1035
1036
1037 class ValuesList(CrdObjectList):
1038 _items_type = str
1039
1040
1041 class MatchExpressionsItem(CrdObject):
1042 _properties = [
1043 ('key', 'key', str, True, False),
1044 ('operator', 'operator', str, True, False),
1045 ('values', 'values', 'ValuesList', False, False)
1046 ]
1047
1048 def __init__(self,
1049 key, # type: str
1050 operator, # type: str
1051 values=_omit, # type: Optional[Union[List[str], CrdObjectList]]
1052 ):
1053 super(MatchExpressionsItem, self).__init__(
1054 key=key,
1055 operator=operator,
1056 values=values,
1057 )
1058
1059 @property
1060 def key(self):
1061 # type: () -> str
1062 return self._property_impl('key')
1063
1064 @key.setter
1065 def key(self, new_val):
1066 # type: (str) -> None
1067 self._key = new_val
1068
1069 @property
1070 def operator(self):
1071 # type: () -> str
1072 return self._property_impl('operator')
1073
1074 @operator.setter
1075 def operator(self, new_val):
1076 # type: (str) -> None
1077 self._operator = new_val
1078
1079 @property
1080 def values(self):
1081 # type: () -> Union[List[str], CrdObjectList]
1082 return self._property_impl('values')
1083
1084 @values.setter
1085 def values(self, new_val):
1086 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1087 self._values = new_val
1088
1089
1090 class MatchExpressionsList(CrdObjectList):
1091 _items_type = MatchExpressionsItem
1092
1093
1094 class Selector(CrdObject):
1095 _properties = [
1096 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
1097 ('matchLabels', 'matchLabels', object, False, False)
1098 ]
1099
1100 def __init__(self,
1101 matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
1102 matchLabels=_omit, # type: Optional[Any]
1103 ):
1104 super(Selector, self).__init__(
1105 matchExpressions=matchExpressions,
1106 matchLabels=matchLabels,
1107 )
1108
1109 @property
1110 def matchExpressions(self):
1111 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
1112 return self._property_impl('matchExpressions')
1113
1114 @matchExpressions.setter
1115 def matchExpressions(self, new_val):
1116 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
1117 self._matchExpressions = new_val
1118
1119 @property
1120 def matchLabels(self):
1121 # type: () -> Any
1122 return self._property_impl('matchLabels')
1123
1124 @matchLabels.setter
1125 def matchLabels(self, new_val):
1126 # type: (Optional[Any]) -> None
1127 self._matchLabels = new_val
1128
1129
1130 class Spec(CrdObject):
1131 _properties = [
1132 ('annotations', 'annotations', object, False, True),
1133 ('cephVersion', 'cephVersion', 'CephVersion', False, True),
1134 ('cleanupPolicy', 'cleanupPolicy', 'CleanupPolicy', False, True),
1135 ('continueUpgradeAfterChecksEvenIfNotHealthy', 'continueUpgradeAfterChecksEvenIfNotHealthy', bool, False, False),
1136 ('crashCollector', 'crashCollector', 'CrashCollector', False, True),
1137 ('dashboard', 'dashboard', 'Dashboard', False, True),
1138 ('dataDirHostPath', 'dataDirHostPath', str, False, False),
1139 ('disruptionManagement', 'disruptionManagement', 'DisruptionManagement', False, True),
1140 ('external', 'external', 'External', False, True),
1141 ('healthCheck', 'healthCheck', 'HealthCheck', False, True),
1142 ('labels', 'labels', object, False, True),
1143 ('logCollector', 'logCollector', 'LogCollector', False, True),
1144 ('mgr', 'mgr', 'Mgr', False, True),
1145 ('mon', 'mon', 'Mon', False, True),
1146 ('monitoring', 'monitoring', 'Monitoring', False, True),
1147 ('network', 'network', 'Network', False, True),
1148 ('placement', 'placement', object, False, True),
1149 ('priorityClassNames', 'priorityClassNames', object, False, True),
1150 ('removeOSDsIfOutAndSafeToRemove', 'removeOSDsIfOutAndSafeToRemove', bool, False, False),
1151 ('resources', 'resources', object, False, True),
1152 ('security', 'security', 'Security', False, True),
1153 ('skipUpgradeChecks', 'skipUpgradeChecks', bool, False, False),
1154 ('storage', 'storage', 'Storage', False, True),
1155 ('waitTimeoutForHealthyOSDInMinutes', 'waitTimeoutForHealthyOSDInMinutes', int, False, False),
1156 ('accessModes', 'accessModes', 'AccessModesList', False, False),
1157 ('dataSource', 'dataSource', 'DataSource', False, False),
1158 ('selector', 'selector', 'Selector', False, False),
1159 ('storageClassName', 'storageClassName', str, False, False),
1160 ('volumeMode', 'volumeMode', str, False, False),
1161 ('volumeName', 'volumeName', str, False, False)
1162 ]
1163
1164 def __init__(self,
1165 annotations=_omit, # type: Optional[Any]
1166 cephVersion=_omit, # type: Optional[CephVersion]
1167 cleanupPolicy=_omit, # type: Optional[CleanupPolicy]
1168 continueUpgradeAfterChecksEvenIfNotHealthy=_omit, # type: Optional[bool]
1169 crashCollector=_omit, # type: Optional[CrashCollector]
1170 dashboard=_omit, # type: Optional[Dashboard]
1171 dataDirHostPath=_omit, # type: Optional[str]
1172 disruptionManagement=_omit, # type: Optional[DisruptionManagement]
1173 external=_omit, # type: Optional[External]
1174 healthCheck=_omit, # type: Optional[HealthCheck]
1175 labels=_omit, # type: Optional[Any]
1176 logCollector=_omit, # type: Optional[LogCollector]
1177 mgr=_omit, # type: Optional[Mgr]
1178 mon=_omit, # type: Optional[Mon]
1179 monitoring=_omit, # type: Optional[Monitoring]
1180 network=_omit, # type: Optional[Network]
1181 placement=_omit, # type: Optional[Any]
1182 priorityClassNames=_omit, # type: Optional[Any]
1183 removeOSDsIfOutAndSafeToRemove=_omit, # type: Optional[bool]
1184 resources=_omit, # type: Optional[Any]
1185 security=_omit, # type: Optional[Security]
1186 skipUpgradeChecks=_omit, # type: Optional[bool]
1187 storage=_omit, # type: Optional[Storage]
1188 waitTimeoutForHealthyOSDInMinutes=_omit, # type: Optional[int]
1189 accessModes=_omit, # type: Optional[Union[List[str], CrdObjectList]]
1190 dataSource=_omit, # type: Optional[DataSource]
1191 selector=_omit, # type: Optional[Selector]
1192 storageClassName=_omit, # type: Optional[str]
1193 volumeMode=_omit, # type: Optional[str]
1194 volumeName=_omit, # type: Optional[str]
1195 ):
1196 super(Spec, self).__init__(
1197 annotations=annotations,
1198 cephVersion=cephVersion,
1199 cleanupPolicy=cleanupPolicy,
1200 continueUpgradeAfterChecksEvenIfNotHealthy=continueUpgradeAfterChecksEvenIfNotHealthy,
1201 crashCollector=crashCollector,
1202 dashboard=dashboard,
1203 dataDirHostPath=dataDirHostPath,
1204 disruptionManagement=disruptionManagement,
1205 external=external,
1206 healthCheck=healthCheck,
1207 labels=labels,
1208 logCollector=logCollector,
1209 mgr=mgr,
1210 mon=mon,
1211 monitoring=monitoring,
1212 network=network,
1213 placement=placement,
1214 priorityClassNames=priorityClassNames,
1215 removeOSDsIfOutAndSafeToRemove=removeOSDsIfOutAndSafeToRemove,
1216 resources=resources,
1217 security=security,
1218 skipUpgradeChecks=skipUpgradeChecks,
1219 storage=storage,
1220 waitTimeoutForHealthyOSDInMinutes=waitTimeoutForHealthyOSDInMinutes,
1221 accessModes=accessModes,
1222 dataSource=dataSource,
1223 selector=selector,
1224 storageClassName=storageClassName,
1225 volumeMode=volumeMode,
1226 volumeName=volumeName,
1227 )
1228
1229 @property
1230 def annotations(self):
1231 # type: () -> Optional[Any]
1232 return self._property_impl('annotations')
1233
1234 @annotations.setter
1235 def annotations(self, new_val):
1236 # type: (Optional[Any]) -> None
1237 self._annotations = new_val
1238
1239 @property
1240 def cephVersion(self):
1241 # type: () -> Optional[CephVersion]
1242 return self._property_impl('cephVersion')
1243
1244 @cephVersion.setter
1245 def cephVersion(self, new_val):
1246 # type: (Optional[CephVersion]) -> None
1247 self._cephVersion = new_val
1248
1249 @property
1250 def cleanupPolicy(self):
1251 # type: () -> Optional[CleanupPolicy]
1252 return self._property_impl('cleanupPolicy')
1253
1254 @cleanupPolicy.setter
1255 def cleanupPolicy(self, new_val):
1256 # type: (Optional[CleanupPolicy]) -> None
1257 self._cleanupPolicy = new_val
1258
1259 @property
1260 def continueUpgradeAfterChecksEvenIfNotHealthy(self):
1261 # type: () -> bool
1262 return self._property_impl('continueUpgradeAfterChecksEvenIfNotHealthy')
1263
1264 @continueUpgradeAfterChecksEvenIfNotHealthy.setter
1265 def continueUpgradeAfterChecksEvenIfNotHealthy(self, new_val):
1266 # type: (Optional[bool]) -> None
1267 self._continueUpgradeAfterChecksEvenIfNotHealthy = new_val
1268
1269 @property
1270 def crashCollector(self):
1271 # type: () -> Optional[CrashCollector]
1272 return self._property_impl('crashCollector')
1273
1274 @crashCollector.setter
1275 def crashCollector(self, new_val):
1276 # type: (Optional[CrashCollector]) -> None
1277 self._crashCollector = new_val
1278
1279 @property
1280 def dashboard(self):
1281 # type: () -> Optional[Dashboard]
1282 return self._property_impl('dashboard')
1283
1284 @dashboard.setter
1285 def dashboard(self, new_val):
1286 # type: (Optional[Dashboard]) -> None
1287 self._dashboard = new_val
1288
1289 @property
1290 def dataDirHostPath(self):
1291 # type: () -> str
1292 return self._property_impl('dataDirHostPath')
1293
1294 @dataDirHostPath.setter
1295 def dataDirHostPath(self, new_val):
1296 # type: (Optional[str]) -> None
1297 self._dataDirHostPath = new_val
1298
1299 @property
1300 def disruptionManagement(self):
1301 # type: () -> Optional[DisruptionManagement]
1302 return self._property_impl('disruptionManagement')
1303
1304 @disruptionManagement.setter
1305 def disruptionManagement(self, new_val):
1306 # type: (Optional[DisruptionManagement]) -> None
1307 self._disruptionManagement = new_val
1308
1309 @property
1310 def external(self):
1311 # type: () -> Optional[External]
1312 return self._property_impl('external')
1313
1314 @external.setter
1315 def external(self, new_val):
1316 # type: (Optional[External]) -> None
1317 self._external = new_val
1318
1319 @property
1320 def healthCheck(self):
1321 # type: () -> Optional[HealthCheck]
1322 return self._property_impl('healthCheck')
1323
1324 @healthCheck.setter
1325 def healthCheck(self, new_val):
1326 # type: (Optional[HealthCheck]) -> None
1327 self._healthCheck = new_val
1328
1329 @property
1330 def labels(self):
1331 # type: () -> Optional[Any]
1332 return self._property_impl('labels')
1333
1334 @labels.setter
1335 def labels(self, new_val):
1336 # type: (Optional[Any]) -> None
1337 self._labels = new_val
1338
1339 @property
1340 def logCollector(self):
1341 # type: () -> Optional[LogCollector]
1342 return self._property_impl('logCollector')
1343
1344 @logCollector.setter
1345 def logCollector(self, new_val):
1346 # type: (Optional[LogCollector]) -> None
1347 self._logCollector = new_val
1348
1349 @property
1350 def mgr(self):
1351 # type: () -> Optional[Mgr]
1352 return self._property_impl('mgr')
1353
1354 @mgr.setter
1355 def mgr(self, new_val):
1356 # type: (Optional[Mgr]) -> None
1357 self._mgr = new_val
1358
1359 @property
1360 def mon(self):
1361 # type: () -> Optional[Mon]
1362 return self._property_impl('mon')
1363
1364 @mon.setter
1365 def mon(self, new_val):
1366 # type: (Optional[Mon]) -> None
1367 self._mon = new_val
1368
1369 @property
1370 def monitoring(self):
1371 # type: () -> Optional[Monitoring]
1372 return self._property_impl('monitoring')
1373
1374 @monitoring.setter
1375 def monitoring(self, new_val):
1376 # type: (Optional[Monitoring]) -> None
1377 self._monitoring = new_val
1378
1379 @property
1380 def network(self):
1381 # type: () -> Optional[Network]
1382 return self._property_impl('network')
1383
1384 @network.setter
1385 def network(self, new_val):
1386 # type: (Optional[Network]) -> None
1387 self._network = new_val
1388
1389 @property
1390 def placement(self):
1391 # type: () -> Optional[Any]
1392 return self._property_impl('placement')
1393
1394 @placement.setter
1395 def placement(self, new_val):
1396 # type: (Optional[Any]) -> None
1397 self._placement = new_val
1398
1399 @property
1400 def priorityClassNames(self):
1401 # type: () -> Optional[Any]
1402 return self._property_impl('priorityClassNames')
1403
1404 @priorityClassNames.setter
1405 def priorityClassNames(self, new_val):
1406 # type: (Optional[Any]) -> None
1407 self._priorityClassNames = new_val
1408
1409 @property
1410 def removeOSDsIfOutAndSafeToRemove(self):
1411 # type: () -> bool
1412 return self._property_impl('removeOSDsIfOutAndSafeToRemove')
1413
1414 @removeOSDsIfOutAndSafeToRemove.setter
1415 def removeOSDsIfOutAndSafeToRemove(self, new_val):
1416 # type: (Optional[bool]) -> None
1417 self._removeOSDsIfOutAndSafeToRemove = new_val
1418
1419 @property
1420 def resources(self):
1421 # type: () -> Optional[Any]
1422 return self._property_impl('resources')
1423
1424 @resources.setter
1425 def resources(self, new_val):
1426 # type: (Optional[Any]) -> None
1427 self._resources = new_val
1428
1429 @property
1430 def security(self):
1431 # type: () -> Optional[Security]
1432 return self._property_impl('security')
1433
1434 @security.setter
1435 def security(self, new_val):
1436 # type: (Optional[Security]) -> None
1437 self._security = new_val
1438
1439 @property
1440 def skipUpgradeChecks(self):
1441 # type: () -> bool
1442 return self._property_impl('skipUpgradeChecks')
1443
1444 @skipUpgradeChecks.setter
1445 def skipUpgradeChecks(self, new_val):
1446 # type: (Optional[bool]) -> None
1447 self._skipUpgradeChecks = new_val
1448
1449 @property
1450 def storage(self):
1451 # type: () -> Optional[Storage]
1452 return self._property_impl('storage')
1453
1454 @storage.setter
1455 def storage(self, new_val):
1456 # type: (Optional[Storage]) -> None
1457 self._storage = new_val
1458
1459 @property
1460 def waitTimeoutForHealthyOSDInMinutes(self):
1461 # type: () -> int
1462 return self._property_impl('waitTimeoutForHealthyOSDInMinutes')
1463
1464 @waitTimeoutForHealthyOSDInMinutes.setter
1465 def waitTimeoutForHealthyOSDInMinutes(self, new_val):
1466 # type: (Optional[int]) -> None
1467 self._waitTimeoutForHealthyOSDInMinutes = new_val
1468
1469 @property
1470 def accessModes(self):
1471 # type: () -> Union[List[str], CrdObjectList]
1472 return self._property_impl('accessModes')
1473
1474 @accessModes.setter
1475 def accessModes(self, new_val):
1476 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1477 self._accessModes = new_val
1478
1479 @property
1480 def dataSource(self):
1481 # type: () -> DataSource
1482 return self._property_impl('dataSource')
1483
1484 @dataSource.setter
1485 def dataSource(self, new_val):
1486 # type: (Optional[DataSource]) -> None
1487 self._dataSource = new_val
1488
1489 @property
1490 def selector(self):
1491 # type: () -> Selector
1492 return self._property_impl('selector')
1493
1494 @selector.setter
1495 def selector(self, new_val):
1496 # type: (Optional[Selector]) -> None
1497 self._selector = new_val
1498
1499 @property
1500 def storageClassName(self):
1501 # type: () -> str
1502 return self._property_impl('storageClassName')
1503
1504 @storageClassName.setter
1505 def storageClassName(self, new_val):
1506 # type: (Optional[str]) -> None
1507 self._storageClassName = new_val
1508
1509 @property
1510 def volumeMode(self):
1511 # type: () -> str
1512 return self._property_impl('volumeMode')
1513
1514 @volumeMode.setter
1515 def volumeMode(self, new_val):
1516 # type: (Optional[str]) -> None
1517 self._volumeMode = new_val
1518
1519 @property
1520 def volumeName(self):
1521 # type: () -> str
1522 return self._property_impl('volumeName')
1523
1524 @volumeName.setter
1525 def volumeName(self, new_val):
1526 # type: (Optional[str]) -> None
1527 self._volumeName = new_val
1528
1529
1530 class ConditionsItem(CrdObject):
1531 _properties = [
1532 ('lastHeartbeatTime', 'lastHeartbeatTime', str, False, False),
1533 ('lastTransitionTime', 'lastTransitionTime', str, False, False),
1534 ('message', 'message', str, False, False),
1535 ('reason', 'reason', str, False, False),
1536 ('status', 'status', str, False, False),
1537 ('type', 'type', str, False, False),
1538 ('lastProbeTime', 'lastProbeTime', str, False, False)
1539 ]
1540
1541 def __init__(self,
1542 lastHeartbeatTime=_omit, # type: Optional[str]
1543 lastTransitionTime=_omit, # type: Optional[str]
1544 message=_omit, # type: Optional[str]
1545 reason=_omit, # type: Optional[str]
1546 status=_omit, # type: Optional[str]
1547 type=_omit, # type: Optional[str]
1548 lastProbeTime=_omit, # type: Optional[str]
1549 ):
1550 super(ConditionsItem, self).__init__(
1551 lastHeartbeatTime=lastHeartbeatTime,
1552 lastTransitionTime=lastTransitionTime,
1553 message=message,
1554 reason=reason,
1555 status=status,
1556 type=type,
1557 lastProbeTime=lastProbeTime,
1558 )
1559
1560 @property
1561 def lastHeartbeatTime(self):
1562 # type: () -> str
1563 return self._property_impl('lastHeartbeatTime')
1564
1565 @lastHeartbeatTime.setter
1566 def lastHeartbeatTime(self, new_val):
1567 # type: (Optional[str]) -> None
1568 self._lastHeartbeatTime = new_val
1569
1570 @property
1571 def lastTransitionTime(self):
1572 # type: () -> str
1573 return self._property_impl('lastTransitionTime')
1574
1575 @lastTransitionTime.setter
1576 def lastTransitionTime(self, new_val):
1577 # type: (Optional[str]) -> None
1578 self._lastTransitionTime = new_val
1579
1580 @property
1581 def message(self):
1582 # type: () -> str
1583 return self._property_impl('message')
1584
1585 @message.setter
1586 def message(self, new_val):
1587 # type: (Optional[str]) -> None
1588 self._message = new_val
1589
1590 @property
1591 def reason(self):
1592 # type: () -> str
1593 return self._property_impl('reason')
1594
1595 @reason.setter
1596 def reason(self, new_val):
1597 # type: (Optional[str]) -> None
1598 self._reason = new_val
1599
1600 @property
1601 def status(self):
1602 # type: () -> str
1603 return self._property_impl('status')
1604
1605 @status.setter
1606 def status(self, new_val):
1607 # type: (Optional[str]) -> None
1608 self._status = new_val
1609
1610 @property
1611 def type(self):
1612 # type: () -> str
1613 return self._property_impl('type')
1614
1615 @type.setter
1616 def type(self, new_val):
1617 # type: (Optional[str]) -> None
1618 self._type = new_val
1619
1620 @property
1621 def lastProbeTime(self):
1622 # type: () -> str
1623 return self._property_impl('lastProbeTime')
1624
1625 @lastProbeTime.setter
1626 def lastProbeTime(self, new_val):
1627 # type: (Optional[str]) -> None
1628 self._lastProbeTime = new_val
1629
1630
1631 class ConditionsList(CrdObjectList):
1632 _items_type = ConditionsItem
1633
1634
1635 class VolumeClaimTemplate(CrdObject):
1636 _properties = [
1637 ('apiVersion', 'apiVersion', str, False, False),
1638 ('kind', 'kind', str, False, False),
1639 ('metadata', 'metadata', 'Metadata', False, False),
1640 ('spec', 'spec', 'Spec', False, False),
1641 ('status', 'status', 'Status', False, False)
1642 ]
1643
1644 def __init__(self,
1645 apiVersion=_omit, # type: Optional[str]
1646 kind=_omit, # type: Optional[str]
1647 metadata=_omit, # type: Optional[Metadata]
1648 spec=_omit, # type: Optional[Spec]
1649 status=_omit, # type: Optional[Status]
1650 ):
1651 super(VolumeClaimTemplate, self).__init__(
1652 apiVersion=apiVersion,
1653 kind=kind,
1654 metadata=metadata,
1655 spec=spec,
1656 status=status,
1657 )
1658
1659 @property
1660 def apiVersion(self):
1661 # type: () -> str
1662 return self._property_impl('apiVersion')
1663
1664 @apiVersion.setter
1665 def apiVersion(self, new_val):
1666 # type: (Optional[str]) -> None
1667 self._apiVersion = new_val
1668
1669 @property
1670 def kind(self):
1671 # type: () -> str
1672 return self._property_impl('kind')
1673
1674 @kind.setter
1675 def kind(self, new_val):
1676 # type: (Optional[str]) -> None
1677 self._kind = new_val
1678
1679 @property
1680 def metadata(self):
1681 # type: () -> Metadata
1682 return self._property_impl('metadata')
1683
1684 @metadata.setter
1685 def metadata(self, new_val):
1686 # type: (Optional[Metadata]) -> None
1687 self._metadata = new_val
1688
1689 @property
1690 def spec(self):
1691 # type: () -> Spec
1692 return self._property_impl('spec')
1693
1694 @spec.setter
1695 def spec(self, new_val):
1696 # type: (Optional[Spec]) -> None
1697 self._spec = new_val
1698
1699 @property
1700 def status(self):
1701 # type: () -> Status
1702 return self._property_impl('status')
1703
1704 @status.setter
1705 def status(self, new_val):
1706 # type: (Optional[Status]) -> None
1707 self._status = new_val
1708
1709
1710 class ZonesItem(CrdObject):
1711 _properties = [
1712 ('arbiter', 'arbiter', bool, False, False),
1713 ('name', 'name', str, False, False),
1714 ('volumeClaimTemplate', 'volumeClaimTemplate', 'VolumeClaimTemplate', False, False)
1715 ]
1716
1717 def __init__(self,
1718 arbiter=_omit, # type: Optional[bool]
1719 name=_omit, # type: Optional[str]
1720 volumeClaimTemplate=_omit, # type: Optional[VolumeClaimTemplate]
1721 ):
1722 super(ZonesItem, self).__init__(
1723 arbiter=arbiter,
1724 name=name,
1725 volumeClaimTemplate=volumeClaimTemplate,
1726 )
1727
1728 @property
1729 def arbiter(self):
1730 # type: () -> bool
1731 return self._property_impl('arbiter')
1732
1733 @arbiter.setter
1734 def arbiter(self, new_val):
1735 # type: (Optional[bool]) -> None
1736 self._arbiter = new_val
1737
1738 @property
1739 def name(self):
1740 # type: () -> str
1741 return self._property_impl('name')
1742
1743 @name.setter
1744 def name(self, new_val):
1745 # type: (Optional[str]) -> None
1746 self._name = new_val
1747
1748 @property
1749 def volumeClaimTemplate(self):
1750 # type: () -> VolumeClaimTemplate
1751 return self._property_impl('volumeClaimTemplate')
1752
1753 @volumeClaimTemplate.setter
1754 def volumeClaimTemplate(self, new_val):
1755 # type: (Optional[VolumeClaimTemplate]) -> None
1756 self._volumeClaimTemplate = new_val
1757
1758
1759 class ZonesList(CrdObjectList):
1760 _items_type = ZonesItem
1761
1762
1763 class StretchCluster(CrdObject):
1764 _properties = [
1765 ('failureDomainLabel', 'failureDomainLabel', str, False, False),
1766 ('subFailureDomain', 'subFailureDomain', str, False, False),
1767 ('zones', 'zones', 'ZonesList', False, True)
1768 ]
1769
1770 def __init__(self,
1771 failureDomainLabel=_omit, # type: Optional[str]
1772 subFailureDomain=_omit, # type: Optional[str]
1773 zones=_omit, # type: Optional[Union[List[ZonesItem], CrdObjectList]]
1774 ):
1775 super(StretchCluster, self).__init__(
1776 failureDomainLabel=failureDomainLabel,
1777 subFailureDomain=subFailureDomain,
1778 zones=zones,
1779 )
1780
1781 @property
1782 def failureDomainLabel(self):
1783 # type: () -> str
1784 return self._property_impl('failureDomainLabel')
1785
1786 @failureDomainLabel.setter
1787 def failureDomainLabel(self, new_val):
1788 # type: (Optional[str]) -> None
1789 self._failureDomainLabel = new_val
1790
1791 @property
1792 def subFailureDomain(self):
1793 # type: () -> str
1794 return self._property_impl('subFailureDomain')
1795
1796 @subFailureDomain.setter
1797 def subFailureDomain(self, new_val):
1798 # type: (Optional[str]) -> None
1799 self._subFailureDomain = new_val
1800
1801 @property
1802 def zones(self):
1803 # type: () -> Optional[Union[List[ZonesItem], CrdObjectList]]
1804 return self._property_impl('zones')
1805
1806 @zones.setter
1807 def zones(self, new_val):
1808 # type: (Optional[Union[List[ZonesItem], CrdObjectList]]) -> None
1809 self._zones = new_val
1810
1811
1812 class TargetRef(CrdObject):
1813 _properties = [
1814 ('apiVersion', 'apiVersion', str, False, False),
1815 ('fieldPath', 'fieldPath', str, False, False),
1816 ('kind', 'kind', str, False, False),
1817 ('name', 'name', str, False, False),
1818 ('namespace', 'namespace', str, False, False),
1819 ('resourceVersion', 'resourceVersion', str, False, False),
1820 ('uid', 'uid', str, False, False)
1821 ]
1822
1823 def __init__(self,
1824 apiVersion=_omit, # type: Optional[str]
1825 fieldPath=_omit, # type: Optional[str]
1826 kind=_omit, # type: Optional[str]
1827 name=_omit, # type: Optional[str]
1828 namespace=_omit, # type: Optional[str]
1829 resourceVersion=_omit, # type: Optional[str]
1830 uid=_omit, # type: Optional[str]
1831 ):
1832 super(TargetRef, self).__init__(
1833 apiVersion=apiVersion,
1834 fieldPath=fieldPath,
1835 kind=kind,
1836 name=name,
1837 namespace=namespace,
1838 resourceVersion=resourceVersion,
1839 uid=uid,
1840 )
1841
1842 @property
1843 def apiVersion(self):
1844 # type: () -> str
1845 return self._property_impl('apiVersion')
1846
1847 @apiVersion.setter
1848 def apiVersion(self, new_val):
1849 # type: (Optional[str]) -> None
1850 self._apiVersion = new_val
1851
1852 @property
1853 def fieldPath(self):
1854 # type: () -> str
1855 return self._property_impl('fieldPath')
1856
1857 @fieldPath.setter
1858 def fieldPath(self, new_val):
1859 # type: (Optional[str]) -> None
1860 self._fieldPath = new_val
1861
1862 @property
1863 def kind(self):
1864 # type: () -> str
1865 return self._property_impl('kind')
1866
1867 @kind.setter
1868 def kind(self, new_val):
1869 # type: (Optional[str]) -> None
1870 self._kind = new_val
1871
1872 @property
1873 def name(self):
1874 # type: () -> str
1875 return self._property_impl('name')
1876
1877 @name.setter
1878 def name(self, new_val):
1879 # type: (Optional[str]) -> None
1880 self._name = new_val
1881
1882 @property
1883 def namespace(self):
1884 # type: () -> str
1885 return self._property_impl('namespace')
1886
1887 @namespace.setter
1888 def namespace(self, new_val):
1889 # type: (Optional[str]) -> None
1890 self._namespace = new_val
1891
1892 @property
1893 def resourceVersion(self):
1894 # type: () -> str
1895 return self._property_impl('resourceVersion')
1896
1897 @resourceVersion.setter
1898 def resourceVersion(self, new_val):
1899 # type: (Optional[str]) -> None
1900 self._resourceVersion = new_val
1901
1902 @property
1903 def uid(self):
1904 # type: () -> str
1905 return self._property_impl('uid')
1906
1907 @uid.setter
1908 def uid(self, new_val):
1909 # type: (Optional[str]) -> None
1910 self._uid = new_val
1911
1912
1913 class ExternalMgrEndpointsItem(CrdObject):
1914 _properties = [
1915 ('hostname', 'hostname', str, False, False),
1916 ('ip', 'ip', str, True, False),
1917 ('nodeName', 'nodeName', str, False, False),
1918 ('targetRef', 'targetRef', 'TargetRef', False, False)
1919 ]
1920
1921 def __init__(self,
1922 ip, # type: str
1923 hostname=_omit, # type: Optional[str]
1924 nodeName=_omit, # type: Optional[str]
1925 targetRef=_omit, # type: Optional[TargetRef]
1926 ):
1927 super(ExternalMgrEndpointsItem, self).__init__(
1928 ip=ip,
1929 hostname=hostname,
1930 nodeName=nodeName,
1931 targetRef=targetRef,
1932 )
1933
1934 @property
1935 def hostname(self):
1936 # type: () -> str
1937 return self._property_impl('hostname')
1938
1939 @hostname.setter
1940 def hostname(self, new_val):
1941 # type: (Optional[str]) -> None
1942 self._hostname = new_val
1943
1944 @property
1945 def ip(self):
1946 # type: () -> str
1947 return self._property_impl('ip')
1948
1949 @ip.setter
1950 def ip(self, new_val):
1951 # type: (str) -> None
1952 self._ip = new_val
1953
1954 @property
1955 def nodeName(self):
1956 # type: () -> str
1957 return self._property_impl('nodeName')
1958
1959 @nodeName.setter
1960 def nodeName(self, new_val):
1961 # type: (Optional[str]) -> None
1962 self._nodeName = new_val
1963
1964 @property
1965 def targetRef(self):
1966 # type: () -> TargetRef
1967 return self._property_impl('targetRef')
1968
1969 @targetRef.setter
1970 def targetRef(self, new_val):
1971 # type: (Optional[TargetRef]) -> None
1972 self._targetRef = new_val
1973
1974
1975 class ExternalMgrEndpointsList(CrdObjectList):
1976 _items_type = ExternalMgrEndpointsItem
1977
1978
1979 class Monitoring(CrdObject):
1980 _properties = [
1981 ('enabled', 'enabled', bool, False, False),
1982 ('externalMgrEndpoints', 'externalMgrEndpoints', 'ExternalMgrEndpointsList', False, True),
1983 ('externalMgrPrometheusPort', 'externalMgrPrometheusPort', int, False, False),
1984 ('rulesNamespace', 'rulesNamespace', str, False, False)
1985 ]
1986
1987 def __init__(self,
1988 enabled=_omit, # type: Optional[bool]
1989 externalMgrEndpoints=_omit, # type: Optional[Union[List[ExternalMgrEndpointsItem], CrdObjectList]]
1990 externalMgrPrometheusPort=_omit, # type: Optional[int]
1991 rulesNamespace=_omit, # type: Optional[str]
1992 ):
1993 super(Monitoring, self).__init__(
1994 enabled=enabled,
1995 externalMgrEndpoints=externalMgrEndpoints,
1996 externalMgrPrometheusPort=externalMgrPrometheusPort,
1997 rulesNamespace=rulesNamespace,
1998 )
1999
2000 @property
2001 def enabled(self):
2002 # type: () -> bool
2003 return self._property_impl('enabled')
2004
2005 @enabled.setter
2006 def enabled(self, new_val):
2007 # type: (Optional[bool]) -> None
2008 self._enabled = new_val
2009
2010 @property
2011 def externalMgrEndpoints(self):
2012 # type: () -> Optional[Union[List[ExternalMgrEndpointsItem], CrdObjectList]]
2013 return self._property_impl('externalMgrEndpoints')
2014
2015 @externalMgrEndpoints.setter
2016 def externalMgrEndpoints(self, new_val):
2017 # type: (Optional[Union[List[ExternalMgrEndpointsItem], CrdObjectList]]) -> None
2018 self._externalMgrEndpoints = new_val
2019
2020 @property
2021 def externalMgrPrometheusPort(self):
2022 # type: () -> int
2023 return self._property_impl('externalMgrPrometheusPort')
2024
2025 @externalMgrPrometheusPort.setter
2026 def externalMgrPrometheusPort(self, new_val):
2027 # type: (Optional[int]) -> None
2028 self._externalMgrPrometheusPort = new_val
2029
2030 @property
2031 def rulesNamespace(self):
2032 # type: () -> str
2033 return self._property_impl('rulesNamespace')
2034
2035 @rulesNamespace.setter
2036 def rulesNamespace(self, new_val):
2037 # type: (Optional[str]) -> None
2038 self._rulesNamespace = new_val
2039
2040
2041 class Network(CrdObject):
2042 _properties = [
2043 ('dualStack', 'dualStack', bool, False, False),
2044 ('hostNetwork', 'hostNetwork', bool, False, False),
2045 ('ipFamily', 'ipFamily', str, False, True),
2046 ('provider', 'provider', str, False, True),
2047 ('selectors', 'selectors', object, False, True)
2048 ]
2049
2050 def __init__(self,
2051 dualStack=_omit, # type: Optional[bool]
2052 hostNetwork=_omit, # type: Optional[bool]
2053 ipFamily=_omit, # type: Optional[str]
2054 provider=_omit, # type: Optional[str]
2055 selectors=_omit, # type: Optional[Any]
2056 ):
2057 super(Network, self).__init__(
2058 dualStack=dualStack,
2059 hostNetwork=hostNetwork,
2060 ipFamily=ipFamily,
2061 provider=provider,
2062 selectors=selectors,
2063 )
2064
2065 @property
2066 def dualStack(self):
2067 # type: () -> bool
2068 return self._property_impl('dualStack')
2069
2070 @dualStack.setter
2071 def dualStack(self, new_val):
2072 # type: (Optional[bool]) -> None
2073 self._dualStack = new_val
2074
2075 @property
2076 def hostNetwork(self):
2077 # type: () -> bool
2078 return self._property_impl('hostNetwork')
2079
2080 @hostNetwork.setter
2081 def hostNetwork(self, new_val):
2082 # type: (Optional[bool]) -> None
2083 self._hostNetwork = new_val
2084
2085 @property
2086 def ipFamily(self):
2087 # type: () -> Optional[str]
2088 return self._property_impl('ipFamily')
2089
2090 @ipFamily.setter
2091 def ipFamily(self, new_val):
2092 # type: (Optional[str]) -> None
2093 self._ipFamily = new_val
2094
2095 @property
2096 def provider(self):
2097 # type: () -> Optional[str]
2098 return self._property_impl('provider')
2099
2100 @provider.setter
2101 def provider(self, new_val):
2102 # type: (Optional[str]) -> None
2103 self._provider = new_val
2104
2105 @property
2106 def selectors(self):
2107 # type: () -> Optional[Any]
2108 return self._property_impl('selectors')
2109
2110 @selectors.setter
2111 def selectors(self, new_val):
2112 # type: (Optional[Any]) -> None
2113 self._selectors = new_val
2114
2115
2116 class Kms(CrdObject):
2117 _properties = [
2118 ('connectionDetails', 'connectionDetails', object, False, True),
2119 ('tokenSecretName', 'tokenSecretName', str, False, False)
2120 ]
2121
2122 def __init__(self,
2123 connectionDetails=_omit, # type: Optional[Any]
2124 tokenSecretName=_omit, # type: Optional[str]
2125 ):
2126 super(Kms, self).__init__(
2127 connectionDetails=connectionDetails,
2128 tokenSecretName=tokenSecretName,
2129 )
2130
2131 @property
2132 def connectionDetails(self):
2133 # type: () -> Optional[Any]
2134 return self._property_impl('connectionDetails')
2135
2136 @connectionDetails.setter
2137 def connectionDetails(self, new_val):
2138 # type: (Optional[Any]) -> None
2139 self._connectionDetails = new_val
2140
2141 @property
2142 def tokenSecretName(self):
2143 # type: () -> str
2144 return self._property_impl('tokenSecretName')
2145
2146 @tokenSecretName.setter
2147 def tokenSecretName(self, new_val):
2148 # type: (Optional[str]) -> None
2149 self._tokenSecretName = new_val
2150
2151
2152 class Security(CrdObject):
2153 _properties = [
2154 ('kms', 'kms', 'Kms', False, True)
2155 ]
2156
2157 def __init__(self,
2158 kms=_omit, # type: Optional[Kms]
2159 ):
2160 super(Security, self).__init__(
2161 kms=kms,
2162 )
2163
2164 @property
2165 def kms(self):
2166 # type: () -> Optional[Kms]
2167 return self._property_impl('kms')
2168
2169 @kms.setter
2170 def kms(self, new_val):
2171 # type: (Optional[Kms]) -> None
2172 self._kms = new_val
2173
2174
2175 class DevicesItem(CrdObject):
2176 _properties = [
2177 ('config', 'config', object, False, False),
2178 ('fullpath', 'fullpath', str, False, False),
2179 ('name', 'name', str, False, False)
2180 ]
2181
2182 def __init__(self,
2183 config=_omit, # type: Optional[Any]
2184 fullpath=_omit, # type: Optional[str]
2185 name=_omit, # type: Optional[str]
2186 ):
2187 super(DevicesItem, self).__init__(
2188 config=config,
2189 fullpath=fullpath,
2190 name=name,
2191 )
2192
2193 @property
2194 def config(self):
2195 # type: () -> Any
2196 return self._property_impl('config')
2197
2198 @config.setter
2199 def config(self, new_val):
2200 # type: (Optional[Any]) -> None
2201 self._config = new_val
2202
2203 @property
2204 def fullpath(self):
2205 # type: () -> str
2206 return self._property_impl('fullpath')
2207
2208 @fullpath.setter
2209 def fullpath(self, new_val):
2210 # type: (Optional[str]) -> None
2211 self._fullpath = new_val
2212
2213 @property
2214 def name(self):
2215 # type: () -> str
2216 return self._property_impl('name')
2217
2218 @name.setter
2219 def name(self, new_val):
2220 # type: (Optional[str]) -> None
2221 self._name = new_val
2222
2223
2224 class DevicesList(CrdObjectList):
2225 _items_type = DevicesItem
2226
2227
2228 class VolumeClaimTemplatesItem(CrdObject):
2229 _properties = [
2230 ('apiVersion', 'apiVersion', str, False, False),
2231 ('kind', 'kind', str, False, False),
2232 ('metadata', 'metadata', 'Metadata', False, False),
2233 ('spec', 'spec', 'Spec', False, False),
2234 ('status', 'status', 'Status', False, False)
2235 ]
2236
2237 def __init__(self,
2238 apiVersion=_omit, # type: Optional[str]
2239 kind=_omit, # type: Optional[str]
2240 metadata=_omit, # type: Optional[Metadata]
2241 spec=_omit, # type: Optional[Spec]
2242 status=_omit, # type: Optional[Status]
2243 ):
2244 super(VolumeClaimTemplatesItem, self).__init__(
2245 apiVersion=apiVersion,
2246 kind=kind,
2247 metadata=metadata,
2248 spec=spec,
2249 status=status,
2250 )
2251
2252 @property
2253 def apiVersion(self):
2254 # type: () -> str
2255 return self._property_impl('apiVersion')
2256
2257 @apiVersion.setter
2258 def apiVersion(self, new_val):
2259 # type: (Optional[str]) -> None
2260 self._apiVersion = new_val
2261
2262 @property
2263 def kind(self):
2264 # type: () -> str
2265 return self._property_impl('kind')
2266
2267 @kind.setter
2268 def kind(self, new_val):
2269 # type: (Optional[str]) -> None
2270 self._kind = new_val
2271
2272 @property
2273 def metadata(self):
2274 # type: () -> Metadata
2275 return self._property_impl('metadata')
2276
2277 @metadata.setter
2278 def metadata(self, new_val):
2279 # type: (Optional[Metadata]) -> None
2280 self._metadata = new_val
2281
2282 @property
2283 def spec(self):
2284 # type: () -> Spec
2285 return self._property_impl('spec')
2286
2287 @spec.setter
2288 def spec(self, new_val):
2289 # type: (Optional[Spec]) -> None
2290 self._spec = new_val
2291
2292 @property
2293 def status(self):
2294 # type: () -> Status
2295 return self._property_impl('status')
2296
2297 @status.setter
2298 def status(self, new_val):
2299 # type: (Optional[Status]) -> None
2300 self._status = new_val
2301
2302
2303 class VolumeClaimTemplatesList(CrdObjectList):
2304 _items_type = VolumeClaimTemplatesItem
2305
2306
2307 class NodesItem(CrdObject):
2308 _properties = [
2309 ('config', 'config', object, False, True),
2310 ('deviceFilter', 'deviceFilter', str, False, False),
2311 ('devicePathFilter', 'devicePathFilter', str, False, False),
2312 ('devices', 'devices', 'DevicesList', False, True),
2313 ('name', 'name', str, False, False),
2314 ('resources', 'resources', 'Resources', False, True),
2315 ('useAllDevices', 'useAllDevices', bool, False, False),
2316 ('volumeClaimTemplates', 'volumeClaimTemplates', 'VolumeClaimTemplatesList', False, False)
2317 ]
2318
2319 def __init__(self,
2320 config=_omit, # type: Optional[Any]
2321 deviceFilter=_omit, # type: Optional[str]
2322 devicePathFilter=_omit, # type: Optional[str]
2323 devices=_omit, # type: Optional[Union[List[DevicesItem], CrdObjectList]]
2324 name=_omit, # type: Optional[str]
2325 resources=_omit, # type: Optional[Resources]
2326 useAllDevices=_omit, # type: Optional[bool]
2327 volumeClaimTemplates=_omit, # type: Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]
2328 ):
2329 super(NodesItem, self).__init__(
2330 config=config,
2331 deviceFilter=deviceFilter,
2332 devicePathFilter=devicePathFilter,
2333 devices=devices,
2334 name=name,
2335 resources=resources,
2336 useAllDevices=useAllDevices,
2337 volumeClaimTemplates=volumeClaimTemplates,
2338 )
2339
2340 @property
2341 def config(self):
2342 # type: () -> Optional[Any]
2343 return self._property_impl('config')
2344
2345 @config.setter
2346 def config(self, new_val):
2347 # type: (Optional[Any]) -> None
2348 self._config = new_val
2349
2350 @property
2351 def deviceFilter(self):
2352 # type: () -> str
2353 return self._property_impl('deviceFilter')
2354
2355 @deviceFilter.setter
2356 def deviceFilter(self, new_val):
2357 # type: (Optional[str]) -> None
2358 self._deviceFilter = new_val
2359
2360 @property
2361 def devicePathFilter(self):
2362 # type: () -> str
2363 return self._property_impl('devicePathFilter')
2364
2365 @devicePathFilter.setter
2366 def devicePathFilter(self, new_val):
2367 # type: (Optional[str]) -> None
2368 self._devicePathFilter = new_val
2369
2370 @property
2371 def devices(self):
2372 # type: () -> Optional[Union[List[DevicesItem], CrdObjectList]]
2373 return self._property_impl('devices')
2374
2375 @devices.setter
2376 def devices(self, new_val):
2377 # type: (Optional[Union[List[DevicesItem], CrdObjectList]]) -> None
2378 self._devices = new_val
2379
2380 @property
2381 def name(self):
2382 # type: () -> str
2383 return self._property_impl('name')
2384
2385 @name.setter
2386 def name(self, new_val):
2387 # type: (Optional[str]) -> None
2388 self._name = new_val
2389
2390 @property
2391 def resources(self):
2392 # type: () -> Optional[Resources]
2393 return self._property_impl('resources')
2394
2395 @resources.setter
2396 def resources(self, new_val):
2397 # type: (Optional[Resources]) -> None
2398 self._resources = new_val
2399
2400 @property
2401 def useAllDevices(self):
2402 # type: () -> bool
2403 return self._property_impl('useAllDevices')
2404
2405 @useAllDevices.setter
2406 def useAllDevices(self, new_val):
2407 # type: (Optional[bool]) -> None
2408 self._useAllDevices = new_val
2409
2410 @property
2411 def volumeClaimTemplates(self):
2412 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
2413 return self._property_impl('volumeClaimTemplates')
2414
2415 @volumeClaimTemplates.setter
2416 def volumeClaimTemplates(self, new_val):
2417 # type: (Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]) -> None
2418 self._volumeClaimTemplates = new_val
2419
2420
2421 class NodesList(CrdObjectList):
2422 _items_type = NodesItem
2423
2424
2425 class MatchFieldsItem(CrdObject):
2426 _properties = [
2427 ('key', 'key', str, True, False),
2428 ('operator', 'operator', str, True, False),
2429 ('values', 'values', 'ValuesList', False, False)
2430 ]
2431
2432 def __init__(self,
2433 key, # type: str
2434 operator, # type: str
2435 values=_omit, # type: Optional[Union[List[str], CrdObjectList]]
2436 ):
2437 super(MatchFieldsItem, self).__init__(
2438 key=key,
2439 operator=operator,
2440 values=values,
2441 )
2442
2443 @property
2444 def key(self):
2445 # type: () -> str
2446 return self._property_impl('key')
2447
2448 @key.setter
2449 def key(self, new_val):
2450 # type: (str) -> None
2451 self._key = new_val
2452
2453 @property
2454 def operator(self):
2455 # type: () -> str
2456 return self._property_impl('operator')
2457
2458 @operator.setter
2459 def operator(self, new_val):
2460 # type: (str) -> None
2461 self._operator = new_val
2462
2463 @property
2464 def values(self):
2465 # type: () -> Union[List[str], CrdObjectList]
2466 return self._property_impl('values')
2467
2468 @values.setter
2469 def values(self, new_val):
2470 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2471 self._values = new_val
2472
2473
2474 class MatchFieldsList(CrdObjectList):
2475 _items_type = MatchFieldsItem
2476
2477
2478 class Preference(CrdObject):
2479 _properties = [
2480 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2481 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
2482 ]
2483
2484 def __init__(self,
2485 matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2486 matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
2487 ):
2488 super(Preference, self).__init__(
2489 matchExpressions=matchExpressions,
2490 matchFields=matchFields,
2491 )
2492
2493 @property
2494 def matchExpressions(self):
2495 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2496 return self._property_impl('matchExpressions')
2497
2498 @matchExpressions.setter
2499 def matchExpressions(self, new_val):
2500 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2501 self._matchExpressions = new_val
2502
2503 @property
2504 def matchFields(self):
2505 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
2506 return self._property_impl('matchFields')
2507
2508 @matchFields.setter
2509 def matchFields(self, new_val):
2510 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
2511 self._matchFields = new_val
2512
2513
2514 class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject):
2515 _properties = [
2516 ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False),
2517 ('weight', 'weight', int, False, False),
2518 ('preference', 'preference', 'Preference', False, False)
2519 ]
2520
2521 def __init__(self,
2522 podAffinityTerm=_omit, # type: Optional[PodAffinityTerm]
2523 weight=_omit, # type: Optional[int]
2524 preference=_omit, # type: Optional[Preference]
2525 ):
2526 super(PreferredDuringSchedulingIgnoredDuringExecutionItem, self).__init__(
2527 podAffinityTerm=podAffinityTerm,
2528 weight=weight,
2529 preference=preference,
2530 )
2531
2532 @property
2533 def podAffinityTerm(self):
2534 # type: () -> PodAffinityTerm
2535 return self._property_impl('podAffinityTerm')
2536
2537 @podAffinityTerm.setter
2538 def podAffinityTerm(self, new_val):
2539 # type: (Optional[PodAffinityTerm]) -> None
2540 self._podAffinityTerm = new_val
2541
2542 @property
2543 def weight(self):
2544 # type: () -> int
2545 return self._property_impl('weight')
2546
2547 @weight.setter
2548 def weight(self, new_val):
2549 # type: (Optional[int]) -> None
2550 self._weight = new_val
2551
2552 @property
2553 def preference(self):
2554 # type: () -> Preference
2555 return self._property_impl('preference')
2556
2557 @preference.setter
2558 def preference(self, new_val):
2559 # type: (Optional[Preference]) -> None
2560 self._preference = new_val
2561
2562
2563 class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList):
2564 _items_type = PreferredDuringSchedulingIgnoredDuringExecutionItem
2565
2566
2567 class NodeSelectorTermsItem(CrdObject):
2568 _properties = [
2569 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2570 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
2571 ]
2572
2573 def __init__(self,
2574 matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2575 matchFields=_omit, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
2576 ):
2577 super(NodeSelectorTermsItem, self).__init__(
2578 matchExpressions=matchExpressions,
2579 matchFields=matchFields,
2580 )
2581
2582 @property
2583 def matchExpressions(self):
2584 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2585 return self._property_impl('matchExpressions')
2586
2587 @matchExpressions.setter
2588 def matchExpressions(self, new_val):
2589 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2590 self._matchExpressions = new_val
2591
2592 @property
2593 def matchFields(self):
2594 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
2595 return self._property_impl('matchFields')
2596
2597 @matchFields.setter
2598 def matchFields(self, new_val):
2599 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
2600 self._matchFields = new_val
2601
2602
2603 class NodeSelectorTermsList(CrdObjectList):
2604 _items_type = NodeSelectorTermsItem
2605
2606
2607 class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject):
2608 _properties = [
2609 ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False)
2610 ]
2611
2612 def __init__(self,
2613 nodeSelectorTerms, # type: Union[List[NodeSelectorTermsItem], CrdObjectList]
2614 ):
2615 super(RequiredDuringSchedulingIgnoredDuringExecution, self).__init__(
2616 nodeSelectorTerms=nodeSelectorTerms,
2617 )
2618
2619 @property
2620 def nodeSelectorTerms(self):
2621 # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList]
2622 return self._property_impl('nodeSelectorTerms')
2623
2624 @nodeSelectorTerms.setter
2625 def nodeSelectorTerms(self, new_val):
2626 # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None
2627 self._nodeSelectorTerms = new_val
2628
2629
2630 class NodeAffinity(CrdObject):
2631 _properties = [
2632 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2633 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False)
2634 ]
2635
2636 def __init__(self,
2637 preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2638 requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution]
2639 ):
2640 super(NodeAffinity, self).__init__(
2641 preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution,
2642 requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution,
2643 )
2644
2645 @property
2646 def preferredDuringSchedulingIgnoredDuringExecution(self):
2647 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2648 return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution')
2649
2650 @preferredDuringSchedulingIgnoredDuringExecution.setter
2651 def preferredDuringSchedulingIgnoredDuringExecution(self, new_val):
2652 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2653 self._preferredDuringSchedulingIgnoredDuringExecution = new_val
2654
2655 @property
2656 def requiredDuringSchedulingIgnoredDuringExecution(self):
2657 # type: () -> RequiredDuringSchedulingIgnoredDuringExecution
2658 return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution')
2659
2660 @requiredDuringSchedulingIgnoredDuringExecution.setter
2661 def requiredDuringSchedulingIgnoredDuringExecution(self, new_val):
2662 # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None
2663 self._requiredDuringSchedulingIgnoredDuringExecution = new_val
2664
2665
2666 class LabelSelector(CrdObject):
2667 _properties = [
2668 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2669 ('matchLabels', 'matchLabels', object, False, False)
2670 ]
2671
2672 def __init__(self,
2673 matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2674 matchLabels=_omit, # type: Optional[Any]
2675 ):
2676 super(LabelSelector, self).__init__(
2677 matchExpressions=matchExpressions,
2678 matchLabels=matchLabels,
2679 )
2680
2681 @property
2682 def matchExpressions(self):
2683 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2684 return self._property_impl('matchExpressions')
2685
2686 @matchExpressions.setter
2687 def matchExpressions(self, new_val):
2688 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2689 self._matchExpressions = new_val
2690
2691 @property
2692 def matchLabels(self):
2693 # type: () -> Any
2694 return self._property_impl('matchLabels')
2695
2696 @matchLabels.setter
2697 def matchLabels(self, new_val):
2698 # type: (Optional[Any]) -> None
2699 self._matchLabels = new_val
2700
2701
2702 class NamespaceSelector(CrdObject):
2703 _properties = [
2704 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2705 ('matchLabels', 'matchLabels', object, False, False)
2706 ]
2707
2708 def __init__(self,
2709 matchExpressions=_omit, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2710 matchLabels=_omit, # type: Optional[Any]
2711 ):
2712 super(NamespaceSelector, self).__init__(
2713 matchExpressions=matchExpressions,
2714 matchLabels=matchLabels,
2715 )
2716
2717 @property
2718 def matchExpressions(self):
2719 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2720 return self._property_impl('matchExpressions')
2721
2722 @matchExpressions.setter
2723 def matchExpressions(self, new_val):
2724 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2725 self._matchExpressions = new_val
2726
2727 @property
2728 def matchLabels(self):
2729 # type: () -> Any
2730 return self._property_impl('matchLabels')
2731
2732 @matchLabels.setter
2733 def matchLabels(self, new_val):
2734 # type: (Optional[Any]) -> None
2735 self._matchLabels = new_val
2736
2737
2738 class NamespacesList(CrdObjectList):
2739 _items_type = str
2740
2741
2742 class PodAffinityTerm(CrdObject):
2743 _properties = [
2744 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
2745 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
2746 ('namespaces', 'namespaces', 'NamespacesList', False, False),
2747 ('topologyKey', 'topologyKey', str, True, False)
2748 ]
2749
2750 def __init__(self,
2751 topologyKey, # type: str
2752 labelSelector=_omit, # type: Optional[LabelSelector]
2753 namespaceSelector=_omit, # type: Optional[NamespaceSelector]
2754 namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]]
2755 ):
2756 super(PodAffinityTerm, self).__init__(
2757 topologyKey=topologyKey,
2758 labelSelector=labelSelector,
2759 namespaceSelector=namespaceSelector,
2760 namespaces=namespaces,
2761 )
2762
2763 @property
2764 def labelSelector(self):
2765 # type: () -> LabelSelector
2766 return self._property_impl('labelSelector')
2767
2768 @labelSelector.setter
2769 def labelSelector(self, new_val):
2770 # type: (Optional[LabelSelector]) -> None
2771 self._labelSelector = new_val
2772
2773 @property
2774 def namespaceSelector(self):
2775 # type: () -> NamespaceSelector
2776 return self._property_impl('namespaceSelector')
2777
2778 @namespaceSelector.setter
2779 def namespaceSelector(self, new_val):
2780 # type: (Optional[NamespaceSelector]) -> None
2781 self._namespaceSelector = new_val
2782
2783 @property
2784 def namespaces(self):
2785 # type: () -> Union[List[str], CrdObjectList]
2786 return self._property_impl('namespaces')
2787
2788 @namespaces.setter
2789 def namespaces(self, new_val):
2790 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2791 self._namespaces = new_val
2792
2793 @property
2794 def topologyKey(self):
2795 # type: () -> str
2796 return self._property_impl('topologyKey')
2797
2798 @topologyKey.setter
2799 def topologyKey(self, new_val):
2800 # type: (str) -> None
2801 self._topologyKey = new_val
2802
2803
2804 class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject):
2805 _properties = [
2806 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
2807 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
2808 ('namespaces', 'namespaces', 'NamespacesList', False, False),
2809 ('topologyKey', 'topologyKey', str, True, False)
2810 ]
2811
2812 def __init__(self,
2813 topologyKey, # type: str
2814 labelSelector=_omit, # type: Optional[LabelSelector]
2815 namespaceSelector=_omit, # type: Optional[NamespaceSelector]
2816 namespaces=_omit, # type: Optional[Union[List[str], CrdObjectList]]
2817 ):
2818 super(RequiredDuringSchedulingIgnoredDuringExecutionItem, self).__init__(
2819 topologyKey=topologyKey,
2820 labelSelector=labelSelector,
2821 namespaceSelector=namespaceSelector,
2822 namespaces=namespaces,
2823 )
2824
2825 @property
2826 def labelSelector(self):
2827 # type: () -> LabelSelector
2828 return self._property_impl('labelSelector')
2829
2830 @labelSelector.setter
2831 def labelSelector(self, new_val):
2832 # type: (Optional[LabelSelector]) -> None
2833 self._labelSelector = new_val
2834
2835 @property
2836 def namespaceSelector(self):
2837 # type: () -> NamespaceSelector
2838 return self._property_impl('namespaceSelector')
2839
2840 @namespaceSelector.setter
2841 def namespaceSelector(self, new_val):
2842 # type: (Optional[NamespaceSelector]) -> None
2843 self._namespaceSelector = new_val
2844
2845 @property
2846 def namespaces(self):
2847 # type: () -> Union[List[str], CrdObjectList]
2848 return self._property_impl('namespaces')
2849
2850 @namespaces.setter
2851 def namespaces(self, new_val):
2852 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2853 self._namespaces = new_val
2854
2855 @property
2856 def topologyKey(self):
2857 # type: () -> str
2858 return self._property_impl('topologyKey')
2859
2860 @topologyKey.setter
2861 def topologyKey(self, new_val):
2862 # type: (str) -> None
2863 self._topologyKey = new_val
2864
2865
2866 class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList):
2867 _items_type = RequiredDuringSchedulingIgnoredDuringExecutionItem
2868
2869
2870 class PodAffinity(CrdObject):
2871 _properties = [
2872 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2873 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
2874 ]
2875
2876 def __init__(self,
2877 preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2878 requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2879 ):
2880 super(PodAffinity, self).__init__(
2881 preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution,
2882 requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution,
2883 )
2884
2885 @property
2886 def preferredDuringSchedulingIgnoredDuringExecution(self):
2887 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2888 return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution')
2889
2890 @preferredDuringSchedulingIgnoredDuringExecution.setter
2891 def preferredDuringSchedulingIgnoredDuringExecution(self, new_val):
2892 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2893 self._preferredDuringSchedulingIgnoredDuringExecution = new_val
2894
2895 @property
2896 def requiredDuringSchedulingIgnoredDuringExecution(self):
2897 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2898 return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution')
2899
2900 @requiredDuringSchedulingIgnoredDuringExecution.setter
2901 def requiredDuringSchedulingIgnoredDuringExecution(self, new_val):
2902 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2903 self._requiredDuringSchedulingIgnoredDuringExecution = new_val
2904
2905
2906 class PodAntiAffinity(CrdObject):
2907 _properties = [
2908 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2909 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
2910 ]
2911
2912 def __init__(self,
2913 preferredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2914 requiredDuringSchedulingIgnoredDuringExecution=_omit, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2915 ):
2916 super(PodAntiAffinity, self).__init__(
2917 preferredDuringSchedulingIgnoredDuringExecution=preferredDuringSchedulingIgnoredDuringExecution,
2918 requiredDuringSchedulingIgnoredDuringExecution=requiredDuringSchedulingIgnoredDuringExecution,
2919 )
2920
2921 @property
2922 def preferredDuringSchedulingIgnoredDuringExecution(self):
2923 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2924 return self._property_impl('preferredDuringSchedulingIgnoredDuringExecution')
2925
2926 @preferredDuringSchedulingIgnoredDuringExecution.setter
2927 def preferredDuringSchedulingIgnoredDuringExecution(self, new_val):
2928 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2929 self._preferredDuringSchedulingIgnoredDuringExecution = new_val
2930
2931 @property
2932 def requiredDuringSchedulingIgnoredDuringExecution(self):
2933 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2934 return self._property_impl('requiredDuringSchedulingIgnoredDuringExecution')
2935
2936 @requiredDuringSchedulingIgnoredDuringExecution.setter
2937 def requiredDuringSchedulingIgnoredDuringExecution(self, new_val):
2938 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2939 self._requiredDuringSchedulingIgnoredDuringExecution = new_val
2940
2941
2942 class TolerationsItem(CrdObject):
2943 _properties = [
2944 ('effect', 'effect', str, False, False),
2945 ('key', 'key', str, False, False),
2946 ('operator', 'operator', str, False, False),
2947 ('tolerationSeconds', 'tolerationSeconds', int, False, False),
2948 ('value', 'value', str, False, False)
2949 ]
2950
2951 def __init__(self,
2952 effect=_omit, # type: Optional[str]
2953 key=_omit, # type: Optional[str]
2954 operator=_omit, # type: Optional[str]
2955 tolerationSeconds=_omit, # type: Optional[int]
2956 value=_omit, # type: Optional[str]
2957 ):
2958 super(TolerationsItem, self).__init__(
2959 effect=effect,
2960 key=key,
2961 operator=operator,
2962 tolerationSeconds=tolerationSeconds,
2963 value=value,
2964 )
2965
2966 @property
2967 def effect(self):
2968 # type: () -> str
2969 return self._property_impl('effect')
2970
2971 @effect.setter
2972 def effect(self, new_val):
2973 # type: (Optional[str]) -> None
2974 self._effect = new_val
2975
2976 @property
2977 def key(self):
2978 # type: () -> str
2979 return self._property_impl('key')
2980
2981 @key.setter
2982 def key(self, new_val):
2983 # type: (Optional[str]) -> None
2984 self._key = new_val
2985
2986 @property
2987 def operator(self):
2988 # type: () -> str
2989 return self._property_impl('operator')
2990
2991 @operator.setter
2992 def operator(self, new_val):
2993 # type: (Optional[str]) -> None
2994 self._operator = new_val
2995
2996 @property
2997 def tolerationSeconds(self):
2998 # type: () -> int
2999 return self._property_impl('tolerationSeconds')
3000
3001 @tolerationSeconds.setter
3002 def tolerationSeconds(self, new_val):
3003 # type: (Optional[int]) -> None
3004 self._tolerationSeconds = new_val
3005
3006 @property
3007 def value(self):
3008 # type: () -> str
3009 return self._property_impl('value')
3010
3011 @value.setter
3012 def value(self, new_val):
3013 # type: (Optional[str]) -> None
3014 self._value = new_val
3015
3016
3017 class TolerationsList(CrdObjectList):
3018 _items_type = TolerationsItem
3019
3020
3021 class TopologySpreadConstraintsItem(CrdObject):
3022 _properties = [
3023 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
3024 ('maxSkew', 'maxSkew', int, True, False),
3025 ('topologyKey', 'topologyKey', str, True, False),
3026 ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False)
3027 ]
3028
3029 def __init__(self,
3030 maxSkew, # type: int
3031 topologyKey, # type: str
3032 whenUnsatisfiable, # type: str
3033 labelSelector=_omit, # type: Optional[LabelSelector]
3034 ):
3035 super(TopologySpreadConstraintsItem, self).__init__(
3036 maxSkew=maxSkew,
3037 topologyKey=topologyKey,
3038 whenUnsatisfiable=whenUnsatisfiable,
3039 labelSelector=labelSelector,
3040 )
3041
3042 @property
3043 def labelSelector(self):
3044 # type: () -> LabelSelector
3045 return self._property_impl('labelSelector')
3046
3047 @labelSelector.setter
3048 def labelSelector(self, new_val):
3049 # type: (Optional[LabelSelector]) -> None
3050 self._labelSelector = new_val
3051
3052 @property
3053 def maxSkew(self):
3054 # type: () -> int
3055 return self._property_impl('maxSkew')
3056
3057 @maxSkew.setter
3058 def maxSkew(self, new_val):
3059 # type: (int) -> None
3060 self._maxSkew = new_val
3061
3062 @property
3063 def topologyKey(self):
3064 # type: () -> str
3065 return self._property_impl('topologyKey')
3066
3067 @topologyKey.setter
3068 def topologyKey(self, new_val):
3069 # type: (str) -> None
3070 self._topologyKey = new_val
3071
3072 @property
3073 def whenUnsatisfiable(self):
3074 # type: () -> str
3075 return self._property_impl('whenUnsatisfiable')
3076
3077 @whenUnsatisfiable.setter
3078 def whenUnsatisfiable(self, new_val):
3079 # type: (str) -> None
3080 self._whenUnsatisfiable = new_val
3081
3082
3083 class TopologySpreadConstraintsList(CrdObjectList):
3084 _items_type = TopologySpreadConstraintsItem
3085
3086
3087 class Placement(CrdObject):
3088 _properties = [
3089 ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False),
3090 ('podAffinity', 'podAffinity', 'PodAffinity', False, False),
3091 ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False),
3092 ('tolerations', 'tolerations', 'TolerationsList', False, False),
3093 ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False)
3094 ]
3095
3096 def __init__(self,
3097 nodeAffinity=_omit, # type: Optional[NodeAffinity]
3098 podAffinity=_omit, # type: Optional[PodAffinity]
3099 podAntiAffinity=_omit, # type: Optional[PodAntiAffinity]
3100 tolerations=_omit, # type: Optional[Union[List[TolerationsItem], CrdObjectList]]
3101 topologySpreadConstraints=_omit, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]
3102 ):
3103 super(Placement, self).__init__(
3104 nodeAffinity=nodeAffinity,
3105 podAffinity=podAffinity,
3106 podAntiAffinity=podAntiAffinity,
3107 tolerations=tolerations,
3108 topologySpreadConstraints=topologySpreadConstraints,
3109 )
3110
3111 @property
3112 def nodeAffinity(self):
3113 # type: () -> NodeAffinity
3114 return self._property_impl('nodeAffinity')
3115
3116 @nodeAffinity.setter
3117 def nodeAffinity(self, new_val):
3118 # type: (Optional[NodeAffinity]) -> None
3119 self._nodeAffinity = new_val
3120
3121 @property
3122 def podAffinity(self):
3123 # type: () -> PodAffinity
3124 return self._property_impl('podAffinity')
3125
3126 @podAffinity.setter
3127 def podAffinity(self, new_val):
3128 # type: (Optional[PodAffinity]) -> None
3129 self._podAffinity = new_val
3130
3131 @property
3132 def podAntiAffinity(self):
3133 # type: () -> PodAntiAffinity
3134 return self._property_impl('podAntiAffinity')
3135
3136 @podAntiAffinity.setter
3137 def podAntiAffinity(self, new_val):
3138 # type: (Optional[PodAntiAffinity]) -> None
3139 self._podAntiAffinity = new_val
3140
3141 @property
3142 def tolerations(self):
3143 # type: () -> Union[List[TolerationsItem], CrdObjectList]
3144 return self._property_impl('tolerations')
3145
3146 @tolerations.setter
3147 def tolerations(self, new_val):
3148 # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None
3149 self._tolerations = new_val
3150
3151 @property
3152 def topologySpreadConstraints(self):
3153 # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList]
3154 return self._property_impl('topologySpreadConstraints')
3155
3156 @topologySpreadConstraints.setter
3157 def topologySpreadConstraints(self, new_val):
3158 # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None
3159 self._topologySpreadConstraints = new_val
3160
3161
3162 class PreparePlacement(CrdObject):
3163 _properties = [
3164 ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False),
3165 ('podAffinity', 'podAffinity', 'PodAffinity', False, False),
3166 ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False),
3167 ('tolerations', 'tolerations', 'TolerationsList', False, False),
3168 ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False)
3169 ]
3170
3171 def __init__(self,
3172 nodeAffinity=_omit, # type: Optional[NodeAffinity]
3173 podAffinity=_omit, # type: Optional[PodAffinity]
3174 podAntiAffinity=_omit, # type: Optional[PodAntiAffinity]
3175 tolerations=_omit, # type: Optional[Union[List[TolerationsItem], CrdObjectList]]
3176 topologySpreadConstraints=_omit, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]
3177 ):
3178 super(PreparePlacement, self).__init__(
3179 nodeAffinity=nodeAffinity,
3180 podAffinity=podAffinity,
3181 podAntiAffinity=podAntiAffinity,
3182 tolerations=tolerations,
3183 topologySpreadConstraints=topologySpreadConstraints,
3184 )
3185
3186 @property
3187 def nodeAffinity(self):
3188 # type: () -> NodeAffinity
3189 return self._property_impl('nodeAffinity')
3190
3191 @nodeAffinity.setter
3192 def nodeAffinity(self, new_val):
3193 # type: (Optional[NodeAffinity]) -> None
3194 self._nodeAffinity = new_val
3195
3196 @property
3197 def podAffinity(self):
3198 # type: () -> PodAffinity
3199 return self._property_impl('podAffinity')
3200
3201 @podAffinity.setter
3202 def podAffinity(self, new_val):
3203 # type: (Optional[PodAffinity]) -> None
3204 self._podAffinity = new_val
3205
3206 @property
3207 def podAntiAffinity(self):
3208 # type: () -> PodAntiAffinity
3209 return self._property_impl('podAntiAffinity')
3210
3211 @podAntiAffinity.setter
3212 def podAntiAffinity(self, new_val):
3213 # type: (Optional[PodAntiAffinity]) -> None
3214 self._podAntiAffinity = new_val
3215
3216 @property
3217 def tolerations(self):
3218 # type: () -> Union[List[TolerationsItem], CrdObjectList]
3219 return self._property_impl('tolerations')
3220
3221 @tolerations.setter
3222 def tolerations(self, new_val):
3223 # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None
3224 self._tolerations = new_val
3225
3226 @property
3227 def topologySpreadConstraints(self):
3228 # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList]
3229 return self._property_impl('topologySpreadConstraints')
3230
3231 @topologySpreadConstraints.setter
3232 def topologySpreadConstraints(self, new_val):
3233 # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None
3234 self._topologySpreadConstraints = new_val
3235
3236
3237 class StorageClassDeviceSetsItem(CrdObject):
3238 _properties = [
3239 ('config', 'config', object, False, True),
3240 ('count', 'count', int, True, False),
3241 ('encrypted', 'encrypted', bool, False, False),
3242 ('name', 'name', str, True, False),
3243 ('placement', 'placement', 'Placement', False, True),
3244 ('portable', 'portable', bool, False, False),
3245 ('preparePlacement', 'preparePlacement', 'PreparePlacement', False, True),
3246 ('resources', 'resources', 'Resources', False, True),
3247 ('schedulerName', 'schedulerName', str, False, False),
3248 ('tuneDeviceClass', 'tuneDeviceClass', bool, False, False),
3249 ('tuneFastDeviceClass', 'tuneFastDeviceClass', bool, False, False),
3250 ('volumeClaimTemplates', 'volumeClaimTemplates', 'VolumeClaimTemplatesList', True, False)
3251 ]
3252
3253 def __init__(self,
3254 count, # type: int
3255 name, # type: str
3256 volumeClaimTemplates, # type: Union[List[VolumeClaimTemplatesItem], CrdObjectList]
3257 config=_omit, # type: Optional[Any]
3258 encrypted=_omit, # type: Optional[bool]
3259 placement=_omit, # type: Optional[Placement]
3260 portable=_omit, # type: Optional[bool]
3261 preparePlacement=_omit, # type: Optional[PreparePlacement]
3262 resources=_omit, # type: Optional[Resources]
3263 schedulerName=_omit, # type: Optional[str]
3264 tuneDeviceClass=_omit, # type: Optional[bool]
3265 tuneFastDeviceClass=_omit, # type: Optional[bool]
3266 ):
3267 super(StorageClassDeviceSetsItem, self).__init__(
3268 count=count,
3269 name=name,
3270 volumeClaimTemplates=volumeClaimTemplates,
3271 config=config,
3272 encrypted=encrypted,
3273 placement=placement,
3274 portable=portable,
3275 preparePlacement=preparePlacement,
3276 resources=resources,
3277 schedulerName=schedulerName,
3278 tuneDeviceClass=tuneDeviceClass,
3279 tuneFastDeviceClass=tuneFastDeviceClass,
3280 )
3281
3282 @property
3283 def config(self):
3284 # type: () -> Optional[Any]
3285 return self._property_impl('config')
3286
3287 @config.setter
3288 def config(self, new_val):
3289 # type: (Optional[Any]) -> None
3290 self._config = new_val
3291
3292 @property
3293 def count(self):
3294 # type: () -> int
3295 return self._property_impl('count')
3296
3297 @count.setter
3298 def count(self, new_val):
3299 # type: (int) -> None
3300 self._count = new_val
3301
3302 @property
3303 def encrypted(self):
3304 # type: () -> bool
3305 return self._property_impl('encrypted')
3306
3307 @encrypted.setter
3308 def encrypted(self, new_val):
3309 # type: (Optional[bool]) -> None
3310 self._encrypted = new_val
3311
3312 @property
3313 def name(self):
3314 # type: () -> str
3315 return self._property_impl('name')
3316
3317 @name.setter
3318 def name(self, new_val):
3319 # type: (str) -> None
3320 self._name = new_val
3321
3322 @property
3323 def placement(self):
3324 # type: () -> Optional[Placement]
3325 return self._property_impl('placement')
3326
3327 @placement.setter
3328 def placement(self, new_val):
3329 # type: (Optional[Placement]) -> None
3330 self._placement = new_val
3331
3332 @property
3333 def portable(self):
3334 # type: () -> bool
3335 return self._property_impl('portable')
3336
3337 @portable.setter
3338 def portable(self, new_val):
3339 # type: (Optional[bool]) -> None
3340 self._portable = new_val
3341
3342 @property
3343 def preparePlacement(self):
3344 # type: () -> Optional[PreparePlacement]
3345 return self._property_impl('preparePlacement')
3346
3347 @preparePlacement.setter
3348 def preparePlacement(self, new_val):
3349 # type: (Optional[PreparePlacement]) -> None
3350 self._preparePlacement = new_val
3351
3352 @property
3353 def resources(self):
3354 # type: () -> Optional[Resources]
3355 return self._property_impl('resources')
3356
3357 @resources.setter
3358 def resources(self, new_val):
3359 # type: (Optional[Resources]) -> None
3360 self._resources = new_val
3361
3362 @property
3363 def schedulerName(self):
3364 # type: () -> str
3365 return self._property_impl('schedulerName')
3366
3367 @schedulerName.setter
3368 def schedulerName(self, new_val):
3369 # type: (Optional[str]) -> None
3370 self._schedulerName = new_val
3371
3372 @property
3373 def tuneDeviceClass(self):
3374 # type: () -> bool
3375 return self._property_impl('tuneDeviceClass')
3376
3377 @tuneDeviceClass.setter
3378 def tuneDeviceClass(self, new_val):
3379 # type: (Optional[bool]) -> None
3380 self._tuneDeviceClass = new_val
3381
3382 @property
3383 def tuneFastDeviceClass(self):
3384 # type: () -> bool
3385 return self._property_impl('tuneFastDeviceClass')
3386
3387 @tuneFastDeviceClass.setter
3388 def tuneFastDeviceClass(self, new_val):
3389 # type: (Optional[bool]) -> None
3390 self._tuneFastDeviceClass = new_val
3391
3392 @property
3393 def volumeClaimTemplates(self):
3394 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
3395 return self._property_impl('volumeClaimTemplates')
3396
3397 @volumeClaimTemplates.setter
3398 def volumeClaimTemplates(self, new_val):
3399 # type: (Union[List[VolumeClaimTemplatesItem], CrdObjectList]) -> None
3400 self._volumeClaimTemplates = new_val
3401
3402
3403 class StorageClassDeviceSetsList(CrdObjectList):
3404 _items_type = StorageClassDeviceSetsItem
3405
3406
3407 class Storage(CrdObject):
3408 _properties = [
3409 ('deviceClasses', 'deviceClasses', 'DeviceClassesList', False, False),
3410 ('config', 'config', object, False, True),
3411 ('deviceFilter', 'deviceFilter', str, False, False),
3412 ('devicePathFilter', 'devicePathFilter', str, False, False),
3413 ('devices', 'devices', 'DevicesList', False, True),
3414 ('nodes', 'nodes', 'NodesList', False, True),
3415 ('storageClassDeviceSets', 'storageClassDeviceSets', 'StorageClassDeviceSetsList', False, True),
3416 ('useAllDevices', 'useAllDevices', bool, False, False),
3417 ('useAllNodes', 'useAllNodes', bool, False, False),
3418 ('volumeClaimTemplates', 'volumeClaimTemplates', 'VolumeClaimTemplatesList', False, False)
3419 ]
3420
3421 def __init__(self,
3422 deviceClasses=_omit, # type: Optional[Union[List[DeviceClassesItem], CrdObjectList]]
3423 config=_omit, # type: Optional[Any]
3424 deviceFilter=_omit, # type: Optional[str]
3425 devicePathFilter=_omit, # type: Optional[str]
3426 devices=_omit, # type: Optional[Union[List[DevicesItem], CrdObjectList]]
3427 nodes=_omit, # type: Optional[Union[List[NodesItem], CrdObjectList]]
3428 storageClassDeviceSets=_omit, # type: Optional[Union[List[StorageClassDeviceSetsItem], CrdObjectList]]
3429 useAllDevices=_omit, # type: Optional[bool]
3430 useAllNodes=_omit, # type: Optional[bool]
3431 volumeClaimTemplates=_omit, # type: Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]
3432 ):
3433 super(Storage, self).__init__(
3434 deviceClasses=deviceClasses,
3435 config=config,
3436 deviceFilter=deviceFilter,
3437 devicePathFilter=devicePathFilter,
3438 devices=devices,
3439 nodes=nodes,
3440 storageClassDeviceSets=storageClassDeviceSets,
3441 useAllDevices=useAllDevices,
3442 useAllNodes=useAllNodes,
3443 volumeClaimTemplates=volumeClaimTemplates,
3444 )
3445
3446 @property
3447 def deviceClasses(self):
3448 # type: () -> Union[List[DeviceClassesItem], CrdObjectList]
3449 return self._property_impl('deviceClasses')
3450
3451 @deviceClasses.setter
3452 def deviceClasses(self, new_val):
3453 # type: (Optional[Union[List[DeviceClassesItem], CrdObjectList]]) -> None
3454 self._deviceClasses = new_val
3455
3456 @property
3457 def config(self):
3458 # type: () -> Optional[Any]
3459 return self._property_impl('config')
3460
3461 @config.setter
3462 def config(self, new_val):
3463 # type: (Optional[Any]) -> None
3464 self._config = new_val
3465
3466 @property
3467 def deviceFilter(self):
3468 # type: () -> str
3469 return self._property_impl('deviceFilter')
3470
3471 @deviceFilter.setter
3472 def deviceFilter(self, new_val):
3473 # type: (Optional[str]) -> None
3474 self._deviceFilter = new_val
3475
3476 @property
3477 def devicePathFilter(self):
3478 # type: () -> str
3479 return self._property_impl('devicePathFilter')
3480
3481 @devicePathFilter.setter
3482 def devicePathFilter(self, new_val):
3483 # type: (Optional[str]) -> None
3484 self._devicePathFilter = new_val
3485
3486 @property
3487 def devices(self):
3488 # type: () -> Optional[Union[List[DevicesItem], CrdObjectList]]
3489 return self._property_impl('devices')
3490
3491 @devices.setter
3492 def devices(self, new_val):
3493 # type: (Optional[Union[List[DevicesItem], CrdObjectList]]) -> None
3494 self._devices = new_val
3495
3496 @property
3497 def nodes(self):
3498 # type: () -> Optional[Union[List[NodesItem], CrdObjectList]]
3499 return self._property_impl('nodes')
3500
3501 @nodes.setter
3502 def nodes(self, new_val):
3503 # type: (Optional[Union[List[NodesItem], CrdObjectList]]) -> None
3504 self._nodes = new_val
3505
3506 @property
3507 def storageClassDeviceSets(self):
3508 # type: () -> Optional[Union[List[StorageClassDeviceSetsItem], CrdObjectList]]
3509 return self._property_impl('storageClassDeviceSets')
3510
3511 @storageClassDeviceSets.setter
3512 def storageClassDeviceSets(self, new_val):
3513 # type: (Optional[Union[List[StorageClassDeviceSetsItem], CrdObjectList]]) -> None
3514 self._storageClassDeviceSets = new_val
3515
3516 @property
3517 def useAllDevices(self):
3518 # type: () -> bool
3519 return self._property_impl('useAllDevices')
3520
3521 @useAllDevices.setter
3522 def useAllDevices(self, new_val):
3523 # type: (Optional[bool]) -> None
3524 self._useAllDevices = new_val
3525
3526 @property
3527 def useAllNodes(self):
3528 # type: () -> bool
3529 return self._property_impl('useAllNodes')
3530
3531 @useAllNodes.setter
3532 def useAllNodes(self, new_val):
3533 # type: (Optional[bool]) -> None
3534 self._useAllNodes = new_val
3535
3536 @property
3537 def volumeClaimTemplates(self):
3538 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
3539 return self._property_impl('volumeClaimTemplates')
3540
3541 @volumeClaimTemplates.setter
3542 def volumeClaimTemplates(self, new_val):
3543 # type: (Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]) -> None
3544 self._volumeClaimTemplates = new_val
3545
3546
3547 class Capacity(CrdObject):
3548 _properties = [
3549 ('bytesAvailable', 'bytesAvailable', int, False, False),
3550 ('bytesTotal', 'bytesTotal', int, False, False),
3551 ('bytesUsed', 'bytesUsed', int, False, False),
3552 ('lastUpdated', 'lastUpdated', str, False, False)
3553 ]
3554
3555 def __init__(self,
3556 bytesAvailable=_omit, # type: Optional[int]
3557 bytesTotal=_omit, # type: Optional[int]
3558 bytesUsed=_omit, # type: Optional[int]
3559 lastUpdated=_omit, # type: Optional[str]
3560 ):
3561 super(Capacity, self).__init__(
3562 bytesAvailable=bytesAvailable,
3563 bytesTotal=bytesTotal,
3564 bytesUsed=bytesUsed,
3565 lastUpdated=lastUpdated,
3566 )
3567
3568 @property
3569 def bytesAvailable(self):
3570 # type: () -> int
3571 return self._property_impl('bytesAvailable')
3572
3573 @bytesAvailable.setter
3574 def bytesAvailable(self, new_val):
3575 # type: (Optional[int]) -> None
3576 self._bytesAvailable = new_val
3577
3578 @property
3579 def bytesTotal(self):
3580 # type: () -> int
3581 return self._property_impl('bytesTotal')
3582
3583 @bytesTotal.setter
3584 def bytesTotal(self, new_val):
3585 # type: (Optional[int]) -> None
3586 self._bytesTotal = new_val
3587
3588 @property
3589 def bytesUsed(self):
3590 # type: () -> int
3591 return self._property_impl('bytesUsed')
3592
3593 @bytesUsed.setter
3594 def bytesUsed(self, new_val):
3595 # type: (Optional[int]) -> None
3596 self._bytesUsed = new_val
3597
3598 @property
3599 def lastUpdated(self):
3600 # type: () -> str
3601 return self._property_impl('lastUpdated')
3602
3603 @lastUpdated.setter
3604 def lastUpdated(self, new_val):
3605 # type: (Optional[str]) -> None
3606 self._lastUpdated = new_val
3607
3608
3609 class Versions(CrdObject):
3610 _properties = [
3611 ('cephfs-mirror', 'cephfs_mirror', object, False, False),
3612 ('mds', 'mds', object, False, False),
3613 ('mgr', 'mgr', object, False, False),
3614 ('mon', 'mon', object, False, False),
3615 ('osd', 'osd', object, False, False),
3616 ('overall', 'overall', object, False, False),
3617 ('rbd-mirror', 'rbd_mirror', object, False, False),
3618 ('rgw', 'rgw', object, False, False)
3619 ]
3620
3621 def __init__(self,
3622 cephfs_mirror=_omit, # type: Optional[Any]
3623 mds=_omit, # type: Optional[Any]
3624 mgr=_omit, # type: Optional[Any]
3625 mon=_omit, # type: Optional[Any]
3626 osd=_omit, # type: Optional[Any]
3627 overall=_omit, # type: Optional[Any]
3628 rbd_mirror=_omit, # type: Optional[Any]
3629 rgw=_omit, # type: Optional[Any]
3630 ):
3631 super(Versions, self).__init__(
3632 cephfs_mirror=cephfs_mirror,
3633 mds=mds,
3634 mgr=mgr,
3635 mon=mon,
3636 osd=osd,
3637 overall=overall,
3638 rbd_mirror=rbd_mirror,
3639 rgw=rgw,
3640 )
3641
3642 @property
3643 def cephfs_mirror(self):
3644 # type: () -> Any
3645 return self._property_impl('cephfs_mirror')
3646
3647 @cephfs_mirror.setter
3648 def cephfs_mirror(self, new_val):
3649 # type: (Optional[Any]) -> None
3650 self._cephfs_mirror = new_val
3651
3652 @property
3653 def mds(self):
3654 # type: () -> Any
3655 return self._property_impl('mds')
3656
3657 @mds.setter
3658 def mds(self, new_val):
3659 # type: (Optional[Any]) -> None
3660 self._mds = new_val
3661
3662 @property
3663 def mgr(self):
3664 # type: () -> Any
3665 return self._property_impl('mgr')
3666
3667 @mgr.setter
3668 def mgr(self, new_val):
3669 # type: (Optional[Any]) -> None
3670 self._mgr = new_val
3671
3672 @property
3673 def mon(self):
3674 # type: () -> Any
3675 return self._property_impl('mon')
3676
3677 @mon.setter
3678 def mon(self, new_val):
3679 # type: (Optional[Any]) -> None
3680 self._mon = new_val
3681
3682 @property
3683 def osd(self):
3684 # type: () -> Any
3685 return self._property_impl('osd')
3686
3687 @osd.setter
3688 def osd(self, new_val):
3689 # type: (Optional[Any]) -> None
3690 self._osd = new_val
3691
3692 @property
3693 def overall(self):
3694 # type: () -> Any
3695 return self._property_impl('overall')
3696
3697 @overall.setter
3698 def overall(self, new_val):
3699 # type: (Optional[Any]) -> None
3700 self._overall = new_val
3701
3702 @property
3703 def rbd_mirror(self):
3704 # type: () -> Any
3705 return self._property_impl('rbd_mirror')
3706
3707 @rbd_mirror.setter
3708 def rbd_mirror(self, new_val):
3709 # type: (Optional[Any]) -> None
3710 self._rbd_mirror = new_val
3711
3712 @property
3713 def rgw(self):
3714 # type: () -> Any
3715 return self._property_impl('rgw')
3716
3717 @rgw.setter
3718 def rgw(self, new_val):
3719 # type: (Optional[Any]) -> None
3720 self._rgw = new_val
3721
3722
3723 class Ceph(CrdObject):
3724 _properties = [
3725 ('capacity', 'capacity', 'Capacity', False, False),
3726 ('details', 'details', object, False, False),
3727 ('health', 'health', str, False, False),
3728 ('lastChanged', 'lastChanged', str, False, False),
3729 ('lastChecked', 'lastChecked', str, False, False),
3730 ('previousHealth', 'previousHealth', str, False, False),
3731 ('versions', 'versions', 'Versions', False, False)
3732 ]
3733
3734 def __init__(self,
3735 capacity=_omit, # type: Optional[Capacity]
3736 details=_omit, # type: Optional[Any]
3737 health=_omit, # type: Optional[str]
3738 lastChanged=_omit, # type: Optional[str]
3739 lastChecked=_omit, # type: Optional[str]
3740 previousHealth=_omit, # type: Optional[str]
3741 versions=_omit, # type: Optional[Versions]
3742 ):
3743 super(Ceph, self).__init__(
3744 capacity=capacity,
3745 details=details,
3746 health=health,
3747 lastChanged=lastChanged,
3748 lastChecked=lastChecked,
3749 previousHealth=previousHealth,
3750 versions=versions,
3751 )
3752
3753 @property
3754 def capacity(self):
3755 # type: () -> Capacity
3756 return self._property_impl('capacity')
3757
3758 @capacity.setter
3759 def capacity(self, new_val):
3760 # type: (Optional[Capacity]) -> None
3761 self._capacity = new_val
3762
3763 @property
3764 def details(self):
3765 # type: () -> Any
3766 return self._property_impl('details')
3767
3768 @details.setter
3769 def details(self, new_val):
3770 # type: (Optional[Any]) -> None
3771 self._details = new_val
3772
3773 @property
3774 def health(self):
3775 # type: () -> str
3776 return self._property_impl('health')
3777
3778 @health.setter
3779 def health(self, new_val):
3780 # type: (Optional[str]) -> None
3781 self._health = new_val
3782
3783 @property
3784 def lastChanged(self):
3785 # type: () -> str
3786 return self._property_impl('lastChanged')
3787
3788 @lastChanged.setter
3789 def lastChanged(self, new_val):
3790 # type: (Optional[str]) -> None
3791 self._lastChanged = new_val
3792
3793 @property
3794 def lastChecked(self):
3795 # type: () -> str
3796 return self._property_impl('lastChecked')
3797
3798 @lastChecked.setter
3799 def lastChecked(self, new_val):
3800 # type: (Optional[str]) -> None
3801 self._lastChecked = new_val
3802
3803 @property
3804 def previousHealth(self):
3805 # type: () -> str
3806 return self._property_impl('previousHealth')
3807
3808 @previousHealth.setter
3809 def previousHealth(self, new_val):
3810 # type: (Optional[str]) -> None
3811 self._previousHealth = new_val
3812
3813 @property
3814 def versions(self):
3815 # type: () -> Versions
3816 return self._property_impl('versions')
3817
3818 @versions.setter
3819 def versions(self, new_val):
3820 # type: (Optional[Versions]) -> None
3821 self._versions = new_val
3822
3823
3824 class DeviceClassesItem(CrdObject):
3825 _properties = [
3826 ('name', 'name', str, False, False)
3827 ]
3828
3829 def __init__(self,
3830 name=_omit, # type: Optional[str]
3831 ):
3832 super(DeviceClassesItem, self).__init__(
3833 name=name,
3834 )
3835
3836 @property
3837 def name(self):
3838 # type: () -> str
3839 return self._property_impl('name')
3840
3841 @name.setter
3842 def name(self, new_val):
3843 # type: (Optional[str]) -> None
3844 self._name = new_val
3845
3846
3847 class DeviceClassesList(CrdObjectList):
3848 _items_type = DeviceClassesItem
3849
3850
3851 class Version(CrdObject):
3852 _properties = [
3853 ('image', 'image', str, False, False),
3854 ('version', 'version', str, False, False)
3855 ]
3856
3857 def __init__(self,
3858 image=_omit, # type: Optional[str]
3859 version=_omit, # type: Optional[str]
3860 ):
3861 super(Version, self).__init__(
3862 image=image,
3863 version=version,
3864 )
3865
3866 @property
3867 def image(self):
3868 # type: () -> str
3869 return self._property_impl('image')
3870
3871 @image.setter
3872 def image(self, new_val):
3873 # type: (Optional[str]) -> None
3874 self._image = new_val
3875
3876 @property
3877 def version(self):
3878 # type: () -> str
3879 return self._property_impl('version')
3880
3881 @version.setter
3882 def version(self, new_val):
3883 # type: (Optional[str]) -> None
3884 self._version = new_val
3885
3886
3887 class CephCluster(CrdClass):
3888 _properties = [
3889 ('apiVersion', 'apiVersion', str, False, False),
3890 ('kind', 'kind', str, False, False),
3891 ('metadata', 'metadata', object, False, False),
3892 ('spec', 'spec', 'Spec', True, False),
3893 ('status', 'status', 'Status', False, True)
3894 ]
3895
3896 def __init__(self,
3897 spec, # type: Spec
3898 apiVersion=_omit, # type: Optional[str]
3899 kind=_omit, # type: Optional[str]
3900 metadata=_omit, # type: Optional[Any]
3901 status=_omit, # type: Optional[Status]
3902 ):
3903 super(CephCluster, self).__init__(
3904 spec=spec,
3905 apiVersion=apiVersion,
3906 kind=kind,
3907 metadata=metadata,
3908 status=status,
3909 )
3910
3911 @property
3912 def apiVersion(self):
3913 # type: () -> str
3914 return self._property_impl('apiVersion')
3915
3916 @apiVersion.setter
3917 def apiVersion(self, new_val):
3918 # type: (Optional[str]) -> None
3919 self._apiVersion = new_val
3920
3921 @property
3922 def kind(self):
3923 # type: () -> str
3924 return self._property_impl('kind')
3925
3926 @kind.setter
3927 def kind(self, new_val):
3928 # type: (Optional[str]) -> None
3929 self._kind = new_val
3930
3931 @property
3932 def metadata(self):
3933 # type: () -> Any
3934 return self._property_impl('metadata')
3935
3936 @metadata.setter
3937 def metadata(self, new_val):
3938 # type: (Optional[Any]) -> None
3939 self._metadata = new_val
3940
3941 @property
3942 def spec(self):
3943 # type: () -> Spec
3944 return self._property_impl('spec')
3945
3946 @spec.setter
3947 def spec(self, new_val):
3948 # type: (Spec) -> None
3949 self._spec = new_val
3950
3951 @property
3952 def status(self):
3953 # type: () -> Optional[Status]
3954 return self._property_impl('status')
3955
3956 @status.setter
3957 def status(self, new_val):
3958 # type: (Optional[Status]) -> None
3959 self._status = new_val