cribl-control-plane 0.3.0b2__py3-none-any.whl → 0.3.0b4__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/errors/__init__.py +8 -5
- cribl_control_plane/errors/{healthstatus_error.py → healthserverstatus_error.py} +10 -9
- cribl_control_plane/groups_sdk.py +48 -24
- cribl_control_plane/health.py +22 -16
- cribl_control_plane/models/__init__.py +152 -29
- cribl_control_plane/models/authtoken.py +4 -7
- cribl_control_plane/models/configgroup.py +8 -7
- cribl_control_plane/models/createconfiggroupbyproductop.py +6 -5
- cribl_control_plane/models/createroutesappendbyidop.py +2 -2
- cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
- cribl_control_plane/models/groupcreaterequest.py +152 -0
- cribl_control_plane/models/{healthstatus.py → healthserverstatus.py} +7 -7
- cribl_control_plane/models/input.py +15 -15
- cribl_control_plane/models/inputappscope.py +20 -16
- cribl_control_plane/models/inputconfluentcloud.py +110 -0
- cribl_control_plane/models/inputcriblhttp.py +20 -16
- cribl_control_plane/models/inputcribllakehttp.py +20 -16
- cribl_control_plane/models/inputcribltcp.py +20 -16
- cribl_control_plane/models/inputdatadogagent.py +20 -16
- cribl_control_plane/models/inputedgeprometheus.py +44 -36
- cribl_control_plane/models/inputelastic.py +44 -27
- cribl_control_plane/models/inputeventhub.py +118 -0
- cribl_control_plane/models/inputfile.py +7 -2
- cribl_control_plane/models/inputfirehose.py +20 -16
- cribl_control_plane/models/inputgrafana.py +39 -31
- cribl_control_plane/models/inputhttp.py +20 -16
- cribl_control_plane/models/inputhttpraw.py +20 -16
- cribl_control_plane/models/inputkafka.py +108 -0
- cribl_control_plane/models/inputloki.py +20 -16
- cribl_control_plane/models/inputmetrics.py +20 -16
- cribl_control_plane/models/inputmodeldriventelemetry.py +20 -16
- cribl_control_plane/models/inputopentelemetry.py +19 -15
- cribl_control_plane/models/inputprometheus.py +44 -36
- cribl_control_plane/models/inputprometheusrw.py +20 -16
- cribl_control_plane/models/inputsplunk.py +20 -16
- cribl_control_plane/models/inputsplunkhec.py +19 -15
- cribl_control_plane/models/inputsyslog.py +39 -31
- cribl_control_plane/models/inputsystemmetrics.py +20 -10
- cribl_control_plane/models/inputtcp.py +30 -16
- cribl_control_plane/models/inputtcpjson.py +20 -16
- cribl_control_plane/models/inputwindowsmetrics.py +20 -10
- cribl_control_plane/models/inputwineventlogs.py +14 -0
- cribl_control_plane/models/inputwizwebhook.py +20 -16
- cribl_control_plane/models/inputzscalerhec.py +19 -15
- cribl_control_plane/models/logininfo.py +3 -3
- cribl_control_plane/models/output.py +21 -21
- cribl_control_plane/models/outputazureblob.py +7 -0
- cribl_control_plane/models/outputazuredataexplorer.py +283 -93
- cribl_control_plane/models/outputazureeventhub.py +169 -21
- cribl_control_plane/models/outputazurelogs.py +49 -21
- cribl_control_plane/models/outputchronicle.py +49 -21
- cribl_control_plane/models/outputclickhouse.py +49 -21
- cribl_control_plane/models/outputcloudwatch.py +49 -21
- cribl_control_plane/models/outputconfluentcloud.py +167 -22
- cribl_control_plane/models/outputcriblhttp.py +49 -21
- cribl_control_plane/models/outputcribltcp.py +49 -21
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +50 -22
- cribl_control_plane/models/outputdatabricks.py +7 -0
- cribl_control_plane/models/outputdatadog.py +49 -21
- cribl_control_plane/models/outputdataset.py +49 -21
- cribl_control_plane/models/outputdls3.py +7 -0
- cribl_control_plane/models/outputdynatracehttp.py +49 -21
- cribl_control_plane/models/outputdynatraceotlp.py +49 -21
- cribl_control_plane/models/outputelastic.py +74 -21
- cribl_control_plane/models/outputelasticcloud.py +74 -21
- cribl_control_plane/models/outputfilesystem.py +7 -0
- cribl_control_plane/models/outputgooglechronicle.py +65 -22
- cribl_control_plane/models/outputgooglecloudlogging.py +50 -22
- cribl_control_plane/models/outputgooglecloudstorage.py +7 -0
- cribl_control_plane/models/outputgooglepubsub.py +49 -21
- cribl_control_plane/models/outputgrafanacloud.py +98 -42
- cribl_control_plane/models/outputgraphite.py +49 -21
- cribl_control_plane/models/outputhoneycomb.py +49 -21
- cribl_control_plane/models/outputhumiohec.py +49 -21
- cribl_control_plane/models/outputinfluxdb.py +49 -21
- cribl_control_plane/models/outputkafka.py +162 -19
- cribl_control_plane/models/outputkinesis.py +56 -21
- cribl_control_plane/models/outputloki.py +47 -19
- cribl_control_plane/models/outputminio.py +7 -0
- cribl_control_plane/models/outputmsk.py +54 -19
- cribl_control_plane/models/outputnewrelic.py +49 -21
- cribl_control_plane/models/outputnewrelicevents.py +50 -22
- cribl_control_plane/models/outputopentelemetry.py +49 -21
- cribl_control_plane/models/outputprometheus.py +49 -21
- cribl_control_plane/models/outputs3.py +7 -0
- cribl_control_plane/models/outputsentinel.py +49 -21
- cribl_control_plane/models/outputsentineloneaisiem.py +50 -22
- cribl_control_plane/models/outputservicenow.py +49 -21
- cribl_control_plane/models/outputsignalfx.py +49 -21
- cribl_control_plane/models/outputsns.py +47 -19
- cribl_control_plane/models/outputsplunk.py +49 -21
- cribl_control_plane/models/outputsplunkhec.py +124 -21
- cribl_control_plane/models/outputsplunklb.py +49 -21
- cribl_control_plane/models/outputsqs.py +47 -19
- cribl_control_plane/models/outputstatsd.py +49 -21
- cribl_control_plane/models/outputstatsdext.py +49 -21
- cribl_control_plane/models/outputsumologic.py +49 -21
- cribl_control_plane/models/outputsyslog.py +129 -99
- cribl_control_plane/models/outputtcpjson.py +49 -21
- cribl_control_plane/models/outputwavefront.py +49 -21
- cribl_control_plane/models/outputwebhook.py +49 -21
- cribl_control_plane/models/outputxsiam.py +47 -19
- cribl_control_plane/models/runnablejobcollection.py +12 -8
- cribl_control_plane/models/runnablejobexecutor.py +12 -8
- cribl_control_plane/models/runnablejobscheduledsearch.py +12 -8
- cribl_control_plane/routes_sdk.py +6 -6
- cribl_control_plane/tokens.py +23 -15
- {cribl_control_plane-0.3.0b2.dist-info → cribl_control_plane-0.3.0b4.dist-info}/METADATA +4 -4
- {cribl_control_plane-0.3.0b2.dist-info → cribl_control_plane-0.3.0b4.dist-info}/RECORD +111 -112
- cribl_control_plane/models/error.py +0 -16
- cribl_control_plane/models/gethealthinfoop.py +0 -17
- {cribl_control_plane-0.3.0b2.dist-info → cribl_control_plane-0.3.0b4.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.3.
|
|
7
|
-
__openapi_doc_version__: str = "4.15.0-alpha.
|
|
6
|
+
__version__: str = "0.3.0b4"
|
|
7
|
+
__openapi_doc_version__: str = "4.15.0-alpha.1761865929483-3f85e35a"
|
|
8
8
|
__gen_version__: str = "2.730.5"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.3.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.3.0b4 2.730.5 4.15.0-alpha.1761865929483-3f85e35a cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -9,7 +9,10 @@ import sys
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
10
|
from .apierror import APIError
|
|
11
11
|
from .error import Error, ErrorData
|
|
12
|
-
from .
|
|
12
|
+
from .healthserverstatus_error import (
|
|
13
|
+
HealthServerStatusError,
|
|
14
|
+
HealthServerStatusErrorData,
|
|
15
|
+
)
|
|
13
16
|
from .no_response_error import NoResponseError
|
|
14
17
|
from .responsevalidationerror import ResponseValidationError
|
|
15
18
|
|
|
@@ -18,8 +21,8 @@ __all__ = [
|
|
|
18
21
|
"CriblControlPlaneError",
|
|
19
22
|
"Error",
|
|
20
23
|
"ErrorData",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
24
|
+
"HealthServerStatusError",
|
|
25
|
+
"HealthServerStatusErrorData",
|
|
23
26
|
"NoResponseError",
|
|
24
27
|
"ResponseValidationError",
|
|
25
28
|
]
|
|
@@ -28,8 +31,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
28
31
|
"APIError": ".apierror",
|
|
29
32
|
"Error": ".error",
|
|
30
33
|
"ErrorData": ".error",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
34
|
+
"HealthServerStatusError": ".healthserverstatus_error",
|
|
35
|
+
"HealthServerStatusErrorData": ".healthserverstatus_error",
|
|
33
36
|
"NoResponseError": ".no_response_error",
|
|
34
37
|
"ResponseValidationError": ".responsevalidationerror",
|
|
35
38
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from cribl_control_plane.errors import CriblControlPlaneError
|
|
5
|
-
from cribl_control_plane.models import
|
|
5
|
+
from cribl_control_plane.models import healthserverstatus as models_healthserverstatus
|
|
6
6
|
from cribl_control_plane.types import BaseModel
|
|
7
7
|
from cribl_control_plane.utils import validate_open_enum
|
|
8
8
|
from dataclasses import dataclass, field
|
|
@@ -13,25 +13,26 @@ from typing import Optional
|
|
|
13
13
|
from typing_extensions import Annotated
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class HealthServerStatusErrorData(BaseModel):
|
|
17
|
+
start_time: Annotated[float, pydantic.Field(alias="startTime")]
|
|
18
|
+
|
|
17
19
|
status: Annotated[
|
|
18
|
-
|
|
20
|
+
models_healthserverstatus.Status, PlainValidator(validate_open_enum(False))
|
|
19
21
|
]
|
|
20
22
|
|
|
21
|
-
start_time: Annotated[float, pydantic.Field(alias="startTime")]
|
|
22
|
-
|
|
23
23
|
role: Annotated[
|
|
24
|
-
Optional[
|
|
24
|
+
Optional[models_healthserverstatus.Role],
|
|
25
|
+
PlainValidator(validate_open_enum(False)),
|
|
25
26
|
] = None
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
@dataclass(unsafe_hash=True)
|
|
29
|
-
class
|
|
30
|
-
data:
|
|
30
|
+
class HealthServerStatusError(CriblControlPlaneError):
|
|
31
|
+
data: HealthServerStatusErrorData = field(hash=False)
|
|
31
32
|
|
|
32
33
|
def __init__(
|
|
33
34
|
self,
|
|
34
|
-
data:
|
|
35
|
+
data: HealthServerStatusErrorData,
|
|
35
36
|
raw_response: httpx.Response,
|
|
36
37
|
body: Optional[str] = None,
|
|
37
38
|
):
|
|
@@ -221,11 +221,14 @@ class GroupsSDK(BaseSDK):
|
|
|
221
221
|
cloud: Optional[
|
|
222
222
|
Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
|
|
223
223
|
] = None,
|
|
224
|
-
config_version: Optional[str] = None,
|
|
225
224
|
deploying_worker_count: Optional[float] = None,
|
|
226
225
|
description: Optional[str] = None,
|
|
227
|
-
estimated_ingest_rate: Optional[
|
|
228
|
-
|
|
226
|
+
estimated_ingest_rate: Optional[
|
|
227
|
+
models.GroupCreateRequestEstimatedIngestRate
|
|
228
|
+
] = None,
|
|
229
|
+
git: Optional[
|
|
230
|
+
Union[models.GroupCreateRequestGit, models.GroupCreateRequestGitTypedDict]
|
|
231
|
+
] = None,
|
|
229
232
|
incompatible_worker_count: Optional[float] = None,
|
|
230
233
|
inherits: Optional[str] = None,
|
|
231
234
|
is_fleet: Optional[bool] = None,
|
|
@@ -240,9 +243,10 @@ class GroupsSDK(BaseSDK):
|
|
|
240
243
|
name: Optional[str] = None,
|
|
241
244
|
on_prem: Optional[bool] = None,
|
|
242
245
|
provisioned: Optional[bool] = None,
|
|
246
|
+
source_group_id: Optional[str] = None,
|
|
243
247
|
streamtags: Optional[List[str]] = None,
|
|
244
248
|
tags: Optional[str] = None,
|
|
245
|
-
type_: Optional[models.
|
|
249
|
+
type_: Optional[models.GroupCreateRequestType] = None,
|
|
246
250
|
upgrade_version: Optional[str] = None,
|
|
247
251
|
worker_count: Optional[float] = None,
|
|
248
252
|
worker_remote_access: Optional[bool] = None,
|
|
@@ -258,7 +262,6 @@ class GroupsSDK(BaseSDK):
|
|
|
258
262
|
:param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
259
263
|
:param id:
|
|
260
264
|
:param cloud:
|
|
261
|
-
:param config_version:
|
|
262
265
|
:param deploying_worker_count:
|
|
263
266
|
:param description:
|
|
264
267
|
:param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
|
|
@@ -272,6 +275,7 @@ class GroupsSDK(BaseSDK):
|
|
|
272
275
|
:param name:
|
|
273
276
|
:param on_prem:
|
|
274
277
|
:param provisioned:
|
|
278
|
+
:param source_group_id:
|
|
275
279
|
:param streamtags:
|
|
276
280
|
:param tags:
|
|
277
281
|
:param type:
|
|
@@ -295,15 +299,16 @@ class GroupsSDK(BaseSDK):
|
|
|
295
299
|
|
|
296
300
|
request = models.CreateConfigGroupByProductRequest(
|
|
297
301
|
product=product,
|
|
298
|
-
|
|
302
|
+
group_create_request=models.GroupCreateRequest(
|
|
299
303
|
cloud=utils.get_pydantic_model(
|
|
300
304
|
cloud, Optional[models.ConfigGroupCloud]
|
|
301
305
|
),
|
|
302
|
-
config_version=config_version,
|
|
303
306
|
deploying_worker_count=deploying_worker_count,
|
|
304
307
|
description=description,
|
|
305
308
|
estimated_ingest_rate=estimated_ingest_rate,
|
|
306
|
-
git=utils.get_pydantic_model(
|
|
309
|
+
git=utils.get_pydantic_model(
|
|
310
|
+
git, Optional[models.GroupCreateRequestGit]
|
|
311
|
+
),
|
|
307
312
|
id=id,
|
|
308
313
|
incompatible_worker_count=incompatible_worker_count,
|
|
309
314
|
inherits=inherits,
|
|
@@ -316,6 +321,7 @@ class GroupsSDK(BaseSDK):
|
|
|
316
321
|
name=name,
|
|
317
322
|
on_prem=on_prem,
|
|
318
323
|
provisioned=provisioned,
|
|
324
|
+
source_group_id=source_group_id,
|
|
319
325
|
streamtags=streamtags,
|
|
320
326
|
tags=tags,
|
|
321
327
|
type=type_,
|
|
@@ -339,7 +345,11 @@ class GroupsSDK(BaseSDK):
|
|
|
339
345
|
http_headers=http_headers,
|
|
340
346
|
security=self.sdk_configuration.security,
|
|
341
347
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
342
|
-
request.
|
|
348
|
+
request.group_create_request,
|
|
349
|
+
False,
|
|
350
|
+
False,
|
|
351
|
+
"json",
|
|
352
|
+
models.GroupCreateRequest,
|
|
343
353
|
),
|
|
344
354
|
timeout_ms=timeout_ms,
|
|
345
355
|
)
|
|
@@ -392,11 +402,14 @@ class GroupsSDK(BaseSDK):
|
|
|
392
402
|
cloud: Optional[
|
|
393
403
|
Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
|
|
394
404
|
] = None,
|
|
395
|
-
config_version: Optional[str] = None,
|
|
396
405
|
deploying_worker_count: Optional[float] = None,
|
|
397
406
|
description: Optional[str] = None,
|
|
398
|
-
estimated_ingest_rate: Optional[
|
|
399
|
-
|
|
407
|
+
estimated_ingest_rate: Optional[
|
|
408
|
+
models.GroupCreateRequestEstimatedIngestRate
|
|
409
|
+
] = None,
|
|
410
|
+
git: Optional[
|
|
411
|
+
Union[models.GroupCreateRequestGit, models.GroupCreateRequestGitTypedDict]
|
|
412
|
+
] = None,
|
|
400
413
|
incompatible_worker_count: Optional[float] = None,
|
|
401
414
|
inherits: Optional[str] = None,
|
|
402
415
|
is_fleet: Optional[bool] = None,
|
|
@@ -411,9 +424,10 @@ class GroupsSDK(BaseSDK):
|
|
|
411
424
|
name: Optional[str] = None,
|
|
412
425
|
on_prem: Optional[bool] = None,
|
|
413
426
|
provisioned: Optional[bool] = None,
|
|
427
|
+
source_group_id: Optional[str] = None,
|
|
414
428
|
streamtags: Optional[List[str]] = None,
|
|
415
429
|
tags: Optional[str] = None,
|
|
416
|
-
type_: Optional[models.
|
|
430
|
+
type_: Optional[models.GroupCreateRequestType] = None,
|
|
417
431
|
upgrade_version: Optional[str] = None,
|
|
418
432
|
worker_count: Optional[float] = None,
|
|
419
433
|
worker_remote_access: Optional[bool] = None,
|
|
@@ -429,7 +443,6 @@ class GroupsSDK(BaseSDK):
|
|
|
429
443
|
:param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
430
444
|
:param id:
|
|
431
445
|
:param cloud:
|
|
432
|
-
:param config_version:
|
|
433
446
|
:param deploying_worker_count:
|
|
434
447
|
:param description:
|
|
435
448
|
:param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
|
|
@@ -443,6 +456,7 @@ class GroupsSDK(BaseSDK):
|
|
|
443
456
|
:param name:
|
|
444
457
|
:param on_prem:
|
|
445
458
|
:param provisioned:
|
|
459
|
+
:param source_group_id:
|
|
446
460
|
:param streamtags:
|
|
447
461
|
:param tags:
|
|
448
462
|
:param type:
|
|
@@ -466,15 +480,16 @@ class GroupsSDK(BaseSDK):
|
|
|
466
480
|
|
|
467
481
|
request = models.CreateConfigGroupByProductRequest(
|
|
468
482
|
product=product,
|
|
469
|
-
|
|
483
|
+
group_create_request=models.GroupCreateRequest(
|
|
470
484
|
cloud=utils.get_pydantic_model(
|
|
471
485
|
cloud, Optional[models.ConfigGroupCloud]
|
|
472
486
|
),
|
|
473
|
-
config_version=config_version,
|
|
474
487
|
deploying_worker_count=deploying_worker_count,
|
|
475
488
|
description=description,
|
|
476
489
|
estimated_ingest_rate=estimated_ingest_rate,
|
|
477
|
-
git=utils.get_pydantic_model(
|
|
490
|
+
git=utils.get_pydantic_model(
|
|
491
|
+
git, Optional[models.GroupCreateRequestGit]
|
|
492
|
+
),
|
|
478
493
|
id=id,
|
|
479
494
|
incompatible_worker_count=incompatible_worker_count,
|
|
480
495
|
inherits=inherits,
|
|
@@ -487,6 +502,7 @@ class GroupsSDK(BaseSDK):
|
|
|
487
502
|
name=name,
|
|
488
503
|
on_prem=on_prem,
|
|
489
504
|
provisioned=provisioned,
|
|
505
|
+
source_group_id=source_group_id,
|
|
490
506
|
streamtags=streamtags,
|
|
491
507
|
tags=tags,
|
|
492
508
|
type=type_,
|
|
@@ -510,7 +526,11 @@ class GroupsSDK(BaseSDK):
|
|
|
510
526
|
http_headers=http_headers,
|
|
511
527
|
security=self.sdk_configuration.security,
|
|
512
528
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
513
|
-
request.
|
|
529
|
+
request.group_create_request,
|
|
530
|
+
False,
|
|
531
|
+
False,
|
|
532
|
+
"json",
|
|
533
|
+
models.GroupCreateRequest,
|
|
514
534
|
),
|
|
515
535
|
timeout_ms=timeout_ms,
|
|
516
536
|
)
|
|
@@ -757,8 +777,10 @@ class GroupsSDK(BaseSDK):
|
|
|
757
777
|
config_version: Optional[str] = None,
|
|
758
778
|
deploying_worker_count: Optional[float] = None,
|
|
759
779
|
description: Optional[str] = None,
|
|
760
|
-
estimated_ingest_rate: Optional[models.
|
|
761
|
-
git: Optional[
|
|
780
|
+
estimated_ingest_rate: Optional[models.ConfigGroupEstimatedIngestRate] = None,
|
|
781
|
+
git: Optional[
|
|
782
|
+
Union[models.ConfigGroupGit, models.ConfigGroupGitTypedDict]
|
|
783
|
+
] = None,
|
|
762
784
|
incompatible_worker_count: Optional[float] = None,
|
|
763
785
|
inherits: Optional[str] = None,
|
|
764
786
|
is_fleet: Optional[bool] = None,
|
|
@@ -838,7 +860,7 @@ class GroupsSDK(BaseSDK):
|
|
|
838
860
|
deploying_worker_count=deploying_worker_count,
|
|
839
861
|
description=description,
|
|
840
862
|
estimated_ingest_rate=estimated_ingest_rate,
|
|
841
|
-
git=utils.get_pydantic_model(git, Optional[models.
|
|
863
|
+
git=utils.get_pydantic_model(git, Optional[models.ConfigGroupGit]),
|
|
842
864
|
id=id,
|
|
843
865
|
incompatible_worker_count=incompatible_worker_count,
|
|
844
866
|
inherits=inherits,
|
|
@@ -931,8 +953,10 @@ class GroupsSDK(BaseSDK):
|
|
|
931
953
|
config_version: Optional[str] = None,
|
|
932
954
|
deploying_worker_count: Optional[float] = None,
|
|
933
955
|
description: Optional[str] = None,
|
|
934
|
-
estimated_ingest_rate: Optional[models.
|
|
935
|
-
git: Optional[
|
|
956
|
+
estimated_ingest_rate: Optional[models.ConfigGroupEstimatedIngestRate] = None,
|
|
957
|
+
git: Optional[
|
|
958
|
+
Union[models.ConfigGroupGit, models.ConfigGroupGitTypedDict]
|
|
959
|
+
] = None,
|
|
936
960
|
incompatible_worker_count: Optional[float] = None,
|
|
937
961
|
inherits: Optional[str] = None,
|
|
938
962
|
is_fleet: Optional[bool] = None,
|
|
@@ -1012,7 +1036,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1012
1036
|
deploying_worker_count=deploying_worker_count,
|
|
1013
1037
|
description=description,
|
|
1014
1038
|
estimated_ingest_rate=estimated_ingest_rate,
|
|
1015
|
-
git=utils.get_pydantic_model(git, Optional[models.
|
|
1039
|
+
git=utils.get_pydantic_model(git, Optional[models.ConfigGroupGit]),
|
|
1016
1040
|
id=id,
|
|
1017
1041
|
incompatible_worker_count=incompatible_worker_count,
|
|
1018
1042
|
inherits=inherits,
|
cribl_control_plane/health.py
CHANGED
|
@@ -18,9 +18,11 @@ class Health(BaseSDK):
|
|
|
18
18
|
server_url: Optional[str] = None,
|
|
19
19
|
timeout_ms: Optional[int] = None,
|
|
20
20
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
-
) -> models.
|
|
21
|
+
) -> models.HealthServerStatus:
|
|
22
22
|
r"""Retrieve health status of the server
|
|
23
23
|
|
|
24
|
+
Get the current health status of the server.
|
|
25
|
+
|
|
24
26
|
:param retries: Override the default retry configuration for this method
|
|
25
27
|
:param server_url: Override the default server URL for this method
|
|
26
28
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -62,31 +64,32 @@ class Health(BaseSDK):
|
|
|
62
64
|
hook_ctx=HookContext(
|
|
63
65
|
config=self.sdk_configuration,
|
|
64
66
|
base_url=base_url or "",
|
|
65
|
-
operation_id="
|
|
67
|
+
operation_id="getHealth",
|
|
66
68
|
oauth2_scopes=[],
|
|
67
69
|
security_source=None,
|
|
68
70
|
),
|
|
69
71
|
request=req,
|
|
70
|
-
error_status_codes=["420", "4XX", "5XX"],
|
|
72
|
+
error_status_codes=["420", "4XX", "500", "5XX"],
|
|
71
73
|
retry_config=retry_config,
|
|
72
74
|
)
|
|
73
75
|
|
|
74
76
|
response_data: Any = None
|
|
75
77
|
if utils.match_response(http_res, "200", "application/json"):
|
|
76
|
-
return unmarshal_json_response(models.
|
|
78
|
+
return unmarshal_json_response(models.HealthServerStatus, http_res)
|
|
77
79
|
if utils.match_response(http_res, "420", "application/json"):
|
|
78
80
|
response_data = unmarshal_json_response(
|
|
79
|
-
errors.
|
|
81
|
+
errors.HealthServerStatusErrorData, http_res
|
|
80
82
|
)
|
|
81
|
-
raise errors.
|
|
83
|
+
raise errors.HealthServerStatusError(response_data, http_res)
|
|
84
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
85
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
86
|
+
raise errors.Error(response_data, http_res)
|
|
82
87
|
if utils.match_response(http_res, "4XX", "*"):
|
|
83
88
|
http_res_text = utils.stream_to_text(http_res)
|
|
84
89
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
85
90
|
if utils.match_response(http_res, "5XX", "*"):
|
|
86
91
|
http_res_text = utils.stream_to_text(http_res)
|
|
87
92
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
88
|
-
if utils.match_response(http_res, "default", "application/json"):
|
|
89
|
-
return unmarshal_json_response(models.Error, http_res)
|
|
90
93
|
|
|
91
94
|
raise errors.APIError("Unexpected response received", http_res)
|
|
92
95
|
|
|
@@ -97,9 +100,11 @@ class Health(BaseSDK):
|
|
|
97
100
|
server_url: Optional[str] = None,
|
|
98
101
|
timeout_ms: Optional[int] = None,
|
|
99
102
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
100
|
-
) -> models.
|
|
103
|
+
) -> models.HealthServerStatus:
|
|
101
104
|
r"""Retrieve health status of the server
|
|
102
105
|
|
|
106
|
+
Get the current health status of the server.
|
|
107
|
+
|
|
103
108
|
:param retries: Override the default retry configuration for this method
|
|
104
109
|
:param server_url: Override the default server URL for this method
|
|
105
110
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -141,30 +146,31 @@ class Health(BaseSDK):
|
|
|
141
146
|
hook_ctx=HookContext(
|
|
142
147
|
config=self.sdk_configuration,
|
|
143
148
|
base_url=base_url or "",
|
|
144
|
-
operation_id="
|
|
149
|
+
operation_id="getHealth",
|
|
145
150
|
oauth2_scopes=[],
|
|
146
151
|
security_source=None,
|
|
147
152
|
),
|
|
148
153
|
request=req,
|
|
149
|
-
error_status_codes=["420", "4XX", "5XX"],
|
|
154
|
+
error_status_codes=["420", "4XX", "500", "5XX"],
|
|
150
155
|
retry_config=retry_config,
|
|
151
156
|
)
|
|
152
157
|
|
|
153
158
|
response_data: Any = None
|
|
154
159
|
if utils.match_response(http_res, "200", "application/json"):
|
|
155
|
-
return unmarshal_json_response(models.
|
|
160
|
+
return unmarshal_json_response(models.HealthServerStatus, http_res)
|
|
156
161
|
if utils.match_response(http_res, "420", "application/json"):
|
|
157
162
|
response_data = unmarshal_json_response(
|
|
158
|
-
errors.
|
|
163
|
+
errors.HealthServerStatusErrorData, http_res
|
|
159
164
|
)
|
|
160
|
-
raise errors.
|
|
165
|
+
raise errors.HealthServerStatusError(response_data, http_res)
|
|
166
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
167
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
168
|
+
raise errors.Error(response_data, http_res)
|
|
161
169
|
if utils.match_response(http_res, "4XX", "*"):
|
|
162
170
|
http_res_text = await utils.stream_to_text_async(http_res)
|
|
163
171
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
164
172
|
if utils.match_response(http_res, "5XX", "*"):
|
|
165
173
|
http_res_text = await utils.stream_to_text_async(http_res)
|
|
166
174
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
167
|
-
if utils.match_response(http_res, "default", "application/json"):
|
|
168
|
-
return unmarshal_json_response(models.Error, http_res)
|
|
169
175
|
|
|
170
176
|
raise errors.APIError("Unexpected response received", http_res)
|