cribl-control-plane 0.0.18__py3-none-any.whl → 0.0.19__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/distributed.py +187 -0
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_sdk.py +1291 -0
- cribl_control_plane/lake.py +479 -0
- cribl_control_plane/models/__init__.py +602 -3
- cribl_control_plane/models/appmode.py +13 -0
- cribl_control_plane/models/cacheconnection.py +44 -0
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +12 -0
- cribl_control_plane/models/cloudprovider.py +9 -0
- cribl_control_plane/models/commit.py +30 -0
- cribl_control_plane/models/configgroup.py +116 -0
- cribl_control_plane/models/configgroupcloud.py +48 -0
- cribl_control_plane/models/configgrouplookups.py +34 -0
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +48 -0
- cribl_control_plane/models/createpacksop.py +24 -0
- cribl_control_plane/models/createproductsgroupsbyproductop.py +54 -0
- cribl_control_plane/models/cribllakedataset.py +74 -0
- cribl_control_plane/models/datasetmetadata.py +39 -0
- cribl_control_plane/models/datasetmetadataruninfo.py +28 -0
- cribl_control_plane/models/deployrequest.py +18 -0
- cribl_control_plane/models/deployrequestlookups.py +28 -0
- cribl_control_plane/models/distributedsummary.py +63 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
- cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
- cribl_control_plane/models/getgroupsbyidop.py +49 -0
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
- cribl_control_plane/models/getpacksop.py +40 -0
- cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
- cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
- cribl_control_plane/models/getsummaryop.py +46 -0
- cribl_control_plane/models/getsummaryworkersop.py +39 -0
- cribl_control_plane/models/getworkersop.py +82 -0
- cribl_control_plane/models/hbcriblinfo.py +80 -0
- cribl_control_plane/models/hbleaderinfo.py +23 -0
- cribl_control_plane/models/healthstatus.py +3 -3
- cribl_control_plane/models/heartbeatmetadata.py +122 -0
- cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
- cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
- cribl_control_plane/models/lookupversions.py +13 -0
- cribl_control_plane/models/masterworkerentry.py +84 -0
- cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
- cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
- cribl_control_plane/models/nodeprovidedinfo.py +184 -0
- cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
- cribl_control_plane/models/nodeupgradestate.py +11 -0
- cribl_control_plane/models/nodeupgradestatus.py +30 -0
- cribl_control_plane/models/packinfo.py +73 -0
- cribl_control_plane/models/packinstallinfo.py +76 -0
- cribl_control_plane/models/packrequestbody.py +75 -0
- cribl_control_plane/models/rbacresource.py +14 -0
- cribl_control_plane/models/resourcepolicy.py +24 -0
- cribl_control_plane/models/restartresponse.py +26 -0
- cribl_control_plane/models/teamaccesscontrollist.py +18 -0
- cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
- cribl_control_plane/models/updatepacksop.py +37 -0
- cribl_control_plane/models/updateworkersrestartop.py +24 -0
- cribl_control_plane/models/useraccesscontrollist.py +18 -0
- cribl_control_plane/packs.py +623 -0
- cribl_control_plane/sdk.py +24 -0
- cribl_control_plane/teams.py +203 -0
- cribl_control_plane/workers_sdk.py +555 -0
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/METADATA +42 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/RECORD +65 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DistributedSummaryGroupsTypedDict(TypedDict):
|
|
10
|
+
count: float
|
|
11
|
+
destinations: float
|
|
12
|
+
pipelines: float
|
|
13
|
+
routes: float
|
|
14
|
+
sources: float
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class DistributedSummaryGroups(BaseModel):
|
|
18
|
+
count: float
|
|
19
|
+
|
|
20
|
+
destinations: float
|
|
21
|
+
|
|
22
|
+
pipelines: float
|
|
23
|
+
|
|
24
|
+
routes: float
|
|
25
|
+
|
|
26
|
+
sources: float
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class DistributedSummaryWorkersTypedDict(TypedDict):
|
|
30
|
+
alive: float
|
|
31
|
+
conf_versions: float
|
|
32
|
+
count: float
|
|
33
|
+
disconnected_count: float
|
|
34
|
+
groups: float
|
|
35
|
+
software_versions: float
|
|
36
|
+
unhealthy: float
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DistributedSummaryWorkers(BaseModel):
|
|
40
|
+
alive: float
|
|
41
|
+
|
|
42
|
+
conf_versions: Annotated[float, pydantic.Field(alias="confVersions")]
|
|
43
|
+
|
|
44
|
+
count: float
|
|
45
|
+
|
|
46
|
+
disconnected_count: Annotated[float, pydantic.Field(alias="disconnectedCount")]
|
|
47
|
+
|
|
48
|
+
groups: float
|
|
49
|
+
|
|
50
|
+
software_versions: Annotated[float, pydantic.Field(alias="softwareVersions")]
|
|
51
|
+
|
|
52
|
+
unhealthy: float
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class DistributedSummaryTypedDict(TypedDict):
|
|
56
|
+
groups: DistributedSummaryGroupsTypedDict
|
|
57
|
+
workers: DistributedSummaryWorkersTypedDict
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class DistributedSummary(BaseModel):
|
|
61
|
+
groups: DistributedSummaryGroups
|
|
62
|
+
|
|
63
|
+
workers: DistributedSummaryWorkers
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cribllakedataset import CriblLakeDataset, CriblLakeDatasetTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetCriblLakeDatasetByLakeIDRequestTypedDict(TypedDict):
|
|
13
|
+
lake_id: str
|
|
14
|
+
r"""lake id that contains the Datasets"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetCriblLakeDatasetByLakeIDRequest(BaseModel):
|
|
18
|
+
lake_id: Annotated[
|
|
19
|
+
str,
|
|
20
|
+
pydantic.Field(alias="lakeId"),
|
|
21
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
22
|
+
]
|
|
23
|
+
r"""lake id that contains the Datasets"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetCriblLakeDatasetByLakeIDResponseTypedDict(TypedDict):
|
|
27
|
+
r"""a list of CriblLakeDataset objects"""
|
|
28
|
+
|
|
29
|
+
count: NotRequired[int]
|
|
30
|
+
r"""number of items present in the items array"""
|
|
31
|
+
items: NotRequired[List[CriblLakeDatasetTypedDict]]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class GetCriblLakeDatasetByLakeIDResponse(BaseModel):
|
|
35
|
+
r"""a list of CriblLakeDataset objects"""
|
|
36
|
+
|
|
37
|
+
count: Optional[int] = None
|
|
38
|
+
r"""number of items present in the items array"""
|
|
39
|
+
|
|
40
|
+
items: Optional[List[CriblLakeDataset]] = None
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .useraccesscontrollist import UserAccessControlList, UserAccessControlListTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
QueryParamMetadata,
|
|
10
|
+
)
|
|
11
|
+
from enum import Enum
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetGroupsACLByIDType(str, Enum):
|
|
17
|
+
r"""resource type by which to filter access levels"""
|
|
18
|
+
|
|
19
|
+
GROUPS = "groups"
|
|
20
|
+
DATASETS = "datasets"
|
|
21
|
+
DATASET_PROVIDERS = "dataset-providers"
|
|
22
|
+
PROJECTS = "projects"
|
|
23
|
+
DASHBOARDS = "dashboards"
|
|
24
|
+
MACROS = "macros"
|
|
25
|
+
NOTEBOOKS = "notebooks"
|
|
26
|
+
INSIGHTS = "insights"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class GetGroupsACLByIDRequestTypedDict(TypedDict):
|
|
30
|
+
id: str
|
|
31
|
+
r"""Group id"""
|
|
32
|
+
type: NotRequired[GetGroupsACLByIDType]
|
|
33
|
+
r"""resource type by which to filter access levels"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class GetGroupsACLByIDRequest(BaseModel):
|
|
37
|
+
id: Annotated[
|
|
38
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
39
|
+
]
|
|
40
|
+
r"""Group id"""
|
|
41
|
+
|
|
42
|
+
type: Annotated[
|
|
43
|
+
Optional[GetGroupsACLByIDType],
|
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
45
|
+
] = None
|
|
46
|
+
r"""resource type by which to filter access levels"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class GetGroupsACLByIDResponseTypedDict(TypedDict):
|
|
50
|
+
r"""a list of UserAccessControlList objects"""
|
|
51
|
+
|
|
52
|
+
count: NotRequired[int]
|
|
53
|
+
r"""number of items present in the items array"""
|
|
54
|
+
items: NotRequired[List[UserAccessControlListTypedDict]]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class GetGroupsACLByIDResponse(BaseModel):
|
|
58
|
+
r"""a list of UserAccessControlList objects"""
|
|
59
|
+
|
|
60
|
+
count: Optional[int] = None
|
|
61
|
+
r"""number of items present in the items array"""
|
|
62
|
+
|
|
63
|
+
items: Optional[List[UserAccessControlList]] = None
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
QueryParamMetadata,
|
|
10
|
+
)
|
|
11
|
+
from typing import List, Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetGroupsByIDRequestTypedDict(TypedDict):
|
|
16
|
+
id: str
|
|
17
|
+
r"""Group id"""
|
|
18
|
+
fields: NotRequired[str]
|
|
19
|
+
r"""fields to add to results: git.commit, git.localChanges, git.log"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class GetGroupsByIDRequest(BaseModel):
|
|
23
|
+
id: Annotated[
|
|
24
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
25
|
+
]
|
|
26
|
+
r"""Group id"""
|
|
27
|
+
|
|
28
|
+
fields: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
|
+
] = None
|
|
32
|
+
r"""fields to add to results: git.commit, git.localChanges, git.log"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class GetGroupsByIDResponseTypedDict(TypedDict):
|
|
36
|
+
r"""a list of ConfigGroup objects"""
|
|
37
|
+
|
|
38
|
+
count: NotRequired[int]
|
|
39
|
+
r"""number of items present in the items array"""
|
|
40
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class GetGroupsByIDResponse(BaseModel):
|
|
44
|
+
r"""a list of ConfigGroup objects"""
|
|
45
|
+
|
|
46
|
+
count: Optional[int] = None
|
|
47
|
+
r"""number of items present in the items array"""
|
|
48
|
+
|
|
49
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetGroupsConfigVersionByIDRequestTypedDict(TypedDict):
|
|
11
|
+
id: str
|
|
12
|
+
r"""Group ID"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetGroupsConfigVersionByIDRequest(BaseModel):
|
|
16
|
+
id: Annotated[
|
|
17
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
18
|
+
]
|
|
19
|
+
r"""Group ID"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class GetGroupsConfigVersionByIDResponseTypedDict(TypedDict):
|
|
23
|
+
r"""a list of string objects"""
|
|
24
|
+
|
|
25
|
+
count: NotRequired[int]
|
|
26
|
+
r"""number of items present in the items array"""
|
|
27
|
+
items: NotRequired[List[str]]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class GetGroupsConfigVersionByIDResponse(BaseModel):
|
|
31
|
+
r"""a list of string objects"""
|
|
32
|
+
|
|
33
|
+
count: Optional[int] = None
|
|
34
|
+
r"""number of items present in the items array"""
|
|
35
|
+
|
|
36
|
+
items: Optional[List[str]] = None
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .packinfo import PackInfo, PackInfoTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetPacksRequestTypedDict(TypedDict):
|
|
13
|
+
with_: NotRequired[str]
|
|
14
|
+
r"""Comma separated list of entities, \"outputs\", \"inputs\" """
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetPacksRequest(BaseModel):
|
|
18
|
+
with_: Annotated[
|
|
19
|
+
Optional[str],
|
|
20
|
+
pydantic.Field(alias="with"),
|
|
21
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
22
|
+
] = None
|
|
23
|
+
r"""Comma separated list of entities, \"outputs\", \"inputs\" """
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetPacksResponseTypedDict(TypedDict):
|
|
27
|
+
r"""a list of PackInfo objects"""
|
|
28
|
+
|
|
29
|
+
count: NotRequired[int]
|
|
30
|
+
r"""number of items present in the items array"""
|
|
31
|
+
items: NotRequired[List[PackInfoTypedDict]]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class GetPacksResponse(BaseModel):
|
|
35
|
+
r"""a list of PackInfo objects"""
|
|
36
|
+
|
|
37
|
+
count: Optional[int] = None
|
|
38
|
+
r"""number of items present in the items array"""
|
|
39
|
+
|
|
40
|
+
items: Optional[List[PackInfo]] = None
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .teamaccesscontrollist import TeamAccessControlList, TeamAccessControlListTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
QueryParamMetadata,
|
|
10
|
+
)
|
|
11
|
+
from enum import Enum
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetProductsGroupsACLTeamsByProductAndIDProduct(str, Enum):
|
|
17
|
+
r"""Cribl Product"""
|
|
18
|
+
|
|
19
|
+
STREAM = "stream"
|
|
20
|
+
EDGE = "edge"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetProductsGroupsACLTeamsByProductAndIDType(str, Enum):
|
|
24
|
+
r"""resource type by which to filter access levels"""
|
|
25
|
+
|
|
26
|
+
GROUPS = "groups"
|
|
27
|
+
DATASETS = "datasets"
|
|
28
|
+
DATASET_PROVIDERS = "dataset-providers"
|
|
29
|
+
PROJECTS = "projects"
|
|
30
|
+
DASHBOARDS = "dashboards"
|
|
31
|
+
MACROS = "macros"
|
|
32
|
+
NOTEBOOKS = "notebooks"
|
|
33
|
+
INSIGHTS = "insights"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class GetProductsGroupsACLTeamsByProductAndIDRequestTypedDict(TypedDict):
|
|
37
|
+
product: GetProductsGroupsACLTeamsByProductAndIDProduct
|
|
38
|
+
r"""Cribl Product"""
|
|
39
|
+
id: str
|
|
40
|
+
r"""Group ID"""
|
|
41
|
+
type: NotRequired[GetProductsGroupsACLTeamsByProductAndIDType]
|
|
42
|
+
r"""resource type by which to filter access levels"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class GetProductsGroupsACLTeamsByProductAndIDRequest(BaseModel):
|
|
46
|
+
product: Annotated[
|
|
47
|
+
GetProductsGroupsACLTeamsByProductAndIDProduct,
|
|
48
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
49
|
+
]
|
|
50
|
+
r"""Cribl Product"""
|
|
51
|
+
|
|
52
|
+
id: Annotated[
|
|
53
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
54
|
+
]
|
|
55
|
+
r"""Group ID"""
|
|
56
|
+
|
|
57
|
+
type: Annotated[
|
|
58
|
+
Optional[GetProductsGroupsACLTeamsByProductAndIDType],
|
|
59
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
60
|
+
] = None
|
|
61
|
+
r"""resource type by which to filter access levels"""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class GetProductsGroupsACLTeamsByProductAndIDResponseTypedDict(TypedDict):
|
|
65
|
+
r"""a list of TeamAccessControlList objects"""
|
|
66
|
+
|
|
67
|
+
count: NotRequired[int]
|
|
68
|
+
r"""number of items present in the items array"""
|
|
69
|
+
items: NotRequired[List[TeamAccessControlListTypedDict]]
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class GetProductsGroupsACLTeamsByProductAndIDResponse(BaseModel):
|
|
73
|
+
r"""a list of TeamAccessControlList objects"""
|
|
74
|
+
|
|
75
|
+
count: Optional[int] = None
|
|
76
|
+
r"""number of items present in the items array"""
|
|
77
|
+
|
|
78
|
+
items: Optional[List[TeamAccessControlList]] = None
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
QueryParamMetadata,
|
|
10
|
+
)
|
|
11
|
+
from enum import Enum
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetProductsGroupsByProductProduct(str, Enum):
|
|
17
|
+
r"""Cribl Product"""
|
|
18
|
+
|
|
19
|
+
STREAM = "stream"
|
|
20
|
+
EDGE = "edge"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetProductsGroupsByProductRequestTypedDict(TypedDict):
|
|
24
|
+
product: GetProductsGroupsByProductProduct
|
|
25
|
+
r"""Cribl Product"""
|
|
26
|
+
fields: NotRequired[str]
|
|
27
|
+
r"""fields to add to results: git.commit, git.localChanges, git.log"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class GetProductsGroupsByProductRequest(BaseModel):
|
|
31
|
+
product: Annotated[
|
|
32
|
+
GetProductsGroupsByProductProduct,
|
|
33
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
34
|
+
]
|
|
35
|
+
r"""Cribl Product"""
|
|
36
|
+
|
|
37
|
+
fields: Annotated[
|
|
38
|
+
Optional[str],
|
|
39
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
+
] = None
|
|
41
|
+
r"""fields to add to results: git.commit, git.localChanges, git.log"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class GetProductsGroupsByProductResponseTypedDict(TypedDict):
|
|
45
|
+
r"""a list of ConfigGroup objects"""
|
|
46
|
+
|
|
47
|
+
count: NotRequired[int]
|
|
48
|
+
r"""number of items present in the items array"""
|
|
49
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class GetProductsGroupsByProductResponse(BaseModel):
|
|
53
|
+
r"""a list of ConfigGroup objects"""
|
|
54
|
+
|
|
55
|
+
count: Optional[int] = None
|
|
56
|
+
r"""number of items present in the items array"""
|
|
57
|
+
|
|
58
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .distributedsummary import DistributedSummary, DistributedSummaryTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
from enum import Enum
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetSummaryMode(str, Enum):
|
|
13
|
+
r"""product filter"""
|
|
14
|
+
|
|
15
|
+
WORKER = "worker"
|
|
16
|
+
MANAGED_EDGE = "managed-edge"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class GetSummaryRequestTypedDict(TypedDict):
|
|
20
|
+
mode: NotRequired[GetSummaryMode]
|
|
21
|
+
r"""product filter"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class GetSummaryRequest(BaseModel):
|
|
25
|
+
mode: Annotated[
|
|
26
|
+
Optional[GetSummaryMode],
|
|
27
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
28
|
+
] = None
|
|
29
|
+
r"""product filter"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class GetSummaryResponseTypedDict(TypedDict):
|
|
33
|
+
r"""a list of DistributedSummary objects"""
|
|
34
|
+
|
|
35
|
+
count: NotRequired[int]
|
|
36
|
+
r"""number of items present in the items array"""
|
|
37
|
+
items: NotRequired[List[DistributedSummaryTypedDict]]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class GetSummaryResponse(BaseModel):
|
|
41
|
+
r"""a list of DistributedSummary objects"""
|
|
42
|
+
|
|
43
|
+
count: Optional[int] = None
|
|
44
|
+
r"""number of items present in the items array"""
|
|
45
|
+
|
|
46
|
+
items: Optional[List[DistributedSummary]] = None
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetSummaryWorkersRequestTypedDict(TypedDict):
|
|
12
|
+
filter_exp: NotRequired[str]
|
|
13
|
+
r"""Filter expression evaluated against nodes"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetSummaryWorkersRequest(BaseModel):
|
|
17
|
+
filter_exp: Annotated[
|
|
18
|
+
Optional[str],
|
|
19
|
+
pydantic.Field(alias="filterExp"),
|
|
20
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
21
|
+
] = None
|
|
22
|
+
r"""Filter expression evaluated against nodes"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class GetSummaryWorkersResponseTypedDict(TypedDict):
|
|
26
|
+
r"""a list of number objects"""
|
|
27
|
+
|
|
28
|
+
count: NotRequired[int]
|
|
29
|
+
r"""number of items present in the items array"""
|
|
30
|
+
items: NotRequired[List[float]]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class GetSummaryWorkersResponse(BaseModel):
|
|
34
|
+
r"""a list of number objects"""
|
|
35
|
+
|
|
36
|
+
count: Optional[int] = None
|
|
37
|
+
r"""number of items present in the items array"""
|
|
38
|
+
|
|
39
|
+
items: Optional[List[float]] = None
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .masterworkerentry import MasterWorkerEntry, MasterWorkerEntryTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetWorkersRequestTypedDict(TypedDict):
|
|
13
|
+
filter_exp: NotRequired[str]
|
|
14
|
+
r"""Filter expression evaluated against nodes"""
|
|
15
|
+
sort: NotRequired[str]
|
|
16
|
+
r"""Sorting object (JSON stringified) expression evaluated against nodes"""
|
|
17
|
+
sort_exp: NotRequired[str]
|
|
18
|
+
r"""Sorting expression evaluated against nodes"""
|
|
19
|
+
limit: NotRequired[int]
|
|
20
|
+
r"""Maximum number of nodes to return"""
|
|
21
|
+
offset: NotRequired[int]
|
|
22
|
+
r"""Pagination offset"""
|
|
23
|
+
filter_: NotRequired[str]
|
|
24
|
+
r"""Filter object (JSON stringified) to select nodes"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class GetWorkersRequest(BaseModel):
|
|
28
|
+
filter_exp: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
pydantic.Field(alias="filterExp"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
] = None
|
|
33
|
+
r"""Filter expression evaluated against nodes"""
|
|
34
|
+
|
|
35
|
+
sort: Annotated[
|
|
36
|
+
Optional[str],
|
|
37
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
38
|
+
] = None
|
|
39
|
+
r"""Sorting object (JSON stringified) expression evaluated against nodes"""
|
|
40
|
+
|
|
41
|
+
sort_exp: Annotated[
|
|
42
|
+
Optional[str],
|
|
43
|
+
pydantic.Field(alias="sortExp"),
|
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
45
|
+
] = None
|
|
46
|
+
r"""Sorting expression evaluated against nodes"""
|
|
47
|
+
|
|
48
|
+
limit: Annotated[
|
|
49
|
+
Optional[int],
|
|
50
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
51
|
+
] = None
|
|
52
|
+
r"""Maximum number of nodes to return"""
|
|
53
|
+
|
|
54
|
+
offset: Annotated[
|
|
55
|
+
Optional[int],
|
|
56
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
57
|
+
] = None
|
|
58
|
+
r"""Pagination offset"""
|
|
59
|
+
|
|
60
|
+
filter_: Annotated[
|
|
61
|
+
Optional[str],
|
|
62
|
+
pydantic.Field(alias="filter"),
|
|
63
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
64
|
+
] = None
|
|
65
|
+
r"""Filter object (JSON stringified) to select nodes"""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class GetWorkersResponseTypedDict(TypedDict):
|
|
69
|
+
r"""a list of MasterWorkerEntry objects"""
|
|
70
|
+
|
|
71
|
+
count: NotRequired[int]
|
|
72
|
+
r"""number of items present in the items array"""
|
|
73
|
+
items: NotRequired[List[MasterWorkerEntryTypedDict]]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class GetWorkersResponse(BaseModel):
|
|
77
|
+
r"""a list of MasterWorkerEntry objects"""
|
|
78
|
+
|
|
79
|
+
count: Optional[int] = None
|
|
80
|
+
r"""number of items present in the items array"""
|
|
81
|
+
|
|
82
|
+
items: Optional[List[MasterWorkerEntry]] = None
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .appmode import AppMode
|
|
5
|
+
from .hbleaderinfo import HBLeaderInfo, HBLeaderInfoTypedDict
|
|
6
|
+
from .lookupversions import LookupVersions, LookupVersionsTypedDict
|
|
7
|
+
from cribl_control_plane.types import BaseModel
|
|
8
|
+
import pydantic
|
|
9
|
+
from typing import List, Optional
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ConfigTypedDict(TypedDict):
|
|
14
|
+
features_rev: NotRequired[str]
|
|
15
|
+
hb_period_seconds: NotRequired[float]
|
|
16
|
+
log_stream_env: NotRequired[str]
|
|
17
|
+
policy_rev: NotRequired[str]
|
|
18
|
+
version: NotRequired[str]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Config(BaseModel):
|
|
22
|
+
features_rev: Annotated[Optional[str], pydantic.Field(alias="featuresRev")] = None
|
|
23
|
+
|
|
24
|
+
hb_period_seconds: Annotated[
|
|
25
|
+
Optional[float], pydantic.Field(alias="hbPeriodSeconds")
|
|
26
|
+
] = None
|
|
27
|
+
|
|
28
|
+
log_stream_env: Annotated[Optional[str], pydantic.Field(alias="logStreamEnv")] = (
|
|
29
|
+
None
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
policy_rev: Annotated[Optional[str], pydantic.Field(alias="policyRev")] = None
|
|
33
|
+
|
|
34
|
+
version: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class HBCriblInfoTypedDict(TypedDict):
|
|
38
|
+
config: ConfigTypedDict
|
|
39
|
+
dist_mode: AppMode
|
|
40
|
+
group: str
|
|
41
|
+
guid: str
|
|
42
|
+
start_time: float
|
|
43
|
+
tags: List[str]
|
|
44
|
+
deployment_id: NotRequired[str]
|
|
45
|
+
edge_nodes: NotRequired[float]
|
|
46
|
+
install_type: NotRequired[str]
|
|
47
|
+
lookup_versions: NotRequired[LookupVersionsTypedDict]
|
|
48
|
+
master: NotRequired[HBLeaderInfoTypedDict]
|
|
49
|
+
pid: NotRequired[float]
|
|
50
|
+
version: NotRequired[str]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class HBCriblInfo(BaseModel):
|
|
54
|
+
config: Config
|
|
55
|
+
|
|
56
|
+
dist_mode: Annotated[AppMode, pydantic.Field(alias="distMode")]
|
|
57
|
+
|
|
58
|
+
group: str
|
|
59
|
+
|
|
60
|
+
guid: str
|
|
61
|
+
|
|
62
|
+
start_time: Annotated[float, pydantic.Field(alias="startTime")]
|
|
63
|
+
|
|
64
|
+
tags: List[str]
|
|
65
|
+
|
|
66
|
+
deployment_id: Annotated[Optional[str], pydantic.Field(alias="deploymentId")] = None
|
|
67
|
+
|
|
68
|
+
edge_nodes: Annotated[Optional[float], pydantic.Field(alias="edgeNodes")] = None
|
|
69
|
+
|
|
70
|
+
install_type: Annotated[Optional[str], pydantic.Field(alias="installType")] = None
|
|
71
|
+
|
|
72
|
+
lookup_versions: Annotated[
|
|
73
|
+
Optional[LookupVersions], pydantic.Field(alias="lookupVersions")
|
|
74
|
+
] = None
|
|
75
|
+
|
|
76
|
+
master: Optional[HBLeaderInfo] = None
|
|
77
|
+
|
|
78
|
+
pid: Optional[float] = None
|
|
79
|
+
|
|
80
|
+
version: Optional[str] = None
|