]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | """ |
2 | This file is automatically generated. | |
3 | Do not modify. | |
4 | """ | |
5 | ||
6 | try: | |
7 | from typing import Any, Optional, Union, List | |
8 | except ImportError: | |
9 | pass | |
10 | ||
11 | from .._helper import _omit, CrdObject, CrdObjectList, CrdClass | |
12 | ||
13 | class Spec(CrdObject): | |
14 | _properties = [ | |
15 | ('realm', 'realm', str, True, False) | |
16 | ] | |
17 | ||
18 | def __init__(self, | |
19 | realm, # type: str | |
20 | ): | |
21 | super(Spec, self).__init__( | |
22 | realm=realm, | |
23 | ) | |
24 | ||
25 | @property | |
26 | def realm(self): | |
27 | # type: () -> str | |
28 | return self._property_impl('realm') | |
29 | ||
30 | @realm.setter | |
31 | def realm(self, new_val): | |
32 | # type: (str) -> None | |
33 | self._realm = new_val | |
34 | ||
35 | ||
36 | class Status(CrdObject): | |
37 | _properties = [ | |
38 | ('phase', 'phase', str, False, False) | |
39 | ] | |
40 | ||
41 | def __init__(self, | |
42 | phase=_omit, # type: Optional[str] | |
43 | ): | |
44 | super(Status, self).__init__( | |
45 | phase=phase, | |
46 | ) | |
47 | ||
48 | @property | |
49 | def phase(self): | |
50 | # type: () -> str | |
51 | return self._property_impl('phase') | |
52 | ||
53 | @phase.setter | |
54 | def phase(self, new_val): | |
55 | # type: (Optional[str]) -> None | |
56 | self._phase = new_val | |
57 | ||
58 | ||
59 | class CephObjectZoneGroup(CrdClass): | |
60 | _properties = [ | |
61 | ('apiVersion', 'apiVersion', str, False, False), | |
62 | ('kind', 'kind', str, False, False), | |
63 | ('metadata', 'metadata', object, False, False), | |
64 | ('spec', 'spec', 'Spec', True, False), | |
65 | ('status', 'status', 'Status', False, False) | |
66 | ] | |
67 | ||
68 | def __init__(self, | |
69 | spec, # type: Spec | |
70 | apiVersion=_omit, # type: Optional[str] | |
71 | kind=_omit, # type: Optional[str] | |
72 | metadata=_omit, # type: Optional[Any] | |
73 | status=_omit, # type: Optional[Status] | |
74 | ): | |
75 | super(CephObjectZoneGroup, self).__init__( | |
76 | spec=spec, | |
77 | apiVersion=apiVersion, | |
78 | kind=kind, | |
79 | metadata=metadata, | |
80 | status=status, | |
81 | ) | |
82 | ||
83 | @property | |
84 | def apiVersion(self): | |
85 | # type: () -> str | |
86 | return self._property_impl('apiVersion') | |
87 | ||
88 | @apiVersion.setter | |
89 | def apiVersion(self, new_val): | |
90 | # type: (Optional[str]) -> None | |
91 | self._apiVersion = new_val | |
92 | ||
93 | @property | |
94 | def kind(self): | |
95 | # type: () -> str | |
96 | return self._property_impl('kind') | |
97 | ||
98 | @kind.setter | |
99 | def kind(self, new_val): | |
100 | # type: (Optional[str]) -> None | |
101 | self._kind = new_val | |
102 | ||
103 | @property | |
104 | def metadata(self): | |
105 | # type: () -> Any | |
106 | return self._property_impl('metadata') | |
107 | ||
108 | @metadata.setter | |
109 | def metadata(self, new_val): | |
110 | # type: (Optional[Any]) -> None | |
111 | self._metadata = new_val | |
112 | ||
113 | @property | |
114 | def spec(self): | |
115 | # type: () -> Spec | |
116 | return self._property_impl('spec') | |
117 | ||
118 | @spec.setter | |
119 | def spec(self, new_val): | |
120 | # type: (Spec) -> None | |
121 | self._spec = new_val | |
122 | ||
123 | @property | |
124 | def status(self): | |
125 | # type: () -> Status | |
126 | return self._property_impl('status') | |
127 | ||
128 | @status.setter | |
129 | def status(self, new_val): | |
130 | # type: (Optional[Status]) -> None | |
131 | self._status = new_val |