Skip to content

Commit 414557d

Browse files
committed
[sherlock-build] generated from 372209e
1 parent 372209e commit 414557d

12 files changed

Lines changed: 23 additions & 18 deletions

File tree

sherlock-python-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
2222
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
2323
2424
- API version: development
25-
- Package version: v1.6.71
25+
- Package version: v1.6.72
2626
- Generator version: 7.18.0-SNAPSHOT
2727
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2828

sherlock-python-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sherlock_python_client"
3-
version = "v1.6.71"
3+
version = "v1.6.72"
44
description = "Sherlock"
55
authors = [
66
{name = "DSP DevOps",email = "dsp-devops@broadinstitute.org"},

sherlock-python-client/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "sherlock-python-client"
25-
VERSION = "v1.6.71"
25+
VERSION = "v1.6.72"
2626
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",

sherlock-python-client/sherlock_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "v1.6.71"
18+
__version__ = "v1.6.72"
1919

2020
# Define package exports
2121
__all__ = [

sherlock-python-client/sherlock_python_client/api_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'OpenAPI-Generator/v1.6.71/python'
95+
self.user_agent = 'OpenAPI-Generator/v1.6.72/python'
9696
self.client_side_validation = configuration.client_side_validation
9797

9898
def __enter__(self):
@@ -313,7 +313,7 @@ def response_deserialize(
313313
return_data = self.__deserialize_file(response_data)
314314
elif response_type is not None:
315315
match = None
316-
content_type = response_data.getheader('content-type')
316+
content_type = response_data.headers.get('content-type')
317317
if content_type is not None:
318318
match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
319319
encoding = match.group(1) if match else "utf-8"
@@ -330,7 +330,7 @@ def response_deserialize(
330330
return ApiResponse(
331331
status_code = response_data.status,
332332
data = return_data,
333-
headers = response_data.getheaders(),
333+
headers = response_data.headers,
334334
raw_data = response_data.data
335335
)
336336

@@ -702,7 +702,7 @@ def __deserialize_file(self, response):
702702
os.close(fd)
703703
os.remove(path)
704704

705-
content_disposition = response.getheader("Content-Disposition")
705+
content_disposition = response.headers.get("Content-Disposition")
706706
if content_disposition:
707707
m = re.search(
708708
r'filename=[\'"]?([^\'"\s]+)[\'"]?',

sherlock-python-client/sherlock_python_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def to_debug_report(self) -> str:
507507
"OS: {env}\n"\
508508
"Python Version: {pyversion}\n"\
509509
"Version of the API: development\n"\
510-
"SDK Package Version: v1.6.71".\
510+
"SDK Package Version: v1.6.72".\
511511
format(env=sys.platform, pyversion=sys.version)
512512

513513
def get_host_settings(self) -> List[HostSetting]:

sherlock-python-client/sherlock_python_client/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(
129129
self.body = http_resp.data.decode('utf-8')
130130
except Exception:
131131
pass
132-
self.headers = http_resp.getheaders()
132+
self.headers = http_resp.headers
133133

134134
@classmethod
135135
def from_response(

sherlock-python-client/sherlock_python_client/rest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,17 @@ def read(self):
4949
self.data = self.response.data
5050
return self.data
5151

52+
@property
53+
def headers(self):
54+
"""Returns a dictionary of response headers."""
55+
return self.response.headers
56+
5257
def getheaders(self):
53-
"""Returns a dictionary of the response headers."""
58+
"""Returns a dictionary of the response headers; use ``headers`` instead."""
5459
return self.response.headers
5560

5661
def getheader(self, name, default=None):
57-
"""Returns a given response header."""
62+
"""Returns a given response header; use ``headers.get()`` instead."""
5863
return self.response.headers.get(name, default)
5964

6065

sherlock-python-client/sherlock_python_client_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
2222
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
2323
2424
- API version: development
25-
- Package version: v1.6.71
25+
- Package version: v1.6.72
2626
- Generator version: 7.18.0-SNAPSHOT
2727
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2828

sherlock-typescript-client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @sherlock-js-client/sherlock@v1.6.71
1+
# @sherlock-js-client/sherlock@v1.6.72
22

33
A TypeScript SDK client for the sherlock.dsp-devops-prod.broadinstitute.org API.
44

@@ -236,7 +236,7 @@ and is automatically generated by the
236236
[OpenAPI Generator](https://openapi-generator.tech) project:
237237

238238
- API version: `development`
239-
- Package version: `v1.6.71`
239+
- Package version: `v1.6.72`
240240
- Generator version: `7.18.0-SNAPSHOT`
241241
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
242242

0 commit comments

Comments
 (0)