Debian Codegraph @

src/auth0/management/types/action.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import datetime as dt
4 import typing
5
6 import pydantic
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from .action_build_status_enum import ActionBuildStatusEnum
9 from .action_deployed_version import ActionDeployedVersion
10 from .action_module_reference import ActionModuleReference
11 from .action_secret_response import ActionSecretResponse
12 from .action_trigger import ActionTrigger
13 from .action_version_dependency import ActionVersionDependency
14 from .integration import Integration
15
16
17 class Action(UniversalBaseModel):
18 id: typing.Optional[str] = pydantic.Field(default=None)
19 """
20 The unique ID of the action.
21 """
22
23 name: typing.Optional[str] = pydantic.Field(default=None)
24 """
25 The name of an action.
26 """
27
28 supported_triggers: typing.Optional[typing.List[ActionTrigger]] = pydantic.Field(default=None)
29 """
30 The list of triggers that this action supports. At this time, an action can only target a single trigger at a time.
31 """
32
33 all_changes_deployed: typing.Optional[bool] = pydantic.Field(default=None)
34 """
35 True if all of an Action's contents have been deployed.
36 """
37
38 created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
39 """
40 The time when this action was created.
41 """
42
43 updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
44 """
45 The time when this action was updated.
46 """
47
48 code: typing.Optional[str] = pydantic.Field(default=None)
49 """
50 The source code of the action.
51 """
52
53 dependencies: typing.Optional[typing.List[ActionVersionDependency]] = pydantic.Field(default=None)
54 """
55 The list of third party npm modules, and their versions, that this action depends on.
56 """
57
58 runtime: typing.Optional[str] = pydantic.Field(default=None)
59 """
60 The Node runtime. For example: `node22`, defaults to `node22`
61 """
62
63 secrets: typing.Optional[typing.List[ActionSecretResponse]] = pydantic.Field(default=None)
64 """
65 The list of secrets that are included in an action or a version of an action.
66 """
67
68 deployed_version: typing.Optional[ActionDeployedVersion] = None
69 installed_integration_id: typing.Optional[str] = pydantic.Field(default=None)
70 """
71 installed_integration_id is the fk reference to the InstalledIntegration entity.
72 """
73
74 integration: typing.Optional[Integration] = None
75 status: typing.Optional[ActionBuildStatusEnum] = None
76 built_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
77 """
78 The time when this action was built successfully.
79 """
80
81 deploy: typing.Optional[bool] = pydantic.Field(default=None)
82 """
83 True if the action should be deployed after creation.
84 """
85
86 modules: typing.Optional[typing.List[ActionModuleReference]] = pydantic.Field(default=None)
87 """
88 The list of action modules and their versions used by this action.
89 """
90
91 if IS_PYDANTIC_V2:
92 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
93 else:
94
95 class Config:
96 frozen = True
97 smart_union = True
98 extra = pydantic.Extra.allow