cribl-control-plane 0.0.33__py3-none-any.whl → 0.0.35__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 (55) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/acl.py +4 -4
  3. cribl_control_plane/commits.py +8 -8
  4. cribl_control_plane/configs_versions.py +2 -2
  5. cribl_control_plane/destinations.py +3 -3
  6. cribl_control_plane/groups_sdk.py +12 -12
  7. cribl_control_plane/models/__init__.py +6 -378
  8. cribl_control_plane/models/createconfiggroupbyproductop.py +3 -10
  9. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +3 -10
  10. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +6 -25
  11. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +6 -25
  12. cribl_control_plane/models/getconfiggroupbyproductandidop.py +3 -10
  13. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +3 -10
  14. cribl_control_plane/models/getsummaryop.py +3 -10
  15. cribl_control_plane/models/getversionop.py +4 -4
  16. cribl_control_plane/models/gitfilesresponse.py +7 -5
  17. cribl_control_plane/models/gitrevertresult.py +5 -5
  18. cribl_control_plane/models/listconfiggroupbyproductop.py +3 -10
  19. cribl_control_plane/models/{gitopstype.py → productscore.py} +3 -4
  20. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +3 -10
  21. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +3 -10
  22. cribl_control_plane/models/{edgeheartbeatmetricsmode.py → workertypes.py} +3 -5
  23. cribl_control_plane/{destinations_samples.py → samples.py} +1 -1
  24. cribl_control_plane/sdk.py +0 -3
  25. cribl_control_plane/summaries.py +2 -2
  26. cribl_control_plane/teams.py +4 -4
  27. {cribl_control_plane-0.0.33.dist-info → cribl_control_plane-0.0.35.dist-info}/METADATA +6 -22
  28. {cribl_control_plane-0.0.33.dist-info → cribl_control_plane-0.0.35.dist-info}/RECORD +29 -55
  29. cribl_control_plane/cribl.py +0 -513
  30. cribl_control_plane/models/authconfig.py +0 -43
  31. cribl_control_plane/models/commonservicelimitconfigs.py +0 -14
  32. cribl_control_plane/models/getsystemsettingsauthop.py +0 -24
  33. cribl_control_plane/models/getsystemsettingsconfop.py +0 -24
  34. cribl_control_plane/models/getsystemsettingsgitsettingsop.py +0 -24
  35. cribl_control_plane/models/gitsettings.py +0 -70
  36. cribl_control_plane/models/jobsettings.py +0 -83
  37. cribl_control_plane/models/limits.py +0 -127
  38. cribl_control_plane/models/rediscachelimits.py +0 -38
  39. cribl_control_plane/models/redisconnectionlimits.py +0 -20
  40. cribl_control_plane/models/redislimits.py +0 -14
  41. cribl_control_plane/models/searchsettings.py +0 -71
  42. cribl_control_plane/models/serviceslimits.py +0 -23
  43. cribl_control_plane/models/systemsettings.py +0 -358
  44. cribl_control_plane/models/systemsettingsconf.py +0 -311
  45. cribl_control_plane/models/updatesystemsettingsauthop.py +0 -24
  46. cribl_control_plane/models/updatesystemsettingsconfop.py +0 -24
  47. cribl_control_plane/models/updatesystemsettingsgitsettingsop.py +0 -24
  48. cribl_control_plane/models/upgradegroupsettings.py +0 -24
  49. cribl_control_plane/models/upgradepackageurls.py +0 -20
  50. cribl_control_plane/models/upgradesettings.py +0 -36
  51. cribl_control_plane/settings.py +0 -23
  52. cribl_control_plane/settings_auth.py +0 -339
  53. cribl_control_plane/settings_git.py +0 -339
  54. cribl_control_plane/system_sdk.py +0 -17
  55. {cribl_control_plane-0.0.33.dist-info → cribl_control_plane-0.0.35.dist-info}/WHEEL +0 -0
@@ -2,22 +2,15 @@
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 FieldMetadata, PathParamMetadata, RequestMetadata
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 CreateConfigGroupByProductProduct(str, Enum):
13
- r"""Name of the Cribl product to add the Worker Group or Edge Fleet to."""
14
-
15
- STREAM = "stream"
16
- EDGE = "edge"
17
-
18
-
19
12
  class CreateConfigGroupByProductRequestTypedDict(TypedDict):
20
- product: CreateConfigGroupByProductProduct
13
+ product: ProductsCore
21
14
  r"""Name of the Cribl product to add the Worker Group or Edge Fleet to."""
22
15
  config_group: ConfigGroupTypedDict
23
16
  r"""ConfigGroup object"""
