diff --git a/fireblocks_client/paths/audits/get.py b/fireblocks_client/paths/audits/get.py index 86e3a3ce..31b15415 100644 --- a/fireblocks_client/paths/audits/get.py +++ b/fireblocks_client/paths/audits/get.py @@ -72,9 +72,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -94,14 +94,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -116,28 +116,28 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -149,21 +149,21 @@ def _get_audits_oapg(self, params: typing.Union[RequestQueryParams,] = None, req query_params = {} query_params["time_period"] = params.get("time_period") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_time_period, - ): + request_query_time_period, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -253,11 +253,11 @@ def get( skip_deserialization: bool = False, ): return self._get_audits_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/audits/get.pyi b/fireblocks_client/paths/audits/get.pyi index 7e1c366c..0f9fbe57 100644 --- a/fireblocks_client/paths/audits/get.pyi +++ b/fireblocks_client/paths/audits/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Query params @@ -80,9 +81,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -97,24 +98,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -126,21 +127,21 @@ class BaseApi(api_client.Api): query_params = {} query_params["time_period"] = params.get("time_period") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_time_period, - ): + request_query_time_period, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -230,11 +231,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_audits_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections/get.py b/fireblocks_client/paths/connections/get.py index 8defdd1a..f4bb65e4 100644 --- a/fireblocks_client/paths/connections/get.py +++ b/fireblocks_client/paths/connections/get.py @@ -265,9 +265,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -282,26 +282,26 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -321,14 +321,14 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -348,9 +348,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -358,7 +358,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -374,25 +374,25 @@ def _get_oapg(self, params: typing.Union[RequestQueryParams,] = None, request_op query_params["page_size"] = params.get("page_size") query_params["next"] = params.get("next") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_order, - request_query_filter, - request_query_sort, - request_query_page_size, - request_query_next, - ): + request_query_order, + request_query_filter, + request_query_sort, + request_query_page_size, + request_query_next, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -476,11 +476,11 @@ def get( skip_deserialization: bool = False, ): return self._get_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections/get.pyi b/fireblocks_client/paths/connections/get.pyi index 4d5db276..20e2a83f 100644 --- a/fireblocks_client/paths/connections/get.pyi +++ b/fireblocks_client/paths/connections/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.get_connections_response import GetConnectionsResponse + # Query params @@ -253,21 +254,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -287,9 +288,9 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -309,12 +310,12 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -330,25 +331,25 @@ class BaseApi(api_client.Api): query_params["page_size"] = params.get("page_size") query_params["next"] = params.get("next") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_order, - request_query_filter, - request_query_sort, - request_query_page_size, - request_query_next, - ): + request_query_order, + request_query_filter, + request_query_sort, + request_query_page_size, + request_query_next, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -432,11 +433,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc/post.py b/fireblocks_client/paths/connections_wc/post.py index 3306ce1d..0d255bd1 100644 --- a/fireblocks_client/paths/connections_wc/post.py +++ b/fireblocks_client/paths/connections_wc/post.py @@ -26,20 +26,18 @@ # body param SchemaForRequestBodyApplicationJson = CreateConnectionRequest - - request_body_create_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBodyApplicationJson = CreateConnectionResponse ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -54,26 +52,26 @@ class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBodyApplicationJson, - ] + SchemaFor201ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor201ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor201ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -93,14 +91,14 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -120,9 +118,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, '400': _response_for_400, @@ -130,7 +128,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,14 +137,14 @@ def _create_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, """ Create a new Web3 connection. """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(create_connection_request, schemas.unset) + body = params.get(create_connection_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_connection_request.serialize(params, "application/json") @@ -256,12 +254,12 @@ def post( skip_deserialization: bool = False, ): return self._create_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc/post.pyi b/fireblocks_client/paths/connections_wc/post.pyi index ef0732bc..36889eae 100644 --- a/fireblocks_client/paths/connections_wc/post.pyi +++ b/fireblocks_client/paths/connections_wc/post.pyi @@ -22,15 +22,14 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_connection_request import CreateConnectionRequest from fireblocks_client.model.create_connection_response import CreateConnectionResponse + # body param SchemaForRequestBodyApplicationJson = CreateConnectionRequest - - request_body_create_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -47,21 +46,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBodyApplicationJson, - ] + SchemaFor201ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor201ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor201ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -81,9 +80,9 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -103,12 +102,12 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,14 +116,14 @@ class BaseApi(api_client.Api): """ Create a new Web3 connection. """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(create_connection_request, schemas.unset) + body = params.get(create_connection_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_connection_request.serialize(params, "application/json") @@ -234,12 +233,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc_id/delete.py b/fireblocks_client/paths/connections_wc_id/delete.py index 39c99278..a5917687 100644 --- a/fireblocks_client/paths/connections_wc_id/delete.py +++ b/fireblocks_client/paths/connections_wc_id/delete.py @@ -48,9 +48,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -70,14 +70,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor404 = typing_extensions.TypedDict( 'ResponseHeadersFor404', @@ -97,14 +97,14 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -124,9 +124,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -144,8 +144,10 @@ def _remove_oapg(self, params: typing.Union[RequestPathParams] = None, request_o for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -237,10 +239,10 @@ def delete( skip_deserialization: bool = False, ): return self._remove_oapg( - path_params=path_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc_id/delete.pyi b/fireblocks_client/paths/connections_wc_id/delete.pyi index 1e2bdbff..bb7bece6 100644 --- a/fireblocks_client/paths/connections_wc_id/delete.pyi +++ b/fireblocks_client/paths/connections_wc_id/delete.pyi @@ -18,6 +18,7 @@ import frozendict # noqa: F401 from fireblocks_client import schemas # noqa: F401 + # Path params IdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -63,9 +64,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor404 = typing_extensions.TypedDict( 'ResponseHeadersFor404', @@ -85,9 +86,9 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -107,9 +108,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -215,10 +218,10 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._remove_oapg( - path_params=path_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc_id/put.py b/fireblocks_client/paths/connections_wc_id/put.py index bf1a8d23..343080a6 100644 --- a/fireblocks_client/paths/connections_wc_id/put.py +++ b/fireblocks_client/paths/connections_wc_id/put.py @@ -51,20 +51,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = RespondToConnectionRequest - - request_body_respond_to_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -84,14 +82,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -111,14 +109,14 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor404 = typing_extensions.TypedDict( 'ResponseHeadersFor404', @@ -138,14 +136,14 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -165,9 +163,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -186,8 +184,10 @@ def _submit_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -202,13 +202,12 @@ def _submit_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(respond_to_connection_request, schemas.unset) + body = params.get(respond_to_connection_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_respond_to_connection_request.serialize(params, "application/json") @@ -318,12 +317,12 @@ def put( skip_deserialization: bool = False, ): return self._submit_oapg( - body=body, - path_params=path_params, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/connections_wc_id/put.pyi b/fireblocks_client/paths/connections_wc_id/put.pyi index 17584acc..b4358ce8 100644 --- a/fireblocks_client/paths/connections_wc_id/put.pyi +++ b/fireblocks_client/paths/connections_wc_id/put.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest + # Path params IdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -49,13 +50,11 @@ request_path_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = RespondToConnectionRequest - - request_body_respond_to_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -77,9 +76,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor400 = typing_extensions.TypedDict( 'ResponseHeadersFor400', @@ -99,9 +98,9 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor404 = typing_extensions.TypedDict( 'ResponseHeadersFor404', @@ -121,9 +120,9 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor500 = typing_extensions.TypedDict( 'ResponseHeadersFor500', @@ -143,9 +142,9 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) class BaseApi(api_client.Api): @@ -158,8 +157,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -174,13 +175,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(respond_to_connection_request, schemas.unset) + body = params.get(respond_to_connection_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_respond_to_connection_request.serialize(params, "application/json") @@ -290,12 +290,12 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._submit_oapg( - body=body, - path_params=path_params, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts/get.py b/fireblocks_client/paths/contracts/get.py index cc2b968f..98f05acb 100644 --- a/fireblocks_client/paths/contracts/get.py +++ b/fireblocks_client/paths/contracts/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'UnmanagedWallet': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_contracts_oapg(self, request_options: RequestOptions = None): """ List contracts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_contracts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts/get.pyi b/fireblocks_client/paths/contracts/get.pyi index 1393a520..3b24f10e 100644 --- a/fireblocks_client/paths/contracts/get.pyi +++ b/fireblocks_client/paths/contracts/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List contracts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_contracts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts/post.py b/fireblocks_client/paths/contracts/post.py index 531c7676..360a9fa3 100644 --- a/fireblocks_client/paths/contracts/post.py +++ b/fireblocks_client/paths/contracts/post.py @@ -76,19 +76,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -103,26 +101,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -137,21 +135,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -159,7 +157,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -168,8 +166,8 @@ def _create_contract_oapg(self, params: typing.Union[SchemaForRequestBodyApplica """ Create a contract """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -288,12 +286,12 @@ def post( skip_deserialization: bool = False, ): return self._create_contract_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts/post.pyi b/fireblocks_client/paths/contracts/post.pyi index e507686d..98d4a1a2 100644 --- a/fireblocks_client/paths/contracts/post.pyi +++ b/fireblocks_client/paths/contracts/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # body param @@ -74,13 +75,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = UnmanagedWallet @@ -96,21 +95,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -125,25 +124,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -152,8 +151,8 @@ class BaseApi(api_client.Api): """ Create a contract """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -272,12 +271,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_contract_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id/delete.py b/fireblocks_client/paths/contracts_contract_id/delete.py index 77b107bb..886def62 100644 --- a/fireblocks_client/paths/contracts_contract_id/delete.py +++ b/fireblocks_client/paths/contracts_contract_id/delete.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -73,14 +73,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _delete_contract_oapg(self, params: typing.Union[RequestPathParams] = None, for parameter in ( request_path_contract_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _delete_contract_oapg(self, params: typing.Union[RequestPathParams] = None, for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id/delete.pyi b/fireblocks_client/paths/contracts_contract_id/delete.pyi index dc04b01e..d258da2f 100644 --- a/fireblocks_client/paths/contracts_contract_id/delete.pyi +++ b/fireblocks_client/paths/contracts_contract_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params ContractIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_contract_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id/get.py b/fireblocks_client/paths/contracts_contract_id/get.py index 4982dc0d..1c723ce1 100644 --- a/fireblocks_client/paths/contracts_contract_id/get.py +++ b/fireblocks_client/paths/contracts_contract_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_contract_by_id_oapg(self, params: typing.Union[RequestPathParams] = Non for parameter in ( request_path_contract_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_contract_by_id_oapg(self, params: typing.Union[RequestPathParams] = Non for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_contract_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id/get.pyi b/fireblocks_client/paths/contracts_contract_id/get.pyi index 489c588c..852d1a0b 100644 --- a/fireblocks_client/paths/contracts_contract_id/get.pyi +++ b/fireblocks_client/paths/contracts_contract_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # Path params ContractIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_contract_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_contract_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py index 5f59422f..4e452fd0 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py @@ -59,9 +59,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -81,14 +81,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,28 +103,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _remove_asset_from_contract_oapg(self, params: typing.Union[RequestPathParam request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +157,6 @@ def _remove_asset_from_contract_oapg(self, params: typing.Union[RequestPathParam for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -245,11 +246,11 @@ def delete( skip_deserialization: bool = False, ): return self._remove_asset_from_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi index 6e7f221f..42037348 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params ContractIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -74,9 +75,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,24 +92,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -139,7 +142,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -229,11 +231,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._remove_asset_from_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/get.py b/fireblocks_client/paths/contracts_contract_id_asset_id/get.py index 335159f2..6be73436 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/get.py +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExternalWalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_asset_in_contract_oapg(self, params: typing.Union[RequestPathParams] = request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _get_asset_in_contract_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def get( skip_deserialization: bool = False, ): return self._get_asset_in_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi index 74088ff6..4370d9d1 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset from fireblocks_client.model.error import Error + # Path params ContractIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_asset_in_contract_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/post.py b/fireblocks_client/paths/contracts_contract_id_asset_id/post.py index a602294c..2947b1d1 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/post.py +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/post.py @@ -125,19 +125,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExternalWalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -152,26 +150,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -186,21 +184,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -208,7 +206,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -222,8 +220,10 @@ def _add_asset_to_contract_oapg(self, params: typing.Union[SchemaForRequestBodyA request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -239,7 +239,6 @@ def _add_asset_to_contract_oapg(self, params: typing.Union[SchemaForRequestBodyA for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -363,13 +362,13 @@ def post( skip_deserialization: bool = False, ): return self._add_asset_to_contract_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi index ed371153..f0184b7d 100644 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi +++ b/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset from fireblocks_client.model.error import Error + # Path params ContractIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -123,13 +124,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = ExternalWalletAsset @@ -145,21 +144,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -174,25 +173,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -206,8 +205,10 @@ class BaseApi(api_client.Api): request_path_contract_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -223,7 +224,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -347,13 +347,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._add_asset_to_contract_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/estimate_network_fee/get.py b/fireblocks_client/paths/estimate_network_fee/get.py index 1e2a3a41..471a674c 100644 --- a/fireblocks_client/paths/estimate_network_fee/get.py +++ b/fireblocks_client/paths/estimate_network_fee/get.py @@ -53,9 +53,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = EstimatedNetworkFeeResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -70,26 +70,26 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -104,21 +104,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -126,7 +126,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,21 +138,21 @@ def _estimate_network_fee_oapg(self, params: typing.Union[RequestQueryParams,] = query_params = {} query_params["asset_id"] = params.get("asset_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_asset_id, - ): + request_query_asset_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -242,11 +242,11 @@ def get( skip_deserialization: bool = False, ): return self._estimate_network_fee_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/estimate_network_fee/get.pyi b/fireblocks_client/paths/estimate_network_fee/get.pyi index b9b0635f..a56a8ae0 100644 --- a/fireblocks_client/paths/estimate_network_fee/get.pyi +++ b/fireblocks_client/paths/estimate_network_fee/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse from fireblocks_client.model.error import Error + # Query params AssetIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( @@ -63,21 +64,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -92,25 +93,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,21 +123,21 @@ class BaseApi(api_client.Api): query_params = {} query_params["asset_id"] = params.get("asset_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_asset_id, - ): + request_query_asset_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -226,11 +227,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._estimate_network_fee_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts/get.py b/fireblocks_client/paths/exchange_accounts/get.py index 1c70ec83..bc97955e 100644 --- a/fireblocks_client/paths/exchange_accounts/get.py +++ b/fireblocks_client/paths/exchange_accounts/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'ExchangeAccount': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_exchange_accounts_oapg(self, request_options: RequestOptions = None): """ List exchange accounts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_exchange_accounts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts/get.pyi b/fireblocks_client/paths/exchange_accounts/get.pyi index 63f53693..97958fac 100644 --- a/fireblocks_client/paths/exchange_accounts/get.pyi +++ b/fireblocks_client/paths/exchange_accounts/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.exchange_account import ExchangeAccount from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List exchange accounts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_exchange_accounts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py index a247533b..719a8cb9 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExchangeAccount ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_exchange_account_by_id_oapg(self, params: typing.Union[RequestPathParam for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_exchange_account_by_id_oapg(self, params: typing.Union[RequestPathParam for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_exchange_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi index 0109d4b3..8478aa59 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.exchange_account import ExchangeAccount from fireblocks_client.model.error import Error + # Path params ExchangeAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_exchange_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py index 306627e7..a2d2f7f9 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExchangeAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_exchange_account_asset_oapg(self, params: typing.Union[RequestPathParam request_path_exchange_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _get_exchange_account_asset_oapg(self, params: typing.Union[RequestPathParam for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def get( skip_deserialization: bool = False, ): return self._get_exchange_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi index ab555bcf..607ba276 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.exchange_asset import ExchangeAsset from fireblocks_client.model.error import Error + # Path params ExchangeAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_exchange_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_exchange_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py index 8b0f91a2..aa872ee3 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py @@ -130,19 +130,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -162,14 +160,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -184,28 +182,28 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -218,8 +216,10 @@ def _convert_assets_oapg(self, params: typing.Union[SchemaForRequestBodyApplicat for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -234,7 +234,6 @@ def _convert_assets_oapg(self, params: typing.Union[SchemaForRequestBodyApplicat for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -358,13 +357,13 @@ def post( skip_deserialization: bool = False, ): return self._convert_assets_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi index e4bf6c4f..a466fe0a 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params ExchangeAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -128,13 +129,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -155,9 +154,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -172,24 +171,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -202,8 +201,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -218,7 +219,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -342,13 +342,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._convert_assets_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py index e020371c..2a6d51ea 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py @@ -52,19 +52,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = CreateInternalTransferRequest - - request_body_create_internal_transfer_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -84,14 +82,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -106,28 +104,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -140,8 +138,10 @@ def _internal_transfer_oapg(self, params: typing.Union[SchemaForRequestBodyAppli for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -156,7 +156,6 @@ def _internal_transfer_oapg(self, params: typing.Union[SchemaForRequestBodyAppli for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -280,13 +279,13 @@ def post( skip_deserialization: bool = False, ): return self._internal_transfer_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi index 55359ff7..3e51526f 100644 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi +++ b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest from fireblocks_client.model.error import Error + # Path params ExchangeAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -50,13 +51,11 @@ request_path_exchange_account_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = CreateInternalTransferRequest - - request_body_create_internal_transfer_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -77,9 +76,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -94,24 +93,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -124,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -140,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -264,13 +264,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._internal_transfer_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets/get.py b/fireblocks_client/paths/external_wallets/get.py index a0be0488..58f8cacf 100644 --- a/fireblocks_client/paths/external_wallets/get.py +++ b/fireblocks_client/paths/external_wallets/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'UnmanagedWallet': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_external_wallets_oapg(self, request_options: RequestOptions = None): """ List external wallets """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_external_wallets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets/get.pyi b/fireblocks_client/paths/external_wallets/get.pyi index c24a9b09..6d117af0 100644 --- a/fireblocks_client/paths/external_wallets/get.pyi +++ b/fireblocks_client/paths/external_wallets/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List external wallets """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_external_wallets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets/post.py b/fireblocks_client/paths/external_wallets/post.py index 5aa6692c..1e0973e7 100644 --- a/fireblocks_client/paths/external_wallets/post.py +++ b/fireblocks_client/paths/external_wallets/post.py @@ -86,19 +86,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -113,26 +111,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -147,21 +145,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -169,7 +167,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -178,8 +176,8 @@ def _create_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBody """ Create an external wallet """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -298,12 +296,12 @@ def post( skip_deserialization: bool = False, ): return self._create_external_wallet_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets/post.pyi b/fireblocks_client/paths/external_wallets/post.pyi index e78380ef..4ea5e385 100644 --- a/fireblocks_client/paths/external_wallets/post.pyi +++ b/fireblocks_client/paths/external_wallets/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # body param @@ -84,13 +85,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = UnmanagedWallet @@ -106,21 +105,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -135,25 +134,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -162,8 +161,8 @@ class BaseApi(api_client.Api): """ Create an external wallet """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -282,12 +281,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_external_wallet_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id/delete.py b/fireblocks_client/paths/external_wallets_wallet_id/delete.py index d2049d25..83a89ddb 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id/delete.py +++ b/fireblocks_client/paths/external_wallets_wallet_id/delete.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -73,14 +73,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _delete_external_wallet_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _delete_external_wallet_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi b/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi index 276e49fa..faf92b62 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id/get.py b/fireblocks_client/paths/external_wallets_wallet_id/get.py index 7599f3a3..f3e70409 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id/get.py +++ b/fireblocks_client/paths/external_wallets_wallet_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_external_wallet_by_id_oapg(self, params: typing.Union[RequestPathParams for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_external_wallet_by_id_oapg(self, params: typing.Union[RequestPathParams for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_external_wallet_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id/get.pyi b/fireblocks_client/paths/external_wallets_wallet_id/get.pyi index 4f628375..b9f9def2 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id/get.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_external_wallet_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py index 55cbce35..07cda8d7 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py @@ -59,9 +59,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -81,14 +81,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,28 +103,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _remove_asset_from_external_wallet_oapg(self, params: typing.Union[RequestPa request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +157,6 @@ def _remove_asset_from_external_wallet_oapg(self, params: typing.Union[RequestPa for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -245,11 +246,11 @@ def delete( skip_deserialization: bool = False, ): return self._remove_asset_from_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi index a5e28dd0..4aac08e7 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -74,9 +75,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,24 +92,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -139,7 +142,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -229,11 +231,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._remove_asset_from_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py index e5a8e90c..b5df5a58 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExternalWalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_asset_in_external_wallet_oapg(self, params: typing.Union[RequestPathPar request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _get_asset_in_external_wallet_oapg(self, params: typing.Union[RequestPathPar for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def get( skip_deserialization: bool = False, ): return self._get_asset_in_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi index 5d99d61c..6a87038b 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_asset_in_external_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py index b42b1713..d4ebbe49 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py @@ -662,19 +662,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExternalWalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -689,26 +687,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -723,21 +721,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -745,7 +743,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -759,8 +757,10 @@ def _add_asset_to_external_wallet_oapg(self, params: typing.Union[SchemaForReque request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -776,7 +776,6 @@ def _add_asset_to_external_wallet_oapg(self, params: typing.Union[SchemaForReque for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -900,13 +899,13 @@ def post( skip_deserialization: bool = False, ): return self._add_asset_to_external_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi index bceb8d8a..ee194f9e 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -660,13 +661,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = ExternalWalletAsset @@ -682,21 +681,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -711,25 +710,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -743,8 +742,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -760,7 +761,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -884,13 +884,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._add_asset_to_external_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py index 926f8326..ba1f85e0 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py +++ b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py @@ -101,20 +101,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -134,14 +132,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,28 +154,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -190,8 +188,10 @@ def _set_customer_ref_id_for_external_wallet_oapg(self, params: typing.Union[Sch for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -206,13 +206,12 @@ def _set_customer_ref_id_for_external_wallet_oapg(self, params: typing.Union[Sch for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -334,13 +333,13 @@ def post( skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_external_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi index ccb15ea1..afdea86b 100644 --- a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi +++ b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,9 +126,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,24 +143,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -174,8 +173,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -190,13 +191,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -318,13 +318,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_external_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts/get.py b/fireblocks_client/paths/fiat_accounts/get.py index 61053cad..aa26dbd0 100644 --- a/fireblocks_client/paths/fiat_accounts/get.py +++ b/fireblocks_client/paths/fiat_accounts/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'FiatAccount': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_fiat_accounts_oapg(self, request_options: RequestOptions = None): """ List fiat accounts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_fiat_accounts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts/get.pyi b/fireblocks_client/paths/fiat_accounts/get.pyi index 3fb3412a..253a6f13 100644 --- a/fireblocks_client/paths/fiat_accounts/get.pyi +++ b/fireblocks_client/paths/fiat_accounts/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.fiat_account import FiatAccount from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List fiat accounts """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_fiat_accounts_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id/get.py b/fireblocks_client/paths/fiat_accounts_account_id/get.py index e9bd56a9..c1b32a9a 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id/get.py +++ b/fireblocks_client/paths/fiat_accounts_account_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = FiatAccount ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_fiat_account_by_id_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_fiat_account_by_id_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_fiat_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id/get.pyi b/fireblocks_client/paths/fiat_accounts_account_id/get.pyi index f9b7694e..b5266ea0 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id/get.pyi +++ b/fireblocks_client/paths/fiat_accounts_account_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.fiat_account import FiatAccount from fireblocks_client.model.error import Error + # Path params AccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_fiat_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py index ff8e0aa4..1547921c 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py +++ b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py @@ -101,19 +101,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -133,14 +131,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -155,28 +153,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -189,8 +187,10 @@ def _deposit_funds_from_linked_dda_oapg(self, params: typing.Union[SchemaForRequ for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -205,7 +205,6 @@ def _deposit_funds_from_linked_dda_oapg(self, params: typing.Union[SchemaForRequ for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -329,13 +328,13 @@ def post( skip_deserialization: bool = False, ): return self._deposit_funds_from_linked_dda_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi index 0b744dfe..c6c626dd 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi +++ b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params AccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -126,9 +125,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -143,24 +142,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -173,8 +172,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -189,7 +190,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -313,13 +313,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._deposit_funds_from_linked_dda_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py index 07883a2f..c64bdbb7 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py +++ b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py @@ -101,19 +101,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -133,14 +131,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -155,28 +153,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -189,8 +187,10 @@ def _redeem_funds_to_linked_dda_oapg(self, params: typing.Union[SchemaForRequest for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -205,7 +205,6 @@ def _redeem_funds_to_linked_dda_oapg(self, params: typing.Union[SchemaForRequest for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -329,13 +328,13 @@ def post( skip_deserialization: bool = False, ): return self._redeem_funds_to_linked_dda_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi index af12b134..f19dec28 100644 --- a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi +++ b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params AccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -126,9 +125,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -143,24 +142,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -173,8 +172,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -189,7 +190,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -313,13 +313,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._redeem_funds_to_linked_dda_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station/get.py b/fireblocks_client/paths/gas_station/get.py index 4653cdcf..8da666ec 100644 --- a/fireblocks_client/paths/gas_station/get.py +++ b/fireblocks_client/paths/gas_station/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = GasStationPropertiesResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _get_gas_station_oapg(self, request_options: RequestOptions = None): """ Get gas station settings """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def get( skip_deserialization: bool = False, ): return self._get_gas_station_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station/get.pyi b/fireblocks_client/paths/gas_station/get.pyi index c03be78b..8fc2501e 100644 --- a/fireblocks_client/paths/gas_station/get.pyi +++ b/fireblocks_client/paths/gas_station/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = GasStationPropertiesResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ Get gas station settings """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_gas_station_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_asset_id/get.py b/fireblocks_client/paths/gas_station_asset_id/get.py index cde436ea..48c5bb0c 100644 --- a/fireblocks_client/paths/gas_station_asset_id/get.py +++ b/fireblocks_client/paths/gas_station_asset_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = GasStationPropertiesResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_gas_station_by_asset_id_oapg(self, params: typing.Union[RequestPathPara for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_gas_station_by_asset_id_oapg(self, params: typing.Union[RequestPathPara for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_gas_station_by_asset_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_asset_id/get.pyi b/fireblocks_client/paths/gas_station_asset_id/get.pyi index fbdbdd9b..849f932f 100644 --- a/fireblocks_client/paths/gas_station_asset_id/get.pyi +++ b/fireblocks_client/paths/gas_station_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse from fireblocks_client.model.error import Error + # Path params AssetIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_gas_station_by_asset_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_configuration/put.py b/fireblocks_client/paths/gas_station_configuration/put.py index 91ce8278..f13a0b87 100644 --- a/fireblocks_client/paths/gas_station_configuration/put.py +++ b/fireblocks_client/paths/gas_station_configuration/put.py @@ -26,20 +26,18 @@ # body param SchemaForRequestBodyApplicationJson = GasStationConfiguration - - request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -59,14 +57,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -81,28 +79,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -111,14 +109,14 @@ def _update_gas_station_configuration_oapg(self, params: typing.Union[SchemaForR """ Edit gas station settings """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(gas_station_configuration, schemas.unset) + body = params.get(gas_station_configuration, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") @@ -235,12 +233,12 @@ def put( skip_deserialization: bool = False, ): return self._update_gas_station_configuration_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_configuration/put.pyi b/fireblocks_client/paths/gas_station_configuration/put.pyi index 45b050ea..7e7fe647 100644 --- a/fireblocks_client/paths/gas_station_configuration/put.pyi +++ b/fireblocks_client/paths/gas_station_configuration/put.pyi @@ -22,15 +22,14 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.gas_station_configuration import GasStationConfiguration from fireblocks_client.model.error import Error + # body param SchemaForRequestBodyApplicationJson = GasStationConfiguration - - request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -52,9 +51,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -69,24 +68,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -95,14 +94,14 @@ class BaseApi(api_client.Api): """ Edit gas station settings """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(gas_station_configuration, schemas.unset) + body = params.get(gas_station_configuration, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") @@ -219,12 +218,12 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_gas_station_configuration_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_configuration_asset_id/put.py b/fireblocks_client/paths/gas_station_configuration_asset_id/put.py index 67829a32..dbb5f464 100644 --- a/fireblocks_client/paths/gas_station_configuration_asset_id/put.py +++ b/fireblocks_client/paths/gas_station_configuration_asset_id/put.py @@ -52,20 +52,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = GasStationConfiguration - - request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -85,14 +83,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -107,28 +105,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -141,8 +139,10 @@ def _update_gas_station_configuration_by_asset_id_oapg(self, params: typing.Unio for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -157,13 +157,12 @@ def _update_gas_station_configuration_by_asset_id_oapg(self, params: typing.Unio for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(gas_station_configuration, schemas.unset) + body = params.get(gas_station_configuration, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") @@ -285,13 +284,13 @@ def put( skip_deserialization: bool = False, ): return self._update_gas_station_configuration_by_asset_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi b/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi index 3fd85de5..6be0365d 100644 --- a/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi +++ b/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.gas_station_configuration import GasStationConfiguration from fireblocks_client.model.error import Error + # Path params AssetIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -50,13 +51,11 @@ request_path_asset_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = GasStationConfiguration - - request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -78,9 +77,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,24 +94,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -125,8 +124,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -141,13 +142,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(gas_station_configuration, schemas.unset) + body = params.get(gas_station_configuration, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") @@ -269,13 +269,13 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_gas_station_configuration_by_asset_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets/get.py b/fireblocks_client/paths/internal_wallets/get.py index 4f9b864b..f3ba39f6 100644 --- a/fireblocks_client/paths/internal_wallets/get.py +++ b/fireblocks_client/paths/internal_wallets/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'UnmanagedWallet': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_internal_wallets_oapg(self, request_options: RequestOptions = None): """ List internal wallets """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_internal_wallets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets/get.pyi b/fireblocks_client/paths/internal_wallets/get.pyi index de49b6ec..1fe9df46 100644 --- a/fireblocks_client/paths/internal_wallets/get.pyi +++ b/fireblocks_client/paths/internal_wallets/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List internal wallets """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_internal_wallets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets/post.py b/fireblocks_client/paths/internal_wallets/post.py index 99e26bcb..5dd14394 100644 --- a/fireblocks_client/paths/internal_wallets/post.py +++ b/fireblocks_client/paths/internal_wallets/post.py @@ -86,19 +86,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -113,26 +111,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -147,21 +145,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -169,7 +167,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -178,8 +176,8 @@ def _create_internal_wallet_oapg(self, params: typing.Union[SchemaForRequestBody """ Create an internal wallet """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -298,12 +296,12 @@ def post( skip_deserialization: bool = False, ): return self._create_internal_wallet_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets/post.pyi b/fireblocks_client/paths/internal_wallets/post.pyi index c3222f64..28afd146 100644 --- a/fireblocks_client/paths/internal_wallets/post.pyi +++ b/fireblocks_client/paths/internal_wallets/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # body param @@ -84,13 +85,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = UnmanagedWallet @@ -106,21 +105,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -135,25 +134,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -162,8 +161,8 @@ class BaseApi(api_client.Api): """ Create an internal wallet """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -282,12 +281,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_internal_wallet_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/delete.py b/fireblocks_client/paths/internal_wallets_wallet_id/delete.py index 6cb51a72..53fcb078 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id/delete.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id/delete.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -73,14 +73,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _delete_internal_wallet_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _delete_internal_wallet_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_internal_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi b/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi index 87725df3..bb3ee083 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_internal_wallet_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/get.py b/fireblocks_client/paths/internal_wallets_wallet_id/get.py index e5781cc8..41edf279 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id/get.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnmanagedWallet ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_internal_wallet_by_id_oapg(self, params: typing.Union[RequestPathParams for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_internal_wallet_by_id_oapg(self, params: typing.Union[RequestPathParams for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_internal_wallet_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi b/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi index af59750f..a8b0d8e1 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_internal_wallet_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py index 6dae7fa1..a00262e3 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py @@ -59,9 +59,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -81,14 +81,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,28 +103,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _delete_internal_wallet_asset_oapg(self, params: typing.Union[RequestPathPar request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +157,6 @@ def _delete_internal_wallet_asset_oapg(self, params: typing.Union[RequestPathPar for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -245,11 +246,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_internal_wallet_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi index c7eafd62..b15092e5 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -74,9 +75,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,24 +92,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -139,7 +142,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -229,11 +231,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_internal_wallet_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py index a1fa40d7..ffe3c7e0 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = WalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_internal_wallet_asset_oapg(self, params: typing.Union[RequestPathParams request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _get_internal_wallet_asset_oapg(self, params: typing.Union[RequestPathParams for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def get( skip_deserialization: bool = False, ): return self._get_internal_wallet_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi index 17dd5749..ccd947d8 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.wallet_asset import WalletAsset + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_internal_wallet_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py index 8cef006c..0e1b3f7e 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py @@ -125,19 +125,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = WalletAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -152,26 +150,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -186,21 +184,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -208,7 +206,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -222,8 +220,10 @@ def _create_internal_wallet_asset_oapg(self, params: typing.Union[SchemaForReque request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -239,7 +239,6 @@ def _create_internal_wallet_asset_oapg(self, params: typing.Union[SchemaForReque for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -363,13 +362,13 @@ def post( skip_deserialization: bool = False, ): return self._create_internal_wallet_asset_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi index 6012c5df..8fe105f2 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.wallet_asset import WalletAsset + # Path params WalletIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -123,13 +124,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = WalletAsset @@ -145,21 +144,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -174,25 +173,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -206,8 +205,10 @@ class BaseApi(api_client.Api): request_path_wallet_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -223,7 +224,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -347,13 +347,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_internal_wallet_asset_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py index 18a3e9e0..735f7c90 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py +++ b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py @@ -101,20 +101,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -134,14 +132,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,28 +154,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -190,8 +188,10 @@ def _set_customer_ref_id_for_internal_wallet_oapg(self, params: typing.Union[Sch for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -206,13 +206,12 @@ def _set_customer_ref_id_for_internal_wallet_oapg(self, params: typing.Union[Sch for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -334,13 +333,13 @@ def post( skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_internal_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi index 7a76aa71..f8fce86a 100644 --- a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi +++ b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params WalletIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,9 +126,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,24 +143,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -174,8 +173,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_wallet_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -190,13 +191,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -318,13 +318,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_internal_wallet_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/management_ota/get.py b/fireblocks_client/paths/management_ota/get.py index 10679dc0..54596a59 100644 --- a/fireblocks_client/paths/management_ota/get.py +++ b/fireblocks_client/paths/management_ota/get.py @@ -78,18 +78,18 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -101,14 +101,14 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +117,8 @@ def _get_ota_status_oapg(self, request_options: RequestOptions = None): """ Returns current OTA status """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -198,10 +198,10 @@ def get( skip_deserialization: bool = False, ): return self._get_ota_status_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/management_ota/get.pyi b/fireblocks_client/paths/management_ota/get.pyi index e5dd0d3d..6df9260e 100644 --- a/fireblocks_client/paths/management_ota/get.pyi +++ b/fireblocks_client/paths/management_ota/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 + class SchemaFor200ResponseBodyApplicationJson( schemas.AnyTypeSchema, ): @@ -76,18 +77,18 @@ class SchemaFor200ResponseBodyApplicationJson( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -99,10 +100,10 @@ class ApiResponseFor404(api_client.ApiResponse): _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -111,8 +112,8 @@ class BaseApi(api_client.Api): """ Returns current OTA status """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -192,10 +193,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_ota_status_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/management_ota/post.py b/fireblocks_client/paths/management_ota/post.py index 7a4a1b3a..33a16905 100644 --- a/fireblocks_client/paths/management_ota/post.py +++ b/fireblocks_client/paths/management_ota/post.py @@ -73,13 +73,11 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) @@ -93,7 +91,7 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, -) + ) @dataclass @@ -105,7 +103,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -117,7 +115,7 @@ class ApiResponseFor409(api_client.ApiResponse): _response_for_409 = api_client.OpenApiResponse( response_cls=ApiResponseFor409, -) + ) @dataclass @@ -129,7 +127,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _status_code_to_response = { '202': _response_for_202, '400': _response_for_400, @@ -144,14 +142,14 @@ def _set_ota_status_oapg(self, params: typing.Union[SchemaForRequestBodyApplicat """ Enable or disable transactions to OTA """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -256,11 +254,11 @@ def post( skip_deserialization: bool = False, ): return self._set_ota_status_oapg( - body=body, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/management_ota/post.pyi b/fireblocks_client/paths/management_ota/post.pyi index b9bc80b6..703245cc 100644 --- a/fireblocks_client/paths/management_ota/post.pyi +++ b/fireblocks_client/paths/management_ota/post.pyi @@ -19,6 +19,7 @@ import frozendict # noqa: F401 from fireblocks_client import schemas # noqa: F401 + # body param @@ -71,13 +72,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) @@ -91,7 +90,7 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, -) + ) @dataclass @@ -103,7 +102,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -115,7 +114,7 @@ class ApiResponseFor409(api_client.ApiResponse): _response_for_409 = api_client.OpenApiResponse( response_cls=ApiResponseFor409, -) + ) @dataclass @@ -127,7 +126,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) class BaseApi(api_client.Api): @@ -136,14 +135,14 @@ class BaseApi(api_client.Api): """ Enable or disable transactions to OTA """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -248,11 +247,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_ota_status_oapg( - body=body, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections/get.py b/fireblocks_client/paths/network_connections/get.py index 5c0318d6..dd06e2dd 100644 --- a/fireblocks_client/paths/network_connections/get.py +++ b/fireblocks_client/paths/network_connections/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'NetworkConnectionResponse': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_network_connections_oapg(self, request_options: RequestOptions = None): """ List network connections """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_network_connections_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections/get.pyi b/fireblocks_client/paths/network_connections/get.pyi index fcd14230..ced18ec7 100644 --- a/fireblocks_client/paths/network_connections/get.pyi +++ b/fireblocks_client/paths/network_connections/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.network_connection_response import NetworkConnectionResponse + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List network connections """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_network_connections_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections/post.py b/fireblocks_client/paths/network_connections/post.py index 3580df38..3cf9aab1 100644 --- a/fireblocks_client/paths/network_connections/post.py +++ b/fireblocks_client/paths/network_connections/post.py @@ -27,19 +27,17 @@ # body param SchemaForRequestBodyApplicationJson = NetworkConnection - - request_body_network_connection = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBody = NetworkConnectionResponse ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -54,26 +52,26 @@ class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -88,21 +86,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -110,7 +108,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -119,8 +117,8 @@ def _create_network_connection_oapg(self, params: typing.Union[SchemaForRequestB """ Creates a new network connection """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -239,12 +237,12 @@ def post( skip_deserialization: bool = False, ): return self._create_network_connection_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections/post.pyi b/fireblocks_client/paths/network_connections/post.pyi index cd608ecd..f76403ae 100644 --- a/fireblocks_client/paths/network_connections/post.pyi +++ b/fireblocks_client/paths/network_connections/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.error import Error from fireblocks_client.model.network_connection import NetworkConnection from fireblocks_client.model.network_connection_response import NetworkConnectionResponse + # body param SchemaForRequestBodyApplicationJson = NetworkConnection - - request_body_network_connection = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor201ResponseBody = NetworkConnectionResponse @@ -47,21 +46,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -76,25 +75,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -103,8 +102,8 @@ class BaseApi(api_client.Api): """ Creates a new network connection """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -223,12 +222,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_network_connection_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id/delete.py b/fireblocks_client/paths/network_connections_connection_id/delete.py index 13cf76b9..a1e5eb8d 100644 --- a/fireblocks_client/paths/network_connections_connection_id/delete.py +++ b/fireblocks_client/paths/network_connections_connection_id/delete.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -123,26 +123,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -157,21 +157,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -179,7 +179,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -192,8 +192,10 @@ def _delete_network_connection_oapg(self, params: typing.Union[RequestPathParams for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -208,7 +210,6 @@ def _delete_network_connection_oapg(self, params: typing.Union[RequestPathParams for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -298,11 +299,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_network_connection_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id/delete.pyi b/fireblocks_client/paths/network_connections_connection_id/delete.pyi index 947a9009..cf3fe986 100644 --- a/fireblocks_client/paths/network_connections_connection_id/delete.pyi +++ b/fireblocks_client/paths/network_connections_connection_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params ConnectionIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -116,21 +117,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -145,25 +146,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -176,8 +177,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -192,7 +195,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -282,11 +284,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_network_connection_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id/get.py b/fireblocks_client/paths/network_connections_connection_id/get.py index 1fb9e2fe..1a9a76bb 100644 --- a/fireblocks_client/paths/network_connections_connection_id/get.py +++ b/fireblocks_client/paths/network_connections_connection_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = NetworkConnectionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_network_connection_by_id_oapg(self, params: typing.Union[RequestPathPar for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_network_connection_by_id_oapg(self, params: typing.Union[RequestPathPar for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_network_connection_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id/get.pyi b/fireblocks_client/paths/network_connections_connection_id/get.pyi index ce647415..8ce5bf1b 100644 --- a/fireblocks_client/paths/network_connections_connection_id/get.pyi +++ b/fireblocks_client/paths/network_connections_connection_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.network_connection_response import NetworkConnectionResponse + # Path params ConnectionIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_network_connection_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py index 57f92b84..668ee07d 100644 --- a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py +++ b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py @@ -41,26 +41,21 @@ class MetaOapg: "SIGNET_TEST": "SIGNET_TEST", "SEN_TEST": "SEN_TEST", } - - @schemas.classproperty - def CRYPTO(cls): - return cls("CRYPTO") - - @schemas.classproperty - def SIGNET(cls): - return cls("SIGNET") - - @schemas.classproperty - def SEN(cls): - return cls("SEN") - - @schemas.classproperty - def SIGNET_TEST(cls): - return cls("SIGNET_TEST") - - @schemas.classproperty - def SEN_TEST(cls): - return cls("SEN_TEST") + @schemas.classproperty + def CRYPTO(cls): + return cls("CRYPTO") + @schemas.classproperty + def SIGNET(cls): + return cls("SIGNET") + @schemas.classproperty + def SEN(cls): + return cls("SEN") + @schemas.classproperty + def SIGNET_TEST(cls): + return cls("SIGNET_TEST") + @schemas.classproperty + def SEN_TEST(cls): + return cls("SEN_TEST") RequestRequiredPathParams = typing_extensions.TypedDict( 'RequestRequiredPathParams', { @@ -94,9 +89,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -171,26 +166,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -205,21 +200,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -227,7 +222,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -241,8 +236,10 @@ def _check_third_party_routing_for_network_connection_oapg(self, params: typing. request_path_connection_id, request_path_asset_type, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -258,7 +255,6 @@ def _check_third_party_routing_for_network_connection_oapg(self, params: typing. for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -348,11 +344,11 @@ def get( skip_deserialization: bool = False, ): return self._check_third_party_routing_for_network_connection_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi index cdbc7f34..10d8c875 100644 --- a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi +++ b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params ConnectionIdSchema = schemas.StrSchema @@ -29,26 +30,21 @@ class AssetTypeSchema( schemas.EnumBase, schemas.StrSchema ): - - @schemas.classproperty - def CRYPTO(cls): - return cls("CRYPTO") - - @schemas.classproperty - def SIGNET(cls): - return cls("SIGNET") - - @schemas.classproperty - def SEN(cls): - return cls("SEN") - - @schemas.classproperty - def SIGNET_TEST(cls): - return cls("SIGNET_TEST") - - @schemas.classproperty - def SEN_TEST(cls): - return cls("SEN_TEST") + @schemas.classproperty + def CRYPTO(cls): + return cls("CRYPTO") + @schemas.classproperty + def SIGNET(cls): + return cls("SIGNET") + @schemas.classproperty + def SEN(cls): + return cls("SEN") + @schemas.classproperty + def SIGNET_TEST(cls): + return cls("SIGNET_TEST") + @schemas.classproperty + def SEN_TEST(cls): + return cls("SEN_TEST") RequestRequiredPathParams = typing_extensions.TypedDict( 'RequestRequiredPathParams', { @@ -154,21 +150,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -183,25 +179,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -215,8 +211,10 @@ class BaseApi(api_client.Api): request_path_connection_id, request_path_asset_type, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -232,7 +230,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -322,11 +319,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._check_third_party_routing_for_network_connection_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py index 5566493f..6d658ce5 100644 --- a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py +++ b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py @@ -110,19 +110,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -192,26 +190,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -226,21 +224,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -248,7 +246,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -261,8 +259,10 @@ def _set_routing_policy_for_network_connection_oapg(self, params: typing.Union[S for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -277,7 +277,6 @@ def _set_routing_policy_for_network_connection_oapg(self, params: typing.Union[S for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -401,13 +400,13 @@ def patch( skip_deserialization: bool = False, ): return self._set_routing_policy_for_network_connection_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi index 323dea13..78a67fa5 100644 --- a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi +++ b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy from fireblocks_client.model.error import Error + # Path params ConnectionIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -108,13 +109,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema @@ -185,21 +184,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -214,25 +213,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -245,8 +244,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_connection_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -261,7 +262,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -385,13 +385,13 @@ class ApiForpatch(BaseApi): skip_deserialization: bool = False, ): return self._set_routing_policy_for_network_connection_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids/get.py b/fireblocks_client/paths/network_ids/get.py index db4afe27..ebdb2889 100644 --- a/fireblocks_client/paths/network_ids/get.py +++ b/fireblocks_client/paths/network_ids/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -100,26 +100,26 @@ def __getitem__(self, i: int) -> MetaOapg.items: class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -134,21 +134,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -156,7 +156,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -165,8 +165,8 @@ def _get_network_ids_oapg(self, request_options: RequestOptions = None): """ Returns all network IDs, both local IDs and discoverable remote IDs """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -252,10 +252,10 @@ def get( skip_deserialization: bool = False, ): return self._get_network_ids_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids/get.pyi b/fireblocks_client/paths/network_ids/get.pyi index 640f37f3..42b3735a 100644 --- a/fireblocks_client/paths/network_ids/get.pyi +++ b/fireblocks_client/paths/network_ids/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.network_id_response import NetworkIdResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -93,21 +94,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -122,25 +123,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -149,8 +150,8 @@ class BaseApi(api_client.Api): """ Returns all network IDs, both local IDs and discoverable remote IDs """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -236,10 +237,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_network_ids_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids/post.py b/fireblocks_client/paths/network_ids/post.py index 87dd8849..fc87c4db 100644 --- a/fireblocks_client/paths/network_ids/post.py +++ b/fireblocks_client/paths/network_ids/post.py @@ -95,19 +95,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBody = NetworkIdResponse ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -122,26 +120,26 @@ def __new__( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,21 +154,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -178,7 +176,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -187,8 +185,8 @@ def _create_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyAppli """ Creates a new Network ID """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -307,12 +305,12 @@ def post( skip_deserialization: bool = False, ): return self._create_network_id_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids/post.pyi b/fireblocks_client/paths/network_ids/post.pyi index baa70a21..90531465 100644 --- a/fireblocks_client/paths/network_ids/post.pyi +++ b/fireblocks_client/paths/network_ids/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.network_id_response import NetworkIdResponse from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy from fireblocks_client.model.error import Error + # body param @@ -93,13 +94,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor201ResponseBody = NetworkIdResponse @@ -115,21 +114,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,25 +143,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -171,8 +170,8 @@ class BaseApi(api_client.Api): """ Creates a new Network ID """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -291,12 +290,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_network_id_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id/delete.py b/fireblocks_client/paths/network_ids_network_id/delete.py index 8810e28d..aa63b025 100644 --- a/fireblocks_client/paths/network_ids_network_id/delete.py +++ b/fireblocks_client/paths/network_ids_network_id/delete.py @@ -111,23 +111,23 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -142,21 +142,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -164,7 +164,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -177,8 +177,10 @@ def _delete_network_id_oapg(self, params: typing.Union[RequestPathParams] = None for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -193,7 +195,6 @@ def _delete_network_id_oapg(self, params: typing.Union[RequestPathParams] = None for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -283,11 +284,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_network_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id/delete.pyi b/fireblocks_client/paths/network_ids_network_id/delete.pyi index 5d47fee8..ae9126d2 100644 --- a/fireblocks_client/paths/network_ids_network_id/delete.pyi +++ b/fireblocks_client/paths/network_ids_network_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params NetworkIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -109,18 +110,18 @@ class SchemaFor200ResponseBody( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -135,25 +136,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -166,8 +167,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -182,7 +185,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -272,11 +274,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_network_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id/get.py b/fireblocks_client/paths/network_ids_network_id/get.py index 28e597f4..517bed35 100644 --- a/fireblocks_client/paths/network_ids_network_id/get.py +++ b/fireblocks_client/paths/network_ids_network_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = NetworkIdResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_network_id_by_id_oapg(self, params: typing.Union[RequestPathParams] = N for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_network_id_by_id_oapg(self, params: typing.Union[RequestPathParams] = N for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_network_id_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id/get.pyi b/fireblocks_client/paths/network_ids_network_id/get.pyi index 0406a123..249ebe98 100644 --- a/fireblocks_client/paths/network_ids_network_id/get.pyi +++ b/fireblocks_client/paths/network_ids_network_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.network_id_response import NetworkIdResponse from fireblocks_client.model.error import Error + # Path params NetworkIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_network_id_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py index 290a9fbf..e138ee59 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py +++ b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py @@ -106,20 +106,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -189,26 +187,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -223,21 +221,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -245,7 +243,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -258,8 +256,10 @@ def _set_discoverability_for_network_id_oapg(self, params: typing.Union[SchemaFo for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -274,13 +274,12 @@ def _set_discoverability_for_network_id_oapg(self, params: typing.Union[SchemaFo for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -402,13 +401,13 @@ def patch( skip_deserialization: bool = False, ): return self._set_discoverability_for_network_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi index 27013e37..af1c5652 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi +++ b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params NetworkIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -104,13 +105,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -182,21 +181,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -211,25 +210,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -242,8 +241,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -258,13 +259,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -386,13 +386,13 @@ class ApiForpatch(BaseApi): skip_deserialization: bool = False, ): return self._set_discoverability_for_network_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_name/patch.py b/fireblocks_client/paths/network_ids_network_id_set_name/patch.py index 23448eda..5f57bd4e 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_name/patch.py +++ b/fireblocks_client/paths/network_ids_network_id_set_name/patch.py @@ -106,20 +106,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -189,26 +187,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -223,21 +221,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -245,7 +243,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -258,8 +256,10 @@ def _set_network_id_name_oapg(self, params: typing.Union[SchemaForRequestBodyApp for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -274,13 +274,12 @@ def _set_network_id_name_oapg(self, params: typing.Union[SchemaForRequestBodyApp for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -402,13 +401,13 @@ def patch( skip_deserialization: bool = False, ): return self._set_network_id_name_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi index c2bf9992..d4c97610 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi +++ b/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params NetworkIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -104,13 +105,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -182,21 +181,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -211,25 +210,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -242,8 +241,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -258,13 +259,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -386,13 +386,13 @@ class ApiForpatch(BaseApi): skip_deserialization: bool = False, ): return self._set_network_id_name_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py index d9788ca4..57a90d50 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py +++ b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py @@ -110,19 +110,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -192,26 +190,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -226,21 +224,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -248,7 +246,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -261,8 +259,10 @@ def _set_routing_policy_for_network_id_oapg(self, params: typing.Union[SchemaFor for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -277,7 +277,6 @@ def _set_routing_policy_for_network_id_oapg(self, params: typing.Union[SchemaFor for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -401,13 +400,13 @@ def patch( skip_deserialization: bool = False, ): return self._set_routing_policy_for_network_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi index 4f23cff3..f1deb2f8 100644 --- a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi +++ b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy from fireblocks_client.model.error import Error + # Path params NetworkIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -108,13 +109,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema @@ -185,21 +184,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -214,25 +213,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -245,8 +244,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_network_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -261,7 +262,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -385,13 +385,13 @@ class ApiForpatch(BaseApi): skip_deserialization: bool = False, ): return self._set_routing_policy_for_network_id_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_collections/get.py b/fireblocks_client/paths/nfts_ownership_collections/get.py index ffc95238..b9d1cd3d 100644 --- a/fireblocks_client/paths/nfts_ownership_collections/get.py +++ b/fireblocks_client/paths/nfts_ownership_collections/get.py @@ -157,9 +157,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -262,27 +262,27 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -298,25 +298,25 @@ def _list_owned_collections_oapg(self, params: typing.Union[RequestQueryParams,] query_params["sort"] = params.get("sort") query_params["order"] = params.get("order") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_search, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): + request_query_search, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -400,11 +400,11 @@ def get( skip_deserialization: bool = False, ): return self._list_owned_collections_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_collections/get.pyi b/fireblocks_client/paths/nfts_ownership_collections/get.pyi index 3f09acb5..7a9cc7ee 100644 --- a/fireblocks_client/paths/nfts_ownership_collections/get.pyi +++ b/fireblocks_client/paths/nfts_ownership_collections/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.paging import Paging from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse + # Query params @@ -236,24 +237,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -269,25 +270,25 @@ class BaseApi(api_client.Api): query_params["sort"] = params.get("sort") query_params["order"] = params.get("order") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_search, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): + request_query_search, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -371,11 +372,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._list_owned_collections_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens/get.py b/fireblocks_client/paths/nfts_ownership_tokens/get.py index 45be5b9d..6f8a6c2f 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens/get.py +++ b/fireblocks_client/paths/nfts_ownership_tokens/get.py @@ -262,9 +262,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -367,27 +367,27 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -408,30 +408,30 @@ def _get_ownership_tokens_oapg(self, params: typing.Union[RequestQueryParams,] = query_params["status"] = params.get("status") query_params["search"] = params.get("search") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_ids, - request_query_ids, - request_query_collection_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - request_query_status, - request_query_search, - ): + request_query_blockchain_descriptor, + request_query_vault_account_ids, + request_query_ids, + request_query_collection_ids, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + request_query_status, + request_query_search, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -515,11 +515,11 @@ def get( skip_deserialization: bool = False, ): return self._get_ownership_tokens_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens/get.pyi b/fireblocks_client/paths/nfts_ownership_tokens/get.pyi index 66e76f92..e5d9a8f1 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens/get.pyi +++ b/fireblocks_client/paths/nfts_ownership_tokens/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.paging import Paging from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse + # Query params @@ -322,24 +323,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -360,30 +361,30 @@ class BaseApi(api_client.Api): query_params["status"] = params.get("status") query_params["search"] = params.get("search") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_ids, - request_query_ids, - request_query_collection_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - request_query_status, - request_query_search, - ): + request_query_blockchain_descriptor, + request_query_vault_account_ids, + request_query_ids, + request_query_collection_ids, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + request_query_status, + request_query_search, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -467,11 +468,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_ownership_tokens_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens/put.py b/fireblocks_client/paths/nfts_ownership_tokens/put.py index c690b493..4876cd6c 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens/put.py +++ b/fireblocks_client/paths/nfts_ownership_tokens/put.py @@ -88,9 +88,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor202 = typing_extensions.TypedDict( 'ResponseHeadersFor202', @@ -110,9 +110,9 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '202': _response_for_202, } @@ -128,19 +128,20 @@ def _update_ownership_tokens_oapg(self, params: typing.Union[RequestQueryParams, query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") query_params["vault_account_id"] = params.get("vault_account_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_id, - ): + request_query_blockchain_descriptor, + request_query_vault_account_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value @@ -220,10 +221,10 @@ def put( skip_deserialization: bool = False, ): return self._update_ownership_tokens_oapg( - query_params=query_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens/put.pyi b/fireblocks_client/paths/nfts_ownership_tokens/put.pyi index a4824616..9b2a6c81 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens/put.pyi +++ b/fireblocks_client/paths/nfts_ownership_tokens/put.pyi @@ -18,6 +18,7 @@ import frozendict # noqa: F401 from fireblocks_client import schemas # noqa: F401 + # Query params @@ -94,9 +95,9 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) class BaseApi(api_client.Api): @@ -109,19 +110,20 @@ class BaseApi(api_client.Api): query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") query_params["vault_account_id"] = params.get("vault_account_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_id, - ): + request_query_blockchain_descriptor, + request_query_vault_account_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value @@ -201,10 +203,10 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_ownership_tokens_oapg( - query_params=query_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py index 07c4ef65..901b81f9 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py +++ b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py @@ -51,20 +51,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = UpdateTokenOwnershipStatusDto - - request_body_update_token_ownership_status_dto = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -84,9 +82,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } @@ -102,8 +100,10 @@ def _update_token_ownership_status_oapg(self, params: typing.Union[SchemaForRequ for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -118,13 +118,12 @@ def _update_token_ownership_status_oapg(self, params: typing.Union[SchemaForRequ for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(update_token_ownership_status_dto, schemas.unset) + body = params.get(update_token_ownership_status_dto, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_token_ownership_status_dto.serialize(params, "application/json") @@ -234,12 +233,12 @@ def put( skip_deserialization: bool = False, ): return self._update_token_ownership_status_oapg( - body=body, - path_params=path_params, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi index 7d703f9b..775648fa 100644 --- a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi +++ b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto + # Path params IdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -49,13 +50,11 @@ request_path_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = UpdateTokenOwnershipStatusDto - - request_body_update_token_ownership_status_dto = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -77,9 +76,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) class BaseApi(api_client.Api): @@ -92,8 +91,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -108,13 +109,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(update_token_ownership_status_dto, schemas.unset) + body = params.get(update_token_ownership_status_dto, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_token_ownership_status_dto.serialize(params, "application/json") @@ -224,12 +224,12 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_token_ownership_status_oapg( - body=body, - path_params=path_params, - content_type=content_type, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens/get.py b/fireblocks_client/paths/nfts_tokens/get.py index 879ef57d..73b79b3b 100644 --- a/fireblocks_client/paths/nfts_tokens/get.py +++ b/fireblocks_client/paths/nfts_tokens/get.py @@ -161,9 +161,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -266,27 +266,27 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -302,25 +302,25 @@ def _get_nfts_oapg(self, params: typing.Union[RequestQueryParams,] = None, reque query_params["sort"] = params.get("sort") query_params["order"] = params.get("order") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): + request_query_ids, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -404,11 +404,11 @@ def get( skip_deserialization: bool = False, ): return self._get_nfts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens/get.pyi b/fireblocks_client/paths/nfts_tokens/get.pyi index 94801a55..4ed171fe 100644 --- a/fireblocks_client/paths/nfts_tokens/get.pyi +++ b/fireblocks_client/paths/nfts_tokens/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.token_response import TokenResponse from fireblocks_client.model.paging import Paging + # Query params IdsSchema = schemas.StrSchema PageCursorSchema = schemas.StrSchema @@ -240,24 +241,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -273,25 +274,25 @@ class BaseApi(api_client.Api): query_params["sort"] = params.get("sort") query_params["order"] = params.get("order") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): + request_query_ids, + request_query_page_cursor, + request_query_page_size, + request_query_sort, + request_query_order, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -375,11 +376,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_nfts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens_id/get.py b/fireblocks_client/paths/nfts_tokens_id/get.py index 8cf4a5db..bc0e0882 100644 --- a/fireblocks_client/paths/nfts_tokens_id/get.py +++ b/fireblocks_client/paths/nfts_tokens_id/get.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBodyApplicationJson = TokenResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -68,27 +68,27 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -101,8 +101,10 @@ def _get_nft_oapg(self, params: typing.Union[RequestPathParams] = None, request_ for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -117,7 +119,6 @@ def _get_nft_oapg(self, params: typing.Union[RequestPathParams] = None, request_ for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -201,11 +202,11 @@ def get( skip_deserialization: bool = False, ): return self._get_nft_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens_id/get.pyi b/fireblocks_client/paths/nfts_tokens_id/get.pyi index 7b83194d..bb506112 100644 --- a/fireblocks_client/paths/nfts_tokens_id/get.pyi +++ b/fireblocks_client/paths/nfts_tokens_id/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.token_response import TokenResponse + # Path params IdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -61,24 +62,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -91,8 +92,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -107,7 +110,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -191,11 +193,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_nft_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens_id/put.py b/fireblocks_client/paths/nfts_tokens_id/put.py index 6828fc08..ceeb7586 100644 --- a/fireblocks_client/paths/nfts_tokens_id/put.py +++ b/fireblocks_client/paths/nfts_tokens_id/put.py @@ -48,9 +48,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor202 = typing_extensions.TypedDict( 'ResponseHeadersFor202', @@ -70,9 +70,9 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '202': _response_for_202, } @@ -88,8 +88,10 @@ def _refresh_nft_metadata_oapg(self, params: typing.Union[RequestPathParams] = N for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -181,10 +183,10 @@ def put( skip_deserialization: bool = False, ): return self._refresh_nft_metadata_oapg( - path_params=path_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/nfts_tokens_id/put.pyi b/fireblocks_client/paths/nfts_tokens_id/put.pyi index ffbee2c6..b776b37d 100644 --- a/fireblocks_client/paths/nfts_tokens_id/put.pyi +++ b/fireblocks_client/paths/nfts_tokens_id/put.pyi @@ -18,6 +18,7 @@ import frozendict # noqa: F401 from fireblocks_client import schemas # noqa: F401 + # Path params IdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -63,9 +64,9 @@ class ApiResponseFor202(api_client.ApiResponse): _response_for_202 = api_client.OpenApiResponse( response_cls=ApiResponseFor202, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) class BaseApi(api_client.Api): @@ -78,8 +79,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -171,10 +174,10 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._refresh_nft_metadata_oapg( - path_params=path_params, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_add/post.py b/fireblocks_client/paths/off_exchange_add/post.py index 26560d23..c8654abf 100644 --- a/fireblocks_client/paths/off_exchange_add/post.py +++ b/fireblocks_client/paths/off_exchange_add/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = AddCollateralRequestBody - - request_body_add_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBody = CreateTransactionResponse @@ -42,23 +40,23 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -73,21 +71,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -95,7 +93,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -104,8 +102,8 @@ def _add_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApplic """ add collateral """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -224,12 +222,12 @@ def post( skip_deserialization: bool = False, ): return self._add_off_exchange_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_add/post.pyi b/fireblocks_client/paths/off_exchange_add/post.pyi index 35be118d..c74863ff 100644 --- a/fireblocks_client/paths/off_exchange_add/post.pyi +++ b/fireblocks_client/paths/off_exchange_add/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.add_collateral_request_body import AddCollateralReq from fireblocks_client.model.error import Error from fireblocks_client.model.create_transaction_response import CreateTransactionResponse + # body param SchemaForRequestBodyApplicationJson = AddCollateralRequestBody - - request_body_add_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBody = CreateTransactionResponse @@ -40,18 +39,18 @@ SchemaFor200ResponseBody = CreateTransactionResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -66,25 +65,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -93,8 +92,8 @@ class BaseApi(api_client.Api): """ add collateral """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -213,12 +212,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._add_off_exchange_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py index f032e13d..e1188dab 100644 --- a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py +++ b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ExchangeAccount ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_off_exchange_collateral_accounts_oapg(self, params: typing.Union[Reques for parameter in ( request_path_main_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_off_exchange_collateral_accounts_oapg(self, params: typing.Union[Reques for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_off_exchange_collateral_accounts_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi index 86bbb706..505ebcb8 100644 --- a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi +++ b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.exchange_account import ExchangeAccount from fireblocks_client.model.error import Error + # Path params MainExchangeAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_main_exchange_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_off_exchange_collateral_accounts_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_remove/post.py b/fireblocks_client/paths/off_exchange_remove/post.py index cb03464b..4f2af153 100644 --- a/fireblocks_client/paths/off_exchange_remove/post.py +++ b/fireblocks_client/paths/off_exchange_remove/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = RemoveCollateralRequestBody - - request_body_remove_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBody = CreateTransactionResponse @@ -42,23 +40,23 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -73,21 +71,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -95,7 +93,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -104,8 +102,8 @@ def _remove_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApp """ remove collateral """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -224,12 +222,12 @@ def post( skip_deserialization: bool = False, ): return self._remove_off_exchange_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_remove/post.pyi b/fireblocks_client/paths/off_exchange_remove/post.pyi index f4c325b7..42f44a6c 100644 --- a/fireblocks_client/paths/off_exchange_remove/post.pyi +++ b/fireblocks_client/paths/off_exchange_remove/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.remove_collateral_request_body import RemoveCollate from fireblocks_client.model.error import Error from fireblocks_client.model.create_transaction_response import CreateTransactionResponse + # body param SchemaForRequestBodyApplicationJson = RemoveCollateralRequestBody - - request_body_remove_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBody = CreateTransactionResponse @@ -40,18 +39,18 @@ SchemaFor200ResponseBody = CreateTransactionResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -66,25 +65,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -93,8 +92,8 @@ class BaseApi(api_client.Api): """ remove collateral """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -213,12 +212,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._remove_off_exchange_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_settlements_trader/post.py b/fireblocks_client/paths/off_exchange_settlements_trader/post.py index aa66f8bb..f34cbf1d 100644 --- a/fireblocks_client/paths/off_exchange_settlements_trader/post.py +++ b/fireblocks_client/paths/off_exchange_settlements_trader/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = SettlementRequestBody - - request_body_settlement_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor201ResponseBody = SettlementResponse @@ -42,23 +40,23 @@ class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -73,21 +71,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -95,7 +93,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -104,8 +102,8 @@ def _settle_off_exchange_trades_oapg(self, params: typing.Union[SchemaForRequest """ create settlement for a trader """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -224,12 +222,12 @@ def post( skip_deserialization: bool = False, ): return self._settle_off_exchange_trades_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi b/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi index 7be0c690..1181ad76 100644 --- a/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi +++ b/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.settlement_request_body import SettlementRequestBod from fireblocks_client.model.error import Error from fireblocks_client.model.settlement_response import SettlementResponse + # body param SchemaForRequestBodyApplicationJson = SettlementRequestBody - - request_body_settlement_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor201ResponseBody = SettlementResponse @@ -40,18 +39,18 @@ SchemaFor201ResponseBody = SettlementResponse class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -66,25 +65,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -93,8 +92,8 @@ class BaseApi(api_client.Api): """ create settlement for a trader """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -213,12 +212,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._settle_off_exchange_trades_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_settlements_transactions/get.py b/fireblocks_client/paths/off_exchange_settlements_transactions/get.py index bdee5625..46c5cbb0 100644 --- a/fireblocks_client/paths/off_exchange_settlements_transactions/get.py +++ b/fireblocks_client/paths/off_exchange_settlements_transactions/get.py @@ -58,23 +58,23 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -89,21 +89,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -111,7 +111,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -123,21 +123,21 @@ def _get_off_exchange_settlement_transactions_oapg(self, params: typing.Union[Re query_params = {} query_params["main_exchange_account_id"] = params.get("main_exchange_account_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_main_exchange_account_id, - ): + request_query_main_exchange_account_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -227,11 +227,11 @@ def get( skip_deserialization: bool = False, ): return self._get_off_exchange_settlement_transactions_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi b/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi index 437452a0..70f55361 100644 --- a/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi +++ b/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.settlement_response import SettlementResponse + # Query params MainExchangeAccountIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( @@ -56,18 +57,18 @@ SchemaFor200ResponseBody = SettlementResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -82,25 +83,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -112,21 +113,21 @@ class BaseApi(api_client.Api): query_params = {} query_params["main_exchange_account_id"] = params.get("main_exchange_account_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_main_exchange_account_id, - ): + request_query_main_exchange_account_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -216,11 +217,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_off_exchange_settlement_transactions_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout/post.py b/fireblocks_client/paths/payments_payout/post.py index e4dc487b..84cb0ea3 100644 --- a/fireblocks_client/paths/payments_payout/post.py +++ b/fireblocks_client/paths/payments_payout/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = CreatePayoutRequest - - request_body_create_payout_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = PayoutResponse @@ -42,18 +40,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -61,18 +59,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -80,18 +78,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -99,18 +97,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -119,7 +117,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -128,8 +126,8 @@ def _create_payout_oapg(self, params: typing.Union[SchemaForRequestBodyApplicati """ Create a payout instruction set """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -241,12 +239,12 @@ def post( skip_deserialization: bool = False, ): return self._create_payout_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout/post.pyi b/fireblocks_client/paths/payments_payout/post.pyi index c25adee7..ad8cc688 100644 --- a/fireblocks_client/paths/payments_payout/post.pyi +++ b/fireblocks_client/paths/payments_payout/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.payout_response import PayoutResponse from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.create_payout_request import CreatePayoutRequest + # body param SchemaForRequestBodyApplicationJson = CreatePayoutRequest - - request_body_create_payout_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = PayoutResponse @@ -40,18 +39,18 @@ SchemaFor200ResponseBodyApplicationJson = PayoutResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -59,18 +58,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -78,18 +77,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -97,21 +96,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -120,8 +119,8 @@ class BaseApi(api_client.Api): """ Create a payout instruction set """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -233,12 +232,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_payout_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout_payout_id/get.py b/fireblocks_client/paths/payments_payout_payout_id/get.py index 2c1c4409..6331dbaa 100644 --- a/fireblocks_client/paths/payments_payout_payout_id/get.py +++ b/fireblocks_client/paths/payments_payout_payout_id/get.py @@ -57,18 +57,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -76,18 +76,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -95,18 +95,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -114,18 +114,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -134,7 +134,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_payout_by_id_oapg(self, params: typing.Union[RequestPathParams] = None, for parameter in ( request_path_payout_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -163,7 +165,6 @@ def _get_payout_by_id_oapg(self, params: typing.Union[RequestPathParams] = None, for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ def get( skip_deserialization: bool = False, ): return self._get_payout_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout_payout_id/get.pyi b/fireblocks_client/paths/payments_payout_payout_id/get.pyi index b81cbd44..2f1a12c7 100644 --- a/fireblocks_client/paths/payments_payout_payout_id/get.pyi +++ b/fireblocks_client/paths/payments_payout_payout_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.payout_response import PayoutResponse from fireblocks_client.model.error_response import ErrorResponse + # Path params PayoutIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -55,18 +56,18 @@ SchemaFor200ResponseBodyApplicationJson = PayoutResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -74,18 +75,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -93,18 +94,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -112,21 +113,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,8 +140,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_payout_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +158,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +241,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_payout_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py index c9482aff..a5bdfb2b 100644 --- a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py +++ b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py @@ -57,18 +57,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -76,18 +76,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -95,18 +95,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -114,18 +114,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -134,7 +134,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _execute_payout_action_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_payout_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -163,7 +165,6 @@ def _execute_payout_action_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ def post( skip_deserialization: bool = False, ): return self._execute_payout_action_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi index 88c970dd..26cff3c7 100644 --- a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi +++ b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse + # Path params PayoutIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -55,18 +56,18 @@ SchemaFor200ResponseBodyApplicationJson = DispatchPayoutResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -74,18 +75,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -93,18 +94,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -112,21 +113,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,8 +140,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_payout_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +158,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +241,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._execute_payout_action_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/get.py b/fireblocks_client/paths/payments_xb_settlements_configs/get.py index cf64a322..c8015422 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs/get.py +++ b/fireblocks_client/paths/payments_xb_settlements_configs/get.py @@ -31,18 +31,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -50,18 +50,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -69,18 +69,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '401': _response_for_401, @@ -88,7 +88,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -97,8 +97,8 @@ def _get_xb_settlement_configs_oapg(self, request_options: RequestOptions = None """ Get all the cross-border settlement configurations """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -178,10 +178,10 @@ def get( skip_deserialization: bool = False, ): return self._get_xb_settlement_configs_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi b/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi index 1340a939..d40fbabb 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse + SchemaFor200ResponseBodyApplicationJson = XBSettlementGetAllConfigsResponse @@ -29,18 +30,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementGetAllConfigsResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -48,18 +49,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -67,21 +68,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -90,8 +91,8 @@ class BaseApi(api_client.Api): """ Get all the cross-border settlement configurations """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -171,10 +172,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_xb_settlement_configs_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/post.py b/fireblocks_client/paths/payments_xb_settlements_configs/post.py index ac1ef233..b9d1d54e 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs/post.py +++ b/fireblocks_client/paths/payments_xb_settlements_configs/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = XBSettlementConfigCreationRequestBody - - request_body_xb_settlement_config_creation_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel @@ -42,18 +40,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -61,18 +59,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -80,18 +78,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -99,18 +97,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -119,7 +117,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -128,8 +126,8 @@ def _create_xb_settlement_config_oapg(self, params: typing.Union[SchemaForReques """ Create a new cross-border settlement configuration """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -241,12 +239,12 @@ def post( skip_deserialization: bool = False, ): return self._create_xb_settlement_config_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi b/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi index 1b6133f4..3dd7b237 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody + # body param SchemaForRequestBodyApplicationJson = XBSettlementConfigCreationRequestBody - - request_body_xb_settlement_config_creation_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel @@ -40,18 +39,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -59,18 +58,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -78,18 +77,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -97,21 +96,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -120,8 +119,8 @@ class BaseApi(api_client.Api): """ Create a new cross-border settlement configuration """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -233,12 +232,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_xb_settlement_config_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py index 9a57461d..e783805d 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py @@ -57,18 +57,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -76,18 +76,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -95,18 +95,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -114,18 +114,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -134,7 +134,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _delete_xb_settlement_config_oapg(self, params: typing.Union[RequestPathPara for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -163,7 +165,6 @@ def _delete_xb_settlement_config_oapg(self, params: typing.Union[RequestPathPara for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_xb_settlement_config_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi index 2efd3a61..e48defd0 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel + # Path params ConfigIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -55,18 +56,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -74,18 +75,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -93,18 +94,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -112,21 +113,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,8 +140,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +158,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +241,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_xb_settlement_config_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py index 21079b7e..14be03af 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py @@ -57,18 +57,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -76,18 +76,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -95,18 +95,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -114,18 +114,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -134,7 +134,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_xb_settlement_config_by_id_oapg(self, params: typing.Union[RequestPathP for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -163,7 +165,6 @@ def _get_xb_settlement_config_by_id_oapg(self, params: typing.Union[RequestPathP for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ def get( skip_deserialization: bool = False, ): return self._get_xb_settlement_config_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi index 70e8f9a5..812f74a2 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel + # Path params ConfigIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -55,18 +56,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -74,18 +75,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -93,18 +94,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -112,21 +113,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,8 +140,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +158,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +241,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_xb_settlement_config_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py index 9ae8a5de..5e2b8c90 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py @@ -53,13 +53,11 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = XBSettlementConfigEditRequestBody - - request_body_xb_settlement_config_edit_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel @@ -68,18 +66,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -87,18 +85,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -106,18 +104,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -125,18 +123,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -144,18 +142,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -165,7 +163,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -178,8 +176,10 @@ def _update_xb_settlement_config_oapg(self, params: typing.Union[SchemaForReques for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -194,7 +194,6 @@ def _update_xb_settlement_config_oapg(self, params: typing.Union[SchemaForReques for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -311,13 +310,13 @@ def put( skip_deserialization: bool = False, ): return self._update_xb_settlement_config_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi index 2f4c77df..93dd360f 100644 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody + # Path params ConfigIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_config_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = XBSettlementConfigEditRequestBody - - request_body_xb_settlement_config_edit_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel @@ -66,18 +65,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -85,18 +84,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -104,18 +103,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -123,18 +122,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -142,21 +141,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -169,8 +168,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_config_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -185,7 +186,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -302,13 +302,13 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_xb_settlement_config_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows/post.py b/fireblocks_client/paths/payments_xb_settlements_flows/post.py index 18c5ef8e..9f80fc05 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows/post.py +++ b/fireblocks_client/paths/payments_xb_settlements_flows/post.py @@ -27,13 +27,11 @@ # body param SchemaForRequestBodyApplicationJson = XBSettlementCreateFlowRequestBody - - request_body_xb_settlement_create_flow_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowPreviewModel @@ -42,18 +40,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -61,18 +59,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -80,18 +78,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -99,18 +97,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -119,7 +117,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -128,8 +126,8 @@ def _create_xb_settlement_flow_oapg(self, params: typing.Union[SchemaForRequestB """ Create a new cross-border settlement flow """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -241,12 +239,12 @@ def post( skip_deserialization: bool = False, ): return self._create_xb_settlement_flow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi b/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi index c5f89492..c35f0129 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlemen from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody + # body param SchemaForRequestBodyApplicationJson = XBSettlementCreateFlowRequestBody - - request_body_xb_settlement_create_flow_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowPreviewModel @@ -40,18 +39,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowPreviewModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -59,18 +58,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -78,18 +77,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -97,21 +96,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -120,8 +119,8 @@ class BaseApi(api_client.Api): """ Create a new cross-border settlement flow """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -233,12 +232,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_xb_settlement_flow_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py index 3bdc8fa7..8946bf14 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py +++ b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py @@ -57,18 +57,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -76,18 +76,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -95,18 +95,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -114,18 +114,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '404': _response_for_404, @@ -134,7 +134,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _get_xb_settlement_flow_by_id_oapg(self, params: typing.Union[RequestPathPar for parameter in ( request_path_flow_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -163,7 +165,6 @@ def _get_xb_settlement_flow_by_id_oapg(self, params: typing.Union[RequestPathPar for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ def get( skip_deserialization: bool = False, ): return self._get_xb_settlement_flow_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi index b5852aec..2ee18b18 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse from fireblocks_client.model.error_response import ErrorResponse + # Path params FlowIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -55,18 +56,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementGetFlowResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -74,18 +75,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -93,18 +94,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -112,21 +113,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -139,8 +140,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_flow_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -155,7 +158,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +241,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_xb_settlement_flow_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py index 8a546280..62400130 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py +++ b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py @@ -53,13 +53,11 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = XBSettlementFlowExecutionRequestBody - - request_body_xb_settlement_flow_execution_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowExecutionModel @@ -68,18 +66,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -87,18 +85,18 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -106,18 +104,18 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -125,18 +123,18 @@ class ApiResponseFor404(api_client.ApiResponse): class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -144,18 +142,18 @@ class ApiResponseFor401(api_client.ApiResponse): class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -165,7 +163,7 @@ class ApiResponseFor5XX(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -178,8 +176,10 @@ def _execute_xb_settlement_flow_action_oapg(self, params: typing.Union[SchemaFor for parameter in ( request_path_flow_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -194,7 +194,6 @@ def _execute_xb_settlement_flow_action_oapg(self, params: typing.Union[SchemaFor for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -311,13 +310,13 @@ def post( skip_deserialization: bool = False, ): return self._execute_xb_settlement_flow_action_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi index b1fd0d80..77a679b2 100644 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi +++ b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.xb_settlement_flow_execution_request_body import XB from fireblocks_client.model.error_response import ErrorResponse from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel + # Path params FlowIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_flow_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = XBSettlementFlowExecutionRequestBody - - request_body_xb_settlement_flow_execution_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowExecutionModel @@ -66,18 +65,18 @@ SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowExecutionModel class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) SchemaFor400ResponseBodyApplicationJson = ErrorResponse @@ -85,18 +84,18 @@ SchemaFor400ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, -) + ) SchemaFor404ResponseBodyApplicationJson = ErrorResponse @@ -104,18 +103,18 @@ SchemaFor404ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] + SchemaFor404ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( response_cls=ApiResponseFor404, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor404ResponseBodyApplicationJson), }, -) + ) SchemaFor401ResponseBodyApplicationJson = ErrorResponse @@ -123,18 +122,18 @@ SchemaFor401ResponseBodyApplicationJson = ErrorResponse class ApiResponseFor401(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] + SchemaFor401ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_401 = api_client.OpenApiResponse( response_cls=ApiResponseFor401, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor401ResponseBodyApplicationJson), }, -) + ) SchemaFor5XXResponseBodyApplicationJson = ErrorResponse @@ -142,21 +141,21 @@ SchemaFor5XXResponseBodyApplicationJson = ErrorResponse class ApiResponseFor5XX(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] + SchemaFor5XXResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_5XX = api_client.OpenApiResponse( response_cls=ApiResponseFor5XX, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor5XXResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -169,8 +168,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_flow_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -185,7 +186,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -302,13 +302,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._execute_xb_settlement_flow_action_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py index f07af9fb..2671c06c 100644 --- a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py +++ b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py @@ -25,13 +25,11 @@ # body param SchemaForRequestBodyApplicationJson = TravelRuleUpdateVASPDetails - - request_body_travel_rule_update_vasp_details = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleUpdateVASPDetails @@ -41,18 +39,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -64,7 +62,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -76,7 +74,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -84,7 +82,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -93,14 +91,14 @@ def _travel_rule_api_controller_update_vasp_oapg(self, params: typing.Union[Sche """ Add jsonDidKey to VASP details """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_update_vasp_details, schemas.unset) + body = params.get(travel_rule_update_vasp_details, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_update_vasp_details.serialize(params, "application/json") @@ -210,12 +208,12 @@ def put( skip_deserialization: bool = False, ): return self._travel_rule_api_controller_update_vasp_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi index 4bf31ba6..aecacab6 100644 --- a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi +++ b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi @@ -21,15 +21,14 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails + # body param SchemaForRequestBodyApplicationJson = TravelRuleUpdateVASPDetails - - request_body_travel_rule_update_vasp_details = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleUpdateVASPDetails @@ -39,18 +38,18 @@ SchemaFor200ResponseBodyApplicationJson = TravelRuleUpdateVASPDetails class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -62,7 +61,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -74,10 +73,10 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -86,14 +85,14 @@ class BaseApi(api_client.Api): """ Add jsonDidKey to VASP details """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_update_vasp_details, schemas.unset) + body = params.get(travel_rule_update_vasp_details, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_update_vasp_details.serialize(params, "application/json") @@ -203,12 +202,12 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._travel_rule_api_controller_update_vasp_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py index 0351e56a..57285847 100644 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py +++ b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py @@ -26,13 +26,11 @@ # body param SchemaForRequestBodyApplicationJson = TravelRuleValidateTransactionRequest - - request_body_travel_rule_validate_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse @@ -42,18 +40,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -65,7 +63,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -77,7 +75,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -85,7 +83,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -94,14 +92,14 @@ def _validate_travel_rule_transaction_oapg(self, params: typing.Union[SchemaForR """ Validate Travel Rule Transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_validate_transaction_request, schemas.unset) + body = params.get(travel_rule_validate_transaction_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_validate_transaction_request.serialize(params, "application/json") @@ -211,12 +209,12 @@ def post( skip_deserialization: bool = False, ): return self._validate_travel_rule_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi index 3369b710..0c3a2bf5 100644 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi +++ b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi @@ -22,15 +22,14 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest + # body param SchemaForRequestBodyApplicationJson = TravelRuleValidateTransactionRequest - - request_body_travel_rule_validate_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse @@ -40,18 +39,18 @@ SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -63,7 +62,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -75,10 +74,10 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -87,14 +86,14 @@ class BaseApi(api_client.Api): """ Validate Travel Rule Transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_validate_transaction_request, schemas.unset) + body = params.get(travel_rule_validate_transaction_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_validate_transaction_request.serialize(params, "application/json") @@ -204,12 +203,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._validate_travel_rule_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py index 75366999..8a8b412d 100644 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py +++ b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py @@ -26,13 +26,11 @@ # body param SchemaForRequestBodyApplicationJson = TravelRuleValidateFullTransactionRequest - - request_body_travel_rule_validate_full_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse @@ -42,18 +40,18 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -65,7 +63,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -77,7 +75,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -85,7 +83,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -94,14 +92,14 @@ def _validate_full_travel_rule_transaction_oapg(self, params: typing.Union[Schem """ Validate Full Travel Rule Transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_validate_full_transaction_request, schemas.unset) + body = params.get(travel_rule_validate_full_transaction_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_validate_full_transaction_request.serialize(params, "application/json") @@ -211,12 +209,12 @@ def post( skip_deserialization: bool = False, ): return self._validate_full_travel_rule_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi index ad1c31ed..efb8ab0f 100644 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi +++ b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi @@ -22,15 +22,14 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse + # body param SchemaForRequestBodyApplicationJson = TravelRuleValidateFullTransactionRequest - - request_body_travel_rule_validate_full_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse @@ -40,18 +39,18 @@ SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -63,7 +62,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -75,10 +74,10 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -87,14 +86,14 @@ class BaseApi(api_client.Api): """ Validate Full Travel Rule Transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(travel_rule_validate_full_transaction_request, schemas.unset) + body = params.get(travel_rule_validate_full_transaction_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_travel_rule_validate_full_transaction_request.serialize(params, "application/json") @@ -204,12 +203,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._validate_full_travel_rule_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_vasp/get.py b/fireblocks_client/paths/screening_travel_rule_vasp/get.py index df7970ef..a129d238 100644 --- a/fireblocks_client/paths/screening_travel_rule_vasp/get.py +++ b/fireblocks_client/paths/screening_travel_rule_vasp/get.py @@ -80,24 +80,24 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -112,24 +112,24 @@ def _get_vasps_oapg(self, params: typing.Union[RequestQueryParams,] = None, requ query_params["page"] = params.get("page") query_params["fields"] = params.get("fields") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_order, - request_query_per_page, - request_query_page, - request_query_fields, - ): + request_query_order, + request_query_per_page, + request_query_page, + request_query_fields, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -213,11 +213,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vasps_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi b/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi index fc89b1dd..bf837f33 100644 --- a/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi +++ b/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse + # Query params OrderSchema = schemas.StrSchema PerPageSchema = schemas.NumberSchema @@ -78,21 +79,21 @@ SchemaFor200ResponseBodyApplicationJson = TravelRuleGetAllVASPsResponse class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -107,24 +108,24 @@ class BaseApi(api_client.Api): query_params["page"] = params.get("page") query_params["fields"] = params.get("fields") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_order, - request_query_per_page, - request_query_page, - request_query_fields, - ): + request_query_order, + request_query_per_page, + request_query_page, + request_query_fields, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -208,11 +209,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vasps_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py index ff4f5796..4be746ec 100644 --- a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py +++ b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py @@ -82,18 +82,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -105,7 +105,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -117,7 +117,7 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -125,7 +125,7 @@ class ApiResponseFor500(api_client.ApiResponse): } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -141,8 +141,10 @@ def _get_vaspby_did_oapg(self, params: typing.Union[RequestQueryParams,RequestPa for parameter in ( request_path_did, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -160,17 +162,16 @@ def _get_vaspby_did_oapg(self, params: typing.Union[RequestQueryParams,RequestPa prefix_separator_iterator = None for parameter in ( - request_query_fields, - ): + request_query_fields, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -258,12 +259,12 @@ def get( skip_deserialization: bool = False, ): return self._get_vaspby_did_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi index 697f5521..74885c36 100644 --- a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi +++ b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP + # Query params FieldsSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( @@ -80,18 +81,18 @@ SchemaFor200ResponseBodyApplicationJson = TravelRuleVASP class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, -) + ) @dataclass @@ -103,7 +104,7 @@ class ApiResponseFor400(api_client.ApiResponse): _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, -) + ) @dataclass @@ -115,10 +116,10 @@ class ApiResponseFor500(api_client.ApiResponse): _response_for_500 = api_client.OpenApiResponse( response_cls=ApiResponseFor500, -) + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -134,8 +135,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_did, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -153,17 +156,16 @@ class BaseApi(api_client.Api): prefix_separator_iterator = None for parameter in ( - request_query_fields, - ): + request_query_fields, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -251,12 +253,12 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vaspby_did_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/supported_assets/get.py b/fireblocks_client/paths/supported_assets/get.py index 8a49fa88..934b0747 100644 --- a/fireblocks_client/paths/supported_assets/get.py +++ b/fireblocks_client/paths/supported_assets/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -68,26 +68,26 @@ def __getitem__(self, i: int) -> 'AssetTypeResponse': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,21 +102,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -124,7 +124,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +133,8 @@ def _get_supported_assets_oapg(self, request_options: RequestOptions = None): """ List all asset types supported by Fireblocks """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -220,10 +220,10 @@ def get( skip_deserialization: bool = False, ): return self._get_supported_assets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/supported_assets/get.pyi b/fireblocks_client/paths/supported_assets/get.pyi index 0236a86f..e58e1a4a 100644 --- a/fireblocks_client/paths/supported_assets/get.pyi +++ b/fireblocks_client/paths/supported_assets/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.asset_type_response import AssetTypeResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema @@ -61,21 +62,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -90,25 +91,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -117,8 +118,8 @@ class BaseApi(api_client.Api): """ List all asset types supported by Fireblocks """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -204,10 +205,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_supported_assets_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_active_policy/get.py b/fireblocks_client/paths/tap_active_policy/get.py index a6f0a384..d0478a23 100644 --- a/fireblocks_client/paths/tap_active_policy/get.py +++ b/fireblocks_client/paths/tap_active_policy/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = PolicyAndValidationResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _get_active_policy_oapg(self, request_options: RequestOptions = None): """ Get the active policy and its validation """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def get( skip_deserialization: bool = False, ): return self._get_active_policy_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_active_policy/get.pyi b/fireblocks_client/paths/tap_active_policy/get.pyi index e26b09d5..9d9cb052 100644 --- a/fireblocks_client/paths/tap_active_policy/get.pyi +++ b/fireblocks_client/paths/tap_active_policy/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = PolicyAndValidationResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ Get the active policy and its validation """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_active_policy_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/get.py b/fireblocks_client/paths/tap_draft/get.py index 1d1fa0a2..18e76cd9 100644 --- a/fireblocks_client/paths/tap_draft/get.py +++ b/fireblocks_client/paths/tap_draft/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = DraftReviewAndValidationResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _get_draft_oapg(self, request_options: RequestOptions = None): """ Get the active draft """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def get( skip_deserialization: bool = False, ): return self._get_draft_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/get.pyi b/fireblocks_client/paths/tap_draft/get.pyi index 5b6ed1a5..e0ca43ea 100644 --- a/fireblocks_client/paths/tap_draft/get.pyi +++ b/fireblocks_client/paths/tap_draft/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = DraftReviewAndValidationResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ Get the active draft """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_draft_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/post.py b/fireblocks_client/paths/tap_draft/post.py index 2886fdae..b7f67320 100644 --- a/fireblocks_client/paths/tap_draft/post.py +++ b/fireblocks_client/paths/tap_draft/post.py @@ -76,20 +76,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBody = PublishResult ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -104,26 +102,26 @@ def __new__( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -138,21 +136,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -160,7 +158,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -169,14 +167,14 @@ def _publish_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicati """ Send publish request for a certain draft id """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -293,12 +291,12 @@ def post( skip_deserialization: bool = False, ): return self._publish_draft_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/post.pyi b/fireblocks_client/paths/tap_draft/post.pyi index d89f33dd..b2221808 100644 --- a/fireblocks_client/paths/tap_draft/post.pyi +++ b/fireblocks_client/paths/tap_draft/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.publish_result import PublishResult from fireblocks_client.model.error import Error + # body param @@ -74,13 +75,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -97,21 +96,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -126,25 +125,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -153,14 +152,14 @@ class BaseApi(api_client.Api): """ Send publish request for a certain draft id """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -277,12 +276,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._publish_draft_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/put.py b/fireblocks_client/paths/tap_draft/put.py index ff7899c7..4feae5ad 100644 --- a/fireblocks_client/paths/tap_draft/put.py +++ b/fireblocks_client/paths/tap_draft/put.py @@ -102,20 +102,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = DraftReviewAndValidationResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -130,26 +128,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -164,21 +162,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -186,7 +184,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -195,14 +193,14 @@ def _update_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicatio """ Update the draft with a new set of rules """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -319,12 +317,12 @@ def put( skip_deserialization: bool = False, ): return self._update_draft_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_draft/put.pyi b/fireblocks_client/paths/tap_draft/put.pyi index 185c21b4..5c19009d 100644 --- a/fireblocks_client/paths/tap_draft/put.pyi +++ b/fireblocks_client/paths/tap_draft/put.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.policy_rule import PolicyRule from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse from fireblocks_client.model.error import Error + # body param @@ -100,13 +101,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -123,21 +122,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -152,25 +151,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -179,14 +178,14 @@ class BaseApi(api_client.Api): """ Update the draft with a new set of rules """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -303,12 +302,12 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_draft_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_publish/post.py b/fireblocks_client/paths/tap_publish/post.py index 40b07360..e3304d74 100644 --- a/fireblocks_client/paths/tap_publish/post.py +++ b/fireblocks_client/paths/tap_publish/post.py @@ -102,20 +102,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBody = PublishResult ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -130,26 +128,26 @@ def __new__( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -164,21 +162,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -186,7 +184,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -195,14 +193,14 @@ def _publish_policy_rules_oapg(self, params: typing.Union[SchemaForRequestBodyAp """ Send publish request for a set of policy rules """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -319,12 +317,12 @@ def post( skip_deserialization: bool = False, ): return self._publish_policy_rules_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tap_publish/post.pyi b/fireblocks_client/paths/tap_publish/post.pyi index bd601658..116de25c 100644 --- a/fireblocks_client/paths/tap_publish/post.pyi +++ b/fireblocks_client/paths/tap_publish/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.policy_rule import PolicyRule from fireblocks_client.model.publish_result import PublishResult from fireblocks_client.model.error import Error + # body param @@ -100,13 +101,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -123,21 +122,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -152,25 +151,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -179,14 +178,14 @@ class BaseApi(api_client.Api): """ Send publish request for a set of policy rules """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -303,12 +302,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._publish_policy_rules_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions/get.py b/fireblocks_client/paths/transactions/get.py index d1a67a3a..4312b195 100644 --- a/fireblocks_client/paths/transactions/get.py +++ b/fireblocks_client/paths/transactions/get.py @@ -319,21 +319,21 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) NextPageSchema = schemas.StrSchema next_page_parameter = api_client.HeaderParameter( - name="next-page", +name="next-page", style=api_client.ParameterStyle.SIMPLE, - schema=NextPageSchema, + schema=NextPageSchema, ) PrevPageSchema = schemas.StrSchema prev_page_parameter = api_client.HeaderParameter( - name="prev-page", +name="prev-page", style=api_client.ParameterStyle.SIMPLE, - schema=PrevPageSchema, + schema=PrevPageSchema, ) @@ -375,28 +375,28 @@ def __getitem__(self, i: int) -> 'TransactionResponse': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - next_page_parameter, - prev_page_parameter, - ] -) + x_request_id_parameter, + next_page_parameter, + prev_page_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -411,21 +411,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -433,7 +433,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -458,34 +458,34 @@ def _get_transactions_oapg(self, params: typing.Union[RequestQueryParams,] = Non query_params["source_wallet_id"] = params.get("source_wallet_id") query_params["dest_wallet_id"] = params.get("dest_wallet_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_before, - request_query_after, - request_query_status, - request_query_order_by, - request_query_sort, - request_query_limit, - request_query_source_type, - request_query_source_id, - request_query_dest_type, - request_query_dest_id, - request_query_assets, - request_query_tx_hash, - request_query_source_wallet_id, - request_query_dest_wallet_id, - ): + request_query_before, + request_query_after, + request_query_status, + request_query_order_by, + request_query_sort, + request_query_limit, + request_query_source_type, + request_query_source_id, + request_query_dest_type, + request_query_dest_id, + request_query_assets, + request_query_tx_hash, + request_query_source_wallet_id, + request_query_dest_wallet_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -575,11 +575,11 @@ def get( skip_deserialization: bool = False, ): return self._get_transactions_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions/get.pyi b/fireblocks_client/paths/transactions/get.pyi index da7490fb..ea0a990b 100644 --- a/fireblocks_client/paths/transactions/get.pyi +++ b/fireblocks_client/paths/transactions/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.transaction_response import TransactionResponse + # Query params BeforeSchema = schemas.StrSchema AfterSchema = schemas.StrSchema @@ -312,23 +313,23 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - next_page_parameter, - prev_page_parameter, - ] -) + x_request_id_parameter, + next_page_parameter, + prev_page_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -343,25 +344,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -386,34 +387,34 @@ class BaseApi(api_client.Api): query_params["source_wallet_id"] = params.get("source_wallet_id") query_params["dest_wallet_id"] = params.get("dest_wallet_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_before, - request_query_after, - request_query_status, - request_query_order_by, - request_query_sort, - request_query_limit, - request_query_source_type, - request_query_source_id, - request_query_dest_type, - request_query_dest_id, - request_query_assets, - request_query_tx_hash, - request_query_source_wallet_id, - request_query_dest_wallet_id, - ): + request_query_before, + request_query_after, + request_query_status, + request_query_order_by, + request_query_sort, + request_query_limit, + request_query_source_type, + request_query_source_id, + request_query_dest_type, + request_query_dest_id, + request_query_assets, + request_query_tx_hash, + request_query_source_wallet_id, + request_query_dest_wallet_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -503,11 +504,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_transactions_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions/post.py b/fireblocks_client/paths/transactions/post.py index 2ac92059..9495e108 100644 --- a/fireblocks_client/paths/transactions/post.py +++ b/fireblocks_client/paths/transactions/post.py @@ -27,19 +27,17 @@ # body param SchemaForRequestBodyApplicationJson = TransactionRequest - - request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CreateTransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -54,26 +52,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -88,21 +86,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -110,7 +108,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -119,8 +117,8 @@ def _create_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyAppl """ Create a new transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -245,12 +243,12 @@ def post( skip_deserialization: bool = False, ): return self._create_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions/post.pyi b/fireblocks_client/paths/transactions/post.pyi index 1faef0bd..2ef29676 100644 --- a/fireblocks_client/paths/transactions/post.pyi +++ b/fireblocks_client/paths/transactions/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.transaction_request import TransactionRequest from fireblocks_client.model.error import Error from fireblocks_client.model.create_transaction_response import CreateTransactionResponse + # body param SchemaForRequestBodyApplicationJson = TransactionRequest - - request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = CreateTransactionResponse @@ -47,21 +46,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -76,25 +75,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -103,8 +102,8 @@ class BaseApi(api_client.Api): """ Create a new transaction """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -229,12 +228,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_transaction_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_estimate_fee/post.py b/fireblocks_client/paths/transactions_estimate_fee/post.py index 3d8ed160..339466f1 100644 --- a/fireblocks_client/paths/transactions_estimate_fee/post.py +++ b/fireblocks_client/paths/transactions_estimate_fee/post.py @@ -27,19 +27,17 @@ # body param SchemaForRequestBodyApplicationJson = TransactionRequest - - request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = EstimatedTransactionFeeResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -54,26 +52,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -88,21 +86,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -110,7 +108,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -119,8 +117,8 @@ def _estimate_transaction_fee_oapg(self, params: typing.Union[SchemaForRequestBo """ Estimate transaction fee """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -239,12 +237,12 @@ def post( skip_deserialization: bool = False, ): return self._estimate_transaction_fee_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_estimate_fee/post.pyi b/fireblocks_client/paths/transactions_estimate_fee/post.pyi index a494298b..1f6691e2 100644 --- a/fireblocks_client/paths/transactions_estimate_fee/post.pyi +++ b/fireblocks_client/paths/transactions_estimate_fee/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.transaction_request import TransactionRequest from fireblocks_client.model.error import Error from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse + # body param SchemaForRequestBodyApplicationJson = TransactionRequest - - request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = EstimatedTransactionFeeResponse @@ -47,21 +46,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -76,25 +75,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -103,8 +102,8 @@ class BaseApi(api_client.Api): """ Estimate transaction fee """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() _fields = None @@ -223,12 +222,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._estimate_transaction_fee_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py index 1d93ed35..cdb8b7ed 100644 --- a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py +++ b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = TransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_transaction_by_external_id_oapg(self, params: typing.Union[RequestPathP for parameter in ( request_path_external_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_transaction_by_external_id_oapg(self, params: typing.Union[RequestPathP for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_transaction_by_external_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi index febd44d0..024a1af5 100644 --- a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi +++ b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.transaction_response import TransactionResponse + # Path params ExternalTxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_external_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_transaction_by_external_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id/get.py b/fireblocks_client/paths/transactions_tx_id/get.py index 65603a16..a3027348 100644 --- a/fireblocks_client/paths/transactions_tx_id/get.py +++ b/fireblocks_client/paths/transactions_tx_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = TransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor400ResponseBodyApplicationJson = Error ResponseHeadersFor400 = typing_extensions.TypedDict( @@ -103,26 +103,26 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor400 _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -137,21 +137,21 @@ class ApiResponseFor400(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, '400': _response_for_400, @@ -160,7 +160,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -173,8 +173,10 @@ def _get_transaction_by_id_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -189,7 +191,6 @@ def _get_transaction_by_id_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -279,11 +280,11 @@ def get( skip_deserialization: bool = False, ): return self._get_transaction_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id/get.pyi b/fireblocks_client/paths/transactions_tx_id/get.pyi index 05c5d2c3..34c41855 100644 --- a/fireblocks_client/paths/transactions_tx_id/get.pyi +++ b/fireblocks_client/paths/transactions_tx_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.transaction_response import TransactionResponse + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor400ResponseBodyApplicationJson = Error ResponseHeadersFor400 = typing_extensions.TypedDict( @@ -91,21 +92,21 @@ ResponseHeadersFor400 = typing_extensions.TypedDict( class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] + SchemaFor400ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor400 _response_for_400 = api_client.OpenApiResponse( response_cls=ApiResponseFor400, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor400ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -120,25 +121,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -151,8 +152,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -167,7 +170,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -257,11 +259,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_transaction_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_cancel/post.py b/fireblocks_client/paths/transactions_tx_id_cancel/post.py index e9785391..8777cc27 100644 --- a/fireblocks_client/paths/transactions_tx_id_cancel/post.py +++ b/fireblocks_client/paths/transactions_tx_id_cancel/post.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CancelTransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _cancel_transaction_oapg(self, params: typing.Union[RequestPathParams] = Non for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _cancel_transaction_oapg(self, params: typing.Union[RequestPathParams] = Non for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def post( skip_deserialization: bool = False, ): return self._cancel_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi b/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi index acc44957..41ec3dbb 100644 --- a/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi +++ b/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._cancel_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_drop/post.py b/fireblocks_client/paths/transactions_tx_id_drop/post.py index 46ca132b..beebf6d0 100644 --- a/fireblocks_client/paths/transactions_tx_id_drop/post.py +++ b/fireblocks_client/paths/transactions_tx_id_drop/post.py @@ -53,19 +53,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = DropTransactionRequest - - request_body_drop_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = DropTransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -80,26 +78,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -114,21 +112,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -136,7 +134,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -149,8 +147,10 @@ def _drop_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplic for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -165,7 +165,6 @@ def _drop_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplic for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -289,13 +288,13 @@ def post( skip_deserialization: bool = False, ): return self._drop_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_drop/post.pyi b/fireblocks_client/paths/transactions_tx_id_drop/post.pyi index 82779a75..6183151a 100644 --- a/fireblocks_client/paths/transactions_tx_id_drop/post.pyi +++ b/fireblocks_client/paths/transactions_tx_id_drop/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.drop_transaction_response import DropTransactionRes from fireblocks_client.model.drop_transaction_request import DropTransactionRequest from fireblocks_client.model.error import Error + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_tx_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = DropTransactionRequest - - request_body_drop_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = DropTransactionResponse @@ -73,21 +72,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,25 +101,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +132,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -149,7 +150,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -273,13 +273,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._drop_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_freeze/post.py b/fireblocks_client/paths/transactions_tx_id_freeze/post.py index afbeb10a..a2a0cac9 100644 --- a/fireblocks_client/paths/transactions_tx_id_freeze/post.py +++ b/fireblocks_client/paths/transactions_tx_id_freeze/post.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = FreezeTransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -68,27 +68,27 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -101,8 +101,10 @@ def _freeze_transaction_oapg(self, params: typing.Union[RequestPathParams] = Non for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -117,7 +119,6 @@ def _freeze_transaction_oapg(self, params: typing.Union[RequestPathParams] = Non for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -201,11 +202,11 @@ def post( skip_deserialization: bool = False, ): return self._freeze_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi b/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi index bf6bf602..ae442b2f 100644 --- a/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi +++ b/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -61,24 +62,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -91,8 +92,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -107,7 +110,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -191,11 +193,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._freeze_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py index c2a839f1..25de8b83 100644 --- a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py +++ b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py @@ -53,19 +53,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = SetConfirmationsThresholdResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -80,26 +78,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -114,21 +112,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -136,7 +134,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -149,8 +147,10 @@ def _set_confirmation_threshold_for_transaction_oapg(self, params: typing.Union[ for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -165,7 +165,6 @@ def _set_confirmation_threshold_for_transaction_oapg(self, params: typing.Union[ for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -289,13 +288,13 @@ def post( skip_deserialization: bool = False, ): return self._set_confirmation_threshold_for_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi index 51ee1608..1fbc9c59 100644 --- a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi +++ b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.set_confirmations_threshold_response import SetConf from fireblocks_client.model.error import Error from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_tx_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = SetConfirmationsThresholdResponse @@ -73,21 +72,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,25 +101,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +132,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -149,7 +150,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -273,13 +273,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_confirmation_threshold_for_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py index 8c3251b1..5bbf51b3 100644 --- a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py +++ b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UnfreezeTransactionResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -68,27 +68,27 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -101,8 +101,10 @@ def _unfreeze_transaction_oapg(self, params: typing.Union[RequestPathParams] = N for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -117,7 +119,6 @@ def _unfreeze_transaction_oapg(self, params: typing.Union[RequestPathParams] = N for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -201,11 +202,11 @@ def post( skip_deserialization: bool = False, ): return self._unfreeze_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi index 95981ffe..63c7b6ff 100644 --- a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi +++ b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -61,24 +62,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -91,8 +92,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -107,7 +110,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -191,11 +193,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._unfreeze_transaction_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py index 3ea45868..0e6aa562 100644 --- a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py +++ b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ValidateAddressResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _validate_address_oapg(self, params: typing.Union[RequestPathParams] = None, request_path_asset_id, request_path_address, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _validate_address_oapg(self, params: typing.Union[RequestPathParams] = None, for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def get( skip_deserialization: bool = False, ): return self._validate_address_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi index 3dca1f14..7ea12456 100644 --- a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi +++ b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.validate_address_response import ValidateAddressResponse from fireblocks_client.model.error import Error + # Path params AssetIdSchema = schemas.StrSchema AddressSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_asset_id, request_path_address, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._validate_address_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py index ea92f2bc..2d1fdfcb 100644 --- a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py +++ b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py @@ -53,19 +53,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = SetConfirmationsThresholdResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -80,26 +78,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -114,21 +112,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -136,7 +134,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -149,8 +147,10 @@ def _set_confirmation_threshold_for_transaction_by_hash_oapg(self, params: typin for parameter in ( request_path_tx_hash, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -165,7 +165,6 @@ def _set_confirmation_threshold_for_transaction_by_hash_oapg(self, params: typin for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -289,13 +288,13 @@ def post( skip_deserialization: bool = False, ): return self._set_confirmation_threshold_for_transaction_by_hash_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi index d19b2884..e11032e8 100644 --- a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi +++ b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.set_confirmations_threshold_response import SetConf from fireblocks_client.model.error import Error from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest + # Path params TxHashSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_tx_hash = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = SetConfirmationsThresholdResponse @@ -73,21 +72,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -102,25 +101,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -133,8 +132,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_hash, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -149,7 +150,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -273,13 +273,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_confirmation_threshold_for_transaction_by_hash_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users/get.py b/fireblocks_client/paths/users/get.py index 2f2e734e..0640a0ca 100644 --- a/fireblocks_client/paths/users/get.py +++ b/fireblocks_client/paths/users/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = GetUsersResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _get_users_oapg(self, request_options: RequestOptions = None): """ List users """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def get( skip_deserialization: bool = False, ): return self._get_users_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users/get.pyi b/fireblocks_client/paths/users/get.pyi index 37779f62..e201efd9 100644 --- a/fireblocks_client/paths/users/get.pyi +++ b/fireblocks_client/paths/users/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.get_users_response import GetUsersResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = GetUsersResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ List users """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_users_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups/get.py b/fireblocks_client/paths/users_groups/get.py index f9134f9b..926a4a68 100644 --- a/fireblocks_client/paths/users_groups/get.py +++ b/fireblocks_client/paths/users_groups/get.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UsersGroupsResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _get_user_groups_oapg(self, request_options: RequestOptions = None): """ List users groups """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def get( skip_deserialization: bool = False, ): return self._get_user_groups_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups/get.pyi b/fireblocks_client/paths/users_groups/get.pyi index bd9c5660..8e4535ca 100644 --- a/fireblocks_client/paths/users_groups/get.pyi +++ b/fireblocks_client/paths/users_groups/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.users_groups_response import UsersGroupsResponse from fireblocks_client.model.error import Error + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = UsersGroupsResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ List users groups """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_user_groups_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups/post.py b/fireblocks_client/paths/users_groups/post.py index 0bf5c971..686b3242 100644 --- a/fireblocks_client/paths/users_groups/post.py +++ b/fireblocks_client/paths/users_groups/post.py @@ -27,20 +27,18 @@ # body param SchemaForRequestBodyApplicationJson = UserGroupCreateRequest - - request_body_user_group_create_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor201ResponseBody = CreateUsersGroupResponse ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -55,26 +53,26 @@ class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -89,21 +87,21 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, @@ -111,7 +109,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -120,14 +118,14 @@ def _create_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyAppli """ Create users group """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(user_group_create_request, schemas.unset) + body = params.get(user_group_create_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_user_group_create_request.serialize(params, "application/json") @@ -244,12 +242,12 @@ def post( skip_deserialization: bool = False, ): return self._create_user_group_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups/post.pyi b/fireblocks_client/paths/users_groups/post.pyi index 7dc6951f..824e0bff 100644 --- a/fireblocks_client/paths/users_groups/post.pyi +++ b/fireblocks_client/paths/users_groups/post.pyi @@ -23,15 +23,14 @@ from fireblocks_client.model.user_group_create_request import UserGroupCreateReq from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse from fireblocks_client.model.error import Error + # body param SchemaForRequestBodyApplicationJson = UserGroupCreateRequest - - request_body_user_group_create_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -48,21 +47,21 @@ ResponseHeadersFor201 = typing_extensions.TypedDict( class ApiResponseFor201(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor201ResponseBody, - ] + SchemaFor201ResponseBody, + ] headers: ResponseHeadersFor201 _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor201ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,25 +76,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -104,14 +103,14 @@ class BaseApi(api_client.Api): """ Create users group """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(user_group_create_request, schemas.unset) + body = params.get(user_group_create_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_user_group_create_request.serialize(params, "application/json") @@ -228,12 +227,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_user_group_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/delete.py b/fireblocks_client/paths/users_groups_group_id/delete.py index 47e59483..885e14b6 100644 --- a/fireblocks_client/paths/users_groups_group_id/delete.py +++ b/fireblocks_client/paths/users_groups_group_id/delete.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor204 = typing_extensions.TypedDict( 'ResponseHeadersFor204', @@ -73,14 +73,14 @@ class ApiResponseFor204(api_client.ApiResponse): _response_for_204 = api_client.OpenApiResponse( response_cls=ApiResponseFor204, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor204(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '204': _response_for_204, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _delete_user_group_oapg(self, params: typing.Union[RequestPathParams] = None for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _delete_user_group_oapg(self, params: typing.Union[RequestPathParams] = None for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def delete( skip_deserialization: bool = False, ): return self._delete_user_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/delete.pyi b/fireblocks_client/paths/users_groups_group_id/delete.pyi index 593105e8..bacc7957 100644 --- a/fireblocks_client/paths/users_groups_group_id/delete.pyi +++ b/fireblocks_client/paths/users_groups_group_id/delete.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params GroupIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor204(api_client.ApiResponse): _response_for_204 = api_client.OpenApiResponse( response_cls=ApiResponseFor204, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiFordelete(BaseApi): skip_deserialization: bool = False, ): return self._delete_user_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/get.py b/fireblocks_client/paths/users_groups_group_id/get.py index a70e7947..6e4b8a5b 100644 --- a/fireblocks_client/paths/users_groups_group_id/get.py +++ b/fireblocks_client/paths/users_groups_group_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UsersGroupResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_user_group_oapg(self, params: typing.Union[RequestPathParams] = None, r for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_user_group_oapg(self, params: typing.Union[RequestPathParams] = None, r for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_user_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/get.pyi b/fireblocks_client/paths/users_groups_group_id/get.pyi index 16e92f26..6c0c2d91 100644 --- a/fireblocks_client/paths/users_groups_group_id/get.pyi +++ b/fireblocks_client/paths/users_groups_group_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.users_group_response import UsersGroupResponse from fireblocks_client.model.error import Error + # Path params GroupIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_user_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/put.py b/fireblocks_client/paths/users_groups_group_id/put.py index 67a7a515..df270941 100644 --- a/fireblocks_client/paths/users_groups_group_id/put.py +++ b/fireblocks_client/paths/users_groups_group_id/put.py @@ -53,20 +53,18 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBodyApplicationJson = UserGroupUpdateRequest - - request_body_user_group_update_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = UserGroupCreateResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -81,26 +79,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -115,21 +113,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -137,7 +135,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -150,8 +148,10 @@ def _update_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyAppli for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -166,13 +166,12 @@ def _update_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyAppli for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(user_group_update_request, schemas.unset) + body = params.get(user_group_update_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_user_group_update_request.serialize(params, "application/json") @@ -294,13 +293,13 @@ def put( skip_deserialization: bool = False, ): return self._update_user_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/users_groups_group_id/put.pyi b/fireblocks_client/paths/users_groups_group_id/put.pyi index 5a5065cc..0e56f4ba 100644 --- a/fireblocks_client/paths/users_groups_group_id/put.pyi +++ b/fireblocks_client/paths/users_groups_group_id/put.pyi @@ -23,6 +23,7 @@ from fireblocks_client.model.user_group_update_request import UserGroupUpdateReq from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse from fireblocks_client.model.error import Error + # Path params GroupIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -51,13 +52,11 @@ request_path_group_id = api_client.PathParameter( ) # body param SchemaForRequestBodyApplicationJson = UserGroupUpdateRequest - - request_body_user_group_update_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -74,21 +73,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,25 +102,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -134,8 +133,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_group_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -150,13 +151,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(user_group_update_request, schemas.unset) + body = params.get(user_group_update_request, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_user_group_update_request.serialize(params, "application/json") @@ -278,13 +278,13 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_user_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts/get.py b/fireblocks_client/paths/vault_accounts/get.py index 9d6e0ffd..59f7da1e 100644 --- a/fireblocks_client/paths/vault_accounts/get.py +++ b/fireblocks_client/paths/vault_accounts/get.py @@ -76,9 +76,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -118,26 +118,26 @@ def __getitem__(self, i: int) -> 'VaultAccount': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -152,21 +152,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -174,7 +174,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -189,24 +189,24 @@ def _get_vault_accounts_oapg(self, params: typing.Union[RequestQueryParams,] = N query_params["min_amount_threshold"] = params.get("min_amount_threshold") query_params["asset_id"] = params.get("asset_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - ): + request_query_name_prefix, + request_query_name_suffix, + request_query_min_amount_threshold, + request_query_asset_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -296,11 +296,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_accounts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts/get.pyi b/fireblocks_client/paths/vault_accounts/get.pyi index ebb3f73e..77a8e112 100644 --- a/fireblocks_client/paths/vault_accounts/get.pyi +++ b/fireblocks_client/paths/vault_accounts/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_account import VaultAccount from fireblocks_client.model.error import Error + # Query params NamePrefixSchema = schemas.StrSchema NameSuffixSchema = schemas.StrSchema @@ -111,21 +112,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -140,25 +141,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -173,24 +174,24 @@ class BaseApi(api_client.Api): query_params["min_amount_threshold"] = params.get("min_amount_threshold") query_params["asset_id"] = params.get("asset_id") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - ): + request_query_name_prefix, + request_query_name_suffix, + request_query_min_amount_threshold, + request_query_asset_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -280,11 +281,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_accounts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts/post.py b/fireblocks_client/paths/vault_accounts/post.py index 635558bd..487bbb3e 100644 --- a/fireblocks_client/paths/vault_accounts/post.py +++ b/fireblocks_client/paths/vault_accounts/post.py @@ -106,20 +106,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = VaultAccount ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -134,26 +132,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -168,21 +166,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -190,7 +188,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -199,14 +197,14 @@ def _create_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyAp """ Create a new vault account """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -323,12 +321,12 @@ def post( skip_deserialization: bool = False, ): return self._create_vault_account_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts/post.pyi b/fireblocks_client/paths/vault_accounts/post.pyi index 383bcec1..85f2f718 100644 --- a/fireblocks_client/paths/vault_accounts/post.pyi +++ b/fireblocks_client/paths/vault_accounts/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_account import VaultAccount from fireblocks_client.model.error import Error + # body param @@ -104,13 +105,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,21 +126,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,25 +155,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -183,14 +182,14 @@ class BaseApi(api_client.Api): """ Create a new vault account """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -307,12 +306,12 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_vault_account_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_paged/get.py b/fireblocks_client/paths/vault_accounts_paged/get.py index 1da6065b..78906244 100644 --- a/fireblocks_client/paths/vault_accounts_paged/get.py +++ b/fireblocks_client/paths/vault_accounts_paged/get.py @@ -136,9 +136,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = VaultAccountsPagedResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -153,27 +153,27 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -192,28 +192,28 @@ def _get_paged_vault_accounts_oapg(self, params: typing.Union[RequestQueryParams query_params["after"] = params.get("after") query_params["limit"] = params.get("limit") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - request_query_order_by, - request_query_before, - request_query_after, - request_query_limit, - ): + request_query_name_prefix, + request_query_name_suffix, + request_query_min_amount_threshold, + request_query_asset_id, + request_query_order_by, + request_query_before, + request_query_after, + request_query_limit, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -297,11 +297,11 @@ def get( skip_deserialization: bool = False, ): return self._get_paged_vault_accounts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_paged/get.pyi b/fireblocks_client/paths/vault_accounts_paged/get.pyi index e75fd765..8e323f59 100644 --- a/fireblocks_client/paths/vault_accounts_paged/get.pyi +++ b/fireblocks_client/paths/vault_accounts_paged/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse + # Query params NamePrefixSchema = schemas.StrSchema NameSuffixSchema = schemas.StrSchema @@ -135,24 +136,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -171,28 +172,28 @@ class BaseApi(api_client.Api): query_params["after"] = params.get("after") query_params["limit"] = params.get("limit") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - request_query_order_by, - request_query_before, - request_query_after, - request_query_limit, - ): + request_query_name_prefix, + request_query_name_suffix, + request_query_min_amount_threshold, + request_query_asset_id, + request_query_order_by, + request_query_before, + request_query_after, + request_query_limit, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -276,11 +277,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_paged_vault_accounts_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id/get.py index 566a15a0..7ace02e9 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = VaultAccount ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_vault_account_by_id_oapg(self, params: typing.Union[RequestPathParams] for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_vault_account_by_id_oapg(self, params: typing.Union[RequestPathParams] for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi index 722716b2..04514fd7 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_account import VaultAccount from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_account_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/put.py b/fireblocks_client/paths/vault_accounts_vault_account_id/put.py index 864515cc..1362373a 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/put.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id/put.py @@ -101,20 +101,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -134,14 +132,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,28 +154,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -190,8 +188,10 @@ def _update_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyAp for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -206,13 +206,12 @@ def _update_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyAp for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -334,13 +333,13 @@ def put( skip_deserialization: bool = False, ): return self._update_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi index 5dd036ea..c3337b2d 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,9 +126,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,24 +143,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -174,8 +173,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -190,13 +191,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -318,13 +318,13 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py index bb0488ff..cbd45915 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py @@ -65,23 +65,23 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -96,21 +96,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -118,7 +118,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -132,8 +132,10 @@ def _get_vault_account_asset_oapg(self, params: typing.Union[RequestPathParams] request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -149,7 +151,6 @@ def _get_vault_account_asset_oapg(self, params: typing.Union[RequestPathParams] for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -239,11 +240,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi index 63824af6..89983129 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_asset import VaultAsset from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -63,18 +64,18 @@ SchemaFor200ResponseBody = VaultAsset class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, -) + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -89,25 +90,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -121,8 +122,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py index 4c0167c2..643a5e1c 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py @@ -110,19 +110,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CreateVaultAssetResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -137,26 +135,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -171,21 +169,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -193,7 +191,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -207,8 +205,10 @@ def _create_vault_account_asset_oapg(self, params: typing.Union[SchemaForRequest request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -224,7 +224,6 @@ def _create_vault_account_asset_oapg(self, params: typing.Union[SchemaForRequest for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -348,13 +347,13 @@ def post( skip_deserialization: bool = False, ): return self._create_vault_account_asset_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi index 76757cad..f29c460f 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -108,13 +109,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = CreateVaultAssetResponse @@ -130,21 +129,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -159,25 +158,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -191,8 +190,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -208,7 +209,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -332,13 +332,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_vault_account_asset_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py index dd8dca91..fbb2ea06 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CreateVaultAssetResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -77,26 +77,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -111,21 +111,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -133,7 +133,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -147,8 +147,10 @@ def _activate_asset_for_vault_account_oapg(self, params: typing.Union[RequestPat request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -164,7 +166,6 @@ def _activate_asset_for_vault_account_oapg(self, params: typing.Union[RequestPat for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -254,11 +255,11 @@ def post( skip_deserialization: bool = False, ): return self._activate_asset_for_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi index 724f093a..16ca2629 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -70,21 +71,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -99,25 +100,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -131,8 +132,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -148,7 +151,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -238,11 +240,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._activate_asset_for_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py index 5a1dd324..bf744e8c 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -102,26 +102,26 @@ def __getitem__(self, i: int) -> 'VaultWalletAddress': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -136,21 +136,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -158,7 +158,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -172,8 +172,10 @@ def _get_vault_account_asset_addresses_oapg(self, params: typing.Union[RequestPa request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -189,7 +191,6 @@ def _get_vault_account_asset_addresses_oapg(self, params: typing.Union[RequestPa for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -279,11 +280,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_account_asset_addresses_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi index 1342dc54..ca37128a 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_wallet_address import VaultWalletAddress from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -95,21 +96,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -124,25 +125,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -156,8 +157,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -173,7 +176,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -263,11 +265,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_account_asset_addresses_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py index 08255d5d..731e7305 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py @@ -120,19 +120,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CreateAddressResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -147,26 +145,26 @@ def __new__( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -181,21 +179,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -203,7 +201,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -217,8 +215,10 @@ def _create_vault_account_asset_address_oapg(self, params: typing.Union[SchemaFo request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -234,7 +234,6 @@ def _create_vault_account_asset_address_oapg(self, params: typing.Union[SchemaFo for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -358,13 +357,13 @@ def post( skip_deserialization: bool = False, ): return self._create_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi index cba0fe5a..a96c6290 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_address_response import CreateAddressResponse from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -118,13 +119,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = CreateAddressResponse @@ -140,21 +139,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -169,25 +168,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -201,8 +200,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -218,7 +219,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -342,13 +342,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py index baf1dfd0..928aff92 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py @@ -117,19 +117,17 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -149,14 +147,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -171,28 +169,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -207,8 +205,10 @@ def _update_vault_account_asset_address_oapg(self, params: typing.Union[SchemaFo request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -225,7 +225,6 @@ def _update_vault_account_asset_address_oapg(self, params: typing.Union[SchemaFo for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -349,13 +348,13 @@ def put( skip_deserialization: bool = False, ): return self._update_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi index fe5736de..6c72b41f 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -115,13 +116,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, ) XRequestIDSchema = schemas.StrSchema ResponseHeadersFor201 = typing_extensions.TypedDict( @@ -142,9 +141,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -159,24 +158,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -191,8 +190,10 @@ class BaseApi(api_client.Api): request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -209,7 +210,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -333,13 +333,13 @@ class ApiForput(BaseApi): skip_deserialization: bool = False, ): return self._update_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py index 9c179a0c..4f29e435 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py @@ -68,9 +68,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = CreateAddressResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -85,26 +85,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -119,21 +119,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -141,7 +141,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -156,8 +156,10 @@ def _create_legacy_address_for_vault_account_asset_oapg(self, params: typing.Uni request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -174,7 +176,6 @@ def _create_legacy_address_for_vault_account_asset_oapg(self, params: typing.Uni for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -264,11 +265,11 @@ def post( skip_deserialization: bool = False, ): return self._create_legacy_address_for_vault_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi index fc257422..01512b5d 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.create_address_response import CreateAddressResponse from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -78,21 +79,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -107,25 +108,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -140,8 +141,10 @@ class BaseApi(api_client.Api): request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -158,7 +161,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -248,11 +250,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._create_legacy_address_for_vault_account_asset_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py index 232c83c4..84e8fa3b 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py @@ -117,20 +117,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -150,14 +148,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -172,28 +170,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -208,8 +206,10 @@ def _set_customer_ref_id_for_vault_account_asset_address_oapg(self, params: typi request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -226,13 +226,12 @@ def _set_customer_ref_id_for_vault_account_asset_address_oapg(self, params: typi for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -354,13 +353,13 @@ def post( skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi index b0f62296..cc755a56 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -115,13 +116,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -143,9 +142,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -160,24 +159,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -192,8 +191,10 @@ class BaseApi(api_client.Api): request_path_asset_id, request_path_address_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -210,13 +211,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -338,13 +338,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_vault_account_asset_address_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py index 0efb9b91..89e48a5b 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py @@ -60,19 +60,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) # body param SchemaForRequestBody = schemas.DictSchema - - request_body_body = api_client.RequestBody( - content={ - '*/*': api_client.MediaType( - schema=SchemaForRequestBody), - }, +content={ + '*/*': api_client.MediaType( + schema=SchemaForRequestBody), +}, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = VaultAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -87,26 +85,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -121,21 +119,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -143,7 +141,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -157,8 +155,10 @@ def _update_vault_account_asset_balance_oapg(self, params: typing.Union[SchemaFo request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -174,7 +174,6 @@ def _update_vault_account_asset_balance_oapg(self, params: typing.Union[SchemaFo for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -298,13 +297,13 @@ def post( skip_deserialization: bool = False, ): return self._update_vault_account_asset_balance_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi index 67968e19..d3884a95 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_asset import VaultAsset from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -58,13 +59,11 @@ request_path_asset_id = api_client.PathParameter( ) # body param SchemaForRequestBody = schemas.DictSchema - - request_body_body = api_client.RequestBody( - content={ - '*/*': api_client.MediaType( - schema=SchemaForRequestBody), - }, +content={ + '*/*': api_client.MediaType( + schema=SchemaForRequestBody), +}, ) XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = VaultAsset @@ -80,21 +79,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -109,25 +108,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -141,8 +140,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -158,7 +159,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() _fields = None @@ -282,13 +282,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._update_vault_account_asset_balance_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py index f9a6641f..816a4412 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py @@ -102,9 +102,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = PublicKeyInformation ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -119,26 +119,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -153,21 +153,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -175,7 +175,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -194,8 +194,10 @@ def _get_public_key_info_for_address_oapg(self, params: typing.Union[RequestQuer request_path_change, request_path_address_index, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -216,17 +218,16 @@ def _get_public_key_info_for_address_oapg(self, params: typing.Union[RequestQuer prefix_separator_iterator = None for parameter in ( - request_query_compressed, - ): + request_query_compressed, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -320,12 +321,12 @@ def get( skip_deserialization: bool = False, ): return self._get_public_key_info_for_address_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi index bf8f896c..0422e71b 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.public_key_information import PublicKeyInformation from fireblocks_client.model.error import Error + # Query params CompressedSchema = schemas.BoolSchema RequestRequiredQueryParams = typing_extensions.TypedDict( @@ -112,21 +113,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -141,25 +142,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -178,8 +179,10 @@ class BaseApi(api_client.Api): request_path_change, request_path_address_index, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -200,17 +203,16 @@ class BaseApi(api_client.Api): prefix_separator_iterator = None for parameter in ( - request_query_compressed, - ): + request_query_compressed, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -304,12 +306,12 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_public_key_info_for_address_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py index ad79b1ef..c916c379 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py @@ -85,9 +85,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -107,14 +107,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -129,28 +129,28 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -167,8 +167,10 @@ def _get_max_spendable_amount_oapg(self, params: typing.Union[RequestQueryParams request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -187,17 +189,16 @@ def _get_max_spendable_amount_oapg(self, params: typing.Union[RequestQueryParams prefix_separator_iterator = None for parameter in ( - request_query_manual_signging, - ): + request_query_manual_signging, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -291,12 +292,12 @@ def get( skip_deserialization: bool = False, ): return self._get_max_spendable_amount_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi index b9e12dc5..501fc06a 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Query params ManualSigngingSchema = schemas.BoolSchema RequestRequiredQueryParams = typing_extensions.TypedDict( @@ -100,9 +101,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -117,24 +118,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -151,8 +152,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -171,17 +174,16 @@ class BaseApi(api_client.Api): prefix_separator_iterator = None for parameter in ( - request_query_manual_signging, - ): + request_query_manual_signging, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -275,12 +277,12 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_max_spendable_amount_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py index 45b5611c..e765fd1c 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py @@ -60,9 +60,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -102,26 +102,26 @@ def __getitem__(self, i: int) -> 'UnspentInputsResponse': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -136,21 +136,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -158,7 +158,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -172,8 +172,10 @@ def _get_vault_account_asset_unspent_inputs_oapg(self, params: typing.Union[Requ request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -189,7 +191,6 @@ def _get_vault_account_asset_unspent_inputs_oapg(self, params: typing.Union[Requ for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -279,11 +280,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_account_asset_unspent_inputs_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi index 0ee5de65..c97aa3fe 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema AssetIdSchema = schemas.StrSchema @@ -95,21 +96,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -124,25 +125,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -156,8 +157,10 @@ class BaseApi(api_client.Api): request_path_vault_account_id, request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -173,7 +176,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -263,11 +265,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_account_asset_unspent_inputs_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py index 47ed1a09..c4abe064 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -73,14 +73,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _hide_vault_account_oapg(self, params: typing.Union[RequestPathParams] = Non for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _hide_vault_account_oapg(self, params: typing.Union[RequestPathParams] = Non for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def post( skip_deserialization: bool = False, ): return self._hide_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi index 720d1181..e7711956 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._hide_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py index f79ae206..4b7b7c33 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py @@ -101,20 +101,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -134,14 +132,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,28 +154,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -190,8 +188,10 @@ def _set_auto_fuel_for_vault_account_oapg(self, params: typing.Union[SchemaForRe for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -206,13 +206,12 @@ def _set_auto_fuel_for_vault_account_oapg(self, params: typing.Union[SchemaForRe for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -334,13 +333,13 @@ def post( skip_deserialization: bool = False, ): return self._set_auto_fuel_for_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi index 4c6bf57d..e04dc00c 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,9 +126,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,24 +143,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -174,8 +173,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -190,13 +191,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -318,13 +318,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_auto_fuel_for_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py index c3e02744..b29eed84 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py @@ -101,20 +101,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -134,14 +132,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -156,28 +154,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -190,8 +188,10 @@ def _set_customer_ref_id_for_vault_account_oapg(self, params: typing.Union[Schem for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -206,13 +206,12 @@ def _set_customer_ref_id_for_vault_account_oapg(self, params: typing.Union[Schem for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -334,13 +333,13 @@ def post( skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi index 0f3d4cf4..f37eea29 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -99,13 +100,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -127,9 +126,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -144,24 +143,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -174,8 +173,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -190,13 +191,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -318,13 +318,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._set_customer_ref_id_for_vault_account_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py index 0ea9a2c2..554ced6e 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py @@ -51,9 +51,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor201 = typing_extensions.TypedDict( 'ResponseHeadersFor201', @@ -73,14 +73,14 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -95,28 +95,28 @@ class ApiResponseFor201(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '201': _response_for_201, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -129,8 +129,10 @@ def _unhide_vault_account_oapg(self, params: typing.Union[RequestPathParams] = N for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -145,7 +147,6 @@ def _unhide_vault_account_oapg(self, params: typing.Union[RequestPathParams] = N for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -235,11 +236,11 @@ def post( skip_deserialization: bool = False, ): return self._unhide_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi index 299c49c7..ed65fad1 100644 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi +++ b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params VaultAccountIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -66,9 +67,9 @@ class ApiResponseFor201(api_client.ApiResponse): _response_for_201 = api_client.OpenApiResponse( response_cls=ApiResponseFor201, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -83,24 +84,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -113,8 +114,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_vault_account_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -129,7 +132,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -219,11 +221,11 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._unhide_vault_account_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_asset_wallets/get.py b/fireblocks_client/paths/vault_asset_wallets/get.py index 4cf81987..63420791 100644 --- a/fireblocks_client/paths/vault_asset_wallets/get.py +++ b/fireblocks_client/paths/vault_asset_wallets/get.py @@ -92,9 +92,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = PaginatedAssetWalletResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -109,27 +109,27 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -145,25 +145,25 @@ def _get_asset_wallets_oapg(self, params: typing.Union[RequestQueryParams,] = No query_params["after"] = params.get("after") query_params["limit"] = params.get("limit") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_total_amount_larger_than, - request_query_asset_id, - request_query_before, - request_query_after, - request_query_limit, - ): + request_query_total_amount_larger_than, + request_query_asset_id, + request_query_before, + request_query_after, + request_query_limit, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +247,11 @@ def get( skip_deserialization: bool = False, ): return self._get_asset_wallets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_asset_wallets/get.pyi b/fireblocks_client/paths/vault_asset_wallets/get.pyi index 8523f01f..6c18fb79 100644 --- a/fireblocks_client/paths/vault_asset_wallets/get.pyi +++ b/fireblocks_client/paths/vault_asset_wallets/get.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse + # Query params TotalAmountLargerThanSchema = schemas.NumberSchema AssetIdSchema = schemas.StrSchema @@ -98,24 +99,24 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', -) + ) class BaseApi(api_client.Api): @@ -131,25 +132,25 @@ class BaseApi(api_client.Api): query_params["after"] = params.get("after") query_params["limit"] = params.get("limit") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_total_amount_larger_than, - request_query_asset_id, - request_query_before, - request_query_after, - request_query_limit, - ): + request_query_total_amount_larger_than, + request_query_asset_id, + request_query_before, + request_query_after, + request_query_limit, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -233,11 +234,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_asset_wallets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_assets/get.py b/fireblocks_client/paths/vault_assets/get.py index 49bb0c78..cb233126 100644 --- a/fireblocks_client/paths/vault_assets/get.py +++ b/fireblocks_client/paths/vault_assets/get.py @@ -60,9 +60,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) @@ -102,26 +102,26 @@ def __getitem__(self, i: int) -> 'VaultAsset': class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -136,21 +136,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -158,7 +158,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -171,22 +171,22 @@ def _get_vault_assets_oapg(self, params: typing.Union[RequestQueryParams,] = Non query_params["account_name_prefix"] = params.get("account_name_prefix") query_params["account_name_suffix"] = params.get("account_name_suffix") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_account_name_prefix, - request_query_account_name_suffix, - ): + request_query_account_name_prefix, + request_query_account_name_suffix, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -276,11 +276,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_assets/get.pyi b/fireblocks_client/paths/vault_assets/get.pyi index 79845ad7..471835f5 100644 --- a/fireblocks_client/paths/vault_assets/get.pyi +++ b/fireblocks_client/paths/vault_assets/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_asset import VaultAsset from fireblocks_client.model.error import Error + # Query params AccountNamePrefixSchema = schemas.StrSchema AccountNameSuffixSchema = schemas.StrSchema @@ -95,21 +96,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -124,25 +125,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -155,22 +156,22 @@ class BaseApi(api_client.Api): query_params["account_name_prefix"] = params.get("account_name_prefix") query_params["account_name_suffix"] = params.get("account_name_suffix") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_account_name_prefix, - request_query_account_name_suffix, - ): + request_query_account_name_prefix, + request_query_account_name_suffix, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -260,11 +261,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_assets_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_assets_asset_id/get.py b/fireblocks_client/paths/vault_assets_asset_id/get.py index c2aa7567..918fd6c2 100644 --- a/fireblocks_client/paths/vault_assets_asset_id/get.py +++ b/fireblocks_client/paths/vault_assets_asset_id/get.py @@ -52,9 +52,9 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = VaultAsset ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -69,26 +69,26 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -103,21 +103,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -125,7 +125,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -138,8 +138,10 @@ def _get_vault_asset_by_id_oapg(self, params: typing.Union[RequestPathParams] = for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -154,7 +156,6 @@ def _get_vault_asset_by_id_oapg(self, params: typing.Union[RequestPathParams] = for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -244,11 +245,11 @@ def get( skip_deserialization: bool = False, ): return self._get_vault_asset_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_assets_asset_id/get.pyi b/fireblocks_client/paths/vault_assets_asset_id/get.pyi index 7a3c5e1e..55f461ba 100644 --- a/fireblocks_client/paths/vault_assets_asset_id/get.pyi +++ b/fireblocks_client/paths/vault_assets_asset_id/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.vault_asset import VaultAsset from fireblocks_client.model.error import Error + # Path params AssetIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -62,21 +63,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -91,25 +92,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -122,8 +123,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_asset_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -138,7 +141,6 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -228,11 +230,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_vault_asset_by_id_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + path_params=path_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_public_key_info_/get.py b/fireblocks_client/paths/vault_public_key_info_/get.py index 776cf97b..e168ec3a 100644 --- a/fireblocks_client/paths/vault_public_key_info_/get.py +++ b/fireblocks_client/paths/vault_public_key_info_/get.py @@ -70,9 +70,9 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = PublicKeyInformation ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -87,26 +87,26 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -121,21 +121,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -143,7 +143,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -157,23 +157,23 @@ def _get_public_key_info_oapg(self, params: typing.Union[RequestQueryParams,] = query_params["algorithm"] = params.get("algorithm") query_params["compressed"] = params.get("compressed") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_derivation_path, - request_query_algorithm, - request_query_compressed, - ): + request_query_derivation_path, + request_query_algorithm, + request_query_compressed, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -263,11 +263,11 @@ def get( skip_deserialization: bool = False, ): return self._get_public_key_info_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/vault_public_key_info_/get.pyi b/fireblocks_client/paths/vault_public_key_info_/get.pyi index c01c0bfc..0c5465c1 100644 --- a/fireblocks_client/paths/vault_public_key_info_/get.pyi +++ b/fireblocks_client/paths/vault_public_key_info_/get.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.public_key_information import PublicKeyInformation from fireblocks_client.model.error import Error + # Query params DerivationPathSchema = schemas.StrSchema AlgorithmSchema = schemas.StrSchema @@ -80,21 +81,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -109,25 +110,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -141,23 +142,23 @@ class BaseApi(api_client.Api): query_params["algorithm"] = params.get("algorithm") query_params["compressed"] = params.get("compressed") self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) + used_path = path.value prefix_separator_iterator = None for parameter in ( - request_query_derivation_path, - request_query_algorithm, - request_query_compressed, - ): + request_query_derivation_path, + request_query_algorithm, + request_query_compressed, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) + serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) for serialized_value in serialized_data.values(): used_path += serialized_value - _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -247,11 +248,11 @@ class ApiForget(BaseApi): skip_deserialization: bool = False, ): return self._get_public_key_info_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + query_params=query_params, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/webhooks_resend/post.py b/fireblocks_client/paths/webhooks_resend/post.py index 3014995a..4055175b 100644 --- a/fireblocks_client/paths/webhooks_resend/post.py +++ b/fireblocks_client/paths/webhooks_resend/post.py @@ -26,9 +26,9 @@ XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor200ResponseBody = ResendWebhooksResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -43,26 +43,26 @@ class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -77,21 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, @@ -99,7 +99,7 @@ class ApiResponseForDefault(api_client.ApiResponse): _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -108,8 +108,8 @@ def _resend_webhooks_oapg(self, request_options: RequestOptions = None): """ Resend failed webhooks """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -195,10 +195,10 @@ def post( skip_deserialization: bool = False, ): return self._resend_webhooks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/webhooks_resend/post.pyi b/fireblocks_client/paths/webhooks_resend/post.pyi index 44feebed..8506d658 100644 --- a/fireblocks_client/paths/webhooks_resend/post.pyi +++ b/fireblocks_client/paths/webhooks_resend/post.pyi @@ -22,6 +22,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse + XRequestIDSchema = schemas.StrSchema SchemaFor200ResponseBody = ResendWebhooksResponse ResponseHeadersFor200 = typing_extensions.TypedDict( @@ -36,21 +37,21 @@ ResponseHeadersFor200 = typing_extensions.TypedDict( class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor200ResponseBody, - ] + SchemaFor200ResponseBody, + ] headers: ResponseHeadersFor200 _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), + '*/*': api_client.MediaType( + schema=SchemaFor200ResponseBody), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -65,25 +66,25 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( '*/*', 'application/json', -) + ) class BaseApi(api_client.Api): @@ -92,8 +93,8 @@ class BaseApi(api_client.Api): """ Resend failed webhooks """ - used_path = path.value + used_path = path.value _headers = HTTPHeaderDict() idempotency_key = request_options.get("idempotency_key") @@ -179,10 +180,10 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._resend_webhooks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/webhooks_resend_tx_id/post.py b/fireblocks_client/paths/webhooks_resend_tx_id/post.py index 2f58d5e9..035667aa 100644 --- a/fireblocks_client/paths/webhooks_resend_tx_id/post.py +++ b/fireblocks_client/paths/webhooks_resend_tx_id/post.py @@ -111,20 +111,18 @@ def __new__( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) ResponseHeadersFor200 = typing_extensions.TypedDict( 'ResponseHeadersFor200', @@ -144,14 +142,14 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", +name="X-Request-ID", style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, + schema=XRequestIDSchema, ) SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -166,28 +164,28 @@ class ApiResponseFor200(api_client.ApiResponse): class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _status_code_to_response = { '200': _response_for_200, 'default': _response_for_default, } _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -200,8 +198,10 @@ def _resend_webhooks_for_transaction_oapg(self, params: typing.Union[SchemaForRe for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -216,13 +216,12 @@ def _resend_webhooks_for_transaction_oapg(self, params: typing.Union[SchemaForRe for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -344,13 +343,13 @@ def post( skip_deserialization: bool = False, ): return self._resend_webhooks_for_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) diff --git a/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi b/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi index 880fea3e..5c7d2471 100644 --- a/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi +++ b/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi @@ -21,6 +21,7 @@ from fireblocks_client import schemas # noqa: F401 from fireblocks_client.model.error import Error + # Path params TxIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( @@ -109,13 +110,11 @@ class SchemaForRequestBodyApplicationJson( _configuration=_configuration, **kwargs, ) - - request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, +content={ + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), +}, required=True, ) XRequestIDSchema = schemas.StrSchema @@ -137,9 +136,9 @@ class ApiResponseFor200(api_client.ApiResponse): _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) XRequestIDSchema = schemas.StrSchema SchemaFor0ResponseBodyApplicationJson = Error ResponseHeadersFor0 = typing_extensions.TypedDict( @@ -154,24 +153,24 @@ ResponseHeadersFor0 = typing_extensions.TypedDict( class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] + SchemaFor0ResponseBodyApplicationJson, + ] headers: ResponseHeadersFor0 _response_for_default = api_client.OpenApiResponse( response_cls=ApiResponseForDefault, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor0ResponseBodyApplicationJson), }, headers=[ - x_request_id_parameter, - ] -) + x_request_id_parameter, + ] + ) _all_accept_content_types = ( 'application/json', -) + ) class BaseApi(api_client.Api): @@ -184,8 +183,10 @@ class BaseApi(api_client.Api): for parameter in ( request_path_tx_id, ): - path_params[parameter.name] = params.get(parameter.name) + path_params[parameter.name] = params.get(parameter.name,None) + self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) + used_path = path.value _path_params = {} @@ -200,13 +201,12 @@ class BaseApi(api_client.Api): for k, v in _path_params.items(): used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - body = params.get(any_type, schemas.unset) + body = params.get(any_type, schemas.unset) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_any_type.serialize(params, "application/json") @@ -328,13 +328,13 @@ class ApiForpost(BaseApi): skip_deserialization: bool = False, ): return self._resend_webhooks_for_transaction_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) + body=body, + path_params=path_params, + content_type=content_type, + accept_content_types=accept_content_types, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + )