cribl-control-plane 0.2.0b3__py3-none-any.whl → 0.2.0b4__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 +0 -5
- cribl_control_plane/tokens.py +6 -16
- {cribl_control_plane-0.2.0b3.dist-info → cribl_control_plane-0.2.0b4.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.2.0b3.dist-info → cribl_control_plane-0.2.0b4.dist-info}/RECORD +6 -7
- cribl_control_plane/models/loginop.py +0 -18
- {cribl_control_plane-0.2.0b3.dist-info → cribl_control_plane-0.2.0b4.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.2.
|
|
6
|
+
__version__: str = "0.2.0b4"
|
|
7
7
|
__openapi_doc_version__: str = "4.15.0-alpha.1760486888592-e1e43793"
|
|
8
8
|
__gen_version__: str = "2.723.11"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.2.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.2.0b4 2.723.11 4.15.0-alpha.1760486888592-e1e43793 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,
|
|
@@ -4907,8 +4906,6 @@ __all__ = [
|
|
|
4907
4906
|
"LoggedInUsersTypedDict",
|
|
4908
4907
|
"LoginInfo",
|
|
4909
4908
|
"LoginInfoTypedDict",
|
|
4910
|
-
"LoginResponse",
|
|
4911
|
-
"LoginResponseTypedDict",
|
|
4912
4909
|
"LokiAuthOauthHeader1",
|
|
4913
4910
|
"LokiAuthOauthHeader1TypedDict",
|
|
4914
4911
|
"LokiAuthOauthHeader2",
|
|
@@ -7873,8 +7870,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
7873
7870
|
"ListRoutesResponseTypedDict": ".listroutesop",
|
|
7874
7871
|
"LoginInfo": ".logininfo",
|
|
7875
7872
|
"LoginInfoTypedDict": ".logininfo",
|
|
7876
|
-
"LoginResponse": ".loginop",
|
|
7877
|
-
"LoginResponseTypedDict": ".loginop",
|
|
7878
7873
|
"LookupVersions": ".lookupversions",
|
|
7879
7874
|
"LookupVersionsTypedDict": ".lookupversions",
|
|
7880
7875
|
"LastMetrics": ".masterworkerentry",
|
cribl_control_plane/tokens.py
CHANGED
|
@@ -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.
|
|
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.
|
|
89
|
-
|
|
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.
|
|
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.
|
|
180
|
-
|
|
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", "*"):
|
|
@@ -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=
|
|
7
|
+
cribl_control_plane/_version.py,sha256=eZJsg15NFarEnu6bq1Ozf4GmUXXiQL9mQerx4rhdyao,546
|
|
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,7 +27,7 @@ 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=
|
|
30
|
+
cribl_control_plane/models/__init__.py,sha256=3aKMCUflhjChJGZWLCO8EItaGvJ6rNfxSDeVas5upYw,391155
|
|
31
31
|
cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
|
|
32
32
|
cribl_control_plane/models/authtoken.py,sha256=uW0aIs8j14CQzFM2ueY5GIWFulna91cigBWQ3oPlDgY,295
|
|
33
33
|
cribl_control_plane/models/branchinfo.py,sha256=jCX31O5TMG9jTjqigPvvUiBwpgPpVxHtSuhYrNykXiI,291
|
|
@@ -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
|
|
@@ -303,7 +302,7 @@ cribl_control_plane/sources.py,sha256=9JCNHdOGmMAGjBIYvzA7TSQsj6o6UEe89SHyQ_MGrS
|
|
|
303
302
|
cribl_control_plane/statuses.py,sha256=jVfnmt3M0aiKJ3tgB2WlMaCmKDPZCJoD-1Kh8p-37ZM,8013
|
|
304
303
|
cribl_control_plane/summaries.py,sha256=CtkNAxkMTArdUQhWHy7XqGPkO6DA-PvdwgVK-RHSkt0,8058
|
|
305
304
|
cribl_control_plane/teams.py,sha256=kSjUiS7cKiROcRDmTxhnnOeGIsqLZcP7MFCuv5Kgm1U,8844
|
|
306
|
-
cribl_control_plane/tokens.py,sha256=
|
|
305
|
+
cribl_control_plane/tokens.py,sha256=iP_0_Pl8LFgs_ektBTU-bvRjJq6JQ3q7qMWIeIIuXmc,7220
|
|
307
306
|
cribl_control_plane/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
308
307
|
cribl_control_plane/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
309
308
|
cribl_control_plane/utils/__init__.py,sha256=CAG0O76aEToGKXpT6Ft87Vd-iiQTh4XdBrQ37BVbsiM,5861
|
|
@@ -325,6 +324,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
|
|
|
325
324
|
cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
326
325
|
cribl_control_plane/versions.py,sha256=4xdTYbM84Xyjr5qkixqNpgn2q6V8aXVYXkEPDU2Ele0,1156
|
|
327
326
|
cribl_control_plane/versions_configs.py,sha256=5CKcfN4SzuyFgggrx6O8H_h3GhNyKSbfdVhSkVGZKi4,7284
|
|
328
|
-
cribl_control_plane-0.2.
|
|
329
|
-
cribl_control_plane-0.2.
|
|
330
|
-
cribl_control_plane-0.2.
|
|
327
|
+
cribl_control_plane-0.2.0b4.dist-info/METADATA,sha256=3epXN3DoGLMb_1P1K7orTz0aLDrhODZinGZ8sWoAqrg,38655
|
|
328
|
+
cribl_control_plane-0.2.0b4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
329
|
+
cribl_control_plane-0.2.0b4.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
|
|
File without changes
|