Debian Codegraph @

src/auth0/management/types/signing_keys.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import typing
4
5 import pydantic
6 import typing_extensions
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from ..core.serialization import FieldMetadata
9 from .signing_keys_date import SigningKeysDate
10
11
12 class SigningKeys(UniversalBaseModel):
13 kid: str = pydantic.Field()
14 """
15 The key id of the signing key
16 """
17
18 cert: str = pydantic.Field()
19 """
20 The public certificate of the signing key
21 """
22
23 pkcs_7: typing_extensions.Annotated[
24 typing.Optional[str],
25 FieldMetadata(alias="pkcs7"),
26 pydantic.Field(alias="pkcs7", description="The public certificate of the signing key in pkcs7 format"),
27 ] = None
28 """
29 The public certificate of the signing key in pkcs7 format
30 """
31
32 current: typing.Optional[bool] = pydantic.Field(default=None)
33 """
34 True if the key is the the current key
35 """
36
37 next: typing.Optional[bool] = pydantic.Field(default=None)
38 """
39 True if the key is the the next key
40 """
41
42 previous: typing.Optional[bool] = pydantic.Field(default=None)
43 """
44 True if the key is the the previous key
45 """
46
47 current_since: typing.Optional[SigningKeysDate] = None
48 current_until: typing.Optional[SigningKeysDate] = None
49 fingerprint: str = pydantic.Field()
50 """
51 The cert fingerprint
52 """
53
54 thumbprint: str = pydantic.Field()
55 """
56 The cert thumbprint
57 """
58
59 revoked: typing.Optional[bool] = pydantic.Field(default=None)
60 """
61 True if the key is revoked
62 """
63
64 revoked_at: typing.Optional[SigningKeysDate] = None
65
66 if IS_PYDANTIC_V2:
67 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
68 else:
69
70 class Config:
71 frozen = True
72 smart_union = True
73 extra = pydantic.Extra.allow