]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/rook/rook-client-python/rook_client/edgefs/isgw.py
buildsys: switch source download to quincy
[ceph.git] / ceph / src / pybind / mgr / rook / rook-client-python / rook_client / edgefs / isgw.py
CommitLineData
9f95a23c
TL
1"""
2This file is automatically generated.
3Do not modify.
4"""
5
6try:
7 from typing import Any, Optional, Union, List
8except ImportError:
9 pass
10
11from .._helper import _omit, CrdObject, CrdObjectList, CrdClass
12
13class ClientsList(CrdObjectList):
14 _items_type = str
15
16
17class Config(CrdObject):
18 _properties = [
19 ('server', 'server', str, False, False),
20 ('clients', 'clients', ClientsList, False, False)
21 ]
22
23 def __init__(self,
24 server=_omit, # type: Optional[str]
25 clients=_omit, # type: Optional[Union[List[str], CrdObjectList]]
26 ):
27 super(Config, self).__init__(
28 server=server,
29 clients=clients,
30 )
31
32 @property
33 def server(self):
34 # type: () -> str
35 return self._property_impl('server')
36
37 @server.setter
38 def server(self, new_val):
39 # type: (Optional[str]) -> None
40 self._server = new_val
41
42 @property
43 def clients(self):
44 # type: () -> Union[List[str], CrdObjectList]
45 return self._property_impl('clients')
46
47 @clients.setter
48 def clients(self, new_val):
49 # type: (Optional[Union[List[str], CrdObjectList]]) -> None
50 self._clients = new_val
51
52
53class Spec(CrdObject):
54 _properties = [
55 ('direction', 'direction', str, True, False),
56 ('remoteURL', 'remoteURL', str, False, False),
57 ('config', 'config', Config, False, False)
58 ]
59
60 def __init__(self,
61 direction, # type: str
62 remoteURL=_omit, # type: Optional[str]
63 config=_omit, # type: Optional[Config]
64 ):
65 super(Spec, self).__init__(
66 direction=direction,
67 remoteURL=remoteURL,
68 config=config,
69 )
70
71 @property
72 def direction(self):
73 # type: () -> str
74 return self._property_impl('direction')
75
76 @direction.setter
77 def direction(self, new_val):
78 # type: (str) -> None
79 self._direction = new_val
80
81 @property
82 def remoteURL(self):
83 # type: () -> str
84 return self._property_impl('remoteURL')
85
86 @remoteURL.setter
87 def remoteURL(self, new_val):
88 # type: (Optional[str]) -> None
89 self._remoteURL = new_val
90
91 @property
92 def config(self):
93 # type: () -> Config
94 return self._property_impl('config')
95
96 @config.setter
97 def config(self, new_val):
98 # type: (Optional[Config]) -> None
99 self._config = new_val
100
101
102class ISGW(CrdClass):
103 _properties = [
104 ('apiVersion', 'apiVersion', str, True, False),
105 ('metadata', 'metadata', object, True, False),
106 ('status', 'status', object, False, False),
107 ('spec', 'spec', Spec, True, False)
108 ]
109
110 def __init__(self,
111 apiVersion, # type: str
112 metadata, # type: Any
113 spec, # type: Spec
114 status=_omit, # type: Optional[Any]
115 ):
116 super(ISGW, self).__init__(
117 apiVersion=apiVersion,
118 metadata=metadata,
119 spec=spec,
120 status=status,
121 )
122
123 @property
124 def apiVersion(self):
125 # type: () -> str
126 return self._property_impl('apiVersion')
127
128 @apiVersion.setter
129 def apiVersion(self, new_val):
130 # type: (str) -> None
131 self._apiVersion = new_val
132
133 @property
134 def metadata(self):
135 # type: () -> Any
136 return self._property_impl('metadata')
137
138 @metadata.setter
139 def metadata(self, new_val):
140 # type: (Any) -> None
141 self._metadata = new_val
142
143 @property
144 def status(self):
145 # type: () -> Any
146 return self._property_impl('status')
147
148 @status.setter
149 def status(self, new_val):
150 # type: (Optional[Any]) -> None
151 self._status = new_val
152
153 @property
154 def spec(self):
155 # type: () -> Spec
156 return self._property_impl('spec')
157
158 @spec.setter
159 def spec(self, new_val):
160 # type: (Spec) -> None
161 self._spec = new_val