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/packs.py
CHANGED
|
@@ -12,7 +12,7 @@ from typing import Any, List, Mapping, Optional, Union
|
|
|
12
12
|
class Packs(BaseSDK):
|
|
13
13
|
r"""Actions related to Packs"""
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def install(
|
|
16
16
|
self,
|
|
17
17
|
*,
|
|
18
18
|
id: str,
|
|
@@ -36,7 +36,7 @@ class Packs(BaseSDK):
|
|
|
36
36
|
timeout_ms: Optional[int] = None,
|
|
37
37
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
38
38
|
) -> models.CreatePacksResponse:
|
|
39
|
-
r"""Install Pack
|
|
39
|
+
r"""Install a Pack
|
|
40
40
|
|
|
41
41
|
Install Pack
|
|
42
42
|
|
|
@@ -143,7 +143,7 @@ class Packs(BaseSDK):
|
|
|
143
143
|
|
|
144
144
|
raise errors.APIError("Unexpected response received", http_res)
|
|
145
145
|
|
|
146
|
-
async def
|
|
146
|
+
async def install_async(
|
|
147
147
|
self,
|
|
148
148
|
*,
|
|
149
149
|
id: str,
|
|
@@ -167,7 +167,7 @@ class Packs(BaseSDK):
|
|
|
167
167
|
timeout_ms: Optional[int] = None,
|
|
168
168
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
169
169
|
) -> models.CreatePacksResponse:
|
|
170
|
-
r"""Install Pack
|
|
170
|
+
r"""Install a Pack
|
|
171
171
|
|
|
172
172
|
Install Pack
|
|
173
173
|
|
|
@@ -274,7 +274,7 @@ class Packs(BaseSDK):
|
|
|
274
274
|
|
|
275
275
|
raise errors.APIError("Unexpected response received", http_res)
|
|
276
276
|
|
|
277
|
-
def
|
|
277
|
+
def list(
|
|
278
278
|
self,
|
|
279
279
|
*,
|
|
280
280
|
with_: Optional[str] = None,
|
|
@@ -283,7 +283,7 @@ class Packs(BaseSDK):
|
|
|
283
283
|
timeout_ms: Optional[int] = None,
|
|
284
284
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
285
285
|
) -> models.GetPacksResponse:
|
|
286
|
-
r"""
|
|
286
|
+
r"""List all Packs
|
|
287
287
|
|
|
288
288
|
Get info on packs
|
|
289
289
|
|
|
@@ -361,7 +361,7 @@ class Packs(BaseSDK):
|
|
|
361
361
|
|
|
362
362
|
raise errors.APIError("Unexpected response received", http_res)
|
|
363
363
|
|
|
364
|
-
async def
|
|
364
|
+
async def list_async(
|
|
365
365
|
self,
|
|
366
366
|
*,
|
|
367
367
|
with_: Optional[str] = None,
|
|
@@ -370,7 +370,7 @@ class Packs(BaseSDK):
|
|
|
370
370
|
timeout_ms: Optional[int] = None,
|
|
371
371
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
372
372
|
) -> models.GetPacksResponse:
|
|
373
|
-
r"""
|
|
373
|
+
r"""List all Packs
|
|
374
374
|
|
|
375
375
|
Get info on packs
|
|
376
376
|
|
|
@@ -448,181 +448,7 @@ class Packs(BaseSDK):
|
|
|
448
448
|
|
|
449
449
|
raise errors.APIError("Unexpected response received", http_res)
|
|
450
450
|
|
|
451
|
-
def
|
|
452
|
-
self,
|
|
453
|
-
*,
|
|
454
|
-
filename: Optional[str] = None,
|
|
455
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
456
|
-
server_url: Optional[str] = None,
|
|
457
|
-
timeout_ms: Optional[int] = None,
|
|
458
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
459
|
-
) -> models.UpdatePacksResponse:
|
|
460
|
-
r"""Upload Pack
|
|
461
|
-
|
|
462
|
-
Upload Pack
|
|
463
|
-
|
|
464
|
-
:param filename: the file to upload
|
|
465
|
-
:param retries: Override the default retry configuration for this method
|
|
466
|
-
:param server_url: Override the default server URL for this method
|
|
467
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
468
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
469
|
-
"""
|
|
470
|
-
base_url = None
|
|
471
|
-
url_variables = None
|
|
472
|
-
if timeout_ms is None:
|
|
473
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
474
|
-
|
|
475
|
-
if server_url is not None:
|
|
476
|
-
base_url = server_url
|
|
477
|
-
else:
|
|
478
|
-
base_url = self._get_url(base_url, url_variables)
|
|
479
|
-
|
|
480
|
-
request = models.UpdatePacksRequest(
|
|
481
|
-
filename=filename,
|
|
482
|
-
)
|
|
483
|
-
|
|
484
|
-
req = self._build_request(
|
|
485
|
-
method="PUT",
|
|
486
|
-
path="/packs",
|
|
487
|
-
base_url=base_url,
|
|
488
|
-
url_variables=url_variables,
|
|
489
|
-
request=request,
|
|
490
|
-
request_body_required=False,
|
|
491
|
-
request_has_path_params=False,
|
|
492
|
-
request_has_query_params=True,
|
|
493
|
-
user_agent_header="user-agent",
|
|
494
|
-
accept_header_value="application/json",
|
|
495
|
-
http_headers=http_headers,
|
|
496
|
-
security=self.sdk_configuration.security,
|
|
497
|
-
timeout_ms=timeout_ms,
|
|
498
|
-
)
|
|
499
|
-
|
|
500
|
-
if retries == UNSET:
|
|
501
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
502
|
-
retries = self.sdk_configuration.retry_config
|
|
503
|
-
|
|
504
|
-
retry_config = None
|
|
505
|
-
if isinstance(retries, utils.RetryConfig):
|
|
506
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
507
|
-
|
|
508
|
-
http_res = self.do_request(
|
|
509
|
-
hook_ctx=HookContext(
|
|
510
|
-
config=self.sdk_configuration,
|
|
511
|
-
base_url=base_url or "",
|
|
512
|
-
operation_id="updatePacks",
|
|
513
|
-
oauth2_scopes=[],
|
|
514
|
-
security_source=get_security_from_env(
|
|
515
|
-
self.sdk_configuration.security, models.Security
|
|
516
|
-
),
|
|
517
|
-
),
|
|
518
|
-
request=req,
|
|
519
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
520
|
-
retry_config=retry_config,
|
|
521
|
-
)
|
|
522
|
-
|
|
523
|
-
response_data: Any = None
|
|
524
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
525
|
-
return unmarshal_json_response(models.UpdatePacksResponse, http_res)
|
|
526
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
527
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
528
|
-
raise errors.Error(response_data, http_res)
|
|
529
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
530
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
531
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
532
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
533
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
534
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
535
|
-
|
|
536
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
537
|
-
|
|
538
|
-
async def update_packs_async(
|
|
539
|
-
self,
|
|
540
|
-
*,
|
|
541
|
-
filename: Optional[str] = None,
|
|
542
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
543
|
-
server_url: Optional[str] = None,
|
|
544
|
-
timeout_ms: Optional[int] = None,
|
|
545
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
546
|
-
) -> models.UpdatePacksResponse:
|
|
547
|
-
r"""Upload Pack
|
|
548
|
-
|
|
549
|
-
Upload Pack
|
|
550
|
-
|
|
551
|
-
:param filename: the file to upload
|
|
552
|
-
:param retries: Override the default retry configuration for this method
|
|
553
|
-
:param server_url: Override the default server URL for this method
|
|
554
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
555
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
556
|
-
"""
|
|
557
|
-
base_url = None
|
|
558
|
-
url_variables = None
|
|
559
|
-
if timeout_ms is None:
|
|
560
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
561
|
-
|
|
562
|
-
if server_url is not None:
|
|
563
|
-
base_url = server_url
|
|
564
|
-
else:
|
|
565
|
-
base_url = self._get_url(base_url, url_variables)
|
|
566
|
-
|
|
567
|
-
request = models.UpdatePacksRequest(
|
|
568
|
-
filename=filename,
|
|
569
|
-
)
|
|
570
|
-
|
|
571
|
-
req = self._build_request_async(
|
|
572
|
-
method="PUT",
|
|
573
|
-
path="/packs",
|
|
574
|
-
base_url=base_url,
|
|
575
|
-
url_variables=url_variables,
|
|
576
|
-
request=request,
|
|
577
|
-
request_body_required=False,
|
|
578
|
-
request_has_path_params=False,
|
|
579
|
-
request_has_query_params=True,
|
|
580
|
-
user_agent_header="user-agent",
|
|
581
|
-
accept_header_value="application/json",
|
|
582
|
-
http_headers=http_headers,
|
|
583
|
-
security=self.sdk_configuration.security,
|
|
584
|
-
timeout_ms=timeout_ms,
|
|
585
|
-
)
|
|
586
|
-
|
|
587
|
-
if retries == UNSET:
|
|
588
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
589
|
-
retries = self.sdk_configuration.retry_config
|
|
590
|
-
|
|
591
|
-
retry_config = None
|
|
592
|
-
if isinstance(retries, utils.RetryConfig):
|
|
593
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
594
|
-
|
|
595
|
-
http_res = await self.do_request_async(
|
|
596
|
-
hook_ctx=HookContext(
|
|
597
|
-
config=self.sdk_configuration,
|
|
598
|
-
base_url=base_url or "",
|
|
599
|
-
operation_id="updatePacks",
|
|
600
|
-
oauth2_scopes=[],
|
|
601
|
-
security_source=get_security_from_env(
|
|
602
|
-
self.sdk_configuration.security, models.Security
|
|
603
|
-
),
|
|
604
|
-
),
|
|
605
|
-
request=req,
|
|
606
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
607
|
-
retry_config=retry_config,
|
|
608
|
-
)
|
|
609
|
-
|
|
610
|
-
response_data: Any = None
|
|
611
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
612
|
-
return unmarshal_json_response(models.UpdatePacksResponse, http_res)
|
|
613
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
614
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
615
|
-
raise errors.Error(response_data, http_res)
|
|
616
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
617
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
618
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
619
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
620
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
621
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
622
|
-
|
|
623
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
624
|
-
|
|
625
|
-
def delete_packs_by_id(
|
|
451
|
+
def delete(
|
|
626
452
|
self,
|
|
627
453
|
*,
|
|
628
454
|
id: str,
|
|
@@ -631,7 +457,7 @@ class Packs(BaseSDK):
|
|
|
631
457
|
timeout_ms: Optional[int] = None,
|
|
632
458
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
633
459
|
) -> models.DeletePacksByIDResponse:
|
|
634
|
-
r"""Uninstall Pack
|
|
460
|
+
r"""Uninstall a Pack
|
|
635
461
|
|
|
636
462
|
Uninstall Pack from the system
|
|
637
463
|
|
|
@@ -709,7 +535,7 @@ class Packs(BaseSDK):
|
|
|
709
535
|
|
|
710
536
|
raise errors.APIError("Unexpected response received", http_res)
|
|
711
537
|
|
|
712
|
-
async def
|
|
538
|
+
async def delete_async(
|
|
713
539
|
self,
|
|
714
540
|
*,
|
|
715
541
|
id: str,
|
|
@@ -718,7 +544,7 @@ class Packs(BaseSDK):
|
|
|
718
544
|
timeout_ms: Optional[int] = None,
|
|
719
545
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
720
546
|
) -> models.DeletePacksByIDResponse:
|
|
721
|
-
r"""Uninstall Pack
|
|
547
|
+
r"""Uninstall a Pack
|
|
722
548
|
|
|
723
549
|
Uninstall Pack from the system
|
|
724
550
|
|
|
@@ -796,7 +622,7 @@ class Packs(BaseSDK):
|
|
|
796
622
|
|
|
797
623
|
raise errors.APIError("Unexpected response received", http_res)
|
|
798
624
|
|
|
799
|
-
def
|
|
625
|
+
def update(
|
|
800
626
|
self,
|
|
801
627
|
*,
|
|
802
628
|
id: str,
|
|
@@ -808,7 +634,7 @@ class Packs(BaseSDK):
|
|
|
808
634
|
timeout_ms: Optional[int] = None,
|
|
809
635
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
810
636
|
) -> models.UpdatePacksByIDResponse:
|
|
811
|
-
r"""
|
|
637
|
+
r"""Update a Pack
|
|
812
638
|
|
|
813
639
|
Upgrade Pack
|
|
814
640
|
|
|
@@ -892,7 +718,7 @@ class Packs(BaseSDK):
|
|
|
892
718
|
|
|
893
719
|
raise errors.APIError("Unexpected response received", http_res)
|
|
894
720
|
|
|
895
|
-
async def
|
|
721
|
+
async def update_async(
|
|
896
722
|
self,
|
|
897
723
|
*,
|
|
898
724
|
id: str,
|
|
@@ -904,7 +730,7 @@ class Packs(BaseSDK):
|
|
|
904
730
|
timeout_ms: Optional[int] = None,
|
|
905
731
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
906
732
|
) -> models.UpdatePacksByIDResponse:
|
|
907
|
-
r"""
|
|
733
|
+
r"""Update a Pack
|
|
908
734
|
|
|
909
735
|
Upgrade Pack
|
|
910
736
|
|
cribl_control_plane/pipelines.py
CHANGED
|
@@ -172,7 +172,7 @@ class Pipelines(BaseSDK):
|
|
|
172
172
|
|
|
173
173
|
raise errors.APIError("Unexpected response received", http_res)
|
|
174
174
|
|
|
175
|
-
def
|
|
175
|
+
def create(
|
|
176
176
|
self,
|
|
177
177
|
*,
|
|
178
178
|
id: str,
|
|
@@ -182,9 +182,9 @@ class Pipelines(BaseSDK):
|
|
|
182
182
|
timeout_ms: Optional[int] = None,
|
|
183
183
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
184
184
|
) -> models.CreatePipelineResponse:
|
|
185
|
-
r"""Create Pipeline
|
|
185
|
+
r"""Create a Pipeline
|
|
186
186
|
|
|
187
|
-
Create Pipeline
|
|
187
|
+
Create a Pipeline
|
|
188
188
|
|
|
189
189
|
:param id:
|
|
190
190
|
:param conf:
|
|
@@ -265,7 +265,7 @@ class Pipelines(BaseSDK):
|
|
|
265
265
|
|
|
266
266
|
raise errors.APIError("Unexpected response received", http_res)
|
|
267
267
|
|
|
268
|
-
async def
|
|
268
|
+
async def create_async(
|
|
269
269
|
self,
|
|
270
270
|
*,
|
|
271
271
|
id: str,
|
|
@@ -275,9 +275,9 @@ class Pipelines(BaseSDK):
|
|
|
275
275
|
timeout_ms: Optional[int] = None,
|
|
276
276
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
277
277
|
) -> models.CreatePipelineResponse:
|
|
278
|
-
r"""Create Pipeline
|
|
278
|
+
r"""Create a Pipeline
|
|
279
279
|
|
|
280
|
-
Create Pipeline
|
|
280
|
+
Create a Pipeline
|
|
281
281
|
|
|
282
282
|
:param id:
|
|
283
283
|
:param conf:
|
|
@@ -543,9 +543,9 @@ class Pipelines(BaseSDK):
|
|
|
543
543
|
timeout_ms: Optional[int] = None,
|
|
544
544
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
545
545
|
) -> models.UpdatePipelineByIDResponse:
|
|
546
|
-
r"""Update Pipeline
|
|
546
|
+
r"""Update a Pipeline
|
|
547
547
|
|
|
548
|
-
Update Pipeline
|
|
548
|
+
Update a Pipeline
|
|
549
549
|
|
|
550
550
|
:param id_param: Unique ID to PATCH
|
|
551
551
|
:param id:
|
|
@@ -641,9 +641,9 @@ class Pipelines(BaseSDK):
|
|
|
641
641
|
timeout_ms: Optional[int] = None,
|
|
642
642
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
643
643
|
) -> models.UpdatePipelineByIDResponse:
|
|
644
|
-
r"""Update Pipeline
|
|
644
|
+
r"""Update a Pipeline
|
|
645
645
|
|
|
646
|
-
Update Pipeline
|
|
646
|
+
Update a Pipeline
|
|
647
647
|
|
|
648
648
|
:param id_param: Unique ID to PATCH
|
|
649
649
|
:param id:
|
|
@@ -12,7 +12,7 @@ from typing import Any, Dict, List, Mapping, Optional, Union
|
|
|
12
12
|
class RoutesSDK(BaseSDK):
|
|
13
13
|
r"""Actions related to Routes"""
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def list(
|
|
16
16
|
self,
|
|
17
17
|
*,
|
|
18
18
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -92,7 +92,7 @@ class RoutesSDK(BaseSDK):
|
|
|
92
92
|
|
|
93
93
|
raise errors.APIError("Unexpected response received", http_res)
|
|
94
94
|
|
|
95
|
-
async def
|
|
95
|
+
async def list_async(
|
|
96
96
|
self,
|
|
97
97
|
*,
|
|
98
98
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -172,7 +172,7 @@ class RoutesSDK(BaseSDK):
|
|
|
172
172
|
|
|
173
173
|
raise errors.APIError("Unexpected response received", http_res)
|
|
174
174
|
|
|
175
|
-
def
|
|
175
|
+
def get(
|
|
176
176
|
self,
|
|
177
177
|
*,
|
|
178
178
|
id: str,
|
|
@@ -259,7 +259,7 @@ class RoutesSDK(BaseSDK):
|
|
|
259
259
|
|
|
260
260
|
raise errors.APIError("Unexpected response received", http_res)
|
|
261
261
|
|
|
262
|
-
async def
|
|
262
|
+
async def get_async(
|
|
263
263
|
self,
|
|
264
264
|
*,
|
|
265
265
|
id: str,
|
|
@@ -346,13 +346,11 @@ class RoutesSDK(BaseSDK):
|
|
|
346
346
|
|
|
347
347
|
raise errors.APIError("Unexpected response received", http_res)
|
|
348
348
|
|
|
349
|
-
def
|
|
349
|
+
def update(
|
|
350
350
|
self,
|
|
351
351
|
*,
|
|
352
352
|
id_param: str,
|
|
353
|
-
routes: Union[
|
|
354
|
-
List[models.RoutesRouteInput], List[models.RoutesRouteInputTypedDict]
|
|
355
|
-
],
|
|
353
|
+
routes: Union[List[models.RoutesRoute], List[models.RoutesRouteTypedDict]],
|
|
356
354
|
id: Optional[str] = None,
|
|
357
355
|
groups: Optional[
|
|
358
356
|
Union[
|
|
@@ -393,9 +391,9 @@ class RoutesSDK(BaseSDK):
|
|
|
393
391
|
|
|
394
392
|
request = models.UpdateRoutesByIDRequest(
|
|
395
393
|
id_param=id_param,
|
|
396
|
-
routes=models.
|
|
394
|
+
routes=models.Routes(
|
|
397
395
|
id=id,
|
|
398
|
-
routes=utils.get_pydantic_model(routes, List[models.
|
|
396
|
+
routes=utils.get_pydantic_model(routes, List[models.RoutesRoute]),
|
|
399
397
|
groups=utils.get_pydantic_model(
|
|
400
398
|
groups, Optional[Dict[str, models.RoutesGroups]]
|
|
401
399
|
),
|
|
@@ -419,7 +417,7 @@ class RoutesSDK(BaseSDK):
|
|
|
419
417
|
http_headers=http_headers,
|
|
420
418
|
security=self.sdk_configuration.security,
|
|
421
419
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
422
|
-
request.routes, False, False, "json", models.
|
|
420
|
+
request.routes, False, False, "json", models.Routes
|
|
423
421
|
),
|
|
424
422
|
timeout_ms=timeout_ms,
|
|
425
423
|
)
|
|
@@ -462,13 +460,11 @@ class RoutesSDK(BaseSDK):
|
|
|
462
460
|
|
|
463
461
|
raise errors.APIError("Unexpected response received", http_res)
|
|
464
462
|
|
|
465
|
-
async def
|
|
463
|
+
async def update_async(
|
|
466
464
|
self,
|
|
467
465
|
*,
|
|
468
466
|
id_param: str,
|
|
469
|
-
routes: Union[
|
|
470
|
-
List[models.RoutesRouteInput], List[models.RoutesRouteInputTypedDict]
|
|
471
|
-
],
|
|
467
|
+
routes: Union[List[models.RoutesRoute], List[models.RoutesRouteTypedDict]],
|
|
472
468
|
id: Optional[str] = None,
|
|
473
469
|
groups: Optional[
|
|
474
470
|
Union[
|
|
@@ -509,9 +505,9 @@ class RoutesSDK(BaseSDK):
|
|
|
509
505
|
|
|
510
506
|
request = models.UpdateRoutesByIDRequest(
|
|
511
507
|
id_param=id_param,
|
|
512
|
-
routes=models.
|
|
508
|
+
routes=models.Routes(
|
|
513
509
|
id=id,
|
|
514
|
-
routes=utils.get_pydantic_model(routes, List[models.
|
|
510
|
+
routes=utils.get_pydantic_model(routes, List[models.RoutesRoute]),
|
|
515
511
|
groups=utils.get_pydantic_model(
|
|
516
512
|
groups, Optional[Dict[str, models.RoutesGroups]]
|
|
517
513
|
),
|
|
@@ -535,7 +531,7 @@ class RoutesSDK(BaseSDK):
|
|
|
535
531
|
http_headers=http_headers,
|
|
536
532
|
security=self.sdk_configuration.security,
|
|
537
533
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
538
|
-
request.routes, False, False, "json", models.
|
|
534
|
+
request.routes, False, False, "json", models.Routes
|
|
539
535
|
),
|
|
540
536
|
timeout_ms=timeout_ms,
|
|
541
537
|
)
|
|
@@ -578,7 +574,7 @@ class RoutesSDK(BaseSDK):
|
|
|
578
574
|
|
|
579
575
|
raise errors.APIError("Unexpected response received", http_res)
|
|
580
576
|
|
|
581
|
-
def
|
|
577
|
+
def append(
|
|
582
578
|
self,
|
|
583
579
|
*,
|
|
584
580
|
id: str,
|
|
@@ -588,7 +584,7 @@ class RoutesSDK(BaseSDK):
|
|
|
588
584
|
timeout_ms: Optional[int] = None,
|
|
589
585
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
590
586
|
) -> models.CreateRoutesAppendByIDResponse:
|
|
591
|
-
r"""
|
|
587
|
+
r"""Append Routes to the end of the Routing table
|
|
592
588
|
|
|
593
589
|
Appends routes to the end of the routing table
|
|
594
590
|
|
|
@@ -673,7 +669,7 @@ class RoutesSDK(BaseSDK):
|
|
|
673
669
|
|
|
674
670
|
raise errors.APIError("Unexpected response received", http_res)
|
|
675
671
|
|
|
676
|
-
async def
|
|
672
|
+
async def append_async(
|
|
677
673
|
self,
|
|
678
674
|
*,
|
|
679
675
|
id: str,
|
|
@@ -683,7 +679,7 @@ class RoutesSDK(BaseSDK):
|
|
|
683
679
|
timeout_ms: Optional[int] = None,
|
|
684
680
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
685
681
|
) -> models.CreateRoutesAppendByIDResponse:
|
|
686
|
-
r"""
|
|
682
|
+
r"""Append Routes to the end of the Routing table
|
|
687
683
|
|
|
688
684
|
Appends routes to the end of the routing table
|
|
689
685
|
|
cribl_control_plane/sdk.py
CHANGED
|
@@ -15,25 +15,23 @@ import weakref
|
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
17
|
from cribl_control_plane.auth_sdk import AuthSDK
|
|
18
|
+
from cribl_control_plane.deployments import Deployments
|
|
18
19
|
from cribl_control_plane.destinations import Destinations
|
|
19
|
-
from cribl_control_plane.distributed import Distributed
|
|
20
20
|
from cribl_control_plane.groups_sdk import GroupsSDK
|
|
21
|
-
from cribl_control_plane.
|
|
22
|
-
from cribl_control_plane.
|
|
21
|
+
from cribl_control_plane.healthinfo import HealthInfo
|
|
22
|
+
from cribl_control_plane.lakedatasets import LakeDatasets
|
|
23
|
+
from cribl_control_plane.nodes import Nodes
|
|
23
24
|
from cribl_control_plane.packs import Packs
|
|
24
25
|
from cribl_control_plane.pipelines import Pipelines
|
|
25
26
|
from cribl_control_plane.routes_sdk import RoutesSDK
|
|
26
27
|
from cribl_control_plane.sources import Sources
|
|
27
|
-
from cribl_control_plane.teams import Teams
|
|
28
28
|
from cribl_control_plane.versioning import Versioning
|
|
29
|
-
from cribl_control_plane.workers_sdk import WorkersSDK
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
class CriblControlPlane(BaseSDK):
|
|
33
32
|
r"""Cribl API Reference: This API Reference lists available REST endpoints, along with their supported operations for accessing, creating, updating, or deleting resources. See our complementary product documentation at [docs.cribl.io](http://docs.cribl.io)."""
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
r"""Actions related to Lake"""
|
|
34
|
+
lake_datasets: "LakeDatasets"
|
|
37
35
|
sources: "Sources"
|
|
38
36
|
destinations: "Destinations"
|
|
39
37
|
pipelines: "Pipelines"
|
|
@@ -42,34 +40,28 @@ class CriblControlPlane(BaseSDK):
|
|
|
42
40
|
r"""Actions related to Routes"""
|
|
43
41
|
auth: "AuthSDK"
|
|
44
42
|
r"""Actions related to authentication. Do not use the /auth endpoints in Cribl.Cloud deployments. Instead, follow the instructions at https://docs.cribl.io/stream/api-tutorials/#criblcloud to authenticate for Cribl.Cloud."""
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
r"""Actions related to Distributed"""
|
|
49
|
-
health: "Health"
|
|
50
|
-
r"""Actions related to REST server health"""
|
|
43
|
+
nodes: "Nodes"
|
|
44
|
+
deployments: "Deployments"
|
|
45
|
+
health_info: "HealthInfo"
|
|
51
46
|
packs: "Packs"
|
|
52
47
|
r"""Actions related to Packs"""
|
|
53
48
|
versioning: "Versioning"
|
|
54
49
|
r"""Actions related to Versioning"""
|
|
55
50
|
groups: "GroupsSDK"
|
|
56
51
|
r"""Actions related to Groups"""
|
|
57
|
-
teams: "Teams"
|
|
58
|
-
r"""Actions related to Teams"""
|
|
59
52
|
_sub_sdk_map = {
|
|
60
|
-
"
|
|
53
|
+
"lake_datasets": ("cribl_control_plane.lakedatasets", "LakeDatasets"),
|
|
61
54
|
"sources": ("cribl_control_plane.sources", "Sources"),
|
|
62
55
|
"destinations": ("cribl_control_plane.destinations", "Destinations"),
|
|
63
56
|
"pipelines": ("cribl_control_plane.pipelines", "Pipelines"),
|
|
64
57
|
"routes": ("cribl_control_plane.routes_sdk", "RoutesSDK"),
|
|
65
58
|
"auth": ("cribl_control_plane.auth_sdk", "AuthSDK"),
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
59
|
+
"nodes": ("cribl_control_plane.nodes", "Nodes"),
|
|
60
|
+
"deployments": ("cribl_control_plane.deployments", "Deployments"),
|
|
61
|
+
"health_info": ("cribl_control_plane.healthinfo", "HealthInfo"),
|
|
69
62
|
"packs": ("cribl_control_plane.packs", "Packs"),
|
|
70
63
|
"versioning": ("cribl_control_plane.versioning", "Versioning"),
|
|
71
64
|
"groups": ("cribl_control_plane.groups_sdk", "GroupsSDK"),
|
|
72
|
-
"teams": ("cribl_control_plane.teams", "Teams"),
|
|
73
65
|
}
|
|
74
66
|
|
|
75
67
|
def __init__(
|