Skip to content

Commit

Permalink
[sherlock-build] generated from 3fae2a4
Browse files Browse the repository at this point in the history
  • Loading branch information
broadbot committed Jan 6, 2025
1 parent 3fae2a4 commit d6a13da
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sherlock-python-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: development
- Package version: v1.6.22
- Package version: v1.6.23
- Generator version: 7.11.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sherlock_python_client"
version = "v1.6.22"
version = "v1.6.23"
description = "Sherlock"
authors = ["DSP DevOps <[email protected]>"]
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "sherlock-python-client"
VERSION = "v1.6.22"
VERSION = "v1.6.23"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/sherlock_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "v1.6.22"
__version__ = "v1.6.23"

# import apis into sdk package
from sherlock_python_client.api.app_versions_api import AppVersionsApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v1.6.22/python'
self.user_agent = 'OpenAPI-Generator/v1.6.23/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: development\n"\
"SDK Package Version: v1.6.22".\
"SDK Package Version: v1.6.23".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
17 changes: 17 additions & 0 deletions sherlock-python-client/sherlock_python_client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ def from_response(
if http_resp.status == 404:
raise NotFoundException(http_resp=http_resp, body=body, data=data)

# Added new conditions for 409 and 422
if http_resp.status == 409:
raise ConflictException(http_resp=http_resp, body=body, data=data)

if http_resp.status == 422:
raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)

if 500 <= http_resp.status <= 599:
raise ServiceException(http_resp=http_resp, body=body, data=data)
raise ApiException(http_resp=http_resp, body=body, data=data)
Expand Down Expand Up @@ -189,6 +196,16 @@ class ServiceException(ApiException):
pass


class ConflictException(ApiException):
"""Exception for HTTP 409 Conflict."""
pass


class UnprocessableEntityException(ApiException):
"""Exception for HTTP 422 Unprocessable Entity."""
pass


def render_path(path_to_item):
"""Returns a string representation of a path"""
result = ""
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/sherlock_python_client_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: development
- Package version: v1.6.22
- Package version: v1.6.23
- Generator version: 7.11.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down
4 changes: 2 additions & 2 deletions sherlock-typescript-client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @sherlock-js-client/sherlock@v1.6.22
## @sherlock-js-client/sherlock@v1.6.23

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install @sherlock-js-client/[email protected].22 --save
npm install @sherlock-js-client/[email protected].23 --save
```

_unPublished (not recommended):_
Expand Down
4 changes: 2 additions & 2 deletions sherlock-typescript-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sherlock-typescript-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sherlock-js-client/sherlock",
"version": "v1.6.22",
"version": "v1.6.23",
"description": "OpenAPI client for @sherlock-js-client/sherlock",
"author": "OpenAPI-Generator",
"repository": {
Expand Down

0 comments on commit d6a13da

Please sign in to comment.