2 This file is automatically generated.
7 from typing
import Any
, Optional
, Union
, List
11 from .._helper
import _omit
, CrdObject
, CrdObjectList
, CrdClass
13 class CephVersion(CrdObject
):
15 ('allowUnsupported', 'allowUnsupported', bool, False, False),
16 ('image', 'image', str, False, False)
20 allowUnsupported
=_omit
, # type: Optional[bool]
21 image
=_omit
, # type: Optional[str]
23 super(CephVersion
, self
).__init
__(
24 allowUnsupported
=allowUnsupported
,
29 def allowUnsupported(self
):
31 return self
._property
_impl
('allowUnsupported')
33 @allowUnsupported.setter
34 def allowUnsupported(self
, new_val
):
35 # type: (Optional[bool]) -> None
36 self
._allowUnsupported
= new_val
41 return self
._property
_impl
('image')
44 def image(self
, new_val
):
45 # type: (Optional[str]) -> None
49 class SanitizeDisks(CrdObject
):
51 ('dataSource', 'dataSource', str, False, False),
52 ('iteration', 'iteration', int, False, False),
53 ('method', 'method', str, False, False)
57 dataSource
=_omit
, # type: Optional[str]
58 iteration
=_omit
, # type: Optional[int]
59 method
=_omit
, # type: Optional[str]
61 super(SanitizeDisks
, self
).__init
__(
62 dataSource
=dataSource
,
70 return self
._property
_impl
('dataSource')
73 def dataSource(self
, new_val
):
74 # type: (Optional[str]) -> None
75 self
._dataSource
= new_val
80 return self
._property
_impl
('iteration')
83 def iteration(self
, new_val
):
84 # type: (Optional[int]) -> None
85 self
._iteration
= new_val
90 return self
._property
_impl
('method')
93 def method(self
, new_val
):
94 # type: (Optional[str]) -> None
95 self
._method
= new_val
98 class CleanupPolicy(CrdObject
):
100 ('allowUninstallWithVolumes', 'allowUninstallWithVolumes', bool, False, False),
101 ('confirmation', 'confirmation', str, False, True),
102 ('sanitizeDisks', 'sanitizeDisks', 'SanitizeDisks', False, True)
106 allowUninstallWithVolumes
=_omit
, # type: Optional[bool]
107 confirmation
=_omit
, # type: Optional[str]
108 sanitizeDisks
=_omit
, # type: Optional[SanitizeDisks]
110 super(CleanupPolicy
, self
).__init
__(
111 allowUninstallWithVolumes
=allowUninstallWithVolumes
,
112 confirmation
=confirmation
,
113 sanitizeDisks
=sanitizeDisks
,
117 def allowUninstallWithVolumes(self
):
119 return self
._property
_impl
('allowUninstallWithVolumes')
121 @allowUninstallWithVolumes.setter
122 def allowUninstallWithVolumes(self
, new_val
):
123 # type: (Optional[bool]) -> None
124 self
._allowUninstallWithVolumes
= new_val
127 def confirmation(self
):
128 # type: () -> Optional[str]
129 return self
._property
_impl
('confirmation')
132 def confirmation(self
, new_val
):
133 # type: (Optional[str]) -> None
134 self
._confirmation
= new_val
137 def sanitizeDisks(self
):
138 # type: () -> Optional[SanitizeDisks]
139 return self
._property
_impl
('sanitizeDisks')
141 @sanitizeDisks.setter
142 def sanitizeDisks(self
, new_val
):
143 # type: (Optional[SanitizeDisks]) -> None
144 self
._sanitizeDisks
= new_val
147 class CrashCollector(CrdObject
):
149 ('daysToRetain', 'daysToRetain', int, False, False),
150 ('disable', 'disable', bool, False, False)
154 daysToRetain
=_omit
, # type: Optional[int]
155 disable
=_omit
, # type: Optional[bool]
157 super(CrashCollector
, self
).__init
__(
158 daysToRetain
=daysToRetain
,
163 def daysToRetain(self
):
165 return self
._property
_impl
('daysToRetain')
168 def daysToRetain(self
, new_val
):
169 # type: (Optional[int]) -> None
170 self
._daysToRetain
= new_val
175 return self
._property
_impl
('disable')
178 def disable(self
, new_val
):
179 # type: (Optional[bool]) -> None
180 self
._disable
= new_val
183 class Dashboard(CrdObject
):
185 ('enabled', 'enabled', bool, False, False),
186 ('port', 'port', int, False, False),
187 ('ssl', 'ssl', bool, False, False),
188 ('urlPrefix', 'urlPrefix', str, False, False)
192 enabled
=_omit
, # type: Optional[bool]
193 port
=_omit
, # type: Optional[int]
194 ssl
=_omit
, # type: Optional[bool]
195 urlPrefix
=_omit
, # type: Optional[str]
197 super(Dashboard
, self
).__init
__(
207 return self
._property
_impl
('enabled')
210 def enabled(self
, new_val
):
211 # type: (Optional[bool]) -> None
212 self
._enabled
= new_val
217 return self
._property
_impl
('port')
220 def port(self
, new_val
):
221 # type: (Optional[int]) -> None
227 return self
._property
_impl
('ssl')
230 def ssl(self
, new_val
):
231 # type: (Optional[bool]) -> None
237 return self
._property
_impl
('urlPrefix')
240 def urlPrefix(self
, new_val
):
241 # type: (Optional[str]) -> None
242 self
._urlPrefix
= new_val
245 class DisruptionManagement(CrdObject
):
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)
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]
261 super(DisruptionManagement
, self
).__init
__(
262 machineDisruptionBudgetNamespace
=machineDisruptionBudgetNamespace
,
263 manageMachineDisruptionBudgets
=manageMachineDisruptionBudgets
,
264 managePodBudgets
=managePodBudgets
,
265 osdMaintenanceTimeout
=osdMaintenanceTimeout
,
266 pgHealthCheckTimeout
=pgHealthCheckTimeout
,
270 def machineDisruptionBudgetNamespace(self
):
272 return self
._property
_impl
('machineDisruptionBudgetNamespace')
274 @machineDisruptionBudgetNamespace.setter
275 def machineDisruptionBudgetNamespace(self
, new_val
):
276 # type: (Optional[str]) -> None
277 self
._machineDisruptionBudgetNamespace
= new_val
280 def manageMachineDisruptionBudgets(self
):
282 return self
._property
_impl
('manageMachineDisruptionBudgets')
284 @manageMachineDisruptionBudgets.setter
285 def manageMachineDisruptionBudgets(self
, new_val
):
286 # type: (Optional[bool]) -> None
287 self
._manageMachineDisruptionBudgets
= new_val
290 def managePodBudgets(self
):
292 return self
._property
_impl
('managePodBudgets')
294 @managePodBudgets.setter
295 def managePodBudgets(self
, new_val
):
296 # type: (Optional[bool]) -> None
297 self
._managePodBudgets
= new_val
300 def osdMaintenanceTimeout(self
):
302 return self
._property
_impl
('osdMaintenanceTimeout')
304 @osdMaintenanceTimeout.setter
305 def osdMaintenanceTimeout(self
, new_val
):
306 # type: (Optional[int]) -> None
307 self
._osdMaintenanceTimeout
= new_val
310 def pgHealthCheckTimeout(self
):
312 return self
._property
_impl
('pgHealthCheckTimeout')
314 @pgHealthCheckTimeout.setter
315 def pgHealthCheckTimeout(self
, new_val
):
316 # type: (Optional[int]) -> None
317 self
._pgHealthCheckTimeout
= new_val
320 class External(CrdObject
):
322 ('enable', 'enable', bool, False, False)
326 enable
=_omit
, # type: Optional[bool]
328 super(External
, self
).__init
__(
335 return self
._property
_impl
('enable')
338 def enable(self
, new_val
):
339 # type: (Optional[bool]) -> None
340 self
._enable
= new_val
343 class Mon(CrdObject
):
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)
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]
363 super(Mon
, self
).__init
__(
364 allowMultiplePerNode
=allowMultiplePerNode
,
366 stretchCluster
=stretchCluster
,
367 volumeClaimTemplate
=volumeClaimTemplate
,
374 def allowMultiplePerNode(self
):
376 return self
._property
_impl
('allowMultiplePerNode')
378 @allowMultiplePerNode.setter
379 def allowMultiplePerNode(self
, new_val
):
380 # type: (Optional[bool]) -> None
381 self
._allowMultiplePerNode
= new_val
386 return self
._property
_impl
('count')
389 def count(self
, new_val
):
390 # type: (Optional[int]) -> None
391 self
._count
= new_val
394 def stretchCluster(self
):
395 # type: () -> StretchCluster
396 return self
._property
_impl
('stretchCluster')
398 @stretchCluster.setter
399 def stretchCluster(self
, new_val
):
400 # type: (Optional[StretchCluster]) -> None
401 self
._stretchCluster
= new_val
404 def volumeClaimTemplate(self
):
405 # type: () -> VolumeClaimTemplate
406 return self
._property
_impl
('volumeClaimTemplate')
408 @volumeClaimTemplate.setter
409 def volumeClaimTemplate(self
, new_val
):
410 # type: (Optional[VolumeClaimTemplate]) -> None
411 self
._volumeClaimTemplate
= new_val
416 return self
._property
_impl
('disabled')
419 def disabled(self
, new_val
):
420 # type: (Optional[bool]) -> None
421 self
._disabled
= new_val
426 return self
._property
_impl
('interval')
429 def interval(self
, new_val
):
430 # type: (Optional[str]) -> None
431 self
._interval
= new_val
436 return self
._property
_impl
('timeout')
439 def timeout(self
, new_val
):
440 # type: (Optional[str]) -> None
441 self
._timeout
= new_val
444 class Osd(CrdObject
):
446 ('disabled', 'disabled', bool, False, False),
447 ('interval', 'interval', str, False, False),
448 ('timeout', 'timeout', str, False, False)
452 disabled
=_omit
, # type: Optional[bool]
453 interval
=_omit
, # type: Optional[str]
454 timeout
=_omit
, # type: Optional[str]
456 super(Osd
, self
).__init
__(
465 return self
._property
_impl
('disabled')
468 def disabled(self
, new_val
):
469 # type: (Optional[bool]) -> None
470 self
._disabled
= new_val
475 return self
._property
_impl
('interval')
478 def interval(self
, new_val
):
479 # type: (Optional[str]) -> None
480 self
._interval
= new_val
485 return self
._property
_impl
('timeout')
488 def timeout(self
, new_val
):
489 # type: (Optional[str]) -> None
490 self
._timeout
= new_val
493 class Status(CrdObject
):
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)
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]
523 super(Status
, self
).__init
__(
525 conditions
=conditions
,
531 accessModes
=accessModes
,
541 return self
._property
_impl
('ceph')
544 def ceph(self
, new_val
):
545 # type: (Optional[Ceph]) -> None
549 def conditions(self
):
550 # type: () -> Union[List[ConditionsItem], CrdObjectList]
551 return self
._property
_impl
('conditions')
554 def conditions(self
, new_val
):
555 # type: (Optional[Union[List[ConditionsItem], CrdObjectList]]) -> None
556 self
._conditions
= new_val
561 return self
._property
_impl
('message')
564 def message(self
, new_val
):
565 # type: (Optional[str]) -> None
566 self
._message
= new_val
571 return self
._property
_impl
('phase')
574 def phase(self
, new_val
):
575 # type: (Optional[str]) -> None
576 self
._phase
= new_val
581 return self
._property
_impl
('state')
584 def state(self
, new_val
):
585 # type: (Optional[str]) -> None
586 self
._state
= new_val
590 # type: () -> Storage
591 return self
._property
_impl
('storage')
594 def storage(self
, new_val
):
595 # type: (Optional[Storage]) -> None
596 self
._storage
= new_val
600 # type: () -> Version
601 return self
._property
_impl
('version')
604 def version(self
, new_val
):
605 # type: (Optional[Version]) -> None
606 self
._version
= new_val
609 def accessModes(self
):
610 # type: () -> Union[List[str], CrdObjectList]
611 return self
._property
_impl
('accessModes')
614 def accessModes(self
, new_val
):
615 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
616 self
._accessModes
= new_val
621 return self
._property
_impl
('capacity')
624 def capacity(self
, new_val
):
625 # type: (Optional[Any]) -> None
626 self
._capacity
= new_val
631 return self
._property
_impl
('disabled')
634 def disabled(self
, new_val
):
635 # type: (Optional[bool]) -> None
636 self
._disabled
= new_val
641 return self
._property
_impl
('interval')
644 def interval(self
, new_val
):
645 # type: (Optional[str]) -> None
646 self
._interval
= new_val
651 return self
._property
_impl
('timeout')
654 def timeout(self
, new_val
):
655 # type: (Optional[str]) -> None
656 self
._timeout
= new_val
659 class DaemonHealth(CrdObject
):
661 ('mon', 'mon', 'Mon', False, True),
662 ('osd', 'osd', 'Osd', False, True),
663 ('status', 'status', 'Status', False, True)
667 mon
=_omit
, # type: Optional[Mon]
668 osd
=_omit
, # type: Optional[Osd]
669 status
=_omit
, # type: Optional[Status]
671 super(DaemonHealth
, self
).__init
__(
679 # type: () -> Optional[Mon]
680 return self
._property
_impl
('mon')
683 def mon(self
, new_val
):
684 # type: (Optional[Mon]) -> None
689 # type: () -> Optional[Osd]
690 return self
._property
_impl
('osd')
693 def osd(self
, new_val
):
694 # type: (Optional[Osd]) -> None
699 # type: () -> Optional[Status]
700 return self
._property
_impl
('status')
703 def status(self
, new_val
):
704 # type: (Optional[Status]) -> None
705 self
._status
= new_val
708 class HealthCheck(CrdObject
):
710 ('daemonHealth', 'daemonHealth', 'DaemonHealth', False, True),
711 ('livenessProbe', 'livenessProbe', object, False, False)
715 daemonHealth
=_omit
, # type: Optional[DaemonHealth]
716 livenessProbe
=_omit
, # type: Optional[Any]
718 super(HealthCheck
, self
).__init
__(
719 daemonHealth
=daemonHealth
,
720 livenessProbe
=livenessProbe
,
724 def daemonHealth(self
):
725 # type: () -> Optional[DaemonHealth]
726 return self
._property
_impl
('daemonHealth')
729 def daemonHealth(self
, new_val
):
730 # type: (Optional[DaemonHealth]) -> None
731 self
._daemonHealth
= new_val
734 def livenessProbe(self
):
736 return self
._property
_impl
('livenessProbe')
738 @livenessProbe.setter
739 def livenessProbe(self
, new_val
):
740 # type: (Optional[Any]) -> None
741 self
._livenessProbe
= new_val
744 class LogCollector(CrdObject
):
746 ('enabled', 'enabled', bool, False, False),
747 ('periodicity', 'periodicity', str, False, False)
751 enabled
=_omit
, # type: Optional[bool]
752 periodicity
=_omit
, # type: Optional[str]
754 super(LogCollector
, self
).__init
__(
756 periodicity
=periodicity
,
762 return self
._property
_impl
('enabled')
765 def enabled(self
, new_val
):
766 # type: (Optional[bool]) -> None
767 self
._enabled
= new_val
770 def periodicity(self
):
772 return self
._property
_impl
('periodicity')
775 def periodicity(self
, new_val
):
776 # type: (Optional[str]) -> None
777 self
._periodicity
= new_val
780 class ModulesItem(CrdObject
):
782 ('enabled', 'enabled', bool, False, False),
783 ('name', 'name', str, False, False)
787 enabled
=_omit
, # type: Optional[bool]
788 name
=_omit
, # type: Optional[str]
790 super(ModulesItem
, self
).__init
__(
798 return self
._property
_impl
('enabled')
801 def enabled(self
, new_val
):
802 # type: (Optional[bool]) -> None
803 self
._enabled
= new_val
808 return self
._property
_impl
('name')
811 def name(self
, new_val
):
812 # type: (Optional[str]) -> None
816 class ModulesList(CrdObjectList
):
817 _items_type
= ModulesItem
820 class Mgr(CrdObject
):
822 ('allowMultiplePerNode', 'allowMultiplePerNode', bool, False, False),
823 ('count', 'count', int, False, False),
824 ('modules', 'modules', 'ModulesList', False, True)
828 allowMultiplePerNode
=_omit
, # type: Optional[bool]
829 count
=_omit
, # type: Optional[int]
830 modules
=_omit
, # type: Optional[Union[List[ModulesItem], CrdObjectList]]
832 super(Mgr
, self
).__init
__(
833 allowMultiplePerNode
=allowMultiplePerNode
,
839 def allowMultiplePerNode(self
):
841 return self
._property
_impl
('allowMultiplePerNode')
843 @allowMultiplePerNode.setter
844 def allowMultiplePerNode(self
, new_val
):
845 # type: (Optional[bool]) -> None
846 self
._allowMultiplePerNode
= new_val
851 return self
._property
_impl
('count')
854 def count(self
, new_val
):
855 # type: (Optional[int]) -> None
856 self
._count
= new_val
860 # type: () -> Optional[Union[List[ModulesItem], CrdObjectList]]
861 return self
._property
_impl
('modules')
864 def modules(self
, new_val
):
865 # type: (Optional[Union[List[ModulesItem], CrdObjectList]]) -> None
866 self
._modules
= new_val
869 class FinalizersList(CrdObjectList
):
873 class Metadata(CrdObject
):
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)
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]
889 super(Metadata
, self
).__init
__(
890 annotations
=annotations
,
891 finalizers
=finalizers
,
898 def annotations(self
):
900 return self
._property
_impl
('annotations')
903 def annotations(self
, new_val
):
904 # type: (Optional[Any]) -> None
905 self
._annotations
= new_val
908 def finalizers(self
):
909 # type: () -> Union[List[str], CrdObjectList]
910 return self
._property
_impl
('finalizers')
913 def finalizers(self
, new_val
):
914 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
915 self
._finalizers
= new_val
920 return self
._property
_impl
('labels')
923 def labels(self
, new_val
):
924 # type: (Optional[Any]) -> None
925 self
._labels
= new_val
930 return self
._property
_impl
('name')
933 def name(self
, new_val
):
934 # type: (Optional[str]) -> None
940 return self
._property
_impl
('namespace')
943 def namespace(self
, new_val
):
944 # type: (Optional[str]) -> None
945 self
._namespace
= new_val
948 class AccessModesList(CrdObjectList
):
952 class DataSource(CrdObject
):
954 ('apiGroup', 'apiGroup', str, False, False),
955 ('kind', 'kind', str, True, False),
956 ('name', 'name', str, True, False)
962 apiGroup
=_omit
, # type: Optional[str]
964 super(DataSource
, self
).__init
__(
973 return self
._property
_impl
('apiGroup')
976 def apiGroup(self
, new_val
):
977 # type: (Optional[str]) -> None
978 self
._apiGroup
= new_val
983 return self
._property
_impl
('kind')
986 def kind(self
, new_val
):
987 # type: (str) -> None
993 return self
._property
_impl
('name')
996 def name(self
, new_val
):
997 # type: (str) -> None
1001 class Resources(CrdObject
):
1003 ('limits', 'limits', object, False, False),
1004 ('requests', 'requests', object, False, False)
1008 limits
=_omit
, # type: Optional[Any]
1009 requests
=_omit
, # type: Optional[Any]
1011 super(Resources
, self
).__init
__(
1019 return self
._property
_impl
('limits')
1022 def limits(self
, new_val
):
1023 # type: (Optional[Any]) -> None
1024 self
._limits
= new_val
1029 return self
._property
_impl
('requests')
1032 def requests(self
, new_val
):
1033 # type: (Optional[Any]) -> None
1034 self
._requests
= new_val
1037 class ValuesList(CrdObjectList
):
1041 class MatchExpressionsItem(CrdObject
):
1043 ('key', 'key', str, True, False),
1044 ('operator', 'operator', str, True, False),
1045 ('values', 'values', 'ValuesList', False, False)
1050 operator
, # type: str
1051 values
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
1053 super(MatchExpressionsItem
, self
).__init
__(
1062 return self
._property
_impl
('key')
1065 def key(self
, new_val
):
1066 # type: (str) -> None
1072 return self
._property
_impl
('operator')
1075 def operator(self
, new_val
):
1076 # type: (str) -> None
1077 self
._operator
= new_val
1081 # type: () -> Union[List[str], CrdObjectList]
1082 return self
._property
_impl
('values')
1085 def values(self
, new_val
):
1086 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1087 self
._values
= new_val
1090 class MatchExpressionsList(CrdObjectList
):
1091 _items_type
= MatchExpressionsItem
1094 class Selector(CrdObject
):
1096 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
1097 ('matchLabels', 'matchLabels', object, False, False)
1101 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
1102 matchLabels
=_omit
, # type: Optional[Any]
1104 super(Selector
, self
).__init
__(
1105 matchExpressions
=matchExpressions
,
1106 matchLabels
=matchLabels
,
1110 def matchExpressions(self
):
1111 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
1112 return self
._property
_impl
('matchExpressions')
1114 @matchExpressions.setter
1115 def matchExpressions(self
, new_val
):
1116 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
1117 self
._matchExpressions
= new_val
1120 def matchLabels(self
):
1122 return self
._property
_impl
('matchLabels')
1125 def matchLabels(self
, new_val
):
1126 # type: (Optional[Any]) -> None
1127 self
._matchLabels
= new_val
1130 class Spec(CrdObject
):
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)
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]
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
,
1206 healthCheck
=healthCheck
,
1208 logCollector
=logCollector
,
1211 monitoring
=monitoring
,
1213 placement
=placement
,
1214 priorityClassNames
=priorityClassNames
,
1215 removeOSDsIfOutAndSafeToRemove
=removeOSDsIfOutAndSafeToRemove
,
1216 resources
=resources
,
1218 skipUpgradeChecks
=skipUpgradeChecks
,
1220 waitTimeoutForHealthyOSDInMinutes
=waitTimeoutForHealthyOSDInMinutes
,
1221 accessModes
=accessModes
,
1222 dataSource
=dataSource
,
1224 storageClassName
=storageClassName
,
1225 volumeMode
=volumeMode
,
1226 volumeName
=volumeName
,
1230 def annotations(self
):
1231 # type: () -> Optional[Any]
1232 return self
._property
_impl
('annotations')
1235 def annotations(self
, new_val
):
1236 # type: (Optional[Any]) -> None
1237 self
._annotations
= new_val
1240 def cephVersion(self
):
1241 # type: () -> Optional[CephVersion]
1242 return self
._property
_impl
('cephVersion')
1245 def cephVersion(self
, new_val
):
1246 # type: (Optional[CephVersion]) -> None
1247 self
._cephVersion
= new_val
1250 def cleanupPolicy(self
):
1251 # type: () -> Optional[CleanupPolicy]
1252 return self
._property
_impl
('cleanupPolicy')
1254 @cleanupPolicy.setter
1255 def cleanupPolicy(self
, new_val
):
1256 # type: (Optional[CleanupPolicy]) -> None
1257 self
._cleanupPolicy
= new_val
1260 def continueUpgradeAfterChecksEvenIfNotHealthy(self
):
1262 return self
._property
_impl
('continueUpgradeAfterChecksEvenIfNotHealthy')
1264 @continueUpgradeAfterChecksEvenIfNotHealthy.setter
1265 def continueUpgradeAfterChecksEvenIfNotHealthy(self
, new_val
):
1266 # type: (Optional[bool]) -> None
1267 self
._continueUpgradeAfterChecksEvenIfNotHealthy
= new_val
1270 def crashCollector(self
):
1271 # type: () -> Optional[CrashCollector]
1272 return self
._property
_impl
('crashCollector')
1274 @crashCollector.setter
1275 def crashCollector(self
, new_val
):
1276 # type: (Optional[CrashCollector]) -> None
1277 self
._crashCollector
= new_val
1280 def dashboard(self
):
1281 # type: () -> Optional[Dashboard]
1282 return self
._property
_impl
('dashboard')
1285 def dashboard(self
, new_val
):
1286 # type: (Optional[Dashboard]) -> None
1287 self
._dashboard
= new_val
1290 def dataDirHostPath(self
):
1292 return self
._property
_impl
('dataDirHostPath')
1294 @dataDirHostPath.setter
1295 def dataDirHostPath(self
, new_val
):
1296 # type: (Optional[str]) -> None
1297 self
._dataDirHostPath
= new_val
1300 def disruptionManagement(self
):
1301 # type: () -> Optional[DisruptionManagement]
1302 return self
._property
_impl
('disruptionManagement')
1304 @disruptionManagement.setter
1305 def disruptionManagement(self
, new_val
):
1306 # type: (Optional[DisruptionManagement]) -> None
1307 self
._disruptionManagement
= new_val
1311 # type: () -> Optional[External]
1312 return self
._property
_impl
('external')
1315 def external(self
, new_val
):
1316 # type: (Optional[External]) -> None
1317 self
._external
= new_val
1320 def healthCheck(self
):
1321 # type: () -> Optional[HealthCheck]
1322 return self
._property
_impl
('healthCheck')
1325 def healthCheck(self
, new_val
):
1326 # type: (Optional[HealthCheck]) -> None
1327 self
._healthCheck
= new_val
1331 # type: () -> Optional[Any]
1332 return self
._property
_impl
('labels')
1335 def labels(self
, new_val
):
1336 # type: (Optional[Any]) -> None
1337 self
._labels
= new_val
1340 def logCollector(self
):
1341 # type: () -> Optional[LogCollector]
1342 return self
._property
_impl
('logCollector')
1344 @logCollector.setter
1345 def logCollector(self
, new_val
):
1346 # type: (Optional[LogCollector]) -> None
1347 self
._logCollector
= new_val
1351 # type: () -> Optional[Mgr]
1352 return self
._property
_impl
('mgr')
1355 def mgr(self
, new_val
):
1356 # type: (Optional[Mgr]) -> None
1361 # type: () -> Optional[Mon]
1362 return self
._property
_impl
('mon')
1365 def mon(self
, new_val
):
1366 # type: (Optional[Mon]) -> None
1370 def monitoring(self
):
1371 # type: () -> Optional[Monitoring]
1372 return self
._property
_impl
('monitoring')
1375 def monitoring(self
, new_val
):
1376 # type: (Optional[Monitoring]) -> None
1377 self
._monitoring
= new_val
1381 # type: () -> Optional[Network]
1382 return self
._property
_impl
('network')
1385 def network(self
, new_val
):
1386 # type: (Optional[Network]) -> None
1387 self
._network
= new_val
1390 def placement(self
):
1391 # type: () -> Optional[Any]
1392 return self
._property
_impl
('placement')
1395 def placement(self
, new_val
):
1396 # type: (Optional[Any]) -> None
1397 self
._placement
= new_val
1400 def priorityClassNames(self
):
1401 # type: () -> Optional[Any]
1402 return self
._property
_impl
('priorityClassNames')
1404 @priorityClassNames.setter
1405 def priorityClassNames(self
, new_val
):
1406 # type: (Optional[Any]) -> None
1407 self
._priorityClassNames
= new_val
1410 def removeOSDsIfOutAndSafeToRemove(self
):
1412 return self
._property
_impl
('removeOSDsIfOutAndSafeToRemove')
1414 @removeOSDsIfOutAndSafeToRemove.setter
1415 def removeOSDsIfOutAndSafeToRemove(self
, new_val
):
1416 # type: (Optional[bool]) -> None
1417 self
._removeOSDsIfOutAndSafeToRemove
= new_val
1420 def resources(self
):
1421 # type: () -> Optional[Any]
1422 return self
._property
_impl
('resources')
1425 def resources(self
, new_val
):
1426 # type: (Optional[Any]) -> None
1427 self
._resources
= new_val
1431 # type: () -> Optional[Security]
1432 return self
._property
_impl
('security')
1435 def security(self
, new_val
):
1436 # type: (Optional[Security]) -> None
1437 self
._security
= new_val
1440 def skipUpgradeChecks(self
):
1442 return self
._property
_impl
('skipUpgradeChecks')
1444 @skipUpgradeChecks.setter
1445 def skipUpgradeChecks(self
, new_val
):
1446 # type: (Optional[bool]) -> None
1447 self
._skipUpgradeChecks
= new_val
1451 # type: () -> Optional[Storage]
1452 return self
._property
_impl
('storage')
1455 def storage(self
, new_val
):
1456 # type: (Optional[Storage]) -> None
1457 self
._storage
= new_val
1460 def waitTimeoutForHealthyOSDInMinutes(self
):
1462 return self
._property
_impl
('waitTimeoutForHealthyOSDInMinutes')
1464 @waitTimeoutForHealthyOSDInMinutes.setter
1465 def waitTimeoutForHealthyOSDInMinutes(self
, new_val
):
1466 # type: (Optional[int]) -> None
1467 self
._waitTimeoutForHealthyOSDInMinutes
= new_val
1470 def accessModes(self
):
1471 # type: () -> Union[List[str], CrdObjectList]
1472 return self
._property
_impl
('accessModes')
1475 def accessModes(self
, new_val
):
1476 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1477 self
._accessModes
= new_val
1480 def dataSource(self
):
1481 # type: () -> DataSource
1482 return self
._property
_impl
('dataSource')
1485 def dataSource(self
, new_val
):
1486 # type: (Optional[DataSource]) -> None
1487 self
._dataSource
= new_val
1491 # type: () -> Selector
1492 return self
._property
_impl
('selector')
1495 def selector(self
, new_val
):
1496 # type: (Optional[Selector]) -> None
1497 self
._selector
= new_val
1500 def storageClassName(self
):
1502 return self
._property
_impl
('storageClassName')
1504 @storageClassName.setter
1505 def storageClassName(self
, new_val
):
1506 # type: (Optional[str]) -> None
1507 self
._storageClassName
= new_val
1510 def volumeMode(self
):
1512 return self
._property
_impl
('volumeMode')
1515 def volumeMode(self
, new_val
):
1516 # type: (Optional[str]) -> None
1517 self
._volumeMode
= new_val
1520 def volumeName(self
):
1522 return self
._property
_impl
('volumeName')
1525 def volumeName(self
, new_val
):
1526 # type: (Optional[str]) -> None
1527 self
._volumeName
= new_val
1530 class ConditionsItem(CrdObject
):
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)
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]
1550 super(ConditionsItem
, self
).__init
__(
1551 lastHeartbeatTime
=lastHeartbeatTime
,
1552 lastTransitionTime
=lastTransitionTime
,
1557 lastProbeTime
=lastProbeTime
,
1561 def lastHeartbeatTime(self
):
1563 return self
._property
_impl
('lastHeartbeatTime')
1565 @lastHeartbeatTime.setter
1566 def lastHeartbeatTime(self
, new_val
):
1567 # type: (Optional[str]) -> None
1568 self
._lastHeartbeatTime
= new_val
1571 def lastTransitionTime(self
):
1573 return self
._property
_impl
('lastTransitionTime')
1575 @lastTransitionTime.setter
1576 def lastTransitionTime(self
, new_val
):
1577 # type: (Optional[str]) -> None
1578 self
._lastTransitionTime
= new_val
1583 return self
._property
_impl
('message')
1586 def message(self
, new_val
):
1587 # type: (Optional[str]) -> None
1588 self
._message
= new_val
1593 return self
._property
_impl
('reason')
1596 def reason(self
, new_val
):
1597 # type: (Optional[str]) -> None
1598 self
._reason
= new_val
1603 return self
._property
_impl
('status')
1606 def status(self
, new_val
):
1607 # type: (Optional[str]) -> None
1608 self
._status
= new_val
1613 return self
._property
_impl
('type')
1616 def type(self
, new_val
):
1617 # type: (Optional[str]) -> None
1618 self
._type
= new_val
1621 def lastProbeTime(self
):
1623 return self
._property
_impl
('lastProbeTime')
1625 @lastProbeTime.setter
1626 def lastProbeTime(self
, new_val
):
1627 # type: (Optional[str]) -> None
1628 self
._lastProbeTime
= new_val
1631 class ConditionsList(CrdObjectList
):
1632 _items_type
= ConditionsItem
1635 class VolumeClaimTemplate(CrdObject
):
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)
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]
1651 super(VolumeClaimTemplate
, self
).__init
__(
1652 apiVersion
=apiVersion
,
1660 def apiVersion(self
):
1662 return self
._property
_impl
('apiVersion')
1665 def apiVersion(self
, new_val
):
1666 # type: (Optional[str]) -> None
1667 self
._apiVersion
= new_val
1672 return self
._property
_impl
('kind')
1675 def kind(self
, new_val
):
1676 # type: (Optional[str]) -> None
1677 self
._kind
= new_val
1681 # type: () -> Metadata
1682 return self
._property
_impl
('metadata')
1685 def metadata(self
, new_val
):
1686 # type: (Optional[Metadata]) -> None
1687 self
._metadata
= new_val
1692 return self
._property
_impl
('spec')
1695 def spec(self
, new_val
):
1696 # type: (Optional[Spec]) -> None
1697 self
._spec
= new_val
1701 # type: () -> Status
1702 return self
._property
_impl
('status')
1705 def status(self
, new_val
):
1706 # type: (Optional[Status]) -> None
1707 self
._status
= new_val
1710 class ZonesItem(CrdObject
):
1712 ('arbiter', 'arbiter', bool, False, False),
1713 ('name', 'name', str, False, False),
1714 ('volumeClaimTemplate', 'volumeClaimTemplate', 'VolumeClaimTemplate', False, False)
1718 arbiter
=_omit
, # type: Optional[bool]
1719 name
=_omit
, # type: Optional[str]
1720 volumeClaimTemplate
=_omit
, # type: Optional[VolumeClaimTemplate]
1722 super(ZonesItem
, self
).__init
__(
1725 volumeClaimTemplate
=volumeClaimTemplate
,
1731 return self
._property
_impl
('arbiter')
1734 def arbiter(self
, new_val
):
1735 # type: (Optional[bool]) -> None
1736 self
._arbiter
= new_val
1741 return self
._property
_impl
('name')
1744 def name(self
, new_val
):
1745 # type: (Optional[str]) -> None
1746 self
._name
= new_val
1749 def volumeClaimTemplate(self
):
1750 # type: () -> VolumeClaimTemplate
1751 return self
._property
_impl
('volumeClaimTemplate')
1753 @volumeClaimTemplate.setter
1754 def volumeClaimTemplate(self
, new_val
):
1755 # type: (Optional[VolumeClaimTemplate]) -> None
1756 self
._volumeClaimTemplate
= new_val
1759 class ZonesList(CrdObjectList
):
1760 _items_type
= ZonesItem
1763 class StretchCluster(CrdObject
):
1765 ('failureDomainLabel', 'failureDomainLabel', str, False, False),
1766 ('subFailureDomain', 'subFailureDomain', str, False, False),
1767 ('zones', 'zones', 'ZonesList', False, True)
1771 failureDomainLabel
=_omit
, # type: Optional[str]
1772 subFailureDomain
=_omit
, # type: Optional[str]
1773 zones
=_omit
, # type: Optional[Union[List[ZonesItem], CrdObjectList]]
1775 super(StretchCluster
, self
).__init
__(
1776 failureDomainLabel
=failureDomainLabel
,
1777 subFailureDomain
=subFailureDomain
,
1782 def failureDomainLabel(self
):
1784 return self
._property
_impl
('failureDomainLabel')
1786 @failureDomainLabel.setter
1787 def failureDomainLabel(self
, new_val
):
1788 # type: (Optional[str]) -> None
1789 self
._failureDomainLabel
= new_val
1792 def subFailureDomain(self
):
1794 return self
._property
_impl
('subFailureDomain')
1796 @subFailureDomain.setter
1797 def subFailureDomain(self
, new_val
):
1798 # type: (Optional[str]) -> None
1799 self
._subFailureDomain
= new_val
1803 # type: () -> Optional[Union[List[ZonesItem], CrdObjectList]]
1804 return self
._property
_impl
('zones')
1807 def zones(self
, new_val
):
1808 # type: (Optional[Union[List[ZonesItem], CrdObjectList]]) -> None
1809 self
._zones
= new_val
1812 class TargetRef(CrdObject
):
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)
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]
1832 super(TargetRef
, self
).__init
__(
1833 apiVersion
=apiVersion
,
1834 fieldPath
=fieldPath
,
1837 namespace
=namespace
,
1838 resourceVersion
=resourceVersion
,
1843 def apiVersion(self
):
1845 return self
._property
_impl
('apiVersion')
1848 def apiVersion(self
, new_val
):
1849 # type: (Optional[str]) -> None
1850 self
._apiVersion
= new_val
1853 def fieldPath(self
):
1855 return self
._property
_impl
('fieldPath')
1858 def fieldPath(self
, new_val
):
1859 # type: (Optional[str]) -> None
1860 self
._fieldPath
= new_val
1865 return self
._property
_impl
('kind')
1868 def kind(self
, new_val
):
1869 # type: (Optional[str]) -> None
1870 self
._kind
= new_val
1875 return self
._property
_impl
('name')
1878 def name(self
, new_val
):
1879 # type: (Optional[str]) -> None
1880 self
._name
= new_val
1883 def namespace(self
):
1885 return self
._property
_impl
('namespace')
1888 def namespace(self
, new_val
):
1889 # type: (Optional[str]) -> None
1890 self
._namespace
= new_val
1893 def resourceVersion(self
):
1895 return self
._property
_impl
('resourceVersion')
1897 @resourceVersion.setter
1898 def resourceVersion(self
, new_val
):
1899 # type: (Optional[str]) -> None
1900 self
._resourceVersion
= new_val
1905 return self
._property
_impl
('uid')
1908 def uid(self
, new_val
):
1909 # type: (Optional[str]) -> None
1913 class ExternalMgrEndpointsItem(CrdObject
):
1915 ('hostname', 'hostname', str, False, False),
1916 ('ip', 'ip', str, True, False),
1917 ('nodeName', 'nodeName', str, False, False),
1918 ('targetRef', 'targetRef', 'TargetRef', False, False)
1923 hostname
=_omit
, # type: Optional[str]
1924 nodeName
=_omit
, # type: Optional[str]
1925 targetRef
=_omit
, # type: Optional[TargetRef]
1927 super(ExternalMgrEndpointsItem
, self
).__init
__(
1931 targetRef
=targetRef
,
1937 return self
._property
_impl
('hostname')
1940 def hostname(self
, new_val
):
1941 # type: (Optional[str]) -> None
1942 self
._hostname
= new_val
1947 return self
._property
_impl
('ip')
1950 def ip(self
, new_val
):
1951 # type: (str) -> None
1957 return self
._property
_impl
('nodeName')
1960 def nodeName(self
, new_val
):
1961 # type: (Optional[str]) -> None
1962 self
._nodeName
= new_val
1965 def targetRef(self
):
1966 # type: () -> TargetRef
1967 return self
._property
_impl
('targetRef')
1970 def targetRef(self
, new_val
):
1971 # type: (Optional[TargetRef]) -> None
1972 self
._targetRef
= new_val
1975 class ExternalMgrEndpointsList(CrdObjectList
):
1976 _items_type
= ExternalMgrEndpointsItem
1979 class Monitoring(CrdObject
):
1981 ('enabled', 'enabled', bool, False, False),
1982 ('externalMgrEndpoints', 'externalMgrEndpoints', 'ExternalMgrEndpointsList', False, True),
1983 ('externalMgrPrometheusPort', 'externalMgrPrometheusPort', int, False, False),
1984 ('rulesNamespace', 'rulesNamespace', str, False, False)
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]
1993 super(Monitoring
, self
).__init
__(
1995 externalMgrEndpoints
=externalMgrEndpoints
,
1996 externalMgrPrometheusPort
=externalMgrPrometheusPort
,
1997 rulesNamespace
=rulesNamespace
,
2003 return self
._property
_impl
('enabled')
2006 def enabled(self
, new_val
):
2007 # type: (Optional[bool]) -> None
2008 self
._enabled
= new_val
2011 def externalMgrEndpoints(self
):
2012 # type: () -> Optional[Union[List[ExternalMgrEndpointsItem], CrdObjectList]]
2013 return self
._property
_impl
('externalMgrEndpoints')
2015 @externalMgrEndpoints.setter
2016 def externalMgrEndpoints(self
, new_val
):
2017 # type: (Optional[Union[List[ExternalMgrEndpointsItem], CrdObjectList]]) -> None
2018 self
._externalMgrEndpoints
= new_val
2021 def externalMgrPrometheusPort(self
):
2023 return self
._property
_impl
('externalMgrPrometheusPort')
2025 @externalMgrPrometheusPort.setter
2026 def externalMgrPrometheusPort(self
, new_val
):
2027 # type: (Optional[int]) -> None
2028 self
._externalMgrPrometheusPort
= new_val
2031 def rulesNamespace(self
):
2033 return self
._property
_impl
('rulesNamespace')
2035 @rulesNamespace.setter
2036 def rulesNamespace(self
, new_val
):
2037 # type: (Optional[str]) -> None
2038 self
._rulesNamespace
= new_val
2041 class Network(CrdObject
):
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)
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]
2057 super(Network
, self
).__init
__(
2058 dualStack
=dualStack
,
2059 hostNetwork
=hostNetwork
,
2062 selectors
=selectors
,
2066 def dualStack(self
):
2068 return self
._property
_impl
('dualStack')
2071 def dualStack(self
, new_val
):
2072 # type: (Optional[bool]) -> None
2073 self
._dualStack
= new_val
2076 def hostNetwork(self
):
2078 return self
._property
_impl
('hostNetwork')
2081 def hostNetwork(self
, new_val
):
2082 # type: (Optional[bool]) -> None
2083 self
._hostNetwork
= new_val
2087 # type: () -> Optional[str]
2088 return self
._property
_impl
('ipFamily')
2091 def ipFamily(self
, new_val
):
2092 # type: (Optional[str]) -> None
2093 self
._ipFamily
= new_val
2097 # type: () -> Optional[str]
2098 return self
._property
_impl
('provider')
2101 def provider(self
, new_val
):
2102 # type: (Optional[str]) -> None
2103 self
._provider
= new_val
2106 def selectors(self
):
2107 # type: () -> Optional[Any]
2108 return self
._property
_impl
('selectors')
2111 def selectors(self
, new_val
):
2112 # type: (Optional[Any]) -> None
2113 self
._selectors
= new_val
2116 class Kms(CrdObject
):
2118 ('connectionDetails', 'connectionDetails', object, False, True),
2119 ('tokenSecretName', 'tokenSecretName', str, False, False)
2123 connectionDetails
=_omit
, # type: Optional[Any]
2124 tokenSecretName
=_omit
, # type: Optional[str]
2126 super(Kms
, self
).__init
__(
2127 connectionDetails
=connectionDetails
,
2128 tokenSecretName
=tokenSecretName
,
2132 def connectionDetails(self
):
2133 # type: () -> Optional[Any]
2134 return self
._property
_impl
('connectionDetails')
2136 @connectionDetails.setter
2137 def connectionDetails(self
, new_val
):
2138 # type: (Optional[Any]) -> None
2139 self
._connectionDetails
= new_val
2142 def tokenSecretName(self
):
2144 return self
._property
_impl
('tokenSecretName')
2146 @tokenSecretName.setter
2147 def tokenSecretName(self
, new_val
):
2148 # type: (Optional[str]) -> None
2149 self
._tokenSecretName
= new_val
2152 class Security(CrdObject
):
2154 ('kms', 'kms', 'Kms', False, True)
2158 kms
=_omit
, # type: Optional[Kms]
2160 super(Security
, self
).__init
__(
2166 # type: () -> Optional[Kms]
2167 return self
._property
_impl
('kms')
2170 def kms(self
, new_val
):
2171 # type: (Optional[Kms]) -> None
2175 class DevicesItem(CrdObject
):
2177 ('config', 'config', object, False, False),
2178 ('fullpath', 'fullpath', str, False, False),
2179 ('name', 'name', str, False, False)
2183 config
=_omit
, # type: Optional[Any]
2184 fullpath
=_omit
, # type: Optional[str]
2185 name
=_omit
, # type: Optional[str]
2187 super(DevicesItem
, self
).__init
__(
2196 return self
._property
_impl
('config')
2199 def config(self
, new_val
):
2200 # type: (Optional[Any]) -> None
2201 self
._config
= new_val
2206 return self
._property
_impl
('fullpath')
2209 def fullpath(self
, new_val
):
2210 # type: (Optional[str]) -> None
2211 self
._fullpath
= new_val
2216 return self
._property
_impl
('name')
2219 def name(self
, new_val
):
2220 # type: (Optional[str]) -> None
2221 self
._name
= new_val
2224 class DevicesList(CrdObjectList
):
2225 _items_type
= DevicesItem
2228 class VolumeClaimTemplatesItem(CrdObject
):
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)
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]
2244 super(VolumeClaimTemplatesItem
, self
).__init
__(
2245 apiVersion
=apiVersion
,
2253 def apiVersion(self
):
2255 return self
._property
_impl
('apiVersion')
2258 def apiVersion(self
, new_val
):
2259 # type: (Optional[str]) -> None
2260 self
._apiVersion
= new_val
2265 return self
._property
_impl
('kind')
2268 def kind(self
, new_val
):
2269 # type: (Optional[str]) -> None
2270 self
._kind
= new_val
2274 # type: () -> Metadata
2275 return self
._property
_impl
('metadata')
2278 def metadata(self
, new_val
):
2279 # type: (Optional[Metadata]) -> None
2280 self
._metadata
= new_val
2285 return self
._property
_impl
('spec')
2288 def spec(self
, new_val
):
2289 # type: (Optional[Spec]) -> None
2290 self
._spec
= new_val
2294 # type: () -> Status
2295 return self
._property
_impl
('status')
2298 def status(self
, new_val
):
2299 # type: (Optional[Status]) -> None
2300 self
._status
= new_val
2303 class VolumeClaimTemplatesList(CrdObjectList
):
2304 _items_type
= VolumeClaimTemplatesItem
2307 class NodesItem(CrdObject
):
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)
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]]
2329 super(NodesItem
, self
).__init
__(
2331 deviceFilter
=deviceFilter
,
2332 devicePathFilter
=devicePathFilter
,
2335 resources
=resources
,
2336 useAllDevices
=useAllDevices
,
2337 volumeClaimTemplates
=volumeClaimTemplates
,
2342 # type: () -> Optional[Any]
2343 return self
._property
_impl
('config')
2346 def config(self
, new_val
):
2347 # type: (Optional[Any]) -> None
2348 self
._config
= new_val
2351 def deviceFilter(self
):
2353 return self
._property
_impl
('deviceFilter')
2355 @deviceFilter.setter
2356 def deviceFilter(self
, new_val
):
2357 # type: (Optional[str]) -> None
2358 self
._deviceFilter
= new_val
2361 def devicePathFilter(self
):
2363 return self
._property
_impl
('devicePathFilter')
2365 @devicePathFilter.setter
2366 def devicePathFilter(self
, new_val
):
2367 # type: (Optional[str]) -> None
2368 self
._devicePathFilter
= new_val
2372 # type: () -> Optional[Union[List[DevicesItem], CrdObjectList]]
2373 return self
._property
_impl
('devices')
2376 def devices(self
, new_val
):
2377 # type: (Optional[Union[List[DevicesItem], CrdObjectList]]) -> None
2378 self
._devices
= new_val
2383 return self
._property
_impl
('name')
2386 def name(self
, new_val
):
2387 # type: (Optional[str]) -> None
2388 self
._name
= new_val
2391 def resources(self
):
2392 # type: () -> Optional[Resources]
2393 return self
._property
_impl
('resources')
2396 def resources(self
, new_val
):
2397 # type: (Optional[Resources]) -> None
2398 self
._resources
= new_val
2401 def useAllDevices(self
):
2403 return self
._property
_impl
('useAllDevices')
2405 @useAllDevices.setter
2406 def useAllDevices(self
, new_val
):
2407 # type: (Optional[bool]) -> None
2408 self
._useAllDevices
= new_val
2411 def volumeClaimTemplates(self
):
2412 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
2413 return self
._property
_impl
('volumeClaimTemplates')
2415 @volumeClaimTemplates.setter
2416 def volumeClaimTemplates(self
, new_val
):
2417 # type: (Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]) -> None
2418 self
._volumeClaimTemplates
= new_val
2421 class NodesList(CrdObjectList
):
2422 _items_type
= NodesItem
2425 class MatchFieldsItem(CrdObject
):
2427 ('key', 'key', str, True, False),
2428 ('operator', 'operator', str, True, False),
2429 ('values', 'values', 'ValuesList', False, False)
2434 operator
, # type: str
2435 values
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
2437 super(MatchFieldsItem
, self
).__init
__(
2446 return self
._property
_impl
('key')
2449 def key(self
, new_val
):
2450 # type: (str) -> None
2456 return self
._property
_impl
('operator')
2459 def operator(self
, new_val
):
2460 # type: (str) -> None
2461 self
._operator
= new_val
2465 # type: () -> Union[List[str], CrdObjectList]
2466 return self
._property
_impl
('values')
2469 def values(self
, new_val
):
2470 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2471 self
._values
= new_val
2474 class MatchFieldsList(CrdObjectList
):
2475 _items_type
= MatchFieldsItem
2478 class Preference(CrdObject
):
2480 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2481 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
2485 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2486 matchFields
=_omit
, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
2488 super(Preference
, self
).__init
__(
2489 matchExpressions
=matchExpressions
,
2490 matchFields
=matchFields
,
2494 def matchExpressions(self
):
2495 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2496 return self
._property
_impl
('matchExpressions')
2498 @matchExpressions.setter
2499 def matchExpressions(self
, new_val
):
2500 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2501 self
._matchExpressions
= new_val
2504 def matchFields(self
):
2505 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
2506 return self
._property
_impl
('matchFields')
2509 def matchFields(self
, new_val
):
2510 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
2511 self
._matchFields
= new_val
2514 class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject
):
2516 ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False),
2517 ('weight', 'weight', int, False, False),
2518 ('preference', 'preference', 'Preference', False, False)
2522 podAffinityTerm
=_omit
, # type: Optional[PodAffinityTerm]
2523 weight
=_omit
, # type: Optional[int]
2524 preference
=_omit
, # type: Optional[Preference]
2526 super(PreferredDuringSchedulingIgnoredDuringExecutionItem
, self
).__init
__(
2527 podAffinityTerm
=podAffinityTerm
,
2529 preference
=preference
,
2533 def podAffinityTerm(self
):
2534 # type: () -> PodAffinityTerm
2535 return self
._property
_impl
('podAffinityTerm')
2537 @podAffinityTerm.setter
2538 def podAffinityTerm(self
, new_val
):
2539 # type: (Optional[PodAffinityTerm]) -> None
2540 self
._podAffinityTerm
= new_val
2545 return self
._property
_impl
('weight')
2548 def weight(self
, new_val
):
2549 # type: (Optional[int]) -> None
2550 self
._weight
= new_val
2553 def preference(self
):
2554 # type: () -> Preference
2555 return self
._property
_impl
('preference')
2558 def preference(self
, new_val
):
2559 # type: (Optional[Preference]) -> None
2560 self
._preference
= new_val
2563 class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList
):
2564 _items_type
= PreferredDuringSchedulingIgnoredDuringExecutionItem
2567 class NodeSelectorTermsItem(CrdObject
):
2569 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2570 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
2574 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2575 matchFields
=_omit
, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
2577 super(NodeSelectorTermsItem
, self
).__init
__(
2578 matchExpressions
=matchExpressions
,
2579 matchFields
=matchFields
,
2583 def matchExpressions(self
):
2584 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2585 return self
._property
_impl
('matchExpressions')
2587 @matchExpressions.setter
2588 def matchExpressions(self
, new_val
):
2589 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2590 self
._matchExpressions
= new_val
2593 def matchFields(self
):
2594 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
2595 return self
._property
_impl
('matchFields')
2598 def matchFields(self
, new_val
):
2599 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
2600 self
._matchFields
= new_val
2603 class NodeSelectorTermsList(CrdObjectList
):
2604 _items_type
= NodeSelectorTermsItem
2607 class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject
):
2609 ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False)
2613 nodeSelectorTerms
, # type: Union[List[NodeSelectorTermsItem], CrdObjectList]
2615 super(RequiredDuringSchedulingIgnoredDuringExecution
, self
).__init
__(
2616 nodeSelectorTerms
=nodeSelectorTerms
,
2620 def nodeSelectorTerms(self
):
2621 # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList]
2622 return self
._property
_impl
('nodeSelectorTerms')
2624 @nodeSelectorTerms.setter
2625 def nodeSelectorTerms(self
, new_val
):
2626 # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None
2627 self
._nodeSelectorTerms
= new_val
2630 class NodeAffinity(CrdObject
):
2632 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2633 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False)
2637 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2638 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution]
2640 super(NodeAffinity
, self
).__init
__(
2641 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
2642 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
2646 def preferredDuringSchedulingIgnoredDuringExecution(self
):
2647 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2648 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
2650 @preferredDuringSchedulingIgnoredDuringExecution.setter
2651 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2652 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2653 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
2656 def requiredDuringSchedulingIgnoredDuringExecution(self
):
2657 # type: () -> RequiredDuringSchedulingIgnoredDuringExecution
2658 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
2660 @requiredDuringSchedulingIgnoredDuringExecution.setter
2661 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2662 # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None
2663 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
2666 class LabelSelector(CrdObject
):
2668 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2669 ('matchLabels', 'matchLabels', object, False, False)
2673 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2674 matchLabels
=_omit
, # type: Optional[Any]
2676 super(LabelSelector
, self
).__init
__(
2677 matchExpressions
=matchExpressions
,
2678 matchLabels
=matchLabels
,
2682 def matchExpressions(self
):
2683 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2684 return self
._property
_impl
('matchExpressions')
2686 @matchExpressions.setter
2687 def matchExpressions(self
, new_val
):
2688 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2689 self
._matchExpressions
= new_val
2692 def matchLabels(self
):
2694 return self
._property
_impl
('matchLabels')
2697 def matchLabels(self
, new_val
):
2698 # type: (Optional[Any]) -> None
2699 self
._matchLabels
= new_val
2702 class NamespaceSelector(CrdObject
):
2704 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
2705 ('matchLabels', 'matchLabels', object, False, False)
2709 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
2710 matchLabels
=_omit
, # type: Optional[Any]
2712 super(NamespaceSelector
, self
).__init
__(
2713 matchExpressions
=matchExpressions
,
2714 matchLabels
=matchLabels
,
2718 def matchExpressions(self
):
2719 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
2720 return self
._property
_impl
('matchExpressions')
2722 @matchExpressions.setter
2723 def matchExpressions(self
, new_val
):
2724 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
2725 self
._matchExpressions
= new_val
2728 def matchLabels(self
):
2730 return self
._property
_impl
('matchLabels')
2733 def matchLabels(self
, new_val
):
2734 # type: (Optional[Any]) -> None
2735 self
._matchLabels
= new_val
2738 class NamespacesList(CrdObjectList
):
2742 class PodAffinityTerm(CrdObject
):
2744 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
2745 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
2746 ('namespaces', 'namespaces', 'NamespacesList', False, False),
2747 ('topologyKey', 'topologyKey', str, True, False)
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]]
2756 super(PodAffinityTerm
, self
).__init
__(
2757 topologyKey
=topologyKey
,
2758 labelSelector
=labelSelector
,
2759 namespaceSelector
=namespaceSelector
,
2760 namespaces
=namespaces
,
2764 def labelSelector(self
):
2765 # type: () -> LabelSelector
2766 return self
._property
_impl
('labelSelector')
2768 @labelSelector.setter
2769 def labelSelector(self
, new_val
):
2770 # type: (Optional[LabelSelector]) -> None
2771 self
._labelSelector
= new_val
2774 def namespaceSelector(self
):
2775 # type: () -> NamespaceSelector
2776 return self
._property
_impl
('namespaceSelector')
2778 @namespaceSelector.setter
2779 def namespaceSelector(self
, new_val
):
2780 # type: (Optional[NamespaceSelector]) -> None
2781 self
._namespaceSelector
= new_val
2784 def namespaces(self
):
2785 # type: () -> Union[List[str], CrdObjectList]
2786 return self
._property
_impl
('namespaces')
2789 def namespaces(self
, new_val
):
2790 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2791 self
._namespaces
= new_val
2794 def topologyKey(self
):
2796 return self
._property
_impl
('topologyKey')
2799 def topologyKey(self
, new_val
):
2800 # type: (str) -> None
2801 self
._topologyKey
= new_val
2804 class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject
):
2806 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
2807 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
2808 ('namespaces', 'namespaces', 'NamespacesList', False, False),
2809 ('topologyKey', 'topologyKey', str, True, False)
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]]
2818 super(RequiredDuringSchedulingIgnoredDuringExecutionItem
, self
).__init
__(
2819 topologyKey
=topologyKey
,
2820 labelSelector
=labelSelector
,
2821 namespaceSelector
=namespaceSelector
,
2822 namespaces
=namespaces
,
2826 def labelSelector(self
):
2827 # type: () -> LabelSelector
2828 return self
._property
_impl
('labelSelector')
2830 @labelSelector.setter
2831 def labelSelector(self
, new_val
):
2832 # type: (Optional[LabelSelector]) -> None
2833 self
._labelSelector
= new_val
2836 def namespaceSelector(self
):
2837 # type: () -> NamespaceSelector
2838 return self
._property
_impl
('namespaceSelector')
2840 @namespaceSelector.setter
2841 def namespaceSelector(self
, new_val
):
2842 # type: (Optional[NamespaceSelector]) -> None
2843 self
._namespaceSelector
= new_val
2846 def namespaces(self
):
2847 # type: () -> Union[List[str], CrdObjectList]
2848 return self
._property
_impl
('namespaces')
2851 def namespaces(self
, new_val
):
2852 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
2853 self
._namespaces
= new_val
2856 def topologyKey(self
):
2858 return self
._property
_impl
('topologyKey')
2861 def topologyKey(self
, new_val
):
2862 # type: (str) -> None
2863 self
._topologyKey
= new_val
2866 class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList
):
2867 _items_type
= RequiredDuringSchedulingIgnoredDuringExecutionItem
2870 class PodAffinity(CrdObject
):
2872 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2873 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
2877 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2878 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2880 super(PodAffinity
, self
).__init
__(
2881 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
2882 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
2886 def preferredDuringSchedulingIgnoredDuringExecution(self
):
2887 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2888 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
2890 @preferredDuringSchedulingIgnoredDuringExecution.setter
2891 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2892 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2893 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
2896 def requiredDuringSchedulingIgnoredDuringExecution(self
):
2897 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2898 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
2900 @requiredDuringSchedulingIgnoredDuringExecution.setter
2901 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2902 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2903 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
2906 class PodAntiAffinity(CrdObject
):
2908 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
2909 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
2913 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2914 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
2916 super(PodAntiAffinity
, self
).__init
__(
2917 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
2918 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
2922 def preferredDuringSchedulingIgnoredDuringExecution(self
):
2923 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2924 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
2926 @preferredDuringSchedulingIgnoredDuringExecution.setter
2927 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2928 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2929 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
2932 def requiredDuringSchedulingIgnoredDuringExecution(self
):
2933 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
2934 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
2936 @requiredDuringSchedulingIgnoredDuringExecution.setter
2937 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
2938 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
2939 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
2942 class TolerationsItem(CrdObject
):
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)
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]
2958 super(TolerationsItem
, self
).__init
__(
2962 tolerationSeconds
=tolerationSeconds
,
2969 return self
._property
_impl
('effect')
2972 def effect(self
, new_val
):
2973 # type: (Optional[str]) -> None
2974 self
._effect
= new_val
2979 return self
._property
_impl
('key')
2982 def key(self
, new_val
):
2983 # type: (Optional[str]) -> None
2989 return self
._property
_impl
('operator')
2992 def operator(self
, new_val
):
2993 # type: (Optional[str]) -> None
2994 self
._operator
= new_val
2997 def tolerationSeconds(self
):
2999 return self
._property
_impl
('tolerationSeconds')
3001 @tolerationSeconds.setter
3002 def tolerationSeconds(self
, new_val
):
3003 # type: (Optional[int]) -> None
3004 self
._tolerationSeconds
= new_val
3009 return self
._property
_impl
('value')
3012 def value(self
, new_val
):
3013 # type: (Optional[str]) -> None
3014 self
._value
= new_val
3017 class TolerationsList(CrdObjectList
):
3018 _items_type
= TolerationsItem
3021 class TopologySpreadConstraintsItem(CrdObject
):
3023 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
3024 ('maxSkew', 'maxSkew', int, True, False),
3025 ('topologyKey', 'topologyKey', str, True, False),
3026 ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False)
3030 maxSkew
, # type: int
3031 topologyKey
, # type: str
3032 whenUnsatisfiable
, # type: str
3033 labelSelector
=_omit
, # type: Optional[LabelSelector]
3035 super(TopologySpreadConstraintsItem
, self
).__init
__(
3037 topologyKey
=topologyKey
,
3038 whenUnsatisfiable
=whenUnsatisfiable
,
3039 labelSelector
=labelSelector
,
3043 def labelSelector(self
):
3044 # type: () -> LabelSelector
3045 return self
._property
_impl
('labelSelector')
3047 @labelSelector.setter
3048 def labelSelector(self
, new_val
):
3049 # type: (Optional[LabelSelector]) -> None
3050 self
._labelSelector
= new_val
3055 return self
._property
_impl
('maxSkew')
3058 def maxSkew(self
, new_val
):
3059 # type: (int) -> None
3060 self
._maxSkew
= new_val
3063 def topologyKey(self
):
3065 return self
._property
_impl
('topologyKey')
3068 def topologyKey(self
, new_val
):
3069 # type: (str) -> None
3070 self
._topologyKey
= new_val
3073 def whenUnsatisfiable(self
):
3075 return self
._property
_impl
('whenUnsatisfiable')
3077 @whenUnsatisfiable.setter
3078 def whenUnsatisfiable(self
, new_val
):
3079 # type: (str) -> None
3080 self
._whenUnsatisfiable
= new_val
3083 class TopologySpreadConstraintsList(CrdObjectList
):
3084 _items_type
= TopologySpreadConstraintsItem
3087 class Placement(CrdObject
):
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)
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]]
3103 super(Placement
, self
).__init
__(
3104 nodeAffinity
=nodeAffinity
,
3105 podAffinity
=podAffinity
,
3106 podAntiAffinity
=podAntiAffinity
,
3107 tolerations
=tolerations
,
3108 topologySpreadConstraints
=topologySpreadConstraints
,
3112 def nodeAffinity(self
):
3113 # type: () -> NodeAffinity
3114 return self
._property
_impl
('nodeAffinity')
3116 @nodeAffinity.setter
3117 def nodeAffinity(self
, new_val
):
3118 # type: (Optional[NodeAffinity]) -> None
3119 self
._nodeAffinity
= new_val
3122 def podAffinity(self
):
3123 # type: () -> PodAffinity
3124 return self
._property
_impl
('podAffinity')
3127 def podAffinity(self
, new_val
):
3128 # type: (Optional[PodAffinity]) -> None
3129 self
._podAffinity
= new_val
3132 def podAntiAffinity(self
):
3133 # type: () -> PodAntiAffinity
3134 return self
._property
_impl
('podAntiAffinity')
3136 @podAntiAffinity.setter
3137 def podAntiAffinity(self
, new_val
):
3138 # type: (Optional[PodAntiAffinity]) -> None
3139 self
._podAntiAffinity
= new_val
3142 def tolerations(self
):
3143 # type: () -> Union[List[TolerationsItem], CrdObjectList]
3144 return self
._property
_impl
('tolerations')
3147 def tolerations(self
, new_val
):
3148 # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None
3149 self
._tolerations
= new_val
3152 def topologySpreadConstraints(self
):
3153 # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList]
3154 return self
._property
_impl
('topologySpreadConstraints')
3156 @topologySpreadConstraints.setter
3157 def topologySpreadConstraints(self
, new_val
):
3158 # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None
3159 self
._topologySpreadConstraints
= new_val
3162 class PreparePlacement(CrdObject
):
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)
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]]
3178 super(PreparePlacement
, self
).__init
__(
3179 nodeAffinity
=nodeAffinity
,
3180 podAffinity
=podAffinity
,
3181 podAntiAffinity
=podAntiAffinity
,
3182 tolerations
=tolerations
,
3183 topologySpreadConstraints
=topologySpreadConstraints
,
3187 def nodeAffinity(self
):
3188 # type: () -> NodeAffinity
3189 return self
._property
_impl
('nodeAffinity')
3191 @nodeAffinity.setter
3192 def nodeAffinity(self
, new_val
):
3193 # type: (Optional[NodeAffinity]) -> None
3194 self
._nodeAffinity
= new_val
3197 def podAffinity(self
):
3198 # type: () -> PodAffinity
3199 return self
._property
_impl
('podAffinity')
3202 def podAffinity(self
, new_val
):
3203 # type: (Optional[PodAffinity]) -> None
3204 self
._podAffinity
= new_val
3207 def podAntiAffinity(self
):
3208 # type: () -> PodAntiAffinity
3209 return self
._property
_impl
('podAntiAffinity')
3211 @podAntiAffinity.setter
3212 def podAntiAffinity(self
, new_val
):
3213 # type: (Optional[PodAntiAffinity]) -> None
3214 self
._podAntiAffinity
= new_val
3217 def tolerations(self
):
3218 # type: () -> Union[List[TolerationsItem], CrdObjectList]
3219 return self
._property
_impl
('tolerations')
3222 def tolerations(self
, new_val
):
3223 # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None
3224 self
._tolerations
= new_val
3227 def topologySpreadConstraints(self
):
3228 # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList]
3229 return self
._property
_impl
('topologySpreadConstraints')
3231 @topologySpreadConstraints.setter
3232 def topologySpreadConstraints(self
, new_val
):
3233 # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None
3234 self
._topologySpreadConstraints
= new_val
3237 class StorageClassDeviceSetsItem(CrdObject
):
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)
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]
3267 super(StorageClassDeviceSetsItem
, self
).__init
__(
3270 volumeClaimTemplates
=volumeClaimTemplates
,
3272 encrypted
=encrypted
,
3273 placement
=placement
,
3275 preparePlacement
=preparePlacement
,
3276 resources
=resources
,
3277 schedulerName
=schedulerName
,
3278 tuneDeviceClass
=tuneDeviceClass
,
3279 tuneFastDeviceClass
=tuneFastDeviceClass
,
3284 # type: () -> Optional[Any]
3285 return self
._property
_impl
('config')
3288 def config(self
, new_val
):
3289 # type: (Optional[Any]) -> None
3290 self
._config
= new_val
3295 return self
._property
_impl
('count')
3298 def count(self
, new_val
):
3299 # type: (int) -> None
3300 self
._count
= new_val
3303 def encrypted(self
):
3305 return self
._property
_impl
('encrypted')
3308 def encrypted(self
, new_val
):
3309 # type: (Optional[bool]) -> None
3310 self
._encrypted
= new_val
3315 return self
._property
_impl
('name')
3318 def name(self
, new_val
):
3319 # type: (str) -> None
3320 self
._name
= new_val
3323 def placement(self
):
3324 # type: () -> Optional[Placement]
3325 return self
._property
_impl
('placement')
3328 def placement(self
, new_val
):
3329 # type: (Optional[Placement]) -> None
3330 self
._placement
= new_val
3335 return self
._property
_impl
('portable')
3338 def portable(self
, new_val
):
3339 # type: (Optional[bool]) -> None
3340 self
._portable
= new_val
3343 def preparePlacement(self
):
3344 # type: () -> Optional[PreparePlacement]
3345 return self
._property
_impl
('preparePlacement')
3347 @preparePlacement.setter
3348 def preparePlacement(self
, new_val
):
3349 # type: (Optional[PreparePlacement]) -> None
3350 self
._preparePlacement
= new_val
3353 def resources(self
):
3354 # type: () -> Optional[Resources]
3355 return self
._property
_impl
('resources')
3358 def resources(self
, new_val
):
3359 # type: (Optional[Resources]) -> None
3360 self
._resources
= new_val
3363 def schedulerName(self
):
3365 return self
._property
_impl
('schedulerName')
3367 @schedulerName.setter
3368 def schedulerName(self
, new_val
):
3369 # type: (Optional[str]) -> None
3370 self
._schedulerName
= new_val
3373 def tuneDeviceClass(self
):
3375 return self
._property
_impl
('tuneDeviceClass')
3377 @tuneDeviceClass.setter
3378 def tuneDeviceClass(self
, new_val
):
3379 # type: (Optional[bool]) -> None
3380 self
._tuneDeviceClass
= new_val
3383 def tuneFastDeviceClass(self
):
3385 return self
._property
_impl
('tuneFastDeviceClass')
3387 @tuneFastDeviceClass.setter
3388 def tuneFastDeviceClass(self
, new_val
):
3389 # type: (Optional[bool]) -> None
3390 self
._tuneFastDeviceClass
= new_val
3393 def volumeClaimTemplates(self
):
3394 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
3395 return self
._property
_impl
('volumeClaimTemplates')
3397 @volumeClaimTemplates.setter
3398 def volumeClaimTemplates(self
, new_val
):
3399 # type: (Union[List[VolumeClaimTemplatesItem], CrdObjectList]) -> None
3400 self
._volumeClaimTemplates
= new_val
3403 class StorageClassDeviceSetsList(CrdObjectList
):
3404 _items_type
= StorageClassDeviceSetsItem
3407 class Storage(CrdObject
):
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)
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]]
3433 super(Storage
, self
).__init
__(
3434 deviceClasses
=deviceClasses
,
3436 deviceFilter
=deviceFilter
,
3437 devicePathFilter
=devicePathFilter
,
3440 storageClassDeviceSets
=storageClassDeviceSets
,
3441 useAllDevices
=useAllDevices
,
3442 useAllNodes
=useAllNodes
,
3443 volumeClaimTemplates
=volumeClaimTemplates
,
3447 def deviceClasses(self
):
3448 # type: () -> Union[List[DeviceClassesItem], CrdObjectList]
3449 return self
._property
_impl
('deviceClasses')
3451 @deviceClasses.setter
3452 def deviceClasses(self
, new_val
):
3453 # type: (Optional[Union[List[DeviceClassesItem], CrdObjectList]]) -> None
3454 self
._deviceClasses
= new_val
3458 # type: () -> Optional[Any]
3459 return self
._property
_impl
('config')
3462 def config(self
, new_val
):
3463 # type: (Optional[Any]) -> None
3464 self
._config
= new_val
3467 def deviceFilter(self
):
3469 return self
._property
_impl
('deviceFilter')
3471 @deviceFilter.setter
3472 def deviceFilter(self
, new_val
):
3473 # type: (Optional[str]) -> None
3474 self
._deviceFilter
= new_val
3477 def devicePathFilter(self
):
3479 return self
._property
_impl
('devicePathFilter')
3481 @devicePathFilter.setter
3482 def devicePathFilter(self
, new_val
):
3483 # type: (Optional[str]) -> None
3484 self
._devicePathFilter
= new_val
3488 # type: () -> Optional[Union[List[DevicesItem], CrdObjectList]]
3489 return self
._property
_impl
('devices')
3492 def devices(self
, new_val
):
3493 # type: (Optional[Union[List[DevicesItem], CrdObjectList]]) -> None
3494 self
._devices
= new_val
3498 # type: () -> Optional[Union[List[NodesItem], CrdObjectList]]
3499 return self
._property
_impl
('nodes')
3502 def nodes(self
, new_val
):
3503 # type: (Optional[Union[List[NodesItem], CrdObjectList]]) -> None
3504 self
._nodes
= new_val
3507 def storageClassDeviceSets(self
):
3508 # type: () -> Optional[Union[List[StorageClassDeviceSetsItem], CrdObjectList]]
3509 return self
._property
_impl
('storageClassDeviceSets')
3511 @storageClassDeviceSets.setter
3512 def storageClassDeviceSets(self
, new_val
):
3513 # type: (Optional[Union[List[StorageClassDeviceSetsItem], CrdObjectList]]) -> None
3514 self
._storageClassDeviceSets
= new_val
3517 def useAllDevices(self
):
3519 return self
._property
_impl
('useAllDevices')
3521 @useAllDevices.setter
3522 def useAllDevices(self
, new_val
):
3523 # type: (Optional[bool]) -> None
3524 self
._useAllDevices
= new_val
3527 def useAllNodes(self
):
3529 return self
._property
_impl
('useAllNodes')
3532 def useAllNodes(self
, new_val
):
3533 # type: (Optional[bool]) -> None
3534 self
._useAllNodes
= new_val
3537 def volumeClaimTemplates(self
):
3538 # type: () -> Union[List[VolumeClaimTemplatesItem], CrdObjectList]
3539 return self
._property
_impl
('volumeClaimTemplates')
3541 @volumeClaimTemplates.setter
3542 def volumeClaimTemplates(self
, new_val
):
3543 # type: (Optional[Union[List[VolumeClaimTemplatesItem], CrdObjectList]]) -> None
3544 self
._volumeClaimTemplates
= new_val
3547 class Capacity(CrdObject
):
3549 ('bytesAvailable', 'bytesAvailable', int, False, False),
3550 ('bytesTotal', 'bytesTotal', int, False, False),
3551 ('bytesUsed', 'bytesUsed', int, False, False),
3552 ('lastUpdated', 'lastUpdated', str, False, False)
3556 bytesAvailable
=_omit
, # type: Optional[int]
3557 bytesTotal
=_omit
, # type: Optional[int]
3558 bytesUsed
=_omit
, # type: Optional[int]
3559 lastUpdated
=_omit
, # type: Optional[str]
3561 super(Capacity
, self
).__init
__(
3562 bytesAvailable
=bytesAvailable
,
3563 bytesTotal
=bytesTotal
,
3564 bytesUsed
=bytesUsed
,
3565 lastUpdated
=lastUpdated
,
3569 def bytesAvailable(self
):
3571 return self
._property
_impl
('bytesAvailable')
3573 @bytesAvailable.setter
3574 def bytesAvailable(self
, new_val
):
3575 # type: (Optional[int]) -> None
3576 self
._bytesAvailable
= new_val
3579 def bytesTotal(self
):
3581 return self
._property
_impl
('bytesTotal')
3584 def bytesTotal(self
, new_val
):
3585 # type: (Optional[int]) -> None
3586 self
._bytesTotal
= new_val
3589 def bytesUsed(self
):
3591 return self
._property
_impl
('bytesUsed')
3594 def bytesUsed(self
, new_val
):
3595 # type: (Optional[int]) -> None
3596 self
._bytesUsed
= new_val
3599 def lastUpdated(self
):
3601 return self
._property
_impl
('lastUpdated')
3604 def lastUpdated(self
, new_val
):
3605 # type: (Optional[str]) -> None
3606 self
._lastUpdated
= new_val
3609 class Versions(CrdObject
):
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)
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]
3631 super(Versions
, self
).__init
__(
3632 cephfs_mirror
=cephfs_mirror
,
3638 rbd_mirror
=rbd_mirror
,
3643 def cephfs_mirror(self
):
3645 return self
._property
_impl
('cephfs_mirror')
3647 @cephfs_mirror.setter
3648 def cephfs_mirror(self
, new_val
):
3649 # type: (Optional[Any]) -> None
3650 self
._cephfs
_mirror
= new_val
3655 return self
._property
_impl
('mds')
3658 def mds(self
, new_val
):
3659 # type: (Optional[Any]) -> None
3665 return self
._property
_impl
('mgr')
3668 def mgr(self
, new_val
):
3669 # type: (Optional[Any]) -> None
3675 return self
._property
_impl
('mon')
3678 def mon(self
, new_val
):
3679 # type: (Optional[Any]) -> None
3685 return self
._property
_impl
('osd')
3688 def osd(self
, new_val
):
3689 # type: (Optional[Any]) -> None
3695 return self
._property
_impl
('overall')
3698 def overall(self
, new_val
):
3699 # type: (Optional[Any]) -> None
3700 self
._overall
= new_val
3703 def rbd_mirror(self
):
3705 return self
._property
_impl
('rbd_mirror')
3708 def rbd_mirror(self
, new_val
):
3709 # type: (Optional[Any]) -> None
3710 self
._rbd
_mirror
= new_val
3715 return self
._property
_impl
('rgw')
3718 def rgw(self
, new_val
):
3719 # type: (Optional[Any]) -> None
3723 class Ceph(CrdObject
):
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)
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]
3743 super(Ceph
, self
).__init
__(
3747 lastChanged
=lastChanged
,
3748 lastChecked
=lastChecked
,
3749 previousHealth
=previousHealth
,
3755 # type: () -> Capacity
3756 return self
._property
_impl
('capacity')
3759 def capacity(self
, new_val
):
3760 # type: (Optional[Capacity]) -> None
3761 self
._capacity
= new_val
3766 return self
._property
_impl
('details')
3769 def details(self
, new_val
):
3770 # type: (Optional[Any]) -> None
3771 self
._details
= new_val
3776 return self
._property
_impl
('health')
3779 def health(self
, new_val
):
3780 # type: (Optional[str]) -> None
3781 self
._health
= new_val
3784 def lastChanged(self
):
3786 return self
._property
_impl
('lastChanged')
3789 def lastChanged(self
, new_val
):
3790 # type: (Optional[str]) -> None
3791 self
._lastChanged
= new_val
3794 def lastChecked(self
):
3796 return self
._property
_impl
('lastChecked')
3799 def lastChecked(self
, new_val
):
3800 # type: (Optional[str]) -> None
3801 self
._lastChecked
= new_val
3804 def previousHealth(self
):
3806 return self
._property
_impl
('previousHealth')
3808 @previousHealth.setter
3809 def previousHealth(self
, new_val
):
3810 # type: (Optional[str]) -> None
3811 self
._previousHealth
= new_val
3815 # type: () -> Versions
3816 return self
._property
_impl
('versions')
3819 def versions(self
, new_val
):
3820 # type: (Optional[Versions]) -> None
3821 self
._versions
= new_val
3824 class DeviceClassesItem(CrdObject
):
3826 ('name', 'name', str, False, False)
3830 name
=_omit
, # type: Optional[str]
3832 super(DeviceClassesItem
, self
).__init
__(
3839 return self
._property
_impl
('name')
3842 def name(self
, new_val
):
3843 # type: (Optional[str]) -> None
3844 self
._name
= new_val
3847 class DeviceClassesList(CrdObjectList
):
3848 _items_type
= DeviceClassesItem
3851 class Version(CrdObject
):
3853 ('image', 'image', str, False, False),
3854 ('version', 'version', str, False, False)
3858 image
=_omit
, # type: Optional[str]
3859 version
=_omit
, # type: Optional[str]
3861 super(Version
, self
).__init
__(
3869 return self
._property
_impl
('image')
3872 def image(self
, new_val
):
3873 # type: (Optional[str]) -> None
3874 self
._image
= new_val
3879 return self
._property
_impl
('version')
3882 def version(self
, new_val
):
3883 # type: (Optional[str]) -> None
3884 self
._version
= new_val
3887 class CephCluster(CrdClass
):
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)
3898 apiVersion
=_omit
, # type: Optional[str]
3899 kind
=_omit
, # type: Optional[str]
3900 metadata
=_omit
, # type: Optional[Any]
3901 status
=_omit
, # type: Optional[Status]
3903 super(CephCluster
, self
).__init
__(
3905 apiVersion
=apiVersion
,
3912 def apiVersion(self
):
3914 return self
._property
_impl
('apiVersion')
3917 def apiVersion(self
, new_val
):
3918 # type: (Optional[str]) -> None
3919 self
._apiVersion
= new_val
3924 return self
._property
_impl
('kind')
3927 def kind(self
, new_val
):
3928 # type: (Optional[str]) -> None
3929 self
._kind
= new_val
3934 return self
._property
_impl
('metadata')
3937 def metadata(self
, new_val
):
3938 # type: (Optional[Any]) -> None
3939 self
._metadata
= new_val
3944 return self
._property
_impl
('spec')
3947 def spec(self
, new_val
):
3948 # type: (Spec) -> None
3949 self
._spec
= new_val
3953 # type: () -> Optional[Status]
3954 return self
._property
_impl
('status')
3957 def status(self
, new_val
):
3958 # type: (Optional[Status]) -> None
3959 self
._status
= new_val