@@ -471,105 +471,12 @@ def _get_wallet_serialize(
471471 @validate_call
472472 async def get_wallets (
473473 self ,
474- wallet_name : Annotated [
475- Optional [StrictStr ], Field (description = "Wallet name " )
474+ limit : Annotated [
475+ Optional [StrictInt ], Field (description = "Number of results to return " )
476476 ] = None ,
477- _request_timeout : Union [
478- None ,
479- Annotated [StrictFloat , Field (gt = 0 )],
480- Tuple [
481- Annotated [StrictFloat , Field (gt = 0 )], Annotated [StrictFloat , Field (gt = 0 )]
482- ],
477+ offset : Annotated [
478+ Optional [StrictInt ], Field (description = "Offset for pagination" )
483479 ] = None ,
484- _request_auth : Optional [Dict [StrictStr , Any ]] = None ,
485- _content_type : Optional [StrictStr ] = None ,
486- _headers : Optional [Dict [StrictStr , Any ]] = None ,
487- _host_index : Annotated [StrictInt , Field (ge = 0 , le = 0 )] = 0 ,
488- ) -> WalletList :
489- """Query subwallets
490-
491-
492- :param wallet_name: Wallet name
493- :type wallet_name: str
494- ...
495- """ # noqa: E501
496-
497- _param = self ._get_wallets_serialize (
498- wallet_name = wallet_name ,
499- _request_auth = _request_auth ,
500- _content_type = _content_type ,
501- _headers = _headers ,
502- _host_index = _host_index ,
503- )
504-
505- _response_types_map : Dict [str , Optional [str ]] = {
506- "200" : "WalletList" ,
507- }
508- response_data = await self .api_client .call_api (
509- * _param , _request_timeout = _request_timeout
510- )
511- await response_data .read ()
512- return self .api_client .response_deserialize (
513- response_data = response_data ,
514- response_types_map = _response_types_map ,
515- ).data
516-
517- def _get_wallets_serialize (
518- self ,
519- wallet_name ,
520- _request_auth ,
521- _content_type ,
522- _headers ,
523- _host_index ,
524- ) -> RequestSerialized :
525-
526- _host = None
527-
528- _collection_formats : Dict [str , str ] = {}
529-
530- _path_params : Dict [str , str ] = {}
531- _query_params : List [Tuple [str , str ]] = []
532- _header_params : Dict [str , Optional [str ]] = _headers or {}
533- _form_params : List [Tuple [str , str ]] = []
534- _files : Dict [str , Union [str , bytes ]] = {}
535- _body_params : Optional [bytes ] = None
536-
537- # process the path parameters
538- # process the query parameters
539- if wallet_name is not None :
540-
541- _query_params .append (("wallet_name" , wallet_name ))
542-
543- # process the header parameters
544- # process the form parameters
545- # process the body parameter
546-
547- # set the HTTP header `Accept`
548- _header_params ["Accept" ] = self .api_client .select_header_accept (
549- ["application/json" ]
550- )
551-
552- # authentication setting
553- _auth_settings : List [str ] = ["AuthorizationHeader" ]
554-
555- return self .api_client .param_serialize (
556- method = "GET" ,
557- resource_path = "/multitenancy/wallets" ,
558- path_params = _path_params ,
559- query_params = _query_params ,
560- header_params = _header_params ,
561- body = _body_params ,
562- post_params = _form_params ,
563- files = _files ,
564- auth_settings = _auth_settings ,
565- collection_formats = _collection_formats ,
566- _host = _host ,
567- _request_auth = _request_auth ,
568- )
569-
570- @validate_call
571- async def get_wallets (
572- self ,
573480 wallet_name : Annotated [
574481 Optional [StrictStr ], Field (description = "Wallet name" )
575482 ] = None ,
@@ -592,6 +499,10 @@ async def get_wallets(
592499 """Query subwallets
593500
594501
502+ :param limit: Number of results to return
503+ :type limit: int
504+ :param offset: Offset for pagination
505+ :type offset: int
595506 :param wallet_name: Wallet name
596507 :type wallet_name: str
597508 :param group_id: Group id (additional field from ACA-Py plugin)
@@ -600,6 +511,8 @@ async def get_wallets(
600511 """ # noqa: E501
601512
602513 _param = self ._get_wallets_serialize (
514+ limit = limit ,
515+ offset = offset ,
603516 wallet_name = wallet_name ,
604517 group_id = group_id ,
605518 _request_auth = _request_auth ,
@@ -622,6 +535,8 @@ async def get_wallets(
622535
623536 def _get_wallets_serialize (
624537 self ,
538+ limit ,
539+ offset ,
625540 wallet_name ,
626541 group_id ,
627542 _request_auth ,
@@ -643,6 +558,14 @@ def _get_wallets_serialize(
643558
644559 # process the path parameters
645560 # process the query parameters
561+ if limit is not None :
562+
563+ _query_params .append (("limit" , limit ))
564+
565+ if offset is not None :
566+
567+ _query_params .append (("offset" , offset ))
568+
646569 if wallet_name is not None :
647570
648571 _query_params .append (("wallet_name" , wallet_name ))
0 commit comments