diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py')
-rw-r--r-- | src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py b/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py new file mode 100644 index 000000000..c7f8c7863 --- /dev/null +++ b/src/pybind/mgr/rook/rook-client-python/rook_client/ceph/cephclient.py @@ -0,0 +1,157 @@ +""" +This file is automatically generated. +Do not modify. +""" + +try: + from typing import Any, Optional, Union, List +except ImportError: + pass + +from .._helper import _omit, CrdObject, CrdObjectList, CrdClass + +class Spec(CrdObject): + _properties = [ + ('caps', 'caps', object, True, False), + ('name', 'name', str, False, False) + ] + + def __init__(self, + caps, # type: Any + name=_omit, # type: Optional[str] + ): + super(Spec, self).__init__( + caps=caps, + name=name, + ) + + @property + def caps(self): + # type: () -> Any + return self._property_impl('caps') + + @caps.setter + def caps(self, new_val): + # type: (Any) -> None + self._caps = new_val + + @property + def name(self): + # type: () -> str + return self._property_impl('name') + + @name.setter + def name(self, new_val): + # type: (Optional[str]) -> None + self._name = new_val + + +class Status(CrdObject): + _properties = [ + ('info', 'info', object, False, True), + ('phase', 'phase', str, False, False) + ] + + def __init__(self, + info=_omit, # type: Optional[Any] + phase=_omit, # type: Optional[str] + ): + super(Status, self).__init__( + info=info, + phase=phase, + ) + + @property + def info(self): + # type: () -> Optional[Any] + return self._property_impl('info') + + @info.setter + def info(self, new_val): + # type: (Optional[Any]) -> None + self._info = new_val + + @property + def phase(self): + # type: () -> str + return self._property_impl('phase') + + @phase.setter + def phase(self, new_val): + # type: (Optional[str]) -> None + self._phase = new_val + + +class CephClient(CrdClass): + _properties = [ + ('apiVersion', 'apiVersion', str, False, False), + ('kind', 'kind', str, False, False), + ('metadata', 'metadata', object, False, False), + ('spec', 'spec', 'Spec', True, False), + ('status', 'status', 'Status', False, False) + ] + + def __init__(self, + spec, # type: Spec + apiVersion=_omit, # type: Optional[str] + kind=_omit, # type: Optional[str] + metadata=_omit, # type: Optional[Any] + status=_omit, # type: Optional[Status] + ): + super(CephClient, self).__init__( + spec=spec, + apiVersion=apiVersion, + kind=kind, + metadata=metadata, + status=status, + ) + + @property + def apiVersion(self): + # type: () -> str + return self._property_impl('apiVersion') + + @apiVersion.setter + def apiVersion(self, new_val): + # type: (Optional[str]) -> None + self._apiVersion = new_val + + @property + def kind(self): + # type: () -> str + return self._property_impl('kind') + + @kind.setter + def kind(self, new_val): + # type: (Optional[str]) -> None + self._kind = new_val + + @property + def metadata(self): + # type: () -> Any + return self._property_impl('metadata') + + @metadata.setter + def metadata(self, new_val): + # type: (Optional[Any]) -> None + self._metadata = new_val + + @property + def spec(self): + # type: () -> Spec + return self._property_impl('spec') + + @spec.setter + def spec(self, new_val): + # type: (Spec) -> None + self._spec = new_val + + @property + def status(self): + # type: () -> Status + return self._property_impl('status') + + @status.setter + def status(self, new_val): + # type: (Optional[Status]) -> None + self._status = new_val |