cribl-control-plane 0.0.37a1__py3-none-any.whl → 0.0.38__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/commits.py +56 -46
- cribl_control_plane/commits_files.py +12 -12
- cribl_control_plane/models/__init__.py +533 -215
- cribl_control_plane/models/createversioncommitop.py +26 -1
- cribl_control_plane/models/createversionrevertop.py +4 -2
- cribl_control_plane/models/createversionundoop.py +4 -2
- cribl_control_plane/models/getpacksbyidop.py +37 -0
- cribl_control_plane/models/getversioncountop.py +3 -2
- cribl_control_plane/models/getversiondiffop.py +3 -2
- cribl_control_plane/models/getversionfilesop.py +3 -2
- cribl_control_plane/models/getversionop.py +4 -2
- cribl_control_plane/models/getversionshowop.py +3 -2
- cribl_control_plane/models/getversionstatusop.py +4 -2
- cribl_control_plane/models/gitrevertparams.py +3 -3
- cribl_control_plane/models/input.py +77 -76
- cribl_control_plane/models/inputcrowdstrike.py +2 -2
- cribl_control_plane/models/inputgrafana.py +678 -67
- cribl_control_plane/models/inputs3.py +2 -2
- cribl_control_plane/models/inputs3inventory.py +2 -2
- cribl_control_plane/models/inputsecuritylake.py +2 -2
- cribl_control_plane/models/inputsyslog.py +406 -37
- cribl_control_plane/models/inputwizwebhook.py +393 -0
- cribl_control_plane/models/output.py +75 -77
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +1 -1
- cribl_control_plane/models/outputgooglepubsub.py +7 -28
- cribl_control_plane/models/outputgrafanacloud.py +565 -69
- cribl_control_plane/models/packinfo.py +5 -5
- cribl_control_plane/models/packinstallinfo.py +5 -5
- cribl_control_plane/models/packrequestbody_union.py +140 -0
- cribl_control_plane/models/packupgraderequest.py +26 -0
- cribl_control_plane/models/updatepacksbyidop.py +9 -28
- cribl_control_plane/packs.py +236 -116
- cribl_control_plane/statuses.py +6 -6
- {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38.dist-info}/METADATA +4 -3
- {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38.dist-info}/RECORD +37 -34
- cribl_control_plane/models/packrequestbody.py +0 -75
- {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38.dist-info}/WHEEL +0 -0
cribl_control_plane/packs.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
4
|
from cribl_control_plane import errors, models, utils
|
|
5
5
|
from cribl_control_plane._hooks import HookContext
|
|
6
|
-
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
6
|
+
from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
|
|
7
7
|
from cribl_control_plane.utils import get_security_from_env
|
|
8
8
|
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
-
from typing import Any,
|
|
9
|
+
from typing import Any, Mapping, Optional, Union, cast
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Packs(BaseSDK):
|
|
@@ -15,45 +15,19 @@ class Packs(BaseSDK):
|
|
|
15
15
|
def install(
|
|
16
16
|
self,
|
|
17
17
|
*,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
author: Optional[str] = None,
|
|
22
|
-
description: Optional[str] = None,
|
|
23
|
-
display_name: Optional[str] = None,
|
|
24
|
-
exports: Optional[List[str]] = None,
|
|
25
|
-
force: Optional[bool] = None,
|
|
26
|
-
inputs: Optional[float] = None,
|
|
27
|
-
min_log_stream_version: Optional[str] = None,
|
|
28
|
-
outputs: Optional[float] = None,
|
|
29
|
-
spec: Optional[str] = None,
|
|
30
|
-
tags: Optional[
|
|
31
|
-
Union[models.PackRequestBodyTags, models.PackRequestBodyTagsTypedDict]
|
|
32
|
-
] = None,
|
|
33
|
-
version: Optional[str] = None,
|
|
18
|
+
request: Union[
|
|
19
|
+
models.PackRequestBodyUnion, models.PackRequestBodyUnionTypedDict
|
|
20
|
+
],
|
|
34
21
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
35
22
|
server_url: Optional[str] = None,
|
|
36
23
|
timeout_ms: Optional[int] = None,
|
|
37
24
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
38
25
|
) -> models.CreatePacksResponse:
|
|
39
|
-
r"""
|
|
26
|
+
r"""Create or install a Pack
|
|
40
27
|
|
|
41
|
-
|
|
28
|
+
Create or install a Pack.
|
|
42
29
|
|
|
43
|
-
:param
|
|
44
|
-
:param source:
|
|
45
|
-
:param allow_custom_functions:
|
|
46
|
-
:param author:
|
|
47
|
-
:param description:
|
|
48
|
-
:param display_name:
|
|
49
|
-
:param exports:
|
|
50
|
-
:param force:
|
|
51
|
-
:param inputs:
|
|
52
|
-
:param min_log_stream_version:
|
|
53
|
-
:param outputs:
|
|
54
|
-
:param spec:
|
|
55
|
-
:param tags:
|
|
56
|
-
:param version:
|
|
30
|
+
:param request: The request object to send.
|
|
57
31
|
:param retries: Override the default retry configuration for this method
|
|
58
32
|
:param server_url: Override the default server URL for this method
|
|
59
33
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -69,22 +43,9 @@ class Packs(BaseSDK):
|
|
|
69
43
|
else:
|
|
70
44
|
base_url = self._get_url(base_url, url_variables)
|
|
71
45
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
description=description,
|
|
76
|
-
display_name=display_name,
|
|
77
|
-
exports=exports,
|
|
78
|
-
force=force,
|
|
79
|
-
id=id,
|
|
80
|
-
inputs=inputs,
|
|
81
|
-
min_log_stream_version=min_log_stream_version,
|
|
82
|
-
outputs=outputs,
|
|
83
|
-
source=source,
|
|
84
|
-
spec=spec,
|
|
85
|
-
tags=utils.get_pydantic_model(tags, Optional[models.PackRequestBodyTags]),
|
|
86
|
-
version=version,
|
|
87
|
-
)
|
|
46
|
+
if not isinstance(request, BaseModel):
|
|
47
|
+
request = utils.unmarshal(request, models.PackRequestBodyUnion)
|
|
48
|
+
request = cast(models.PackRequestBodyUnion, request)
|
|
88
49
|
|
|
89
50
|
req = self._build_request(
|
|
90
51
|
method="POST",
|
|
@@ -100,7 +61,7 @@ class Packs(BaseSDK):
|
|
|
100
61
|
http_headers=http_headers,
|
|
101
62
|
security=self.sdk_configuration.security,
|
|
102
63
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
103
|
-
request, False, False, "json", models.
|
|
64
|
+
request, False, False, "json", models.PackRequestBodyUnion
|
|
104
65
|
),
|
|
105
66
|
timeout_ms=timeout_ms,
|
|
106
67
|
)
|
|
@@ -146,45 +107,19 @@ class Packs(BaseSDK):
|
|
|
146
107
|
async def install_async(
|
|
147
108
|
self,
|
|
148
109
|
*,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
author: Optional[str] = None,
|
|
153
|
-
description: Optional[str] = None,
|
|
154
|
-
display_name: Optional[str] = None,
|
|
155
|
-
exports: Optional[List[str]] = None,
|
|
156
|
-
force: Optional[bool] = None,
|
|
157
|
-
inputs: Optional[float] = None,
|
|
158
|
-
min_log_stream_version: Optional[str] = None,
|
|
159
|
-
outputs: Optional[float] = None,
|
|
160
|
-
spec: Optional[str] = None,
|
|
161
|
-
tags: Optional[
|
|
162
|
-
Union[models.PackRequestBodyTags, models.PackRequestBodyTagsTypedDict]
|
|
163
|
-
] = None,
|
|
164
|
-
version: Optional[str] = None,
|
|
110
|
+
request: Union[
|
|
111
|
+
models.PackRequestBodyUnion, models.PackRequestBodyUnionTypedDict
|
|
112
|
+
],
|
|
165
113
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
166
114
|
server_url: Optional[str] = None,
|
|
167
115
|
timeout_ms: Optional[int] = None,
|
|
168
116
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
169
117
|
) -> models.CreatePacksResponse:
|
|
170
|
-
r"""
|
|
118
|
+
r"""Create or install a Pack
|
|
171
119
|
|
|
172
|
-
|
|
120
|
+
Create or install a Pack.
|
|
173
121
|
|
|
174
|
-
:param
|
|
175
|
-
:param source:
|
|
176
|
-
:param allow_custom_functions:
|
|
177
|
-
:param author:
|
|
178
|
-
:param description:
|
|
179
|
-
:param display_name:
|
|
180
|
-
:param exports:
|
|
181
|
-
:param force:
|
|
182
|
-
:param inputs:
|
|
183
|
-
:param min_log_stream_version:
|
|
184
|
-
:param outputs:
|
|
185
|
-
:param spec:
|
|
186
|
-
:param tags:
|
|
187
|
-
:param version:
|
|
122
|
+
:param request: The request object to send.
|
|
188
123
|
:param retries: Override the default retry configuration for this method
|
|
189
124
|
:param server_url: Override the default server URL for this method
|
|
190
125
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -200,22 +135,9 @@ class Packs(BaseSDK):
|
|
|
200
135
|
else:
|
|
201
136
|
base_url = self._get_url(base_url, url_variables)
|
|
202
137
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
description=description,
|
|
207
|
-
display_name=display_name,
|
|
208
|
-
exports=exports,
|
|
209
|
-
force=force,
|
|
210
|
-
id=id,
|
|
211
|
-
inputs=inputs,
|
|
212
|
-
min_log_stream_version=min_log_stream_version,
|
|
213
|
-
outputs=outputs,
|
|
214
|
-
source=source,
|
|
215
|
-
spec=spec,
|
|
216
|
-
tags=utils.get_pydantic_model(tags, Optional[models.PackRequestBodyTags]),
|
|
217
|
-
version=version,
|
|
218
|
-
)
|
|
138
|
+
if not isinstance(request, BaseModel):
|
|
139
|
+
request = utils.unmarshal(request, models.PackRequestBodyUnion)
|
|
140
|
+
request = cast(models.PackRequestBodyUnion, request)
|
|
219
141
|
|
|
220
142
|
req = self._build_request_async(
|
|
221
143
|
method="POST",
|
|
@@ -231,7 +153,7 @@ class Packs(BaseSDK):
|
|
|
231
153
|
http_headers=http_headers,
|
|
232
154
|
security=self.sdk_configuration.security,
|
|
233
155
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
234
|
-
request, False, False, "json", models.
|
|
156
|
+
request, False, False, "json", models.PackRequestBodyUnion
|
|
235
157
|
),
|
|
236
158
|
timeout_ms=timeout_ms,
|
|
237
159
|
)
|
|
@@ -622,11 +544,186 @@ class Packs(BaseSDK):
|
|
|
622
544
|
|
|
623
545
|
raise errors.APIError("Unexpected response received", http_res)
|
|
624
546
|
|
|
547
|
+
def get(
|
|
548
|
+
self,
|
|
549
|
+
*,
|
|
550
|
+
id: str,
|
|
551
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
552
|
+
server_url: Optional[str] = None,
|
|
553
|
+
timeout_ms: Optional[int] = None,
|
|
554
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
555
|
+
) -> models.GetPacksByIDResponse:
|
|
556
|
+
r"""Get a Pack
|
|
557
|
+
|
|
558
|
+
Get the specified Pack.
|
|
559
|
+
|
|
560
|
+
:param id: The <code>id</code> of the Pack to get.
|
|
561
|
+
:param retries: Override the default retry configuration for this method
|
|
562
|
+
:param server_url: Override the default server URL for this method
|
|
563
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
564
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
565
|
+
"""
|
|
566
|
+
base_url = None
|
|
567
|
+
url_variables = None
|
|
568
|
+
if timeout_ms is None:
|
|
569
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
570
|
+
|
|
571
|
+
if server_url is not None:
|
|
572
|
+
base_url = server_url
|
|
573
|
+
else:
|
|
574
|
+
base_url = self._get_url(base_url, url_variables)
|
|
575
|
+
|
|
576
|
+
request = models.GetPacksByIDRequest(
|
|
577
|
+
id=id,
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
req = self._build_request(
|
|
581
|
+
method="GET",
|
|
582
|
+
path="/packs/{id}",
|
|
583
|
+
base_url=base_url,
|
|
584
|
+
url_variables=url_variables,
|
|
585
|
+
request=request,
|
|
586
|
+
request_body_required=False,
|
|
587
|
+
request_has_path_params=True,
|
|
588
|
+
request_has_query_params=True,
|
|
589
|
+
user_agent_header="user-agent",
|
|
590
|
+
accept_header_value="application/json",
|
|
591
|
+
http_headers=http_headers,
|
|
592
|
+
security=self.sdk_configuration.security,
|
|
593
|
+
timeout_ms=timeout_ms,
|
|
594
|
+
)
|
|
595
|
+
|
|
596
|
+
if retries == UNSET:
|
|
597
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
598
|
+
retries = self.sdk_configuration.retry_config
|
|
599
|
+
|
|
600
|
+
retry_config = None
|
|
601
|
+
if isinstance(retries, utils.RetryConfig):
|
|
602
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
603
|
+
|
|
604
|
+
http_res = self.do_request(
|
|
605
|
+
hook_ctx=HookContext(
|
|
606
|
+
config=self.sdk_configuration,
|
|
607
|
+
base_url=base_url or "",
|
|
608
|
+
operation_id="getPacksById",
|
|
609
|
+
oauth2_scopes=[],
|
|
610
|
+
security_source=get_security_from_env(
|
|
611
|
+
self.sdk_configuration.security, models.Security
|
|
612
|
+
),
|
|
613
|
+
),
|
|
614
|
+
request=req,
|
|
615
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
616
|
+
retry_config=retry_config,
|
|
617
|
+
)
|
|
618
|
+
|
|
619
|
+
response_data: Any = None
|
|
620
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
621
|
+
return unmarshal_json_response(models.GetPacksByIDResponse, http_res)
|
|
622
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
623
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
624
|
+
raise errors.Error(response_data, http_res)
|
|
625
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
626
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
627
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
628
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
629
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
630
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
631
|
+
|
|
632
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
633
|
+
|
|
634
|
+
async def get_async(
|
|
635
|
+
self,
|
|
636
|
+
*,
|
|
637
|
+
id: str,
|
|
638
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
639
|
+
server_url: Optional[str] = None,
|
|
640
|
+
timeout_ms: Optional[int] = None,
|
|
641
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
642
|
+
) -> models.GetPacksByIDResponse:
|
|
643
|
+
r"""Get a Pack
|
|
644
|
+
|
|
645
|
+
Get the specified Pack.
|
|
646
|
+
|
|
647
|
+
:param id: The <code>id</code> of the Pack to get.
|
|
648
|
+
:param retries: Override the default retry configuration for this method
|
|
649
|
+
:param server_url: Override the default server URL for this method
|
|
650
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
651
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
652
|
+
"""
|
|
653
|
+
base_url = None
|
|
654
|
+
url_variables = None
|
|
655
|
+
if timeout_ms is None:
|
|
656
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
657
|
+
|
|
658
|
+
if server_url is not None:
|
|
659
|
+
base_url = server_url
|
|
660
|
+
else:
|
|
661
|
+
base_url = self._get_url(base_url, url_variables)
|
|
662
|
+
|
|
663
|
+
request = models.GetPacksByIDRequest(
|
|
664
|
+
id=id,
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
req = self._build_request_async(
|
|
668
|
+
method="GET",
|
|
669
|
+
path="/packs/{id}",
|
|
670
|
+
base_url=base_url,
|
|
671
|
+
url_variables=url_variables,
|
|
672
|
+
request=request,
|
|
673
|
+
request_body_required=False,
|
|
674
|
+
request_has_path_params=True,
|
|
675
|
+
request_has_query_params=True,
|
|
676
|
+
user_agent_header="user-agent",
|
|
677
|
+
accept_header_value="application/json",
|
|
678
|
+
http_headers=http_headers,
|
|
679
|
+
security=self.sdk_configuration.security,
|
|
680
|
+
timeout_ms=timeout_ms,
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
if retries == UNSET:
|
|
684
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
685
|
+
retries = self.sdk_configuration.retry_config
|
|
686
|
+
|
|
687
|
+
retry_config = None
|
|
688
|
+
if isinstance(retries, utils.RetryConfig):
|
|
689
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
690
|
+
|
|
691
|
+
http_res = await self.do_request_async(
|
|
692
|
+
hook_ctx=HookContext(
|
|
693
|
+
config=self.sdk_configuration,
|
|
694
|
+
base_url=base_url or "",
|
|
695
|
+
operation_id="getPacksById",
|
|
696
|
+
oauth2_scopes=[],
|
|
697
|
+
security_source=get_security_from_env(
|
|
698
|
+
self.sdk_configuration.security, models.Security
|
|
699
|
+
),
|
|
700
|
+
),
|
|
701
|
+
request=req,
|
|
702
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
703
|
+
retry_config=retry_config,
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
response_data: Any = None
|
|
707
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
708
|
+
return unmarshal_json_response(models.GetPacksByIDResponse, http_res)
|
|
709
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
710
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
711
|
+
raise errors.Error(response_data, http_res)
|
|
712
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
713
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
714
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
715
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
716
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
717
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
718
|
+
|
|
719
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
720
|
+
|
|
625
721
|
def update(
|
|
626
722
|
self,
|
|
627
723
|
*,
|
|
628
724
|
id: str,
|
|
629
|
-
source:
|
|
725
|
+
source: str,
|
|
726
|
+
allow_custom_functions: Optional[bool] = None,
|
|
630
727
|
minor: Optional[str] = None,
|
|
631
728
|
spec: Optional[str] = None,
|
|
632
729
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -639,9 +736,10 @@ class Packs(BaseSDK):
|
|
|
639
736
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack. Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
640
737
|
|
|
641
738
|
:param id: The <code>id</code> of the Pack to upgrade.
|
|
642
|
-
:param source:
|
|
643
|
-
:param
|
|
644
|
-
:param
|
|
739
|
+
:param source:
|
|
740
|
+
:param allow_custom_functions:
|
|
741
|
+
:param minor:
|
|
742
|
+
:param spec:
|
|
645
743
|
:param retries: Override the default retry configuration for this method
|
|
646
744
|
:param server_url: Override the default server URL for this method
|
|
647
745
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -659,9 +757,12 @@ class Packs(BaseSDK):
|
|
|
659
757
|
|
|
660
758
|
request = models.UpdatePacksByIDRequest(
|
|
661
759
|
id=id,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
760
|
+
pack_upgrade_request=models.PackUpgradeRequest(
|
|
761
|
+
allow_custom_functions=allow_custom_functions,
|
|
762
|
+
minor=minor,
|
|
763
|
+
source=source,
|
|
764
|
+
spec=spec,
|
|
765
|
+
),
|
|
665
766
|
)
|
|
666
767
|
|
|
667
768
|
req = self._build_request(
|
|
@@ -670,13 +771,20 @@ class Packs(BaseSDK):
|
|
|
670
771
|
base_url=base_url,
|
|
671
772
|
url_variables=url_variables,
|
|
672
773
|
request=request,
|
|
673
|
-
request_body_required=
|
|
774
|
+
request_body_required=True,
|
|
674
775
|
request_has_path_params=True,
|
|
675
776
|
request_has_query_params=True,
|
|
676
777
|
user_agent_header="user-agent",
|
|
677
778
|
accept_header_value="application/json",
|
|
678
779
|
http_headers=http_headers,
|
|
679
780
|
security=self.sdk_configuration.security,
|
|
781
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
782
|
+
request.pack_upgrade_request,
|
|
783
|
+
False,
|
|
784
|
+
False,
|
|
785
|
+
"json",
|
|
786
|
+
models.PackUpgradeRequest,
|
|
787
|
+
),
|
|
680
788
|
timeout_ms=timeout_ms,
|
|
681
789
|
)
|
|
682
790
|
|
|
@@ -722,7 +830,8 @@ class Packs(BaseSDK):
|
|
|
722
830
|
self,
|
|
723
831
|
*,
|
|
724
832
|
id: str,
|
|
725
|
-
source:
|
|
833
|
+
source: str,
|
|
834
|
+
allow_custom_functions: Optional[bool] = None,
|
|
726
835
|
minor: Optional[str] = None,
|
|
727
836
|
spec: Optional[str] = None,
|
|
728
837
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -735,9 +844,10 @@ class Packs(BaseSDK):
|
|
|
735
844
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack. Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
736
845
|
|
|
737
846
|
:param id: The <code>id</code> of the Pack to upgrade.
|
|
738
|
-
:param source:
|
|
739
|
-
:param
|
|
740
|
-
:param
|
|
847
|
+
:param source:
|
|
848
|
+
:param allow_custom_functions:
|
|
849
|
+
:param minor:
|
|
850
|
+
:param spec:
|
|
741
851
|
:param retries: Override the default retry configuration for this method
|
|
742
852
|
:param server_url: Override the default server URL for this method
|
|
743
853
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -755,9 +865,12 @@ class Packs(BaseSDK):
|
|
|
755
865
|
|
|
756
866
|
request = models.UpdatePacksByIDRequest(
|
|
757
867
|
id=id,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
868
|
+
pack_upgrade_request=models.PackUpgradeRequest(
|
|
869
|
+
allow_custom_functions=allow_custom_functions,
|
|
870
|
+
minor=minor,
|
|
871
|
+
source=source,
|
|
872
|
+
spec=spec,
|
|
873
|
+
),
|
|
761
874
|
)
|
|
762
875
|
|
|
763
876
|
req = self._build_request_async(
|
|
@@ -766,13 +879,20 @@ class Packs(BaseSDK):
|
|
|
766
879
|
base_url=base_url,
|
|
767
880
|
url_variables=url_variables,
|
|
768
881
|
request=request,
|
|
769
|
-
request_body_required=
|
|
882
|
+
request_body_required=True,
|
|
770
883
|
request_has_path_params=True,
|
|
771
884
|
request_has_query_params=True,
|
|
772
885
|
user_agent_header="user-agent",
|
|
773
886
|
accept_header_value="application/json",
|
|
774
887
|
http_headers=http_headers,
|
|
775
888
|
security=self.sdk_configuration.security,
|
|
889
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
890
|
+
request.pack_upgrade_request,
|
|
891
|
+
False,
|
|
892
|
+
False,
|
|
893
|
+
"json",
|
|
894
|
+
models.PackUpgradeRequest,
|
|
895
|
+
),
|
|
776
896
|
timeout_ms=timeout_ms,
|
|
777
897
|
)
|
|
778
898
|
|
cribl_control_plane/statuses.py
CHANGED
|
@@ -13,7 +13,7 @@ class Statuses(BaseSDK):
|
|
|
13
13
|
def get(
|
|
14
14
|
self,
|
|
15
15
|
*,
|
|
16
|
-
|
|
16
|
+
group_id: Optional[str] = None,
|
|
17
17
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
18
|
server_url: Optional[str] = None,
|
|
19
19
|
timeout_ms: Optional[int] = None,
|
|
@@ -23,7 +23,7 @@ class Statuses(BaseSDK):
|
|
|
23
23
|
|
|
24
24
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
25
25
|
|
|
26
|
-
:param
|
|
26
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to get the status for.
|
|
27
27
|
:param retries: Override the default retry configuration for this method
|
|
28
28
|
:param server_url: Override the default server URL for this method
|
|
29
29
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -40,7 +40,7 @@ class Statuses(BaseSDK):
|
|
|
40
40
|
base_url = self._get_url(base_url, url_variables)
|
|
41
41
|
|
|
42
42
|
request = models.GetVersionStatusRequest(
|
|
43
|
-
|
|
43
|
+
group_id=group_id,
|
|
44
44
|
)
|
|
45
45
|
|
|
46
46
|
req = self._build_request(
|
|
@@ -100,7 +100,7 @@ class Statuses(BaseSDK):
|
|
|
100
100
|
async def get_async(
|
|
101
101
|
self,
|
|
102
102
|
*,
|
|
103
|
-
|
|
103
|
+
group_id: Optional[str] = None,
|
|
104
104
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
105
105
|
server_url: Optional[str] = None,
|
|
106
106
|
timeout_ms: Optional[int] = None,
|
|
@@ -110,7 +110,7 @@ class Statuses(BaseSDK):
|
|
|
110
110
|
|
|
111
111
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
112
112
|
|
|
113
|
-
:param
|
|
113
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to get the status for.
|
|
114
114
|
:param retries: Override the default retry configuration for this method
|
|
115
115
|
:param server_url: Override the default server URL for this method
|
|
116
116
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -127,7 +127,7 @@ class Statuses(BaseSDK):
|
|
|
127
127
|
base_url = self._get_url(base_url, url_variables)
|
|
128
128
|
|
|
129
129
|
request = models.GetVersionStatusRequest(
|
|
130
|
-
|
|
130
|
+
group_id=group_id,
|
|
131
131
|
)
|
|
132
132
|
|
|
133
133
|
req = self._build_request_async(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.38
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -374,9 +374,10 @@ with CriblControlPlane(
|
|
|
374
374
|
|
|
375
375
|
### [packs](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md)
|
|
376
376
|
|
|
377
|
-
* [install](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#install) -
|
|
377
|
+
* [install](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#install) - Create or install a Pack
|
|
378
378
|
* [list](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#list) - List all Packs
|
|
379
379
|
* [delete](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#delete) - Uninstall a Pack
|
|
380
|
+
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#get) - Get a Pack
|
|
380
381
|
* [update](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#update) - Upgrade a Pack
|
|
381
382
|
|
|
382
383
|
### [pipelines](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/pipelines/README.md)
|
|
@@ -654,7 +655,7 @@ with CriblControlPlane(
|
|
|
654
655
|
|
|
655
656
|
|
|
656
657
|
**Inherit from [`CriblControlPlaneError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/criblcontrolplaneerror.py)**:
|
|
657
|
-
* [`HealthStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of
|
|
658
|
+
* [`HealthStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of 62 methods.*
|
|
658
659
|
* [`ResponseValidationError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
659
660
|
|
|
660
661
|
</details>
|