]>
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 DataSource(CrdObject): | |
14 | _properties = [ | |
15 | ('apiGroup', 'apiGroup', str, False, False), | |
16 | ('kind', 'kind', str, True, False), | |
17 | ('name', 'name', str, True, False) | |
18 | ] | |
19 | ||
20 | def __init__(self, | |
21 | kind, # type: str | |
22 | name, # type: str | |
23 | apiGroup=_omit, # type: Optional[str] | |
24 | ): | |
25 | super(DataSource, self).__init__( | |
26 | kind=kind, | |
27 | name=name, | |
28 | apiGroup=apiGroup, | |
29 | ) | |
30 | ||
31 | @property | |
32 | def apiGroup(self): | |
33 | # type: () -> str | |
34 | return self._property_impl('apiGroup') | |
35 | ||
36 | @apiGroup.setter | |
37 | def apiGroup(self, new_val): | |
38 | # type: (Optional[str]) -> None | |
39 | self._apiGroup = new_val | |
40 | ||
41 | @property | |
42 | def kind(self): | |
43 | # type: () -> str | |
44 | return self._property_impl('kind') | |
45 | ||
46 | @kind.setter | |
47 | def kind(self, new_val): | |
48 | # type: (str) -> None | |
49 | self._kind = new_val | |
50 | ||
51 | @property | |
52 | def name(self): | |
53 | # type: () -> str | |
54 | return self._property_impl('name') | |
55 | ||
56 | @name.setter | |
57 | def name(self, new_val): | |
58 | # type: (str) -> None | |
59 | self._name = new_val | |
60 | ||
61 | ||
62 | class Spec(CrdObject): | |
63 | _properties = [ | |
64 | ('dataSource', 'dataSource', 'DataSource', True, False), | |
65 | ('replicationState', 'replicationState', str, True, False), | |
66 | ('volumeReplicationClass', 'volumeReplicationClass', str, True, False) | |
67 | ] | |
68 | ||
69 | def __init__(self, | |
70 | dataSource, # type: DataSource | |
71 | replicationState, # type: str | |
72 | volumeReplicationClass, # type: str | |
73 | ): | |
74 | super(Spec, self).__init__( | |
75 | dataSource=dataSource, | |
76 | replicationState=replicationState, | |
77 | volumeReplicationClass=volumeReplicationClass, | |
78 | ) | |
79 | ||
80 | @property | |
81 | def dataSource(self): | |
82 | # type: () -> DataSource | |
83 | return self._property_impl('dataSource') | |
84 | ||
85 | @dataSource.setter | |
86 | def dataSource(self, new_val): | |
87 | # type: (DataSource) -> None | |
88 | self._dataSource = new_val | |
89 | ||
90 | @property | |
91 | def replicationState(self): | |
92 | # type: () -> str | |
93 | return self._property_impl('replicationState') | |
94 | ||
95 | @replicationState.setter | |
96 | def replicationState(self, new_val): | |
97 | # type: (str) -> None | |
98 | self._replicationState = new_val | |
99 | ||
100 | @property | |
101 | def volumeReplicationClass(self): | |
102 | # type: () -> str | |
103 | return self._property_impl('volumeReplicationClass') | |
104 | ||
105 | @volumeReplicationClass.setter | |
106 | def volumeReplicationClass(self, new_val): | |
107 | # type: (str) -> None | |
108 | self._volumeReplicationClass = new_val | |
109 | ||
110 | ||
111 | class ConditionsItem(CrdObject): | |
112 | _properties = [ | |
113 | ('lastTransitionTime', 'lastTransitionTime', str, True, False), | |
114 | ('message', 'message', str, True, False), | |
115 | ('observedGeneration', 'observedGeneration', int, False, False), | |
116 | ('reason', 'reason', str, True, False), | |
117 | ('status', 'status', str, True, False), | |
118 | ('type', 'type', str, True, False) | |
119 | ] | |
120 | ||
121 | def __init__(self, | |
122 | lastTransitionTime, # type: str | |
123 | message, # type: str | |
124 | reason, # type: str | |
125 | status, # type: str | |
126 | type, # type: str | |
127 | observedGeneration=_omit, # type: Optional[int] | |
128 | ): | |
129 | super(ConditionsItem, self).__init__( | |
130 | lastTransitionTime=lastTransitionTime, | |
131 | message=message, | |
132 | reason=reason, | |
133 | status=status, | |
134 | type=type, | |
135 | observedGeneration=observedGeneration, | |
136 | ) | |
137 | ||
138 | @property | |
139 | def lastTransitionTime(self): | |
140 | # type: () -> str | |
141 | return self._property_impl('lastTransitionTime') | |
142 | ||
143 | @lastTransitionTime.setter | |
144 | def lastTransitionTime(self, new_val): | |
145 | # type: (str) -> None | |
146 | self._lastTransitionTime = new_val | |
147 | ||
148 | @property | |
149 | def message(self): | |
150 | # type: () -> str | |
151 | return self._property_impl('message') | |
152 | ||
153 | @message.setter | |
154 | def message(self, new_val): | |
155 | # type: (str) -> None | |
156 | self._message = new_val | |
157 | ||
158 | @property | |
159 | def observedGeneration(self): | |
160 | # type: () -> int | |
161 | return self._property_impl('observedGeneration') | |
162 | ||
163 | @observedGeneration.setter | |
164 | def observedGeneration(self, new_val): | |
165 | # type: (Optional[int]) -> None | |
166 | self._observedGeneration = new_val | |
167 | ||
168 | @property | |
169 | def reason(self): | |
170 | # type: () -> str | |
171 | return self._property_impl('reason') | |
172 | ||
173 | @reason.setter | |
174 | def reason(self, new_val): | |
175 | # type: (str) -> None | |
176 | self._reason = new_val | |
177 | ||
178 | @property | |
179 | def status(self): | |
180 | # type: () -> str | |
181 | return self._property_impl('status') | |
182 | ||
183 | @status.setter | |
184 | def status(self, new_val): | |
185 | # type: (str) -> None | |
186 | self._status = new_val | |
187 | ||
188 | @property | |
189 | def type(self): | |
190 | # type: () -> str | |
191 | return self._property_impl('type') | |
192 | ||
193 | @type.setter | |
194 | def type(self, new_val): | |
195 | # type: (str) -> None | |
196 | self._type = new_val | |
197 | ||
198 | ||
199 | class ConditionsList(CrdObjectList): | |
200 | _items_type = ConditionsItem | |
201 | ||
202 | ||
203 | class Status(CrdObject): | |
204 | _properties = [ | |
205 | ('conditions', 'conditions', 'ConditionsList', False, False), | |
206 | ('lastCompletionTime', 'lastCompletionTime', str, False, False), | |
207 | ('lastStartTime', 'lastStartTime', str, False, False), | |
208 | ('message', 'message', str, False, False), | |
209 | ('observedGeneration', 'observedGeneration', int, False, False), | |
210 | ('state', 'state', str, False, False) | |
211 | ] | |
212 | ||
213 | def __init__(self, | |
214 | conditions=_omit, # type: Optional[Union[List[ConditionsItem], CrdObjectList]] | |
215 | lastCompletionTime=_omit, # type: Optional[str] | |
216 | lastStartTime=_omit, # type: Optional[str] | |
217 | message=_omit, # type: Optional[str] | |
218 | observedGeneration=_omit, # type: Optional[int] | |
219 | state=_omit, # type: Optional[str] | |
220 | ): | |
221 | super(Status, self).__init__( | |
222 | conditions=conditions, | |
223 | lastCompletionTime=lastCompletionTime, | |
224 | lastStartTime=lastStartTime, | |
225 | message=message, | |
226 | observedGeneration=observedGeneration, | |
227 | state=state, | |
228 | ) | |
229 | ||
230 | @property | |
231 | def conditions(self): | |
232 | # type: () -> Union[List[ConditionsItem], CrdObjectList] | |
233 | return self._property_impl('conditions') | |
234 | ||
235 | @conditions.setter | |
236 | def conditions(self, new_val): | |
237 | # type: (Optional[Union[List[ConditionsItem], CrdObjectList]]) -> None | |
238 | self._conditions = new_val | |
239 | ||
240 | @property | |
241 | def lastCompletionTime(self): | |
242 | # type: () -> str | |
243 | return self._property_impl('lastCompletionTime') | |
244 | ||
245 | @lastCompletionTime.setter | |
246 | def lastCompletionTime(self, new_val): | |
247 | # type: (Optional[str]) -> None | |
248 | self._lastCompletionTime = new_val | |
249 | ||
250 | @property | |
251 | def lastStartTime(self): | |
252 | # type: () -> str | |
253 | return self._property_impl('lastStartTime') | |
254 | ||
255 | @lastStartTime.setter | |
256 | def lastStartTime(self, new_val): | |
257 | # type: (Optional[str]) -> None | |
258 | self._lastStartTime = new_val | |
259 | ||
260 | @property | |
261 | def message(self): | |
262 | # type: () -> str | |
263 | return self._property_impl('message') | |
264 | ||
265 | @message.setter | |
266 | def message(self, new_val): | |
267 | # type: (Optional[str]) -> None | |
268 | self._message = new_val | |
269 | ||
270 | @property | |
271 | def observedGeneration(self): | |
272 | # type: () -> int | |
273 | return self._property_impl('observedGeneration') | |
274 | ||
275 | @observedGeneration.setter | |
276 | def observedGeneration(self, new_val): | |
277 | # type: (Optional[int]) -> None | |
278 | self._observedGeneration = new_val | |
279 | ||
280 | @property | |
281 | def state(self): | |
282 | # type: () -> str | |
283 | return self._property_impl('state') | |
284 | ||
285 | @state.setter | |
286 | def state(self, new_val): | |
287 | # type: (Optional[str]) -> None | |
288 | self._state = new_val | |
289 | ||
290 | ||
291 | class VolumeReplication(CrdClass): | |
292 | _properties = [ | |
293 | ('apiVersion', 'apiVersion', str, False, False), | |
294 | ('kind', 'kind', str, False, False), | |
295 | ('metadata', 'metadata', object, False, False), | |
296 | ('spec', 'spec', 'Spec', True, False), | |
297 | ('status', 'status', 'Status', False, False) | |
298 | ] | |
299 | ||
300 | def __init__(self, | |
301 | spec, # type: Spec | |
302 | apiVersion=_omit, # type: Optional[str] | |
303 | kind=_omit, # type: Optional[str] | |
304 | metadata=_omit, # type: Optional[Any] | |
305 | status=_omit, # type: Optional[Status] | |
306 | ): | |
307 | super(VolumeReplication, self).__init__( | |
308 | spec=spec, | |
309 | apiVersion=apiVersion, | |
310 | kind=kind, | |
311 | metadata=metadata, | |
312 | status=status, | |
313 | ) | |
314 | ||
315 | @property | |
316 | def apiVersion(self): | |
317 | # type: () -> str | |
318 | return self._property_impl('apiVersion') | |
319 | ||
320 | @apiVersion.setter | |
321 | def apiVersion(self, new_val): | |
322 | # type: (Optional[str]) -> None | |
323 | self._apiVersion = new_val | |
324 | ||
325 | @property | |
326 | def kind(self): | |
327 | # type: () -> str | |
328 | return self._property_impl('kind') | |
329 | ||
330 | @kind.setter | |
331 | def kind(self, new_val): | |
332 | # type: (Optional[str]) -> None | |
333 | self._kind = new_val | |
334 | ||
335 | @property | |
336 | def metadata(self): | |
337 | # type: () -> Any | |
338 | return self._property_impl('metadata') | |
339 | ||
340 | @metadata.setter | |
341 | def metadata(self, new_val): | |
342 | # type: (Optional[Any]) -> None | |
343 | self._metadata = new_val | |
344 | ||
345 | @property | |
346 | def spec(self): | |
347 | # type: () -> Spec | |
348 | return self._property_impl('spec') | |
349 | ||
350 | @spec.setter | |
351 | def spec(self, new_val): | |
352 | # type: (Spec) -> None | |
353 | self._spec = new_val | |
354 | ||
355 | @property | |
356 | def status(self): | |
357 | # type: () -> Status | |
358 | return self._property_impl('status') | |
359 | ||
360 | @status.setter | |
361 | def status(self, new_val): | |
362 | # type: (Optional[Status]) -> None | |
363 | self._status = new_val |