File tree Expand file tree Collapse file tree 4 files changed +431
-2
lines changed Expand file tree Collapse file tree 4 files changed +431
-2
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " vectorize-client"
3- version = " 0.0.8 "
3+ version = " 0.0.9 "
44description = " Python client for the Vectorize API"
55authors = [ " Vectorize <contact@vectorize.io>" ]
66license = " MIT"
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 113113AuthSettings = 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 :
You can’t perform that action at this time.
0 commit comments