cribl-control-plane 0.0.23__py3-none-any.whl → 0.0.25__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/auth_sdk.py +4 -4
- cribl_control_plane/{distributed.py → deployments.py} +3 -5
- cribl_control_plane/destinations.py +36 -36
- cribl_control_plane/groups_sdk.py +222 -32
- cribl_control_plane/{health.py → healthinfo.py} +5 -7
- cribl_control_plane/{lake.py → lakedatasets.py} +21 -23
- cribl_control_plane/models/__init__.py +18 -0
- cribl_control_plane/models/createpipelineop.py +2 -2
- cribl_control_plane/models/input.py +4 -4
- cribl_control_plane/models/inputconfluentcloud.py +14 -0
- cribl_control_plane/models/inputgooglepubsub.py +14 -7
- cribl_control_plane/models/inputgrafana.py +14 -0
- cribl_control_plane/models/inputkafka.py +14 -0
- cribl_control_plane/models/inputloki.py +7 -0
- cribl_control_plane/models/inputmsk.py +14 -0
- cribl_control_plane/models/output.py +14 -14
- cribl_control_plane/models/outputconfluentcloud.py +14 -0
- cribl_control_plane/models/outputdls3.py +2 -2
- cribl_control_plane/models/outputgooglecloudstorage.py +2 -2
- cribl_control_plane/models/outputgrafanacloud.py +14 -0
- cribl_control_plane/models/outputkafka.py +14 -0
- cribl_control_plane/models/outputloki.py +14 -0
- cribl_control_plane/models/outputmsk.py +14 -0
- cribl_control_plane/models/outputs3.py +2 -2
- cribl_control_plane/models/updatepipelinebyidop.py +2 -2
- cribl_control_plane/models/updateroutesbyidop.py +2 -2
- cribl_control_plane/nodes.py +379 -0
- cribl_control_plane/packs.py +16 -16
- cribl_control_plane/pipelines.py +30 -30
- cribl_control_plane/routes_sdk.py +10 -10
- cribl_control_plane/sdk.py +15 -19
- cribl_control_plane/sources.py +28 -28
- cribl_control_plane/versioning.py +54 -54
- cribl_control_plane/workers_sdk.py +2 -370
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.25.dist-info}/METADATA +76 -76
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.25.dist-info}/RECORD +38 -38
- cribl_control_plane/teams.py +0 -203
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.25.dist-info}/WHEEL +0 -0
|
@@ -21,7 +21,7 @@ class WorkersSDK(BaseSDK):
|
|
|
21
21
|
timeout_ms: Optional[int] = None,
|
|
22
22
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
23
|
) -> models.GetSummaryWorkersResponse:
|
|
24
|
-
r"""
|
|
24
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
25
25
|
|
|
26
26
|
get worker and edge nodes count
|
|
27
27
|
|
|
@@ -108,7 +108,7 @@ class WorkersSDK(BaseSDK):
|
|
|
108
108
|
timeout_ms: Optional[int] = None,
|
|
109
109
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
110
110
|
) -> models.GetSummaryWorkersResponse:
|
|
111
|
-
r"""
|
|
111
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
112
112
|
|
|
113
113
|
get worker and edge nodes count
|
|
114
114
|
|
|
@@ -185,371 +185,3 @@ class WorkersSDK(BaseSDK):
|
|
|
185
185
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
186
186
|
|
|
187
187
|
raise errors.APIError("Unexpected response received", http_res)
|
|
188
|
-
|
|
189
|
-
def get_workers(
|
|
190
|
-
self,
|
|
191
|
-
*,
|
|
192
|
-
filter_exp: Optional[str] = None,
|
|
193
|
-
sort: Optional[str] = None,
|
|
194
|
-
sort_exp: Optional[str] = None,
|
|
195
|
-
limit: Optional[int] = None,
|
|
196
|
-
offset: Optional[int] = None,
|
|
197
|
-
filter_: Optional[str] = None,
|
|
198
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
199
|
-
server_url: Optional[str] = None,
|
|
200
|
-
timeout_ms: Optional[int] = None,
|
|
201
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
202
|
-
) -> models.GetWorkersResponse:
|
|
203
|
-
r"""get worker and edge nodes
|
|
204
|
-
|
|
205
|
-
get worker and edge nodes
|
|
206
|
-
|
|
207
|
-
:param filter_exp: Filter expression evaluated against nodes
|
|
208
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
209
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
210
|
-
:param limit: Maximum number of nodes to return
|
|
211
|
-
:param offset: Pagination offset
|
|
212
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
213
|
-
:param retries: Override the default retry configuration for this method
|
|
214
|
-
:param server_url: Override the default server URL for this method
|
|
215
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
216
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
217
|
-
"""
|
|
218
|
-
base_url = None
|
|
219
|
-
url_variables = None
|
|
220
|
-
if timeout_ms is None:
|
|
221
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
222
|
-
|
|
223
|
-
if server_url is not None:
|
|
224
|
-
base_url = server_url
|
|
225
|
-
else:
|
|
226
|
-
base_url = self._get_url(base_url, url_variables)
|
|
227
|
-
|
|
228
|
-
request = models.GetWorkersRequest(
|
|
229
|
-
filter_exp=filter_exp,
|
|
230
|
-
sort=sort,
|
|
231
|
-
sort_exp=sort_exp,
|
|
232
|
-
limit=limit,
|
|
233
|
-
offset=offset,
|
|
234
|
-
filter_=filter_,
|
|
235
|
-
)
|
|
236
|
-
|
|
237
|
-
req = self._build_request(
|
|
238
|
-
method="GET",
|
|
239
|
-
path="/master/workers",
|
|
240
|
-
base_url=base_url,
|
|
241
|
-
url_variables=url_variables,
|
|
242
|
-
request=request,
|
|
243
|
-
request_body_required=False,
|
|
244
|
-
request_has_path_params=False,
|
|
245
|
-
request_has_query_params=True,
|
|
246
|
-
user_agent_header="user-agent",
|
|
247
|
-
accept_header_value="application/json",
|
|
248
|
-
http_headers=http_headers,
|
|
249
|
-
security=self.sdk_configuration.security,
|
|
250
|
-
timeout_ms=timeout_ms,
|
|
251
|
-
)
|
|
252
|
-
|
|
253
|
-
if retries == UNSET:
|
|
254
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
255
|
-
retries = self.sdk_configuration.retry_config
|
|
256
|
-
|
|
257
|
-
retry_config = None
|
|
258
|
-
if isinstance(retries, utils.RetryConfig):
|
|
259
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
260
|
-
|
|
261
|
-
http_res = self.do_request(
|
|
262
|
-
hook_ctx=HookContext(
|
|
263
|
-
config=self.sdk_configuration,
|
|
264
|
-
base_url=base_url or "",
|
|
265
|
-
operation_id="getWorkers",
|
|
266
|
-
oauth2_scopes=[],
|
|
267
|
-
security_source=get_security_from_env(
|
|
268
|
-
self.sdk_configuration.security, models.Security
|
|
269
|
-
),
|
|
270
|
-
),
|
|
271
|
-
request=req,
|
|
272
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
273
|
-
retry_config=retry_config,
|
|
274
|
-
)
|
|
275
|
-
|
|
276
|
-
response_data: Any = None
|
|
277
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
278
|
-
return unmarshal_json_response(models.GetWorkersResponse, http_res)
|
|
279
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
280
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
281
|
-
raise errors.Error(response_data, http_res)
|
|
282
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
283
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
284
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
285
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
286
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
287
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
288
|
-
|
|
289
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
290
|
-
|
|
291
|
-
async def get_workers_async(
|
|
292
|
-
self,
|
|
293
|
-
*,
|
|
294
|
-
filter_exp: Optional[str] = None,
|
|
295
|
-
sort: Optional[str] = None,
|
|
296
|
-
sort_exp: Optional[str] = None,
|
|
297
|
-
limit: Optional[int] = None,
|
|
298
|
-
offset: Optional[int] = None,
|
|
299
|
-
filter_: Optional[str] = None,
|
|
300
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
301
|
-
server_url: Optional[str] = None,
|
|
302
|
-
timeout_ms: Optional[int] = None,
|
|
303
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
304
|
-
) -> models.GetWorkersResponse:
|
|
305
|
-
r"""get worker and edge nodes
|
|
306
|
-
|
|
307
|
-
get worker and edge nodes
|
|
308
|
-
|
|
309
|
-
:param filter_exp: Filter expression evaluated against nodes
|
|
310
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
311
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
312
|
-
:param limit: Maximum number of nodes to return
|
|
313
|
-
:param offset: Pagination offset
|
|
314
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
315
|
-
:param retries: Override the default retry configuration for this method
|
|
316
|
-
:param server_url: Override the default server URL for this method
|
|
317
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
318
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
319
|
-
"""
|
|
320
|
-
base_url = None
|
|
321
|
-
url_variables = None
|
|
322
|
-
if timeout_ms is None:
|
|
323
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
324
|
-
|
|
325
|
-
if server_url is not None:
|
|
326
|
-
base_url = server_url
|
|
327
|
-
else:
|
|
328
|
-
base_url = self._get_url(base_url, url_variables)
|
|
329
|
-
|
|
330
|
-
request = models.GetWorkersRequest(
|
|
331
|
-
filter_exp=filter_exp,
|
|
332
|
-
sort=sort,
|
|
333
|
-
sort_exp=sort_exp,
|
|
334
|
-
limit=limit,
|
|
335
|
-
offset=offset,
|
|
336
|
-
filter_=filter_,
|
|
337
|
-
)
|
|
338
|
-
|
|
339
|
-
req = self._build_request_async(
|
|
340
|
-
method="GET",
|
|
341
|
-
path="/master/workers",
|
|
342
|
-
base_url=base_url,
|
|
343
|
-
url_variables=url_variables,
|
|
344
|
-
request=request,
|
|
345
|
-
request_body_required=False,
|
|
346
|
-
request_has_path_params=False,
|
|
347
|
-
request_has_query_params=True,
|
|
348
|
-
user_agent_header="user-agent",
|
|
349
|
-
accept_header_value="application/json",
|
|
350
|
-
http_headers=http_headers,
|
|
351
|
-
security=self.sdk_configuration.security,
|
|
352
|
-
timeout_ms=timeout_ms,
|
|
353
|
-
)
|
|
354
|
-
|
|
355
|
-
if retries == UNSET:
|
|
356
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
357
|
-
retries = self.sdk_configuration.retry_config
|
|
358
|
-
|
|
359
|
-
retry_config = None
|
|
360
|
-
if isinstance(retries, utils.RetryConfig):
|
|
361
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
362
|
-
|
|
363
|
-
http_res = await self.do_request_async(
|
|
364
|
-
hook_ctx=HookContext(
|
|
365
|
-
config=self.sdk_configuration,
|
|
366
|
-
base_url=base_url or "",
|
|
367
|
-
operation_id="getWorkers",
|
|
368
|
-
oauth2_scopes=[],
|
|
369
|
-
security_source=get_security_from_env(
|
|
370
|
-
self.sdk_configuration.security, models.Security
|
|
371
|
-
),
|
|
372
|
-
),
|
|
373
|
-
request=req,
|
|
374
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
375
|
-
retry_config=retry_config,
|
|
376
|
-
)
|
|
377
|
-
|
|
378
|
-
response_data: Any = None
|
|
379
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
380
|
-
return unmarshal_json_response(models.GetWorkersResponse, http_res)
|
|
381
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
382
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
383
|
-
raise errors.Error(response_data, http_res)
|
|
384
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
385
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
386
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
387
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
388
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
389
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
390
|
-
|
|
391
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
392
|
-
|
|
393
|
-
def update_workers_restart(
|
|
394
|
-
self,
|
|
395
|
-
*,
|
|
396
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
397
|
-
server_url: Optional[str] = None,
|
|
398
|
-
timeout_ms: Optional[int] = None,
|
|
399
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
400
|
-
) -> models.UpdateWorkersRestartResponse:
|
|
401
|
-
r"""restarts worker nodes
|
|
402
|
-
|
|
403
|
-
restarts worker nodes
|
|
404
|
-
|
|
405
|
-
:param retries: Override the default retry configuration for this method
|
|
406
|
-
:param server_url: Override the default server URL for this method
|
|
407
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
408
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
409
|
-
"""
|
|
410
|
-
base_url = None
|
|
411
|
-
url_variables = None
|
|
412
|
-
if timeout_ms is None:
|
|
413
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
414
|
-
|
|
415
|
-
if server_url is not None:
|
|
416
|
-
base_url = server_url
|
|
417
|
-
else:
|
|
418
|
-
base_url = self._get_url(base_url, url_variables)
|
|
419
|
-
req = self._build_request(
|
|
420
|
-
method="PATCH",
|
|
421
|
-
path="/master/workers/restart",
|
|
422
|
-
base_url=base_url,
|
|
423
|
-
url_variables=url_variables,
|
|
424
|
-
request=None,
|
|
425
|
-
request_body_required=False,
|
|
426
|
-
request_has_path_params=False,
|
|
427
|
-
request_has_query_params=True,
|
|
428
|
-
user_agent_header="user-agent",
|
|
429
|
-
accept_header_value="application/json",
|
|
430
|
-
http_headers=http_headers,
|
|
431
|
-
security=self.sdk_configuration.security,
|
|
432
|
-
timeout_ms=timeout_ms,
|
|
433
|
-
)
|
|
434
|
-
|
|
435
|
-
if retries == UNSET:
|
|
436
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
437
|
-
retries = self.sdk_configuration.retry_config
|
|
438
|
-
|
|
439
|
-
retry_config = None
|
|
440
|
-
if isinstance(retries, utils.RetryConfig):
|
|
441
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
442
|
-
|
|
443
|
-
http_res = self.do_request(
|
|
444
|
-
hook_ctx=HookContext(
|
|
445
|
-
config=self.sdk_configuration,
|
|
446
|
-
base_url=base_url or "",
|
|
447
|
-
operation_id="updateWorkersRestart",
|
|
448
|
-
oauth2_scopes=[],
|
|
449
|
-
security_source=get_security_from_env(
|
|
450
|
-
self.sdk_configuration.security, models.Security
|
|
451
|
-
),
|
|
452
|
-
),
|
|
453
|
-
request=req,
|
|
454
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
455
|
-
retry_config=retry_config,
|
|
456
|
-
)
|
|
457
|
-
|
|
458
|
-
response_data: Any = None
|
|
459
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
460
|
-
return unmarshal_json_response(
|
|
461
|
-
models.UpdateWorkersRestartResponse, http_res
|
|
462
|
-
)
|
|
463
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
464
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
465
|
-
raise errors.Error(response_data, http_res)
|
|
466
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
467
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
468
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
469
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
470
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
471
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
472
|
-
|
|
473
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
474
|
-
|
|
475
|
-
async def update_workers_restart_async(
|
|
476
|
-
self,
|
|
477
|
-
*,
|
|
478
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
479
|
-
server_url: Optional[str] = None,
|
|
480
|
-
timeout_ms: Optional[int] = None,
|
|
481
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
482
|
-
) -> models.UpdateWorkersRestartResponse:
|
|
483
|
-
r"""restarts worker nodes
|
|
484
|
-
|
|
485
|
-
restarts worker nodes
|
|
486
|
-
|
|
487
|
-
:param retries: Override the default retry configuration for this method
|
|
488
|
-
:param server_url: Override the default server URL for this method
|
|
489
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
490
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
491
|
-
"""
|
|
492
|
-
base_url = None
|
|
493
|
-
url_variables = None
|
|
494
|
-
if timeout_ms is None:
|
|
495
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
496
|
-
|
|
497
|
-
if server_url is not None:
|
|
498
|
-
base_url = server_url
|
|
499
|
-
else:
|
|
500
|
-
base_url = self._get_url(base_url, url_variables)
|
|
501
|
-
req = self._build_request_async(
|
|
502
|
-
method="PATCH",
|
|
503
|
-
path="/master/workers/restart",
|
|
504
|
-
base_url=base_url,
|
|
505
|
-
url_variables=url_variables,
|
|
506
|
-
request=None,
|
|
507
|
-
request_body_required=False,
|
|
508
|
-
request_has_path_params=False,
|
|
509
|
-
request_has_query_params=True,
|
|
510
|
-
user_agent_header="user-agent",
|
|
511
|
-
accept_header_value="application/json",
|
|
512
|
-
http_headers=http_headers,
|
|
513
|
-
security=self.sdk_configuration.security,
|
|
514
|
-
timeout_ms=timeout_ms,
|
|
515
|
-
)
|
|
516
|
-
|
|
517
|
-
if retries == UNSET:
|
|
518
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
519
|
-
retries = self.sdk_configuration.retry_config
|
|
520
|
-
|
|
521
|
-
retry_config = None
|
|
522
|
-
if isinstance(retries, utils.RetryConfig):
|
|
523
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
524
|
-
|
|
525
|
-
http_res = await self.do_request_async(
|
|
526
|
-
hook_ctx=HookContext(
|
|
527
|
-
config=self.sdk_configuration,
|
|
528
|
-
base_url=base_url or "",
|
|
529
|
-
operation_id="updateWorkersRestart",
|
|
530
|
-
oauth2_scopes=[],
|
|
531
|
-
security_source=get_security_from_env(
|
|
532
|
-
self.sdk_configuration.security, models.Security
|
|
533
|
-
),
|
|
534
|
-
),
|
|
535
|
-
request=req,
|
|
536
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
537
|
-
retry_config=retry_config,
|
|
538
|
-
)
|
|
539
|
-
|
|
540
|
-
response_data: Any = None
|
|
541
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
542
|
-
return unmarshal_json_response(
|
|
543
|
-
models.UpdateWorkersRestartResponse, http_res
|
|
544
|
-
)
|
|
545
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
546
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
547
|
-
raise errors.Error(response_data, http_res)
|
|
548
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
549
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
550
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
551
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
552
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
553
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
554
|
-
|
|
555
|
-
raise errors.APIError("Unexpected response received", http_res)
|