cribl-control-plane 0.0.34__py3-none-any.whl → 0.0.36__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.

Files changed (30) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/acl.py +4 -4
  3. cribl_control_plane/commits.py +4 -4
  4. cribl_control_plane/configs_versions.py +2 -2
  5. cribl_control_plane/groups_sdk.py +12 -12
  6. cribl_control_plane/models/__init__.py +79 -36
  7. cribl_control_plane/models/createconfiggroupbyproductop.py +3 -10
  8. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +3 -10
  9. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +6 -25
  10. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +6 -25
  11. cribl_control_plane/models/getconfiggroupbyproductandidop.py +3 -10
  12. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +3 -10
  13. cribl_control_plane/models/getpacksbyidop.py +37 -0
  14. cribl_control_plane/models/getsummaryop.py +3 -10
  15. cribl_control_plane/models/gitfilesresponse.py +7 -5
  16. cribl_control_plane/models/gitrevertparams.py +3 -3
  17. cribl_control_plane/models/gitrevertresult.py +5 -5
  18. cribl_control_plane/models/input.py +19 -16
  19. cribl_control_plane/models/inputwizwebhook.py +393 -0
  20. cribl_control_plane/models/listconfiggroupbyproductop.py +3 -10
  21. cribl_control_plane/models/productscore.py +9 -0
  22. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +3 -10
  23. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +3 -10
  24. cribl_control_plane/models/workertypes.py +9 -0
  25. cribl_control_plane/packs.py +174 -0
  26. cribl_control_plane/summaries.py +2 -2
  27. cribl_control_plane/teams.py +4 -4
  28. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/METADATA +3 -2
  29. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/RECORD +30 -26
  30. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/WHEEL +0 -0
@@ -1,6 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .productscore import ProductsCore
5
+ from .rbacresource import RbacResource
4
6
  from .useraccesscontrollist import UserAccessControlList, UserAccessControlListTypedDict
5
7
  from cribl_control_plane.types import BaseModel
