cribl-control-plane 0.2.1rc2__py3-none-any.whl → 0.2.1rc3__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 +4 -4
- cribl_control_plane/groups_sdk.py +3 -0
- cribl_control_plane/mappings.py +205 -0
- cribl_control_plane/models/__init__.py +25 -6
- cribl_control_plane/models/createadminproductsmappingsactivatebyproductop.py +52 -0
- cribl_control_plane/models/pipeline.py +4 -4
- cribl_control_plane/models/rulesetid.py +13 -0
- cribl_control_plane/pipelines.py +8 -8
- {cribl_control_plane-0.2.1rc2.dist-info → cribl_control_plane-0.2.1rc3.dist-info}/METADATA +6 -2
- {cribl_control_plane-0.2.1rc2.dist-info → cribl_control_plane-0.2.1rc3.dist-info}/RECORD +11 -8
- {cribl_control_plane-0.2.1rc2.dist-info → cribl_control_plane-0.2.1rc3.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.2.
|
|
7
|
-
__openapi_doc_version__: str = "4.15.0-alpha.
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.2.
|
|
6
|
+
__version__: str = "0.2.1rc3"
|
|
7
|
+
__openapi_doc_version__: str = "4.15.0-alpha.1761655977097-59e6cf2e"
|
|
8
|
+
__gen_version__: str = "2.731.4"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.2.1rc3 2.731.4 4.15.0-alpha.1761655977097-59e6cf2e cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -6,6 +6,7 @@ from cribl_control_plane import errors, models, utils
|
|
|
6
6
|
from cribl_control_plane._hooks import HookContext
|
|
7
7
|
from cribl_control_plane.acl import ACL
|
|
8
8
|
from cribl_control_plane.groups_configs import GroupsConfigs
|
|
9
|
+
from cribl_control_plane.mappings import Mappings
|
|
9
10
|
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
10
11
|
from cribl_control_plane.utils import get_security_from_env
|
|
11
12
|
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
@@ -15,6 +16,7 @@ from typing import Any, List, Mapping, Optional, Union
|
|
|
15
16
|
class GroupsSDK(BaseSDK):
|
|
16
17
|
r"""Actions related to Groups"""
|
|
17
18
|
|
|
19
|
+
mappings: Mappings
|
|
18
20
|
configs: GroupsConfigs
|
|
19
21
|
acl: ACL
|
|
20
22
|
|
|
@@ -26,6 +28,7 @@ class GroupsSDK(BaseSDK):
|
|
|
26
28
|
self._init_sdks()
|
|
27
29
|
|
|
28
30
|
def _init_sdks(self):
|
|
31
|
+
self.mappings = Mappings(self.sdk_configuration, parent_ref=self.parent_ref)
|
|
29
32
|
self.configs = GroupsConfigs(self.sdk_configuration, parent_ref=self.parent_ref)
|
|
30
33
|
self.acl = ACL(self.sdk_configuration, parent_ref=self.parent_ref)
|
|
31
34
|
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from .basesdk import BaseSDK
|
|
4
|
+
from cribl_control_plane import errors, models, utils
|
|
5
|
+
from cribl_control_plane._hooks import HookContext
|
|
6
|
+
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
7
|
+
from cribl_control_plane.utils import get_security_from_env
|
|
8
|
+
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
+
from typing import Any, Mapping, Optional
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Mappings(BaseSDK):
|
|
13
|
+
def activate(
|
|
14
|
+
self,
|
|
15
|
+
*,
|
|
16
|
+
product: models.ProductsCore,
|
|
17
|
+
id: str,
|
|
18
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
19
|
+
server_url: Optional[str] = None,
|
|
20
|
+
timeout_ms: Optional[int] = None,
|
|
21
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
22
|
+
) -> models.CreateAdminProductsMappingsActivateByProductResponse:
|
|
23
|
+
r"""Set a Mapping Ruleset as the active configuration for the specified Cribl product
|
|
24
|
+
|
|
25
|
+
Set a specific Mapping Ruleset as the currently active configuration for the specified Cribl product.
|
|
26
|
+
|
|
27
|
+
:param product: Name of the Cribl product to activate the Mapping Ruleset for
|
|
28
|
+
:param id:
|
|
29
|
+
:param retries: Override the default retry configuration for this method
|
|
30
|
+
:param server_url: Override the default server URL for this method
|
|
31
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
32
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
33
|
+
"""
|
|
34
|
+
base_url = None
|
|
35
|
+
url_variables = None
|
|
36
|
+
if timeout_ms is None:
|
|
37
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
38
|
+
|
|
39
|
+
if server_url is not None:
|
|
40
|
+
base_url = server_url
|
|
41
|
+
else:
|
|
42
|
+
base_url = self._get_url(base_url, url_variables)
|
|
43
|
+
|
|
44
|
+
request = models.CreateAdminProductsMappingsActivateByProductRequest(
|
|
45
|
+
product=product,
|
|
46
|
+
ruleset_id=models.RulesetID(
|
|
47
|
+
id=id,
|
|
48
|
+
),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
req = self._build_request(
|
|
52
|
+
method="POST",
|
|
53
|
+
path="/admin/products/{product}/mappings/activate",
|
|
54
|
+
base_url=base_url,
|
|
55
|
+
url_variables=url_variables,
|
|
56
|
+
request=request,
|
|
57
|
+
request_body_required=True,
|
|
58
|
+
request_has_path_params=True,
|
|
59
|
+
request_has_query_params=True,
|
|
60
|
+
user_agent_header="user-agent",
|
|
61
|
+
accept_header_value="application/json",
|
|
62
|
+
http_headers=http_headers,
|
|
63
|
+
security=self.sdk_configuration.security,
|
|
64
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
65
|
+
request.ruleset_id, False, False, "json", models.RulesetID
|
|
66
|
+
),
|
|
67
|
+
timeout_ms=timeout_ms,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
if retries == UNSET:
|
|
71
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
72
|
+
retries = self.sdk_configuration.retry_config
|
|
73
|
+
|
|
74
|
+
retry_config = None
|
|
75
|
+
if isinstance(retries, utils.RetryConfig):
|
|
76
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
77
|
+
|
|
78
|
+
http_res = self.do_request(
|
|
79
|
+
hook_ctx=HookContext(
|
|
80
|
+
config=self.sdk_configuration,
|
|
81
|
+
base_url=base_url or "",
|
|
82
|
+
operation_id="createAdminProductsMappingsActivateByProduct",
|
|
83
|
+
oauth2_scopes=[],
|
|
84
|
+
security_source=get_security_from_env(
|
|
85
|
+
self.sdk_configuration.security, models.Security
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
request=req,
|
|
89
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
90
|
+
retry_config=retry_config,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
response_data: Any = None
|
|
94
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
95
|
+
return unmarshal_json_response(
|
|
96
|
+
models.CreateAdminProductsMappingsActivateByProductResponse, http_res
|
|
97
|
+
)
|
|
98
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
99
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
100
|
+
raise errors.Error(response_data, http_res)
|
|
101
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
102
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
103
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
104
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
105
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
106
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
107
|
+
|
|
108
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
109
|
+
|
|
110
|
+
async def activate_async(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
product: models.ProductsCore,
|
|
114
|
+
id: str,
|
|
115
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
116
|
+
server_url: Optional[str] = None,
|
|
117
|
+
timeout_ms: Optional[int] = None,
|
|
118
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
119
|
+
) -> models.CreateAdminProductsMappingsActivateByProductResponse:
|
|
120
|
+
r"""Set a Mapping Ruleset as the active configuration for the specified Cribl product
|
|
121
|
+
|
|
122
|
+
Set a specific Mapping Ruleset as the currently active configuration for the specified Cribl product.
|
|
123
|
+
|
|
124
|
+
:param product: Name of the Cribl product to activate the Mapping Ruleset for
|
|
125
|
+
:param id:
|
|
126
|
+
:param retries: Override the default retry configuration for this method
|
|
127
|
+
:param server_url: Override the default server URL for this method
|
|
128
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
129
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
130
|
+
"""
|
|
131
|
+
base_url = None
|
|
132
|
+
url_variables = None
|
|
133
|
+
if timeout_ms is None:
|
|
134
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
135
|
+
|
|
136
|
+
if server_url is not None:
|
|
137
|
+
base_url = server_url
|
|
138
|
+
else:
|
|
139
|
+
base_url = self._get_url(base_url, url_variables)
|
|
140
|
+
|
|
141
|
+
request = models.CreateAdminProductsMappingsActivateByProductRequest(
|
|
142
|
+
product=product,
|
|
143
|
+
ruleset_id=models.RulesetID(
|
|
144
|
+
id=id,
|
|
145
|
+
),
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
req = self._build_request_async(
|
|
149
|
+
method="POST",
|
|
150
|
+
path="/admin/products/{product}/mappings/activate",
|
|
151
|
+
base_url=base_url,
|
|
152
|
+
url_variables=url_variables,
|
|
153
|
+
request=request,
|
|
154
|
+
request_body_required=True,
|
|
155
|
+
request_has_path_params=True,
|
|
156
|
+
request_has_query_params=True,
|
|
157
|
+
user_agent_header="user-agent",
|
|
158
|
+
accept_header_value="application/json",
|
|
159
|
+
http_headers=http_headers,
|
|
160
|
+
security=self.sdk_configuration.security,
|
|
161
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
162
|
+
request.ruleset_id, False, False, "json", models.RulesetID
|
|
163
|
+
),
|
|
164
|
+
timeout_ms=timeout_ms,
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
if retries == UNSET:
|
|
168
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
169
|
+
retries = self.sdk_configuration.retry_config
|
|
170
|
+
|
|
171
|
+
retry_config = None
|
|
172
|
+
if isinstance(retries, utils.RetryConfig):
|
|
173
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
174
|
+
|
|
175
|
+
http_res = await self.do_request_async(
|
|
176
|
+
hook_ctx=HookContext(
|
|
177
|
+
config=self.sdk_configuration,
|
|
178
|
+
base_url=base_url or "",
|
|
179
|
+
operation_id="createAdminProductsMappingsActivateByProduct",
|
|
180
|
+
oauth2_scopes=[],
|
|
181
|
+
security_source=get_security_from_env(
|
|
182
|
+
self.sdk_configuration.security, models.Security
|
|
183
|
+
),
|
|
184
|
+
),
|
|
185
|
+
request=req,
|
|
186
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
187
|
+
retry_config=retry_config,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
response_data: Any = None
|
|
191
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
192
|
+
return unmarshal_json_response(
|
|
193
|
+
models.CreateAdminProductsMappingsActivateByProductResponse, http_res
|
|
194
|
+
)
|
|
195
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
196
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
197
|
+
raise errors.Error(response_data, http_res)
|
|
198
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
199
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
200
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
201
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
202
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
203
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
204
|
+
|
|
205
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
@@ -33,6 +33,12 @@ if TYPE_CHECKING:
|
|
|
33
33
|
ConfigGroupLookupsLookupTypedDict,
|
|
34
34
|
ConfigGroupLookupsTypedDict,
|
|
35
35
|
)
|
|
36
|
+
from .createadminproductsmappingsactivatebyproductop import (
|
|
37
|
+
CreateAdminProductsMappingsActivateByProductRequest,
|
|
38
|
+
CreateAdminProductsMappingsActivateByProductRequestTypedDict,
|
|
39
|
+
CreateAdminProductsMappingsActivateByProductResponse,
|
|
40
|
+
CreateAdminProductsMappingsActivateByProductResponseTypedDict,
|
|
41
|
+
)
|
|
36
42
|
from .createconfiggroupbyproductop import (
|
|
37
43
|
CreateConfigGroupByProductRequest,
|
|
38
44
|
CreateConfigGroupByProductRequestTypedDict,
|
|
@@ -3164,9 +3170,9 @@ if TYPE_CHECKING:
|
|
|
3164
3170
|
)
|
|
3165
3171
|
from .packupgraderequest import PackUpgradeRequest, PackUpgradeRequestTypedDict
|
|
3166
3172
|
from .pipeline import (
|
|
3167
|
-
Conf,
|
|
3168
|
-
ConfTypedDict,
|
|
3169
3173
|
Pipeline,
|
|
3174
|
+
PipelineConf,
|
|
3175
|
+
PipelineConfTypedDict,
|
|
3170
3176
|
PipelineGroups,
|
|
3171
3177
|
PipelineGroupsTypedDict,
|
|
3172
3178
|
PipelineTypedDict,
|
|
@@ -3190,6 +3196,7 @@ if TYPE_CHECKING:
|
|
|
3190
3196
|
RoutesTypedDict,
|
|
3191
3197
|
)
|
|
3192
3198
|
from .routesroute import RoutesRoute, RoutesRouteTypedDict
|
|
3199
|
+
from .rulesetid import RulesetID, RulesetIDTypedDict
|
|
3193
3200
|
from .runnablejob import RunnableJob, RunnableJobTypedDict
|
|
3194
3201
|
from .runnablejobcollection import (
|
|
3195
3202
|
CaptureSettings,
|
|
@@ -3378,8 +3385,6 @@ __all__ = [
|
|
|
3378
3385
|
"CommentTypedDict",
|
|
3379
3386
|
"Commit",
|
|
3380
3387
|
"CommitTypedDict",
|
|
3381
|
-
"Conf",
|
|
3382
|
-
"ConfTypedDict",
|
|
3383
3388
|
"Config",
|
|
3384
3389
|
"ConfigGroup",
|
|
3385
3390
|
"ConfigGroupCloud",
|
|
@@ -3397,6 +3402,10 @@ __all__ = [
|
|
|
3397
3402
|
"Container",
|
|
3398
3403
|
"ContainerMode",
|
|
3399
3404
|
"ContainerTypedDict",
|
|
3405
|
+
"CreateAdminProductsMappingsActivateByProductRequest",
|
|
3406
|
+
"CreateAdminProductsMappingsActivateByProductRequestTypedDict",
|
|
3407
|
+
"CreateAdminProductsMappingsActivateByProductResponse",
|
|
3408
|
+
"CreateAdminProductsMappingsActivateByProductResponseTypedDict",
|
|
3400
3409
|
"CreateConfigGroupByProductRequest",
|
|
3401
3410
|
"CreateConfigGroupByProductRequestTypedDict",
|
|
3402
3411
|
"CreateConfigGroupByProductResponse",
|
|
@@ -6118,6 +6127,8 @@ __all__ = [
|
|
|
6118
6127
|
"PackUpgradeRequestTypedDict",
|
|
6119
6128
|
"PayloadFormat",
|
|
6120
6129
|
"Pipeline",
|
|
6130
|
+
"PipelineConf",
|
|
6131
|
+
"PipelineConfTypedDict",
|
|
6121
6132
|
"PipelineFunctionConf",
|
|
6122
6133
|
"PipelineFunctionConfTypedDict",
|
|
6123
6134
|
"PipelineGroups",
|
|
@@ -6158,6 +6169,8 @@ __all__ = [
|
|
|
6158
6169
|
"RoutesRoute",
|
|
6159
6170
|
"RoutesRouteTypedDict",
|
|
6160
6171
|
"RoutesTypedDict",
|
|
6172
|
+
"RulesetID",
|
|
6173
|
+
"RulesetIDTypedDict",
|
|
6161
6174
|
"RunnableJob",
|
|
6162
6175
|
"RunnableJobCollection",
|
|
6163
6176
|
"RunnableJobCollectionInput",
|
|
@@ -6326,6 +6339,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
6326
6339
|
"ConfigGroupLookupsLookup": ".configgrouplookups",
|
|
6327
6340
|
"ConfigGroupLookupsLookupTypedDict": ".configgrouplookups",
|
|
6328
6341
|
"ConfigGroupLookupsTypedDict": ".configgrouplookups",
|
|
6342
|
+
"CreateAdminProductsMappingsActivateByProductRequest": ".createadminproductsmappingsactivatebyproductop",
|
|
6343
|
+
"CreateAdminProductsMappingsActivateByProductRequestTypedDict": ".createadminproductsmappingsactivatebyproductop",
|
|
6344
|
+
"CreateAdminProductsMappingsActivateByProductResponse": ".createadminproductsmappingsactivatebyproductop",
|
|
6345
|
+
"CreateAdminProductsMappingsActivateByProductResponseTypedDict": ".createadminproductsmappingsactivatebyproductop",
|
|
6329
6346
|
"CreateConfigGroupByProductRequest": ".createconfiggroupbyproductop",
|
|
6330
6347
|
"CreateConfigGroupByProductRequestTypedDict": ".createconfiggroupbyproductop",
|
|
6331
6348
|
"CreateConfigGroupByProductResponse": ".createconfiggroupbyproductop",
|
|
@@ -9124,9 +9141,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
9124
9141
|
"PackRequestBodyUnionTypedDict": ".packrequestbody_union",
|
|
9125
9142
|
"PackUpgradeRequest": ".packupgraderequest",
|
|
9126
9143
|
"PackUpgradeRequestTypedDict": ".packupgraderequest",
|
|
9127
|
-
"Conf": ".pipeline",
|
|
9128
|
-
"ConfTypedDict": ".pipeline",
|
|
9129
9144
|
"Pipeline": ".pipeline",
|
|
9145
|
+
"PipelineConf": ".pipeline",
|
|
9146
|
+
"PipelineConfTypedDict": ".pipeline",
|
|
9130
9147
|
"PipelineGroups": ".pipeline",
|
|
9131
9148
|
"PipelineGroupsTypedDict": ".pipeline",
|
|
9132
9149
|
"PipelineTypedDict": ".pipeline",
|
|
@@ -9148,6 +9165,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
9148
9165
|
"RoutesTypedDict": ".routes",
|
|
9149
9166
|
"RoutesRoute": ".routesroute",
|
|
9150
9167
|
"RoutesRouteTypedDict": ".routesroute",
|
|
9168
|
+
"RulesetID": ".rulesetid",
|
|
9169
|
+
"RulesetIDTypedDict": ".rulesetid",
|
|
9151
9170
|
"RunnableJob": ".runnablejob",
|
|
9152
9171
|
"RunnableJobTypedDict": ".runnablejob",
|
|
9153
9172
|
"CaptureSettings": ".runnablejobcollection",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .productscore import ProductsCore
|
|
5
|
+
from .rulesetid import RulesetID, RulesetIDTypedDict
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
from cribl_control_plane.utils import (
|
|
8
|
+
FieldMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
RequestMetadata,
|
|
11
|
+
validate_open_enum,
|
|
12
|
+
)
|
|
13
|
+
from pydantic.functional_validators import PlainValidator
|
|
14
|
+
from typing import List, Optional
|
|
15
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CreateAdminProductsMappingsActivateByProductRequestTypedDict(TypedDict):
|
|
19
|
+
product: ProductsCore
|
|
20
|
+
r"""Name of the Cribl product to activate the Mapping Ruleset for"""
|
|
21
|
+
ruleset_id: RulesetIDTypedDict
|
|
22
|
+
r"""RulesetId object"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class CreateAdminProductsMappingsActivateByProductRequest(BaseModel):
|
|
26
|
+
product: Annotated[
|
|
27
|
+
Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
|
|
28
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
29
|
+
]
|
|
30
|
+
r"""Name of the Cribl product to activate the Mapping Ruleset for"""
|
|
31
|
+
|
|
32
|
+
ruleset_id: Annotated[
|
|
33
|
+
RulesetID, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
34
|
+
]
|
|
35
|
+
r"""RulesetId object"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class CreateAdminProductsMappingsActivateByProductResponseTypedDict(TypedDict):
|
|
39
|
+
r"""The <code>id</code> of the Mapping Ruleset that has been successfully activated"""
|
|
40
|
+
|
|
41
|
+
count: NotRequired[int]
|
|
42
|
+
r"""number of items present in the items array"""
|
|
43
|
+
items: NotRequired[List[RulesetIDTypedDict]]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class CreateAdminProductsMappingsActivateByProductResponse(BaseModel):
|
|
47
|
+
r"""The <code>id</code> of the Mapping Ruleset that has been successfully activated"""
|
|
48
|
+
|
|
49
|
+
count: Optional[int] = None
|
|
50
|
+
r"""number of items present in the items array"""
|
|
51
|
+
|
|
52
|
+
items: Optional[List[RulesetID]] = None
|
|
@@ -26,7 +26,7 @@ class PipelineGroups(BaseModel):
|
|
|
26
26
|
r"""Whether this group is disabled"""
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class PipelineConfTypedDict(TypedDict):
|
|
30
30
|
async_func_timeout: NotRequired[int]
|
|
31
31
|
r"""Time (in ms) to wait for an async function to complete processing of a data item"""
|
|
32
32
|
output: NotRequired[str]
|
|
@@ -39,7 +39,7 @@ class ConfTypedDict(TypedDict):
|
|
|
39
39
|
groups: NotRequired[Dict[str, PipelineGroupsTypedDict]]
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class PipelineConf(BaseModel):
|
|
43
43
|
async_func_timeout: Annotated[
|
|
44
44
|
Optional[int], pydantic.Field(alias="asyncFuncTimeout")
|
|
45
45
|
] = None
|
|
@@ -61,10 +61,10 @@ class Conf(BaseModel):
|
|
|
61
61
|
|
|
62
62
|
class PipelineTypedDict(TypedDict):
|
|
63
63
|
id: str
|
|
64
|
-
conf:
|
|
64
|
+
conf: PipelineConfTypedDict
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
class Pipeline(BaseModel):
|
|
68
68
|
id: str
|
|
69
69
|
|
|
70
|
-
conf:
|
|
70
|
+
conf: PipelineConf
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RulesetIDTypedDict(TypedDict):
|
|
9
|
+
id: str
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RulesetID(BaseModel):
|
|
13
|
+
id: str
|
cribl_control_plane/pipelines.py
CHANGED
|
@@ -176,7 +176,7 @@ class Pipelines(BaseSDK):
|
|
|
176
176
|
self,
|
|
177
177
|
*,
|
|
178
178
|
id: str,
|
|
179
|
-
conf: Union[models.
|
|
179
|
+
conf: Union[models.PipelineConf, models.PipelineConfTypedDict],
|
|
180
180
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
181
181
|
server_url: Optional[str] = None,
|
|
182
182
|
timeout_ms: Optional[int] = None,
|
|
@@ -205,7 +205,7 @@ class Pipelines(BaseSDK):
|
|
|
205
205
|
|
|
206
206
|
request = models.Pipeline(
|
|
207
207
|
id=id,
|
|
208
|
-
conf=utils.get_pydantic_model(conf, models.
|
|
208
|
+
conf=utils.get_pydantic_model(conf, models.PipelineConf),
|
|
209
209
|
)
|
|
210
210
|
|
|
211
211
|
req = self._build_request(
|
|
@@ -269,7 +269,7 @@ class Pipelines(BaseSDK):
|
|
|
269
269
|
self,
|
|
270
270
|
*,
|
|
271
271
|
id: str,
|
|
272
|
-
conf: Union[models.
|
|
272
|
+
conf: Union[models.PipelineConf, models.PipelineConfTypedDict],
|
|
273
273
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
274
274
|
server_url: Optional[str] = None,
|
|
275
275
|
timeout_ms: Optional[int] = None,
|
|
@@ -298,7 +298,7 @@ class Pipelines(BaseSDK):
|
|
|
298
298
|
|
|
299
299
|
request = models.Pipeline(
|
|
300
300
|
id=id,
|
|
301
|
-
conf=utils.get_pydantic_model(conf, models.
|
|
301
|
+
conf=utils.get_pydantic_model(conf, models.PipelineConf),
|
|
302
302
|
)
|
|
303
303
|
|
|
304
304
|
req = self._build_request_async(
|
|
@@ -537,7 +537,7 @@ class Pipelines(BaseSDK):
|
|
|
537
537
|
*,
|
|
538
538
|
id_param: str,
|
|
539
539
|
id: str,
|
|
540
|
-
conf: Union[models.
|
|
540
|
+
conf: Union[models.PipelineConf, models.PipelineConfTypedDict],
|
|
541
541
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
542
542
|
server_url: Optional[str] = None,
|
|
543
543
|
timeout_ms: Optional[int] = None,
|
|
@@ -569,7 +569,7 @@ class Pipelines(BaseSDK):
|
|
|
569
569
|
id_param=id_param,
|
|
570
570
|
pipeline=models.Pipeline(
|
|
571
571
|
id=id,
|
|
572
|
-
conf=utils.get_pydantic_model(conf, models.
|
|
572
|
+
conf=utils.get_pydantic_model(conf, models.PipelineConf),
|
|
573
573
|
),
|
|
574
574
|
)
|
|
575
575
|
|
|
@@ -635,7 +635,7 @@ class Pipelines(BaseSDK):
|
|
|
635
635
|
*,
|
|
636
636
|
id_param: str,
|
|
637
637
|
id: str,
|
|
638
|
-
conf: Union[models.
|
|
638
|
+
conf: Union[models.PipelineConf, models.PipelineConfTypedDict],
|
|
639
639
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
640
640
|
server_url: Optional[str] = None,
|
|
641
641
|
timeout_ms: Optional[int] = None,
|
|
@@ -667,7 +667,7 @@ class Pipelines(BaseSDK):
|
|
|
667
667
|
id_param=id_param,
|
|
668
668
|
pipeline=models.Pipeline(
|
|
669
669
|
id=id,
|
|
670
|
-
conf=utils.get_pydantic_model(conf, models.
|
|
670
|
+
conf=utils.get_pydantic_model(conf, models.PipelineConf),
|
|
671
671
|
),
|
|
672
672
|
)
|
|
673
673
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1rc3
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -359,6 +359,10 @@ with CriblControlPlane(
|
|
|
359
359
|
|
|
360
360
|
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/configsversions/README.md#get) - Get the configuration version for a Worker Group or Edge Fleet
|
|
361
361
|
|
|
362
|
+
#### [groups.mappings](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/mappings/README.md)
|
|
363
|
+
|
|
364
|
+
* [activate](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/mappings/README.md#activate) - Set a Mapping Ruleset as the active configuration for the specified Cribl product
|
|
365
|
+
|
|
362
366
|
### [health](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/health/README.md)
|
|
363
367
|
|
|
364
368
|
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/health/README.md#get) - Retrieve health status of the server
|
|
@@ -691,7 +695,7 @@ with CriblControlPlane(
|
|
|
691
695
|
|
|
692
696
|
|
|
693
697
|
**Inherit from [`CriblControlPlaneError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/criblcontrolplaneerror.py)**:
|
|
694
|
-
* [`HealthServerStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthserverstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of
|
|
698
|
+
* [`HealthServerStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthserverstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of 64 methods.*
|
|
695
699
|
* [`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.
|
|
696
700
|
|
|
697
701
|
</details>
|
|
@@ -4,7 +4,7 @@ cribl_control_plane/_hooks/clientcredentials.py,sha256=CeI19FzRb2V6kiNPgSFGn0CgI
|
|
|
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=wmKObeZUINkiU6kI-yXyA-D1U-OqIDPzeuxCIikl_TE,546
|
|
8
8
|
cribl_control_plane/acl.py,sha256=8lvYOKAli4PzsQhOVaCU6YCwblPMh9jQo04L0r4HJuQ,9025
|
|
9
9
|
cribl_control_plane/auth_sdk.py,sha256=3sjf1VoyWwfhSyuMDQLixgWISSf03BOZwmkiT8g5Ruw,626
|
|
10
10
|
cribl_control_plane/basesdk.py,sha256=y4yIXSNVXLMd0sLS2htBFdTCI3gkPQbIWd-C671kg1I,12249
|
|
@@ -22,12 +22,13 @@ cribl_control_plane/errors/healthserverstatus_error.py,sha256=Si7YixCRbgVykthDXN
|
|
|
22
22
|
cribl_control_plane/errors/no_response_error.py,sha256=DaZukP5ManflzAN-11MtmBitfTIct37sRvfszvfM13o,467
|
|
23
23
|
cribl_control_plane/errors/responsevalidationerror.py,sha256=l8CMARNT46VW1u2GuWlH7Ki_rF8Ulky4J_2fQ7rMwnU,783
|
|
24
24
|
cribl_control_plane/groups_configs.py,sha256=dgi-W0ElnyygaVKXqk5df2ldAAgj9YmXRPCez2hP7yc,695
|
|
25
|
-
cribl_control_plane/groups_sdk.py,sha256=
|
|
25
|
+
cribl_control_plane/groups_sdk.py,sha256=lyLxIaUU-KCDLk0Rm4WiPmn37o1famsk0Ge56DpXObY,63345
|
|
26
26
|
cribl_control_plane/health.py,sha256=P7wMhZOtCesOAJd3rn02fuEub2yv3r_PLWjIGShHC3c,7293
|
|
27
27
|
cribl_control_plane/hectokens.py,sha256=0EGgGGrM83m1YmTZwkN5S4xFkHQGnw1IZe3y6uMwmLw,19151
|
|
28
28
|
cribl_control_plane/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
|
|
29
29
|
cribl_control_plane/lakedatasets.py,sha256=VaacfDeQDMJKibABnkZibVMfOYxeh9ITcHKjM9QDqw8,46676
|
|
30
|
-
cribl_control_plane/
|
|
30
|
+
cribl_control_plane/mappings.py,sha256=dUfJqCNm_PYhnjuxYKRm4sNWhp09H69Cnjfy9aG2qsU,8687
|
|
31
|
+
cribl_control_plane/models/__init__.py,sha256=WVrnFyJOisSPBo0mZ2BmCjGX88VyvU0SRjTqBmOwnP8,394465
|
|
31
32
|
cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
|
|
32
33
|
cribl_control_plane/models/authtoken.py,sha256=sDw4DmWtZk4rvQow02X38SvB-rUSrZZ08t9NwqQcs8Y,443
|
|
33
34
|
cribl_control_plane/models/branchinfo.py,sha256=jCX31O5TMG9jTjqigPvvUiBwpgPpVxHtSuhYrNykXiI,291
|
|
@@ -38,6 +39,7 @@ cribl_control_plane/models/commit.py,sha256=wXQkjOYsffxWURHTrfU9kJ4HF2H65QfD1R9-
|
|
|
38
39
|
cribl_control_plane/models/configgroup.py,sha256=HwKOE-bT2MGlqKpmrmwRl7h8M8QVDHEdgjX9Nl83NmE,4883
|
|
39
40
|
cribl_control_plane/models/configgroupcloud.py,sha256=xme7fTZesBGwpma0huL-EXyPNaDYhP2CeYnvxBRxwU8,1589
|
|
40
41
|
cribl_control_plane/models/configgrouplookups.py,sha256=1z1DlvlVehqfD6hZMXG0XedZTfoCIpYd0cHav45tiRw,830
|
|
42
|
+
cribl_control_plane/models/createadminproductsmappingsactivatebyproductop.py,sha256=PyzVP6tgYHTQRyS6QKzbqjT0Tx7BcfzHtVYQf1ldpMI,1857
|
|
41
43
|
cribl_control_plane/models/createconfiggroupbyproductop.py,sha256=-7gFVL_PXGggrwXZgcirZmKvnO5kN2UfPp-dlFXbcBk,1852
|
|
42
44
|
cribl_control_plane/models/createcribllakedatasetbylakeidop.py,sha256=IVH9RvCw8IM0LCzJuy7_eDX9GbpTUIk-Xp0nFPjn6BQ,1647
|
|
43
45
|
cribl_control_plane/models/createinputhectokenbyidop.py,sha256=1FJEJYLPoVySpBtbiqV6ZCwR4AfkJ8-6Dsdc1DuG2tk,1590
|
|
@@ -263,7 +265,7 @@ cribl_control_plane/models/packinfo.py,sha256=4erAi8M_omyQ87v-5xXHAAn7VS3yXmKeMD
|
|
|
263
265
|
cribl_control_plane/models/packinstallinfo.py,sha256=vXLqvzbSixAilJL-qMxZm9mWX4xiBl5e3SuRS1i0Z2c,2122
|
|
264
266
|
cribl_control_plane/models/packrequestbody_union.py,sha256=EGDpybuIL6SAXT_mHnaFCm6PtEH3dTdTu999-7rmgKA,3897
|
|
265
267
|
cribl_control_plane/models/packupgraderequest.py,sha256=T-d4cha7jj-ez0sJcqRPA5xGS2C9yuZ0KfGtPRulqj0,671
|
|
266
|
-
cribl_control_plane/models/pipeline.py,sha256=
|
|
268
|
+
cribl_control_plane/models/pipeline.py,sha256=luxUru-gTNYGt4lRTsiZkpR2fkzfjg-Wi8g3jRgj3EI,2162
|
|
267
269
|
cribl_control_plane/models/pipelinefunctionconf.py,sha256=X61RPaoYpa_UZWavnQiNSaXlXqS2EdUK51MQ02IvCeo,1646
|
|
268
270
|
cribl_control_plane/models/productscore.py,sha256=iR4tV3eQI39kjOmyXM3RxJTxkisfVdio0p8nfmZ7t90,271
|
|
269
271
|
cribl_control_plane/models/rbacresource.py,sha256=gN2zY3kwlIC-gL_K2N4ORuyTaKuqAttzaZaVftT1qQ4,429
|
|
@@ -271,6 +273,7 @@ cribl_control_plane/models/resourcepolicy.py,sha256=NBWadVgjY9ctVazi9xRkj2bXg-_x
|
|
|
271
273
|
cribl_control_plane/models/routeconf.py,sha256=5QEcL6QMsAfoofsS8OJr8LkgCekLq2P7-byTNcepuHQ,1380
|
|
272
274
|
cribl_control_plane/models/routes.py,sha256=2MRVmc4zvUjQw6moQmRYss_XaoGcaauj2Jpdb3VX8pA,2022
|
|
273
275
|
cribl_control_plane/models/routesroute.py,sha256=7hFUWpgVDBj0N117IFxZRGkFqJntbe4NyBakVyMKsTY,2339
|
|
276
|
+
cribl_control_plane/models/rulesetid.py,sha256=2OtMmOleRawJrvQWAYG070Oa_GmkWgvEsiQOWr9e_iU,289
|
|
274
277
|
cribl_control_plane/models/runnablejob.py,sha256=hyWHdW7SypvxfnwGcpRfXRAt7HgQWEyq3rqsm4TsEWM,812
|
|
275
278
|
cribl_control_plane/models/runnablejobcollection.py,sha256=JdplXfc51CbwCvC5L8lF-cJ83bisHBaGFbK4Eq9C-ZQ,22368
|
|
276
279
|
cribl_control_plane/models/runnablejobexecutor.py,sha256=dlxBPDGFWc00wSeqAFxoAwOvH9artxYHk0Y32eVLpMA,12522
|
|
@@ -294,7 +297,7 @@ cribl_control_plane/models/useraccesscontrollist.py,sha256=UNM3mdqFByd9GAovAi26z
|
|
|
294
297
|
cribl_control_plane/models/workertypes.py,sha256=1AaTkG_g67Vtoh0vYYrYVgRo41PvcK3cRm_G_r-JSgA,286
|
|
295
298
|
cribl_control_plane/nodes.py,sha256=I4AnHbDlX3zNbvDfwgIZ6sv1yQTlkAGaQRoSzwkl0KM,17531
|
|
296
299
|
cribl_control_plane/packs.py,sha256=svZrwbLNPfqPlRC0oh0w5IwQl2DWUHI89N3aTw27AiQ,47651
|
|
297
|
-
cribl_control_plane/pipelines.py,sha256=
|
|
300
|
+
cribl_control_plane/pipelines.py,sha256=6dP5y2imh2lc7J92PpEMe-QlyItCz7Z7nQGtiKZuHho,37042
|
|
298
301
|
cribl_control_plane/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
299
302
|
cribl_control_plane/routes_sdk.py,sha256=8rOo8OyPDybbB-YjuqsjwLfXPy1WCjHBduv7FkWUdb0,32365
|
|
300
303
|
cribl_control_plane/samples.py,sha256=41bJGkB-lxj8WmeI-418PwgMT2KPKqlINp26CKwt0Yk,16067
|
|
@@ -326,6 +329,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
|
|
|
326
329
|
cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
327
330
|
cribl_control_plane/versions.py,sha256=4xdTYbM84Xyjr5qkixqNpgn2q6V8aXVYXkEPDU2Ele0,1156
|
|
328
331
|
cribl_control_plane/versions_configs.py,sha256=5CKcfN4SzuyFgggrx6O8H_h3GhNyKSbfdVhSkVGZKi4,7284
|
|
329
|
-
cribl_control_plane-0.2.
|
|
330
|
-
cribl_control_plane-0.2.
|
|
331
|
-
cribl_control_plane-0.2.
|
|
332
|
+
cribl_control_plane-0.2.1rc3.dist-info/METADATA,sha256=GaG4myLkXiRoubIit9ebn63VBYb468Jh09S1GecfYqo,40937
|
|
333
|
+
cribl_control_plane-0.2.1rc3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
334
|
+
cribl_control_plane-0.2.1rc3.dist-info/RECORD,,
|
|
File without changes
|