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