Debian Codegraph @

src/auth0/management/types/connection_key.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 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7 from .connection_key_use_enum import ConnectionKeyUseEnum
8
9
10 class ConnectionKey(UniversalBaseModel):
11 kid: str = pydantic.Field()
12 """
13 The key id of the signing key
14 """
15
16 cert: str = pydantic.Field()
17 """
18 The public certificate of the signing key
19 """
20
21 pkcs: typing.Optional[str] = pydantic.Field(default=None)
22 """
23 The public certificate of the signing key in pkcs7 format
24 """
25
26 current: typing.Optional[bool] = pydantic.Field(default=None)
27 """
28 True if the key is the the current key
29 """
30
31 next: typing.Optional[bool] = pydantic.Field(default=None)
32 """
33 True if the key is the the next key
34 """
35
36 previous: typing.Optional[bool] = pydantic.Field(default=None)
37 """
38 True if the key is the the previous key
39 """
40
41 current_since: typing.Optional[str] = pydantic.Field(default=None)
42 """
43 The date and time when the key became the current key
44 """
45
46 fingerprint: str = pydantic.Field()
47 """
48 The cert fingerprint
49 """
50
51 thumbprint: str = pydantic.Field()
52 """
53 The cert thumbprint
54 """
55
56 algorithm: typing.Optional[str] = pydantic.Field(default=None)
57 """
58 Signing key algorithm
59 """
60
61 key_use: typing.Optional[ConnectionKeyUseEnum] = None
62 subject_dn: typing.Optional[str] = None
63
64 if IS_PYDANTIC_V2:
65 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
66 else:
67
68 class Config:
69 frozen = True
70 smart_union = True
71 extra = pydantic.Extra.allow