Skip to content

Commit 2cbe428

Browse files
authored
Merge pull request #43 from airbytehq/speakeasy-sdk-regen-1693613561
chore: speakeasy sdk regeneration - Generate
2 parents 204b749 + b6c9671 commit 2cbe428

File tree

5 files changed

+39
-16
lines changed

5 files changed

+39
-16
lines changed

RELEASES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,4 +528,24 @@ Based on:
528528
### Generated
529529
- [python v0.35.0] .
530530
### Releases
531-
- [PyPI v0.35.0] https://pypi.org/project/airbyte-api/0.35.0 - .
531+
- [PyPI v0.35.0] https://pypi.org/project/airbyte-api/0.35.0 - .
532+
533+
## 2023-09-02 00:12:38
534+
### Changes
535+
Based on:
536+
- OpenAPI Doc 1.0.0
537+
- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy
538+
### Generated
539+
- [python v0.35.1] .
540+
### Releases
541+
- [PyPI v0.35.1] https://pypi.org/project/airbyte-api/0.35.1 - .
542+
543+
## 2023-09-05 00:12:47
544+
### Changes
545+
Based on:
546+
- OpenAPI Doc 1.0.0
547+
- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy
548+
### Generated
549+
- [python v0.35.2] .
550+
### Releases
551+
- [PyPI v0.35.2] https://pypi.org/project/airbyte-api/0.35.2 - .

gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 677c33932664e2e3ad3b815e949e0aa9
44
docVersion: 1.0.0
5-
speakeasyVersion: 1.77.0
6-
generationVersion: 2.91.2
5+
speakeasyVersion: 1.78.3
6+
generationVersion: 2.96.3
77
generation:
88
comments:
99
disableComments: false
@@ -15,12 +15,12 @@ generation:
1515
telemetryEnabled: true
1616
features:
1717
python:
18-
core: 2.85.0
18+
core: 2.85.3
1919
globalSecurity: 2.81.1
2020
globalServerURLs: 2.82.0
2121
includes: 2.81.1
2222
python:
23-
version: 0.35.0
23+
version: 0.35.2
2424
author: Airbyte
2525
clientServerStatusCodesAsErrors: true
2626
description: Python Client SDK for Airbyte API

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="airbyte-api",
13-
version="0.35.0",
13+
version="0.35.2",
1414
author="Airbyte",
1515
description="Python Client SDK for Airbyte API",
1616
long_description=long_description,

src/airbyte/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SDKConfiguration:
1818
server_idx: int = 0
1919
language: str = 'python'
2020
openapi_doc_version: str = '1.0.0'
21-
sdk_version: str = '0.35.0'
22-
gen_version: str = '2.91.2'
21+
sdk_version: str = '0.35.2'
22+
gen_version: str = '2.96.3'
2323

2424
def get_server_details(self) -> tuple[str, dict[str, str]]:
2525
if self.server_url:

src/airbyte/utils/utils.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict,
112112
client.client.headers[header_name] = value
113113
elif scheme_type == 'http':
114114
if sub_type == 'bearer':
115-
client.client.headers[header_name] = value.lower().startswith('bearer ') and value or f'Bearer {value}'
115+
client.client.headers[header_name] = value.lower().startswith(
116+
'bearer ') and value or f'Bearer {value}'
116117
else:
117118
raise Exception('not supported')
118119
else:
@@ -235,7 +236,7 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str:
235236

236237

237238
def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[
238-
str, list[str]]:
239+
str, list[str]]:
239240
params: dict[str, list[str]] = {}
240241

241242
param_fields: Tuple[Field, ...] = fields(clazz)
@@ -377,7 +378,7 @@ def _get_query_param_field_name(obj_field: Field) -> str:
377378

378379

379380
def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[
380-
str, list[str]]:
381+
str, list[str]]:
381382
return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter)
382383

383384

@@ -391,9 +392,9 @@ def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delim
391392

392393

393394
def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[
394-
str, any, any]:
395+
str, any, any]:
395396
if request is None:
396-
return None, None, None, None
397+
return None, None, None
397398

398399
if not is_dataclass(request) or not hasattr(request, request_field_name):
399400
return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method],
@@ -486,7 +487,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str,
486487

487488

488489
def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[
489-
str, list[str]]:
490+
str, list[str]]:
490491
if existing is None:
491492
existing = []
492493

@@ -604,7 +605,8 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f
604605
items.append(_val_to_string(value))
605606

606607
if len(items) > 0:
607-
params[field_name] = [delimiter.join([str(item) for item in items])]
608+
params[field_name] = [delimiter.join(
609+
[str(item) for item in items])]
608610
else:
609611
params[field_name] = [_val_to_string(obj)]
610612

@@ -681,7 +683,8 @@ def unmarshal_json(data, typ):
681683
try:
682684
out = unmarshal.from_dict({"res": json_dict})
683685
except AttributeError as attr_err:
684-
raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err
686+
raise AttributeError(
687+
f'unable to unmarshal {data} as {typ}') from attr_err
685688
return out.res
686689

687690

0 commit comments

Comments
 (0)