]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephobjectrealm.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / rook / rook-client-python / rook_client / ceph / cephobjectrealm.py
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 Pull(CrdObject):
14 _properties = [
15 ('endpoint', 'endpoint', str, True, False)
16 ]
17
18 def __init__(self,
19 endpoint, # type: str
20 ):
21 super(Pull, self).__init__(
22 endpoint=endpoint,
23 )
24
25 @property
26 def endpoint(self):
27 # type: () -> str
28 return self._property_impl('endpoint')
29
30 @endpoint.setter
31 def endpoint(self, new_val):
32 # type: (str) -> None
33 self._endpoint = new_val
34
35
36 class Spec(CrdObject):
37 _properties = [
38 ('pull', 'pull', 'Pull', True, False)
39 ]
40
41 def __init__(self,
42 pull, # type: Pull
43 ):
44 super(Spec, self).__init__(
45 pull=pull,
46 )
47
48 @property
49 def pull(self):
50 # type: () -> Pull
51 return self._property_impl('pull')
52
53 @pull.setter
54 def pull(self, new_val):
55 # type: (Pull) -> None
56 self._pull = new_val
57
58
59 class Status(CrdObject):
60 _properties = [
61 ('phase', 'phase', str, False, False)
62 ]
63
64 def __init__(self,
65 phase=_omit, # type: Optional[str]
66 ):
67 super(Status, self).__init__(
68 phase=phase,
69 )
70
71 @property
72 def phase(self):
73 # type: () -> str
74 return self._property_impl('phase')
75
76 @phase.setter
77 def phase(self, new_val):
78 # type: (Optional[str]) -> None
79 self._phase = new_val
80
81
82 class CephObjectRealm(CrdClass):
83 _properties = [
84 ('apiVersion', 'apiVersion', str, False, False),
85 ('kind', 'kind', str, False, False),
86 ('metadata', 'metadata', object, False, False),
87 ('spec', 'spec', 'Spec', True, True),
88 ('status', 'status', 'Status', False, False)
89 ]
90
91 def __init__(self,
92 spec, # type: Optional[Spec]
93 apiVersion=_omit, # type: Optional[str]
94 kind=_omit, # type: Optional[str]
95 metadata=_omit, # type: Optional[Any]
96 status=_omit, # type: Optional[Status]
97 ):
98 super(CephObjectRealm, self).__init__(
99 spec=spec,
100 apiVersion=apiVersion,
101 kind=kind,
102 metadata=metadata,
103 status=status,
104 )
105
106 @property
107 def apiVersion(self):
108 # type: () -> str
109 return self._property_impl('apiVersion')
110
111 @apiVersion.setter
112 def apiVersion(self, new_val):
113 # type: (Optional[str]) -> None
114 self._apiVersion = new_val
115
116 @property
117 def kind(self):
118 # type: () -> str
119 return self._property_impl('kind')
120
121 @kind.setter
122 def kind(self, new_val):
123 # type: (Optional[str]) -> None
124 self._kind = new_val
125
126 @property
127 def metadata(self):
128 # type: () -> Any
129 return self._property_impl('metadata')
130
131 @metadata.setter
132 def metadata(self, new_val):
133 # type: (Optional[Any]) -> None
134 self._metadata = new_val
135
136 @property
137 def spec(self):
138 # type: () -> Optional[Spec]
139 return self._property_impl('spec')
140
141 @spec.setter
142 def spec(self, new_val):
143 # type: (Optional[Spec]) -> None
144 self._spec = new_val
145
146 @property
147 def status(self):
148 # type: () -> Status
149 return self._property_impl('status')
150
151 @status.setter
152 def status(self, new_val):
153 # type: (Optional[Status]) -> None
154 self._status = new_val