cribl-control-plane 0.1.1rc4__py3-none-any.whl → 0.1.1rc6__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.1rc4"
7
- __openapi_doc_version__: str = "4.15.0-alpha.1760543593986-a05c0ad4"
6
+ __version__: str = "0.1.1rc6"
7
+ __openapi_doc_version__: str = "4.15.0-alpha.1760607052180-31a53a17"
8
8
  __gen_version__: str = "2.723.11"
9
- __user_agent__: str = "speakeasy-sdk/python 0.1.1rc4 2.723.11 4.15.0-alpha.1760543593986-a05c0ad4 cribl-control-plane"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.1.1rc6 2.723.11 4.15.0-alpha.1760607052180-31a53a17 cribl-control-plane"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -1803,6 +1803,7 @@ 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
1806
1807
  from .lookupversions import LookupVersions, LookupVersionsTypedDict
1807
1808
  from .masterworkerentry import (
1808
1809
  LastMetrics,
@@ -4908,6 +4909,8 @@ __all__ = [
4908
4909
  "LoggedInUsersTypedDict",
4909
4910
  "LoginInfo",
4910
4911
  "LoginInfoTypedDict",
4912
+ "LoginResponse",
4913
+ "LoginResponseTypedDict",
4911
4914
  "LokiAuthOauthHeader1",
4912
4915
  "LokiAuthOauthHeader1TypedDict",
4913
4916
  "LokiAuthOauthHeader2",
@@ -7876,6 +7879,8 @@ _dynamic_imports: dict[str, str] = {
7876
7879
  "ListRoutesResponseTypedDict": ".listroutesop",
7877
7880
  "LoginInfo": ".logininfo",
7878
7881
  "LoginInfoTypedDict": ".logininfo",
7882
+ "LoginResponse": ".loginop",
7883
+ "LoginResponseTypedDict": ".loginop",
7879
7884
  "LookupVersions": ".lookupversions",
7880
7885
  "LookupVersionsTypedDict": ".lookupversions",
7881
7886
  "LastMetrics": ".masterworkerentry",
@@ -2,12 +2,16 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from cribl_control_plane.types import BaseModel
5
- from typing_extensions import TypedDict
5
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
6
7
 
7
8
 
8
9
  class AuthTokenTypedDict(TypedDict):
9
10
  token: str
11
+ force_password_change: bool
10
12
 
11
13
 
12
14
  class AuthToken(BaseModel):
13
15
  token: str
16
+
17
+ force_password_change: Annotated[bool, pydantic.Field(alias="forcePasswordChange")]
@@ -0,0 +1,18 @@
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
@@ -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>, 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</code>, 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>, 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</code>, 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.AuthToken:
21
+ ) -> models.LoginResponse:
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,8 +85,13 @@ class Tokens(BaseSDK):
85
85
  )
86
86
 
87
87
  if utils.match_response(http_res, "200", "application/json"):
88
- return unmarshal_json_response(models.AuthToken, http_res)
89
- if utils.match_response(http_res, ["401", "403", "429", "4XX"], "*"):
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"], "*"):
90
95
  http_res_text = utils.stream_to_text(http_res)
91
96
  raise errors.APIError("API error occurred", http_res, http_res_text)
92
97
  if utils.match_response(http_res, "5XX", "*"):
@@ -104,7 +109,7 @@ class Tokens(BaseSDK):
104
109
  server_url: Optional[str] = None,
105
110
  timeout_ms: Optional[int] = None,
106
111
  http_headers: Optional[Mapping[str, str]] = None,
107
- ) -> models.AuthToken:
112
+ ) -> models.LoginResponse:
108
113
  r"""Log in and fetch an authentication token
109
114
 
110
115
  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.
@@ -171,8 +176,13 @@ class Tokens(BaseSDK):
171
176
  )
172
177
 
173
178
  if utils.match_response(http_res, "200", "application/json"):
174
- return unmarshal_json_response(models.AuthToken, http_res)
175
- if utils.match_response(http_res, ["401", "403", "429", "4XX"], "*"):
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"], "*"):
176
186
  http_res_text = await utils.stream_to_text_async(http_res)
177
187
  raise errors.APIError("API error occurred", http_res, http_res_text)
178
188
  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.1rc4
3
+ Version: 0.1.1rc6
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=JJeSxLvveudpAeqXiloz_r2u2LmAZVOUSO3EirYHBQw,548
7
+ cribl_control_plane/_version.py,sha256=Qrz844hRIYjorbo-bnLn7wNOkgC5VmtaP6OefSpkI-U,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=xztoMdonWnLoDZM0HsRCpHLUZZxdQ37cNOhOYtkGqFQ,391644
30
+ cribl_control_plane/models/__init__.py,sha256=nu09MIFVLEvEBVnkucmjuQdhglQF-W7DPd6-VRGAx70,391833
31
31
  cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
32
- cribl_control_plane/models/authtoken.py,sha256=uW0aIs8j14CQzFM2ueY5GIWFulna91cigBWQ3oPlDgY,295
32
+ cribl_control_plane/models/authtoken.py,sha256=zudddIisuNlGsovLofJ7nIWVaSBWo8SmPicEC3RqHK4,443
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,6 +181,7 @@ 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
184
185
  cribl_control_plane/models/lookupversions.py,sha256=PLk5hD1WPEIoePfJbhllePawNTa1O7y4_sSkb6BCsUA,293
185
186
  cribl_control_plane/models/masterworkerentry.py,sha256=KT8bTu5t20ZwhybN8yz4MtG8CQZGpqv3I1JGjVItY7Q,2481
186
187
  cribl_control_plane/models/nodeactiveupgradestatus.py,sha256=knwgNh1octWr6oY-TadH0StJmzv0cktlJ4tc5pq_ChM,279
@@ -293,7 +294,7 @@ cribl_control_plane/models/uploadpackresponse.py,sha256=-B2ye6T8fc4WKBxVnufwryRs
293
294
  cribl_control_plane/models/useraccesscontrollist.py,sha256=UNM3mdqFByd9GAovAi26z9y-5H15hrKDzw0M-f-Pn2o,483
294
295
  cribl_control_plane/models/workertypes.py,sha256=1AaTkG_g67Vtoh0vYYrYVgRo41PvcK3cRm_G_r-JSgA,286
295
296
  cribl_control_plane/nodes.py,sha256=I4AnHbDlX3zNbvDfwgIZ6sv1yQTlkAGaQRoSzwkl0KM,17531
296
- cribl_control_plane/packs.py,sha256=1MpYnN5iUEXxHW6lIgnDN71Trc42xY_cxVS5_-TEwSQ,47681
297
+ cribl_control_plane/packs.py,sha256=qV0hifh9pfynbmVxQuxJFj1WORRKrp4SHfjeNIG2BOY,47691
297
298
  cribl_control_plane/pipelines.py,sha256=jeU-R5NDOsLXrV-5t7Cz-RPidsQ4KwNN4-_oW9iNK0s,36946
298
299
  cribl_control_plane/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
299
300
  cribl_control_plane/routes_sdk.py,sha256=aqJkB-EbLzA2NSFtu9N7ERta5BvIbpDRg7OZcO_ndkA,33197
@@ -304,7 +305,7 @@ cribl_control_plane/sources.py,sha256=9JCNHdOGmMAGjBIYvzA7TSQsj6o6UEe89SHyQ_MGrS
304
305
  cribl_control_plane/statuses.py,sha256=jVfnmt3M0aiKJ3tgB2WlMaCmKDPZCJoD-1Kh8p-37ZM,8013
305
306
  cribl_control_plane/summaries.py,sha256=CtkNAxkMTArdUQhWHy7XqGPkO6DA-PvdwgVK-RHSkt0,8058
306
307
  cribl_control_plane/teams.py,sha256=kSjUiS7cKiROcRDmTxhnnOeGIsqLZcP7MFCuv5Kgm1U,8844
307
- cribl_control_plane/tokens.py,sha256=iP_0_Pl8LFgs_ektBTU-bvRjJq6JQ3q7qMWIeIIuXmc,7220
308
+ cribl_control_plane/tokens.py,sha256=czRFZxhWmEm-BhXVKLpkJEszGkYNgDeoJAQAFRARli0,7758
308
309
  cribl_control_plane/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
309
310
  cribl_control_plane/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
310
311
  cribl_control_plane/utils/__init__.py,sha256=CAG0O76aEToGKXpT6Ft87Vd-iiQTh4XdBrQ37BVbsiM,5861
@@ -326,6 +327,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
326
327
  cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
327
328
  cribl_control_plane/versions.py,sha256=4xdTYbM84Xyjr5qkixqNpgn2q6V8aXVYXkEPDU2Ele0,1156
328
329
  cribl_control_plane/versions_configs.py,sha256=5CKcfN4SzuyFgggrx6O8H_h3GhNyKSbfdVhSkVGZKi4,7284
329
- cribl_control_plane-0.1.1rc4.dist-info/METADATA,sha256=IuGoA2wiQaeYAOs19GOMORm5k9Lgvl25JPpBpWx_TwY,40599
330
- cribl_control_plane-0.1.1rc4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
331
- cribl_control_plane-0.1.1rc4.dist-info/RECORD,,
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,,