Skip to content

Commit

Permalink
✨ new query params for publish_revocations and revoke_credential:
Browse files Browse the repository at this point in the history
- conn_id
- create_transaction_for_endorser
  • Loading branch information
ff137 committed Apr 18, 2024
1 parent f38f6ca commit 79391fe
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions aries_cloudcontroller/api/revocation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,13 @@ def _publish_rev_reg_entry_serialize(
@validate_call
async def publish_revocations(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[PublishRevocations] = None,
_request_timeout: Union[
None,
Expand All @@ -2104,12 +2111,18 @@ async def publish_revocations(
"""Publish pending revocations to ledger
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: PublishRevocations
...
""" # noqa: E501

_param = self._publish_revocations_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2131,6 +2144,13 @@ async def publish_revocations(

async def publish_revocations_with_http_info(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[PublishRevocations] = None,
_request_timeout: Union[
None,
Expand All @@ -2147,12 +2167,18 @@ async def publish_revocations_with_http_info(
"""Publish pending revocations to ledger
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: PublishRevocations
...
""" # noqa: E501

_param = self._publish_revocations_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2174,6 +2200,13 @@ async def publish_revocations_with_http_info(

async def publish_revocations_without_preload_content(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[PublishRevocations] = None,
_request_timeout: Union[
None,
Expand All @@ -2190,12 +2223,18 @@ async def publish_revocations_without_preload_content(
"""Publish pending revocations to ledger
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: PublishRevocations
...
""" # noqa: E501

_param = self._publish_revocations_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2213,6 +2252,8 @@ async def publish_revocations_without_preload_content(

def _publish_revocations_serialize(
self,
conn_id,
create_transaction_for_endorser,
body,
_request_auth,
_content_type,
Expand All @@ -2233,6 +2274,16 @@ def _publish_revocations_serialize(

# process the path parameters
# process the query parameters
if conn_id is not None:

_query_params.append(("conn_id", conn_id))

if create_transaction_for_endorser is not None:

_query_params.append(
("create_transaction_for_endorser", create_transaction_for_endorser)
)

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down Expand Up @@ -3247,6 +3298,13 @@ def _revocation_registry_rev_reg_id_issued_indy_recs_get_serialize(
@validate_call
async def revoke_credential(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[RevokeRequest] = None,
_request_timeout: Union[
None,
Expand All @@ -3263,12 +3321,18 @@ async def revoke_credential(
"""Revoke an issued credential
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: RevokeRequest
...
""" # noqa: E501

_param = self._revoke_credential_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -3290,6 +3354,13 @@ async def revoke_credential(

async def revoke_credential_with_http_info(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[RevokeRequest] = None,
_request_timeout: Union[
None,
Expand All @@ -3306,12 +3377,18 @@ async def revoke_credential_with_http_info(
"""Revoke an issued credential
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: RevokeRequest
...
""" # noqa: E501

_param = self._revoke_credential_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -3333,6 +3410,13 @@ async def revoke_credential_with_http_info(

async def revoke_credential_without_preload_content(
self,
conn_id: Annotated[
Optional[StrictStr], Field(description="Connection identifier")
] = None,
create_transaction_for_endorser: Annotated[
Optional[StrictBool],
Field(description="Create Transaction For Endorser's signature"),
] = None,
body: Optional[RevokeRequest] = None,
_request_timeout: Union[
None,
Expand All @@ -3349,12 +3433,18 @@ async def revoke_credential_without_preload_content(
"""Revoke an issued credential
:param conn_id: Connection identifier
:type conn_id: str
:param create_transaction_for_endorser: Create Transaction For Endorser's signature
:type create_transaction_for_endorser: bool
:param body:
:type body: RevokeRequest
...
""" # noqa: E501

_param = self._revoke_credential_serialize(
conn_id=conn_id,
create_transaction_for_endorser=create_transaction_for_endorser,
body=body,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -3372,6 +3462,8 @@ async def revoke_credential_without_preload_content(

def _revoke_credential_serialize(
self,
conn_id,
create_transaction_for_endorser,
body,
_request_auth,
_content_type,
Expand All @@ -3392,6 +3484,16 @@ def _revoke_credential_serialize(

# process the path parameters
# process the query parameters
if conn_id is not None:

_query_params.append(("conn_id", conn_id))

if create_transaction_for_endorser is not None:

_query_params.append(
("create_transaction_for_endorser", create_transaction_for_endorser)
)

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down

0 comments on commit 79391fe

Please sign in to comment.