@@ -25,7 +18,7 @@ class CreateConfigGroupByProductRequestTypedDict(TypedDict):
25
18
 
26
19
  class CreateConfigGroupByProductRequest(BaseModel):
27
20
  product: Annotated[
28
- CreateConfigGroupByProductProduct,
21
+ ProductsCore,
29
22
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
30
23
  ]
31
24
  r"""Name of the Cribl product to add the Worker Group or Edge Fleet to."""
@@ -2,22 +2,15 @@
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 FieldMetadata, PathParamMetadata
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 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
12
  class DeleteConfigGroupByProductAndIDRequestTypedDict(TypedDict):
20
- product: DeleteConfigGroupByProductAndIDProduct
13
+ product: ProductsCore
21
14
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
22
15
  id: str
23
16
  r"""The <code>id</code> of the Worker Group or Edge Fleet to delete."""
@@ -25,7 +18,7 @@ class DeleteConfigGroupByProductAndIDRequestTypedDict(TypedDict):
25
18
 
26
19
  class DeleteConfigGroupByProductAndIDRequest(BaseModel):
27
20
  product: Annotated[
28
- DeleteConfigGroupByProductAndIDProduct,
21
+ ProductsCore,
29
22
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
30
23
  ]
31
24
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -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."""
@@ -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>)."""
@@ -10,9 +10,9 @@ from typing_extensions import Annotated, NotRequired, TypedDict
10
10
 
11
11
  class GetVersionRequestTypedDict(TypedDict):
12
12
  group: NotRequired[str]
13
- r"""Group ID"""
13
+ r"""The <code>id</code> of the Worker Group or Edge Fleet to get the commit history for."""
14
14
  count: NotRequired[float]
15
- r"""Maximum number of commits to return"""
15
+ r"""Maximum number of commits to return in the response for this request."""
16
16
 
17
17
 
18
18
  class GetVersionRequest(BaseModel):
@@ -20,13 +20,13 @@ class GetVersionRequest(BaseModel):
20
20
  Optional[str],
21
21
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
22
22
  ] = None
23
- r"""Group ID"""
23
+ r"""The <code>id</code> of the Worker Group or Edge Fleet to get the commit history for."""
24
24
 
25
25
  count: Annotated[
26
26
  Optional[float],
27
27
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
28
28
  ] = None
29
- r"""Maximum number of commits to return"""
29
+ r"""Maximum number of commits to return in the response for this request."""
30
30
 
31
31
 
32
32
  class GetVersionResponseTypedDict(TypedDict):
