]>
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 AttachmentsItem(CrdObject): | |
14 | _properties = [ | |
15 | ('clusterName', 'clusterName', str, True, False), | |
16 | ('mountDir', 'mountDir', str, True, False), | |
17 | ('node', 'node', str, True, False), | |
18 | ('podName', 'podName', str, True, False), | |
19 | ('podNamespace', 'podNamespace', str, True, False), | |
20 | ('readOnly', 'readOnly', bool, True, False) | |
21 | ] | |
22 | ||
23 | def __init__(self, | |
24 | clusterName, # type: str | |
25 | mountDir, # type: str | |
26 | node, # type: str | |
27 | podName, # type: str | |
28 | podNamespace, # type: str | |
29 | readOnly, # type: bool | |
30 | ): | |
31 | super(AttachmentsItem, self).__init__( | |
32 | clusterName=clusterName, | |
33 | mountDir=mountDir, | |
34 | node=node, | |
35 | podName=podName, | |
36 | podNamespace=podNamespace, | |
37 | readOnly=readOnly, | |
38 | ) | |
39 | ||
40 | @property | |
41 | def clusterName(self): | |
42 | # type: () -> str | |
43 | return self._property_impl('clusterName') | |
44 | ||
45 | @clusterName.setter | |
46 | def clusterName(self, new_val): | |
47 | # type: (str) -> None | |
48 | self._clusterName = new_val | |
49 | ||
50 | @property | |
51 | def mountDir(self): | |
52 | # type: () -> str | |
53 | return self._property_impl('mountDir') | |
54 | ||
55 | @mountDir.setter | |
56 | def mountDir(self, new_val): | |
57 | # type: (str) -> None | |
58 | self._mountDir = new_val | |
59 | ||
60 | @property | |
61 | def node(self): | |
62 | # type: () -> str | |
63 | return self._property_impl('node') | |
64 | ||
65 | @node.setter | |
66 | def node(self, new_val): | |
67 | # type: (str) -> None | |
68 | self._node = new_val | |
69 | ||
70 | @property | |
71 | def podName(self): | |
72 | # type: () -> str | |
73 | return self._property_impl('podName') | |
74 | ||
75 | @podName.setter | |
76 | def podName(self, new_val): | |
77 | # type: (str) -> None | |
78 | self._podName = new_val | |
79 | ||
80 | @property | |
81 | def podNamespace(self): | |
82 | # type: () -> str | |
83 | return self._property_impl('podNamespace') | |
84 | ||
85 | @podNamespace.setter | |
86 | def podNamespace(self, new_val): | |
87 | # type: (str) -> None | |
88 | self._podNamespace = new_val | |
89 | ||
90 | @property | |
91 | def readOnly(self): | |
92 | # type: () -> bool | |
93 | return self._property_impl('readOnly') | |
94 | ||
95 | @readOnly.setter | |
96 | def readOnly(self, new_val): | |
97 | # type: (bool) -> None | |
98 | self._readOnly = new_val | |
99 | ||
100 | ||
101 | class AttachmentsList(CrdObjectList): | |
102 | _items_type = AttachmentsItem | |
103 | ||
104 | ||
105 | class Volume(CrdClass): | |
106 | _properties = [ | |
107 | ('apiVersion', 'apiVersion', str, False, False), | |
108 | ('attachments', 'attachments', 'AttachmentsList', False, False), | |
109 | ('kind', 'kind', str, False, False), | |
110 | ('metadata', 'metadata', object, False, False), | |
111 | ('status', 'status', object, False, False) | |
112 | ] | |
113 | ||
114 | def __init__(self, | |
115 | apiVersion=_omit, # type: Optional[str] | |
116 | attachments=_omit, # type: Optional[Union[List[AttachmentsItem], CrdObjectList]] | |
117 | kind=_omit, # type: Optional[str] | |
118 | metadata=_omit, # type: Optional[Any] | |
119 | status=_omit, # type: Optional[Any] | |
120 | ): | |
121 | super(Volume, self).__init__( | |
122 | apiVersion=apiVersion, | |
123 | attachments=attachments, | |
124 | kind=kind, | |
125 | metadata=metadata, | |
126 | status=status, | |
127 | ) | |
128 | ||
129 | @property | |
130 | def apiVersion(self): | |
131 | # type: () -> str | |
132 | return self._property_impl('apiVersion') | |
133 | ||
134 | @apiVersion.setter | |
135 | def apiVersion(self, new_val): | |
136 | # type: (Optional[str]) -> None | |
137 | self._apiVersion = new_val | |
138 | ||
139 | @property | |
140 | def attachments(self): | |
141 | # type: () -> Union[List[AttachmentsItem], CrdObjectList] | |
142 | return self._property_impl('attachments') | |
143 | ||
144 | @attachments.setter | |
145 | def attachments(self, new_val): | |
146 | # type: (Optional[Union[List[AttachmentsItem], CrdObjectList]]) -> None | |
147 | self._attachments = new_val | |
148 | ||
149 | @property | |
150 | def kind(self): | |
151 | # type: () -> str | |
152 | return self._property_impl('kind') | |
153 | ||
154 | @kind.setter | |
155 | def kind(self, new_val): | |
156 | # type: (Optional[str]) -> None | |
157 | self._kind = new_val | |
158 | ||
159 | @property | |
160 | def metadata(self): | |
161 | # type: () -> Any | |
162 | return self._property_impl('metadata') | |
163 | ||
164 | @metadata.setter | |
165 | def metadata(self, new_val): | |
166 | # type: (Optional[Any]) -> None | |
167 | self._metadata = new_val | |
168 | ||
169 | @property | |
170 | def status(self): | |
171 | # type: () -> Any | |
172 | return self._property_impl('status') | |
173 | ||
174 | @status.setter | |
175 | def status(self, new_val): | |
176 | # type: (Optional[Any]) -> None | |
177 | self._status = new_val |