Skip to content

Commit

Permalink
Test release: 1.0.0b0 with pagination ordering support (#197)
Browse files Browse the repository at this point in the history
* 1.0.0b0

* 🚧 generated with ordering options

* 🚧 update with order_by query param

* ⬆️ Bump pytest to latest

* ⬆️ Bump black to latest

* ⬆️ Bump ruff to latest

* 🎨 fix ruff errors

* 🎨

* 🎨 fix duplicate method name

* Empty commit
  • Loading branch information
ff137 authored Aug 29, 2024
1 parent 9f25236 commit 8a6d0ac
Show file tree
Hide file tree
Showing 393 changed files with 8,105 additions and 9,627 deletions.
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.4.2
black~=24.8.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.4.2
black~=24.8.0
- name: Check import style with isort
run: |
isort . --check --profile black --diff
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For legacy versions, please review our release history to found the version comp
Aries CloudController Python provides a robust client for interacting with Aries Cloud Agents (ACA-Py).

- **Fully Typed**: Offers a strongly-typed wrapper around the Aries Cloud Agent Python, enhancing developer experience and reducing errors.
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (1.0.0), ensuring access to the most recent features and improvements.
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (1.0.0b0), ensuring access to the most recent features and improvements.
- **Auto-Generated Client**: Utilizes OpenAPI definitions for automatic generation, ensuring timely updates in line with new ACA-Py releases.
- **Multi-Tenancy and Authentication Support**: Facilitates working with multi-tenant APIs and integrates various authentication mechanisms.
- **Asynchronous API**: Supports asynchronous operations, enabling efficient handling of I/O-bound tasks.
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudcontroller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"
__version__ = "1.0.0b0"

from aries_cloudcontroller.acapy_client import AcaPyClient

Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/action_menu_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/anoncreds_revocation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/anoncreds_schemas_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/anoncreds_wallet_upgrade_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/basicmessage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
28 changes: 27 additions & 1 deletion aries_cloudcontroller/api/connection_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down Expand Up @@ -852,6 +852,10 @@ async def get_connections(
connection_protocol: Annotated[
Optional[StrictStr], Field(description="Connection protocol used")
] = None,
descending: Annotated[
Optional[StrictBool],
Field(description="Order results in descending order if true"),
] = None,
invitation_key: Annotated[
Optional[Annotated[str, Field(strict=True)]],
Field(description="invitation key"),
Expand All @@ -869,6 +873,12 @@ async def get_connections(
offset: Annotated[
Optional[StrictInt], Field(description="Offset for pagination")
] = None,
order_by: Annotated[
Optional[StrictStr],
Field(
description='The column to order results by. Only "id" is currently supported.'
),
] = None,
state: Annotated[
Optional[StrictStr], Field(description="Connection state")
] = None,
Expand Down Expand Up @@ -902,6 +912,8 @@ async def get_connections(
:type alias: str
:param connection_protocol: Connection protocol used
:type connection_protocol: str
:param descending: Order results in descending order if true
:type descending: bool
:param invitation_key: invitation key
:type invitation_key: str
:param invitation_msg_id: Identifier of the associated Invitation Message
Expand All @@ -912,6 +924,8 @@ async def get_connections(
:type my_did: str
:param offset: Offset for pagination
:type offset: int
:param order_by: The column to order results by. Only \"id\" is currently supported.
:type order_by: str
:param state: Connection state
:type state: str
:param their_did: Their DID
Expand All @@ -926,11 +940,13 @@ async def get_connections(
_param = self._get_connections_serialize(
alias=alias,
connection_protocol=connection_protocol,
descending=descending,
invitation_key=invitation_key,
invitation_msg_id=invitation_msg_id,
limit=limit,
my_did=my_did,
offset=offset,
order_by=order_by,
state=state,
their_did=their_did,
their_public_did=their_public_did,
Expand All @@ -957,11 +973,13 @@ def _get_connections_serialize(
self,
alias,
connection_protocol,
descending,
invitation_key,
invitation_msg_id,
limit,
my_did,
offset,
order_by,
state,
their_did,
their_public_did,
Expand Down Expand Up @@ -993,6 +1011,10 @@ def _get_connections_serialize(

_query_params.append(("connection_protocol", connection_protocol))

if descending is not None:

_query_params.append(("descending", descending))

if invitation_key is not None:

_query_params.append(("invitation_key", invitation_key))
Expand All @@ -1013,6 +1035,10 @@ def _get_connections_serialize(

_query_params.append(("offset", offset))

if order_by is not None:

_query_params.append(("order_by", order_by))

if state is not None:

_query_params.append(("state", state))
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/credential_definition_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/credentials_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/did_exchange_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/did_rotate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/discover_features_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/discover_features_v20_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/endorse_transaction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudcontroller/api/introduction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
30 changes: 28 additions & 2 deletions aries_cloudcontroller/api/issue_credential_v10_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v1.0.0
The version of the OpenAPI document: v1.0.0b0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand All @@ -14,7 +14,7 @@
import warnings
from typing import Any, Dict, List, Optional, Tuple, Union

from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, validate_call
from typing_extensions import Annotated

from aries_cloudcontroller.api_client import ApiClient, RequestSerialized
Expand Down Expand Up @@ -492,12 +492,22 @@ async def get_records(
connection_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
descending: Annotated[
Optional[StrictBool],
Field(description="Order results in descending order if true"),
] = None,
limit: Annotated[
Optional[StrictInt], Field(description="Number of results to return")
] = None,
offset: Annotated[
Optional[StrictInt], Field(description="Offset for pagination")
] = None,
order_by: Annotated[
Optional[StrictStr],
Field(
description='The column to order results by. Only "id" is currently supported.'
),
] = None,
role: Annotated[
Optional[StrictStr],
Field(description="Role assigned in credential exchange"),
Expand Down Expand Up @@ -525,10 +535,14 @@ async def get_records(
:param connection_id: Connection identifier
:type connection_id: str
:param descending: Order results in descending order if true
:type descending: bool
:param limit: Number of results to return
:type limit: int
:param offset: Offset for pagination
:type offset: int
:param order_by: The column to order results by. Only \"id\" is currently supported.
:type order_by: str
:param role: Role assigned in credential exchange
:type role: str
:param state: Credential exchange state
Expand All @@ -543,8 +557,10 @@ async def get_records(

_param = self._get_records_serialize(
connection_id=connection_id,
descending=descending,
limit=limit,
offset=offset,
order_by=order_by,
role=role,
state=state,
thread_id=thread_id,
Expand All @@ -569,8 +585,10 @@ async def get_records(
def _get_records_serialize(
self,
connection_id,
descending,
limit,
offset,
order_by,
role,
state,
thread_id,
Expand All @@ -597,6 +615,10 @@ def _get_records_serialize(

_query_params.append(("connection_id", connection_id))

if descending is not None:

_query_params.append(("descending", descending))

if limit is not None:

_query_params.append(("limit", limit))
Expand All @@ -605,6 +627,10 @@ def _get_records_serialize(

_query_params.append(("offset", offset))

if order_by is not None:

_query_params.append(("order_by", order_by))

if role is not None:

_query_params.append(("role", role))
Expand Down
Loading

0 comments on commit 8a6d0ac

Please sign in to comment.