cribl-control-plane 0.1.1rc6__py3-none-any.whl → 0.1.1rc7__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.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "cribl-control-plane"
6
- __version__: str = "0.1.1rc6"
7
- __openapi_doc_version__: str = "4.15.0-alpha.1760607052180-31a53a17"
6
+ __version__: str = "0.1.1rc7"
7
+ __openapi_doc_version__: str = "4.15.0-alpha.1760636051511-e9367475"
8
8
  __gen_version__: str = "2.723.11"
9
- __user_agent__: str = "speakeasy-sdk/python 0.1.1rc6 2.723.11 4.15.0-alpha.1760607052180-31a53a17 cribl-control-plane"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.1.1rc7 2.723.11 4.15.0-alpha.1760636051511-e9367475 cribl-control-plane"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -1803,7 +1803,6 @@ if TYPE_CHECKING:
1803
1803
  from .listpipelineop import ListPipelineResponse, ListPipelineResponseTypedDict
1804
1804
  from .listroutesop import ListRoutesResponse, ListRoutesResponseTypedDict
1805
1805
  from .logininfo import LoginInfo, LoginInfoTypedDict
1806
- from .loginop import LoginResponse, LoginResponseTypedDict
1807
1806
  from .lookupversions import LookupVersions, LookupVersionsTypedDict
1808
1807
  from .masterworkerentry import (
1809
1808
  LastMetrics,
@@ -4909,8 +4908,6 @@ __all__ = [
4909
4908
  "LoggedInUsersTypedDict",
4910
4909
  "LoginInfo",
4911
4910
  "LoginInfoTypedDict",
4912
- "LoginResponse",
4913
- "LoginResponseTypedDict",
4914
4911
  "LokiAuthOauthHeader1",
4915
4912
  "LokiAuthOauthHeader1TypedDict",
4916
4913
  "LokiAuthOauthHeader2",
@@ -7879,8 +7876,6 @@ _dynamic_imports: dict[str, str] = {
7879
7876
  "ListRoutesResponseTypedDict": ".listroutesop",
7880
7877
  "LoginInfo": ".logininfo",
7881
7878
  "LoginInfoTypedDict": ".logininfo",
7882
- "LoginResponse": ".loginop",
7883
- "LoginResponseTypedDict": ".loginop",
7884
7879
  "LookupVersions": ".lookupversions",
7885
7880
  "LookupVersionsTypedDict": ".lookupversions",
7886
7881
  "LastMetrics": ".masterworkerentry",
@@ -3,15 +3,18 @@
3
3
  from __future__ import annotations
4
4
  from cribl_control_plane.types import BaseModel
5
5
  import pydantic
6
- from typing_extensions import Annotated, TypedDict
6
+ from typing import Optional
7
+ from typing_extensions import Annotated, NotRequired, TypedDict
7
8
 
8
9
 
9
10
  class AuthTokenTypedDict(TypedDict):
10
11
  token: str
11
- force_password_change: bool
12
+ force_password_change: NotRequired[bool]
12
13
 
13
14
 
14
15
  class AuthToken(BaseModel):
15
16
  token: str
16
17
 
17
- force_password_change: Annotated[bool, pydantic.Field(alias="forcePasswordChange")]
18
+ force_password_change: Annotated[
19
+ Optional[bool], pydantic.Field(alias="forcePasswordChange")
20
+ ] = None
@@ -383,7 +383,7 @@ class Packs(BaseSDK):
383
383
  ) -> models.UploadPackResponse:
384
384
  r"""Upload a Pack file
385
385
 
386
- Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs source</code>, which you must call separately.
386
+ Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs</source>, which you must call separately.
387
387
 
388
388
  :param filename: Filename of the Pack file to upload.
389
389
  :param request_body: Binary file content
@@ -480,7 +480,7 @@ class Packs(BaseSDK):
480
480
  ) -> models.UploadPackResponse:
481
481
  r"""Upload a Pack file
482
482
 
483
- Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs source</code>, which you must call separately.
483
+ Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs</source>, which you must call separately.
484
484
 
485
485
  :param filename: Filename of the Pack file to upload.
486
486
  :param request_body: Binary file content
@@ -18,7 +18,7 @@ class Tokens(BaseSDK):
18
18
  server_url: Optional[str] = None,
19
19
  timeout_ms: Optional[int] = None,
20
20
  http_headers: Optional[Mapping[str, str]] = None,
21
- ) -> models.LoginResponse:
21
+ ) -> models.AuthToken:
22
22
  r"""Log in and fetch an authentication token
23
23
 
24
24
  This endpoint is unavailable on Cribl.Cloud. Instead, follow the instructions at https://docs.cribl.io/stream/api-tutorials/#criblcloud to get an Auth token for Cribl.Cloud.
@@ -85,13 +85,8 @@ class Tokens(BaseSDK):
85
85
  )
86
86
 
87
87
  if utils.match_response(http_res, "200", "application/json"):
88
- return models.LoginResponse(
89
- result=unmarshal_json_response(models.AuthToken, http_res), headers={}
90
- )
91
- if utils.match_response(http_res, "429", "*"):
92
- http_res_text = utils.stream_to_text(http_res)
93
- raise errors.APIError("API error occurred", http_res, http_res_text)
94
- if utils.match_response(http_res, ["401", "403", "4XX"], "*"):
88
+ return unmarshal_json_response(models.AuthToken, http_res)
89
+ if utils.match_response(http_res, ["401", "403", "429", "4XX"], "*"):
95
90
  http_res_text = utils.stream_to_text(http_res)
96
91
  raise errors.APIError("API error occurred", http_res, http_res_text)
97
92
  if utils.match_response(http_res, "5XX", "*"):
@@ -109,7 +104,7 @@ class Tokens(BaseSDK):
109
104
  server_url: Optional[str] = None,
110
105
  timeout_ms: Optional[int] = None,
111
106
  http_headers: Optional[Mapping[str, str]] = None,
112
- ) -> models.LoginResponse:
107
+ ) -> models.AuthToken:
113
108
  r"""Log in and fetch an authentication token
