cribl-control-plane 0.0.29__py3-none-any.whl → 0.0.31__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/acl.py +30 -20
- cribl_control_plane/commits.py +180 -0
- cribl_control_plane/configs_versions.py +22 -16
- cribl_control_plane/groups_sdk.py +464 -428
- cribl_control_plane/models/__init__.py +206 -169
- cribl_control_plane/models/{createproductsgroupsbyproductop.py → createconfiggroupbyproductop.py} +10 -10
- cribl_control_plane/models/createroutesappendbyidop.py +6 -5
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +53 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +78 -0
- cribl_control_plane/models/{getproductsgroupsaclteamsbyproductandidop.py → getconfiggroupaclteamsbyproductandidop.py} +15 -15
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +65 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +52 -0
- cribl_control_plane/models/{getsummaryworkersop.py → getmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/getversionop.py +46 -0
- cribl_control_plane/models/gitcommitsummary.py +3 -3
- cribl_control_plane/models/gitlogresult.py +33 -0
- cribl_control_plane/models/{getproductsgroupsbyproductop.py → listconfiggroupbyproductop.py} +12 -12
- cribl_control_plane/models/{getworkersop.py → listmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/{updategroupsbyidop.py → updateconfiggroupbyproductandidop.py} +22 -6
- cribl_control_plane/models/{updategroupsdeploybyidop.py → updateconfiggroupdeploybyproductandidop.py} +22 -6
- cribl_control_plane/nodes.py +70 -62
- cribl_control_plane/teams.py +20 -20
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/METADATA +10 -9
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/RECORD +26 -24
- cribl_control_plane/models/deletegroupsbyidop.py +0 -37
- cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
- cribl_control_plane/models/getgroupsbyidop.py +0 -49
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/WHEEL +0 -0
|
@@ -4,25 +4,41 @@ from __future__ import annotations
|
|
|
4
4
|
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
from enum import Enum
|
|
7
8
|
import pydantic
|
|
8
9
|
from typing import List, Optional
|
|
9
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
class
|
|
13
|
+
class UpdateConfigGroupByProductAndIDProduct(str, Enum):
|
|
14
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
15
|
+
|
|
16
|
+
STREAM = "stream"
|
|
17
|
+
EDGE = "edge"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
|
|
21
|
+
product: UpdateConfigGroupByProductAndIDProduct
|
|
22
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
13
23
|
id_param: str
|
|
14
|
-
r"""Group
|
|
24
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
|
|
15
25
|
config_group: ConfigGroupTypedDict
|
|
16
26
|
r"""ConfigGroup object"""
|
|
17
27
|
|
|
18
28
|
|
|
19
|
-
class
|
|
29
|
+
class UpdateConfigGroupByProductAndIDRequest(BaseModel):
|
|
30
|
+
product: Annotated[
|
|
31
|
+
UpdateConfigGroupByProductAndIDProduct,
|
|
32
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
33
|
+
]
|
|
34
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
35
|
+
|
|
20
36
|
id_param: Annotated[
|
|
21
37
|
str,
|
|
22
38
|
pydantic.Field(alias="id"),
|
|
23
39
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
40
|
]
|
|
25
|
-
r"""Group
|
|
41
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
|
|
26
42
|
|
|
27
43
|
config_group: Annotated[
|
|
28
44
|
ConfigGroup,
|
|
@@ -31,7 +47,7 @@ class UpdateGroupsByIDRequest(BaseModel):
|
|
|
31
47
|
r"""ConfigGroup object"""
|
|
32
48
|
|
|
33
49
|
|
|
34
|
-
class
|
|
50
|
+
class UpdateConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
35
51
|
r"""a list of ConfigGroup objects"""
|
|
36
52
|
|
|
37
53
|
count: NotRequired[int]
|
|
@@ -39,7 +55,7 @@ class UpdateGroupsByIDResponseTypedDict(TypedDict):
|
|
|
39
55
|
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
40
56
|
|
|
41
57
|
|
|
42
|
-
class
|
|
58
|
+
class UpdateConfigGroupByProductAndIDResponse(BaseModel):
|
|
43
59
|
r"""a list of ConfigGroup objects"""
|
|
44
60
|
|
|
45
61
|
count: Optional[int] = None
|
|
@@ -5,22 +5,38 @@ from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
|
5
5
|
from .deployrequest import DeployRequest, DeployRequestTypedDict
|
|
6
6
|
from cribl_control_plane.types import BaseModel
|
|
7
7
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
8
|
+
from enum import Enum
|
|
8
9
|
from typing import List, Optional
|
|
9
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
class
|
|
13
|
+
class UpdateConfigGroupDeployByProductAndIDProduct(str, Enum):
|
|
14
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
15
|
+
|
|
16
|
+
STREAM = "stream"
|
|
17
|
+
EDGE = "edge"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
|
|
21
|
+
product: UpdateConfigGroupDeployByProductAndIDProduct
|
|
22
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
13
23
|
id: str
|
|
14
|
-
r"""Group
|
|
24
|
+
r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
|
|
15
25
|
deploy_request: DeployRequestTypedDict
|
|
16
26
|
r"""DeployRequest object"""
|
|
17
27
|
|
|
18
28
|
|
|
19
|
-
class
|
|
29
|
+
class UpdateConfigGroupDeployByProductAndIDRequest(BaseModel):
|
|
30
|
+
product: Annotated[
|
|
31
|
+
UpdateConfigGroupDeployByProductAndIDProduct,
|
|
32
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
33
|
+
]
|
|
34
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
35
|
+
|
|
20
36
|
id: Annotated[
|
|
21
37
|
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
22
38
|
]
|
|
23
|
-
r"""Group
|
|
39
|
+
r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
|
|
24
40
|
|
|
25
41
|
deploy_request: Annotated[
|
|
26
42
|
DeployRequest,
|
|
@@ -29,7 +45,7 @@ class UpdateGroupsDeployByIDRequest(BaseModel):
|
|
|
29
45
|
r"""DeployRequest object"""
|
|
30
46
|
|
|
31
47
|
|
|
32
|
-
class
|
|
48
|
+
class UpdateConfigGroupDeployByProductAndIDResponseTypedDict(TypedDict):
|
|
33
49
|
r"""a list of ConfigGroup objects"""
|
|
34
50
|
|
|
35
51
|
count: NotRequired[int]
|
|
@@ -37,7 +53,7 @@ class UpdateGroupsDeployByIDResponseTypedDict(TypedDict):
|
|
|
37
53
|
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
38
54
|
|
|
39
55
|
|
|
40
|
-
class
|
|
56
|
+
class UpdateConfigGroupDeployByProductAndIDResponse(BaseModel):
|
|
41
57
|
r"""a list of ConfigGroup objects"""
|
|
42
58
|
|
|
43
59
|
count: Optional[int] = None
|
cribl_control_plane/nodes.py
CHANGED
|
@@ -22,20 +22,30 @@ class Nodes(BaseSDK):
|
|
|
22
22
|
def _init_sdks(self):
|
|
23
23
|
self.summaries = Summaries(self.sdk_configuration)
|
|
24
24
|
|
|
25
|
-
def
|
|
25
|
+
def list(
|
|
26
26
|
self,
|
|
27
27
|
*,
|
|
28
28
|
filter_exp: Optional[str] = None,
|
|
29
|
+
sort: Optional[str] = None,
|
|
30
|
+
sort_exp: Optional[str] = None,
|
|
31
|
+
limit: Optional[int] = None,
|
|
32
|
+
offset: Optional[int] = None,
|
|
33
|
+
filter_: Optional[str] = None,
|
|
29
34
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
30
35
|
server_url: Optional[str] = None,
|
|
31
36
|
timeout_ms: Optional[int] = None,
|
|
32
37
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
33
|
-
) -> models.
|
|
34
|
-
r"""Retrieve
|
|
38
|
+
) -> models.ListMasterWorkerEntryResponse:
|
|
39
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
35
40
|
|
|
36
|
-
get worker and edge nodes
|
|
41
|
+
get worker and edge nodes
|
|
37
42
|
|
|
38
43
|
:param filter_exp: Filter expression evaluated against nodes
|
|
44
|
+
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
45
|
+
:param sort_exp: Sorting expression evaluated against nodes
|
|
46
|
+
:param limit: Maximum number of nodes to return
|
|
47
|
+
:param offset: Pagination offset
|
|
48
|
+
:param filter_: Filter object (JSON stringified) to select nodes
|
|
39
49
|
:param retries: Override the default retry configuration for this method
|
|
40
50
|
:param server_url: Override the default server URL for this method
|
|
41
51
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -51,13 +61,18 @@ class Nodes(BaseSDK):
|
|
|
51
61
|
else:
|
|
52
62
|
base_url = self._get_url(base_url, url_variables)
|
|
53
63
|
|
|
54
|
-
request = models.
|
|
64
|
+
request = models.ListMasterWorkerEntryRequest(
|
|
55
65
|
filter_exp=filter_exp,
|
|
66
|
+
sort=sort,
|
|
67
|
+
sort_exp=sort_exp,
|
|
68
|
+
limit=limit,
|
|
69
|
+
offset=offset,
|
|
70
|
+
filter_=filter_,
|
|
56
71
|
)
|
|
57
72
|
|
|
58
73
|
req = self._build_request(
|
|
59
74
|
method="GET",
|
|
60
|
-
path="/master/
|
|
75
|
+
path="/master/workers",
|
|
61
76
|
base_url=base_url,
|
|
62
77
|
url_variables=url_variables,
|
|
63
78
|
request=request,
|
|
@@ -83,7 +98,7 @@ class Nodes(BaseSDK):
|
|
|
83
98
|
hook_ctx=HookContext(
|
|
84
99
|
config=self.sdk_configuration,
|
|
85
100
|
base_url=base_url or "",
|
|
86
|
-
operation_id="
|
|
101
|
+
operation_id="listMasterWorkerEntry",
|
|
87
102
|
oauth2_scopes=[],
|
|
88
103
|
security_source=get_security_from_env(
|
|
89
104
|
self.sdk_configuration.security, models.Security
|
|
@@ -96,7 +111,9 @@ class Nodes(BaseSDK):
|
|
|
96
111
|
|
|
97
112
|
response_data: Any = None
|
|
98
113
|
if utils.match_response(http_res, "200", "application/json"):
|
|
99
|
-
return unmarshal_json_response(
|
|
114
|
+
return unmarshal_json_response(
|
|
115
|
+
models.ListMasterWorkerEntryResponse, http_res
|
|
116
|
+
)
|
|
100
117
|
if utils.match_response(http_res, "500", "application/json"):
|
|
101
118
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
102
119
|
raise errors.Error(response_data, http_res)
|
|
@@ -109,20 +126,30 @@ class Nodes(BaseSDK):
|
|
|
109
126
|
|
|
110
127
|
raise errors.APIError("Unexpected response received", http_res)
|
|
111
128
|
|
|
112
|
-
async def
|
|
129
|
+
async def list_async(
|
|
113
130
|
self,
|
|
114
131
|
*,
|
|
115
132
|
filter_exp: Optional[str] = None,
|
|
133
|
+
sort: Optional[str] = None,
|
|
134
|
+
sort_exp: Optional[str] = None,
|
|
135
|
+
limit: Optional[int] = None,
|
|
136
|
+
offset: Optional[int] = None,
|
|
137
|
+
filter_: Optional[str] = None,
|
|
116
138
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
117
139
|
server_url: Optional[str] = None,
|
|
118
140
|
timeout_ms: Optional[int] = None,
|
|
119
141
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
120
|
-
) -> models.
|
|
121
|
-
r"""Retrieve
|
|
142
|
+
) -> models.ListMasterWorkerEntryResponse:
|
|
143
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
122
144
|
|
|
123
|
-
get worker and edge nodes
|
|
145
|
+
get worker and edge nodes
|
|
124
146
|
|
|
125
147
|
:param filter_exp: Filter expression evaluated against nodes
|
|
148
|
+
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
149
|
+
:param sort_exp: Sorting expression evaluated against nodes
|
|
150
|
+
:param limit: Maximum number of nodes to return
|
|
151
|
+
:param offset: Pagination offset
|
|
152
|
+
:param filter_: Filter object (JSON stringified) to select nodes
|
|
126
153
|
:param retries: Override the default retry configuration for this method
|
|
127
154
|
:param server_url: Override the default server URL for this method
|
|
128
155
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -138,13 +165,18 @@ class Nodes(BaseSDK):
|
|
|
138
165
|
else:
|
|
139
166
|
base_url = self._get_url(base_url, url_variables)
|
|
140
167
|
|
|
141
|
-
request = models.
|
|
168
|
+
request = models.ListMasterWorkerEntryRequest(
|
|
142
169
|
filter_exp=filter_exp,
|
|
170
|
+
sort=sort,
|
|
171
|
+
sort_exp=sort_exp,
|
|
172
|
+
limit=limit,
|
|
173
|
+
offset=offset,
|
|
174
|
+
filter_=filter_,
|
|
143
175
|
)
|
|
144
176
|
|
|
145
177
|
req = self._build_request_async(
|
|
146
178
|
method="GET",
|
|
147
|
-
path="/master/
|
|
179
|
+
path="/master/workers",
|
|
148
180
|
base_url=base_url,
|
|
149
181
|
url_variables=url_variables,
|
|
150
182
|
request=request,
|
|
@@ -170,7 +202,7 @@ class Nodes(BaseSDK):
|
|
|
170
202
|
hook_ctx=HookContext(
|
|
171
203
|
config=self.sdk_configuration,
|
|
172
204
|
base_url=base_url or "",
|
|
173
|
-
operation_id="
|
|
205
|
+
operation_id="listMasterWorkerEntry",
|
|
174
206
|
oauth2_scopes=[],
|
|
175
207
|
security_source=get_security_from_env(
|
|
176
208
|
self.sdk_configuration.security, models.Security
|
|
@@ -183,7 +215,9 @@ class Nodes(BaseSDK):
|
|
|
183
215
|
|
|
184
216
|
response_data: Any = None
|
|
185
217
|
if utils.match_response(http_res, "200", "application/json"):
|
|
186
|
-
return unmarshal_json_response(
|
|
218
|
+
return unmarshal_json_response(
|
|
219
|
+
models.ListMasterWorkerEntryResponse, http_res
|
|
220
|
+
)
|
|
187
221
|
if utils.match_response(http_res, "500", "application/json"):
|
|
188
222
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
189
223
|
raise errors.Error(response_data, http_res)
|
|
@@ -196,30 +230,20 @@ class Nodes(BaseSDK):
|
|
|
196
230
|
|
|
197
231
|
raise errors.APIError("Unexpected response received", http_res)
|
|
198
232
|
|
|
199
|
-
def
|
|
233
|
+
def count(
|
|
200
234
|
self,
|
|
201
235
|
*,
|
|
202
236
|
filter_exp: Optional[str] = None,
|
|
203
|
-
sort: Optional[str] = None,
|
|
204
|
-
sort_exp: Optional[str] = None,
|
|
205
|
-
limit: Optional[int] = None,
|
|
206
|
-
offset: Optional[int] = None,
|
|
207
|
-
filter_: Optional[str] = None,
|
|
208
237
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
209
238
|
server_url: Optional[str] = None,
|
|
210
239
|
timeout_ms: Optional[int] = None,
|
|
211
240
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
212
|
-
) -> models.
|
|
213
|
-
r"""Retrieve
|
|
241
|
+
) -> models.GetMasterWorkerEntryResponse:
|
|
242
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
214
243
|
|
|
215
|
-
get worker and edge nodes
|
|
244
|
+
get worker and edge nodes count
|
|
216
245
|
|
|
217
246
|
:param filter_exp: Filter expression evaluated against nodes
|
|
218
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
219
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
220
|
-
:param limit: Maximum number of nodes to return
|
|
221
|
-
:param offset: Pagination offset
|
|
222
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
223
247
|
:param retries: Override the default retry configuration for this method
|
|
224
248
|
:param server_url: Override the default server URL for this method
|
|
225
249
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -235,18 +259,13 @@ class Nodes(BaseSDK):
|
|
|
235
259
|
else:
|
|
236
260
|
base_url = self._get_url(base_url, url_variables)
|
|
237
261
|
|
|
238
|
-
request = models.
|
|
262
|
+
request = models.GetMasterWorkerEntryRequest(
|
|
239
263
|
filter_exp=filter_exp,
|
|
240
|
-
sort=sort,
|
|
241
|
-
sort_exp=sort_exp,
|
|
242
|
-
limit=limit,
|
|
243
|
-
offset=offset,
|
|
244
|
-
filter_=filter_,
|
|
245
264
|
)
|
|
246
265
|
|
|
247
266
|
req = self._build_request(
|
|
248
267
|
method="GET",
|
|
249
|
-
path="/master/workers",
|
|
268
|
+
path="/master/summary/workers",
|
|
250
269
|
base_url=base_url,
|
|
251
270
|
url_variables=url_variables,
|
|
252
271
|
request=request,
|
|
@@ -272,7 +291,7 @@ class Nodes(BaseSDK):
|
|
|
272
291
|
hook_ctx=HookContext(
|
|
273
292
|
config=self.sdk_configuration,
|
|
274
293
|
base_url=base_url or "",
|
|
275
|
-
operation_id="
|
|
294
|
+
operation_id="getMasterWorkerEntry",
|
|
276
295
|
oauth2_scopes=[],
|
|
277
296
|
security_source=get_security_from_env(
|
|
278
297
|
self.sdk_configuration.security, models.Security
|
|
@@ -285,7 +304,9 @@ class Nodes(BaseSDK):
|
|
|
285
304
|
|
|
286
305
|
response_data: Any = None
|
|
287
306
|
if utils.match_response(http_res, "200", "application/json"):
|
|
288
|
-
return unmarshal_json_response(
|
|
307
|
+
return unmarshal_json_response(
|
|
308
|
+
models.GetMasterWorkerEntryResponse, http_res
|
|
309
|
+
)
|
|
289
310
|
if utils.match_response(http_res, "500", "application/json"):
|
|
290
311
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
291
312
|
raise errors.Error(response_data, http_res)
|
|
@@ -298,30 +319,20 @@ class Nodes(BaseSDK):
|
|
|
298
319
|
|
|
299
320
|
raise errors.APIError("Unexpected response received", http_res)
|
|
300
321
|
|
|
301
|
-
async def
|
|
322
|
+
async def count_async(
|
|
302
323
|
self,
|
|
303
324
|
*,
|
|
304
325
|
filter_exp: Optional[str] = None,
|
|
305
|
-
sort: Optional[str] = None,
|
|
306
|
-
sort_exp: Optional[str] = None,
|
|
307
|
-
limit: Optional[int] = None,
|
|
308
|
-
offset: Optional[int] = None,
|
|
309
|
-
filter_: Optional[str] = None,
|
|
310
326
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
311
327
|
server_url: Optional[str] = None,
|
|
312
328
|
timeout_ms: Optional[int] = None,
|
|
313
329
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
314
|
-
) -> models.
|
|
315
|
-
r"""Retrieve
|
|
330
|
+
) -> models.GetMasterWorkerEntryResponse:
|
|
331
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
316
332
|
|
|
317
|
-
get worker and edge nodes
|
|
333
|
+
get worker and edge nodes count
|
|
318
334
|
|
|
319
335
|
:param filter_exp: Filter expression evaluated against nodes
|
|
320
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
321
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
322
|
-
:param limit: Maximum number of nodes to return
|
|
323
|
-
:param offset: Pagination offset
|
|
324
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
325
336
|
:param retries: Override the default retry configuration for this method
|
|
326
337
|
:param server_url: Override the default server URL for this method
|
|
327
338
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -337,18 +348,13 @@ class Nodes(BaseSDK):
|
|
|
337
348
|
else:
|
|
338
349
|
base_url = self._get_url(base_url, url_variables)
|
|
339
350
|
|
|
340
|
-
request = models.
|
|
351
|
+
request = models.GetMasterWorkerEntryRequest(
|
|
341
352
|
filter_exp=filter_exp,
|
|
342
|
-
sort=sort,
|
|
343
|
-
sort_exp=sort_exp,
|
|
344
|
-
limit=limit,
|
|
345
|
-
offset=offset,
|
|
346
|
-
filter_=filter_,
|
|
347
353
|
)
|
|
348
354
|
|
|
349
355
|
req = self._build_request_async(
|
|
350
356
|
method="GET",
|
|
351
|
-
path="/master/workers",
|
|
357
|
+
path="/master/summary/workers",
|
|
352
358
|
base_url=base_url,
|
|
353
359
|
url_variables=url_variables,
|
|
354
360
|
request=request,
|
|
@@ -374,7 +380,7 @@ class Nodes(BaseSDK):
|
|
|
374
380
|
hook_ctx=HookContext(
|
|
375
381
|
config=self.sdk_configuration,
|
|
376
382
|
base_url=base_url or "",
|
|
377
|
-
operation_id="
|
|
383
|
+
operation_id="getMasterWorkerEntry",
|
|
378
384
|
oauth2_scopes=[],
|
|
379
385
|
security_source=get_security_from_env(
|
|
380
386
|
self.sdk_configuration.security, models.Security
|
|
@@ -387,7 +393,9 @@ class Nodes(BaseSDK):
|
|
|
387
393
|
|
|
388
394
|
response_data: Any = None
|
|
389
395
|
if utils.match_response(http_res, "200", "application/json"):
|
|
390
|
-
return unmarshal_json_response(
|
|
396
|
+
return unmarshal_json_response(
|
|
397
|
+
models.GetMasterWorkerEntryResponse, http_res
|
|
398
|
+
)
|
|
391
399
|
if utils.match_response(http_res, "500", "application/json"):
|
|
392
400
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
393
401
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/teams.py
CHANGED
|
@@ -13,20 +13,20 @@ class Teams(BaseSDK):
|
|
|
13
13
|
def get(
|
|
14
14
|
self,
|
|
15
15
|
*,
|
|
16
|
-
product: models.
|
|
16
|
+
product: models.GetConfigGroupACLTeamsByProductAndIDProduct,
|
|
17
17
|
id: str,
|
|
18
|
-
type_: Optional[models.
|
|
18
|
+
type_: Optional[models.GetConfigGroupACLTeamsByProductAndIDType] = None,
|
|
19
19
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
20
20
|
server_url: Optional[str] = None,
|
|
21
21
|
timeout_ms: Optional[int] = None,
|
|
22
22
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
|
-
) -> models.
|
|
24
|
-
r"""
|
|
23
|
+
) -> models.GetConfigGroupACLTeamsByProductAndIDResponse:
|
|
24
|
+
r"""Get the Access Control List for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
25
25
|
|
|
26
|
-
ACL
|
|
26
|
+
Get the Access Control List (ACL) for teams that have permissions on a Worker Group or Edge Fleet for the specified Cribl product.
|
|
27
27
|
|
|
28
|
-
:param product: Cribl
|
|
29
|
-
:param id: Group
|
|
28
|
+
:param product: Name of the Cribl product that contains the Worker Group or Edge Fleet.
|
|
29
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for.
|
|
30
30
|
:param type: resource type by which to filter access levels
|
|
31
31
|
:param retries: Override the default retry configuration for this method
|
|
32
32
|
:param server_url: Override the default server URL for this method
|
|
@@ -43,7 +43,7 @@ class Teams(BaseSDK):
|
|
|
43
43
|
else:
|
|
44
44
|
base_url = self._get_url(base_url, url_variables)
|
|
45
45
|
|
|
46
|
-
request = models.
|
|
46
|
+
request = models.GetConfigGroupACLTeamsByProductAndIDRequest(
|
|
47
47
|
product=product,
|
|
48
48
|
id=id,
|
|
49
49
|
type=type_,
|
|
@@ -77,7 +77,7 @@ class Teams(BaseSDK):
|
|
|
77
77
|
hook_ctx=HookContext(
|
|
78
78
|
config=self.sdk_configuration,
|
|
79
79
|
base_url=base_url or "",
|
|
80
|
-
operation_id="
|
|
80
|
+
operation_id="getConfigGroupAclTeamsByProductAndId",
|
|
81
81
|
oauth2_scopes=[],
|
|
82
82
|
security_source=get_security_from_env(
|
|
83
83
|
self.sdk_configuration.security, models.Security
|
|
@@ -91,7 +91,7 @@ class Teams(BaseSDK):
|
|
|
91
91
|
response_data: Any = None
|
|
92
92
|
if utils.match_response(http_res, "200", "application/json"):
|
|
93
93
|
return unmarshal_json_response(
|
|
94
|
-
models.
|
|
94
|
+
models.GetConfigGroupACLTeamsByProductAndIDResponse, http_res
|
|
95
95
|
)
|
|
96
96
|
if utils.match_response(http_res, "500", "application/json"):
|
|
97
97
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
@@ -108,20 +108,20 @@ class Teams(BaseSDK):
|
|
|
108
108
|
async def get_async(
|
|
109
109
|
self,
|
|
110
110
|
*,
|
|
111
|
-
product: models.
|
|
111
|
+
product: models.GetConfigGroupACLTeamsByProductAndIDProduct,
|
|
112
112
|
id: str,
|
|
113
|
-
type_: Optional[models.
|
|
113
|
+
type_: Optional[models.GetConfigGroupACLTeamsByProductAndIDType] = None,
|
|
114
114
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
115
115
|
server_url: Optional[str] = None,
|
|
116
116
|
timeout_ms: Optional[int] = None,
|
|
117
117
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
118
|
-
) -> models.
|
|
119
|
-
r"""
|
|
118
|
+
) -> models.GetConfigGroupACLTeamsByProductAndIDResponse:
|
|
119
|
+
r"""Get the Access Control List for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
120
120
|
|
|
121
|
-
ACL
|
|
121
|
+
Get the Access Control List (ACL) for teams that have permissions on a Worker Group or Edge Fleet for the specified Cribl product.
|
|
122
122
|
|
|
123
|
-
:param product: Cribl
|
|
124
|
-
:param id: Group
|
|
123
|
+
:param product: Name of the Cribl product that contains the Worker Group or Edge Fleet.
|
|
124
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for.
|
|
125
125
|
:param type: resource type by which to filter access levels
|
|
126
126
|
:param retries: Override the default retry configuration for this method
|
|
127
127
|
:param server_url: Override the default server URL for this method
|
|
@@ -138,7 +138,7 @@ class Teams(BaseSDK):
|
|
|
138
138
|
else:
|
|
139
139
|
base_url = self._get_url(base_url, url_variables)
|
|
140
140
|
|
|
141
|
-
request = models.
|
|
141
|
+
request = models.GetConfigGroupACLTeamsByProductAndIDRequest(
|
|
142
142
|
product=product,
|
|
143
143
|
id=id,
|
|
144
144
|
type=type_,
|
|
@@ -172,7 +172,7 @@ class Teams(BaseSDK):
|
|
|
172
172
|
hook_ctx=HookContext(
|
|
173
173
|
config=self.sdk_configuration,
|
|
174
174
|
base_url=base_url or "",
|
|
175
|
-
operation_id="
|
|
175
|
+
operation_id="getConfigGroupAclTeamsByProductAndId",
|
|
176
176
|
oauth2_scopes=[],
|
|
177
177
|
security_source=get_security_from_env(
|
|
178
178
|
self.sdk_configuration.security, models.Security
|
|
@@ -186,7 +186,7 @@ class Teams(BaseSDK):
|
|
|
186
186
|
response_data: Any = None
|
|
187
187
|
if utils.match_response(http_res, "200", "application/json"):
|
|
188
188
|
return unmarshal_json_response(
|
|
189
|
-
models.
|
|
189
|
+
models.GetConfigGroupACLTeamsByProductAndIDResponse, http_res
|
|
190
190
|
)
|
|
191
191
|
if utils.match_response(http_res, "500", "application/json"):
|
|
192
192
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.31
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -332,24 +332,24 @@ with CriblControlPlane(
|
|
|
332
332
|
|
|
333
333
|
### [groups](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md)
|
|
334
334
|
|
|
335
|
-
* [create](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#create) - Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
336
335
|
* [list](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#list) - List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
337
|
-
* [
|
|
338
|
-
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get) -
|
|
336
|
+
* [create](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#create) - Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
337
|
+
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get) - Get a Worker Group or Edge Fleet
|
|
339
338
|
* [update](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#update) - Update a Worker Group or Edge Fleet
|
|
339
|
+
* [delete](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#delete) - Delete a Worker Group or Edge Fleet
|
|
340
340
|
* [deploy](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#deploy) - Deploy commits to a Worker Group or Edge Fleet
|
|
341
341
|
|
|
342
342
|
#### [groups.acl](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/acl/README.md)
|
|
343
343
|
|
|
344
|
-
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/acl/README.md#get) -
|
|
344
|
+
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/acl/README.md#get) - Get the Access Control List for a Worker Group or Edge Fleet
|
|
345
345
|
|
|
346
346
|
#### [groups.acl.teams](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/teams/README.md)
|
|
347
347
|
|
|
348
|
-
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/teams/README.md#get) -
|
|
348
|
+
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/teams/README.md#get) - Get the Access Control List for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
349
349
|
|
|
350
350
|
#### [groups.configs.versions](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/configsversions/README.md)
|
|
351
351
|
|
|
352
|
-
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/configsversions/README.md#get) -
|
|
352
|
+
* [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
|
|
353
353
|
|
|
354
354
|
### [health](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/health/README.md)
|
|
355
355
|
|
|
@@ -365,8 +365,8 @@ with CriblControlPlane(
|
|
|
365
365
|
|
|
366
366
|
### [nodes](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/nodes/README.md)
|
|
367
367
|
|
|
368
|
-
* [count](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/nodes/README.md#count) - Retrieve a count of Worker and Edge Nodes
|
|
369
368
|
* [list](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/nodes/README.md#list) - Retrieve detailed metadata for Worker and Edge Nodes
|
|
369
|
+
* [count](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/nodes/README.md#count) - Retrieve a count of Worker and Edge Nodes
|
|
370
370
|
|
|
371
371
|
#### [nodes.summaries](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/summaries/README.md)
|
|
372
372
|
|
|
@@ -419,6 +419,7 @@ with CriblControlPlane(
|
|
|
419
419
|
|
|
420
420
|
* [create](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#create) - Create a new commit for pending changes to the Cribl configuration
|
|
421
421
|
* [diff](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#diff) - Retrieve the diff for a commit
|
|
422
|
+
* [list](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#list) - Get the commit history
|
|
422
423
|
* [push](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#push) - Push a commit from the local repository to the remote repository
|
|
423
424
|
* [revert](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#revert) - Revert a commit in the local repository
|
|
424
425
|
* [get](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/commits/README.md#get) - Retrieve the diff and log message for a commit
|
|
@@ -653,7 +654,7 @@ with CriblControlPlane(
|
|
|
653
654
|
|
|
654
655
|
|
|
655
656
|
**Inherit from [`CriblControlPlaneError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/criblcontrolplaneerror.py)**:
|
|
656
|
-
* [`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
|
|
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 61 methods.*
|
|
657
658
|
* [`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.
|
|
658
659
|
|
|
659
660
|
</details>
|