Skip to content

Commit 3863a04

Browse files
committed
Release python client 0.0.9
1 parent cbce2f0 commit 3863a04

File tree

4 files changed

+431
-2
lines changed

4 files changed

+431
-2
lines changed

src/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "vectorize-client"
3-
version = "0.0.8"
3+
version = "0.0.9"
44
description = "Python client for the Vectorize API"
55
authors = [ "Vectorize <contact@vectorize.io>" ]
66
license = "MIT"

src/python/vectorize_client/api/pipelines_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ def _create_pipeline_serialize(
311311

312312
# authentication setting
313313
_auth_settings: List[str] = [
314+
'bearerAuth'
314315
]
315316

316317
return self.api_client.param_serialize(
@@ -574,6 +575,7 @@ def _get_pipelines_serialize(
574575

575576
# authentication setting
576577
_auth_settings: List[str] = [
578+
'bearerAuth'
577579
]
578580

579581
return self.api_client.param_serialize(

src/python/vectorize_client/configuration.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
AuthSettings = TypedDict(
114114
"AuthSettings",
115115
{
116+
"bearerAuth": BearerFormatAuthSetting,
116117
},
117118
total=False,
118119
)
@@ -161,6 +162,7 @@ class Configuration:
161162
in PEM format.
162163
:param retries: Number of retries for API requests.
163164
165+
:Example:
164166
"""
165167

166168
_default: ClassVar[Optional[Self]] = None
@@ -483,6 +485,14 @@ def auth_settings(self)-> AuthSettings:
483485
:return: The Auth Settings information dict.
484486
"""
485487
auth: AuthSettings = {}
488+
if self.access_token is not None:
489+
auth['bearerAuth'] = {
490+
'type': 'bearer',
491+
'in': 'header',
492+
'format': 'JWT',
493+
'key': 'Authorization',
494+
'value': 'Bearer ' + self.access_token
495+
}
486496
return auth
487497

488498
def to_debug_report(self) -> str:

0 commit comments

Comments
 (0)