]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.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 Spec(CrdObject
):
15 ('caps', 'caps', object, True, False),
16 ('name', 'name', str, False, False)
21 name
=_omit
, # type: Optional[str]
23 super(Spec
, self
).__init
__(
31 return self
._property
_impl
('caps')
34 def caps(self
, new_val
):
41 return self
._property
_impl
('name')
44 def name(self
, new_val
):
45 # type: (Optional[str]) -> None
49 class Status(CrdObject
):
51 ('info', 'info', object, False, True),
52 ('phase', 'phase', str, False, False)
56 info
=_omit
, # type: Optional[Any]
57 phase
=_omit
, # type: Optional[str]
59 super(Status
, self
).__init
__(
66 # type: () -> Optional[Any]
67 return self
._property
_impl
('info')
70 def info(self
, new_val
):
71 # type: (Optional[Any]) -> None
77 return self
._property
_impl
('phase')
80 def phase(self
, new_val
):
81 # type: (Optional[str]) -> None
85 class CephClient(CrdClass
):
87 ('apiVersion', 'apiVersion', str, False, False),
88 ('kind', 'kind', str, False, False),
89 ('metadata', 'metadata', object, False, False),
90 ('spec', 'spec', 'Spec', True, False),
91 ('status', 'status', 'Status', False, False)
96 apiVersion
=_omit
, # type: Optional[str]
97 kind
=_omit
, # type: Optional[str]
98 metadata
=_omit
, # type: Optional[Any]
99 status
=_omit
, # type: Optional[Status]
101 super(CephClient
, self
).__init
__(
103 apiVersion
=apiVersion
,
110 def apiVersion(self
):
112 return self
._property
_impl
('apiVersion')
115 def apiVersion(self
, new_val
):
116 # type: (Optional[str]) -> None
117 self
._apiVersion
= new_val
122 return self
._property
_impl
('kind')
125 def kind(self
, new_val
):
126 # type: (Optional[str]) -> None
132 return self
._property
_impl
('metadata')
135 def metadata(self
, new_val
):
136 # type: (Optional[Any]) -> None
137 self
._metadata
= new_val
142 return self
._property
_impl
('spec')
145 def spec(self
, new_val
):
146 # type: (Spec) -> None
152 return self
._property
_impl
('status')
155 def status(self
, new_val
):
156 # type: (Optional[Status]) -> None
157 self
._status
= new_val