114
109
 
115
110
  This endpoint is unavailable on Cribl.Cloud. Instead, follow the instructions at https://docs.cribl.io/stream/api-tutorials/#criblcloud to get an Auth token for Cribl.Cloud.
@@ -176,13 +171,8 @@ class Tokens(BaseSDK):
176
171
  )
177
172
 
178
173
  if utils.match_response(http_res, "200", "application/json"):
179
- return models.LoginResponse(
180
- result=unmarshal_json_response(models.AuthToken, http_res), headers={}
181
- )
182
- if utils.match_response(http_res, "429", "*"):
183
- http_res_text = await utils.stream_to_text_async(http_res)
184
- raise errors.APIError("API error occurred", http_res, http_res_text)
185
- if utils.match_response(http_res, ["401", "403", "4XX"], "*"):
174
+ return unmarshal_json_response(models.AuthToken, http_res)
175
+ if utils.match_response(http_res, ["401", "403", "429", "4XX"], "*"):
186
176
  http_res_text = await utils.stream_to_text_async(http_res)
187
177
  raise errors.APIError("API error occurred", http_res, http_res_text)
188
178
  if utils.match_response(http_res, "5XX", "*"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cribl-control-plane
3
- Version: 0.1.1rc6
3
+ Version: 0.1.1rc7
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -4,7 +4,7 @@ cribl_control_plane/_hooks/clientcredentials.py,sha256=CeI19FzRb2V6kiNPgSFGn0CgI
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=Qrz844hRIYjorbo-bnLn7wNOkgC5VmtaP6OefSpkI-U,548
7
+ cribl_control_plane/_version.py,sha256=vKjJkKwqdQ9uuIjZyZSUyDPODfiTp9DuXXnod04LFtE,548
8
8
  cribl_control_plane/acl.py,sha256=8lvYOKAli4PzsQhOVaCU6YCwblPMh9jQo04L0r4HJuQ,9025
9
9
  cribl_control_plane/auth_sdk.py,sha256=3sjf1VoyWwfhSyuMDQLixgWISSf03BOZwmkiT8g5Ruw,626
10
10
  cribl_control_plane/basesdk.py,sha256=y4yIXSNVXLMd0sLS2htBFdTCI3gkPQbIWd-C671kg1I,12249
@@ -27,9 +27,9 @@ cribl_control_plane/health.py,sha256=N8pX8RHkJVtLFd4nZ8ypJPrzT_JezciEVry9s9qvCRc
27
27
  cribl_control_plane/hectokens.py,sha256=0EGgGGrM83m1YmTZwkN5S4xFkHQGnw1IZe3y6uMwmLw,19151
28
28
  cribl_control_plane/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
29
29
  cribl_control_plane/lakedatasets.py,sha256=VaacfDeQDMJKibABnkZibVMfOYxeh9ITcHKjM9QDqw8,46676
30
- cribl_control_plane/models/__init__.py,sha256=nu09MIFVLEvEBVnkucmjuQdhglQF-W7DPd6-VRGAx70,391833
30
+ cribl_control_plane/models/__init__.py,sha256=xztoMdonWnLoDZM0HsRCpHLUZZxdQ37cNOhOYtkGqFQ,391644
31
31
  cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
32
- cribl_control_plane/models/authtoken.py,sha256=zudddIisuNlGsovLofJ7nIWVaSBWo8SmPicEC3RqHK4,443
32
+ cribl_control_plane/models/authtoken.py,sha256=gtO4VNC8-vr6spO6HCtL_yFPm30sUdtn-_qajc_mLmI,528
33
33
  cribl_control_plane/models/branchinfo.py,sha256=jCX31O5TMG9jTjqigPvvUiBwpgPpVxHtSuhYrNykXiI,291
34
34
  cribl_control_plane/models/cacheconnection.py,sha256=IaqcKQhOxuY_SYdMpD2FqBGMbraqk8msS5DzkhvjHbQ,1802
35
35
  cribl_control_plane/models/cacheconnectionbackfillstatus.py,sha256=EFJtxJ8EULR0JI4SjDoIsYSxx7uGHk-ULOeSxSzTCSc,380
@@ -181,7 +181,6 @@ cribl_control_plane/models/listoutputop.py,sha256=Gzm5NcwbyuJ3xacm_emZeKwVn2HNPV
181
181
  cribl_control_plane/models/listpipelineop.py,sha256=w-tyP0jqc3YKsSceTQJYuhJ7v-ZqgZWVVfO527YFGFg,722
182
182
  cribl_control_plane/models/listroutesop.py,sha256=xqutne_6fjll4fIDk8uT7W7RVFB3dkIUealZLRUgDEA,704
183
183
  cribl_control_plane/models/logininfo.py,sha256=LK3bou-rX4W9HBu2HrR1z6eGibrhwY_y7dy0Z60ygXE,338
184
- cribl_control_plane/models/loginop.py,sha256=mt0vPoevhBrxRZtVoVV0iqbVJmWYC5N-imOGhm83Te8,478
185
184
  cribl_control_plane/models/lookupversions.py,sha256=PLk5hD1WPEIoePfJbhllePawNTa1O7y4_sSkb6BCsUA,293
186
185
  cribl_control_plane/models/masterworkerentry.py,sha256=KT8bTu5t20ZwhybN8yz4MtG8CQZGpqv3I1JGjVItY7Q,2481
187
186
  cribl_control_plane/models/nodeactiveupgradestatus.py,sha256=knwgNh1octWr6oY-TadH0StJmzv0cktlJ4tc5pq_ChM,279
@@ -294,7 +293,7 @@ cribl_control_plane/models/uploadpackresponse.py,sha256=-B2ye6T8fc4WKBxVnufwryRs
294
293
  cribl_control_plane/models/useraccesscontrollist.py,sha256=UNM3mdqFByd9GAovAi26z9y-5H15hrKDzw0M-f-Pn2o,483
295
294
  cribl_control_plane/models/workertypes.py,sha256=1AaTkG_g67Vtoh0vYYrYVgRo41PvcK3cRm_G_r-JSgA,286
296
295
  cribl_control_plane/nodes.py,sha256=I4AnHbDlX3zNbvDfwgIZ6sv1yQTlkAGaQRoSzwkl0KM,17531
297
- cribl_control_plane/packs.py,sha256=qV0hifh9pfynbmVxQuxJFj1WORRKrp4SHfjeNIG2BOY,47691
296
+ cribl_control_plane/packs.py,sha256=1MpYnN5iUEXxHW6lIgnDN71Trc42xY_cxVS5_-TEwSQ,47681
298
297
  cribl_control_plane/pipelines.py,sha256=jeU-R5NDOsLXrV-5t7Cz-RPidsQ4KwNN4-_oW9iNK0s,36946
299
298
  cribl_control_plane/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
300
299
  cribl_control_plane/routes_sdk.py,sha256=aqJkB-EbLzA2NSFtu9N7ERta5BvIbpDRg7OZcO_ndkA,33197
@@ -305,7 +304,7 @@ cribl_control_plane/sources.py,sha256=9JCNHdOGmMAGjBIYvzA7TSQsj6o6UEe89SHyQ_MGrS
305
304
  cribl_control_plane/statuses.py,sha256=jVfnmt3M0aiKJ3tgB2WlMaCmKDPZCJoD-1Kh8p-37ZM,8013
306
305
  cribl_control_plane/summaries.py,sha256=CtkNAxkMTArdUQhWHy7XqGPkO6DA-PvdwgVK-RHSkt0,8058
307
306
  cribl_control_plane/teams.py,sha256=kSjUiS7cKiROcRDmTxhnnOeGIsqLZcP7MFCuv5Kgm1U,8844
308
- cribl_control_plane/tokens.py,sha256=czRFZxhWmEm-BhXVKLpkJEszGkYNgDeoJAQAFRARli0,7758
307
+ cribl_control_plane/tokens.py,sha256=iP_0_Pl8LFgs_ektBTU-bvRjJq6JQ3q7qMWIeIIuXmc,7220
309
308
  cribl_control_plane/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
310
309
  cribl_control_plane/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
311
310
  cribl_control_plane/utils/__init__.py,sha256=CAG0O76aEToGKXpT6Ft87Vd-iiQTh4XdBrQ37BVbsiM,5861
@@ -327,6 +326,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
327
326
  cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
328
327
  cribl_control_plane/versions.py,sha256=4xdTYbM84Xyjr5qkixqNpgn2q6V8aXVYXkEPDU2Ele0,1156
329
328
  cribl_control_plane/versions_configs.py,sha256=5CKcfN4SzuyFgggrx6O8H_h3GhNyKSbfdVhSkVGZKi4,7284
330
- cribl_control_plane-0.1.1rc6.dist-info/METADATA,sha256=mij8briXPS9es_2pB4IRPYreT7KjYRMRkpk1DmbttFc,40599
331
- cribl_control_plane-0.1.1rc6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
332
- cribl_control_plane-0.1.1rc6.dist-info/RECORD,,
329
+ cribl_control_plane-0.1.1rc7.dist-info/METADATA,sha256=fIXT0fC0VZl2o7DfdYpyexl3WLCgVin1BPulZA14pcE,40599
330
+ cribl_control_plane-0.1.1rc7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
331
+ cribl_control_plane-0.1.1rc7.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .authtoken import AuthToken, AuthTokenTypedDict
5
- from cribl_control_plane.types import BaseModel
6
- from typing import Dict, List
7
- from typing_extensions import TypedDict
8
-
9
-
10
- class LoginResponseTypedDict(TypedDict):
11
- headers: Dict[str, List[str]]
12
- result: AuthTokenTypedDict
13
-
14
-
15
- class LoginResponse(BaseModel):
16
- headers: Dict[str, List[str]]
17
-
18
- result: AuthToken