From 0ffec44b00b9539a26c571f07cb5a7896245f9d0 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 2 Jul 2025 17:47:56 -0400 Subject: [PATCH] mgr/smb: add a new TLSCredentialType enum Add a new TLSCredentialType to enums.py. This will be used in the future to support a new resource type that manages TLS/SSL credential objects ( certs, keys, etc). Signed-off-by: John Mulligan (cherry picked from commit 64c318c14cd83f9c9c30339a834add38797fa10f) --- src/pybind/mgr/smb/enums.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pybind/mgr/smb/enums.py b/src/pybind/mgr/smb/enums.py index c1c7ec1117df6..2e57dac9a2607 100644 --- a/src/pybind/mgr/smb/enums.py +++ b/src/pybind/mgr/smb/enums.py @@ -129,3 +129,11 @@ class InputPasswordFilter(_StrEnum): # but we want a InputPasswordFilter to be a strict subset of the # password filter enum. return PasswordFilter(self.value) + + +class TLSCredentialType(_StrEnum): + """Specify the type of a TLS credential.""" + + CERT = 'cert' + KEY = 'key' + CA_CERT = 'ca-cert' -- 2.39.5