Skip to content

Commit

Permalink
🎨 attempt to reduce code duplication below sonarcloud quality gate th…
Browse files Browse the repository at this point in the history
…reshold ...
  • Loading branch information
ff137 committed Apr 16, 2024
1 parent 252e073 commit deff4de
Show file tree
Hide file tree
Showing 27 changed files with 543 additions and 10,860 deletions.
315 changes: 15 additions & 300 deletions aries_cloudcontroller/api/action_menu_api.py

Large diffs are not rendered by default.

63 changes: 3 additions & 60 deletions aries_cloudcontroller/api/basicmessage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,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 Down Expand Up @@ -124,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 Down Expand Up @@ -190,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 Down
Loading

0 comments on commit deff4de

Please sign in to comment.