]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephobjectrealm.py
2 This file is automatically generated.
7 from typing
import Any
, Optional
, Union
, List
11 from .._helper
import _omit
, CrdObject
, CrdObjectList
, CrdClass
13 class Pull(CrdObject
):
15 ('endpoint', 'endpoint', str, True, False)
21 super(Pull
, self
).__init
__(
28 return self
._property
_impl
('endpoint')
31 def endpoint(self
, new_val
):
33 self
._endpoint
= new_val
36 class Spec(CrdObject
):
38 ('pull', 'pull', 'Pull', True, False)
44 super(Spec
, self
).__init
__(
51 return self
._property
_impl
('pull')
54 def pull(self
, new_val
):
55 # type: (Pull) -> None
59 class Status(CrdObject
):
61 ('phase', 'phase', str, False, False)
65 phase
=_omit
, # type: Optional[str]
67 super(Status
, self
).__init
__(
74 return self
._property
_impl
('phase')
77 def phase(self
, new_val
):
78 # type: (Optional[str]) -> None
82 class CephObjectRealm(CrdClass
):
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)
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]
98 super(CephObjectRealm
, self
).__init
__(
100 apiVersion
=apiVersion
,
107 def apiVersion(self
):
109 return self
._property
_impl
('apiVersion')
112 def apiVersion(self
, new_val
):
113 # type: (Optional[str]) -> None
114 self
._apiVersion
= new_val
119 return self
._property
_impl
('kind')
122 def kind(self
, new_val
):
123 # type: (Optional[str]) -> None
129 return self
._property
_impl
('metadata')
132 def metadata(self
, new_val
):
133 # type: (Optional[Any]) -> None
134 self
._metadata
= new_val
138 # type: () -> Optional[Spec]
139 return self
._property
_impl
('spec')
142 def spec(self
, new_val
):
143 # type: (Optional[Spec]) -> None
149 return self
._property
_impl
('status')
152 def status(self
, new_val
):
153 # type: (Optional[Status]) -> None
154 self
._status
= new_val