cribl-control-plane 0.0.37__py3-none-any.whl → 0.0.38__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/commits.py +52 -42
- cribl_control_plane/commits_files.py +12 -12
- cribl_control_plane/models/__init__.py +14 -12
- cribl_control_plane/models/createversioncommitop.py +26 -1
- cribl_control_plane/models/createversionrevertop.py +4 -2
- cribl_control_plane/models/createversionundoop.py +4 -2
- cribl_control_plane/models/getversioncountop.py +3 -2
- cribl_control_plane/models/getversiondiffop.py +3 -2
- cribl_control_plane/models/getversionfilesop.py +3 -2
- cribl_control_plane/models/getversionop.py +4 -2
- cribl_control_plane/models/getversionshowop.py +3 -2
- cribl_control_plane/models/getversionstatusop.py +4 -2
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +1 -1
- cribl_control_plane/models/outputgooglepubsub.py +7 -28
- cribl_control_plane/models/packinfo.py +5 -5
- cribl_control_plane/models/packinstallinfo.py +5 -5
- cribl_control_plane/models/packupgraderequest.py +26 -0
- cribl_control_plane/models/updatepacksbyidop.py +9 -28
- cribl_control_plane/packs.py +40 -16
- cribl_control_plane/statuses.py +6 -6
- {cribl_control_plane-0.0.37.dist-info → cribl_control_plane-0.0.38.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.0.37.dist-info → cribl_control_plane-0.0.38.dist-info}/RECORD +24 -23
- {cribl_control_plane-0.0.37.dist-info → cribl_control_plane-0.0.38.dist-info}/WHEEL +0 -0
|
@@ -9,15 +9,16 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GetVersionCountRequestTypedDict(TypedDict):
|
|
12
|
-
|
|
12
|
+
group_id: NotRequired[str]
|
|
13
13
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the count for."""
|
|
14
14
|
id: NotRequired[str]
|
|
15
15
|
r"""The Git commit hash to use as the starting point for the count."""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class GetVersionCountRequest(BaseModel):
|
|
19
|
-
|
|
19
|
+
group_id: Annotated[
|
|
20
20
|
Optional[str],
|
|
21
|
+
pydantic.Field(alias="groupId"),
|
|
21
22
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
22
23
|
] = None
|
|
23
24
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the count for."""
|
|
@@ -11,7 +11,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
11
11
|
class GetVersionDiffRequestTypedDict(TypedDict):
|
|
12
12
|
commit: NotRequired[str]
|
|
13
13
|
r"""The Git commit hash to get the diff for."""
|
|
14
|
-
|
|
14
|
+
group_id: NotRequired[str]
|
|
15
15
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the diff for."""
|
|
16
16
|
filename: NotRequired[str]
|
|
17
17
|
r"""The relative path of the file to get the diff for."""
|
|
@@ -26,8 +26,9 @@ class GetVersionDiffRequest(BaseModel):
|
|
|
26
26
|
] = None
|
|
27
27
|
r"""The Git commit hash to get the diff for."""
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
group_id: Annotated[
|
|
30
30
|
Optional[str],
|
|
31
|
+
pydantic.Field(alias="groupId"),
|
|
31
32
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
33
|
] = None
|
|
33
34
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the diff for."""
|
|
@@ -10,15 +10,16 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class GetVersionFilesRequestTypedDict(TypedDict):
|
|
13
|
-
|
|
13
|
+
group_id: NotRequired[str]
|
|
14
14
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get file names and status for."""
|
|
15
15
|
id: NotRequired[str]
|
|
16
16
|
r"""The Git commit hash to use as the starting point for the request."""
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class GetVersionFilesRequest(BaseModel):
|
|
20
|
-
|
|
20
|
+
group_id: Annotated[
|
|
21
21
|
Optional[str],
|
|
22
|
+
pydantic.Field(alias="groupId"),
|
|
22
23
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
23
24
|
] = None
|
|
24
25
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get file names and status for."""
|
|
@@ -4,20 +4,22 @@ from __future__ import annotations
|
|
|
4
4
|
from .gitlogresult import GitLogResult, GitLogResultTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
7
8
|
from typing import List, Optional
|
|
8
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class GetVersionRequestTypedDict(TypedDict):
|
|
12
|
-
|
|
13
|
+
group_id: NotRequired[str]
|
|
13
14
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the commit history for."""
|
|
14
15
|
count: NotRequired[float]
|
|
15
16
|
r"""Maximum number of commits to return in the response for this request."""
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
class GetVersionRequest(BaseModel):
|
|
19
|
-
|
|
20
|
+
group_id: Annotated[
|
|
20
21
|
Optional[str],
|
|
22
|
+
pydantic.Field(alias="groupId"),
|
|
21
23
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
22
24
|
] = None
|
|
23
25
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the commit history for."""
|
|
@@ -11,7 +11,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
11
11
|
class GetVersionShowRequestTypedDict(TypedDict):
|
|
12
12
|
commit: NotRequired[str]
|
|
13
13
|
r"""The Git commit hash to retrieve the diff and log message for."""
|
|
14
|
-
|
|
14
|
+
group_id: NotRequired[str]
|
|
15
15
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the diff and log message for."""
|
|
16
16
|
filename: NotRequired[str]
|
|
17
17
|
r"""The relative path of the file to get the diff and log message for."""
|
|
@@ -26,8 +26,9 @@ class GetVersionShowRequest(BaseModel):
|
|
|
26
26
|
] = None
|
|
27
27
|
r"""The Git commit hash to retrieve the diff and log message for."""
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
group_id: Annotated[
|
|
30
30
|
Optional[str],
|
|
31
|
+
pydantic.Field(alias="groupId"),
|
|
31
32
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
33
|
] = None
|
|
33
34
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the diff and log message for."""
|
|
@@ -4,18 +4,20 @@ from __future__ import annotations
|
|
|
4
4
|
from .gitstatusresult import GitStatusResult, GitStatusResultTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
7
8
|
from typing import List, Optional
|
|
8
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class GetVersionStatusRequestTypedDict(TypedDict):
|
|
12
|
-
|
|
13
|
+
group_id: NotRequired[str]
|
|
13
14
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the status for."""
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class GetVersionStatusRequest(BaseModel):
|
|
17
|
-
|
|
18
|
+
group_id: Annotated[
|
|
18
19
|
Optional[str],
|
|
20
|
+
pydantic.Field(alias="groupId"),
|
|
19
21
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
20
22
|
] = None
|
|
21
23
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the status for."""
|
|
@@ -298,7 +298,7 @@ class OutputCrowdstrikeNextGenSiem(BaseModel):
|
|
|
298
298
|
format_: Annotated[
|
|
299
299
|
Optional[OutputCrowdstrikeNextGenSiemRequestFormat],
|
|
300
300
|
pydantic.Field(alias="format"),
|
|
301
|
-
] = OutputCrowdstrikeNextGenSiemRequestFormat.
|
|
301
|
+
] = OutputCrowdstrikeNextGenSiemRequestFormat.JSON
|
|
302
302
|
r"""When set to JSON, the event is automatically formatted with required fields before sending. When set to Raw, only the event's `_raw` value is sent."""
|
|
303
303
|
|
|
304
304
|
auth_type: Annotated[
|
|
@@ -8,7 +8,7 @@ from typing import List, Optional
|
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class OutputGooglePubsubType(str, Enum):
|
|
12
12
|
GOOGLE_PUBSUB = "google_pubsub"
|
|
13
13
|
|
|
14
14
|
|
|
@@ -20,25 +20,6 @@ class OutputGooglePubsubGoogleAuthenticationMethod(str, Enum):
|
|
|
20
20
|
SECRET = "secret"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class FlushPeriodSecType(str, Enum):
|
|
24
|
-
NUMBER = "number"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class FlushPeriodSecTypedDict(TypedDict):
|
|
28
|
-
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)."""
|
|
29
|
-
|
|
30
|
-
type: NotRequired[FlushPeriodSecType]
|
|
31
|
-
default: NotRequired[float]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class FlushPeriodSec(BaseModel):
|
|
35
|
-
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)."""
|
|
36
|
-
|
|
37
|
-
type: Optional[FlushPeriodSecType] = None
|
|
38
|
-
|
|
39
|
-
default: Optional[float] = None
|
|
40
|
-
|
|
41
|
-
|
|
42
23
|
class OutputGooglePubsubBackpressureBehavior(str, Enum):
|
|
43
24
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
44
25
|
|
|
@@ -78,7 +59,7 @@ class OutputGooglePubsubPqControls(BaseModel):
|
|
|
78
59
|
|
|
79
60
|
|
|
80
61
|
class OutputGooglePubsubTypedDict(TypedDict):
|
|
81
|
-
type:
|
|
62
|
+
type: OutputGooglePubsubType
|
|
82
63
|
topic_name: str
|
|
83
64
|
r"""ID of the topic to send events to."""
|
|
84
65
|
id: NotRequired[str]
|
|
@@ -111,8 +92,8 @@ class OutputGooglePubsubTypedDict(TypedDict):
|
|
|
111
92
|
r"""Maximum number of queued batches before blocking."""
|
|
112
93
|
max_record_size_kb: NotRequired[float]
|
|
113
94
|
r"""Maximum size (KB) of batches to send."""
|
|
114
|
-
|
|
115
|
-
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)
|
|
95
|
+
flush_period: NotRequired[float]
|
|
96
|
+
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)"""
|
|
116
97
|
max_in_progress: NotRequired[float]
|
|
117
98
|
r"""The maximum number of in-progress API requests before backpressure is applied."""
|
|
118
99
|
on_backpressure: NotRequired[OutputGooglePubsubBackpressureBehavior]
|
|
@@ -134,7 +115,7 @@ class OutputGooglePubsubTypedDict(TypedDict):
|
|
|
134
115
|
|
|
135
116
|
|
|
136
117
|
class OutputGooglePubsub(BaseModel):
|
|
137
|
-
type:
|
|
118
|
+
type: OutputGooglePubsubType
|
|
138
119
|
|
|
139
120
|
topic_name: Annotated[str, pydantic.Field(alias="topicName")]
|
|
140
121
|
r"""ID of the topic to send events to."""
|
|
@@ -199,10 +180,8 @@ class OutputGooglePubsub(BaseModel):
|
|
|
199
180
|
] = 256
|
|
200
181
|
r"""Maximum size (KB) of batches to send."""
|
|
201
182
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
] = None
|
|
205
|
-
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)."""
|
|
183
|
+
flush_period: Annotated[Optional[float], pydantic.Field(alias="flushPeriod")] = 1
|
|
184
|
+
r"""Maximum time to wait before sending a batch (when batch size limit is not reached)"""
|
|
206
185
|
|
|
207
186
|
max_in_progress: Annotated[
|
|
208
187
|
Optional[float], pydantic.Field(alias="maxInProgress")
|
|
@@ -9,19 +9,19 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
class PackInfoTagsTypedDict(TypedDict):
|
|
11
11
|
data_type: List[str]
|
|
12
|
-
domain: List[str]
|
|
13
|
-
streamtags: List[str]
|
|
14
12
|
technology: List[str]
|
|
13
|
+
domain: NotRequired[List[str]]
|
|
14
|
+
streamtags: NotRequired[List[str]]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class PackInfoTags(BaseModel):
|
|
18
18
|
data_type: Annotated[List[str], pydantic.Field(alias="dataType")]
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
technology: List[str]
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
domain: Optional[List[str]] = None
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
streamtags: Optional[List[str]] = None
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class PackInfoTypedDict(TypedDict):
|
|
@@ -9,19 +9,19 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
class PackInstallInfoTagsTypedDict(TypedDict):
|
|
11
11
|
data_type: List[str]
|
|
12
|
-
domain: List[str]
|
|
13
|
-
streamtags: List[str]
|
|
14
12
|
technology: List[str]
|
|
13
|
+
domain: NotRequired[List[str]]
|
|
14
|
+
streamtags: NotRequired[List[str]]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class PackInstallInfoTags(BaseModel):
|
|
18
18
|
data_type: Annotated[List[str], pydantic.Field(alias="dataType")]
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
technology: List[str]
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
domain: Optional[List[str]] = None
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
streamtags: Optional[List[str]] = None
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class PackInstallInfoTypedDict(TypedDict):
|
|
@@ -0,0 +1,26 @@
|
|
|
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 import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PackUpgradeRequestTypedDict(TypedDict):
|
|
11
|
+
source: str
|
|
12
|
+
allow_custom_functions: NotRequired[bool]
|
|
13
|
+
minor: NotRequired[str]
|
|
14
|
+
spec: NotRequired[str]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class PackUpgradeRequest(BaseModel):
|
|
18
|
+
source: str
|
|
19
|
+
|
|
20
|
+
allow_custom_functions: Annotated[
|
|
21
|
+
Optional[bool], pydantic.Field(alias="allowCustomFunctions")
|
|
22
|
+
] = None
|
|
23
|
+
|
|
24
|
+
minor: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
spec: Optional[str] = None
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .packinfo import PackInfo, PackInfoTypedDict
|
|
5
|
+
from .packupgraderequest import PackUpgradeRequest, PackUpgradeRequestTypedDict
|
|
5
6
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import
|
|
7
|
-
FieldMetadata,
|
|
8
|
-
PathParamMetadata,
|
|
9
|
-
QueryParamMetadata,
|
|
10
|
-
)
|
|
7
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
11
8
|
from typing import List, Optional
|
|
12
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
10
|
|
|
@@ -15,12 +12,8 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
15
12
|
class UpdatePacksByIDRequestTypedDict(TypedDict):
|
|
16
13
|
id: str
|
|
17
14
|
r"""The <code>id</code> of the Pack to upgrade."""
|
|
18
|
-
|
|
19
|
-
r"""
|
|
20
|
-
minor: NotRequired[str]
|
|
21
|
-
r"""body boolean optional Only upgrade to minor/patch versions"""
|
|
22
|
-
spec: NotRequired[str]
|
|
23
|
-
r"""body string optional Specify a branch, tag or a semver spec"""
|
|
15
|
+
pack_upgrade_request: PackUpgradeRequestTypedDict
|
|
16
|
+
r"""PackUpgradeRequest object"""
|
|
24
17
|
|
|
25
18
|
|
|
26
19
|
class UpdatePacksByIDRequest(BaseModel):
|
|
@@ -29,23 +22,11 @@ class UpdatePacksByIDRequest(BaseModel):
|
|
|
29
22
|
]
|
|
30
23
|
r"""The <code>id</code> of the Pack to upgrade."""
|
|
31
24
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
FieldMetadata(
|
|
35
|
-
]
|
|
36
|
-
r"""
|
|
37
|
-
|
|
38
|
-
minor: Annotated[
|
|
39
|
-
Optional[str],
|
|
40
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
41
|
-
] = None
|
|
42
|
-
r"""body boolean optional Only upgrade to minor/patch versions"""
|
|
43
|
-
|
|
44
|
-
spec: Annotated[
|
|
45
|
-
Optional[str],
|
|
46
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
47
|
-
] = None
|
|
48
|
-
r"""body string optional Specify a branch, tag or a semver spec"""
|
|
25
|
+
pack_upgrade_request: Annotated[
|
|
26
|
+
PackUpgradeRequest,
|
|
27
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
28
|
+
]
|
|
29
|
+
r"""PackUpgradeRequest object"""
|
|
49
30
|
|
|
50
31
|
|
|
51
32
|
class UpdatePacksByIDResponseTypedDict(TypedDict):
|
cribl_control_plane/packs.py
CHANGED
|
@@ -722,7 +722,8 @@ class Packs(BaseSDK):
|
|
|
722
722
|
self,
|
|
723
723
|
*,
|
|
724
724
|
id: str,
|
|
725
|
-
source:
|
|
725
|
+
source: str,
|
|
726
|
+
allow_custom_functions: Optional[bool] = None,
|
|
726
727
|
minor: Optional[str] = None,
|
|
727
728
|
spec: Optional[str] = None,
|
|
728
729
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -735,9 +736,10 @@ class Packs(BaseSDK):
|
|
|
735
736
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack. Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
736
737
|
|
|
737
738
|
:param id: The <code>id</code> of the Pack to upgrade.
|
|
738
|
-
:param source:
|
|
739
|
-
:param
|
|
740
|
-
:param
|
|
739
|
+
:param source:
|
|
740
|
+
:param allow_custom_functions:
|
|
741
|
+
:param minor:
|
|
742
|
+
:param spec:
|
|
741
743
|
:param retries: Override the default retry configuration for this method
|
|
742
744
|
:param server_url: Override the default server URL for this method
|
|
743
745
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -755,9 +757,12 @@ class Packs(BaseSDK):
|
|
|
755
757
|
|
|
756
758
|
request = models.UpdatePacksByIDRequest(
|
|
757
759
|
id=id,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
760
|
+
pack_upgrade_request=models.PackUpgradeRequest(
|
|
761
|
+
allow_custom_functions=allow_custom_functions,
|
|
762
|
+
minor=minor,
|
|
763
|
+
source=source,
|
|
764
|
+
spec=spec,
|
|
765
|
+
),
|
|
761
766
|
)
|
|
762
767
|
|
|
763
768
|
req = self._build_request(
|
|
@@ -766,13 +771,20 @@ class Packs(BaseSDK):
|
|
|
766
771
|
base_url=base_url,
|
|
767
772
|
url_variables=url_variables,
|
|
768
773
|
request=request,
|
|
769
|
-
request_body_required=
|
|
774
|
+
request_body_required=True,
|
|
770
775
|
request_has_path_params=True,
|
|
771
776
|
request_has_query_params=True,
|
|
772
777
|
user_agent_header="user-agent",
|
|
773
778
|
accept_header_value="application/json",
|
|
774
779
|
http_headers=http_headers,
|
|
775
780
|
security=self.sdk_configuration.security,
|
|
781
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
782
|
+
request.pack_upgrade_request,
|
|
783
|
+
False,
|
|
784
|
+
False,
|
|
785
|
+
"json",
|
|
786
|
+
models.PackUpgradeRequest,
|
|
787
|
+
),
|
|
776
788
|
timeout_ms=timeout_ms,
|
|
777
789
|
)
|
|
778
790
|
|
|
@@ -818,7 +830,8 @@ class Packs(BaseSDK):
|
|
|
818
830
|
self,
|
|
819
831
|
*,
|
|
820
832
|
id: str,
|
|
821
|
-
source:
|
|
833
|
+
source: str,
|
|
834
|
+
allow_custom_functions: Optional[bool] = None,
|
|
822
835
|
minor: Optional[str] = None,
|
|
823
836
|
spec: Optional[str] = None,
|
|
824
837
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -831,9 +844,10 @@ class Packs(BaseSDK):
|
|
|
831
844
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack. Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
832
845
|
|
|
833
846
|
:param id: The <code>id</code> of the Pack to upgrade.
|
|
834
|
-
:param source:
|
|
835
|
-
:param
|
|
836
|
-
:param
|
|
847
|
+
:param source:
|
|
848
|
+
:param allow_custom_functions:
|
|
849
|
+
:param minor:
|
|
850
|
+
:param spec:
|
|
837
851
|
:param retries: Override the default retry configuration for this method
|
|
838
852
|
:param server_url: Override the default server URL for this method
|
|
839
853
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -851,9 +865,12 @@ class Packs(BaseSDK):
|
|
|
851
865
|
|
|
852
866
|
request = models.UpdatePacksByIDRequest(
|
|
853
867
|
id=id,
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
868
|
+
pack_upgrade_request=models.PackUpgradeRequest(
|
|
869
|
+
allow_custom_functions=allow_custom_functions,
|
|
870
|
+
minor=minor,
|
|
871
|
+
source=source,
|
|
872
|
+
spec=spec,
|
|
873
|
+
),
|
|
857
874
|
)
|
|
858
875
|
|
|
859
876
|
req = self._build_request_async(
|
|
@@ -862,13 +879,20 @@ class Packs(BaseSDK):
|
|
|
862
879
|
base_url=base_url,
|
|
863
880
|
url_variables=url_variables,
|
|
864
881
|
request=request,
|
|
865
|
-
request_body_required=
|
|
882
|
+
request_body_required=True,
|
|
866
883
|
request_has_path_params=True,
|
|
867
884
|
request_has_query_params=True,
|
|
868
885
|
user_agent_header="user-agent",
|
|
869
886
|
accept_header_value="application/json",
|
|
870
887
|
http_headers=http_headers,
|
|
871
888
|
security=self.sdk_configuration.security,
|
|
889
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
890
|
+
request.pack_upgrade_request,
|
|
891
|
+
False,
|
|
892
|
+
False,
|
|
893
|
+
"json",
|
|
894
|
+
models.PackUpgradeRequest,
|
|
895
|
+
),
|
|
872
896
|
timeout_ms=timeout_ms,
|
|
873
897
|
)
|
|
874
898
|
|
cribl_control_plane/statuses.py
CHANGED
|
@@ -13,7 +13,7 @@ class Statuses(BaseSDK):
|
|
|
13
13
|
def get(
|
|
14
14
|
self,
|
|
15
15
|
*,
|
|
16
|
-
|
|
16
|
+
group_id: Optional[str] = None,
|
|
17
17
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
18
|
server_url: Optional[str] = None,
|
|
19
19
|
timeout_ms: Optional[int] = None,
|
|
@@ -23,7 +23,7 @@ class Statuses(BaseSDK):
|
|
|
23
23
|
|
|
24
24
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
25
25
|
|
|
26
|
-
:param
|
|
26
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to get the status for.
|
|
27
27
|
:param retries: Override the default retry configuration for this method
|
|
28
28
|
:param server_url: Override the default server URL for this method
|
|
29
29
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -40,7 +40,7 @@ class Statuses(BaseSDK):
|
|
|
40
40
|
base_url = self._get_url(base_url, url_variables)
|
|
41
41
|
|
|
42
42
|
request = models.GetVersionStatusRequest(
|
|
43
|
-
|
|
43
|
+
group_id=group_id,
|
|
44
44
|
)
|
|
45
45
|
|
|
46
46
|
req = self._build_request(
|
|
@@ -100,7 +100,7 @@ class Statuses(BaseSDK):
|
|
|
100
100
|
async def get_async(
|
|
101
101
|
self,
|
|
102
102
|
*,
|
|
103
|
-
|
|
103
|
+
group_id: Optional[str] = None,
|
|
104
104
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
105
105
|
server_url: Optional[str] = None,
|
|
106
106
|
timeout_ms: Optional[int] = None,
|
|
@@ -110,7 +110,7 @@ class Statuses(BaseSDK):
|
|
|
110
110
|
|
|
111
111
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
112
112
|
|
|
113
|
-
:param
|
|
113
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to get the status for.
|
|
114
114
|
:param retries: Override the default retry configuration for this method
|
|
115
115
|
:param server_url: Override the default server URL for this method
|
|
116
116
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -127,7 +127,7 @@ class Statuses(BaseSDK):
|
|
|
127
127
|
base_url = self._get_url(base_url, url_variables)
|
|
128
128
|
|
|
129
129
|
request = models.GetVersionStatusRequest(
|
|
130
|
-
|
|
130
|
+
group_id=group_id,
|
|
131
131
|
)
|
|
132
132
|
|
|
133
133
|
req = self._build_request_async(
|