cribl-control-plane 0.0.22__py3-none-any.whl → 0.0.24__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/auth_sdk.py +4 -4
- cribl_control_plane/{distributed.py → deployments.py} +3 -5
- cribl_control_plane/destinations.py +46 -46
- cribl_control_plane/groups_sdk.py +222 -32
- cribl_control_plane/{health.py → healthinfo.py} +5 -7
- cribl_control_plane/{lake.py → lakedatasets.py} +21 -23
- cribl_control_plane/models/__init__.py +125 -5382
- cribl_control_plane/models/createinputop.py +2 -18216
- cribl_control_plane/models/createoutputop.py +2 -18415
- cribl_control_plane/models/createpipelineop.py +2 -2
- cribl_control_plane/models/input.py +6 -6
- cribl_control_plane/models/inputedgeprometheus.py +7 -10
- cribl_control_plane/models/{inputgrafana_union.py → inputgrafana.py} +4 -4
- cribl_control_plane/models/{inputsyslog_union.py → inputsyslog.py} +4 -4
- cribl_control_plane/models/inputwef.py +4 -4
- cribl_control_plane/models/outputgooglepubsub.py +3 -3
- cribl_control_plane/models/outputsplunklb.py +8 -8
- cribl_control_plane/models/routes.py +0 -24
- cribl_control_plane/models/updateinputbyidop.py +2 -2
- cribl_control_plane/models/updateoutputbyidop.py +2 -2
- cribl_control_plane/models/updatepipelinebyidop.py +2 -2
- cribl_control_plane/models/updateroutesbyidop.py +5 -6
- cribl_control_plane/{workers_sdk.py → nodes.py} +13 -15
- cribl_control_plane/packs.py +16 -190
- cribl_control_plane/pipelines.py +10 -10
- cribl_control_plane/routes_sdk.py +18 -22
- cribl_control_plane/sdk.py +12 -20
- cribl_control_plane/sources.py +38 -38
- cribl_control_plane/versioning.py +52 -52
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/METADATA +74 -78
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/RECORD +33 -36
- cribl_control_plane/models/routesroute_input.py +0 -67
- cribl_control_plane/models/updatepacksop.py +0 -37
- cribl_control_plane/teams.py +0 -203
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/WHEEL +0 -0
|
@@ -8,7 +8,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class CreatePipelineResponseTypedDict(TypedDict):
|
|
11
|
-
r"""a list of
|
|
11
|
+
r"""a list of Pipelines objects"""
|
|
12
12
|
|
|
13
13
|
count: NotRequired[int]
|
|
14
14
|
r"""number of items present in the items array"""
|
|
@@ -16,7 +16,7 @@ class CreatePipelineResponseTypedDict(TypedDict):
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class CreatePipelineResponse(BaseModel):
|
|
19
|
-
r"""a list of
|
|
19
|
+
r"""a list of Pipelines objects"""
|
|
20
20
|
|
|
21
21
|
count: Optional[int] = None
|
|
22
22
|
r"""number of items present in the items array"""
|
|
@@ -20,7 +20,7 @@ from .inputexec import InputExec, InputExecTypedDict
|
|
|
20
20
|
from .inputfile import InputFile, InputFileTypedDict
|
|
21
21
|
from .inputfirehose import InputFirehose, InputFirehoseTypedDict
|
|
22
22
|
from .inputgooglepubsub import InputGooglePubsub, InputGooglePubsubTypedDict
|
|
23
|
-
from .
|
|
23
|
+
from .inputgrafana import InputGrafana, InputGrafanaTypedDict
|
|
24
24
|
from .inputhttp import InputHTTP, InputHTTPTypedDict
|
|
25
25
|
from .inputhttpraw import InputHTTPRaw, InputHTTPRawTypedDict
|
|
26
26
|
from .inputjournalfiles import InputJournalFiles, InputJournalFilesTypedDict
|
|
@@ -55,7 +55,7 @@ from .inputsplunk import InputSplunk, InputSplunkTypedDict
|
|
|
55
55
|
from .inputsplunkhec import InputSplunkHec, InputSplunkHecTypedDict
|
|
56
56
|
from .inputsplunksearch import InputSplunkSearch, InputSplunkSearchTypedDict
|
|
57
57
|
from .inputsqs import InputSqs, InputSqsTypedDict
|
|
58
|
-
from .
|
|
58
|
+
from .inputsyslog import InputSyslog, InputSyslogTypedDict
|
|
59
59
|
from .inputsystemmetrics import InputSystemMetrics, InputSystemMetricsTypedDict
|
|
60
60
|
from .inputsystemstate import InputSystemState, InputSystemStateTypedDict
|
|
61
61
|
from .inputtcp import InputTCP, InputTCPTypedDict
|
|
@@ -128,8 +128,8 @@ InputTypedDict = TypeAliasType(
|
|
|
128
128
|
InputS3InventoryTypedDict,
|
|
129
129
|
InputMskTypedDict,
|
|
130
130
|
InputSplunkSearchTypedDict,
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
InputSyslogTypedDict,
|
|
132
|
+
InputGrafanaTypedDict,
|
|
133
133
|
],
|
|
134
134
|
)
|
|
135
135
|
|
|
@@ -193,7 +193,7 @@ Input = TypeAliasType(
|
|
|
193
193
|
InputS3Inventory,
|
|
194
194
|
InputMsk,
|
|
195
195
|
InputSplunkSearch,
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
InputSyslog,
|
|
197
|
+
InputGrafana,
|
|
198
198
|
],
|
|
199
199
|
)
|
|
@@ -155,7 +155,7 @@ class InputEdgePrometheusAuthTypeAuthenticationMethod(str, Enum):
|
|
|
155
155
|
KUBERNETES = "kubernetes"
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
class
|
|
158
|
+
class TargetProtocol(str, Enum):
|
|
159
159
|
r"""Protocol to use when collecting metrics"""
|
|
160
160
|
|
|
161
161
|
HTTP = "http"
|
|
@@ -165,7 +165,7 @@ class InputEdgePrometheusTargetProtocol(str, Enum):
|
|
|
165
165
|
class TargetTypedDict(TypedDict):
|
|
166
166
|
host: str
|
|
167
167
|
r"""Name of host from which to pull metrics."""
|
|
168
|
-
protocol: NotRequired[
|
|
168
|
+
protocol: NotRequired[TargetProtocol]
|
|
169
169
|
r"""Protocol to use when collecting metrics"""
|
|
170
170
|
port: NotRequired[float]
|
|
171
171
|
r"""The port number in the metrics URL for discovered targets."""
|
|
@@ -177,9 +177,7 @@ class Target(BaseModel):
|
|
|
177
177
|
host: str
|
|
178
178
|
r"""Name of host from which to pull metrics."""
|
|
179
179
|
|
|
180
|
-
protocol: Optional[
|
|
181
|
-
InputEdgePrometheusTargetProtocol.HTTP
|
|
182
|
-
)
|
|
180
|
+
protocol: Optional[TargetProtocol] = TargetProtocol.HTTP
|
|
183
181
|
r"""Protocol to use when collecting metrics"""
|
|
184
182
|
|
|
185
183
|
port: Optional[float] = 9090
|
|
@@ -197,7 +195,7 @@ class InputEdgePrometheusRecordType(str, Enum):
|
|
|
197
195
|
AAAA = "AAAA"
|
|
198
196
|
|
|
199
197
|
|
|
200
|
-
class
|
|
198
|
+
class ScrapeProtocolProtocol(str, Enum):
|
|
201
199
|
r"""Protocol to use when collecting metrics"""
|
|
202
200
|
|
|
203
201
|
HTTP = "http"
|
|
@@ -286,7 +284,7 @@ class InputEdgePrometheusTypedDict(TypedDict):
|
|
|
286
284
|
r"""List of DNS names to resolve"""
|
|
287
285
|
record_type: NotRequired[InputEdgePrometheusRecordType]
|
|
288
286
|
r"""DNS Record type to resolve"""
|
|
289
|
-
scrape_protocol: NotRequired[
|
|
287
|
+
scrape_protocol: NotRequired[ScrapeProtocolProtocol]
|
|
290
288
|
r"""Protocol to use when collecting metrics"""
|
|
291
289
|
scrape_path: NotRequired[str]
|
|
292
290
|
r"""Path to use when collecting metrics from discovered targets"""
|
|
@@ -410,9 +408,8 @@ class InputEdgePrometheus(BaseModel):
|
|
|
410
408
|
r"""DNS Record type to resolve"""
|
|
411
409
|
|
|
412
410
|
scrape_protocol: Annotated[
|
|
413
|
-
Optional[
|
|
414
|
-
|
|
415
|
-
] = InputEdgePrometheusScrapeProtocolProtocol.HTTP
|
|
411
|
+
Optional[ScrapeProtocolProtocol], pydantic.Field(alias="scrapeProtocol")
|
|
412
|
+
] = ScrapeProtocolProtocol.HTTP
|
|
416
413
|
r"""Protocol to use when collecting metrics"""
|
|
417
414
|
|
|
418
415
|
scrape_path: Annotated[Optional[str], pydantic.Field(alias="scrapePath")] = (
|
|
@@ -1194,12 +1194,12 @@ class InputGrafanaGrafana1(BaseModel):
|
|
|
1194
1194
|
description: Optional[str] = None
|
|
1195
1195
|
|
|
1196
1196
|
|
|
1197
|
-
|
|
1198
|
-
"
|
|
1197
|
+
InputGrafanaTypedDict = TypeAliasType(
|
|
1198
|
+
"InputGrafanaTypedDict",
|
|
1199
1199
|
Union[InputGrafanaGrafana1TypedDict, InputGrafanaGrafana2TypedDict],
|
|
1200
1200
|
)
|
|
1201
1201
|
|
|
1202
1202
|
|
|
1203
|
-
|
|
1204
|
-
"
|
|
1203
|
+
InputGrafana = TypeAliasType(
|
|
1204
|
+
"InputGrafana", Union[InputGrafanaGrafana1, InputGrafanaGrafana2]
|
|
1205
1205
|
)
|
|
@@ -724,12 +724,12 @@ class InputSyslogSyslog1(BaseModel):
|
|
|
724
724
|
r"""When enabled, parses PROXY protocol headers during the TLS handshake. Disable if compatibility issues arise."""
|
|
725
725
|
|
|
726
726
|
|
|
727
|
-
|
|
728
|
-
"
|
|
727
|
+
InputSyslogTypedDict = TypeAliasType(
|
|
728
|
+
"InputSyslogTypedDict",
|
|
729
729
|
Union[InputSyslogSyslog1TypedDict, InputSyslogSyslog2TypedDict],
|
|
730
730
|
)
|
|
731
731
|
|
|
732
732
|
|
|
733
|
-
|
|
734
|
-
"
|
|
733
|
+
InputSyslog = TypeAliasType(
|
|
734
|
+
"InputSyslog", Union[InputSyslogSyslog1, InputSyslogSyslog2]
|
|
735
735
|
)
|
|
@@ -200,13 +200,13 @@ class QueryBuilderMode(str, Enum):
|
|
|
200
200
|
XML = "xml"
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
class
|
|
203
|
+
class SubscriptionMetadatumTypedDict(TypedDict):
|
|
204
204
|
name: str
|
|
205
205
|
value: str
|
|
206
206
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
class
|
|
209
|
+
class SubscriptionMetadatum(BaseModel):
|
|
210
210
|
name: str
|
|
211
211
|
|
|
212
212
|
value: str
|
|
@@ -234,7 +234,7 @@ class SubscriptionTypedDict(TypedDict):
|
|
|
234
234
|
locale: NotRequired[str]
|
|
235
235
|
r"""The RFC-3066 locale the Windows clients should use when sending events. Defaults to \"en-US\"."""
|
|
236
236
|
query_selector: NotRequired[QueryBuilderMode]
|
|
237
|
-
metadata: NotRequired[List[
|
|
237
|
+
metadata: NotRequired[List[SubscriptionMetadatumTypedDict]]
|
|
238
238
|
r"""Fields to add to events ingested under this subscription"""
|
|
239
239
|
|
|
240
240
|
|
|
@@ -280,7 +280,7 @@ class Subscription(BaseModel):
|
|
|
280
280
|
Optional[QueryBuilderMode], pydantic.Field(alias="querySelector")
|
|
281
281
|
] = QueryBuilderMode.SIMPLE
|
|
282
282
|
|
|
283
|
-
metadata: Optional[List[
|
|
283
|
+
metadata: Optional[List[SubscriptionMetadatum]] = None
|
|
284
284
|
r"""Fields to add to events ingested under this subscription"""
|
|
285
285
|
|
|
286
286
|
|
|
@@ -20,21 +20,21 @@ class OutputGooglePubsubGoogleAuthenticationMethod(str, Enum):
|
|
|
20
20
|
SECRET = "secret"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class FlushPeriodSecType(str, Enum):
|
|
24
24
|
NUMBER = "number"
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class FlushPeriodSecTypedDict(TypedDict):
|
|
28
28
|
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)."""
|
|
29
29
|
|
|
30
|
-
type: NotRequired[
|
|
30
|
+
type: NotRequired[FlushPeriodSecType]
|
|
31
31
|
default: NotRequired[float]
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class FlushPeriodSec(BaseModel):
|
|
35
35
|
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)."""
|
|
36
36
|
|
|
37
|
-
type: Optional[
|
|
37
|
+
type: Optional[FlushPeriodSecType] = None
|
|
38
38
|
|
|
39
39
|
default: Optional[float] = None
|
|
40
40
|
|
|
@@ -124,7 +124,7 @@ class OutputSplunkLbCompressCompression(str, Enum):
|
|
|
124
124
|
ALWAYS = "always"
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
class
|
|
127
|
+
class IndexerDiscoveryConfigsAuthTokenAuthenticationMethod(str, Enum):
|
|
128
128
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
129
129
|
|
|
130
130
|
MANUAL = "manual"
|
|
@@ -132,19 +132,19 @@ class OutputSplunkLbAuthTokenAuthenticationMethod(str, Enum):
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
class OutputSplunkLbAuthTokenTypedDict(TypedDict):
|
|
135
|
-
auth_type: NotRequired[
|
|
135
|
+
auth_type: NotRequired[IndexerDiscoveryConfigsAuthTokenAuthenticationMethod]
|
|
136
136
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
class OutputSplunkLbAuthToken(BaseModel):
|
|
140
140
|
auth_type: Annotated[
|
|
141
|
-
Optional[
|
|
141
|
+
Optional[IndexerDiscoveryConfigsAuthTokenAuthenticationMethod],
|
|
142
142
|
pydantic.Field(alias="authType"),
|
|
143
|
-
] =
|
|
143
|
+
] = IndexerDiscoveryConfigsAuthTokenAuthenticationMethod.MANUAL
|
|
144
144
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
class
|
|
147
|
+
class IndexerDiscoveryConfigsAuthenticationMethod(str, Enum):
|
|
148
148
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
149
149
|
|
|
150
150
|
MANUAL = "manual"
|
|
@@ -164,7 +164,7 @@ class IndexerDiscoveryConfigsTypedDict(TypedDict):
|
|
|
164
164
|
r"""During indexer discovery, reject cluster manager certificates that are not authorized by the system's CA. Disable to allow untrusted (for example, self-signed) certificates."""
|
|
165
165
|
auth_tokens: NotRequired[List[OutputSplunkLbAuthTokenTypedDict]]
|
|
166
166
|
r"""Tokens required to authenticate to cluster manager for indexer discovery"""
|
|
167
|
-
auth_type: NotRequired[
|
|
167
|
+
auth_type: NotRequired[IndexerDiscoveryConfigsAuthenticationMethod]
|
|
168
168
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
169
169
|
auth_token: NotRequired[str]
|
|
170
170
|
r"""Shared secret to be provided by any client (in authToken header field). If empty, unauthorized access is permitted."""
|
|
@@ -197,9 +197,9 @@ class IndexerDiscoveryConfigs(BaseModel):
|
|
|
197
197
|
r"""Tokens required to authenticate to cluster manager for indexer discovery"""
|
|
198
198
|
|
|
199
199
|
auth_type: Annotated[
|
|
200
|
-
Optional[
|
|
200
|
+
Optional[IndexerDiscoveryConfigsAuthenticationMethod],
|
|
201
201
|
pydantic.Field(alias="authType"),
|
|
202
|
-
] =
|
|
202
|
+
] = IndexerDiscoveryConfigsAuthenticationMethod.MANUAL
|
|
203
203
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
204
204
|
|
|
205
205
|
auth_token: Annotated[Optional[str], pydantic.Field(alias="authToken")] = ""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .routesroute import RoutesRoute, RoutesRouteTypedDict
|
|
5
|
-
from .routesroute_input import RoutesRouteInput, RoutesRouteInputTypedDict
|
|
6
5
|
from cribl_control_plane.types import BaseModel
|
|
7
6
|
import pydantic
|
|
8
7
|
from pydantic import ConfigDict
|
|
@@ -72,26 +71,3 @@ class Routes(BaseModel):
|
|
|
72
71
|
|
|
73
72
|
comments: Optional[List[Comment]] = None
|
|
74
73
|
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"""
|
|
@@ -12,7 +12,7 @@ class UpdateInputByIDRequestTypedDict(TypedDict):
|
|
|
12
12
|
id: str
|
|
13
13
|
r"""Unique ID to PATCH"""
|
|
14
14
|
input: InputTypedDict
|
|
15
|
-
r"""
|
|
15
|
+
r"""Input object"""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class UpdateInputByIDRequest(BaseModel):
|
|
@@ -24,7 +24,7 @@ class UpdateInputByIDRequest(BaseModel):
|
|
|
24
24
|
input: Annotated[
|
|
25
25
|
Input, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
26
26
|
]
|
|
27
|
-
r"""
|
|
27
|
+
r"""Input object"""
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class UpdateInputByIDResponseTypedDict(TypedDict):
|
|
@@ -12,7 +12,7 @@ class UpdateOutputByIDRequestTypedDict(TypedDict):
|
|
|
12
12
|
id: str
|
|
13
13
|
r"""Unique ID to PATCH"""
|
|
14
14
|
output: OutputTypedDict
|
|
15
|
-
r"""
|
|
15
|
+
r"""Output object"""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class UpdateOutputByIDRequest(BaseModel):
|
|
@@ -24,7 +24,7 @@ class UpdateOutputByIDRequest(BaseModel):
|
|
|
24
24
|
output: Annotated[
|
|
25
25
|
Output, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
26
26
|
]
|
|
27
|
-
r"""
|
|
27
|
+
r"""Output object"""
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class UpdateOutputByIDResponseTypedDict(TypedDict):
|
|
@@ -31,7 +31,7 @@ class UpdatePipelineByIDRequest(BaseModel):
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
class UpdatePipelineByIDResponseTypedDict(TypedDict):
|
|
34
|
-
r"""a list of
|
|
34
|
+
r"""a list of any objects"""
|
|
35
35
|
|
|
36
36
|
count: NotRequired[int]
|
|
37
37
|
r"""number of items present in the items array"""
|
|
@@ -39,7 +39,7 @@ class UpdatePipelineByIDResponseTypedDict(TypedDict):
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class UpdatePipelineByIDResponse(BaseModel):
|
|
42
|
-
r"""a list of
|
|
42
|
+
r"""a list of any objects"""
|
|
43
43
|
|
|
44
44
|
count: Optional[int] = None
|
|
45
45
|
r"""number of items present in the items array"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .routes import Routes,
|
|
4
|
+
from .routes import Routes, RoutesTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
7
|
import pydantic
|
|
@@ -12,8 +12,8 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
12
12
|
class UpdateRoutesByIDRequestTypedDict(TypedDict):
|
|
13
13
|
id_param: str
|
|
14
14
|
r"""Unique ID to PATCH"""
|
|
15
|
-
routes:
|
|
16
|
-
r"""Routes object
|
|
15
|
+
routes: RoutesTypedDict
|
|
16
|
+
r"""Routes object"""
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class UpdateRoutesByIDRequest(BaseModel):
|
|
@@ -25,10 +25,9 @@ class UpdateRoutesByIDRequest(BaseModel):
|
|
|
25
25
|
r"""Unique ID to PATCH"""
|
|
26
26
|
|
|
27
27
|
routes: Annotated[
|
|
28
|
-
|
|
29
|
-
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
28
|
+
Routes, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
30
29
|
]
|
|
31
|
-
r"""Routes object
|
|
30
|
+
r"""Routes object"""
|
|
32
31
|
|
|
33
32
|
|
|
34
33
|
class UpdateRoutesByIDResponseTypedDict(TypedDict):
|
|
@@ -9,10 +9,8 @@ from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_res
|
|
|
9
9
|
from typing import Any, Mapping, Optional
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def get_summary_workers(
|
|
12
|
+
class Nodes(BaseSDK):
|
|
13
|
+
def get_count(
|
|
16
14
|
self,
|
|
17
15
|
*,
|
|
18
16
|
filter_exp: Optional[str] = None,
|
|
@@ -21,7 +19,7 @@ class WorkersSDK(BaseSDK):
|
|
|
21
19
|
timeout_ms: Optional[int] = None,
|
|
22
20
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
21
|
) -> models.GetSummaryWorkersResponse:
|
|
24
|
-
r"""
|
|
22
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
25
23
|
|
|
26
24
|
get worker and edge nodes count
|
|
27
25
|
|
|
@@ -99,7 +97,7 @@ class WorkersSDK(BaseSDK):
|
|
|
99
97
|
|
|
100
98
|
raise errors.APIError("Unexpected response received", http_res)
|
|
101
99
|
|
|
102
|
-
async def
|
|
100
|
+
async def get_count_async(
|
|
103
101
|
self,
|
|
104
102
|
*,
|
|
105
103
|
filter_exp: Optional[str] = None,
|
|
@@ -108,7 +106,7 @@ class WorkersSDK(BaseSDK):
|
|
|
108
106
|
timeout_ms: Optional[int] = None,
|
|
109
107
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
110
108
|
) -> models.GetSummaryWorkersResponse:
|
|
111
|
-
r"""
|
|
109
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
112
110
|
|
|
113
111
|
get worker and edge nodes count
|
|
114
112
|
|
|
@@ -186,7 +184,7 @@ class WorkersSDK(BaseSDK):
|
|
|
186
184
|
|
|
187
185
|
raise errors.APIError("Unexpected response received", http_res)
|
|
188
186
|
|
|
189
|
-
def
|
|
187
|
+
def list(
|
|
190
188
|
self,
|
|
191
189
|
*,
|
|
192
190
|
filter_exp: Optional[str] = None,
|
|
@@ -200,7 +198,7 @@ class WorkersSDK(BaseSDK):
|
|
|
200
198
|
timeout_ms: Optional[int] = None,
|
|
201
199
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
202
200
|
) -> models.GetWorkersResponse:
|
|
203
|
-
r"""
|
|
201
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
204
202
|
|
|
205
203
|
get worker and edge nodes
|
|
206
204
|
|
|
@@ -288,7 +286,7 @@ class WorkersSDK(BaseSDK):
|
|
|
288
286
|
|
|
289
287
|
raise errors.APIError("Unexpected response received", http_res)
|
|
290
288
|
|
|
291
|
-
async def
|
|
289
|
+
async def list_async(
|
|
292
290
|
self,
|
|
293
291
|
*,
|
|
294
292
|
filter_exp: Optional[str] = None,
|
|
@@ -302,7 +300,7 @@ class WorkersSDK(BaseSDK):
|
|
|
302
300
|
timeout_ms: Optional[int] = None,
|
|
303
301
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
304
302
|
) -> models.GetWorkersResponse:
|
|
305
|
-
r"""
|
|
303
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
306
304
|
|
|
307
305
|
get worker and edge nodes
|
|
308
306
|
|
|
@@ -390,7 +388,7 @@ class WorkersSDK(BaseSDK):
|
|
|
390
388
|
|
|
391
389
|
raise errors.APIError("Unexpected response received", http_res)
|
|
392
390
|
|
|
393
|
-
def
|
|
391
|
+
def restart(
|
|
394
392
|
self,
|
|
395
393
|
*,
|
|
396
394
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -398,7 +396,7 @@ class WorkersSDK(BaseSDK):
|
|
|
398
396
|
timeout_ms: Optional[int] = None,
|
|
399
397
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
400
398
|
) -> models.UpdateWorkersRestartResponse:
|
|
401
|
-
r"""
|
|
399
|
+
r"""Restart Worker and Edge Nodes
|
|
402
400
|
|
|
403
401
|
restarts worker nodes
|
|
404
402
|
|
|
@@ -472,7 +470,7 @@ class WorkersSDK(BaseSDK):
|
|
|
472
470
|
|
|
473
471
|
raise errors.APIError("Unexpected response received", http_res)
|
|
474
472
|
|
|
475
|
-
async def
|
|
473
|
+
async def restart_async(
|
|
476
474
|
self,
|
|
477
475
|
*,
|
|
478
476
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -480,7 +478,7 @@ class WorkersSDK(BaseSDK):
|
|
|
480
478
|
timeout_ms: Optional[int] = None,
|
|
481
479
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
482
480
|
) -> models.UpdateWorkersRestartResponse:
|
|
483
|
-
r"""
|
|
481
|
+
r"""Restart Worker and Edge Nodes
|
|
484
482
|
|
|
485
483
|
restarts worker nodes
|
|
486
484
|
|