@@ -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
@@ -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):
@@ -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 ListConfigGroupByProductProduct(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 ListConfigGroupByProductRequestTypedDict(TypedDict):
24
- product: ListConfigGroupByProductProduct
17
+ product: ProductsCore
25
18
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
26
19
  fields: NotRequired[str]
27
20
  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>."""
@@ -29,7 +22,7 @@ class ListConfigGroupByProductRequestTypedDict(TypedDict):
29
22
 
30
23
  class ListConfigGroupByProductRequest(BaseModel):
31
24
  product: Annotated[
32
- ListConfigGroupByProductProduct,
25
+ ProductsCore,
33
26
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
34
27
  ]
35
28
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -4,7 +4,6 @@ from __future__ import annotations
4
4
  from enum import Enum
5
5
 
6
6
 
7
- class GitOpsType(str, Enum):
8
- NONE = "none"
9
- PULL = "pull"
10
- PUSH = "push"
7
+ class ProductsCore(str, Enum):
8
+ STREAM = "stream"
9
+ EDGE = "edge"
@@ -2,23 +2,16 @@
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 FieldMetadata, PathParamMetadata, RequestMetadata
7
- from enum import Enum
8
8
  import pydantic
9
9
  from typing import List, Optional
10
10
  from typing_extensions import Annotated, NotRequired, TypedDict
11
11
 
12
12
 
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
13
  class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
21
- product: UpdateConfigGroupByProductAndIDProduct
14
+ product: ProductsCore
22
15
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
23
16
  id_param: str
24
17
  r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
@@ -28,7 +21,7 @@ class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
28
21
 
29
22
  class UpdateConfigGroupByProductAndIDRequest(BaseModel):
30
23
  product: Annotated[
31
- UpdateConfigGroupByProductAndIDProduct,
24
+ ProductsCore,
32
25
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
33
26
  ]
34
27
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -3,22 +3,15 @@
3
3
  from __future__ import annotations
4
4
  from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
5
  from .deployrequest import DeployRequest, DeployRequestTypedDict
6
+ from .productscore import ProductsCore
6
7
  from cribl_control_plane.types import BaseModel
7
8
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
8
- from enum import Enum
9
9
  from typing import List, Optional
10
10
  from typing_extensions import Annotated, NotRequired, TypedDict
11
11
 
12
12
 
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
13
  class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
21
- product: UpdateConfigGroupDeployByProductAndIDProduct
14
+ product: ProductsCore
22
15
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
23
16
  id: str
24
17
  r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
@@ -28,7 +21,7 @@ class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
28
21
 
29
22
  class UpdateConfigGroupDeployByProductAndIDRequest(BaseModel):
30
23
  product: Annotated[
31
- UpdateConfigGroupDeployByProductAndIDProduct,
24
+ ProductsCore,
32
25
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
33
26
  ]
34
27
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -4,8 +4,6 @@ from __future__ import annotations
4
4
  from enum import Enum
5
5
 
6
6
 
7
- class EdgeHeartbeatMetricsMode(str, Enum):
8
- MINIMAL = "minimal"
9
- BASIC = "basic"
10
- ALL = "all"
11
- CUSTOM = "custom"
7
+ class WorkerTypes(str, Enum):
8
+ WORKER = "worker"
9
+ MANAGED_EDGE = "managed-edge"
@@ -9,7 +9,7 @@ from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_res
9
9
  from typing import Any, List, Mapping, Optional, Union
10
10
 
11
11
 
12
- class DestinationsSamples(BaseSDK):
12
+ class Samples(BaseSDK):
13
13
  def get(
14
14
  self,
15
15
  *,
@@ -24,7 +24,6 @@ if TYPE_CHECKING:
24
24
  from cribl_control_plane.pipelines import Pipelines
25
25
  from cribl_control_plane.routes_sdk import RoutesSDK
26
26
  from cribl_control_plane.sources import Sources
27
- from cribl_control_plane.system_sdk import SystemSDK
28
27
  from cribl_control_plane.versions import Versions
29
28
 
30
29
 
@@ -46,7 +45,6 @@ class CriblControlPlane(BaseSDK):
46
45
  r"""Actions related to REST server health"""
47
46
  packs: "Packs"
48
47
  r"""Actions related to Packs"""
49
- system: "SystemSDK"
50
48
  versions: "Versions"
51
49
  groups: "GroupsSDK"
52
50
  r"""Actions related to Groups"""
@@ -60,7 +58,6 @@ class CriblControlPlane(BaseSDK):
60
58
  "nodes": ("cribl_control_plane.nodes", "Nodes"),
61
59
  "health": ("cribl_control_plane.health", "Health"),
62
60
  "packs": ("cribl_control_plane.packs", "Packs"),
63
- "system": ("cribl_control_plane.system_sdk", "SystemSDK"),
64
61
  "versions": ("cribl_control_plane.versions", "Versions"),
65
62
  "groups": ("cribl_control_plane.groups_sdk", "GroupsSDK"),
66
63
  }
@@ -13,7 +13,7 @@ class Summaries(BaseSDK):
13
13
  def get(
14
14
  self,
15
15
  *,
16
- mode: Optional[models.GetSummaryMode] = None,
16
+ mode: Optional[models.WorkerTypes] = None,
17
17
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
18
18
  server_url: Optional[str] = None,
19
19
  timeout_ms: Optional[int] = None,
@@ -100,7 +100,7 @@ class Summaries(BaseSDK):
100
100
  async def get_async(
101
101
  self,
102
102
  *,
103
- mode: Optional[models.GetSummaryMode] = None,
103
+ mode: Optional[models.WorkerTypes] = None,
104
104
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
105
105
  server_url: Optional[str] = None,
106
106
  timeout_ms: Optional[int] = None,
@@ -13,9 +13,9 @@ class Teams(BaseSDK):
13
13
  def get(
14
14
  self,
15
15
  *,
16
- product: models.GetConfigGroupACLTeamsByProductAndIDProduct,
16
+ product: models.ProductsCore,
17
17
  id: str,
18
- type_: Optional[models.GetConfigGroupACLTeamsByProductAndIDType] = None,
18
+ type_: Optional[models.RbacResource] = None,
19
19
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
20
20
  server_url: Optional[str] = None,
21
21
  timeout_ms: Optional[int] = None,
@@ -108,9 +108,9 @@ class Teams(BaseSDK):
108
108
  async def get_async(
109
109
  self,
110
110
  *,
111
- product: models.GetConfigGroupACLTeamsByProductAndIDProduct,
111
+ product: models.ProductsCore,
112
112
  id: str,
113
- type_: Optional[models.GetConfigGroupACLTeamsByProductAndIDType] = None,
113
+ type_: Optional[models.RbacResource] = None,
114
114
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
115
115
  server_url: Optional[str] = None,
116
116
  timeout_ms: Optional[int] = None,