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
cribl_control_plane/sources.py
CHANGED
|
@@ -10,7 +10,7 @@ from typing import Any, List, Mapping, Optional, Union, cast
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Sources(BaseSDK):
|
|
13
|
-
def
|
|
13
|
+
def list(
|
|
14
14
|
self,
|
|
15
15
|
*,
|
|
16
16
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -18,7 +18,7 @@ class Sources(BaseSDK):
|
|
|
18
18
|
timeout_ms: Optional[int] = None,
|
|
19
19
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
20
|
) -> models.ListInputResponse:
|
|
21
|
-
r"""
|
|
21
|
+
r"""List all Sources
|
|
22
22
|
|
|
23
23
|
Get a list of Source objects
|
|
24
24
|
|
|
@@ -90,7 +90,7 @@ class Sources(BaseSDK):
|
|
|
90
90
|
|
|
91
91
|
raise errors.APIError("Unexpected response received", http_res)
|
|
92
92
|
|
|
93
|
-
async def
|
|
93
|
+
async def list_async(
|
|
94
94
|
self,
|
|
95
95
|
*,
|
|
96
96
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -98,7 +98,7 @@ class Sources(BaseSDK):
|
|
|
98
98
|
timeout_ms: Optional[int] = None,
|
|
99
99
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
100
100
|
) -> models.ListInputResponse:
|
|
101
|
-
r"""
|
|
101
|
+
r"""List all Sources
|
|
102
102
|
|
|
103
103
|
Get a list of Source objects
|
|
104
104
|
|
|
@@ -170,16 +170,16 @@ class Sources(BaseSDK):
|
|
|
170
170
|
|
|
171
171
|
raise errors.APIError("Unexpected response received", http_res)
|
|
172
172
|
|
|
173
|
-
def
|
|
173
|
+
def create(
|
|
174
174
|
self,
|
|
175
175
|
*,
|
|
176
|
-
request: Union[models.
|
|
176
|
+
request: Union[models.Input, models.InputTypedDict],
|
|
177
177
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
178
178
|
server_url: Optional[str] = None,
|
|
179
179
|
timeout_ms: Optional[int] = None,
|
|
180
180
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
181
181
|
) -> models.CreateInputResponse:
|
|
182
|
-
r"""Create Source
|
|
182
|
+
r"""Create a Source
|
|
183
183
|
|
|
184
184
|
Create Source
|
|
185
185
|
|
|
@@ -200,8 +200,8 @@ class Sources(BaseSDK):
|
|
|
200
200
|
base_url = self._get_url(base_url, url_variables)
|
|
201
201
|
|
|
202
202
|
if not isinstance(request, BaseModel):
|
|
203
|
-
request = utils.unmarshal(request, models.
|
|
204
|
-
request = cast(models.
|
|
203
|
+
request = utils.unmarshal(request, models.Input)
|
|
204
|
+
request = cast(models.Input, request)
|
|
205
205
|
|
|
206
206
|
req = self._build_request(
|
|
207
207
|
method="POST",
|
|
@@ -217,7 +217,7 @@ class Sources(BaseSDK):
|
|
|
217
217
|
http_headers=http_headers,
|
|
218
218
|
security=self.sdk_configuration.security,
|
|
219
219
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
220
|
-
request, False, False, "json", models.
|
|
220
|
+
request, False, False, "json", models.Input
|
|
221
221
|
),
|
|
222
222
|
timeout_ms=timeout_ms,
|
|
223
223
|
)
|
|
@@ -260,16 +260,16 @@ class Sources(BaseSDK):
|
|
|
260
260
|
|
|
261
261
|
raise errors.APIError("Unexpected response received", http_res)
|
|
262
262
|
|
|
263
|
-
async def
|
|
263
|
+
async def create_async(
|
|
264
264
|
self,
|
|
265
265
|
*,
|
|
266
|
-
request: Union[models.
|
|
266
|
+
request: Union[models.Input, models.InputTypedDict],
|
|
267
267
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
268
268
|
server_url: Optional[str] = None,
|
|
269
269
|
timeout_ms: Optional[int] = None,
|
|
270
270
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
271
271
|
) -> models.CreateInputResponse:
|
|
272
|
-
r"""Create Source
|
|
272
|
+
r"""Create a Source
|
|
273
273
|
|
|
274
274
|
Create Source
|
|
275
275
|
|
|
@@ -290,8 +290,8 @@ class Sources(BaseSDK):
|
|
|
290
290
|
base_url = self._get_url(base_url, url_variables)
|
|
291
291
|
|
|
292
292
|
if not isinstance(request, BaseModel):
|
|
293
|
-
request = utils.unmarshal(request, models.
|
|
294
|
-
request = cast(models.
|
|
293
|
+
request = utils.unmarshal(request, models.Input)
|
|
294
|
+
request = cast(models.Input, request)
|
|
295
295
|
|
|
296
296
|
req = self._build_request_async(
|
|
297
297
|
method="POST",
|
|
@@ -307,7 +307,7 @@ class Sources(BaseSDK):
|
|
|
307
307
|
http_headers=http_headers,
|
|
308
308
|
security=self.sdk_configuration.security,
|
|
309
309
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
310
|
-
request, False, False, "json", models.
|
|
310
|
+
request, False, False, "json", models.Input
|
|
311
311
|
),
|
|
312
312
|
timeout_ms=timeout_ms,
|
|
313
313
|
)
|
|
@@ -350,7 +350,7 @@ class Sources(BaseSDK):
|
|
|
350
350
|
|
|
351
351
|
raise errors.APIError("Unexpected response received", http_res)
|
|
352
352
|
|
|
353
|
-
def
|
|
353
|
+
def get(
|
|
354
354
|
self,
|
|
355
355
|
*,
|
|
356
356
|
id: str,
|
|
@@ -359,7 +359,7 @@ class Sources(BaseSDK):
|
|
|
359
359
|
timeout_ms: Optional[int] = None,
|
|
360
360
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
361
361
|
) -> models.GetInputByIDResponse:
|
|
362
|
-
r"""
|
|
362
|
+
r"""Retrieve a Source
|
|
363
363
|
|
|
364
364
|
Get Source by ID
|
|
365
365
|
|
|
@@ -437,7 +437,7 @@ class Sources(BaseSDK):
|
|
|
437
437
|
|
|
438
438
|
raise errors.APIError("Unexpected response received", http_res)
|
|
439
439
|
|
|
440
|
-
async def
|
|
440
|
+
async def get_async(
|
|
441
441
|
self,
|
|
442
442
|
*,
|
|
443
443
|
id: str,
|
|
@@ -446,7 +446,7 @@ class Sources(BaseSDK):
|
|
|
446
446
|
timeout_ms: Optional[int] = None,
|
|
447
447
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
448
448
|
) -> models.GetInputByIDResponse:
|
|
449
|
-
r"""
|
|
449
|
+
r"""Retrieve a Source
|
|
450
450
|
|
|
451
451
|
Get Source by ID
|
|
452
452
|
|
|
@@ -524,7 +524,7 @@ class Sources(BaseSDK):
|
|
|
524
524
|
|
|
525
525
|
raise errors.APIError("Unexpected response received", http_res)
|
|
526
526
|
|
|
527
|
-
def
|
|
527
|
+
def update(
|
|
528
528
|
self,
|
|
529
529
|
*,
|
|
530
530
|
id: str,
|
|
@@ -534,12 +534,12 @@ class Sources(BaseSDK):
|
|
|
534
534
|
timeout_ms: Optional[int] = None,
|
|
535
535
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
536
536
|
) -> models.UpdateInputByIDResponse:
|
|
537
|
-
r"""Update Source
|
|
537
|
+
r"""Update a Source
|
|
538
538
|
|
|
539
539
|
Update Source
|
|
540
540
|
|
|
541
541
|
:param id: Unique ID to PATCH
|
|
542
|
-
:param input:
|
|
542
|
+
:param input: Input object
|
|
543
543
|
:param retries: Override the default retry configuration for this method
|
|
544
544
|
:param server_url: Override the default server URL for this method
|
|
545
545
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -617,7 +617,7 @@ class Sources(BaseSDK):
|
|
|
617
617
|
|
|
618
618
|
raise errors.APIError("Unexpected response received", http_res)
|
|
619
619
|
|
|
620
|
-
async def
|
|
620
|
+
async def update_async(
|
|
621
621
|
self,
|
|
622
622
|
*,
|
|
623
623
|
id: str,
|
|
@@ -627,12 +627,12 @@ class Sources(BaseSDK):
|
|
|
627
627
|
timeout_ms: Optional[int] = None,
|
|
628
628
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
629
629
|
) -> models.UpdateInputByIDResponse:
|
|
630
|
-
r"""Update Source
|
|
630
|
+
r"""Update a Source
|
|
631
631
|
|
|
632
632
|
Update Source
|
|
633
633
|
|
|
634
634
|
:param id: Unique ID to PATCH
|
|
635
|
-
:param input:
|
|
635
|
+
:param input: Input object
|
|
636
636
|
:param retries: Override the default retry configuration for this method
|
|
637
637
|
:param server_url: Override the default server URL for this method
|
|
638
638
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -710,7 +710,7 @@ class Sources(BaseSDK):
|
|
|
710
710
|
|
|
711
711
|
raise errors.APIError("Unexpected response received", http_res)
|
|
712
712
|
|
|
713
|
-
def
|
|
713
|
+
def delete(
|
|
714
714
|
self,
|
|
715
715
|
*,
|
|
716
716
|
id: str,
|
|
@@ -719,7 +719,7 @@ class Sources(BaseSDK):
|
|
|
719
719
|
timeout_ms: Optional[int] = None,
|
|
720
720
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
721
721
|
) -> models.DeleteInputByIDResponse:
|
|
722
|
-
r"""Delete Source
|
|
722
|
+
r"""Delete a Source
|
|
723
723
|
|
|
724
724
|
Delete Source
|
|
725
725
|
|
|
@@ -797,7 +797,7 @@ class Sources(BaseSDK):
|
|
|
797
797
|
|
|
798
798
|
raise errors.APIError("Unexpected response received", http_res)
|
|
799
799
|
|
|
800
|
-
async def
|
|
800
|
+
async def delete_async(
|
|
801
801
|
self,
|
|
802
802
|
*,
|
|
803
803
|
id: str,
|
|
@@ -806,7 +806,7 @@ class Sources(BaseSDK):
|
|
|
806
806
|
timeout_ms: Optional[int] = None,
|
|
807
807
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
808
808
|
) -> models.DeleteInputByIDResponse:
|
|
809
|
-
r"""Delete Source
|
|
809
|
+
r"""Delete a Source
|
|
810
810
|
|
|
811
811
|
Delete Source
|
|
812
812
|
|
|
@@ -884,7 +884,7 @@ class Sources(BaseSDK):
|
|
|
884
884
|
|
|
885
885
|
raise errors.APIError("Unexpected response received", http_res)
|
|
886
886
|
|
|
887
|
-
def
|
|
887
|
+
def create_hec_token(
|
|
888
888
|
self,
|
|
889
889
|
*,
|
|
890
890
|
id: str,
|
|
@@ -902,7 +902,7 @@ class Sources(BaseSDK):
|
|
|
902
902
|
timeout_ms: Optional[int] = None,
|
|
903
903
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
904
904
|
) -> models.CreateInputHecTokenByIDResponse:
|
|
905
|
-
r"""Add token and optional metadata to
|
|
905
|
+
r"""Add an HEC token and optional metadata to a Splunk HEC Source
|
|
906
906
|
|
|
907
907
|
Add token and optional metadata to an existing HEC Source
|
|
908
908
|
|
|
@@ -1001,7 +1001,7 @@ class Sources(BaseSDK):
|
|
|
1001
1001
|
|
|
1002
1002
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1003
1003
|
|
|
1004
|
-
async def
|
|
1004
|
+
async def create_hec_token_async(
|
|
1005
1005
|
self,
|
|
1006
1006
|
*,
|
|
1007
1007
|
id: str,
|
|
@@ -1019,7 +1019,7 @@ class Sources(BaseSDK):
|
|
|
1019
1019
|
timeout_ms: Optional[int] = None,
|
|
1020
1020
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1021
1021
|
) -> models.CreateInputHecTokenByIDResponse:
|
|
1022
|
-
r"""Add token and optional metadata to
|
|
1022
|
+
r"""Add an HEC token and optional metadata to a Splunk HEC Source
|
|
1023
1023
|
|
|
1024
1024
|
Add token and optional metadata to an existing HEC Source
|
|
1025
1025
|
|
|
@@ -1118,7 +1118,7 @@ class Sources(BaseSDK):
|
|
|
1118
1118
|
|
|
1119
1119
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1120
1120
|
|
|
1121
|
-
def
|
|
1121
|
+
def update_hec_token_metadata(
|
|
1122
1122
|
self,
|
|
1123
1123
|
*,
|
|
1124
1124
|
id: str,
|
|
@@ -1136,7 +1136,7 @@ class Sources(BaseSDK):
|
|
|
1136
1136
|
timeout_ms: Optional[int] = None,
|
|
1137
1137
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1138
1138
|
) -> models.UpdateInputHecTokenByIDAndTokenResponse:
|
|
1139
|
-
r"""Update token
|
|
1139
|
+
r"""Update metadata for an HEC token for a Splunk HEC Source
|
|
1140
1140
|
|
|
1141
1141
|
Update token metadata on existing HEC Source
|
|
1142
1142
|
|
|
@@ -1235,7 +1235,7 @@ class Sources(BaseSDK):
|
|
|
1235
1235
|
|
|
1236
1236
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1237
1237
|
|
|
1238
|
-
async def
|
|
1238
|
+
async def update_hec_token_metadata_async(
|
|
1239
1239
|
self,
|
|
1240
1240
|
*,
|
|
1241
1241
|
id: str,
|
|
@@ -1253,7 +1253,7 @@ class Sources(BaseSDK):
|
|
|
1253
1253
|
timeout_ms: Optional[int] = None,
|
|
1254
1254
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1255
1255
|
) -> models.UpdateInputHecTokenByIDAndTokenResponse:
|
|
1256
|
-
r"""Update token
|
|
1256
|
+
r"""Update metadata for an HEC token for a Splunk HEC Source
|
|
1257
1257
|
|
|
1258
1258
|
Update token metadata on existing HEC Source
|
|
1259
1259
|
|