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.

@@ -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,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