cribl-control-plane 0.0.13__py3-none-any.whl → 0.0.14__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.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "cribl-control-plane"
6
- __version__: str = "0.0.13"
7
- __openapi_doc_version__: str = "4.14.0-alpha.1753295778758-ebd92ad1"
6
+ __version__: str = "0.0.14"
7
+ __openapi_doc_version__: str = "4.14.0-alpha.1753368616875-0eefebeb"
8
8
  __gen_version__: str = "2.660.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.0.13 2.660.0 4.14.0-alpha.1753295778758-ebd92ad1 cribl-control-plane"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.0.14 2.660.0 4.14.0-alpha.1753368616875-0eefebeb cribl-control-plane"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -25,6 +25,12 @@ if TYPE_CHECKING:
25
25
  CreateOutputTestByIDResponse,
26
26
  CreateOutputTestByIDResponseTypedDict,
27
27
  )
28
+ from .createroutesappendbyidop import (
29
+ CreateRoutesAppendByIDRequest,
30
+ CreateRoutesAppendByIDRequestTypedDict,
31
+ CreateRoutesAppendByIDResponse,
32
+ CreateRoutesAppendByIDResponseTypedDict,
33
+ )
28
34
  from .criblevent import CriblEvent, CriblEventTypedDict
29
35
  from .deleteinputbyidop import (
30
36
  DeleteInputByIDRequest,
@@ -68,6 +74,12 @@ if TYPE_CHECKING:
68
74
  GetOutputSamplesByIDResponse,
69
75
  GetOutputSamplesByIDResponseTypedDict,
70
76
  )
77
+ from .getroutesbyidop import (
78
+ GetRoutesByIDRequest,
79
+ GetRoutesByIDRequestTypedDict,
80
+ GetRoutesByIDResponse,
81
+ GetRoutesByIDResponseTypedDict,
82
+ )
71
83
  from .healthstatus import HealthStatus, HealthStatusTypedDict, Role, Status
72
84
  from .input import Input, InputTypedDict
73
85
  from .inputappscope import (
@@ -1138,6 +1150,8 @@ if TYPE_CHECKING:
1138
1150
  InputSystemStatePersistenceTypedDict,
1139
1151
  InputSystemStatePq,
1140
1152
  InputSystemStatePqTypedDict,
1153
+ InputSystemStateRoutes,
1154
+ InputSystemStateRoutesTypedDict,
1141
1155
  InputSystemStateType,
1142
1156
  InputSystemStateTypedDict,
1143
1157
  Interfaces,
@@ -1146,8 +1160,6 @@ if TYPE_CHECKING:
1146
1160
  ListeningPortsTypedDict,
1147
1161
  LoggedInUsers,
1148
1162
  LoggedInUsersTypedDict,
1149
- Routes,
1150
- RoutesTypedDict,
1151
1163
  Services,
1152
1164
  ServicesTypedDict,
1153
1165
  UsersAndGroups,
@@ -1313,6 +1325,7 @@ if TYPE_CHECKING:
1313
1325
  )
1314
1326
  from .listinputop import ListInputResponse, ListInputResponseTypedDict
1315
1327
  from .listoutputop import ListOutputResponse, ListOutputResponseTypedDict
1328
+ from .listroutesop import ListRoutesResponse, ListRoutesResponseTypedDict
1316
1329
  from .logininfo import LoginInfo, LoginInfoTypedDict
1317
1330
  from .output import Output, OutputTypedDict
1318
1331
  from .outputazureblob import (
@@ -2567,6 +2580,20 @@ if TYPE_CHECKING:
2567
2580
  OutputXsiamURL,
2568
2581
  OutputXsiamURLTypedDict,
2569
2582
  )
2583
+ from .routecloneconf import RouteCloneConf, RouteCloneConfTypedDict
2584
+ from .routeconf import RouteConf, RouteConfTypedDict
2585
+ from .routes import (
2586
+ Comment,
2587
+ CommentTypedDict,
2588
+ Groups,
2589
+ GroupsTypedDict,
2590
+ Routes,
2591
+ RoutesInput,
2592
+ RoutesInputTypedDict,
2593
+ RoutesTypedDict,
2594
+ )
2595
+ from .routesroute import RoutesRoute, RoutesRouteTypedDict
2596
+ from .routesroute_input import RoutesRouteInput, RoutesRouteInputTypedDict
2570
2597
  from .schemeclientoauth import SchemeClientOauth, SchemeClientOauthTypedDict