6
8
  from cribl_control_plane.utils import (
@@ -8,43 +10,22 @@ from cribl_control_plane.utils import (
8
10
  PathParamMetadata,
9
11
  QueryParamMetadata,
10
12
  )
11
- from enum import Enum
12
13
  from typing import List, Optional
13
14
  from typing_extensions import Annotated, NotRequired, TypedDict
14
15
 
15
16
 
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
17
  class GetConfigGroupACLByProductAndIDRequestTypedDict(TypedDict):
37
- product: GetConfigGroupACLByProductAndIDProduct
18
+ product: ProductsCore
38
19
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
39
20
  id: str
40
21
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for."""
41
- type: NotRequired[GetConfigGroupACLByProductAndIDType]
22
+ type: NotRequired[RbacResource]
42
23
  r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
43
24
 
44
25
 
45
26
  class GetConfigGroupACLByProductAndIDRequest(BaseModel):
46
27
  product: Annotated[
47
- GetConfigGroupACLByProductAndIDProduct,
28
+ ProductsCore,
48
29
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
49
30
  ]
50
31
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -55,7 +36,7 @@ class GetConfigGroupACLByProductAndIDRequest(BaseModel):
55
36
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for."""
56
37
 
57
38
  type: Annotated[
58
- Optional[GetConfigGroupACLByProductAndIDType],
39
+ Optional[RbacResource],
59
40
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
60
41
  ] = None
61
42
  r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
@@ -1,6 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .productscore import ProductsCore
5
+ from .rbacresource import RbacResource
4
6
  from .teamaccesscontrollist import TeamAccessControlList, TeamAccessControlListTypedDict
5
7
  from cribl_control_plane.types import BaseModel
6
8
  from cribl_control_plane.utils import (
@@ -8,43 +10,22 @@ from cribl_control_plane.utils import (
8
10
  PathParamMetadata,
9
11
  QueryParamMetadata,
10
12
  )
11
- from enum import Enum
12
13
  from typing import List, Optional
13
14
  from typing_extensions import Annotated, NotRequired, TypedDict
14
15
 
15
16
 
16
- class GetConfigGroupACLTeamsByProductAndIDProduct(str, Enum):
17
- r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
18
-
19
- STREAM = "stream"
20
- EDGE = "edge"
21
-
22
-
23
- class GetConfigGroupACLTeamsByProductAndIDType(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
17
  class GetConfigGroupACLTeamsByProductAndIDRequestTypedDict(TypedDict):
37
- product: GetConfigGroupACLTeamsByProductAndIDProduct
18
+ product: ProductsCore
38
19
  r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
39
20
  id: str
40
21
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for."""
41
- type: NotRequired[GetConfigGroupACLTeamsByProductAndIDType]
22
+ type: NotRequired[RbacResource]
42
23
  r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
43
24
 
44
25
 
45
26
  class GetConfigGroupACLTeamsByProductAndIDRequest(BaseModel):
46
27
  product: Annotated[
47
- GetConfigGroupACLTeamsByProductAndIDProduct,
28
+ ProductsCore,
48
29
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
49
30
  ]
50
31
  r"""Name of the Cribl product that contains the Worker Group or Edge Fleet."""
@@ -55,7 +36,7 @@ class GetConfigGroupACLTeamsByProductAndIDRequest(BaseModel):
55
36
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get the team ACL for."""
56
37
 
57
38
  type: Annotated[
58
- Optional[GetConfigGroupACLTeamsByProductAndIDType],
39
+ Optional[RbacResource],
59
40
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
60
41
  ] = None
61
42
  r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
@@ -2,26 +2,19 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
+ from .productscore import ProductsCore
5
6
  from cribl_control_plane.types import BaseModel
6
7
  from cribl_control_plane.utils import (
7
8
  FieldMetadata,
8
9
  PathParamMetadata,
9
10
  QueryParamMetadata,
10
11
  )
11
- from enum import Enum
12
12
  from typing import List, Optional
13
13
  from typing_extensions import Annotated, NotRequired, TypedDict
14
14
 
15
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
16
  class GetConfigGroupByProductAndIDRequestTypedDict(TypedDict):
24
- product: GetConfigGroupByProductAndIDProduct
17
+ product: ProductsCore
25
18
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
26
19
  id: str
27
20
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get."""
@@ -31,7 +24,7 @@ class GetConfigGroupByProductAndIDRequestTypedDict(TypedDict):
31
24
 
32
25
  class GetConfigGroupByProductAndIDRequest(BaseModel):
33
26
  product: Annotated[
34
- GetConfigGroupByProductAndIDProduct,
27
+ ProductsCore,
35
28
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
36
29
  ]
37
30
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -1,22 +1,15 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .productscore import ProductsCore
4
5
  from cribl_control_plane.types import BaseModel
5
6
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
6
- from enum import Enum
7
7
  from typing import List, Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
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
11
  class GetConfigGroupConfigVersionByProductAndIDRequestTypedDict(TypedDict):
19
- product: GetConfigGroupConfigVersionByProductAndIDProduct
12
+ product: ProductsCore
20
13
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
21
14
  id: str
22
15
  r"""The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for."""
@@ -24,7 +17,7 @@ class GetConfigGroupConfigVersionByProductAndIDRequestTypedDict(TypedDict):
24
17
 
25
18
  class GetConfigGroupConfigVersionByProductAndIDRequest(BaseModel):
26
19
  product: Annotated[
27
- GetConfigGroupConfigVersionByProductAndIDProduct,
20
+ ProductsCore,
28
21
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
29
22
  ]
30
23
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -0,0 +1,37 @@
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, PathParamMetadata
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GetPacksByIDRequestTypedDict(TypedDict):
12
+ id: str
13
+ r"""The <code>id</code> of the Pack to get."""
14
+
15
+
16
+ class GetPacksByIDRequest(BaseModel):
17
+ id: Annotated[
18
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
19
+ ]
20
+ r"""The <code>id</code> of the Pack to get."""
21
+
22
+
23
+ class GetPacksByIDResponseTypedDict(TypedDict):
24
+ r"""a list of PackInfo objects"""
25
+
26
+ count: NotRequired[int]
27
+ r"""number of items present in the items array"""
28
+ items: NotRequired[List[PackInfoTypedDict]]
29
+
30
+
31
+ class GetPacksByIDResponse(BaseModel):
32
+ r"""a list of PackInfo objects"""
33
+
34
+ count: Optional[int] = None
35
+ r"""number of items present in the items array"""
36
+
37
+ items: Optional[List[PackInfo]] = None
@@ -2,28 +2,21 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .distributedsummary import DistributedSummary, DistributedSummaryTypedDict
5
+ from .workertypes import WorkerTypes
5
6
  from cribl_control_plane.types import BaseModel
6
7
  from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
7
- from enum import Enum
8
8
  from typing import List, Optional
9
9
  from typing_extensions import Annotated, NotRequired, TypedDict
10
10
 
11
11
 
12
- class GetSummaryMode(str, Enum):
13
- r"""Filter for limiting the response by Cribl product: Cribl Stream (<code>worker</code>) or Cribl Edge (<code>managed-edge</code>)."""
14
-
15
- WORKER = "worker"
16
- MANAGED_EDGE = "managed-edge"
17
-
18
-
19
12
  class GetSummaryRequestTypedDict(TypedDict):
20
- mode: NotRequired[GetSummaryMode]
13
+ mode: NotRequired[WorkerTypes]
21
14
  r"""Filter for limiting the response by Cribl product: Cribl Stream (<code>worker</code>) or Cribl Edge (<code>managed-edge</code>)."""
22
15
 
23
16
 
24
17
  class GetSummaryRequest(BaseModel):
25
18
  mode: Annotated[
26
- Optional[GetSummaryMode],
19
+ Optional[WorkerTypes],
27
20
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
28
21
  ] = None
29
22
  r"""Filter for limiting the response by Cribl product: Cribl Stream (<code>worker</code>) or Cribl Edge (<code>managed-edge</code>)."""
@@ -4,19 +4,21 @@ from __future__ import annotations
4
4
  from .gitfile import GitFile, GitFileTypedDict
5
5
  from cribl_control_plane.types import BaseModel
6
6
  import pydantic
7
- from typing import Any, Dict, List
8
- from typing_extensions import Annotated, TypedDict
7
+ from typing import Any, Dict, List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
11
  class GitFilesResponseTypedDict(TypedDict):
12
- commit_message: Dict[str, Any]
13
12
  count: float
14
13
  items: List[GitFileTypedDict]
14
+ commit_message: NotRequired[Dict[str, Any]]
15
15
 
16
16
 
17
17
  class GitFilesResponse(BaseModel):
18
- commit_message: Annotated[Dict[str, Any], pydantic.Field(alias="commitMessage")]
19
-
20
18
  count: float
21
19
 
22
20
  items: List[GitFile]
21
+
22
+ commit_message: Annotated[
23
+ Optional[Dict[str, Any]], pydantic.Field(alias="commitMessage")
24
+ ] = None
@@ -8,13 +8,13 @@ from typing_extensions import NotRequired, TypedDict
8
8
 
9
9
  class GitRevertParamsTypedDict(TypedDict):
10
10
  commit: str
11
- message: str
12
11
  force: NotRequired[bool]
12
+ message: NotRequired[str]
13
13
 
14
14
 
15
15
  class GitRevertParams(BaseModel):
16
16
  commit: str
17
17
 
18
- message: str
19
-
20
18
  force: Optional[bool] = None
19
+
20
+ message: Optional[str] = None
@@ -24,17 +24,17 @@ class GitRevertResultFiles(BaseModel):
24
24
 
25
25
 
26
26
  class AuditTypedDict(TypedDict):
27
- files: GitRevertResultFilesTypedDict
28
- group: str
29
27
  id: str
28
+ files: NotRequired[GitRevertResultFilesTypedDict]
29
+ group: NotRequired[str]
30
30
 
31
31
 
32
32
  class Audit(BaseModel):
33
- files: GitRevertResultFiles
33
+ id: str
34
34
 
35
- group: str
35
+ files: Optional[GitRevertResultFiles] = None
36
36
 
37
- id: str
37
+ group: Optional[str] = None
38
38
 
39
39
 
40
40
  class GitRevertResultTypedDict(TypedDict):
@@ -64,6 +64,7 @@ from .inputwef import InputWef, InputWefTypedDict
64
64
  from .inputwindowsmetrics import InputWindowsMetrics, InputWindowsMetricsTypedDict
65
65
  from .inputwineventlogs import InputWinEventLogs, InputWinEventLogsTypedDict
66
66
  from .inputwiz import InputWiz, InputWizTypedDict
67
+ from .inputwizwebhook import InputWizWebhook, InputWizWebhookTypedDict
67
68
  from .inputzscalerhec import InputZscalerHec, InputZscalerHecTypedDict
68
69
  from typing import Union
69
70
  from typing_extensions import TypeAliasType
@@ -80,11 +81,11 @@ InputTypedDict = TypeAliasType(
80
81
  InputCollectionTypedDict,
81
82
  InputSystemStateTypedDict,
82
83
  InputModelDrivenTelemetryTypedDict,
83
- InputWindowsMetricsTypedDict,
84
84
  InputSystemMetricsTypedDict,
85
+ InputWindowsMetricsTypedDict,
85
86
  InputJournalFilesTypedDict,
86
- InputRawUDPTypedDict,
87
87
  InputWinEventLogsTypedDict,
88
+ InputRawUDPTypedDict,
88
89
  InputExecTypedDict,
89
90
  InputKubeLogsTypedDict,
90
91
  InputMetricsTypedDict,
@@ -93,27 +94,28 @@ InputTypedDict = TypeAliasType(
93
94
  InputNetflowTypedDict,
94
95
  InputTcpjsonTypedDict,
95
96
  InputGooglePubsubTypedDict,
96
- InputTCPTypedDict,
97
- InputWizTypedDict,
98
97
  InputOffice365ServiceTypedDict,
98
+ InputWizTypedDict,
99
+ InputTCPTypedDict,
99
100
  InputFirehoseTypedDict,
100
101
  InputCriblHTTPTypedDict,
101
- InputOffice365MgmtTypedDict,
102
102
  InputDatadogAgentTypedDict,
103
+ InputOffice365MgmtTypedDict,
103
104
  InputFileTypedDict,
104
105
  InputSplunkTypedDict,
105
- InputAppscopeTypedDict,
106
106
  InputWefTypedDict,
107
+ InputAppscopeTypedDict,
107
108
  InputHTTPRawTypedDict,
109
+ InputWizWebhookTypedDict,
108
110
  InputHTTPTypedDict,
109
111
  InputCriblLakeHTTPTypedDict,
110
112
  InputAzureBlobTypedDict,
111
113
  InputSqsTypedDict,
112
114
  InputZscalerHecTypedDict,
113
- InputEventhubTypedDict,
114
115
  InputKinesisTypedDict,
115
- InputKafkaTypedDict,
116
116
  InputConfluentCloudTypedDict,
117
+ InputEventhubTypedDict,
118
+ InputKafkaTypedDict,
117
119
  InputElasticTypedDict,
118
120
  InputOffice365MsgTraceTypedDict,
119
121
  InputSplunkHecTypedDict,
@@ -145,11 +147,11 @@ Input = TypeAliasType(
145
147
  InputCollection,
146
148
  InputSystemState,
147
149
  InputModelDrivenTelemetry,
148
- InputWindowsMetrics,
149
150
  InputSystemMetrics,
151
+ InputWindowsMetrics,
150
152
  InputJournalFiles,
151
- InputRawUDP,
152
153
  InputWinEventLogs,
154
+ InputRawUDP,
153
155
  InputExec,
154
156
  InputKubeLogs,
155
157
  InputMetrics,
@@ -158,27 +160,28 @@ Input = TypeAliasType(
158
160
  InputNetflow,
159
161
  InputTcpjson,
160
162
  InputGooglePubsub,
161
- InputTCP,
162
- InputWiz,
163
163
  InputOffice365Service,
164
+ InputWiz,
165
+ InputTCP,
164
166
  InputFirehose,
165
167
  InputCriblHTTP,
166
- InputOffice365Mgmt,
167
168
  InputDatadogAgent,
169
+ InputOffice365Mgmt,
168
170
  InputFile,
169
171
  InputSplunk,
170
- InputAppscope,
171
172
  InputWef,
173
+ InputAppscope,
172
174
  InputHTTPRaw,
175
+ InputWizWebhook,
173
176
  InputHTTP,
174
177
  InputCriblLakeHTTP,
175
178
  InputAzureBlob,
176
179
  InputSqs,
177
180
  InputZscalerHec,
178
- InputEventhub,
179
181
  InputKinesis,
180
- InputKafka,
181
182
  InputConfluentCloud,
183
+ InputEventhub,
184
+ InputKafka,
182
185
  InputElastic,
183
186
  InputOffice365MsgTrace,
184
187
  InputSplunkHec,