cribl-control-plane 0.0.36__py3-none-any.whl → 0.0.37__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/models/__init__.py +31 -13
- cribl_control_plane/models/inputcrowdstrike.py +2 -2
- 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/packrequestbody_union.py +140 -0
- cribl_control_plane/packs.py +26 -104
- {cribl_control_plane-0.0.36.dist-info → cribl_control_plane-0.0.37.dist-info}/METADATA +2 -2
- {cribl_control_plane-0.0.36.dist-info → cribl_control_plane-0.0.37.dist-info}/RECORD +11 -11
- cribl_control_plane/models/packrequestbody.py +0 -75
- {cribl_control_plane-0.0.36.dist-info → cribl_control_plane-0.0.37.dist-info}/WHEEL +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.0.
|
|
7
|
-
__openapi_doc_version__: str = "4.14.0-alpha.
|
|
6
|
+
__version__: str = "0.0.37"
|
|
7
|
+
__openapi_doc_version__: str = "4.14.0-alpha.1756133891055-db064179"
|
|
8
8
|
__gen_version__: str = "2.686.7"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.37 2.686.7 4.14.0-alpha.1756133891055-db064179 cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -2943,11 +2943,17 @@ if TYPE_CHECKING:
|
|
|
2943
2943
|
PackInstallInfoTagsTypedDict,
|
|
2944
2944
|
PackInstallInfoTypedDict,
|
|
2945
2945
|
)
|
|
2946
|
-
from .
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2946
|
+
from .packrequestbody_union import (
|
|
2947
|
+
PackRequestBody1,
|
|
2948
|
+
PackRequestBody1TypedDict,
|
|
2949
|
+
PackRequestBody2,
|
|
2950
|
+
PackRequestBody2TypedDict,
|
|
2951
|
+
PackRequestBodyTags1,
|
|
2952
|
+
PackRequestBodyTags1TypedDict,
|
|
2953
|
+
PackRequestBodyTags2,
|
|
2954
|
+
PackRequestBodyTags2TypedDict,
|
|
2955
|
+
PackRequestBodyUnion,
|
|
2956
|
+
PackRequestBodyUnionTypedDict,
|
|
2951
2957
|
)
|
|
2952
2958
|
from .pipeline import (
|
|
2953
2959
|
Conf,
|
|
@@ -5619,10 +5625,16 @@ __all__ = [
|
|
|
5619
5625
|
"PackInstallInfoTags",
|
|
5620
5626
|
"PackInstallInfoTagsTypedDict",
|
|
5621
5627
|
"PackInstallInfoTypedDict",
|
|
5622
|
-
"
|
|
5623
|
-
"
|
|
5624
|
-
"
|
|
5625
|
-
"
|
|
5628
|
+
"PackRequestBody1",
|
|
5629
|
+
"PackRequestBody1TypedDict",
|
|
5630
|
+
"PackRequestBody2",
|
|
5631
|
+
"PackRequestBody2TypedDict",
|
|
5632
|
+
"PackRequestBodyTags1",
|
|
5633
|
+
"PackRequestBodyTags1TypedDict",
|
|
5634
|
+
"PackRequestBodyTags2",
|
|
5635
|
+
"PackRequestBodyTags2TypedDict",
|
|
5636
|
+
"PackRequestBodyUnion",
|
|
5637
|
+
"PackRequestBodyUnionTypedDict",
|
|
5626
5638
|
"PayloadFormat",
|
|
5627
5639
|
"Pipeline",
|
|
5628
5640
|
"PipelineFunctionConf",
|
|
@@ -8368,10 +8380,16 @@ _dynamic_imports: dict[str, str] = {
|
|
|
8368
8380
|
"PackInstallInfoTags": ".packinstallinfo",
|
|
8369
8381
|
"PackInstallInfoTagsTypedDict": ".packinstallinfo",
|
|
8370
8382
|
"PackInstallInfoTypedDict": ".packinstallinfo",
|
|
8371
|
-
"
|
|
8372
|
-
"
|
|
8373
|
-
"
|
|
8374
|
-
"
|
|
8383
|
+
"PackRequestBody1": ".packrequestbody_union",
|
|
8384
|
+
"PackRequestBody1TypedDict": ".packrequestbody_union",
|
|
8385
|
+
"PackRequestBody2": ".packrequestbody_union",
|
|
8386
|
+
"PackRequestBody2TypedDict": ".packrequestbody_union",
|
|
8387
|
+
"PackRequestBodyTags1": ".packrequestbody_union",
|
|
8388
|
+
"PackRequestBodyTags1TypedDict": ".packrequestbody_union",
|
|
8389
|
+
"PackRequestBodyTags2": ".packrequestbody_union",
|
|
8390
|
+
"PackRequestBodyTags2TypedDict": ".packrequestbody_union",
|
|
8391
|
+
"PackRequestBodyUnion": ".packrequestbody_union",
|
|
8392
|
+
"PackRequestBodyUnionTypedDict": ".packrequestbody_union",
|
|
8375
8393
|
"Conf": ".pipeline",
|
|
8376
8394
|
"ConfTypedDict": ".pipeline",
|
|
8377
8395
|
"Pipeline": ".pipeline",
|
|
@@ -201,7 +201,7 @@ class InputCrowdstrikeTypedDict(TypedDict):
|
|
|
201
201
|
skip_on_error: NotRequired[bool]
|
|
202
202
|
r"""Skip files that trigger a processing error. Disabled by default, which allows retries after processing errors."""
|
|
203
203
|
include_sqs_metadata: NotRequired[bool]
|
|
204
|
-
r"""
|
|
204
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
205
205
|
enable_assume_role: NotRequired[bool]
|
|
206
206
|
r"""Use Assume Role credentials to access Amazon S3"""
|
|
207
207
|
assume_role_arn: NotRequired[str]
|
|
@@ -338,7 +338,7 @@ class InputCrowdstrike(BaseModel):
|
|
|
338
338
|
include_sqs_metadata: Annotated[
|
|
339
339
|
Optional[bool], pydantic.Field(alias="includeSqsMetadata")
|
|
340
340
|
] = False
|
|
341
|
-
r"""
|
|
341
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
342
342
|
|
|
343
343
|
enable_assume_role: Annotated[
|
|
344
344
|
Optional[bool], pydantic.Field(alias="enableAssumeRole")
|
|
@@ -196,7 +196,7 @@ class InputS3TypedDict(TypedDict):
|
|
|
196
196
|
skip_on_error: NotRequired[bool]
|
|
197
197
|
r"""Skip files that trigger a processing error. Disabled by default, which allows retries after processing errors."""
|
|
198
198
|
include_sqs_metadata: NotRequired[bool]
|
|
199
|
-
r"""
|
|
199
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
200
200
|
enable_assume_role: NotRequired[bool]
|
|
201
201
|
r"""Use Assume Role credentials to access Amazon S3"""
|
|
202
202
|
assume_role_arn: NotRequired[str]
|
|
@@ -337,7 +337,7 @@ class InputS3(BaseModel):
|
|
|
337
337
|
include_sqs_metadata: Annotated[
|
|
338
338
|
Optional[bool], pydantic.Field(alias="includeSqsMetadata")
|
|
339
339
|
] = False
|
|
340
|
-
r"""
|
|
340
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
341
341
|
|
|
342
342
|
enable_assume_role: Annotated[
|
|
343
343
|
Optional[bool], pydantic.Field(alias="enableAssumeRole")
|
|
@@ -201,7 +201,7 @@ class InputS3InventoryTypedDict(TypedDict):
|
|
|
201
201
|
skip_on_error: NotRequired[bool]
|
|
202
202
|
r"""Skip files that trigger a processing error. Disabled by default, which allows retries after processing errors."""
|
|
203
203
|
include_sqs_metadata: NotRequired[bool]
|
|
204
|
-
r"""
|
|
204
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
205
205
|
enable_assume_role: NotRequired[bool]
|
|
206
206
|
r"""Use Assume Role credentials to access Amazon S3"""
|
|
207
207
|
assume_role_arn: NotRequired[str]
|
|
@@ -346,7 +346,7 @@ class InputS3Inventory(BaseModel):
|
|
|
346
346
|
include_sqs_metadata: Annotated[
|
|
347
347
|
Optional[bool], pydantic.Field(alias="includeSqsMetadata")
|
|
348
348
|
] = False
|
|
349
|
-
r"""
|
|
349
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
350
350
|
|
|
351
351
|
enable_assume_role: Annotated[
|
|
352
352
|
Optional[bool], pydantic.Field(alias="enableAssumeRole")
|
|
@@ -201,7 +201,7 @@ class InputSecurityLakeTypedDict(TypedDict):
|
|
|
201
201
|
skip_on_error: NotRequired[bool]
|
|
202
202
|
r"""Skip files that trigger a processing error. Disabled by default, which allows retries after processing errors."""
|
|
203
203
|
include_sqs_metadata: NotRequired[bool]
|
|
204
|
-
r"""
|
|
204
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
205
205
|
enable_assume_role: NotRequired[bool]
|
|
206
206
|
r"""Use Assume Role credentials to access Amazon S3"""
|
|
207
207
|
assume_role_arn: NotRequired[str]
|
|
@@ -342,7 +342,7 @@ class InputSecurityLake(BaseModel):
|
|
|
342
342
|
include_sqs_metadata: Annotated[
|
|
343
343
|
Optional[bool], pydantic.Field(alias="includeSqsMetadata")
|
|
344
344
|
] = False
|
|
345
|
-
r"""
|
|
345
|
+
r"""Attach SQS notification metadata to a __sqsMetadata field on each event"""
|
|
346
346
|
|
|
347
347
|
enable_assume_role: Annotated[
|
|
348
348
|
Optional[bool], pydantic.Field(alias="enableAssumeRole")
|
|
@@ -0,0 +1,140 @@
|
|
|
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 typing import List, Optional, Union
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PackRequestBodyTags2TypedDict(TypedDict):
|
|
11
|
+
data_type: NotRequired[List[str]]
|
|
12
|
+
domain: NotRequired[List[str]]
|
|
13
|
+
technology: NotRequired[List[str]]
|
|
14
|
+
streamtags: NotRequired[List[str]]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class PackRequestBodyTags2(BaseModel):
|
|
18
|
+
data_type: Annotated[Optional[List[str]], pydantic.Field(alias="dataType")] = None
|
|
19
|
+
|
|
20
|
+
domain: Optional[List[str]] = None
|
|
21
|
+
|
|
22
|
+
technology: Optional[List[str]] = None
|
|
23
|
+
|
|
24
|
+
streamtags: Optional[List[str]] = None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class PackRequestBody2TypedDict(TypedDict):
|
|
28
|
+
source: str
|
|
29
|
+
r"""The source of the pack. If not present, an empty pack will be created"""
|
|
30
|
+
id: NotRequired[str]
|
|
31
|
+
spec: NotRequired[str]
|
|
32
|
+
version: NotRequired[str]
|
|
33
|
+
min_log_stream_version: NotRequired[str]
|
|
34
|
+
display_name: NotRequired[str]
|
|
35
|
+
author: NotRequired[str]
|
|
36
|
+
description: NotRequired[str]
|
|
37
|
+
tags: NotRequired[PackRequestBodyTags2TypedDict]
|
|
38
|
+
allow_custom_functions: NotRequired[bool]
|
|
39
|
+
force: NotRequired[bool]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class PackRequestBody2(BaseModel):
|
|
43
|
+
source: str
|
|
44
|
+
r"""The source of the pack. If not present, an empty pack will be created"""
|
|
45
|
+
|
|
46
|
+
id: Optional[str] = None
|
|
47
|
+
|
|
48
|
+
spec: Optional[str] = None
|
|
49
|
+
|
|
50
|
+
version: Optional[str] = None
|
|
51
|
+
|
|
52
|
+
min_log_stream_version: Annotated[
|
|
53
|
+
Optional[str], pydantic.Field(alias="minLogStreamVersion")
|
|
54
|
+
] = None
|
|
55
|
+
|
|
56
|
+
display_name: Annotated[Optional[str], pydantic.Field(alias="displayName")] = None
|
|
57
|
+
|
|
58
|
+
author: Optional[str] = None
|
|
59
|
+
|
|
60
|
+
description: Optional[str] = None
|
|
61
|
+
|
|
62
|
+
tags: Optional[PackRequestBodyTags2] = None
|
|
63
|
+
|
|
64
|
+
allow_custom_functions: Annotated[
|
|
65
|
+
Optional[bool], pydantic.Field(alias="allowCustomFunctions")
|
|
66
|
+
] = None
|
|
67
|
+
|
|
68
|
+
force: Optional[bool] = None
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class PackRequestBodyTags1TypedDict(TypedDict):
|
|
72
|
+
data_type: NotRequired[List[str]]
|
|
73
|
+
domain: NotRequired[List[str]]
|
|
74
|
+
technology: NotRequired[List[str]]
|
|
75
|
+
streamtags: NotRequired[List[str]]
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class PackRequestBodyTags1(BaseModel):
|
|
79
|
+
data_type: Annotated[Optional[List[str]], pydantic.Field(alias="dataType")] = None
|
|
80
|
+
|
|
81
|
+
domain: Optional[List[str]] = None
|
|
82
|
+
|
|
83
|
+
technology: Optional[List[str]] = None
|
|
84
|
+
|
|
85
|
+
streamtags: Optional[List[str]] = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class PackRequestBody1TypedDict(TypedDict):
|
|
89
|
+
id: str
|
|
90
|
+
spec: NotRequired[str]
|
|
91
|
+
version: NotRequired[str]
|
|
92
|
+
min_log_stream_version: NotRequired[str]
|
|
93
|
+
display_name: NotRequired[str]
|
|
94
|
+
author: NotRequired[str]
|
|
95
|
+
description: NotRequired[str]
|
|
96
|
+
source: NotRequired[str]
|
|
97
|
+
r"""The source of the pack. If not present, an empty pack will be created"""
|
|
98
|
+
tags: NotRequired[PackRequestBodyTags1TypedDict]
|
|
99
|
+
allow_custom_functions: NotRequired[bool]
|
|
100
|
+
force: NotRequired[bool]
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class PackRequestBody1(BaseModel):
|
|
104
|
+
id: str
|
|
105
|
+
|
|
106
|
+
spec: Optional[str] = None
|
|
107
|
+
|
|
108
|
+
version: Optional[str] = None
|
|
109
|
+
|
|
110
|
+
min_log_stream_version: Annotated[
|
|
111
|
+
Optional[str], pydantic.Field(alias="minLogStreamVersion")
|
|
112
|
+
] = None
|
|
113
|
+
|
|
114
|
+
display_name: Annotated[Optional[str], pydantic.Field(alias="displayName")] = None
|
|
115
|
+
|
|
116
|
+
author: Optional[str] = None
|
|
117
|
+
|
|
118
|
+
description: Optional[str] = None
|
|
119
|
+
|
|
120
|
+
source: Optional[str] = None
|
|
121
|
+
r"""The source of the pack. If not present, an empty pack will be created"""
|
|
122
|
+
|
|
123
|
+
tags: Optional[PackRequestBodyTags1] = None
|
|
124
|
+
|
|
125
|
+
allow_custom_functions: Annotated[
|
|
126
|
+
Optional[bool], pydantic.Field(alias="allowCustomFunctions")
|
|
127
|
+
] = None
|
|
128
|
+
|
|
129
|
+
force: Optional[bool] = None
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
PackRequestBodyUnionTypedDict = TypeAliasType(
|
|
133
|
+
"PackRequestBodyUnionTypedDict",
|
|
134
|
+
Union[PackRequestBody1TypedDict, PackRequestBody2TypedDict],
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
PackRequestBodyUnion = TypeAliasType(
|
|
139
|
+
"PackRequestBodyUnion", Union[PackRequestBody1, PackRequestBody2]
|
|
140
|
+
)
|
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"""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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:
|
|
26
|
+
r"""Create or install a Pack
|
|
27
|
+
|
|
28
|
+
Create or install a Pack.
|
|
29
|
+
|
|
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"""
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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:
|
|
118
|
+
r"""Create or install a Pack
|
|
119
|
+
|
|
120
|
+
Create or install a Pack.
|
|
121
|
+
|
|
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
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.37
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -374,7 +374,7 @@ 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
380
|
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/packs/README.md#get) - Get a Pack
|
|
@@ -4,7 +4,7 @@ cribl_control_plane/_hooks/clientcredentials.py,sha256=_scvqxVT_8CDEMWblZ02IQ9A1
|
|
|
4
4
|
cribl_control_plane/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
5
5
|
cribl_control_plane/_hooks/sdkhooks.py,sha256=ggXjME1_Rdv8CVCg1XHqB83eYtbxzKyhXyfQ36Yc1gA,2816
|
|
6
6
|
cribl_control_plane/_hooks/types.py,sha256=Tw_C4zTZm01rW_89VDEUpvQ8KQr1WxN0Gu_-s_fYSPc,2998
|
|
7
|
-
cribl_control_plane/_version.py,sha256=
|
|
7
|
+
cribl_control_plane/_version.py,sha256=WUGjMTLzBm2c8UeY9fXaU-GQZGLrQpSF0tvgx6p-xUk,542
|
|
8
8
|
cribl_control_plane/acl.py,sha256=LMsIZTDCRTXVt73MC_QoJexElGNsicYsBBHfVGzUsG8,8923
|
|
9
9
|
cribl_control_plane/auth_sdk.py,sha256=FQZpAERAlpw6Xk-mkUdalUDSekftklv_Du4i2TLDilk,496
|
|
10
10
|
cribl_control_plane/basesdk.py,sha256=amvvB5iPT7c-L6NLo2Rhu2f7xWaapsa6OfQ37SICXOw,11954
|
|
@@ -27,7 +27,7 @@ cribl_control_plane/health.py,sha256=mDYmC13IE_M9jTVKKBOr5aeZ5QArUURLT1PyPpvn5Ho
|
|
|
27
27
|
cribl_control_plane/hectokens.py,sha256=0EGgGGrM83m1YmTZwkN5S4xFkHQGnw1IZe3y6uMwmLw,19151
|
|
28
28
|
cribl_control_plane/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
29
29
|
cribl_control_plane/lakedatasets.py,sha256=7WYWcjXMzliDW1j3TQlgikc_h54IUq4lsysVy_39l38,46578
|
|
30
|
-
cribl_control_plane/models/__init__.py,sha256=
|
|
30
|
+
cribl_control_plane/models/__init__.py,sha256=Q5imb3AYwvJfVwWLAqMHm73CmeqsmbTm5TG1qNkC-34,358670
|
|
31
31
|
cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
|
|
32
32
|
cribl_control_plane/models/appmode.py,sha256=5xRJz9oP5ah4b6dcay4Q1IbQ9irm6k6x2BrTNysIMY4,300
|
|
33
33
|
cribl_control_plane/models/authtoken.py,sha256=uW0aIs8j14CQzFM2ueY5GIWFulna91cigBWQ3oPlDgY,295
|
|
@@ -113,7 +113,7 @@ cribl_control_plane/models/inputcriblhttp.py,sha256=aN0ncENh1-hRgk9F2-DxzxD5fxyq
|
|
|
113
113
|
cribl_control_plane/models/inputcribllakehttp.py,sha256=FrNAVqueYQ3wDHTwTwTJM2i6OZY72g3ex7yZzTIWlPc,18492
|
|
114
114
|
cribl_control_plane/models/inputcriblmetrics.py,sha256=JL23J9LaC45yqQGPfQJYt9T1YxorsMD1eCu8HEI9rsI,8137
|
|
115
115
|
cribl_control_plane/models/inputcribltcp.py,sha256=Cah0ohHRubWJGuVJpYufwGaTKLTrjMCGhB1QvIO82fE,13124
|
|
116
|
-
cribl_control_plane/models/inputcrowdstrike.py,sha256=
|
|
116
|
+
cribl_control_plane/models/inputcrowdstrike.py,sha256=LPt7e2LAOMxhwL5FJOSqm8YorFkg7D45d4jnPiX8-FY,20239
|
|
117
117
|
cribl_control_plane/models/inputdatadogagent.py,sha256=AoPicjgw6myp1K_G56uAnR-O7ajtmptGwKlsNsPevyk,16892
|
|
118
118
|
cribl_control_plane/models/inputdatagen.py,sha256=bgm6NJZcUje88mFIu6KGmcNGEGmOFGn8JzrUZ7TLepg,7386
|
|
119
119
|
cribl_control_plane/models/inputedgeprometheus.py,sha256=mMbSdxopLC9xeuKoPCje1Xt0HJ4WY23XUKr_QP-GvEk,21730
|
|
@@ -144,9 +144,9 @@ cribl_control_plane/models/inputopentelemetry.py,sha256=lWJ0_ztPq-esioxSbWka1U1e
|
|
|
144
144
|
cribl_control_plane/models/inputprometheus.py,sha256=EVHFBpI7sGABBsrtnM9Rf0Kl56ifUagesSkqrdc6das,19441
|
|
145
145
|
cribl_control_plane/models/inputprometheusrw.py,sha256=BhAljCnyEYN4cLWIUAzU12cUO-EMt1S0u80RK-dNjPY,20864
|
|
146
146
|
cribl_control_plane/models/inputrawudp.py,sha256=rPcPMUL2Wwg84T9Ru3962jmciWzF-wzmqdKgAg_bvFs,9525
|
|
147
|
-
cribl_control_plane/models/inputs3.py,sha256=
|
|
148
|
-
cribl_control_plane/models/inputs3inventory.py,sha256=
|
|
149
|
-
cribl_control_plane/models/inputsecuritylake.py,sha256=
|
|
147
|
+
cribl_control_plane/models/inputs3.py,sha256=9gNXWDtc1B76Zz39O4BvEDtcuOeyyKY4x1gwJl2N9Xk,20669
|
|
148
|
+
cribl_control_plane/models/inputs3inventory.py,sha256=ykP4s6VRbXUeUewXbDLdOfU6_zM0f-iwx1m215WCvVU,22093
|
|
149
|
+
cribl_control_plane/models/inputsecuritylake.py,sha256=BgWwS_ZweFzd_mV7WQbnlYLqsPxilGCZAzH-t9-v-h0,21042
|
|
150
150
|
cribl_control_plane/models/inputsnmp.py,sha256=f4r7_-OC5EQsa__-iuh78F-Qd5fkmEIflN6-giDuHeo,11860
|
|
151
151
|
cribl_control_plane/models/inputsplunk.py,sha256=tBTnIiCGHqCUl7m4dkPdmMIlvadmzQLEJK95ulnUFYU,17278
|
|
152
152
|
cribl_control_plane/models/inputsplunkhec.py,sha256=LDA9Jrn6Fj1oQn72AwcDLXtHM1rwTj2qEh-GQiHCoCU,22440
|
|
@@ -250,7 +250,7 @@ cribl_control_plane/models/outputwebhook.py,sha256=Ljeeb4S4zwyKP-oWdWEWD7FLtBiKT
|
|
|
250
250
|
cribl_control_plane/models/outputxsiam.py,sha256=BaCAvUqmCnFIXv3vmUZJiM2aW2ebNZqJVTdBjWaroZE,19553
|
|
251
251
|
cribl_control_plane/models/packinfo.py,sha256=HMron4as9lO-Upq5w5vQNaTy0WziZ6UueLZhLcpG7zU,1784
|
|
252
252
|
cribl_control_plane/models/packinstallinfo.py,sha256=mrnU3uJDRabfGUHKP5tSS7VJ-PyQ5_gkoc0NUhd3Dms,1863
|
|
253
|
-
cribl_control_plane/models/
|
|
253
|
+
cribl_control_plane/models/packrequestbody_union.py,sha256=EGDpybuIL6SAXT_mHnaFCm6PtEH3dTdTu999-7rmgKA,3897
|
|
254
254
|
cribl_control_plane/models/pipeline.py,sha256=AaoC5euxac-fwul-LM1mNf03hCzrXmHQGZLMrUWuS4g,2130
|
|
255
255
|
cribl_control_plane/models/pipelinefunctionconf.py,sha256=X61RPaoYpa_UZWavnQiNSaXlXqS2EdUK51MQ02IvCeo,1646
|
|
256
256
|
cribl_control_plane/models/productscore.py,sha256=SF_xmbDLnEr0yTjwErGLwuDdn2wFy7mw3fSMyIs_Jwc,203
|
|
@@ -276,7 +276,7 @@ cribl_control_plane/models/updateroutesbyidop.py,sha256=CoEURdSBZ4-pp1WSncdT_oZC
|
|
|
276
276
|
cribl_control_plane/models/useraccesscontrollist.py,sha256=UNM3mdqFByd9GAovAi26z9y-5H15hrKDzw0M-f-Pn2o,483
|
|
277
277
|
cribl_control_plane/models/workertypes.py,sha256=qphL2wkL55CU8V7xBts2lsMMi6IaA7LhUvKL_9xMod4,218
|
|
278
278
|
cribl_control_plane/nodes.py,sha256=015pTP--RfK2YFrMRgBe8ha32Mp_38JGDYdxkGdjtzY,17429
|
|
279
|
-
cribl_control_plane/packs.py,sha256=
|
|
279
|
+
cribl_control_plane/packs.py,sha256=EypDmXaTZpivRSfsoBig1x4QyT-teSzNCMWWoD_n-wA,37877
|
|
280
280
|
cribl_control_plane/pipelines.py,sha256=gHyI9nwt_3cxBQ7gt6EPUPs9NuRC0iA_PoFRAE4Z-V8,35892
|
|
281
281
|
cribl_control_plane/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
282
282
|
cribl_control_plane/routes_sdk.py,sha256=Snb8Dmim7Fm9EsMqbyjuPnXKmqhJ10L_t1bujJUWTyM,31025
|
|
@@ -309,6 +309,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
|
|
|
309
309
|
cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
310
310
|
cribl_control_plane/versions.py,sha256=Wdaxc2wZeEeD12wAh7SQ0RGG9KgwKaWQ7bc8qOQ8oAo,920
|
|
311
311
|
cribl_control_plane/versions_configs.py,sha256=5CKcfN4SzuyFgggrx6O8H_h3GhNyKSbfdVhSkVGZKi4,7284
|
|
312
|
-
cribl_control_plane-0.0.
|
|
313
|
-
cribl_control_plane-0.0.
|
|
314
|
-
cribl_control_plane-0.0.
|
|
312
|
+
cribl_control_plane-0.0.37.dist-info/METADATA,sha256=MFN-LGmnaNRkOvVH-7M9k5B5fjULskNmfGpo-HJK070,38845
|
|
313
|
+
cribl_control_plane-0.0.37.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
314
|
+
cribl_control_plane-0.0.37.dist-info/RECORD,,
|
|
@@ -1,75 +0,0 @@
|
|
|
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 typing import List, Optional
|
|
7
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class PackRequestBodyTagsTypedDict(TypedDict):
|
|
11
|
-
data_type: List[str]
|
|
12
|
-
domain: List[str]
|
|
13
|
-
streamtags: List[str]
|
|
14
|
-
technology: List[str]
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class PackRequestBodyTags(BaseModel):
|
|
18
|
-
data_type: Annotated[List[str], pydantic.Field(alias="dataType")]
|
|
19
|
-
|
|
20
|
-
domain: List[str]
|
|
21
|
-
|
|
22
|
-
streamtags: List[str]
|
|
23
|
-
|
|
24
|
-
technology: List[str]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class PackRequestBodyTypedDict(TypedDict):
|
|
28
|
-
id: str
|
|
29
|
-
source: str
|
|
30
|
-
allow_custom_functions: NotRequired[bool]
|
|
31
|
-
author: NotRequired[str]
|
|
32
|
-
description: NotRequired[str]
|
|
33
|
-
display_name: NotRequired[str]
|
|
34
|
-
exports: NotRequired[List[str]]
|
|
35
|
-
force: NotRequired[bool]
|
|
36
|
-
inputs: NotRequired[float]
|
|
37
|
-
min_log_stream_version: NotRequired[str]
|
|
38
|
-
outputs: NotRequired[float]
|
|
39
|
-
spec: NotRequired[str]
|
|
40
|
-
tags: NotRequired[PackRequestBodyTagsTypedDict]
|
|
41
|
-
version: NotRequired[str]
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class PackRequestBody(BaseModel):
|
|
45
|
-
id: str
|
|
46
|
-
|
|
47
|
-
source: str
|
|
48
|
-
|
|
49
|
-
allow_custom_functions: Annotated[
|
|
50
|
-
Optional[bool], pydantic.Field(alias="allowCustomFunctions")
|
|
51
|
-
] = None
|
|
52
|
-
|
|
53
|
-
author: Optional[str] = None
|
|
54
|
-
|
|
55
|
-
description: Optional[str] = None
|
|
56
|
-
|
|
57
|
-
display_name: Annotated[Optional[str], pydantic.Field(alias="displayName")] = None
|
|
58
|
-
|
|
59
|
-
exports: Optional[List[str]] = None
|
|
60
|
-
|
|
61
|
-
force: Optional[bool] = None
|
|
62
|
-
|
|
63
|
-
inputs: Optional[float] = None
|
|
64
|
-
|
|
65
|
-
min_log_stream_version: Annotated[
|
|
66
|
-
Optional[str], pydantic.Field(alias="minLogStreamVersion")
|
|
67
|
-
] = None
|
|
68
|
-
|
|
69
|
-
outputs: Optional[float] = None
|
|
70
|
-
|
|
71
|
-
spec: Optional[str] = None
|
|
72
|
-
|
|
73
|
-
tags: Optional[PackRequestBodyTags] = None
|
|
74
|
-
|
|
75
|
-
version: Optional[str] = None
|
|
File without changes
|