Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Upgrade client to latest openapi-generator version #164

Merged
merged 40 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
71e909e
:truck: move autoflake/black/isort for after postprocess complete
ff137 Apr 4, 2024
b55332c
:sparkles: modify sed commands to match new patterns
ff137 Apr 4, 2024
540c704
:art: update import of
ff137 Apr 4, 2024
1a74eae
:art: update import of typing.Set
ff137 Apr 4, 2024
39872e2
:art: update to_dict method
ff137 Apr 4, 2024
e10685f
:art: update from_json method
ff137 Apr 4, 2024
c43e73f
:art: update from_dict method
ff137 Apr 4, 2024
025280f
:art: update Union[str, Any] to Dict[str, Any]
ff137 Apr 4, 2024
a566d37
:art: read key directly
ff137 Apr 4, 2024
baca6c2
:art:
ff137 Apr 4, 2024
af095e8
:art: use new in set pattern
ff137 Apr 4, 2024
7e8d7d7
:art: read key directly if exists
ff137 Apr 4, 2024
a9c165b
:art: read key directly if exists
ff137 Apr 4, 2024
43a1763
:art: update to_dict method
ff137 Apr 4, 2024
4d5cd6b
:art: adds previously ungenerated model field descriptions
ff137 Apr 4, 2024
d2951b6
:art: add import
ff137 Apr 4, 2024
4be00cc
:art: use new in set pattern
ff137 Apr 4, 2024
362cb2a
:art: read key directly if exists
ff137 Apr 4, 2024
269317b
:art: add import
ff137 Apr 4, 2024
3bdca7a
:art: adds previously ungenerated model field descriptions
ff137 Apr 4, 2024
003d817
:art: new format for _response_types_map
ff137 Apr 4, 2024
74b1099
:art: new return type: RequestSerialized
ff137 Apr 4, 2024
65d1160
:art: optimise imports
ff137 Apr 4, 2024
ca39d9f
:art:
ff137 Apr 4, 2024
5a8085f
:art: add space in query_param checks
ff137 Apr 4, 2024
dac7801
:sparkles: new script to remove unnecessary validate_call decorators
ff137 Apr 4, 2024
c6c2e0a
:art: new format for _response_types_map
ff137 Apr 4, 2024
6aa841b
:art: new format for _response_types_map
ff137 Apr 4, 2024
4adb8b7
:heavy_plus_sign: Add `aiohttp_retry` dependency
ff137 Apr 4, 2024
16384fa
:sparkles: new RESTClient has retry config!
ff137 Apr 4, 2024
59e6135
:art: refactor exceptions
ff137 Apr 4, 2024
0464cad
:art: typing
ff137 Apr 4, 2024
37cf736
:art: headers are now a Mapping
ff137 Apr 4, 2024
66ceb76
:sparkles: Update ApiClient to latest; implements deserializing enums…
ff137 Apr 4, 2024
421fff0
version bump
ff137 Apr 4, 2024
65783c8
:art:
ff137 Apr 4, 2024
67366d7
:arrow_up: Upgrade `black` to latest
ff137 Apr 16, 2024
202e337
:arrow_up: Upgrade `pytest-mock` to latest
ff137 Apr 16, 2024
252e073
:bug: `disclosures` field can be str or Dict
ff137 Apr 16, 2024
deff4de
:art: attempt to reduce code duplication below sonarcloud quality gat…
ff137 Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python -m pip install --upgrade pip
pip install \
isort~=5.13.2 \
black~=24.3.0
black~=24.4.0
- name: Check import style with isort
run: |
isort . --check --profile black --diff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
python -m pip install --upgrade pip
pip install \
isort~=5.13.2 \
black~=24.3.0
black~=24.4.0
- name: Check import style with isort
run: |
isort . --check --profile black --diff
Expand Down
402 changes: 71 additions & 331 deletions aries_cloudcontroller/api/action_menu_api.py

Large diffs are not rendered by default.

90 changes: 15 additions & 75 deletions aries_cloudcontroller/api/basicmessage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,12 @@
Do not edit the class manually.
""" # noqa: E501


from typing import Any, Dict, List, Optional, Tuple, Union

from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated

from typing import Any, Dict, Optional, Union

from pydantic import Field, StrictStr
from typing_extensions import Annotated

from aries_cloudcontroller.api_client import ApiClient
from aries_cloudcontroller.api_client import ApiClient, RequestSerialized
from aries_cloudcontroller.api_response import ApiResponse
from aries_cloudcontroller.models.send_message import SendMessage
from aries_cloudcontroller.rest import RESTResponseType
Expand Down Expand Up @@ -68,26 +58,7 @@ async def send_message(
:type conn_id: str
:param body:
:type body: SendMessage
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
...
""" # noqa: E501

_param = self._send_message_serialize(
Expand All @@ -99,7 +70,9 @@ async def send_message(
_host_index=_host_index,
)

_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
}
response_data = await self.api_client.call_api(
*_param, _request_timeout=_request_timeout
)
Expand Down Expand Up @@ -132,26 +105,7 @@ async def send_message_with_http_info(
:type conn_id: str
:param body:
:type body: SendMessage
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
...
""" # noqa: E501

_param = self._send_message_serialize(
Expand All @@ -163,7 +117,9 @@ async def send_message_with_http_info(
_host_index=_host_index,
)

_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
}
response_data = await self.api_client.call_api(
*_param, _request_timeout=_request_timeout
)
Expand Down Expand Up @@ -196,26 +152,7 @@ async def send_message_without_preload_content(
:type conn_id: str
:param body:
:type body: SendMessage
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
...
""" # noqa: E501

_param = self._send_message_serialize(
Expand All @@ -227,7 +164,9 @@ async def send_message_without_preload_content(
_host_index=_host_index,
)

_response_types_map: Dict[str, Optional[str]] = {"200": "object"}
_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
}
response_data = await self.api_client.call_api(
*_param, _request_timeout=_request_timeout
)
Expand All @@ -241,7 +180,8 @@ def _send_message_serialize(
_content_type,
_headers,
_host_index,
) -> Tuple:
) -> RequestSerialized:

_host = None

_collection_formats: Dict[str, str] = {}
Expand Down
Loading