mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-07 16:03:08 +00:00
fix: update openapi generator (#6)
This commit is contained in:
parent
00a3c7a086
commit
ed88a74c73
@ -1 +1 @@
|
|||||||
7.10.0
|
7.12.0
|
||||||
|
|||||||
@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
|
|||||||
|
|
||||||
- API version: 0.0.1
|
- API version: 0.0.1
|
||||||
- Package version: 0.3.0
|
- Package version: 0.3.0
|
||||||
- Generator version: 7.10.0
|
- Generator version: 7.12.0
|
||||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
|
|||||||
@ -517,7 +517,7 @@ class ApiClient:
|
|||||||
if k in collection_formats:
|
if k in collection_formats:
|
||||||
collection_format = collection_formats[k]
|
collection_format = collection_formats[k]
|
||||||
if collection_format == 'multi':
|
if collection_format == 'multi':
|
||||||
new_params.extend((k, str(value)) for value in v)
|
new_params.extend((k, quote(str(value))) for value in v)
|
||||||
else:
|
else:
|
||||||
if collection_format == 'ssv':
|
if collection_format == 'ssv':
|
||||||
delimiter = ' '
|
delimiter = ' '
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import logging
|
|||||||
from logging import FileHandler
|
from logging import FileHandler
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import sys
|
import sys
|
||||||
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
|
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
|
||||||
from typing_extensions import NotRequired, Self
|
from typing_extensions import NotRequired, Self
|
||||||
|
|
||||||
import urllib3
|
import urllib3
|
||||||
@ -160,6 +160,8 @@ class Configuration:
|
|||||||
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
|
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
|
||||||
in PEM format.
|
in PEM format.
|
||||||
:param retries: Number of retries for API requests.
|
:param retries: Number of retries for API requests.
|
||||||
|
:param ca_cert_data: verify the peer using concatenated CA certificate data
|
||||||
|
in PEM (str) or DER (bytes) format.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -180,6 +182,7 @@ class Configuration:
|
|||||||
ignore_operation_servers: bool=False,
|
ignore_operation_servers: bool=False,
|
||||||
ssl_ca_cert: Optional[str]=None,
|
ssl_ca_cert: Optional[str]=None,
|
||||||
retries: Optional[int] = None,
|
retries: Optional[int] = None,
|
||||||
|
ca_cert_data: Optional[Union[str, bytes]] = None,
|
||||||
*,
|
*,
|
||||||
debug: Optional[bool] = None,
|
debug: Optional[bool] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -257,6 +260,10 @@ class Configuration:
|
|||||||
self.ssl_ca_cert = ssl_ca_cert
|
self.ssl_ca_cert = ssl_ca_cert
|
||||||
"""Set this to customize the certificate file to verify the peer.
|
"""Set this to customize the certificate file to verify the peer.
|
||||||
"""
|
"""
|
||||||
|
self.ca_cert_data = ca_cert_data
|
||||||
|
"""Set this to verify the peer using PEM (str) or DER (bytes)
|
||||||
|
certificate data.
|
||||||
|
"""
|
||||||
self.cert_file = None
|
self.cert_file = None
|
||||||
"""client certificate file
|
"""client certificate file
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -150,6 +150,13 @@ class ApiException(OpenApiException):
|
|||||||
if http_resp.status == 404:
|
if http_resp.status == 404:
|
||||||
raise NotFoundException(http_resp=http_resp, body=body, data=data)
|
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:
|
if 500 <= http_resp.status <= 599:
|
||||||
raise ServiceException(http_resp=http_resp, body=body, data=data)
|
raise ServiceException(http_resp=http_resp, body=body, data=data)
|
||||||
raise ApiException(http_resp=http_resp, body=body, data=data)
|
raise ApiException(http_resp=http_resp, body=body, data=data)
|
||||||
@ -188,6 +195,16 @@ class ServiceException(ApiException):
|
|||||||
pass
|
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):
|
def render_path(path_to_item):
|
||||||
"""Returns a string representation of a path"""
|
"""Returns a string representation of a path"""
|
||||||
result = ""
|
result = ""
|
||||||
|
|||||||
@ -76,6 +76,7 @@ class RESTClientObject:
|
|||||||
"ca_certs": configuration.ssl_ca_cert,
|
"ca_certs": configuration.ssl_ca_cert,
|
||||||
"cert_file": configuration.cert_file,
|
"cert_file": configuration.cert_file,
|
||||||
"key_file": configuration.key_file,
|
"key_file": configuration.key_file,
|
||||||
|
"ca_cert_data": configuration.ca_cert_data,
|
||||||
}
|
}
|
||||||
if configuration.assert_hostname is not None:
|
if configuration.assert_hostname is not None:
|
||||||
pool_args['assert_hostname'] = (
|
pool_args['assert_hostname'] = (
|
||||||
|
|||||||
@ -562,7 +562,9 @@ No authorization required
|
|||||||
|
|
||||||
Updates availability
|
Updates availability
|
||||||
|
|
||||||
The new parameters will be only considered for new requests. Existing Requests linked to this Availability will continue as is.
|
The new parameters will be only considered for new requests.
|
||||||
|
Existing Requests linked to this Availability will continue as is.
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,9 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
Connect to a peer
|
Connect to a peer
|
||||||
|
|
||||||
If `addrs` param is supplied, it will be used to dial the peer, otherwise the `peerId` is used to invoke peer discovery, if it succeeds the returned addresses will be used to dial.
|
If `addrs` param is supplied, it will be used to dial the peer, otherwise the `peerId` is used
|
||||||
|
to invoke peer discovery, if it succeeds the returned addresses will be used to dial.
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||||
"spaces": 2,
|
"spaces": 2,
|
||||||
"generator-cli": {
|
"generator-cli": {
|
||||||
"version": "7.10.0"
|
"version": "7.12.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@ include = ["codex_api_client/py.typed"]
|
|||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.8"
|
python = "^3.8"
|
||||||
|
|
||||||
urllib3 = ">= 1.25.3 < 3.0.0"
|
urllib3 = ">= 1.25.3, < 3.0.0"
|
||||||
python-dateutil = ">= 2.8.2"
|
python-dateutil = ">= 2.8.2"
|
||||||
pydantic = ">= 2"
|
pydantic = ">= 2"
|
||||||
typing-extensions = ">= 4.7.1"
|
typing-extensions = ">= 4.7.1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user