Skip to content

Commit 6fbaf78

Browse files
authored
[KeyVault] Pylint enum fix (Azure#24090)
1 parent 3e3ca4c commit 6fbaf78

File tree

2 files changed

+5
-19
lines changed
  • sdk/keyvault
    • azure-keyvault-administration/azure/keyvault/administration/_internal
    • azure-keyvault-keys/azure/keyvault/keys/crypto

2 files changed

+5
-19
lines changed

sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/api_version.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_enums.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# Licensed under the MIT License.
44
# ------------------------------------
55
from enum import Enum
6+
from azure.core import CaseInsensitiveEnumMeta
67

7-
8-
class KeyWrapAlgorithm(str, Enum):
8+
# pylint: disable=enum-must-be-uppercase
9+
class KeyWrapAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
910
"""Key wrapping algorithms"""
1011

1112
aes_128 = "A128KW"
@@ -16,7 +17,7 @@ class KeyWrapAlgorithm(str, Enum):
1617
rsa1_5 = "RSA1_5"
1718

1819

19-
class EncryptionAlgorithm(str, Enum):
20+
class EncryptionAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
2021
"""Encryption algorithms"""
2122

2223
rsa_oaep = "RSA-OAEP"
@@ -33,7 +34,7 @@ class EncryptionAlgorithm(str, Enum):
3334
a256_cbcpad = "A256CBCPAD"
3435

3536

36-
class SignatureAlgorithm(str, Enum):
37+
class SignatureAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
3738
"""Signature algorithms, described in https://tools.ietf.org/html/rfc7518"""
3839

3940
ps256 = "PS256" #: RSASSA-PSS using SHA-256 and MGF1 with SHA-256

0 commit comments

Comments
 (0)