cribl-control-plane 0.0.13__py3-none-any.whl → 0.0.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/models/__init__.py +186 -4
- cribl_control_plane/models/createpipelineop.py +24 -0
- cribl_control_plane/models/createroutesappendbyidop.py +45 -0
- cribl_control_plane/models/deletepipelinebyidop.py +37 -0
- cribl_control_plane/models/getpipelinebyidop.py +37 -0
- cribl_control_plane/models/getroutesbyidop.py +37 -0
- cribl_control_plane/models/inputsystemstate.py +4 -4
- cribl_control_plane/models/listpipelineop.py +24 -0
- cribl_control_plane/models/listroutesop.py +24 -0
- cribl_control_plane/models/pipeline.py +70 -0
- cribl_control_plane/models/pipelinefunctionconf.py +53 -0
- cribl_control_plane/models/routecloneconf.py +13 -0
- cribl_control_plane/models/routeconf.py +56 -0
- cribl_control_plane/models/routes.py +97 -0
- cribl_control_plane/models/routesroute.py +70 -0
- cribl_control_plane/models/routesroute_input.py +67 -0
- cribl_control_plane/models/updatepipelinebyidop.py +47 -0
- cribl_control_plane/models/updateroutesbyidop.py +48 -0
- cribl_control_plane/pipelines.py +903 -0
- cribl_control_plane/routes_sdk.py +769 -0
- cribl_control_plane/sdk.py +8 -0
- {cribl_control_plane-0.0.13.dist-info → cribl_control_plane-0.0.15.dist-info}/METADATA +17 -2
- {cribl_control_plane-0.0.13.dist-info → cribl_control_plane-0.0.15.dist-info}/RECORD +25 -7
- {cribl_control_plane-0.0.13.dist-info → cribl_control_plane-0.0.15.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .pipelinefunctionconf import PipelineFunctionConf, PipelineFunctionConfTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Dict, List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PipelineGroupsTypedDict(TypedDict):
|
|
12
|
+
name: str
|
|
13
|
+
description: NotRequired[str]
|
|
14
|
+
r"""Short description of this group"""
|
|
15
|
+
disabled: NotRequired[bool]
|
|
16
|
+
r"""Whether this group is disabled"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class PipelineGroups(BaseModel):
|
|
20
|
+
name: str
|
|
21
|
+
|
|
22
|
+
description: Optional[str] = None
|
|
23
|
+
r"""Short description of this group"""
|
|
24
|
+
|
|
25
|
+
disabled: Optional[bool] = None
|
|
26
|
+
r"""Whether this group is disabled"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ConfTypedDict(TypedDict):
|
|
30
|
+
async_func_timeout: NotRequired[int]
|
|
31
|
+
r"""Time (in ms) to wait for an async function to complete processing of a data item"""
|
|
32
|
+
output: NotRequired[str]
|
|
33
|
+
r"""The output destination for events processed by this Pipeline"""
|
|
34
|
+
description: NotRequired[str]
|
|
35
|
+
streamtags: NotRequired[List[str]]
|
|
36
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
37
|
+
functions: NotRequired[List[PipelineFunctionConfTypedDict]]
|
|
38
|
+
r"""List of Functions to pass data through"""
|
|
39
|
+
groups: NotRequired[Dict[str, PipelineGroupsTypedDict]]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class Conf(BaseModel):
|
|
43
|
+
async_func_timeout: Annotated[
|
|
44
|
+
Optional[int], pydantic.Field(alias="asyncFuncTimeout")
|
|
45
|
+
] = None
|
|
46
|
+
r"""Time (in ms) to wait for an async function to complete processing of a data item"""
|
|
47
|
+
|
|
48
|
+
output: Optional[str] = "default"
|
|
49
|
+
r"""The output destination for events processed by this Pipeline"""
|
|
50
|
+
|
|
51
|
+
description: Optional[str] = None
|
|
52
|
+
|
|
53
|
+
streamtags: Optional[List[str]] = None
|
|
54
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
55
|
+
|
|
56
|
+
functions: Optional[List[PipelineFunctionConf]] = None
|
|
57
|
+
r"""List of Functions to pass data through"""
|
|
58
|
+
|
|
59
|
+
groups: Optional[Dict[str, PipelineGroups]] = None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class PipelineTypedDict(TypedDict):
|
|
63
|
+
id: str
|
|
64
|
+
conf: ConfTypedDict
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class Pipeline(BaseModel):
|
|
68
|
+
id: str
|
|
69
|
+
|
|
70
|
+
conf: Conf
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionSpecificConfigsTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FunctionSpecificConfigs(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class PipelineFunctionConfTypedDict(TypedDict):
|
|
19
|
+
id: str
|
|
20
|
+
r"""Function ID"""
|
|
21
|
+
conf: FunctionSpecificConfigsTypedDict
|
|
22
|
+
filter_: NotRequired[str]
|
|
23
|
+
r"""Filter that selects data to be fed through this Function"""
|
|
24
|
+
description: NotRequired[str]
|
|
25
|
+
r"""Simple description of this step"""
|
|
26
|
+
disabled: NotRequired[bool]
|
|
27
|
+
r"""If true, data will not be pushed through this function"""
|
|
28
|
+
final: NotRequired[bool]
|
|
29
|
+
r"""If enabled, stops the results of this Function from being passed to the downstream Functions"""
|
|
30
|
+
group_id: NotRequired[str]
|
|
31
|
+
r"""Group ID"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class PipelineFunctionConf(BaseModel):
|
|
35
|
+
id: str
|
|
36
|
+
r"""Function ID"""
|
|
37
|
+
|
|
38
|
+
conf: FunctionSpecificConfigs
|
|
39
|
+
|
|
40
|
+
filter_: Annotated[Optional[str], pydantic.Field(alias="filter")] = "true"
|
|
41
|
+
r"""Filter that selects data to be fed through this Function"""
|
|
42
|
+
|
|
43
|
+
description: Optional[str] = None
|
|
44
|
+
r"""Simple description of this step"""
|
|
45
|
+
|
|
46
|
+
disabled: Optional[bool] = None
|
|
47
|
+
r"""If true, data will not be pushed through this function"""
|
|
48
|
+
|
|
49
|
+
final: Optional[bool] = None
|
|
50
|
+
r"""If enabled, stops the results of this Function from being passed to the downstream Functions"""
|
|
51
|
+
|
|
52
|
+
group_id: Annotated[Optional[str], pydantic.Field(alias="groupId")] = None
|
|
53
|
+
r"""Group ID"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RouteCloneConfTypedDict(TypedDict):
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RouteCloneConf(BaseModel):
|
|
13
|
+
pass
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .routecloneconf import RouteCloneConf, RouteCloneConfTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RouteConfTypedDict(TypedDict):
|
|
12
|
+
final: bool
|
|
13
|
+
id: str
|
|
14
|
+
name: str
|
|
15
|
+
pipeline: str
|
|
16
|
+
clones: NotRequired[List[RouteCloneConfTypedDict]]
|
|
17
|
+
context: NotRequired[str]
|
|
18
|
+
description: NotRequired[str]
|
|
19
|
+
disabled: NotRequired[bool]
|
|
20
|
+
enable_output_expression: NotRequired[bool]
|
|
21
|
+
filter_: NotRequired[str]
|
|
22
|
+
group_id: NotRequired[str]
|
|
23
|
+
output: NotRequired[str]
|
|
24
|
+
output_expression: NotRequired[str]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class RouteConf(BaseModel):
|
|
28
|
+
final: bool
|
|
29
|
+
|
|
30
|
+
id: str
|
|
31
|
+
|
|
32
|
+
name: str
|
|
33
|
+
|
|
34
|
+
pipeline: str
|
|
35
|
+
|
|
36
|
+
clones: Optional[List[RouteCloneConf]] = None
|
|
37
|
+
|
|
38
|
+
context: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
description: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
disabled: Optional[bool] = None
|
|
43
|
+
|
|
44
|
+
enable_output_expression: Annotated[
|
|
45
|
+
Optional[bool], pydantic.Field(alias="enableOutputExpression")
|
|
46
|
+
] = None
|
|
47
|
+
|
|
48
|
+
filter_: Annotated[Optional[str], pydantic.Field(alias="filter")] = None
|
|
49
|
+
|
|
50
|
+
group_id: Annotated[Optional[str], pydantic.Field(alias="groupId")] = None
|
|
51
|
+
|
|
52
|
+
output: Optional[str] = None
|
|
53
|
+
|
|
54
|
+
output_expression: Annotated[
|
|
55
|
+
Optional[str], pydantic.Field(alias="outputExpression")
|
|
56
|
+
] = None
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .routesroute import RoutesRoute, RoutesRouteTypedDict
|
|
5
|
+
from .routesroute_input import RoutesRouteInput, RoutesRouteInputTypedDict
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic import ConfigDict
|
|
9
|
+
from typing import Any, Dict, List, Optional
|
|
10
|
+
from typing_extensions import NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class RoutesGroupsTypedDict(TypedDict):
|
|
14
|
+
name: str
|
|
15
|
+
description: NotRequired[str]
|
|
16
|
+
r"""Short description of this group"""
|
|
17
|
+
disabled: NotRequired[bool]
|
|
18
|
+
r"""Whether this group is disabled"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class RoutesGroups(BaseModel):
|
|
22
|
+
name: str
|
|
23
|
+
|
|
24
|
+
description: Optional[str] = None
|
|
25
|
+
r"""Short description of this group"""
|
|
26
|
+
|
|
27
|
+
disabled: Optional[bool] = None
|
|
28
|
+
r"""Whether this group is disabled"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class CommentTypedDict(TypedDict):
|
|
32
|
+
comment: NotRequired[str]
|
|
33
|
+
r"""Optional, short description of this Route's purpose"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Comment(BaseModel):
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
39
|
+
)
|
|
40
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
41
|
+
|
|
42
|
+
comment: Optional[str] = None
|
|
43
|
+
r"""Optional, short description of this Route's purpose"""
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def additional_properties(self):
|
|
47
|
+
return self.__pydantic_extra__
|
|
48
|
+
|
|
49
|
+
@additional_properties.setter
|
|
50
|
+
def additional_properties(self, value):
|
|
51
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class RoutesTypedDict(TypedDict):
|
|
55
|
+
routes: List[RoutesRouteTypedDict]
|
|
56
|
+
r"""Pipeline routing rules"""
|
|
57
|
+
id: NotRequired[str]
|
|
58
|
+
r"""Routes ID"""
|
|
59
|
+
groups: NotRequired[Dict[str, RoutesGroupsTypedDict]]
|
|
60
|
+
comments: NotRequired[List[CommentTypedDict]]
|
|
61
|
+
r"""Comments"""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class Routes(BaseModel):
|
|
65
|
+
routes: List[RoutesRoute]
|
|
66
|
+
r"""Pipeline routing rules"""
|
|
67
|
+
|
|
68
|
+
id: Optional[str] = None
|
|
69
|
+
r"""Routes ID"""
|
|
70
|
+
|
|
71
|
+
groups: Optional[Dict[str, RoutesGroups]] = None
|
|
72
|
+
|
|
73
|
+
comments: Optional[List[Comment]] = None
|
|
74
|
+
r"""Comments"""
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class RoutesInputTypedDict(TypedDict):
|
|
78
|
+
routes: List[RoutesRouteInputTypedDict]
|
|
79
|
+
r"""Pipeline routing rules"""
|
|
80
|
+
id: NotRequired[str]
|
|
81
|
+
r"""Routes ID"""
|
|
82
|
+
groups: NotRequired[Dict[str, RoutesGroupsTypedDict]]
|
|
83
|
+
comments: NotRequired[List[CommentTypedDict]]
|
|
84
|
+
r"""Comments"""
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class RoutesInput(BaseModel):
|
|
88
|
+
routes: List[RoutesRouteInput]
|
|
89
|
+
r"""Pipeline routing rules"""
|
|
90
|
+
|
|
91
|
+
id: Optional[str] = None
|
|
92
|
+
r"""Routes ID"""
|
|
93
|
+
|
|
94
|
+
groups: Optional[Dict[str, RoutesGroups]] = None
|
|
95
|
+
|
|
96
|
+
comments: Optional[List[Comment]] = None
|
|
97
|
+
r"""Comments"""
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from pydantic import ConfigDict
|
|
7
|
+
from typing import Any, Dict, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RoutesRouteTypedDict(TypedDict):
|
|
12
|
+
name: str
|
|
13
|
+
pipeline: str
|
|
14
|
+
r"""Pipeline to send the matching data to"""
|
|
15
|
+
id: NotRequired[str]
|
|
16
|
+
disabled: NotRequired[bool]
|
|
17
|
+
r"""Disable this routing rule"""
|
|
18
|
+
filter_: NotRequired[str]
|
|
19
|
+
r"""JavaScript expression to select data to route"""
|
|
20
|
+
enable_output_expression: NotRequired[bool]
|
|
21
|
+
r"""Enable to use a JavaScript expression that evaluates to the name of the Description below"""
|
|
22
|
+
output: NotRequired[Any]
|
|
23
|
+
output_expression: NotRequired[Any]
|
|
24
|
+
description: NotRequired[str]
|
|
25
|
+
final: NotRequired[bool]
|
|
26
|
+
r"""Flag to control whether the event gets consumed by this Route (Final), or cloned into it"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class RoutesRoute(BaseModel):
|
|
30
|
+
model_config = ConfigDict(
|
|
31
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
32
|
+
)
|
|
33
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
34
|
+
|
|
35
|
+
name: str
|
|
36
|
+
|
|
37
|
+
pipeline: str
|
|
38
|
+
r"""Pipeline to send the matching data to"""
|
|
39
|
+
|
|
40
|
+
id: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
disabled: Optional[bool] = None
|
|
43
|
+
r"""Disable this routing rule"""
|
|
44
|
+
|
|
45
|
+
filter_: Annotated[Optional[str], pydantic.Field(alias="filter")] = "true"
|
|
46
|
+
r"""JavaScript expression to select data to route"""
|
|
47
|
+
|
|
48
|
+
enable_output_expression: Annotated[
|
|
49
|
+
Optional[bool], pydantic.Field(alias="enableOutputExpression")
|
|
50
|
+
] = False
|
|
51
|
+
r"""Enable to use a JavaScript expression that evaluates to the name of the Description below"""
|
|
52
|
+
|
|
53
|
+
output: Optional[Any] = None
|
|
54
|
+
|
|
55
|
+
output_expression: Annotated[
|
|
56
|
+
Optional[Any], pydantic.Field(alias="outputExpression")
|
|
57
|
+
] = None
|
|
58
|
+
|
|
59
|
+
description: Optional[str] = None
|
|
60
|
+
|
|
61
|
+
final: Optional[bool] = True
|
|
62
|
+
r"""Flag to control whether the event gets consumed by this Route (Final), or cloned into it"""
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def additional_properties(self):
|
|
66
|
+
return self.__pydantic_extra__
|
|
67
|
+
|
|
68
|
+
@additional_properties.setter
|
|
69
|
+
def additional_properties(self, value):
|
|
70
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from pydantic import ConfigDict
|
|
7
|
+
from typing import Any, Dict, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RoutesRouteInputTypedDict(TypedDict):
|
|
12
|
+
name: str
|
|
13
|
+
pipeline: str
|
|
14
|
+
r"""Pipeline to send the matching data to"""
|
|
15
|
+
disabled: NotRequired[bool]
|
|
16
|
+
r"""Disable this routing rule"""
|
|
17
|
+
filter_: NotRequired[str]
|
|
18
|
+
r"""JavaScript expression to select data to route"""
|
|
19
|
+
enable_output_expression: NotRequired[bool]
|
|
20
|
+
r"""Enable to use a JavaScript expression that evaluates to the name of the Description below"""
|
|
21
|
+
output: NotRequired[Any]
|
|
22
|
+
output_expression: NotRequired[Any]
|
|
23
|
+
description: NotRequired[str]
|
|
24
|
+
final: NotRequired[bool]
|
|
25
|
+
r"""Flag to control whether the event gets consumed by this Route (Final), or cloned into it"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class RoutesRouteInput(BaseModel):
|
|
29
|
+
model_config = ConfigDict(
|
|
30
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
31
|
+
)
|
|
32
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
33
|
+
|
|
34
|
+
name: str
|
|
35
|
+
|
|
36
|
+
pipeline: str
|
|
37
|
+
r"""Pipeline to send the matching data to"""
|
|
38
|
+
|
|
39
|
+
disabled: Optional[bool] = None
|
|
40
|
+
r"""Disable this routing rule"""
|
|
41
|
+
|
|
42
|
+
filter_: Annotated[Optional[str], pydantic.Field(alias="filter")] = "true"
|
|
43
|
+
r"""JavaScript expression to select data to route"""
|
|
44
|
+
|
|
45
|
+
enable_output_expression: Annotated[
|
|
46
|
+
Optional[bool], pydantic.Field(alias="enableOutputExpression")
|
|
47
|
+
] = False
|
|
48
|
+
r"""Enable to use a JavaScript expression that evaluates to the name of the Description below"""
|
|
49
|
+
|
|
50
|
+
output: Optional[Any] = None
|
|
51
|
+
|
|
52
|
+
output_expression: Annotated[
|
|
53
|
+
Optional[Any], pydantic.Field(alias="outputExpression")
|
|
54
|
+
] = None
|
|
55
|
+
|
|
56
|
+
description: Optional[str] = None
|
|
57
|
+
|
|
58
|
+
final: Optional[bool] = True
|
|
59
|
+
r"""Flag to control whether the event gets consumed by this Route (Final), or cloned into it"""
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_properties(self):
|
|
63
|
+
return self.__pydantic_extra__
|
|
64
|
+
|
|
65
|
+
@additional_properties.setter
|
|
66
|
+
def additional_properties(self, value):
|
|
67
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .pipeline import Pipeline, PipelineTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdatePipelineByIDRequestTypedDict(TypedDict):
|
|
13
|
+
id_param: str
|
|
14
|
+
r"""Unique ID to PATCH"""
|
|
15
|
+
pipeline: PipelineTypedDict
|
|
16
|
+
r"""Pipeline object to be updated"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class UpdatePipelineByIDRequest(BaseModel):
|
|
20
|
+
id_param: Annotated[
|
|
21
|
+
str,
|
|
22
|
+
pydantic.Field(alias="id"),
|
|
23
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
|
+
]
|
|
25
|
+
r"""Unique ID to PATCH"""
|
|
26
|
+
|
|
27
|
+
pipeline: Annotated[
|
|
28
|
+
Pipeline, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
29
|
+
]
|
|
30
|
+
r"""Pipeline object to be updated"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class UpdatePipelineByIDResponseTypedDict(TypedDict):
|
|
34
|
+
r"""a list of Pipeline objects"""
|
|
35
|
+
|
|
36
|
+
count: NotRequired[int]
|
|
37
|
+
r"""number of items present in the items array"""
|
|
38
|
+
items: NotRequired[List[PipelineTypedDict]]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class UpdatePipelineByIDResponse(BaseModel):
|
|
42
|
+
r"""a list of Pipeline objects"""
|
|
43
|
+
|
|
44
|
+
count: Optional[int] = None
|
|
45
|
+
r"""number of items present in the items array"""
|
|
46
|
+
|
|
47
|
+
items: Optional[List[Pipeline]] = None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .routes import Routes, RoutesInput, RoutesInputTypedDict, RoutesTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateRoutesByIDRequestTypedDict(TypedDict):
|
|
13
|
+
id_param: str
|
|
14
|
+
r"""Unique ID to PATCH"""
|
|
15
|
+
routes: RoutesInputTypedDict
|
|
16
|
+
r"""Routes object to be updated"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class UpdateRoutesByIDRequest(BaseModel):
|
|
20
|
+
id_param: Annotated[
|
|
21
|
+
str,
|
|
22
|
+
pydantic.Field(alias="id"),
|
|
23
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
|
+
]
|
|
25
|
+
r"""Unique ID to PATCH"""
|
|
26
|
+
|
|
27
|
+
routes: Annotated[
|
|
28
|
+
RoutesInput,
|
|
29
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
30
|
+
]
|
|
31
|
+
r"""Routes object to be updated"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class UpdateRoutesByIDResponseTypedDict(TypedDict):
|
|
35
|
+
r"""a list of Routes objects"""
|
|
36
|
+
|
|
37
|
+
count: NotRequired[int]
|
|
38
|
+
r"""number of items present in the items array"""
|
|
39
|
+
items: NotRequired[List[RoutesTypedDict]]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class UpdateRoutesByIDResponse(BaseModel):
|
|
43
|
+
r"""a list of Routes objects"""
|
|
44
|
+
|
|
45
|
+
count: Optional[int] = None
|
|
46
|
+
r"""number of items present in the items array"""
|
|
47
|
+
|
|
48
|
+
items: Optional[List[Routes]] = None
|