]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/smb: add a new TLSCredentialType enum
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 2 Jul 2025 21:47:56 +0000 (17:47 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 12 Aug 2025 14:24:49 +0000 (10:24 -0400)
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 <jmulligan@redhat.com>
src/pybind/mgr/smb/enums.py

index c1c7ec1117df670f69e3673d7a01396f08851cf9..2e57dac9a2607032c8d1faf13530a53ddb0c5e28 100644 (file)
@@ -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'