cribl-control-plane 0.2.1rc1__py3-none-any.whl → 0.3.0b2__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.

@@ -1,52 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .productscore import ProductsCore
5
- from .rulesetid import RulesetID, RulesetIDTypedDict
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- RequestMetadata,
11
- validate_open_enum,
12
- )
13
- from pydantic.functional_validators import PlainValidator
14
- from typing import List, Optional
15
- from typing_extensions import Annotated, NotRequired, TypedDict
16
-
17
-
18
- class CreateAdminProductsMappingsActivateByProductRequestTypedDict(TypedDict):
19
- product: ProductsCore
20
- r"""Name of the Cribl product to activate the Mapping Ruleset for"""
21
- ruleset_id: RulesetIDTypedDict
22
- r"""RulesetId object"""
23
-
24
-
25
- class CreateAdminProductsMappingsActivateByProductRequest(BaseModel):
26
- product: Annotated[
27
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
28
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
29
- ]
30
- r"""Name of the Cribl product to activate the Mapping Ruleset for"""
31
-
32
- ruleset_id: Annotated[
33
- RulesetID, FieldMetadata(request=RequestMetadata(media_type="application/json"))
34
- ]
35
- r"""RulesetId object"""
36
-
37
-
38
- class CreateAdminProductsMappingsActivateByProductResponseTypedDict(TypedDict):
39
- r"""The <code>id</code> of the Mapping Ruleset that has been successfully activated"""
40
-
41
- count: NotRequired[int]
42
- r"""number of items present in the items array"""
43
- items: NotRequired[List[RulesetIDTypedDict]]
44
-
45
-
46
- class CreateAdminProductsMappingsActivateByProductResponse(BaseModel):
47
- r"""The <code>id</code> of the Mapping Ruleset that has been successfully activated"""
48
-
49
- count: Optional[int] = None
50
- r"""number of items present in the items array"""
51
-
52
- items: Optional[List[RulesetID]] = None
@@ -1,53 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
5
- from .productscore import ProductsCore
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- RequestMetadata,
11
- validate_open_enum,
12
- )
13
- from pydantic.functional_validators import PlainValidator
14
- from typing import List, Optional
15
- from typing_extensions import Annotated, NotRequired, TypedDict
16
-
17
-
18
- class CreateAdminProductsMappingsByProductRequestTypedDict(TypedDict):
19
- product: ProductsCore
20
- r"""Name of the Cribl product to create the Mapping Ruleset for"""
21
- mapping_ruleset: MappingRulesetTypedDict
22
- r"""MappingRuleset object"""
23
-
24
-
25
- class CreateAdminProductsMappingsByProductRequest(BaseModel):
26
- product: Annotated[
27
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
28
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
29
- ]
30
- r"""Name of the Cribl product to create the Mapping Ruleset for"""
31
-
32
- mapping_ruleset: Annotated[
33
- MappingRuleset,
34
- FieldMetadata(request=RequestMetadata(media_type="application/json")),
35
- ]
36
- r"""MappingRuleset object"""
37
-
38
-
39
- class CreateAdminProductsMappingsByProductResponseTypedDict(TypedDict):
40
- r"""A list containing the newly created Mapping Ruleset objects"""
41
-
42
- count: NotRequired[int]
43
- r"""number of items present in the items array"""
44
- items: NotRequired[List[MappingRulesetTypedDict]]
45
-
46
-
47
- class CreateAdminProductsMappingsByProductResponse(BaseModel):
48
- r"""A list containing the newly created Mapping Ruleset objects"""
49
-
50
- count: Optional[int] = None
51
- r"""number of items present in the items array"""
52
-
53
- items: Optional[List[MappingRuleset]] = None
@@ -1,51 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
5
- from .productscore import ProductsCore
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- validate_open_enum,
11
- )
12
- from pydantic.functional_validators import PlainValidator
13
- from typing import List, Optional
14
- from typing_extensions import Annotated, NotRequired, TypedDict
15
-
16
-
17
- class DeleteAdminProductsMappingsByProductAndIDRequestTypedDict(TypedDict):
18
- product: ProductsCore
19
- r"""Name of the Cribl product to delete the Mapping Ruleset for"""
20
- id: str
21
- r"""The <code>id</code> of the Mapping Ruleset to delete."""
22
-
23
-
24
- class DeleteAdminProductsMappingsByProductAndIDRequest(BaseModel):
25
- product: Annotated[
26
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
27
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
28
- ]
29
- r"""Name of the Cribl product to delete the Mapping Ruleset for"""
30
-
31
- id: Annotated[
32
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
33
- ]
34
- r"""The <code>id</code> of the Mapping Ruleset to delete."""
35
-
36
-
37
- class DeleteAdminProductsMappingsByProductAndIDResponseTypedDict(TypedDict):
38
- r"""A list containing the deleted Mapping Ruleset objects"""
39
-
40
- count: NotRequired[int]
41
- r"""number of items present in the items array"""
42
- items: NotRequired[List[MappingRulesetTypedDict]]
43
-
44
-
45
- class DeleteAdminProductsMappingsByProductAndIDResponse(BaseModel):
46
- r"""A list containing the deleted Mapping Ruleset objects"""
47
-
48
- count: Optional[int] = None
49
- r"""number of items present in the items array"""
50
-
51
- items: Optional[List[MappingRuleset]] = None
@@ -1,51 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
5
- from .productscore import ProductsCore
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- validate_open_enum,
11
- )
12
- from pydantic.functional_validators import PlainValidator
13
- from typing import List, Optional
14
- from typing_extensions import Annotated, NotRequired, TypedDict
15
-
16
-
17
- class GetAdminProductsMappingsByProductAndIDRequestTypedDict(TypedDict):
18
- product: ProductsCore
19
- r"""Name of the Cribl product to get the Mappings for"""
20
- id: str
21
- r"""The <code>id</code> of the Worker Group or Edge Fleet Mapping Ruleset to get"""
22
-
23
-
24
- class GetAdminProductsMappingsByProductAndIDRequest(BaseModel):
25
- product: Annotated[
26
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
27
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
28
- ]
29
- r"""Name of the Cribl product to get the Mappings for"""
30
-
31
- id: Annotated[
32
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
33
- ]
34
- r"""The <code>id</code> of the Worker Group or Edge Fleet Mapping Ruleset to get"""
35
-
36
-
37
- class GetAdminProductsMappingsByProductAndIDResponseTypedDict(TypedDict):
38
- r"""a list of MappingRuleset objects"""
39
-
40
- count: NotRequired[int]
41
- r"""number of items present in the items array"""
42
- items: NotRequired[List[MappingRulesetTypedDict]]
43
-
44
-
45
- class GetAdminProductsMappingsByProductAndIDResponse(BaseModel):
46
- r"""a list of MappingRuleset objects"""
47
-
48
- count: Optional[int] = None
49
- r"""number of items present in the items array"""
50
-
51
- items: Optional[List[MappingRuleset]] = None
@@ -1,44 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
5
- from .productscore import ProductsCore
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- validate_open_enum,
11
- )
12
- from pydantic.functional_validators import PlainValidator
13
- from typing import List, Optional
14
- from typing_extensions import Annotated, NotRequired, TypedDict
15
-
16
-
17
- class GetAdminProductsMappingsByProductRequestTypedDict(TypedDict):
18
- product: ProductsCore
19
- r"""Name of the Cribl product to list the Mapping Rulesets for"""
20
-
21
-
22
- class GetAdminProductsMappingsByProductRequest(BaseModel):
23
- product: Annotated[
24
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
25
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
26
- ]
27
- r"""Name of the Cribl product to list the Mapping Rulesets for"""
28
-
29
-
30
- class GetAdminProductsMappingsByProductResponseTypedDict(TypedDict):
31
- r"""a list of MappingRuleset objects"""
32
-
33
- count: NotRequired[int]
34
- r"""number of items present in the items array"""
35
- items: NotRequired[List[MappingRulesetTypedDict]]
36
-
37
-
38
- class GetAdminProductsMappingsByProductResponse(BaseModel):
39
- r"""a list of MappingRuleset objects"""
40
-
41
- count: Optional[int] = None
42
- r"""number of items present in the items array"""
43
-
44
- items: Optional[List[MappingRuleset]] = None
@@ -1,95 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from cribl_control_plane import utils
5
- from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
- from enum import Enum
8
- import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
- from typing import List, Optional
11
- from typing_extensions import Annotated, NotRequired, TypedDict
12
-
13
-
14
- class ID(str, Enum, metaclass=utils.OpenEnumMeta):
15
- r"""Unique function identifier. Must always be 'eval'."""
16
-
17
- EVAL = "eval"
18
-
19
-
20
- class AddTypedDict(TypedDict):
21
- name: str
22
- value: str
23
-
24
-
25
- class Add(BaseModel):
26
- name: str
27
-
28
- value: str
29
-
30
-
31
- class FunctionConfTypedDict(TypedDict):
32
- add: List[AddTypedDict]
33
- r"""Fields to add in this eval function"""
34
-
35
-
36
- class FunctionConf(BaseModel):
37
- add: List[Add]
38
- r"""Fields to add in this eval function"""
39
-
40
-
41
- class FunctionTypedDict(TypedDict):
42
- id: ID
43
- r"""Unique function identifier. Must always be 'eval'."""
44
- filter_: str
45
- r"""Filter expression controlling when this function runs"""
46
- final: bool
47
- r"""Marks whether this function is final in the chain. Must always be true."""
48
- conf: FunctionConfTypedDict
49
- description: NotRequired[str]
50
- r"""Optional function description"""
51
- disabled: NotRequired[bool]
52
- r"""Indicates whether the function is disabled"""
53
-
54
-
55
- class Function(BaseModel):
56
- id: Annotated[ID, PlainValidator(validate_open_enum(False))]
57
- r"""Unique function identifier. Must always be 'eval'."""
58
-
59
- filter_: Annotated[str, pydantic.Field(alias="filter")]
60
- r"""Filter expression controlling when this function runs"""
61
-
62
- final: bool
63
- r"""Marks whether this function is final in the chain. Must always be true."""
64
-
65
- conf: FunctionConf
66
-
67
- description: Optional[str] = None
68
- r"""Optional function description"""
69
-
70
- disabled: Optional[bool] = None
71
- r"""Indicates whether the function is disabled"""
72
-
73
-
74
- class MappingRulesetConfTypedDict(TypedDict):
75
- functions: NotRequired[List[FunctionTypedDict]]
76
- r"""List of functions to pass data through"""
77
-
78
-
79
- class MappingRulesetConf(BaseModel):
80
- functions: Optional[List[Function]] = None
81
- r"""List of functions to pass data through"""
82
-
83
-
84
- class MappingRulesetTypedDict(TypedDict):
85
- id: str
86
- conf: NotRequired[MappingRulesetConfTypedDict]
87
- active: NotRequired[bool]
88
-
89
-
90
- class MappingRuleset(BaseModel):
91
- id: str
92
-
93
- conf: Optional[MappingRulesetConf] = None
94
-
95
- active: Optional[bool] = None
@@ -1,13 +0,0 @@
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 typing_extensions import TypedDict
6
-
7
-
8
- class RulesetIDTypedDict(TypedDict):
9
- id: str
10
-
11
-
12
- class RulesetID(BaseModel):
13
- id: str
@@ -1,63 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
5
- from .productscore import ProductsCore
6
- from cribl_control_plane.types import BaseModel
7
- from cribl_control_plane.utils import (
8
- FieldMetadata,
9
- PathParamMetadata,
10
- RequestMetadata,
11
- validate_open_enum,
12
- )
13
- import pydantic
14
- from pydantic.functional_validators import PlainValidator
15
- from typing import List, Optional
16
- from typing_extensions import Annotated, NotRequired, TypedDict
17
-
18
-
19
- class UpdateAdminProductsMappingsByProductAndIDRequestTypedDict(TypedDict):
20
- product: ProductsCore
21
- r"""Name of the Cribl product to update the Mapping Ruleset for"""
22
- id_param: str
23
- r"""The <code>id</code> of the Mapping Ruleset to update."""
24
- mapping_ruleset: MappingRulesetTypedDict
25
- r"""MappingRuleset object"""
26
-
27
-
28
- class UpdateAdminProductsMappingsByProductAndIDRequest(BaseModel):
29
- product: Annotated[
30
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
31
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
32
- ]
33
- r"""Name of the Cribl product to update the Mapping Ruleset for"""
34
-
35
- id_param: Annotated[
36
- str,
37
- pydantic.Field(alias="id"),
38
- FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
39
- ]
40
- r"""The <code>id</code> of the Mapping Ruleset to update."""
41
-
42
- mapping_ruleset: Annotated[
43
- MappingRuleset,
44
- FieldMetadata(request=RequestMetadata(media_type="application/json")),
45
- ]
46
- r"""MappingRuleset object"""
47
-
48
-
49
- class UpdateAdminProductsMappingsByProductAndIDResponseTypedDict(TypedDict):
50
- r"""A list containing the updated Mapping Ruleset objects"""
51
-
52
- count: NotRequired[int]
53
- r"""number of items present in the items array"""
54
- items: NotRequired[List[MappingRulesetTypedDict]]
55
-
56
-
57
- class UpdateAdminProductsMappingsByProductAndIDResponse(BaseModel):
58
- r"""A list containing the updated Mapping Ruleset objects"""
59
-
60
- count: Optional[int] = None
61
- r"""number of items present in the items array"""
62
-
63
- items: Optional[List[MappingRuleset]] = None