Skip to content

Commit bba82f2

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3
1 parent 74721a3 commit bba82f2

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed

entity/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,12 @@ Based on:
236236
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/entity.yaml
237237
- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy
238238
### Generated
239-
- [python v1.23.1] entity
239+
- [python v1.23.1] entity
240+
241+
## 2023-09-05 01:11:16
242+
### Changes
243+
Based on:
244+
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/entity.yaml
245+
- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy
246+
### Generated
247+
- [python v1.23.2] entity

entity/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ configVersion: 1.0.0
22
management:
33
docChecksum: da8519d9328e11a8d680212f59139216
44
docVersion: 1.0.0
5-
speakeasyVersion: 1.77.2
6-
generationVersion: 2.93.0
5+
speakeasyVersion: 1.78.3
6+
generationVersion: 2.96.3
77
generation:
88
sdkClassName: epilot
99
sdkFlattening: true
1010
singleTagPerOp: false
1111
telemetryEnabled: false
1212
features:
1313
python:
14-
core: 2.85.2
14+
core: 2.85.3
1515
globalSecurity: 2.81.1
1616
globalServerURLs: 2.82.0
1717
python:
18-
version: 1.23.1
18+
version: 1.23.2
1919
author: epilot
2020
description: Python Client SDK for Epilot
2121
maxMethodParams: 0

entity/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="epilot-entity",
13-
version="1.23.1",
13+
version="1.23.2",
1414
author="epilot",
1515
description="Python Client SDK for Epilot",
1616
long_description=long_description,

entity/src/epilot/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class SDKConfiguration:
1717
server_idx: int = 0
1818
language: str = 'python'
1919
openapi_doc_version: str = '1.0.0'
20-
sdk_version: str = '1.23.1'
21-
gen_version: str = '2.93.0'
20+
sdk_version: str = '1.23.2'
21+
gen_version: str = '2.96.3'
2222

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

entity/src/epilot/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)