cribl-control-plane 0.0.21a1__py3-none-any.whl → 0.0.21a2__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 +2 -2
- cribl_control_plane/models/__init__.py +12 -0
- cribl_control_plane/models/updatepacksop.py +59 -13
- cribl_control_plane/packs.py +19 -16
- {cribl_control_plane-0.0.21a1.dist-info → cribl_control_plane-0.0.21a2.dist-info}/METADATA +5 -2
- {cribl_control_plane-0.0.21a1.dist-info → cribl_control_plane-0.0.21a2.dist-info}/RECORD +7 -7
- {cribl_control_plane-0.0.21a1.dist-info → cribl_control_plane-0.0.21a2.dist-info}/WHEEL +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.0.
|
|
6
|
+
__version__: str = "0.0.21a2"
|
|
7
7
|
__openapi_doc_version__: str = "4.14.0-alpha.1753968519625-08e89eb4"
|
|
8
8
|
__gen_version__: str = "2.660.0"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.21a2 2.660.0 4.14.0-alpha.1753968519625-08e89eb4 cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -4748,7 +4748,11 @@ if TYPE_CHECKING:
|
|
|
4748
4748
|
UpdatePacksByIDResponseTypedDict,
|
|
4749
4749
|
)
|
|
4750
4750
|
from .updatepacksop import (
|
|
4751
|
+
UpdatePacksFile,
|
|
4752
|
+
UpdatePacksFileTypedDict,
|
|
4751
4753
|
UpdatePacksRequest,
|
|
4754
|
+
UpdatePacksRequestBody,
|
|
4755
|
+
UpdatePacksRequestBodyTypedDict,
|
|
4752
4756
|
UpdatePacksRequestTypedDict,
|
|
4753
4757
|
UpdatePacksResponse,
|
|
4754
4758
|
UpdatePacksResponseTypedDict,
|
|
@@ -9165,7 +9169,11 @@ __all__ = [
|
|
|
9165
9169
|
"UpdatePacksByIDRequestTypedDict",
|
|
9166
9170
|
"UpdatePacksByIDResponse",
|
|
9167
9171
|
"UpdatePacksByIDResponseTypedDict",
|
|
9172
|
+
"UpdatePacksFile",
|
|
9173
|
+
"UpdatePacksFileTypedDict",
|
|
9168
9174
|
"UpdatePacksRequest",
|
|
9175
|
+
"UpdatePacksRequestBody",
|
|
9176
|
+
"UpdatePacksRequestBodyTypedDict",
|
|
9169
9177
|
"UpdatePacksRequestTypedDict",
|
|
9170
9178
|
"UpdatePacksResponse",
|
|
9171
9179
|
"UpdatePacksResponseTypedDict",
|
|
@@ -13584,7 +13592,11 @@ _dynamic_imports: dict[str, str] = {
|
|
|
13584
13592
|
"UpdatePacksByIDRequestTypedDict": ".updatepacksbyidop",
|
|
13585
13593
|
"UpdatePacksByIDResponse": ".updatepacksbyidop",
|
|
13586
13594
|
"UpdatePacksByIDResponseTypedDict": ".updatepacksbyidop",
|
|
13595
|
+
"UpdatePacksFile": ".updatepacksop",
|
|
13596
|
+
"UpdatePacksFileTypedDict": ".updatepacksop",
|
|
13587
13597
|
"UpdatePacksRequest": ".updatepacksop",
|
|
13598
|
+
"UpdatePacksRequestBody": ".updatepacksop",
|
|
13599
|
+
"UpdatePacksRequestBodyTypedDict": ".updatepacksop",
|
|
13588
13600
|
"UpdatePacksRequestTypedDict": ".updatepacksop",
|
|
13589
13601
|
"UpdatePacksResponse": ".updatepacksop",
|
|
13590
13602
|
"UpdatePacksResponseTypedDict": ".updatepacksop",
|
|
@@ -2,37 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from cribl_control_plane.types import BaseModel
|
|
5
|
-
from cribl_control_plane.utils import
|
|
5
|
+
from cribl_control_plane.utils import (
|
|
6
|
+
FieldMetadata,
|
|
7
|
+
MultipartFormMetadata,
|
|
8
|
+
QueryParamMetadata,
|
|
9
|
+
RequestMetadata,
|
|
10
|
+
)
|
|
6
11
|
import io
|
|
12
|
+
import pydantic
|
|
7
13
|
from typing import Any, Dict, IO, List, Optional, Union
|
|
8
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
15
|
|
|
10
16
|
|
|
17
|
+
class UpdatePacksFileTypedDict(TypedDict):
|
|
18
|
+
file_name: str
|
|
19
|
+
content: Union[bytes, IO[bytes], io.BufferedReader]
|
|
20
|
+
content_type: NotRequired[str]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class UpdatePacksFile(BaseModel):
|
|
24
|
+
file_name: Annotated[
|
|
25
|
+
str, pydantic.Field(alias="fileName"), FieldMetadata(multipart=True)
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
content: Annotated[
|
|
29
|
+
Union[bytes, IO[bytes], io.BufferedReader],
|
|
30
|
+
pydantic.Field(alias=""),
|
|
31
|
+
FieldMetadata(multipart=MultipartFormMetadata(content=True)),
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
content_type: Annotated[
|
|
35
|
+
Optional[str],
|
|
36
|
+
pydantic.Field(alias="Content-Type"),
|
|
37
|
+
FieldMetadata(multipart=True),
|
|
38
|
+
] = None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class UpdatePacksRequestBodyTypedDict(TypedDict):
|
|
42
|
+
r"""multipart upload of the pack file"""
|
|
43
|
+
|
|
44
|
+
file: UpdatePacksFileTypedDict
|
|
45
|
+
r"""The pack file to upload"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class UpdatePacksRequestBody(BaseModel):
|
|
49
|
+
r"""multipart upload of the pack file"""
|
|
50
|
+
|
|
51
|
+
file: Annotated[
|
|
52
|
+
UpdatePacksFile, FieldMetadata(multipart=MultipartFormMetadata(file=True))
|
|
53
|
+
]
|
|
54
|
+
r"""The pack file to upload"""
|
|
55
|
+
|
|
56
|
+
|
|
11
57
|
class UpdatePacksRequestTypedDict(TypedDict):
|
|
58
|
+
filename: str
|
|
59
|
+
r"""the file to upload"""
|
|
12
60
|
size: int
|
|
13
61
|
r"""Size of the pack file in bytes"""
|
|
14
|
-
request_body:
|
|
15
|
-
r"""file
|
|
16
|
-
filename: NotRequired[str]
|
|
17
|
-
r"""the file to upload"""
|
|
62
|
+
request_body: UpdatePacksRequestBodyTypedDict
|
|
63
|
+
r"""multipart upload of the pack file"""
|
|
18
64
|
|
|
19
65
|
|
|
20
66
|
class UpdatePacksRequest(BaseModel):
|
|
67
|
+
filename: Annotated[
|
|
68
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
69
|
+
]
|
|
70
|
+
r"""the file to upload"""
|
|
71
|
+
|
|
21
72
|
size: Annotated[
|
|
22
73
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
23
74
|
]
|
|
24
75
|
r"""Size of the pack file in bytes"""
|
|
25
76
|
|
|
26
77
|
request_body: Annotated[
|
|
27
|
-
|
|
78
|
+
UpdatePacksRequestBody,
|
|
79
|
+
FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")),
|
|
28
80
|
]
|
|
29
|
-
r"""file
|
|
30
|
-
|
|
31
|
-
filename: Annotated[
|
|
32
|
-
Optional[str],
|
|
33
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
34
|
-
] = None
|
|
35
|
-
r"""the file to upload"""
|
|
81
|
+
r"""multipart upload of the pack file"""
|
|
36
82
|
|
|
37
83
|
|
|
38
84
|
class UpdatePacksResponseTypedDict(TypedDict):
|
cribl_control_plane/packs.py
CHANGED
|
@@ -6,8 +6,7 @@ from cribl_control_plane._hooks import HookContext
|
|
|
6
6
|
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
7
7
|
from cribl_control_plane.utils import get_security_from_env
|
|
8
8
|
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
-
import
|
|
10
|
-
from typing import Any, IO, List, Mapping, Optional, Union
|
|
9
|
+
from typing import Any, List, Mapping, Optional, Union
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
class Packs(BaseSDK):
|
|
@@ -452,9 +451,9 @@ class Packs(BaseSDK):
|
|
|
452
451
|
def update_packs(
|
|
453
452
|
self,
|
|
454
453
|
*,
|
|
454
|
+
filename: str,
|
|
455
455
|
size: int,
|
|
456
|
-
|
|
457
|
-
filename: Optional[str] = None,
|
|
456
|
+
file: Union[models.UpdatePacksFile, models.UpdatePacksFileTypedDict],
|
|
458
457
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
459
458
|
server_url: Optional[str] = None,
|
|
460
459
|
timeout_ms: Optional[int] = None,
|
|
@@ -464,9 +463,9 @@ class Packs(BaseSDK):
|
|
|
464
463
|
|
|
465
464
|
Upload Pack
|
|
466
465
|
|
|
467
|
-
:param size: Size of the pack file in bytes
|
|
468
|
-
:param request_body: file data
|
|
469
466
|
:param filename: the file to upload
|
|
467
|
+
:param size: Size of the pack file in bytes
|
|
468
|
+
:param file: The pack file to upload
|
|
470
469
|
:param retries: Override the default retry configuration for this method
|
|
471
470
|
:param server_url: Override the default server URL for this method
|
|
472
471
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -485,7 +484,9 @@ class Packs(BaseSDK):
|
|
|
485
484
|
request = models.UpdatePacksRequest(
|
|
486
485
|
filename=filename,
|
|
487
486
|
size=size,
|
|
488
|
-
request_body=
|
|
487
|
+
request_body=models.UpdatePacksRequestBody(
|
|
488
|
+
file=utils.get_pydantic_model(file, models.UpdatePacksFile),
|
|
489
|
+
),
|
|
489
490
|
)
|
|
490
491
|
|
|
491
492
|
req = self._build_request(
|
|
@@ -505,8 +506,8 @@ class Packs(BaseSDK):
|
|
|
505
506
|
request.request_body,
|
|
506
507
|
False,
|
|
507
508
|
False,
|
|
508
|
-
"
|
|
509
|
-
|
|
509
|
+
"multipart",
|
|
510
|
+
models.UpdatePacksRequestBody,
|
|
510
511
|
),
|
|
511
512
|
timeout_ms=timeout_ms,
|
|
512
513
|
)
|
|
@@ -552,9 +553,9 @@ class Packs(BaseSDK):
|
|
|
552
553
|
async def update_packs_async(
|
|
553
554
|
self,
|
|
554
555
|
*,
|
|
556
|
+
filename: str,
|
|
555
557
|
size: int,
|
|
556
|
-
|
|
557
|
-
filename: Optional[str] = None,
|
|
558
|
+
file: Union[models.UpdatePacksFile, models.UpdatePacksFileTypedDict],
|
|
558
559
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
559
560
|
server_url: Optional[str] = None,
|
|
560
561
|
timeout_ms: Optional[int] = None,
|
|
@@ -564,9 +565,9 @@ class Packs(BaseSDK):
|
|
|
564
565
|
|
|
565
566
|
Upload Pack
|
|
566
567
|
|
|
567
|
-
:param size: Size of the pack file in bytes
|
|
568
|
-
:param request_body: file data
|
|
569
568
|
:param filename: the file to upload
|
|
569
|
+
:param size: Size of the pack file in bytes
|
|
570
|
+
:param file: The pack file to upload
|
|
570
571
|
:param retries: Override the default retry configuration for this method
|
|
571
572
|
:param server_url: Override the default server URL for this method
|
|
572
573
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -585,7 +586,9 @@ class Packs(BaseSDK):
|
|
|
585
586
|
request = models.UpdatePacksRequest(
|
|
586
587
|
filename=filename,
|
|
587
588
|
size=size,
|
|
588
|
-
request_body=
|
|
589
|
+
request_body=models.UpdatePacksRequestBody(
|
|
590
|
+
file=utils.get_pydantic_model(file, models.UpdatePacksFile),
|
|
591
|
+
),
|
|
589
592
|
)
|
|
590
593
|
|
|
591
594
|
req = self._build_request_async(
|
|
@@ -605,8 +608,8 @@ class Packs(BaseSDK):
|
|
|
605
608
|
request.request_body,
|
|
606
609
|
False,
|
|
607
610
|
False,
|
|
608
|
-
"
|
|
609
|
-
|
|
611
|
+
"multipart",
|
|
612
|
+
models.UpdatePacksRequestBody,
|
|
610
613
|
),
|
|
611
614
|
timeout_ms=timeout_ms,
|
|
612
615
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.21a2
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -324,7 +324,10 @@ with CriblControlPlane(
|
|
|
324
324
|
),
|
|
325
325
|
) as ccp_client:
|
|
326
326
|
|
|
327
|
-
res = ccp_client.packs.update_packs(
|
|
327
|
+
res = ccp_client.packs.update_packs(filename="example.file", size=779474, file={
|
|
328
|
+
"file_name": "example.file",
|
|
329
|
+
"content": open("example.file", "rb"),
|
|
330
|
+
})
|
|
328
331
|
|
|
329
332
|
# Handle response
|
|
330
333
|
print(res)
|
|
@@ -4,7 +4,7 @@ cribl_control_plane/_hooks/clientcredentials.py,sha256=gVQkktlv3q4-AHOdbQl5r8i-G
|
|
|
4
4
|
cribl_control_plane/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
5
5
|
cribl_control_plane/_hooks/sdkhooks.py,sha256=ggXjME1_Rdv8CVCg1XHqB83eYtbxzKyhXyfQ36Yc1gA,2816
|
|
6
6
|
cribl_control_plane/_hooks/types.py,sha256=Tw_C4zTZm01rW_89VDEUpvQ8KQr1WxN0Gu_-s_fYSPc,2998
|
|
7
|
-
cribl_control_plane/_version.py,sha256=
|
|
7
|
+
cribl_control_plane/_version.py,sha256=JhVQal2YcNAqga4bHbJcNV5I-_-wWUMmDykvzwR6Ev8,546
|
|
8
8
|
cribl_control_plane/auth_sdk.py,sha256=Jxw8hPHbBFay5eXcaRBtgdCC06mh5XHkRbZcIM0vvB8,7431
|
|
9
9
|
cribl_control_plane/basesdk.py,sha256=amvvB5iPT7c-L6NLo2Rhu2f7xWaapsa6OfQ37SICXOw,11954
|
|
10
10
|
cribl_control_plane/destinations.py,sha256=9L_VzqiAh8xAN4JNBsU7FT7ZFRiBuhtf-5mJBCbZj-g,65733
|
|
@@ -20,7 +20,7 @@ cribl_control_plane/groups_sdk.py,sha256=9tFiyKLd65XO-eTsLs74bUqE3g_0CJYeJ--vK-H
|
|
|
20
20
|
cribl_control_plane/health.py,sha256=nK_Q4lDXi8zkfAqcIv9X4zBGi8BzomaBQWBD7TsSwLk,6743
|
|
21
21
|
cribl_control_plane/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
22
22
|
cribl_control_plane/lake.py,sha256=dHWnoO4KKOO8fncrdOqnc2sN4nGAWc6nX4UdNP4kx40,46484
|
|
23
|
-
cribl_control_plane/models/__init__.py,sha256=
|
|
23
|
+
cribl_control_plane/models/__init__.py,sha256=OCkOOnwz2j0N06eU1Euked1cuKNw0zVhn_Nqze67go8,578173
|
|
24
24
|
cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
|
|
25
25
|
cribl_control_plane/models/appmode.py,sha256=5xRJz9oP5ah4b6dcay4Q1IbQ9irm6k6x2BrTNysIMY4,300
|
|
26
26
|
cribl_control_plane/models/authtoken.py,sha256=uW0aIs8j14CQzFM2ueY5GIWFulna91cigBWQ3oPlDgY,295
|
|
@@ -260,12 +260,12 @@ cribl_control_plane/models/updateinputbyidop.py,sha256=DtufjoD9UEPnKT2QOggfMDB1P
|
|
|
260
260
|
cribl_control_plane/models/updateinputhectokenbyidandtokenop.py,sha256=-Q8ZP1yDmQmB9aylQNTs4zR1q6NH-Gi2fhlyiDyqWKI,1677
|
|
261
261
|
cribl_control_plane/models/updateoutputbyidop.py,sha256=odGoTLgvR_AEYizuVMKjcDeB4Uua3BX_U-7OHw7wHiU,1333
|
|
262
262
|
cribl_control_plane/models/updatepacksbyidop.py,sha256=nQeRQF-NTOCRMWz_gXfYlN0-I2OMM8Rovh_vAq73wzw,1965
|
|
263
|
-
cribl_control_plane/models/updatepacksop.py,sha256=
|
|
263
|
+
cribl_control_plane/models/updatepacksop.py,sha256=oH7fcrk4uBTiD0bXJFvavUTonH0G0c63GRPg7CCLlgI,2669
|
|
264
264
|
cribl_control_plane/models/updatepipelinebyidop.py,sha256=CPCiszliWVcewMyZ26_R8OvtbJA8RwrEj_XQFoZTSJg,1420
|
|
265
265
|
cribl_control_plane/models/updateroutesbyidop.py,sha256=k6vejvOHHqyfp1oR3aDXEXYIUu6NeRHBl7s9k-jcyiE,1440
|
|
266
266
|
cribl_control_plane/models/updateworkersrestartop.py,sha256=OwX1snIrUTfghc0Pb2PpI5IO6NS-aL0BOMzWqLl8GAA,787
|
|
267
267
|
cribl_control_plane/models/useraccesscontrollist.py,sha256=UNM3mdqFByd9GAovAi26z9y-5H15hrKDzw0M-f-Pn2o,483
|
|
268
|
-
cribl_control_plane/packs.py,sha256=
|
|
268
|
+
cribl_control_plane/packs.py,sha256=Q6JnsLchHLbDb7lPDfS2AzGzrXqb-9QQ-uBOyHkeqUo,40014
|
|
269
269
|
cribl_control_plane/pipelines.py,sha256=L-HbP4gyl05hxb4-HNvkFrk1w6xFccfNr4-AJy3Vjxo,36038
|
|
270
270
|
cribl_control_plane/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
271
271
|
cribl_control_plane/routes_sdk.py,sha256=bxL7KZKdw4Ot78Q3V4Ea5SWrhnEM0fHdRUwQRDeF0Oc,31227
|
|
@@ -294,6 +294,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
|
|
|
294
294
|
cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
295
295
|
cribl_control_plane/versioning.py,sha256=-bUutXEf__ewPHzgZshBImZZyQILigzXp1H8ZBCFBbQ,93847
|
|
296
296
|
cribl_control_plane/workers_sdk.py,sha256=qEt_s-Zfg8zyzWEHnOtqYzTiNzFSwEalG-1lSYzVJWc,22666
|
|
297
|
-
cribl_control_plane-0.0.
|
|
298
|
-
cribl_control_plane-0.0.
|
|
299
|
-
cribl_control_plane-0.0.
|
|
297
|
+
cribl_control_plane-0.0.21a2.dist-info/METADATA,sha256=BX5vxlOINc69mlWSWeqdyQtOuN6YOTwBsye88qtOMSI,32093
|
|
298
|
+
cribl_control_plane-0.0.21a2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
299
|
+
cribl_control_plane-0.0.21a2.dist-info/RECORD,,
|
|
File without changes
|