2 This file is automatically generated.
7 from typing
import Any
, Optional
, Union
, List
11 from .._helper
import _omit
, CrdObject
, CrdObjectList
, CrdClass
13 class ErasureCoded(CrdObject
):
15 ('algorithm', 'algorithm', str, False, False),
16 ('codingChunks', 'codingChunks', int, True, False),
17 ('dataChunks', 'dataChunks', int, True, False)
21 codingChunks
, # type: int
22 dataChunks
, # type: int
23 algorithm
=_omit
, # type: Optional[str]
25 super(ErasureCoded
, self
).__init
__(
26 codingChunks
=codingChunks
,
27 dataChunks
=dataChunks
,
34 return self
._property
_impl
('algorithm')
37 def algorithm(self
, new_val
):
38 # type: (Optional[str]) -> None
39 self
._algorithm
= new_val
42 def codingChunks(self
):
44 return self
._property
_impl
('codingChunks')
47 def codingChunks(self
, new_val
):
49 self
._codingChunks
= new_val
54 return self
._property
_impl
('dataChunks')
57 def dataChunks(self
, new_val
):
59 self
._dataChunks
= new_val
62 class SnapshotSchedulesItem(CrdObject
):
64 ('interval', 'interval', str, False, False),
65 ('startTime', 'startTime', str, False, False)
69 interval
=_omit
, # type: Optional[str]
70 startTime
=_omit
, # type: Optional[str]
72 super(SnapshotSchedulesItem
, self
).__init
__(
80 return self
._property
_impl
('interval')
83 def interval(self
, new_val
):
84 # type: (Optional[str]) -> None
85 self
._interval
= new_val
90 return self
._property
_impl
('startTime')
93 def startTime(self
, new_val
):
94 # type: (Optional[str]) -> None
95 self
._startTime
= new_val
98 class SnapshotSchedulesList(CrdObjectList
):
99 _items_type
= SnapshotSchedulesItem
102 class Mirroring(CrdObject
):
104 ('enabled', 'enabled', bool, False, False),
105 ('mode', 'mode', str, False, False),
106 ('snapshotSchedules', 'snapshotSchedules', 'SnapshotSchedulesList', False, False)
110 enabled
=_omit
, # type: Optional[bool]
111 mode
=_omit
, # type: Optional[str]
112 snapshotSchedules
=_omit
, # type: Optional[Union[List[SnapshotSchedulesItem], CrdObjectList]]
114 super(Mirroring
, self
).__init
__(
117 snapshotSchedules
=snapshotSchedules
,
123 return self
._property
_impl
('enabled')
126 def enabled(self
, new_val
):
127 # type: (Optional[bool]) -> None
128 self
._enabled
= new_val
133 return self
._property
_impl
('mode')
136 def mode(self
, new_val
):
137 # type: (Optional[str]) -> None
141 def snapshotSchedules(self
):
142 # type: () -> Union[List[SnapshotSchedulesItem], CrdObjectList]
143 return self
._property
_impl
('snapshotSchedules')
145 @snapshotSchedules.setter
146 def snapshotSchedules(self
, new_val
):
147 # type: (Optional[Union[List[SnapshotSchedulesItem], CrdObjectList]]) -> None
148 self
._snapshotSchedules
= new_val
151 class Quotas(CrdObject
):
153 ('maxBytes', 'maxBytes', int, False, False),
154 ('maxObjects', 'maxObjects', int, False, False),
155 ('maxSize', 'maxSize', str, False, False)
159 maxBytes
=_omit
, # type: Optional[int]
160 maxObjects
=_omit
, # type: Optional[int]
161 maxSize
=_omit
, # type: Optional[str]
163 super(Quotas
, self
).__init
__(
165 maxObjects
=maxObjects
,
172 return self
._property
_impl
('maxBytes')
175 def maxBytes(self
, new_val
):
176 # type: (Optional[int]) -> None
177 self
._maxBytes
= new_val
180 def maxObjects(self
):
182 return self
._property
_impl
('maxObjects')
185 def maxObjects(self
, new_val
):
186 # type: (Optional[int]) -> None
187 self
._maxObjects
= new_val
192 return self
._property
_impl
('maxSize')
195 def maxSize(self
, new_val
):
196 # type: (Optional[str]) -> None
197 self
._maxSize
= new_val
200 class Replicated(CrdObject
):
202 ('replicasPerFailureDomain', 'replicasPerFailureDomain', int, False, False),
203 ('requireSafeReplicaSize', 'requireSafeReplicaSize', bool, False, False),
204 ('size', 'size', int, True, False),
205 ('subFailureDomain', 'subFailureDomain', str, False, False),
206 ('targetSizeRatio', 'targetSizeRatio', float, False, False)
211 replicasPerFailureDomain
=_omit
, # type: Optional[int]
212 requireSafeReplicaSize
=_omit
, # type: Optional[bool]
213 subFailureDomain
=_omit
, # type: Optional[str]
214 targetSizeRatio
=_omit
, # type: Optional[float]
216 super(Replicated
, self
).__init
__(
218 replicasPerFailureDomain
=replicasPerFailureDomain
,
219 requireSafeReplicaSize
=requireSafeReplicaSize
,
220 subFailureDomain
=subFailureDomain
,
221 targetSizeRatio
=targetSizeRatio
,
225 def replicasPerFailureDomain(self
):
227 return self
._property
_impl
('replicasPerFailureDomain')
229 @replicasPerFailureDomain.setter
230 def replicasPerFailureDomain(self
, new_val
):
231 # type: (Optional[int]) -> None
232 self
._replicasPerFailureDomain
= new_val
235 def requireSafeReplicaSize(self
):
237 return self
._property
_impl
('requireSafeReplicaSize')
239 @requireSafeReplicaSize.setter
240 def requireSafeReplicaSize(self
, new_val
):
241 # type: (Optional[bool]) -> None
242 self
._requireSafeReplicaSize
= new_val
247 return self
._property
_impl
('size')
250 def size(self
, new_val
):
251 # type: (int) -> None
255 def subFailureDomain(self
):
257 return self
._property
_impl
('subFailureDomain')
259 @subFailureDomain.setter
260 def subFailureDomain(self
, new_val
):
261 # type: (Optional[str]) -> None
262 self
._subFailureDomain
= new_val
265 def targetSizeRatio(self
):
267 return self
._property
_impl
('targetSizeRatio')
269 @targetSizeRatio.setter
270 def targetSizeRatio(self
, new_val
):
271 # type: (Optional[float]) -> None
272 self
._targetSizeRatio
= new_val
275 class Mirror(CrdObject
):
277 ('disabled', 'disabled', bool, False, False),
278 ('interval', 'interval', str, False, False),
279 ('timeout', 'timeout', str, False, False)
283 disabled
=_omit
, # type: Optional[bool]
284 interval
=_omit
, # type: Optional[str]
285 timeout
=_omit
, # type: Optional[str]
287 super(Mirror
, self
).__init
__(
296 return self
._property
_impl
('disabled')
299 def disabled(self
, new_val
):
300 # type: (Optional[bool]) -> None
301 self
._disabled
= new_val
306 return self
._property
_impl
('interval')
309 def interval(self
, new_val
):
310 # type: (Optional[str]) -> None
311 self
._interval
= new_val
316 return self
._property
_impl
('timeout')
319 def timeout(self
, new_val
):
320 # type: (Optional[str]) -> None
321 self
._timeout
= new_val
324 class StatusCheck(CrdObject
):
326 ('mirror', 'mirror', 'Mirror', False, True)
330 mirror
=_omit
, # type: Optional[Mirror]
332 super(StatusCheck
, self
).__init
__(
338 # type: () -> Optional[Mirror]
339 return self
._property
_impl
('mirror')
342 def mirror(self
, new_val
):
343 # type: (Optional[Mirror]) -> None
344 self
._mirror
= new_val
347 class DataPoolsItem(CrdObject
):
349 ('compressionMode', 'compressionMode', str, False, True),
350 ('crushRoot', 'crushRoot', str, False, True),
351 ('deviceClass', 'deviceClass', str, False, True),
352 ('enableRBDStats', 'enableRBDStats', bool, False, False),
353 ('erasureCoded', 'erasureCoded', 'ErasureCoded', False, False),
354 ('failureDomain', 'failureDomain', str, False, False),
355 ('mirroring', 'mirroring', 'Mirroring', False, False),
356 ('parameters', 'parameters', object, False, True),
357 ('quotas', 'quotas', 'Quotas', False, True),
358 ('replicated', 'replicated', 'Replicated', False, False),
359 ('statusCheck', 'statusCheck', 'StatusCheck', False, False)
363 compressionMode
=_omit
, # type: Optional[str]
364 crushRoot
=_omit
, # type: Optional[str]
365 deviceClass
=_omit
, # type: Optional[str]
366 enableRBDStats
=_omit
, # type: Optional[bool]
367 erasureCoded
=_omit
, # type: Optional[ErasureCoded]
368 failureDomain
=_omit
, # type: Optional[str]
369 mirroring
=_omit
, # type: Optional[Mirroring]
370 parameters
=_omit
, # type: Optional[Any]
371 quotas
=_omit
, # type: Optional[Quotas]
372 replicated
=_omit
, # type: Optional[Replicated]
373 statusCheck
=_omit
, # type: Optional[StatusCheck]
375 super(DataPoolsItem
, self
).__init
__(
376 compressionMode
=compressionMode
,
378 deviceClass
=deviceClass
,
379 enableRBDStats
=enableRBDStats
,
380 erasureCoded
=erasureCoded
,
381 failureDomain
=failureDomain
,
383 parameters
=parameters
,
385 replicated
=replicated
,
386 statusCheck
=statusCheck
,
390 def compressionMode(self
):
391 # type: () -> Optional[str]
392 return self
._property
_impl
('compressionMode')
394 @compressionMode.setter
395 def compressionMode(self
, new_val
):
396 # type: (Optional[str]) -> None
397 self
._compressionMode
= new_val
401 # type: () -> Optional[str]
402 return self
._property
_impl
('crushRoot')
405 def crushRoot(self
, new_val
):
406 # type: (Optional[str]) -> None
407 self
._crushRoot
= new_val
410 def deviceClass(self
):
411 # type: () -> Optional[str]
412 return self
._property
_impl
('deviceClass')
415 def deviceClass(self
, new_val
):
416 # type: (Optional[str]) -> None
417 self
._deviceClass
= new_val
420 def enableRBDStats(self
):
422 return self
._property
_impl
('enableRBDStats')
424 @enableRBDStats.setter
425 def enableRBDStats(self
, new_val
):
426 # type: (Optional[bool]) -> None
427 self
._enableRBDStats
= new_val
430 def erasureCoded(self
):
431 # type: () -> ErasureCoded
432 return self
._property
_impl
('erasureCoded')
435 def erasureCoded(self
, new_val
):
436 # type: (Optional[ErasureCoded]) -> None
437 self
._erasureCoded
= new_val
440 def failureDomain(self
):
442 return self
._property
_impl
('failureDomain')
444 @failureDomain.setter
445 def failureDomain(self
, new_val
):
446 # type: (Optional[str]) -> None
447 self
._failureDomain
= new_val
451 # type: () -> Mirroring
452 return self
._property
_impl
('mirroring')
455 def mirroring(self
, new_val
):
456 # type: (Optional[Mirroring]) -> None
457 self
._mirroring
= new_val
460 def parameters(self
):
461 # type: () -> Optional[Any]
462 return self
._property
_impl
('parameters')
465 def parameters(self
, new_val
):
466 # type: (Optional[Any]) -> None
467 self
._parameters
= new_val
471 # type: () -> Optional[Quotas]
472 return self
._property
_impl
('quotas')
475 def quotas(self
, new_val
):
476 # type: (Optional[Quotas]) -> None
477 self
._quotas
= new_val
480 def replicated(self
):
481 # type: () -> Replicated
482 return self
._property
_impl
('replicated')
485 def replicated(self
, new_val
):
486 # type: (Optional[Replicated]) -> None
487 self
._replicated
= new_val
490 def statusCheck(self
):
491 # type: () -> StatusCheck
492 return self
._property
_impl
('statusCheck')
495 def statusCheck(self
, new_val
):
496 # type: (Optional[StatusCheck]) -> None
497 self
._statusCheck
= new_val
500 class DataPoolsList(CrdObjectList
):
501 _items_type
= DataPoolsItem
504 class MetadataPool(CrdObject
):
506 ('compressionMode', 'compressionMode', str, False, True),
507 ('crushRoot', 'crushRoot', str, False, True),
508 ('deviceClass', 'deviceClass', str, False, True),
509 ('enableRBDStats', 'enableRBDStats', bool, False, False),
510 ('erasureCoded', 'erasureCoded', 'ErasureCoded', False, False),
511 ('failureDomain', 'failureDomain', str, False, False),
512 ('mirroring', 'mirroring', 'Mirroring', False, False),
513 ('parameters', 'parameters', object, False, True),
514 ('quotas', 'quotas', 'Quotas', False, True),
515 ('replicated', 'replicated', 'Replicated', False, False),
516 ('statusCheck', 'statusCheck', 'StatusCheck', False, False)
520 compressionMode
=_omit
, # type: Optional[str]
521 crushRoot
=_omit
, # type: Optional[str]
522 deviceClass
=_omit
, # type: Optional[str]
523 enableRBDStats
=_omit
, # type: Optional[bool]
524 erasureCoded
=_omit
, # type: Optional[ErasureCoded]
525 failureDomain
=_omit
, # type: Optional[str]
526 mirroring
=_omit
, # type: Optional[Mirroring]
527 parameters
=_omit
, # type: Optional[Any]
528 quotas
=_omit
, # type: Optional[Quotas]
529 replicated
=_omit
, # type: Optional[Replicated]
530 statusCheck
=_omit
, # type: Optional[StatusCheck]
532 super(MetadataPool
, self
).__init
__(
533 compressionMode
=compressionMode
,
535 deviceClass
=deviceClass
,
536 enableRBDStats
=enableRBDStats
,
537 erasureCoded
=erasureCoded
,
538 failureDomain
=failureDomain
,
540 parameters
=parameters
,
542 replicated
=replicated
,
543 statusCheck
=statusCheck
,
547 def compressionMode(self
):
548 # type: () -> Optional[str]
549 return self
._property
_impl
('compressionMode')
551 @compressionMode.setter
552 def compressionMode(self
, new_val
):
553 # type: (Optional[str]) -> None
554 self
._compressionMode
= new_val
558 # type: () -> Optional[str]
559 return self
._property
_impl
('crushRoot')
562 def crushRoot(self
, new_val
):
563 # type: (Optional[str]) -> None
564 self
._crushRoot
= new_val
567 def deviceClass(self
):
568 # type: () -> Optional[str]
569 return self
._property
_impl
('deviceClass')
572 def deviceClass(self
, new_val
):
573 # type: (Optional[str]) -> None
574 self
._deviceClass
= new_val
577 def enableRBDStats(self
):
579 return self
._property
_impl
('enableRBDStats')
581 @enableRBDStats.setter
582 def enableRBDStats(self
, new_val
):
583 # type: (Optional[bool]) -> None
584 self
._enableRBDStats
= new_val
587 def erasureCoded(self
):
588 # type: () -> ErasureCoded
589 return self
._property
_impl
('erasureCoded')
592 def erasureCoded(self
, new_val
):
593 # type: (Optional[ErasureCoded]) -> None
594 self
._erasureCoded
= new_val
597 def failureDomain(self
):
599 return self
._property
_impl
('failureDomain')
601 @failureDomain.setter
602 def failureDomain(self
, new_val
):
603 # type: (Optional[str]) -> None
604 self
._failureDomain
= new_val
608 # type: () -> Mirroring
609 return self
._property
_impl
('mirroring')
612 def mirroring(self
, new_val
):
613 # type: (Optional[Mirroring]) -> None
614 self
._mirroring
= new_val
617 def parameters(self
):
618 # type: () -> Optional[Any]
619 return self
._property
_impl
('parameters')
622 def parameters(self
, new_val
):
623 # type: (Optional[Any]) -> None
624 self
._parameters
= new_val
628 # type: () -> Optional[Quotas]
629 return self
._property
_impl
('quotas')
632 def quotas(self
, new_val
):
633 # type: (Optional[Quotas]) -> None
634 self
._quotas
= new_val
637 def replicated(self
):
638 # type: () -> Replicated
639 return self
._property
_impl
('replicated')
642 def replicated(self
, new_val
):
643 # type: (Optional[Replicated]) -> None
644 self
._replicated
= new_val
647 def statusCheck(self
):
648 # type: () -> StatusCheck
649 return self
._property
_impl
('statusCheck')
652 def statusCheck(self
, new_val
):
653 # type: (Optional[StatusCheck]) -> None
654 self
._statusCheck
= new_val
657 class ValuesList(CrdObjectList
):
661 class MatchExpressionsItem(CrdObject
):
663 ('key', 'key', str, True, False),
664 ('operator', 'operator', str, True, False),
665 ('values', 'values', 'ValuesList', False, False)
670 operator
, # type: str
671 values
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
673 super(MatchExpressionsItem
, self
).__init
__(
682 return self
._property
_impl
('key')
685 def key(self
, new_val
):
686 # type: (str) -> None
692 return self
._property
_impl
('operator')
695 def operator(self
, new_val
):
696 # type: (str) -> None
697 self
._operator
= new_val
701 # type: () -> Union[List[str], CrdObjectList]
702 return self
._property
_impl
('values')
705 def values(self
, new_val
):
706 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
707 self
._values
= new_val
710 class MatchExpressionsList(CrdObjectList
):
711 _items_type
= MatchExpressionsItem
714 class MatchFieldsItem(CrdObject
):
716 ('key', 'key', str, True, False),
717 ('operator', 'operator', str, True, False),
718 ('values', 'values', 'ValuesList', False, False)
723 operator
, # type: str
724 values
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
726 super(MatchFieldsItem
, self
).__init
__(
735 return self
._property
_impl
('key')
738 def key(self
, new_val
):
739 # type: (str) -> None
745 return self
._property
_impl
('operator')
748 def operator(self
, new_val
):
749 # type: (str) -> None
750 self
._operator
= new_val
754 # type: () -> Union[List[str], CrdObjectList]
755 return self
._property
_impl
('values')
758 def values(self
, new_val
):
759 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
760 self
._values
= new_val
763 class MatchFieldsList(CrdObjectList
):
764 _items_type
= MatchFieldsItem
767 class Preference(CrdObject
):
769 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
770 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
774 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
775 matchFields
=_omit
, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
777 super(Preference
, self
).__init
__(
778 matchExpressions
=matchExpressions
,
779 matchFields
=matchFields
,
783 def matchExpressions(self
):
784 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
785 return self
._property
_impl
('matchExpressions')
787 @matchExpressions.setter
788 def matchExpressions(self
, new_val
):
789 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
790 self
._matchExpressions
= new_val
793 def matchFields(self
):
794 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
795 return self
._property
_impl
('matchFields')
798 def matchFields(self
, new_val
):
799 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
800 self
._matchFields
= new_val
803 class PreferredDuringSchedulingIgnoredDuringExecutionItem(CrdObject
):
805 ('podAffinityTerm', 'podAffinityTerm', 'PodAffinityTerm', False, False),
806 ('weight', 'weight', int, False, False),
807 ('preference', 'preference', 'Preference', False, False)
811 podAffinityTerm
=_omit
, # type: Optional[PodAffinityTerm]
812 weight
=_omit
, # type: Optional[int]
813 preference
=_omit
, # type: Optional[Preference]
815 super(PreferredDuringSchedulingIgnoredDuringExecutionItem
, self
).__init
__(
816 podAffinityTerm
=podAffinityTerm
,
818 preference
=preference
,
822 def podAffinityTerm(self
):
823 # type: () -> PodAffinityTerm
824 return self
._property
_impl
('podAffinityTerm')
826 @podAffinityTerm.setter
827 def podAffinityTerm(self
, new_val
):
828 # type: (Optional[PodAffinityTerm]) -> None
829 self
._podAffinityTerm
= new_val
834 return self
._property
_impl
('weight')
837 def weight(self
, new_val
):
838 # type: (Optional[int]) -> None
839 self
._weight
= new_val
842 def preference(self
):
843 # type: () -> Preference
844 return self
._property
_impl
('preference')
847 def preference(self
, new_val
):
848 # type: (Optional[Preference]) -> None
849 self
._preference
= new_val
852 class PreferredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList
):
853 _items_type
= PreferredDuringSchedulingIgnoredDuringExecutionItem
856 class NodeSelectorTermsItem(CrdObject
):
858 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
859 ('matchFields', 'matchFields', 'MatchFieldsList', False, False)
863 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
864 matchFields
=_omit
, # type: Optional[Union[List[MatchFieldsItem], CrdObjectList]]
866 super(NodeSelectorTermsItem
, self
).__init
__(
867 matchExpressions
=matchExpressions
,
868 matchFields
=matchFields
,
872 def matchExpressions(self
):
873 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
874 return self
._property
_impl
('matchExpressions')
876 @matchExpressions.setter
877 def matchExpressions(self
, new_val
):
878 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
879 self
._matchExpressions
= new_val
882 def matchFields(self
):
883 # type: () -> Union[List[MatchFieldsItem], CrdObjectList]
884 return self
._property
_impl
('matchFields')
887 def matchFields(self
, new_val
):
888 # type: (Optional[Union[List[MatchFieldsItem], CrdObjectList]]) -> None
889 self
._matchFields
= new_val
892 class NodeSelectorTermsList(CrdObjectList
):
893 _items_type
= NodeSelectorTermsItem
896 class RequiredDuringSchedulingIgnoredDuringExecution(CrdObject
):
898 ('nodeSelectorTerms', 'nodeSelectorTerms', 'NodeSelectorTermsList', True, False)
902 nodeSelectorTerms
, # type: Union[List[NodeSelectorTermsItem], CrdObjectList]
904 super(RequiredDuringSchedulingIgnoredDuringExecution
, self
).__init
__(
905 nodeSelectorTerms
=nodeSelectorTerms
,
909 def nodeSelectorTerms(self
):
910 # type: () -> Union[List[NodeSelectorTermsItem], CrdObjectList]
911 return self
._property
_impl
('nodeSelectorTerms')
913 @nodeSelectorTerms.setter
914 def nodeSelectorTerms(self
, new_val
):
915 # type: (Union[List[NodeSelectorTermsItem], CrdObjectList]) -> None
916 self
._nodeSelectorTerms
= new_val
919 class NodeAffinity(CrdObject
):
921 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
922 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecution', False, False)
926 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
927 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[RequiredDuringSchedulingIgnoredDuringExecution]
929 super(NodeAffinity
, self
).__init
__(
930 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
931 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
935 def preferredDuringSchedulingIgnoredDuringExecution(self
):
936 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
937 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
939 @preferredDuringSchedulingIgnoredDuringExecution.setter
940 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
941 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
942 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
945 def requiredDuringSchedulingIgnoredDuringExecution(self
):
946 # type: () -> RequiredDuringSchedulingIgnoredDuringExecution
947 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
949 @requiredDuringSchedulingIgnoredDuringExecution.setter
950 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
951 # type: (Optional[RequiredDuringSchedulingIgnoredDuringExecution]) -> None
952 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
955 class LabelSelector(CrdObject
):
957 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
958 ('matchLabels', 'matchLabels', object, False, False)
962 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
963 matchLabels
=_omit
, # type: Optional[Any]
965 super(LabelSelector
, self
).__init
__(
966 matchExpressions
=matchExpressions
,
967 matchLabels
=matchLabels
,
971 def matchExpressions(self
):
972 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
973 return self
._property
_impl
('matchExpressions')
975 @matchExpressions.setter
976 def matchExpressions(self
, new_val
):
977 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
978 self
._matchExpressions
= new_val
981 def matchLabels(self
):
983 return self
._property
_impl
('matchLabels')
986 def matchLabels(self
, new_val
):
987 # type: (Optional[Any]) -> None
988 self
._matchLabels
= new_val
991 class NamespaceSelector(CrdObject
):
993 ('matchExpressions', 'matchExpressions', 'MatchExpressionsList', False, False),
994 ('matchLabels', 'matchLabels', object, False, False)
998 matchExpressions
=_omit
, # type: Optional[Union[List[MatchExpressionsItem], CrdObjectList]]
999 matchLabels
=_omit
, # type: Optional[Any]
1001 super(NamespaceSelector
, self
).__init
__(
1002 matchExpressions
=matchExpressions
,
1003 matchLabels
=matchLabels
,
1007 def matchExpressions(self
):
1008 # type: () -> Union[List[MatchExpressionsItem], CrdObjectList]
1009 return self
._property
_impl
('matchExpressions')
1011 @matchExpressions.setter
1012 def matchExpressions(self
, new_val
):
1013 # type: (Optional[Union[List[MatchExpressionsItem], CrdObjectList]]) -> None
1014 self
._matchExpressions
= new_val
1017 def matchLabels(self
):
1019 return self
._property
_impl
('matchLabels')
1022 def matchLabels(self
, new_val
):
1023 # type: (Optional[Any]) -> None
1024 self
._matchLabels
= new_val
1027 class NamespacesList(CrdObjectList
):
1031 class PodAffinityTerm(CrdObject
):
1033 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
1034 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
1035 ('namespaces', 'namespaces', 'NamespacesList', False, False),
1036 ('topologyKey', 'topologyKey', str, True, False)
1040 topologyKey
, # type: str
1041 labelSelector
=_omit
, # type: Optional[LabelSelector]
1042 namespaceSelector
=_omit
, # type: Optional[NamespaceSelector]
1043 namespaces
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
1045 super(PodAffinityTerm
, self
).__init
__(
1046 topologyKey
=topologyKey
,
1047 labelSelector
=labelSelector
,
1048 namespaceSelector
=namespaceSelector
,
1049 namespaces
=namespaces
,
1053 def labelSelector(self
):
1054 # type: () -> LabelSelector
1055 return self
._property
_impl
('labelSelector')
1057 @labelSelector.setter
1058 def labelSelector(self
, new_val
):
1059 # type: (Optional[LabelSelector]) -> None
1060 self
._labelSelector
= new_val
1063 def namespaceSelector(self
):
1064 # type: () -> NamespaceSelector
1065 return self
._property
_impl
('namespaceSelector')
1067 @namespaceSelector.setter
1068 def namespaceSelector(self
, new_val
):
1069 # type: (Optional[NamespaceSelector]) -> None
1070 self
._namespaceSelector
= new_val
1073 def namespaces(self
):
1074 # type: () -> Union[List[str], CrdObjectList]
1075 return self
._property
_impl
('namespaces')
1078 def namespaces(self
, new_val
):
1079 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1080 self
._namespaces
= new_val
1083 def topologyKey(self
):
1085 return self
._property
_impl
('topologyKey')
1088 def topologyKey(self
, new_val
):
1089 # type: (str) -> None
1090 self
._topologyKey
= new_val
1093 class RequiredDuringSchedulingIgnoredDuringExecutionItem(CrdObject
):
1095 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
1096 ('namespaceSelector', 'namespaceSelector', 'NamespaceSelector', False, False),
1097 ('namespaces', 'namespaces', 'NamespacesList', False, False),
1098 ('topologyKey', 'topologyKey', str, True, False)
1102 topologyKey
, # type: str
1103 labelSelector
=_omit
, # type: Optional[LabelSelector]
1104 namespaceSelector
=_omit
, # type: Optional[NamespaceSelector]
1105 namespaces
=_omit
, # type: Optional[Union[List[str], CrdObjectList]]
1107 super(RequiredDuringSchedulingIgnoredDuringExecutionItem
, self
).__init
__(
1108 topologyKey
=topologyKey
,
1109 labelSelector
=labelSelector
,
1110 namespaceSelector
=namespaceSelector
,
1111 namespaces
=namespaces
,
1115 def labelSelector(self
):
1116 # type: () -> LabelSelector
1117 return self
._property
_impl
('labelSelector')
1119 @labelSelector.setter
1120 def labelSelector(self
, new_val
):
1121 # type: (Optional[LabelSelector]) -> None
1122 self
._labelSelector
= new_val
1125 def namespaceSelector(self
):
1126 # type: () -> NamespaceSelector
1127 return self
._property
_impl
('namespaceSelector')
1129 @namespaceSelector.setter
1130 def namespaceSelector(self
, new_val
):
1131 # type: (Optional[NamespaceSelector]) -> None
1132 self
._namespaceSelector
= new_val
1135 def namespaces(self
):
1136 # type: () -> Union[List[str], CrdObjectList]
1137 return self
._property
_impl
('namespaces')
1140 def namespaces(self
, new_val
):
1141 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
1142 self
._namespaces
= new_val
1145 def topologyKey(self
):
1147 return self
._property
_impl
('topologyKey')
1150 def topologyKey(self
, new_val
):
1151 # type: (str) -> None
1152 self
._topologyKey
= new_val
1155 class RequiredDuringSchedulingIgnoredDuringExecutionList(CrdObjectList
):
1156 _items_type
= RequiredDuringSchedulingIgnoredDuringExecutionItem
1159 class PodAffinity(CrdObject
):
1161 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
1162 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
1166 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
1167 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
1169 super(PodAffinity
, self
).__init
__(
1170 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
1171 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
1175 def preferredDuringSchedulingIgnoredDuringExecution(self
):
1176 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
1177 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
1179 @preferredDuringSchedulingIgnoredDuringExecution.setter
1180 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
1181 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
1182 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
1185 def requiredDuringSchedulingIgnoredDuringExecution(self
):
1186 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
1187 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
1189 @requiredDuringSchedulingIgnoredDuringExecution.setter
1190 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
1191 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
1192 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
1195 class PodAntiAffinity(CrdObject
):
1197 ('preferredDuringSchedulingIgnoredDuringExecution', 'preferredDuringSchedulingIgnoredDuringExecution', 'PreferredDuringSchedulingIgnoredDuringExecutionList', False, False),
1198 ('requiredDuringSchedulingIgnoredDuringExecution', 'requiredDuringSchedulingIgnoredDuringExecution', 'RequiredDuringSchedulingIgnoredDuringExecutionList', False, False)
1202 preferredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
1203 requiredDuringSchedulingIgnoredDuringExecution
=_omit
, # type: Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]
1205 super(PodAntiAffinity
, self
).__init
__(
1206 preferredDuringSchedulingIgnoredDuringExecution
=preferredDuringSchedulingIgnoredDuringExecution
,
1207 requiredDuringSchedulingIgnoredDuringExecution
=requiredDuringSchedulingIgnoredDuringExecution
,
1211 def preferredDuringSchedulingIgnoredDuringExecution(self
):
1212 # type: () -> Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
1213 return self
._property
_impl
('preferredDuringSchedulingIgnoredDuringExecution')
1215 @preferredDuringSchedulingIgnoredDuringExecution.setter
1216 def preferredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
1217 # type: (Optional[Union[List[PreferredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
1218 self
._preferredDuringSchedulingIgnoredDuringExecution
= new_val
1221 def requiredDuringSchedulingIgnoredDuringExecution(self
):
1222 # type: () -> Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]
1223 return self
._property
_impl
('requiredDuringSchedulingIgnoredDuringExecution')
1225 @requiredDuringSchedulingIgnoredDuringExecution.setter
1226 def requiredDuringSchedulingIgnoredDuringExecution(self
, new_val
):
1227 # type: (Optional[Union[List[RequiredDuringSchedulingIgnoredDuringExecutionItem], CrdObjectList]]) -> None
1228 self
._requiredDuringSchedulingIgnoredDuringExecution
= new_val
1231 class TolerationsItem(CrdObject
):
1233 ('effect', 'effect', str, False, False),
1234 ('key', 'key', str, False, False),
1235 ('operator', 'operator', str, False, False),
1236 ('tolerationSeconds', 'tolerationSeconds', int, False, False),
1237 ('value', 'value', str, False, False)
1241 effect
=_omit
, # type: Optional[str]
1242 key
=_omit
, # type: Optional[str]
1243 operator
=_omit
, # type: Optional[str]
1244 tolerationSeconds
=_omit
, # type: Optional[int]
1245 value
=_omit
, # type: Optional[str]
1247 super(TolerationsItem
, self
).__init
__(
1251 tolerationSeconds
=tolerationSeconds
,
1258 return self
._property
_impl
('effect')
1261 def effect(self
, new_val
):
1262 # type: (Optional[str]) -> None
1263 self
._effect
= new_val
1268 return self
._property
_impl
('key')
1271 def key(self
, new_val
):
1272 # type: (Optional[str]) -> None
1278 return self
._property
_impl
('operator')
1281 def operator(self
, new_val
):
1282 # type: (Optional[str]) -> None
1283 self
._operator
= new_val
1286 def tolerationSeconds(self
):
1288 return self
._property
_impl
('tolerationSeconds')
1290 @tolerationSeconds.setter
1291 def tolerationSeconds(self
, new_val
):
1292 # type: (Optional[int]) -> None
1293 self
._tolerationSeconds
= new_val
1298 return self
._property
_impl
('value')
1301 def value(self
, new_val
):
1302 # type: (Optional[str]) -> None
1303 self
._value
= new_val
1306 class TolerationsList(CrdObjectList
):
1307 _items_type
= TolerationsItem
1310 class TopologySpreadConstraintsItem(CrdObject
):
1312 ('labelSelector', 'labelSelector', 'LabelSelector', False, False),
1313 ('maxSkew', 'maxSkew', int, True, False),
1314 ('topologyKey', 'topologyKey', str, True, False),
1315 ('whenUnsatisfiable', 'whenUnsatisfiable', str, True, False)
1319 maxSkew
, # type: int
1320 topologyKey
, # type: str
1321 whenUnsatisfiable
, # type: str
1322 labelSelector
=_omit
, # type: Optional[LabelSelector]
1324 super(TopologySpreadConstraintsItem
, self
).__init
__(
1326 topologyKey
=topologyKey
,
1327 whenUnsatisfiable
=whenUnsatisfiable
,
1328 labelSelector
=labelSelector
,
1332 def labelSelector(self
):
1333 # type: () -> LabelSelector
1334 return self
._property
_impl
('labelSelector')
1336 @labelSelector.setter
1337 def labelSelector(self
, new_val
):
1338 # type: (Optional[LabelSelector]) -> None
1339 self
._labelSelector
= new_val
1344 return self
._property
_impl
('maxSkew')
1347 def maxSkew(self
, new_val
):
1348 # type: (int) -> None
1349 self
._maxSkew
= new_val
1352 def topologyKey(self
):
1354 return self
._property
_impl
('topologyKey')
1357 def topologyKey(self
, new_val
):
1358 # type: (str) -> None
1359 self
._topologyKey
= new_val
1362 def whenUnsatisfiable(self
):
1364 return self
._property
_impl
('whenUnsatisfiable')
1366 @whenUnsatisfiable.setter
1367 def whenUnsatisfiable(self
, new_val
):
1368 # type: (str) -> None
1369 self
._whenUnsatisfiable
= new_val
1372 class TopologySpreadConstraintsList(CrdObjectList
):
1373 _items_type
= TopologySpreadConstraintsItem
1376 class Placement(CrdObject
):
1378 ('nodeAffinity', 'nodeAffinity', 'NodeAffinity', False, False),
1379 ('podAffinity', 'podAffinity', 'PodAffinity', False, False),
1380 ('podAntiAffinity', 'podAntiAffinity', 'PodAntiAffinity', False, False),
1381 ('tolerations', 'tolerations', 'TolerationsList', False, False),
1382 ('topologySpreadConstraints', 'topologySpreadConstraints', 'TopologySpreadConstraintsList', False, False)
1386 nodeAffinity
=_omit
, # type: Optional[NodeAffinity]
1387 podAffinity
=_omit
, # type: Optional[PodAffinity]
1388 podAntiAffinity
=_omit
, # type: Optional[PodAntiAffinity]
1389 tolerations
=_omit
, # type: Optional[Union[List[TolerationsItem], CrdObjectList]]
1390 topologySpreadConstraints
=_omit
, # type: Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]
1392 super(Placement
, self
).__init
__(
1393 nodeAffinity
=nodeAffinity
,
1394 podAffinity
=podAffinity
,
1395 podAntiAffinity
=podAntiAffinity
,
1396 tolerations
=tolerations
,
1397 topologySpreadConstraints
=topologySpreadConstraints
,
1401 def nodeAffinity(self
):
1402 # type: () -> NodeAffinity
1403 return self
._property
_impl
('nodeAffinity')
1405 @nodeAffinity.setter
1406 def nodeAffinity(self
, new_val
):
1407 # type: (Optional[NodeAffinity]) -> None
1408 self
._nodeAffinity
= new_val
1411 def podAffinity(self
):
1412 # type: () -> PodAffinity
1413 return self
._property
_impl
('podAffinity')
1416 def podAffinity(self
, new_val
):
1417 # type: (Optional[PodAffinity]) -> None
1418 self
._podAffinity
= new_val
1421 def podAntiAffinity(self
):
1422 # type: () -> PodAntiAffinity
1423 return self
._property
_impl
('podAntiAffinity')
1425 @podAntiAffinity.setter
1426 def podAntiAffinity(self
, new_val
):
1427 # type: (Optional[PodAntiAffinity]) -> None
1428 self
._podAntiAffinity
= new_val
1431 def tolerations(self
):
1432 # type: () -> Union[List[TolerationsItem], CrdObjectList]
1433 return self
._property
_impl
('tolerations')
1436 def tolerations(self
, new_val
):
1437 # type: (Optional[Union[List[TolerationsItem], CrdObjectList]]) -> None
1438 self
._tolerations
= new_val
1441 def topologySpreadConstraints(self
):
1442 # type: () -> Union[List[TopologySpreadConstraintsItem], CrdObjectList]
1443 return self
._property
_impl
('topologySpreadConstraints')
1445 @topologySpreadConstraints.setter
1446 def topologySpreadConstraints(self
, new_val
):
1447 # type: (Optional[Union[List[TopologySpreadConstraintsItem], CrdObjectList]]) -> None
1448 self
._topologySpreadConstraints
= new_val
1451 class Resources(CrdObject
):
1453 ('limits', 'limits', object, False, False),
1454 ('requests', 'requests', object, False, False)
1458 limits
=_omit
, # type: Optional[Any]
1459 requests
=_omit
, # type: Optional[Any]
1461 super(Resources
, self
).__init
__(
1469 return self
._property
_impl
('limits')
1472 def limits(self
, new_val
):
1473 # type: (Optional[Any]) -> None
1474 self
._limits
= new_val
1479 return self
._property
_impl
('requests')
1482 def requests(self
, new_val
):
1483 # type: (Optional[Any]) -> None
1484 self
._requests
= new_val
1487 class MetadataServer(CrdObject
):
1489 ('activeCount', 'activeCount', int, True, False),
1490 ('activeStandby', 'activeStandby', bool, False, False),
1491 ('annotations', 'annotations', object, False, True),
1492 ('labels', 'labels', object, False, True),
1493 ('placement', 'placement', 'Placement', False, True),
1494 ('priorityClassName', 'priorityClassName', str, False, False),
1495 ('resources', 'resources', 'Resources', False, True)
1499 activeCount
, # type: int
1500 activeStandby
=_omit
, # type: Optional[bool]
1501 annotations
=_omit
, # type: Optional[Any]
1502 labels
=_omit
, # type: Optional[Any]
1503 placement
=_omit
, # type: Optional[Placement]
1504 priorityClassName
=_omit
, # type: Optional[str]
1505 resources
=_omit
, # type: Optional[Resources]
1507 super(MetadataServer
, self
).__init
__(
1508 activeCount
=activeCount
,
1509 activeStandby
=activeStandby
,
1510 annotations
=annotations
,
1512 placement
=placement
,
1513 priorityClassName
=priorityClassName
,
1514 resources
=resources
,
1518 def activeCount(self
):
1520 return self
._property
_impl
('activeCount')
1523 def activeCount(self
, new_val
):
1524 # type: (int) -> None
1525 self
._activeCount
= new_val
1528 def activeStandby(self
):
1530 return self
._property
_impl
('activeStandby')
1532 @activeStandby.setter
1533 def activeStandby(self
, new_val
):
1534 # type: (Optional[bool]) -> None
1535 self
._activeStandby
= new_val
1538 def annotations(self
):
1539 # type: () -> Optional[Any]
1540 return self
._property
_impl
('annotations')
1543 def annotations(self
, new_val
):
1544 # type: (Optional[Any]) -> None
1545 self
._annotations
= new_val
1549 # type: () -> Optional[Any]
1550 return self
._property
_impl
('labels')
1553 def labels(self
, new_val
):
1554 # type: (Optional[Any]) -> None
1555 self
._labels
= new_val
1558 def placement(self
):
1559 # type: () -> Optional[Placement]
1560 return self
._property
_impl
('placement')
1563 def placement(self
, new_val
):
1564 # type: (Optional[Placement]) -> None
1565 self
._placement
= new_val
1568 def priorityClassName(self
):
1570 return self
._property
_impl
('priorityClassName')
1572 @priorityClassName.setter
1573 def priorityClassName(self
, new_val
):
1574 # type: (Optional[str]) -> None
1575 self
._priorityClassName
= new_val
1578 def resources(self
):
1579 # type: () -> Optional[Resources]
1580 return self
._property
_impl
('resources')
1583 def resources(self
, new_val
):
1584 # type: (Optional[Resources]) -> None
1585 self
._resources
= new_val
1588 class Spec(CrdObject
):
1590 ('dataPools', 'dataPools', 'DataPoolsList', True, True),
1591 ('metadataPool', 'metadataPool', 'MetadataPool', True, True),
1592 ('metadataServer', 'metadataServer', 'MetadataServer', True, False),
1593 ('mirroring', 'mirroring', 'Mirroring', False, True),
1594 ('preserveFilesystemOnDelete', 'preserveFilesystemOnDelete', bool, False, False),
1595 ('preservePoolsOnDelete', 'preservePoolsOnDelete', bool, False, False)
1599 dataPools
, # type: Optional[Union[List[DataPoolsItem], CrdObjectList]]
1600 metadataPool
, # type: Optional[MetadataPool]
1601 metadataServer
, # type: MetadataServer
1602 mirroring
=_omit
, # type: Optional[Mirroring]
1603 preserveFilesystemOnDelete
=_omit
, # type: Optional[bool]
1604 preservePoolsOnDelete
=_omit
, # type: Optional[bool]
1606 super(Spec
, self
).__init
__(
1607 dataPools
=dataPools
,
1608 metadataPool
=metadataPool
,
1609 metadataServer
=metadataServer
,
1610 mirroring
=mirroring
,
1611 preserveFilesystemOnDelete
=preserveFilesystemOnDelete
,
1612 preservePoolsOnDelete
=preservePoolsOnDelete
,
1616 def dataPools(self
):
1617 # type: () -> Optional[Union[List[DataPoolsItem], CrdObjectList]]
1618 return self
._property
_impl
('dataPools')
1621 def dataPools(self
, new_val
):
1622 # type: (Optional[Union[List[DataPoolsItem], CrdObjectList]]) -> None
1623 self
._dataPools
= new_val
1626 def metadataPool(self
):
1627 # type: () -> Optional[MetadataPool]
1628 return self
._property
_impl
('metadataPool')
1630 @metadataPool.setter
1631 def metadataPool(self
, new_val
):
1632 # type: (Optional[MetadataPool]) -> None
1633 self
._metadataPool
= new_val
1636 def metadataServer(self
):
1637 # type: () -> MetadataServer
1638 return self
._property
_impl
('metadataServer')
1640 @metadataServer.setter
1641 def metadataServer(self
, new_val
):
1642 # type: (MetadataServer) -> None
1643 self
._metadataServer
= new_val
1646 def mirroring(self
):
1647 # type: () -> Optional[Mirroring]
1648 return self
._property
_impl
('mirroring')
1651 def mirroring(self
, new_val
):
1652 # type: (Optional[Mirroring]) -> None
1653 self
._mirroring
= new_val
1656 def preserveFilesystemOnDelete(self
):
1658 return self
._property
_impl
('preserveFilesystemOnDelete')
1660 @preserveFilesystemOnDelete.setter
1661 def preserveFilesystemOnDelete(self
, new_val
):
1662 # type: (Optional[bool]) -> None
1663 self
._preserveFilesystemOnDelete
= new_val
1666 def preservePoolsOnDelete(self
):
1668 return self
._property
_impl
('preservePoolsOnDelete')
1670 @preservePoolsOnDelete.setter
1671 def preservePoolsOnDelete(self
, new_val
):
1672 # type: (Optional[bool]) -> None
1673 self
._preservePoolsOnDelete
= new_val
1676 class Status(CrdObject
):
1678 ('phase', 'phase', str, False, False)
1682 phase
=_omit
, # type: Optional[str]
1684 super(Status
, self
).__init
__(
1691 return self
._property
_impl
('phase')
1694 def phase(self
, new_val
):
1695 # type: (Optional[str]) -> None
1696 self
._phase
= new_val
1699 class CephFilesystem(CrdClass
):
1701 ('apiVersion', 'apiVersion', str, False, False),
1702 ('kind', 'kind', str, False, False),
1703 ('metadata', 'metadata', object, False, False),
1704 ('spec', 'spec', 'Spec', True, False),
1705 ('status', 'status', 'Status', False, False)
1710 apiVersion
=_omit
, # type: Optional[str]
1711 kind
=_omit
, # type: Optional[str]
1712 metadata
=_omit
, # type: Optional[Any]
1713 status
=_omit
, # type: Optional[Status]
1715 super(CephFilesystem
, self
).__init
__(
1717 apiVersion
=apiVersion
,
1724 def apiVersion(self
):
1726 return self
._property
_impl
('apiVersion')
1729 def apiVersion(self
, new_val
):
1730 # type: (Optional[str]) -> None
1731 self
._apiVersion
= new_val
1736 return self
._property
_impl
('kind')
1739 def kind(self
, new_val
):
1740 # type: (Optional[str]) -> None
1741 self
._kind
= new_val
1746 return self
._property
_impl
('metadata')
1749 def metadata(self
, new_val
):
1750 # type: (Optional[Any]) -> None
1751 self
._metadata
= new_val
1756 return self
._property
_impl
('spec')
1759 def spec(self
, new_val
):
1760 # type: (Spec) -> None
1761 self
._spec
= new_val
1765 # type: () -> Status
1766 return self
._property
_impl
('status')
1769 def status(self
, new_val
):
1770 # type: (Optional[Status]) -> None
1771 self
._status
= new_val