2571
2598
  from .security import Security, SecurityTypedDict
2572
2599
  from .updatehectokenrequest import (
@@ -2593,6 +2620,12 @@ if TYPE_CHECKING:
2593
2620
  UpdateOutputByIDResponse,
2594
2621
  UpdateOutputByIDResponseTypedDict,
2595
2622
  )
2623
+ from .updateroutesbyidop import (
2624
+ UpdateRoutesByIDRequest,
2625
+ UpdateRoutesByIDRequestTypedDict,
2626
+ UpdateRoutesByIDResponse,
2627
+ UpdateRoutesByIDResponseTypedDict,
2628
+ )
2596
2629
 
2597
2630
  __all__ = [
2598
2631
  "AISIEMEndpointPath",
@@ -2616,6 +2649,8 @@ __all__ = [
2616
2649
  "CollectorsTypedDict",
2617
2650
  "ColumnMapping",
2618
2651
  "ColumnMappingTypedDict",
2652
+ "Comment",
2653
+ "CommentTypedDict",
2619
2654
  "Container",
2620
2655
  "ContainerMode",
2621
2656
  "ContainerTypedDict",
@@ -2631,6 +2666,10 @@ __all__ = [
2631
2666
  "CreateOutputTestByIDRequestTypedDict",
2632
2667
  "CreateOutputTestByIDResponse",
2633
2668
  "CreateOutputTestByIDResponseTypedDict",
2669
+ "CreateRoutesAppendByIDRequest",
2670
+ "CreateRoutesAppendByIDRequestTypedDict",
2671
+ "CreateRoutesAppendByIDResponse",
2672
+ "CreateRoutesAppendByIDResponseTypedDict",
2634
2673
  "CriblEvent",
2635
2674
  "CriblEventTypedDict",
2636
2675
  "CustomLabel",
@@ -2689,6 +2728,12 @@ __all__ = [
2689
2728
  "GetOutputSamplesByIDRequestTypedDict",
2690
2729
  "GetOutputSamplesByIDResponse",
2691
2730
  "GetOutputSamplesByIDResponseTypedDict",
2731
+ "GetRoutesByIDRequest",
2732
+ "GetRoutesByIDRequestTypedDict",
2733
+ "GetRoutesByIDResponse",
2734
+ "GetRoutesByIDResponseTypedDict",
2735
+ "Groups",
2736
+ "GroupsTypedDict",
2692
2737
  "HealthStatus",
2693
2738
  "HealthStatusTypedDict",
2694
2739
  "HostInfo",
@@ -3613,6 +3658,8 @@ __all__ = [
3613
3658
  "InputSystemStatePersistenceTypedDict",
3614
3659
  "InputSystemStatePq",
3615
3660
  "InputSystemStatePqTypedDict",
3661
+ "InputSystemStateRoutes",
3662
+ "InputSystemStateRoutesTypedDict",
3616
3663
  "InputSystemStateType",
3617
3664
  "InputSystemStateTypedDict",
3618
3665
  "InputTCP",
@@ -3757,6 +3804,8 @@ __all__ = [
3757
3804
  "ListInputResponseTypedDict",
3758
3805
  "ListOutputResponse",
3759
3806
  "ListOutputResponseTypedDict",
3807
+ "ListRoutesResponse",
3808
+ "ListRoutesResponseTypedDict",
3760
3809
  "ListeningPorts",
3761
3810
  "ListeningPortsTypedDict",
3762
3811
  "LogLabel",
@@ -4883,7 +4932,17 @@ __all__ = [
4883
4932
  "ResourceTypeLabel",
4884
4933
  "ResourceTypeLabelTypedDict",
4885
4934
  "Role",
4935
+ "RouteCloneConf",
4936
+ "RouteCloneConfTypedDict",
4937
+ "RouteConf",
4938
+ "RouteConfTypedDict",
4886
4939
  "Routes",
4940
+ "RoutesInput",
4941
+ "RoutesInputTypedDict",
4942
+ "RoutesRoute",
4943
+ "RoutesRouteInput",
4944
+ "RoutesRouteInputTypedDict",
4945
+ "RoutesRouteTypedDict",
4887
4946
  "RoutesTypedDict",
4888
4947
  "SNMPv3Authentication",
4889
4948
  "SNMPv3AuthenticationTypedDict",
@@ -4929,6 +4988,10 @@ __all__ = [
4929
4988
  "UpdateOutputByIDRequestTypedDict",
4930
4989
  "UpdateOutputByIDResponse",
4931
4990
  "UpdateOutputByIDResponseTypedDict",
4991
+ "UpdateRoutesByIDRequest",
4992
+ "UpdateRoutesByIDRequestTypedDict",
4993
+ "UpdateRoutesByIDResponse",
4994
+ "UpdateRoutesByIDResponseTypedDict",
4932
4995
  "UsersAndGroups",
4933
4996
  "UsersAndGroupsTypedDict",
4934
4997
  "V3User",
@@ -4955,6 +5018,10 @@ _dynamic_imports: dict[str, str] = {
4955
5018
  "CreateOutputTestByIDRequestTypedDict": ".createoutputtestbyidop",
4956
5019
  "CreateOutputTestByIDResponse": ".createoutputtestbyidop",
4957
5020
  "CreateOutputTestByIDResponseTypedDict": ".createoutputtestbyidop",
5021
+ "CreateRoutesAppendByIDRequest": ".createroutesappendbyidop",
5022
+ "CreateRoutesAppendByIDRequestTypedDict": ".createroutesappendbyidop",
5023
+ "CreateRoutesAppendByIDResponse": ".createroutesappendbyidop",
5024
+ "CreateRoutesAppendByIDResponseTypedDict": ".createroutesappendbyidop",
4958
5025
  "CriblEvent": ".criblevent",
4959
5026
  "CriblEventTypedDict": ".criblevent",
4960
5027
  "DeleteInputByIDRequest": ".deleteinputbyidop",
@@ -4985,6 +5052,10 @@ _dynamic_imports: dict[str, str] = {
4985
5052
  "GetOutputSamplesByIDRequestTypedDict": ".getoutputsamplesbyidop",
4986
5053
  "GetOutputSamplesByIDResponse": ".getoutputsamplesbyidop",
4987
5054
  "GetOutputSamplesByIDResponseTypedDict": ".getoutputsamplesbyidop",
5055
+ "GetRoutesByIDRequest": ".getroutesbyidop",
5056
+ "GetRoutesByIDRequestTypedDict": ".getroutesbyidop",
5057
+ "GetRoutesByIDResponse": ".getroutesbyidop",
5058
+ "GetRoutesByIDResponseTypedDict": ".getroutesbyidop",
4988
5059
  "HealthStatus": ".healthstatus",
4989
5060
  "HealthStatusTypedDict": ".healthstatus",
4990
5061
  "Role": ".healthstatus",
@@ -5958,6 +6029,8 @@ _dynamic_imports: dict[str, str] = {
5958
6029
  "InputSystemStatePersistenceTypedDict": ".inputsystemstate",
5959
6030
  "InputSystemStatePq": ".inputsystemstate",
5960
6031
  "InputSystemStatePqTypedDict": ".inputsystemstate",
6032
+ "InputSystemStateRoutes": ".inputsystemstate",
6033
+ "InputSystemStateRoutesTypedDict": ".inputsystemstate",
5961
6034
  "InputSystemStateType": ".inputsystemstate",
5962
6035
  "InputSystemStateTypedDict": ".inputsystemstate",
5963
6036
  "Interfaces": ".inputsystemstate",
@@ -5966,8 +6039,6 @@ _dynamic_imports: dict[str, str] = {
5966
6039
  "ListeningPortsTypedDict": ".inputsystemstate",
5967
6040
  "LoggedInUsers": ".inputsystemstate",
5968
6041
  "LoggedInUsersTypedDict": ".inputsystemstate",
5969
- "Routes": ".inputsystemstate",
5970
- "RoutesTypedDict": ".inputsystemstate",
5971
6042
  "Services": ".inputsystemstate",
5972
6043
  "ServicesTypedDict": ".inputsystemstate",
5973
6044
  "UsersAndGroups": ".inputsystemstate",
@@ -6120,6 +6191,8 @@ _dynamic_imports: dict[str, str] = {
6120
6191
  "ListInputResponseTypedDict": ".listinputop",
6121
6192
  "ListOutputResponse": ".listoutputop",
6122
6193
  "ListOutputResponseTypedDict": ".listoutputop",
6194
+ "ListRoutesResponse": ".listroutesop",
6195
+ "ListRoutesResponseTypedDict": ".listroutesop",
6123
6196
  "LoginInfo": ".logininfo",
6124
6197
  "LoginInfoTypedDict": ".logininfo",
6125
6198
  "Output": ".output",
@@ -7256,6 +7329,22 @@ _dynamic_imports: dict[str, str] = {
7256
7329
  "OutputXsiamTypedDict": ".outputxsiam",
7257
7330
  "OutputXsiamURL": ".outputxsiam",
7258
7331
  "OutputXsiamURLTypedDict": ".outputxsiam",
7332
+ "RouteCloneConf": ".routecloneconf",
7333
+ "RouteCloneConfTypedDict": ".routecloneconf",
7334
+ "RouteConf": ".routeconf",
7335
+ "RouteConfTypedDict": ".routeconf",
7336
+ "Comment": ".routes",
7337
+ "CommentTypedDict": ".routes",
7338
+ "Groups": ".routes",
7339
+ "GroupsTypedDict": ".routes",
7340
+ "Routes": ".routes",
7341
+ "RoutesInput": ".routes",
7342
+ "RoutesInputTypedDict": ".routes",
7343
+ "RoutesTypedDict": ".routes",
7344
+ "RoutesRoute": ".routesroute",
7345
+ "RoutesRouteTypedDict": ".routesroute",
7346
+ "RoutesRouteInput": ".routesroute_input",
7347
+ "RoutesRouteInputTypedDict": ".routesroute_input",
7259
7348
  "SchemeClientOauth": ".schemeclientoauth",
7260
7349
  "SchemeClientOauthTypedDict": ".schemeclientoauth",
7261
7350
  "Security": ".security",
@@ -7276,6 +7365,10 @@ _dynamic_imports: dict[str, str] = {
7276
7365
  "UpdateOutputByIDRequestTypedDict": ".updateoutputbyidop",
7277
7366
  "UpdateOutputByIDResponse": ".updateoutputbyidop",
7278
7367
  "UpdateOutputByIDResponseTypedDict": ".updateoutputbyidop",
7368
+ "UpdateRoutesByIDRequest": ".updateroutesbyidop",
7369
+ "UpdateRoutesByIDRequestTypedDict": ".updateroutesbyidop",
7370
+ "UpdateRoutesByIDResponse": ".updateroutesbyidop",
7371
+ "UpdateRoutesByIDResponseTypedDict": ".updateroutesbyidop",
7279
7372
  }
7280
7373
 
7281
7374
 
@@ -0,0 +1,45 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .routeconf import RouteConf, RouteConfTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
7
+ from typing import Any, Dict, List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class CreateRoutesAppendByIDRequestTypedDict(TypedDict):
12
+ id: str
13
+ r"""the route table to be appended to - currently default is the only supported value"""
14
+ request_body: List[RouteConfTypedDict]
15
+ r"""RouteDefinitions object"""
16
+
17
+
18
+ class CreateRoutesAppendByIDRequest(BaseModel):
19
+ id: Annotated[
20
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
21
+ ]
22
+ r"""the route table to be appended to - currently default is the only supported value"""
23
+
24
+ request_body: Annotated[
25
+ List[RouteConf],
26
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
27
+ ]
28
+ r"""RouteDefinitions object"""
29
+
30
+
31
+ class CreateRoutesAppendByIDResponseTypedDict(TypedDict):
32
+ r"""a list of any objects"""
33
+
34
+ count: NotRequired[int]
35
+ r"""number of items present in the items array"""
36
+ items: NotRequired[List[Dict[str, Any]]]
37
+
38
+
39
+ class CreateRoutesAppendByIDResponse(BaseModel):
40
+ r"""a list of any objects"""
41
+
42
+ count: Optional[int] = None
43
+ r"""number of items present in the items array"""
44
+
45
+ items: Optional[List[Dict[str, Any]]] = None
@@ -0,0 +1,37 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .routes import Routes, RoutesTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GetRoutesByIDRequestTypedDict(TypedDict):
12
+ id: str
13
+ r"""Unique ID to GET"""
14
+
15
+
16
+ class GetRoutesByIDRequest(BaseModel):
17
+ id: Annotated[
18
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
19
+ ]
20
+ r"""Unique ID to GET"""
21
+
22
+
23
+ class GetRoutesByIDResponseTypedDict(TypedDict):
24
+ r"""a list of Routes objects"""
25
+
26
+ count: NotRequired[int]
27
+ r"""number of items present in the items array"""
28
+ items: NotRequired[List[RoutesTypedDict]]
29
+
30
+
31
+ class GetRoutesByIDResponse(BaseModel):
32
+ r"""a list of Routes objects"""
33
+
34
+ count: Optional[int] = None
35
+ r"""number of items present in the items array"""
36
+
37
+ items: Optional[List[Routes]] = None
@@ -151,13 +151,13 @@ class HostInfo(BaseModel):
151
151
  enable: Optional[bool] = True
152
152
 
153
153
 
154
- class RoutesTypedDict(TypedDict):
154
+ class InputSystemStateRoutesTypedDict(TypedDict):
155
155
  r"""Creates events based on entries collected from the host’s network routes"""
156
156
 
157
157
  enable: NotRequired[bool]
158
158
 
159
159
 
160
- class Routes(BaseModel):
160
+ class InputSystemStateRoutes(BaseModel):
161
161
  r"""Creates events based on entries collected from the host’s network routes"""
162
162
 
163
163
  enable: Optional[bool] = True
@@ -244,7 +244,7 @@ class CollectorsTypedDict(TypedDict):
244
244
  r"""Creates events for physical disks, partitions, and file systems"""
245
245
  metadata: NotRequired[HostInfoTypedDict]
246
246
  r"""Creates events based on the host system’s current state"""
247
- routes: NotRequired[RoutesTypedDict]
247
+ routes: NotRequired[InputSystemStateRoutesTypedDict]
248
248
  r"""Creates events based on entries collected from the host’s network routes"""
249
249
  dns: NotRequired[DNSTypedDict]
250
250
  r"""Creates events for DNS resolvers and search entries"""
@@ -273,7 +273,7 @@ class Collectors(BaseModel):
273
273
  metadata: Optional[HostInfo] = None
274
274
  r"""Creates events based on the host system’s current state"""
275
275
 
276
- routes: Optional[Routes] = None
276
+ routes: Optional[InputSystemStateRoutes] = None
277
277
  r"""Creates events based on entries collected from the host’s network routes"""
278
278
 
279
279
  dns: Optional[DNS] = None
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .routes import Routes, RoutesTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class ListRoutesResponseTypedDict(TypedDict):
11
+ r"""a list of Routes objects"""
12
+
13
+ count: NotRequired[int]
14
+ r"""number of items present in the items array"""
15
+ items: NotRequired[List[RoutesTypedDict]]
16
+
17
+
18
+ class ListRoutesResponse(BaseModel):
19
+ r"""a list of Routes objects"""
20
+
21
+ count: Optional[int] = None
22
+ r"""number of items present in the items array"""
23
+
24
+ items: Optional[List[Routes]] = None
@@ -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 GroupsTypedDict(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 Groups(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, GroupsTypedDict]]
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, Groups]] = 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, GroupsTypedDict]]
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, Groups]] = 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]