cribl-control-plane 0.0.29__py3-none-any.whl → 0.0.30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/acl.py +30 -20
- cribl_control_plane/configs_versions.py +22 -16
- cribl_control_plane/groups_sdk.py +464 -428
- cribl_control_plane/models/__init__.py +187 -169
- cribl_control_plane/models/{createproductsgroupsbyproductop.py → createconfiggroupbyproductop.py} +10 -10
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +53 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +78 -0
- cribl_control_plane/models/{getproductsgroupsaclteamsbyproductandidop.py → getconfiggroupaclteamsbyproductandidop.py} +15 -15
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +65 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +52 -0
- cribl_control_plane/models/{getsummaryworkersop.py → getmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/gitcommitsummary.py +3 -3
- cribl_control_plane/models/{getproductsgroupsbyproductop.py → listconfiggroupbyproductop.py} +12 -12
- cribl_control_plane/models/{getworkersop.py → listmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/{updategroupsbyidop.py → updateconfiggroupbyproductandidop.py} +22 -6
- cribl_control_plane/models/{updategroupsdeploybyidop.py → updateconfiggroupdeploybyproductandidop.py} +22 -6
- cribl_control_plane/nodes.py +70 -62
- cribl_control_plane/teams.py +20 -20
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.30.dist-info}/METADATA +8 -8
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.30.dist-info}/RECORD +22 -22
- cribl_control_plane/models/deletegroupsbyidop.py +0 -37
- cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
- cribl_control_plane/models/getgroupsbyidop.py +0 -49
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.30.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
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 FieldMetadata, PathParamMetadata
|
|
7
|
+
from enum import Enum
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteConfigGroupByProductAndIDProduct(str, Enum):
|
|
13
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
14
|
+
|
|
15
|
+
STREAM = "stream"
|
|
16
|
+
EDGE = "edge"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class DeleteConfigGroupByProductAndIDRequestTypedDict(TypedDict):
|
|
20
|
+
product: DeleteConfigGroupByProductAndIDProduct
|
|
21
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
22
|
+
id: str
|
|
23
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to delete."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DeleteConfigGroupByProductAndIDRequest(BaseModel):
|
|
27
|
+
product: Annotated[
|
|
28
|
+
DeleteConfigGroupByProductAndIDProduct,
|
|
29
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
30
|
+
]
|
|
31
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
32
|
+
|
|
33
|
+
id: Annotated[
|
|
34
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
35
|
+
]
|
|
36
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to delete."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DeleteConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
40
|
+
r"""a list of ConfigGroup objects"""
|
|
41
|
+
|
|
42
|
+
count: NotRequired[int]
|
|
43
|
+
r"""number of items present in the items array"""
|
|
44
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class DeleteConfigGroupByProductAndIDResponse(BaseModel):
|
|
48
|
+
r"""a list of ConfigGroup objects"""
|
|
49
|
+
|
|
50
|
+
count: Optional[int] = None
|
|
51
|
+
r"""number of items present in the items array"""
|
|
52
|
+
|
|
53
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,78 @@
|
|
|
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 GetConfigGroupACLByProductAndIDProduct(str, Enum):
|
|
17
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
18
|
+
|
|
19
|
+
STREAM = "stream"
|
|
20
|
+
EDGE = "edge"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetConfigGroupACLByProductAndIDType(str, Enum):
|
|
24
|
+
r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
|
|
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 GetConfigGroupACLByProductAndIDRequestTypedDict(TypedDict):
|
|
37
|
+
product: GetConfigGroupACLByProductAndIDProduct
|
|
38
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
39
|
+
id: str
|
|
40
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for."""
|
|
41
|
+
type: NotRequired[GetConfigGroupACLByProductAndIDType]
|
|
42
|
+
r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class GetConfigGroupACLByProductAndIDRequest(BaseModel):
|
|
46
|
+
product: Annotated[
|
|
47
|
+
GetConfigGroupACLByProductAndIDProduct,
|
|
48
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
49
|
+
]
|
|
50
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
51
|
+
|
|
52
|
+
id: Annotated[
|
|
53
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
54
|
+
]
|
|
55
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for."""
|
|
56
|
+
|
|
57
|
+
type: Annotated[
|
|
58
|
+
Optional[GetConfigGroupACLByProductAndIDType],
|
|
59
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
60
|
+
] = None
|
|
61
|
+
r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class GetConfigGroupACLByProductAndIDResponseTypedDict(TypedDict):
|
|
65
|
+
r"""a list of UserAccessControlList objects"""
|
|
66
|
+
|
|
67
|
+
count: NotRequired[int]
|
|
68
|
+
r"""number of items present in the items array"""
|
|
69
|
+
items: NotRequired[List[UserAccessControlListTypedDict]]
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class GetConfigGroupACLByProductAndIDResponse(BaseModel):
|
|
73
|
+
r"""a list of UserAccessControlList objects"""
|
|
74
|
+
|
|
75
|
+
count: Optional[int] = None
|
|
76
|
+
r"""number of items present in the items array"""
|
|
77
|
+
|
|
78
|
+
items: Optional[List[UserAccessControlList]] = None
|
|
@@ -13,14 +13,14 @@ from typing import List, Optional
|
|
|
13
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
17
|
-
r"""Cribl
|
|
16
|
+
class GetConfigGroupACLTeamsByProductAndIDProduct(str, Enum):
|
|
17
|
+
r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
|
|
18
18
|
|
|
19
19
|
STREAM = "stream"
|
|
20
20
|
EDGE = "edge"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class GetConfigGroupACLTeamsByProductAndIDType(str, Enum):
|
|
24
24
|
r"""resource type by which to filter access levels"""
|
|
25
25
|
|
|
26
26
|
GROUPS = "groups"
|
|
@@ -33,35 +33,35 @@ class GetProductsGroupsACLTeamsByProductAndIDType(str, Enum):
|
|
|
33
33
|
INSIGHTS = "insights"
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
class
|
|
37
|
-
product:
|
|
38
|
-
r"""Cribl
|
|
36
|
+
class GetConfigGroupACLTeamsByProductAndIDRequestTypedDict(TypedDict):
|
|
37
|
+
product: GetConfigGroupACLTeamsByProductAndIDProduct
|
|
38
|
+
r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
|
|
39
39
|
id: str
|
|
40
|
-
r"""Group
|
|
41
|
-
type: NotRequired[
|
|
40
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for."""
|
|
41
|
+
type: NotRequired[GetConfigGroupACLTeamsByProductAndIDType]
|
|
42
42
|
r"""resource type by which to filter access levels"""
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class GetConfigGroupACLTeamsByProductAndIDRequest(BaseModel):
|
|
46
46
|
product: Annotated[
|
|
47
|
-
|
|
47
|
+
GetConfigGroupACLTeamsByProductAndIDProduct,
|
|
48
48
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
49
49
|
]
|
|
50
|
-
r"""Cribl
|
|
50
|
+
r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
|
|
51
51
|
|
|
52
52
|
id: Annotated[
|
|
53
53
|
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
54
54
|
]
|
|
55
|
-
r"""Group
|
|
55
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for."""
|
|
56
56
|
|
|
57
57
|
type: Annotated[
|
|
58
|
-
Optional[
|
|
58
|
+
Optional[GetConfigGroupACLTeamsByProductAndIDType],
|
|
59
59
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
60
60
|
] = None
|
|
61
61
|
r"""resource type by which to filter access levels"""
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class GetConfigGroupACLTeamsByProductAndIDResponseTypedDict(TypedDict):
|
|
65
65
|
r"""a list of TeamAccessControlList objects"""
|
|
66
66
|
|
|
67
67
|
count: NotRequired[int]
|
|
@@ -69,7 +69,7 @@ class GetProductsGroupsACLTeamsByProductAndIDResponseTypedDict(TypedDict):
|
|
|
69
69
|
items: NotRequired[List[TeamAccessControlListTypedDict]]
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class GetConfigGroupACLTeamsByProductAndIDResponse(BaseModel):
|
|
73
73
|
r"""a list of TeamAccessControlList objects"""
|
|
74
74
|
|
|
75
75
|
count: Optional[int] = None
|
|
@@ -0,0 +1,65 @@
|
|
|
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 GetConfigGroupByProductAndIDProduct(str, Enum):
|
|
17
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
18
|
+
|
|
19
|
+
STREAM = "stream"
|
|
20
|
+
EDGE = "edge"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetConfigGroupByProductAndIDRequestTypedDict(TypedDict):
|
|
24
|
+
product: GetConfigGroupByProductAndIDProduct
|
|
25
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
26
|
+
id: str
|
|
27
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get."""
|
|
28
|
+
fields: NotRequired[str]
|
|
29
|
+
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class GetConfigGroupByProductAndIDRequest(BaseModel):
|
|
33
|
+
product: Annotated[
|
|
34
|
+
GetConfigGroupByProductAndIDProduct,
|
|
35
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
36
|
+
]
|
|
37
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
38
|
+
|
|
39
|
+
id: Annotated[
|
|
40
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
41
|
+
]
|
|
42
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get."""
|
|
43
|
+
|
|
44
|
+
fields: Annotated[
|
|
45
|
+
Optional[str],
|
|
46
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
47
|
+
] = None
|
|
48
|
+
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class GetConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
52
|
+
r"""a list of ConfigGroup objects"""
|
|
53
|
+
|
|
54
|
+
count: NotRequired[int]
|
|
55
|
+
r"""number of items present in the items array"""
|
|
56
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class GetConfigGroupByProductAndIDResponse(BaseModel):
|
|
60
|
+
r"""a list of ConfigGroup objects"""
|
|
61
|
+
|
|
62
|
+
count: Optional[int] = None
|
|
63
|
+
r"""number of items present in the items array"""
|
|
64
|
+
|
|
65
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,52 @@
|
|
|
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 enum import Enum
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetConfigGroupConfigVersionByProductAndIDProduct(str, Enum):
|
|
12
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
13
|
+
|
|
14
|
+
STREAM = "stream"
|
|
15
|
+
EDGE = "edge"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class GetConfigGroupConfigVersionByProductAndIDRequestTypedDict(TypedDict):
|
|
19
|
+
product: GetConfigGroupConfigVersionByProductAndIDProduct
|
|
20
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
21
|
+
id: str
|
|
22
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class GetConfigGroupConfigVersionByProductAndIDRequest(BaseModel):
|
|
26
|
+
product: Annotated[
|
|
27
|
+
GetConfigGroupConfigVersionByProductAndIDProduct,
|
|
28
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
29
|
+
]
|
|
30
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
31
|
+
|
|
32
|
+
id: Annotated[
|
|
33
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
34
|
+
]
|
|
35
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class GetConfigGroupConfigVersionByProductAndIDResponseTypedDict(TypedDict):
|
|
39
|
+
r"""a list of string objects"""
|
|
40
|
+
|
|
41
|
+
count: NotRequired[int]
|
|
42
|
+
r"""number of items present in the items array"""
|
|
43
|
+
items: NotRequired[List[str]]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class GetConfigGroupConfigVersionByProductAndIDResponse(BaseModel):
|
|
47
|
+
r"""a list of string objects"""
|
|
48
|
+
|
|
49
|
+
count: Optional[int] = None
|
|
50
|
+
r"""number of items present in the items array"""
|
|
51
|
+
|
|
52
|
+
items: Optional[List[str]] = None
|
|
@@ -8,12 +8,12 @@ from typing import List, Optional
|
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class GetMasterWorkerEntryRequestTypedDict(TypedDict):
|
|
12
12
|
filter_exp: NotRequired[str]
|
|
13
13
|
r"""Filter expression evaluated against nodes"""
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class GetMasterWorkerEntryRequest(BaseModel):
|
|
17
17
|
filter_exp: Annotated[
|
|
18
18
|
Optional[str],
|
|
19
19
|
pydantic.Field(alias="filterExp"),
|
|
@@ -22,7 +22,7 @@ class GetSummaryWorkersRequest(BaseModel):
|
|
|
22
22
|
r"""Filter expression evaluated against nodes"""
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class GetMasterWorkerEntryResponseTypedDict(TypedDict):
|
|
26
26
|
r"""a list of number objects"""
|
|
27
27
|
|
|
28
28
|
count: NotRequired[int]
|
|
@@ -30,7 +30,7 @@ class GetSummaryWorkersResponseTypedDict(TypedDict):
|
|
|
30
30
|
items: NotRequired[List[float]]
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class GetMasterWorkerEntryResponse(BaseModel):
|
|
34
34
|
r"""a list of number objects"""
|
|
35
35
|
|
|
36
36
|
count: Optional[int] = None
|
|
@@ -49,16 +49,14 @@ class Summary(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class GitCommitSummaryTypedDict(TypedDict):
|
|
52
|
-
author: AuthorTypedDict
|
|
53
52
|
branch: str
|
|
54
53
|
commit: str
|
|
55
54
|
files: GitCommitSummaryFilesTypedDict
|
|
56
55
|
summary: SummaryTypedDict
|
|
56
|
+
author: NotRequired[AuthorTypedDict]
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
class GitCommitSummary(BaseModel):
|
|
60
|
-
author: Author
|
|
61
|
-
|
|
62
60
|
branch: str
|
|
63
61
|
|
|
64
62
|
commit: str
|
|
@@ -66,3 +64,5 @@ class GitCommitSummary(BaseModel):
|
|
|
66
64
|
files: GitCommitSummaryFiles
|
|
67
65
|
|
|
68
66
|
summary: Summary
|
|
67
|
+
|
|
68
|
+
author: Optional[Author] = None
|
cribl_control_plane/models/{getproductsgroupsbyproductop.py → listconfiggroupbyproductop.py}
RENAMED
|
@@ -13,35 +13,35 @@ from typing import List, Optional
|
|
|
13
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
17
|
-
r"""Cribl
|
|
16
|
+
class ListConfigGroupByProductProduct(str, Enum):
|
|
17
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
18
18
|
|
|
19
19
|
STREAM = "stream"
|
|
20
20
|
EDGE = "edge"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
24
|
-
product:
|
|
25
|
-
r"""Cribl
|
|
23
|
+
class ListConfigGroupByProductRequestTypedDict(TypedDict):
|
|
24
|
+
product: ListConfigGroupByProductProduct
|
|
25
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
26
26
|
fields: NotRequired[str]
|
|
27
|
-
r"""
|
|
27
|
+
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class ListConfigGroupByProductRequest(BaseModel):
|
|
31
31
|
product: Annotated[
|
|
32
|
-
|
|
32
|
+
ListConfigGroupByProductProduct,
|
|
33
33
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
34
34
|
]
|
|
35
|
-
r"""Cribl
|
|
35
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
36
36
|
|
|
37
37
|
fields: Annotated[
|
|
38
38
|
Optional[str],
|
|
39
39
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
40
|
] = None
|
|
41
|
-
r"""
|
|
41
|
+
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class ListConfigGroupByProductResponseTypedDict(TypedDict):
|
|
45
45
|
r"""a list of ConfigGroup objects"""
|
|
46
46
|
|
|
47
47
|
count: NotRequired[int]
|
|
@@ -49,7 +49,7 @@ class GetProductsGroupsByProductResponseTypedDict(TypedDict):
|
|
|
49
49
|
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
class
|
|
52
|
+
class ListConfigGroupByProductResponse(BaseModel):
|
|
53
53
|
r"""a list of ConfigGroup objects"""
|
|
54
54
|
|
|
55
55
|
count: Optional[int] = None
|
|
@@ -9,7 +9,7 @@ from typing import List, Optional
|
|
|
9
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class ListMasterWorkerEntryRequestTypedDict(TypedDict):
|
|
13
13
|
filter_exp: NotRequired[str]
|
|
14
14
|
r"""Filter expression evaluated against nodes"""
|
|
15
15
|
sort: NotRequired[str]
|
|
@@ -24,7 +24,7 @@ class GetWorkersRequestTypedDict(TypedDict):
|
|
|
24
24
|
r"""Filter object (JSON stringified) to select nodes"""
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class ListMasterWorkerEntryRequest(BaseModel):
|
|
28
28
|
filter_exp: Annotated[
|
|
29
29
|
Optional[str],
|
|
30
30
|
pydantic.Field(alias="filterExp"),
|
|
@@ -65,7 +65,7 @@ class GetWorkersRequest(BaseModel):
|
|
|
65
65
|
r"""Filter object (JSON stringified) to select nodes"""
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
class
|
|
68
|
+
class ListMasterWorkerEntryResponseTypedDict(TypedDict):
|
|
69
69
|
r"""a list of MasterWorkerEntry objects"""
|
|
70
70
|
|
|
71
71
|
count: NotRequired[int]
|
|
@@ -73,7 +73,7 @@ class GetWorkersResponseTypedDict(TypedDict):
|
|
|
73
73
|
items: NotRequired[List[MasterWorkerEntryTypedDict]]
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
class
|
|
76
|
+
class ListMasterWorkerEntryResponse(BaseModel):
|
|
77
77
|
r"""a list of MasterWorkerEntry objects"""
|
|
78
78
|
|
|
79
79
|
count: Optional[int] = None
|
|
@@ -4,25 +4,41 @@ from __future__ import annotations
|
|
|
4
4
|
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
from enum import Enum
|
|
7
8
|
import pydantic
|
|
8
9
|
from typing import List, Optional
|
|
9
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
class
|
|
13
|
+
class UpdateConfigGroupByProductAndIDProduct(str, Enum):
|
|
14
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
15
|
+
|
|
16
|
+
STREAM = "stream"
|
|
17
|
+
EDGE = "edge"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
|
|
21
|
+
product: UpdateConfigGroupByProductAndIDProduct
|
|
22
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
13
23
|
id_param: str
|
|
14
|
-
r"""Group
|
|
24
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
|
|
15
25
|
config_group: ConfigGroupTypedDict
|
|
16
26
|
r"""ConfigGroup object"""
|
|
17
27
|
|
|
18
28
|
|
|
19
|
-
class
|
|
29
|
+
class UpdateConfigGroupByProductAndIDRequest(BaseModel):
|
|
30
|
+
product: Annotated[
|
|
31
|
+
UpdateConfigGroupByProductAndIDProduct,
|
|
32
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
33
|
+
]
|
|
34
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
35
|
+
|
|
20
36
|
id_param: Annotated[
|
|
21
37
|
str,
|
|
22
38
|
pydantic.Field(alias="id"),
|
|
23
39
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
40
|
]
|
|
25
|
-
r"""Group
|
|
41
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
|
|
26
42
|
|
|
27
43
|
config_group: Annotated[
|
|
28
44
|
ConfigGroup,
|
|
@@ -31,7 +47,7 @@ class UpdateGroupsByIDRequest(BaseModel):
|
|
|
31
47
|
r"""ConfigGroup object"""
|
|
32
48
|
|
|
33
49
|
|
|
34
|
-
class
|
|
50
|
+
class UpdateConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
35
51
|
r"""a list of ConfigGroup objects"""
|
|
36
52
|
|
|
37
53
|
count: NotRequired[int]
|
|
@@ -39,7 +55,7 @@ class UpdateGroupsByIDResponseTypedDict(TypedDict):
|
|
|
39
55
|
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
40
56
|
|
|
41
57
|
|
|
42
|
-
class
|
|
58
|
+
class UpdateConfigGroupByProductAndIDResponse(BaseModel):
|
|
43
59
|
r"""a list of ConfigGroup objects"""
|
|
44
60
|
|
|
45
61
|
count: Optional[int] = None
|
|
@@ -5,22 +5,38 @@ from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
|
5
5
|
from .deployrequest import DeployRequest, DeployRequestTypedDict
|
|
6
6
|
from cribl_control_plane.types import BaseModel
|
|
7
7
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
8
|
+
from enum import Enum
|
|
8
9
|
from typing import List, Optional
|
|
9
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
class
|
|
13
|
+
class UpdateConfigGroupDeployByProductAndIDProduct(str, Enum):
|
|
14
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
15
|
+
|
|
16
|
+
STREAM = "stream"
|
|
17
|
+
EDGE = "edge"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
|
|
21
|
+
product: UpdateConfigGroupDeployByProductAndIDProduct
|
|
22
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
13
23
|
id: str
|
|
14
|
-
r"""Group
|
|
24
|
+
r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
|
|
15
25
|
deploy_request: DeployRequestTypedDict
|
|
16
26
|
r"""DeployRequest object"""
|
|
17
27
|
|
|
18
28
|
|
|
19
|
-
class
|
|
29
|
+
class UpdateConfigGroupDeployByProductAndIDRequest(BaseModel):
|
|
30
|
+
product: Annotated[
|
|
31
|
+
UpdateConfigGroupDeployByProductAndIDProduct,
|
|
32
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
33
|
+
]
|
|
34
|
+
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
35
|
+
|
|
20
36
|
id: Annotated[
|
|
21
37
|
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
22
38
|
]
|
|
23
|
-
r"""Group
|
|
39
|
+
r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
|
|
24
40
|
|
|
25
41
|
deploy_request: Annotated[
|
|
26
42
|
DeployRequest,
|
|
@@ -29,7 +45,7 @@ class UpdateGroupsDeployByIDRequest(BaseModel):
|
|
|
29
45
|
r"""DeployRequest object"""
|
|
30
46
|
|
|
31
47
|
|
|
32
|
-
class
|
|
48
|
+
class UpdateConfigGroupDeployByProductAndIDResponseTypedDict(TypedDict):
|
|
33
49
|
r"""a list of ConfigGroup objects"""
|
|
34
50
|
|
|
35
51
|
count: NotRequired[int]
|
|
@@ -37,7 +53,7 @@ class UpdateGroupsDeployByIDResponseTypedDict(TypedDict):
|
|
|
37
53
|
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
38
54
|
|
|
39
55
|
|
|
40
|
-
class
|
|
56
|
+
class UpdateConfigGroupDeployByProductAndIDResponse(BaseModel):
|
|
41
57
|
r"""a list of ConfigGroup objects"""
|
|
42
58
|
|
|
43
59
|
count: Optional[int] = None
|