restpki-ng-python-client 0.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. restpki_ng_python_client/__init__.py +200 -0
  2. restpki_ng_python_client/api/__init__.py +17 -0
  3. restpki_ng_python_client/api/authentication_api.py +2041 -0
  4. restpki_ng_python_client/api/cades_signature_api.py +2376 -0
  5. restpki_ng_python_client/api/document_keys_api.py +1199 -0
  6. restpki_ng_python_client/api/documents_api.py +868 -0
  7. restpki_ng_python_client/api/pades_signature_api.py +1797 -0
  8. restpki_ng_python_client/api/pades_visual_positioning_presets_api.py +869 -0
  9. restpki_ng_python_client/api/pdf_api.py +334 -0
  10. restpki_ng_python_client/api/signature_api.py +624 -0
  11. restpki_ng_python_client/api/signature_inspection_api.py +337 -0
  12. restpki_ng_python_client/api/signature_sessions_api.py +891 -0
  13. restpki_ng_python_client/api/timestamp_api.py +654 -0
  14. restpki_ng_python_client/api/upload_api.py +1124 -0
  15. restpki_ng_python_client/api/xml_signature_api.py +1781 -0
  16. restpki_ng_python_client/api_client.py +741 -0
  17. restpki_ng_python_client/api_response.py +21 -0
  18. restpki_ng_python_client/configuration.py +426 -0
  19. restpki_ng_python_client/exceptions.py +166 -0
  20. restpki_ng_python_client/file_utils.py +122 -0
  21. restpki_ng_python_client/models/__init__.py +165 -0
  22. restpki_ng_python_client/models/allocate_document_key_batch_request.py +96 -0
  23. restpki_ng_python_client/models/allocate_document_key_request.py +93 -0
  24. restpki_ng_python_client/models/attribute_certificate_model.py +141 -0
  25. restpki_ng_python_client/models/audit_package_options.py +90 -0
  26. restpki_ng_python_client/models/authentication_failures.py +45 -0
  27. restpki_ng_python_client/models/authentication_get_response.py +92 -0
  28. restpki_ng_python_client/models/authentication_post_request.py +116 -0
  29. restpki_ng_python_client/models/authentication_post_response.py +98 -0
  30. restpki_ng_python_client/models/authentications_post_request.py +95 -0
  31. restpki_ng_python_client/models/authentications_post_response.py +114 -0
  32. restpki_ng_python_client/models/authentications_post_signed_bytes_request.py +99 -0
  33. restpki_ng_python_client/models/authentications_post_signed_bytes_response.py +98 -0
  34. restpki_ng_python_client/models/auto_positioning_horizontal_directions.py +45 -0
  35. restpki_ng_python_client/models/auto_positioning_vertical_directions.py +45 -0
  36. restpki_ng_python_client/models/blockchains.py +45 -0
  37. restpki_ng_python_client/models/cades_signature_model.py +123 -0
  38. restpki_ng_python_client/models/cades_signature_post_request_v1.py +137 -0
  39. restpki_ng_python_client/models/cades_signature_post_request_v2.py +152 -0
  40. restpki_ng_python_client/models/cades_signature_post_request_v3.py +149 -0
  41. restpki_ng_python_client/models/cades_signature_post_response.py +120 -0
  42. restpki_ng_python_client/models/cades_signature_post_signed_bytes_request.py +92 -0
  43. restpki_ng_python_client/models/cades_signature_post_signed_bytes_response.py +106 -0
  44. restpki_ng_python_client/models/cades_signer_model.py +159 -0
  45. restpki_ng_python_client/models/cades_timestamp_model.py +140 -0
  46. restpki_ng_python_client/models/certificate_model.py +197 -0
  47. restpki_ng_python_client/models/certificate_reference_model.py +99 -0
  48. restpki_ng_python_client/models/certificate_requirement.py +95 -0
  49. restpki_ng_python_client/models/certificate_requirement_types.py +45 -0
  50. restpki_ng_python_client/models/certificate_summary.py +142 -0
  51. restpki_ng_python_client/models/certified_attribute_model.py +94 -0
  52. restpki_ng_python_client/models/certified_attribute_types.py +44 -0
  53. restpki_ng_python_client/models/cms_content_types.py +50 -0
  54. restpki_ng_python_client/models/cms_signature_options.py +109 -0
  55. restpki_ng_python_client/models/color_model.py +98 -0
  56. restpki_ng_python_client/models/commitment_type_model.py +99 -0
  57. restpki_ng_python_client/models/complete_authentication_request.py +93 -0
  58. restpki_ng_python_client/models/complete_authentication_response.py +103 -0
  59. restpki_ng_python_client/models/complete_signature_request.py +95 -0
  60. restpki_ng_python_client/models/complete_signature_request_v2.py +91 -0
  61. restpki_ng_python_client/models/create_signature_session_request.py +161 -0
  62. restpki_ng_python_client/models/create_signature_session_response.py +95 -0
  63. restpki_ng_python_client/models/digest_algorithm_and_value_model.py +103 -0
  64. restpki_ng_python_client/models/digest_algorithms.py +49 -0
  65. restpki_ng_python_client/models/document_file_model.py +137 -0
  66. restpki_ng_python_client/models/document_key_model.py +100 -0
  67. restpki_ng_python_client/models/document_key_query_response.py +110 -0
  68. restpki_ng_python_client/models/document_key_summary.py +100 -0
  69. restpki_ng_python_client/models/document_model.py +150 -0
  70. restpki_ng_python_client/models/document_query_response.py +93 -0
  71. restpki_ng_python_client/models/document_status.py +47 -0
  72. restpki_ng_python_client/models/document_summary.py +128 -0
  73. restpki_ng_python_client/models/error_model_v2.py +120 -0
  74. restpki_ng_python_client/models/file_model.py +114 -0
  75. restpki_ng_python_client/models/file_reference_model.py +137 -0
  76. restpki_ng_python_client/models/full_xml_signature_post_request.py +136 -0
  77. restpki_ng_python_client/models/general_name_choices.py +52 -0
  78. restpki_ng_python_client/models/general_name_model.py +108 -0
  79. restpki_ng_python_client/models/holder_types.py +45 -0
  80. restpki_ng_python_client/models/inspect_signature_failures.py +44 -0
  81. restpki_ng_python_client/models/inspect_signature_request.py +127 -0
  82. restpki_ng_python_client/models/inspect_signature_response.py +131 -0
  83. restpki_ng_python_client/models/multipart_upload_begin_response.py +95 -0
  84. restpki_ng_python_client/models/multipart_upload_end_request.py +95 -0
  85. restpki_ng_python_client/models/name_model.py +205 -0
  86. restpki_ng_python_client/models/namespace_model.py +99 -0
  87. restpki_ng_python_client/models/open_cades_signature_request_model.py +147 -0
  88. restpki_ng_python_client/models/open_signature_request_model.py +145 -0
  89. restpki_ng_python_client/models/open_xml_signature_request_model.py +151 -0
  90. restpki_ng_python_client/models/other_name_model.py +107 -0
  91. restpki_ng_python_client/models/pades_certification_level.py +47 -0
  92. restpki_ng_python_client/models/pades_horizontal_align.py +46 -0
  93. restpki_ng_python_client/models/pades_measurement_units.py +45 -0
  94. restpki_ng_python_client/models/pades_page_optimization_model.py +98 -0
  95. restpki_ng_python_client/models/pades_signature_model.py +113 -0
  96. restpki_ng_python_client/models/pades_signature_post_request_v1.py +167 -0
  97. restpki_ng_python_client/models/pades_signature_post_request_v2.py +171 -0
  98. restpki_ng_python_client/models/pades_signature_post_response.py +120 -0
  99. restpki_ng_python_client/models/pades_signature_post_signed_bytes_request.py +92 -0
  100. restpki_ng_python_client/models/pades_signature_post_signed_bytes_response.py +106 -0
  101. restpki_ng_python_client/models/pades_signer_model.py +168 -0
  102. restpki_ng_python_client/models/pades_size_model.py +89 -0
  103. restpki_ng_python_client/models/pades_text_horizontal_align.py +45 -0
  104. restpki_ng_python_client/models/pades_vertical_align.py +46 -0
  105. restpki_ng_python_client/models/pades_visual_auto_positioning_model.py +106 -0
  106. restpki_ng_python_client/models/pades_visual_image_model.py +105 -0
  107. restpki_ng_python_client/models/pades_visual_positioning_model.py +109 -0
  108. restpki_ng_python_client/models/pades_visual_rectangle_model.py +127 -0
  109. restpki_ng_python_client/models/pades_visual_representation_model.py +103 -0
  110. restpki_ng_python_client/models/pades_visual_text_model.py +111 -0
  111. restpki_ng_python_client/models/page_orientations.py +46 -0
  112. restpki_ng_python_client/models/paper_sizes.py +56 -0
  113. restpki_ng_python_client/models/pdf_add_marks_request.py +117 -0
  114. restpki_ng_python_client/models/pdf_add_marks_response.py +91 -0
  115. restpki_ng_python_client/models/pdf_container_definition.py +208 -0
  116. restpki_ng_python_client/models/pdf_helper.py +43 -0
  117. restpki_ng_python_client/models/pdf_mark_element_model.py +230 -0
  118. restpki_ng_python_client/models/pdf_mark_element_type.py +46 -0
  119. restpki_ng_python_client/models/pdf_mark_image_model.py +98 -0
  120. restpki_ng_python_client/models/pdf_mark_model.py +168 -0
  121. restpki_ng_python_client/models/pdf_mark_page_options.py +47 -0
  122. restpki_ng_python_client/models/pdf_signature_options.py +101 -0
  123. restpki_ng_python_client/models/pdf_text_section_model.py +125 -0
  124. restpki_ng_python_client/models/pdf_text_style.py +46 -0
  125. restpki_ng_python_client/models/pki_brazil_certificate_model.py +159 -0
  126. restpki_ng_python_client/models/pki_brazil_certificate_types.py +54 -0
  127. restpki_ng_python_client/models/pki_italy_certificate_model.py +103 -0
  128. restpki_ng_python_client/models/pki_italy_certificate_types.py +46 -0
  129. restpki_ng_python_client/models/prepare_authentication_request.py +100 -0
  130. restpki_ng_python_client/models/prepare_authentication_response.py +99 -0
  131. restpki_ng_python_client/models/prepare_signature_failures.py +46 -0
  132. restpki_ng_python_client/models/prepare_signature_request.py +133 -0
  133. restpki_ng_python_client/models/prepare_signature_response.py +116 -0
  134. restpki_ng_python_client/models/resource_content_or_reference.py +107 -0
  135. restpki_ng_python_client/models/role_attribute_model.py +114 -0
  136. restpki_ng_python_client/models/session_completion_status.py +89 -0
  137. restpki_ng_python_client/models/signature_algorithm_and_value_model.py +106 -0
  138. restpki_ng_python_client/models/signature_algorithm_identifier.py +88 -0
  139. restpki_ng_python_client/models/signature_algorithms.py +48 -0
  140. restpki_ng_python_client/models/signature_b_stamp_model.py +135 -0
  141. restpki_ng_python_client/models/signature_policy_identifier_model.py +105 -0
  142. restpki_ng_python_client/models/signature_result_model.py +105 -0
  143. restpki_ng_python_client/models/signature_session_document_data.py +128 -0
  144. restpki_ng_python_client/models/signature_session_document_summary.py +138 -0
  145. restpki_ng_python_client/models/signature_session_model.py +126 -0
  146. restpki_ng_python_client/models/signature_session_status.py +49 -0
  147. restpki_ng_python_client/models/signature_types.py +46 -0
  148. restpki_ng_python_client/models/signer_b_stamp_model.py +132 -0
  149. restpki_ng_python_client/models/signer_model.py +187 -0
  150. restpki_ng_python_client/models/signer_summary.py +94 -0
  151. restpki_ng_python_client/models/timestamp_issue_response.py +99 -0
  152. restpki_ng_python_client/models/validation_item_model.py +111 -0
  153. restpki_ng_python_client/models/validation_item_types.py +91 -0
  154. restpki_ng_python_client/models/validation_results_model.py +131 -0
  155. restpki_ng_python_client/models/webhook_event_model.py +94 -0
  156. restpki_ng_python_client/models/webhook_event_types.py +44 -0
  157. restpki_ng_python_client/models/xml_attribute_model.py +107 -0
  158. restpki_ng_python_client/models/xml_element_location_model.py +111 -0
  159. restpki_ng_python_client/models/xml_element_model.py +115 -0
  160. restpki_ng_python_client/models/xml_element_signature_post_request.py +145 -0
  161. restpki_ng_python_client/models/xml_id_attribute_model.py +96 -0
  162. restpki_ng_python_client/models/xml_id_resolution_table_model.py +123 -0
  163. restpki_ng_python_client/models/xml_insertion_options.py +47 -0
  164. restpki_ng_python_client/models/xml_node_name_model.py +96 -0
  165. restpki_ng_python_client/models/xml_signature_model.py +154 -0
  166. restpki_ng_python_client/models/xml_signature_options.py +102 -0
  167. restpki_ng_python_client/models/xml_signature_post_response.py +120 -0
  168. restpki_ng_python_client/models/xml_signature_post_signed_bytes_request.py +92 -0
  169. restpki_ng_python_client/models/xml_signature_post_signed_bytes_response.py +106 -0
  170. restpki_ng_python_client/models/xml_signature_response_model.py +113 -0
  171. restpki_ng_python_client/models/xml_signature_types.py +47 -0
  172. restpki_ng_python_client/models/xml_signed_entity_types.py +46 -0
  173. restpki_ng_python_client/py.typed +0 -0
  174. restpki_ng_python_client/rest.py +231 -0
  175. restpki_ng_python_client/restpki_ng_client.py +458 -0
  176. restpki_ng_python_client/standard_signature_policies.py +24 -0
  177. restpki_ng_python_client/utils.py +80 -0
  178. restpki_ng_python_client-0.9.0.dist-info/METADATA +16 -0
  179. restpki_ng_python_client-0.9.0.dist-info/RECORD +181 -0
  180. restpki_ng_python_client-0.9.0.dist-info/WHEEL +5 -0
  181. restpki_ng_python_client-0.9.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1781 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rest PKI Core API
5
+
6
+ <b><i>Para Português, <a href=\"https://docs.lacunasoftware.com/pt-br/articles/rest-pki/core/integration/get-started\">clique aqui</a></i></b> <p> <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/\">Rest PKI Core</a> is an upcoming version of <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/\">Rest PKI</a> that will have extended compatibility with environments and databases. </p> <p> In addition to Windows Server (which is already supported by Rest PKI), Rest PKI Core will also run on <b>Linux</b> (Debian- and RedHat-based distributions) and on <b>Docker</b>. As for database servers, in addition to SQL Server, <b>PostgreSQL</b> will also be supported. </p> <p> <b>Before getting started, see the integration overview on the <a href=\"https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/\">Integration Guide</a></b> </p> <p> For questions regarding the usage of this API, please reach us at <a href=\"https://lacuna.help/\">lacuna.help</a> </p> <h2>Parameters</h2> <p> You will need the following parameters: </p> <ul> <li><b>Endpoint</b>: address of the Rest PKI Core instance that will be used</li> <li><b>API Key</b>: authorization key for using the API</li> </ul> <p> The <span class=\"model\">endpoint</span> must be prefixed to all relative URLs mentioned here. As for the <span class=\"model\">API Key</span>, see how to use it below. </p> <h2>Authentication</h2> <p> The API key must be sent on the <span class=\"model\">X-Api-Key</span> header on each request: </p> <!-- unfortunately, class \"example microlight\" doesn't seem to work here --> <pre style=\"font-size: 12px; padding: 10px; border-radius: 4px; background: #41444e; font-weight: 600; color: #fff;\"> X-Api-Key: yourapp|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </pre> <h2>HTTP Codes</h2> <p> The APIs will return the following HTTP codes: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><strong class=\"model-title\">200 (OK)</strong></td> <td>Request processed successfully. The response is different for each API, please refer to the operation's documentation</td> </tr> <tr> <td><strong class=\"model-title\">400 (Bad Request)</strong></td> <td>Syntax error. For instance, when a required field was not provided</td> </tr> <tr> <td><strong class=\"model-title\">401 (Unauthorized)</strong></td> <td>API key not provided or invalid</td> </tr> <tr> <td><strong class=\"model-title\">403 (Forbidden)</strong></td> <td>API key is valid, but the application has insufficient permissions to complete the requested operation</td> </tr> <tr> <td><strong class=\"model-title\">422 (Unprocessable Entity)</strong></td> <td>API error. The response body is an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> </tr> <tr> <td><strong class=\"model-title\">500 (Internal Server Error)</strong></td> <td>An unexpected error occurred. The <span class=\"model\">exceptionCode</span> contained on the response body may be of help for our support team during diagnostic.</td> </tr> </tbody> </table> <h3>Error Codes</h3> <p> Some of the error codes returned in the <span class=\"model\">code</span> field of an <a href=\"#model-ErrorModelV2\" class=\"model\">ErrorModelV2</a> (body of responses with HTTP status code 422) are provided below*: </p> <table> <thead> <tr> <th>Code</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td class=\"model\">DocumentNotFound</td> <td>A referenced document was not found (check the document ID)</td> </tr> <tr> <td class=\"model\">SecurityContextNotFound</td> <td>A referenced security context was not found (check the security context ID)</td> </tr> <tr> <td class=\"model\">SignatureSessionNotFound</td> <td>A referenced signature session was not found (check the signature session ID)</td> </tr> <tr> <td class=\"model\">BadSignatureSessionOperation</td> <td>The operation is invalid for the current signature session or document status. For instance, trying to await the session's completion if it is still <span class=\"model\">Pending</span> results in this error</td> </tr> <tr> <td class=\"model\">BackgroundProcessing</td> <td>The operation cannot be completed at this time because the resource is being processed in background</td> </tr> <tr> <td class=\"model\">SignatureSessionTokenRequired</td> <td>The signature session token was not passed on the <span class=\"model\">X-Signature-Session-Token</span> request header</td> </tr> <tr> <td class=\"model\">BadSignatureSessionToken</td> <td>An invalid signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Check your application for possible corruption of the session token, which may contain characters <span class=\"code\">-</span> (hyphen) and <span class=\"code\">_</span> (underscore)</td> </tr> <tr> <td class=\"model\">ExpiredSignatureSessionToken</td> <td>An expired signature session token was passed on the <span class=\"model\">X-Signature-Session-Token</span> request header. Signature session tokens are normally valid for 4 hours.</td> </tr> </tbody> </table> <p style=\"font-size: 0.9em\"> *The codes shown above are the most common error codes. Nonetheless, this list is not comprehensive. New codes may be added anytime without previous warning. </p> <h2>Culture / Internationalization (i18n)</h2> <p>The <span class=\"model\">Accept-Language</span> request header is observed by this API. The following cultures are supported:</p> <ul> <li><span class=\"code\">en-US</span> (or simply <span class=\"code\">en</span>)</li> <li><span class=\"code\">pt-BR</span> (or simply <span class=\"code\">pt</span>)</li> </ul> <p><i>Notice: error messages are not affected by this header and therefore should not be displayed to users, being better suited for logging.</i></p>
7
+
8
+ The version of the OpenAPI document: 2.1.2
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import io
16
+ import warnings
17
+
18
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
19
+ from typing import Dict, List, Optional, Tuple, Union, Any
20
+
21
+ try:
22
+ from typing import Annotated
23
+ except ImportError:
24
+ from typing_extensions import Annotated
25
+
26
+ from pydantic import StrictStr
27
+
28
+ from typing import List, Optional
29
+
30
+ from restpki_ng_python_client.models.full_xml_signature_post_request import FullXmlSignaturePostRequest
31
+ from restpki_ng_python_client.models.open_xml_signature_request_model import OpenXmlSignatureRequestModel
32
+ from restpki_ng_python_client.models.xml_element_signature_post_request import XmlElementSignaturePostRequest
33
+ from restpki_ng_python_client.models.xml_signature_model import XmlSignatureModel
34
+ from restpki_ng_python_client.models.xml_signature_post_response import XmlSignaturePostResponse
35
+ from restpki_ng_python_client.models.xml_signature_post_signed_bytes_request import XmlSignaturePostSignedBytesRequest
36
+ from restpki_ng_python_client.models.xml_signature_post_signed_bytes_response import XmlSignaturePostSignedBytesResponse
37
+ from restpki_ng_python_client.models.xml_signature_response_model import XmlSignatureResponseModel
38
+
39
+ from restpki_ng_python_client.api_client import ApiClient
40
+ from restpki_ng_python_client.api_response import ApiResponse
41
+ from restpki_ng_python_client.rest import RESTResponseType
42
+
43
+
44
+ class XmlSignatureApi:
45
+ """NOTE: This class is auto generated by OpenAPI Generator
46
+ Ref: https://openapi-generator.tech
47
+
48
+ Do not edit the class manually.
49
+ """
50
+
51
+ def __init__(self, api_client=None) -> None:
52
+ if api_client is None:
53
+ api_client = ApiClient.get_default()
54
+ self.api_client = api_client
55
+
56
+
57
+ @validate_call
58
+ def api_v2_xml_signatures_open_post(
59
+ self,
60
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
61
+ _request_timeout: Union[
62
+ None,
63
+ Annotated[StrictFloat, Field(gt=0)],
64
+ Tuple[
65
+ Annotated[StrictFloat, Field(gt=0)],
66
+ Annotated[StrictFloat, Field(gt=0)]
67
+ ]
68
+ ] = None,
69
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
70
+ _content_type: Optional[StrictStr] = None,
71
+ _headers: Optional[Dict[StrictStr, Any]] = None,
72
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
73
+ ) -> XmlSignatureResponseModel:
74
+ """api_v2_xml_signatures_open_post
75
+
76
+
77
+ :param open_xml_signature_request_model:
78
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
79
+ :param _request_timeout: timeout setting for this request. If one
80
+ number provided, it will be total request
81
+ timeout. It can also be a pair (tuple) of
82
+ (connection, read) timeouts.
83
+ :type _request_timeout: int, tuple(int, int), optional
84
+ :param _request_auth: set to override the auth_settings for an a single
85
+ request; this effectively ignores the
86
+ authentication in the spec for a single request.
87
+ :type _request_auth: dict, optional
88
+ :param _content_type: force content-type for the request.
89
+ :type _content_type: str, Optional
90
+ :param _headers: set to override the headers for a single
91
+ request; this effectively ignores the headers
92
+ in the spec for a single request.
93
+ :type _headers: dict, optional
94
+ :param _host_index: set to override the host_index for a single
95
+ request; this effectively ignores the host_index
96
+ in the spec for a single request.
97
+ :type _host_index: int, optional
98
+ :return: Returns the result object.
99
+ """ # noqa: E501
100
+
101
+ _param = self._api_v2_xml_signatures_open_post_serialize(
102
+ open_xml_signature_request_model=open_xml_signature_request_model,
103
+ _request_auth=_request_auth,
104
+ _content_type=_content_type,
105
+ _headers=_headers,
106
+ _host_index=_host_index
107
+ )
108
+
109
+ _response_types_map: Dict[str, Optional[str]] = {
110
+ '200': "XmlSignatureResponseModel",
111
+ '400': None,
112
+ '401': None,
113
+ '403': None,
114
+ '422': None
115
+
116
+ }
117
+ response_data = self.api_client.call_api(
118
+ *_param,
119
+ _request_timeout=_request_timeout
120
+ )
121
+ response_data.read()
122
+ return self.api_client.response_deserialize(
123
+ response_data=response_data,
124
+ response_types_map=_response_types_map,
125
+ ).data
126
+
127
+
128
+ @validate_call
129
+ def api_v2_xml_signatures_open_post_with_http_info(
130
+ self,
131
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
132
+ _request_timeout: Union[
133
+ None,
134
+ Annotated[StrictFloat, Field(gt=0)],
135
+ Tuple[
136
+ Annotated[StrictFloat, Field(gt=0)],
137
+ Annotated[StrictFloat, Field(gt=0)]
138
+ ]
139
+ ] = None,
140
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
141
+ _content_type: Optional[StrictStr] = None,
142
+ _headers: Optional[Dict[StrictStr, Any]] = None,
143
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
144
+ ) -> ApiResponse[XmlSignatureResponseModel]:
145
+ """api_v2_xml_signatures_open_post
146
+
147
+
148
+ :param open_xml_signature_request_model:
149
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
150
+ :param _request_timeout: timeout setting for this request. If one
151
+ number provided, it will be total request
152
+ timeout. It can also be a pair (tuple) of
153
+ (connection, read) timeouts.
154
+ :type _request_timeout: int, tuple(int, int), optional
155
+ :param _request_auth: set to override the auth_settings for an a single
156
+ request; this effectively ignores the
157
+ authentication in the spec for a single request.
158
+ :type _request_auth: dict, optional
159
+ :param _content_type: force content-type for the request.
160
+ :type _content_type: str, Optional
161
+ :param _headers: set to override the headers for a single
162
+ request; this effectively ignores the headers
163
+ in the spec for a single request.
164
+ :type _headers: dict, optional
165
+ :param _host_index: set to override the host_index for a single
166
+ request; this effectively ignores the host_index
167
+ in the spec for a single request.
168
+ :type _host_index: int, optional
169
+ :return: Returns the result object.
170
+ """ # noqa: E501
171
+
172
+ _param = self._api_v2_xml_signatures_open_post_serialize(
173
+ open_xml_signature_request_model=open_xml_signature_request_model,
174
+ _request_auth=_request_auth,
175
+ _content_type=_content_type,
176
+ _headers=_headers,
177
+ _host_index=_host_index
178
+ )
179
+
180
+ _response_types_map: Dict[str, Optional[str]] = {
181
+ '200': "XmlSignatureResponseModel",
182
+ '400': None,
183
+ '401': None,
184
+ '403': None,
185
+ '422': None
186
+
187
+ }
188
+ response_data = self.api_client.call_api(
189
+ *_param,
190
+ _request_timeout=_request_timeout
191
+ )
192
+ response_data.read()
193
+ return self.api_client.response_deserialize(
194
+ response_data=response_data,
195
+ response_types_map=_response_types_map,
196
+ )
197
+
198
+
199
+ @validate_call
200
+ def api_v2_xml_signatures_open_post_without_preload_content(
201
+ self,
202
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
203
+ _request_timeout: Union[
204
+ None,
205
+ Annotated[StrictFloat, Field(gt=0)],
206
+ Tuple[
207
+ Annotated[StrictFloat, Field(gt=0)],
208
+ Annotated[StrictFloat, Field(gt=0)]
209
+ ]
210
+ ] = None,
211
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
212
+ _content_type: Optional[StrictStr] = None,
213
+ _headers: Optional[Dict[StrictStr, Any]] = None,
214
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
215
+ ) -> RESTResponseType:
216
+ """api_v2_xml_signatures_open_post
217
+
218
+
219
+ :param open_xml_signature_request_model:
220
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
221
+ :param _request_timeout: timeout setting for this request. If one
222
+ number provided, it will be total request
223
+ timeout. It can also be a pair (tuple) of
224
+ (connection, read) timeouts.
225
+ :type _request_timeout: int, tuple(int, int), optional
226
+ :param _request_auth: set to override the auth_settings for an a single
227
+ request; this effectively ignores the
228
+ authentication in the spec for a single request.
229
+ :type _request_auth: dict, optional
230
+ :param _content_type: force content-type for the request.
231
+ :type _content_type: str, Optional
232
+ :param _headers: set to override the headers for a single
233
+ request; this effectively ignores the headers
234
+ in the spec for a single request.
235
+ :type _headers: dict, optional
236
+ :param _host_index: set to override the host_index for a single
237
+ request; this effectively ignores the host_index
238
+ in the spec for a single request.
239
+ :type _host_index: int, optional
240
+ :return: Returns the result object.
241
+ """ # noqa: E501
242
+
243
+ _param = self._api_v2_xml_signatures_open_post_serialize(
244
+ open_xml_signature_request_model=open_xml_signature_request_model,
245
+ _request_auth=_request_auth,
246
+ _content_type=_content_type,
247
+ _headers=_headers,
248
+ _host_index=_host_index
249
+ )
250
+
251
+ _response_types_map: Dict[str, Optional[str]] = {
252
+ '200': "XmlSignatureResponseModel",
253
+ '400': None,
254
+ '401': None,
255
+ '403': None,
256
+ '422': None
257
+
258
+ }
259
+ response_data = self.api_client.call_api(
260
+ *_param,
261
+ _request_timeout=_request_timeout
262
+ )
263
+ return response_data.response
264
+
265
+
266
+ def _api_v2_xml_signatures_open_post_serialize(
267
+ self,
268
+ open_xml_signature_request_model,
269
+ _request_auth,
270
+ _content_type,
271
+ _headers,
272
+ _host_index,
273
+ ) -> Tuple:
274
+
275
+ _host = None
276
+
277
+ _collection_formats: Dict[str, str] = {
278
+
279
+ }
280
+
281
+ _path_params: Dict[str, str] = {}
282
+ _query_params: List[Tuple[str, str]] = []
283
+ _header_params: Dict[str, Optional[str]] = _headers or {}
284
+ _form_params: List[Tuple[str, str]] = []
285
+ _files: Dict[str, str] = {}
286
+ _body_params: Optional[bytes] = None
287
+
288
+ # process the path parameters
289
+ # process the query parameters
290
+ # process the header parameters
291
+ # process the form parameters
292
+ # process the body parameter
293
+ if open_xml_signature_request_model is not None:
294
+ _body_params = open_xml_signature_request_model
295
+
296
+
297
+ # set the HTTP header `Accept`
298
+ _header_params['Accept'] = self.api_client.select_header_accept(
299
+ [
300
+ 'text/plain',
301
+ 'application/json',
302
+ 'text/json'
303
+ ]
304
+ )
305
+
306
+ # set the HTTP header `Content-Type`
307
+ if _content_type:
308
+ _header_params['Content-Type'] = _content_type
309
+ else:
310
+ _default_content_type = (
311
+ self.api_client.select_header_content_type(
312
+ [
313
+ 'application/json-patch+json',
314
+ 'application/json',
315
+ 'text/json',
316
+ 'application/*+json'
317
+ ]
318
+ )
319
+ )
320
+ if _default_content_type is not None:
321
+ _header_params['Content-Type'] = _default_content_type
322
+
323
+ # authentication setting
324
+ _auth_settings: List[str] = [
325
+ ]
326
+
327
+ return self.api_client.param_serialize(
328
+ method='POST',
329
+ resource_path='/Api/v2/XmlSignatures/Open',
330
+ path_params=_path_params,
331
+ query_params=_query_params,
332
+ header_params=_header_params,
333
+ body=_body_params,
334
+ post_params=_form_params,
335
+ files=_files,
336
+ auth_settings=_auth_settings,
337
+ collection_formats=_collection_formats,
338
+ _host=_host,
339
+ _request_auth=_request_auth
340
+ )
341
+
342
+
343
+
344
+
345
+ @validate_call
346
+ def api_xml_signatures_full_xml_signature_post(
347
+ self,
348
+ full_xml_signature_post_request: Optional[FullXmlSignaturePostRequest] = None,
349
+ _request_timeout: Union[
350
+ None,
351
+ Annotated[StrictFloat, Field(gt=0)],
352
+ Tuple[
353
+ Annotated[StrictFloat, Field(gt=0)],
354
+ Annotated[StrictFloat, Field(gt=0)]
355
+ ]
356
+ ] = None,
357
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
358
+ _content_type: Optional[StrictStr] = None,
359
+ _headers: Optional[Dict[StrictStr, Any]] = None,
360
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
361
+ ) -> XmlSignaturePostResponse:
362
+ """api_xml_signatures_full_xml_signature_post
363
+
364
+
365
+ :param full_xml_signature_post_request:
366
+ :type full_xml_signature_post_request: FullXmlSignaturePostRequest
367
+ :param _request_timeout: timeout setting for this request. If one
368
+ number provided, it will be total request
369
+ timeout. It can also be a pair (tuple) of
370
+ (connection, read) timeouts.
371
+ :type _request_timeout: int, tuple(int, int), optional
372
+ :param _request_auth: set to override the auth_settings for an a single
373
+ request; this effectively ignores the
374
+ authentication in the spec for a single request.
375
+ :type _request_auth: dict, optional
376
+ :param _content_type: force content-type for the request.
377
+ :type _content_type: str, Optional
378
+ :param _headers: set to override the headers for a single
379
+ request; this effectively ignores the headers
380
+ in the spec for a single request.
381
+ :type _headers: dict, optional
382
+ :param _host_index: set to override the host_index for a single
383
+ request; this effectively ignores the host_index
384
+ in the spec for a single request.
385
+ :type _host_index: int, optional
386
+ :return: Returns the result object.
387
+ """ # noqa: E501
388
+
389
+ _param = self._api_xml_signatures_full_xml_signature_post_serialize(
390
+ full_xml_signature_post_request=full_xml_signature_post_request,
391
+ _request_auth=_request_auth,
392
+ _content_type=_content_type,
393
+ _headers=_headers,
394
+ _host_index=_host_index
395
+ )
396
+
397
+ _response_types_map: Dict[str, Optional[str]] = {
398
+ '201': "XmlSignaturePostResponse",
399
+ '400': None,
400
+ '401': None,
401
+ '403': None,
402
+ '422': None
403
+
404
+ }
405
+ response_data = self.api_client.call_api(
406
+ *_param,
407
+ _request_timeout=_request_timeout
408
+ )
409
+ response_data.read()
410
+ return self.api_client.response_deserialize(
411
+ response_data=response_data,
412
+ response_types_map=_response_types_map,
413
+ ).data
414
+
415
+
416
+ @validate_call
417
+ def api_xml_signatures_full_xml_signature_post_with_http_info(
418
+ self,
419
+ full_xml_signature_post_request: Optional[FullXmlSignaturePostRequest] = None,
420
+ _request_timeout: Union[
421
+ None,
422
+ Annotated[StrictFloat, Field(gt=0)],
423
+ Tuple[
424
+ Annotated[StrictFloat, Field(gt=0)],
425
+ Annotated[StrictFloat, Field(gt=0)]
426
+ ]
427
+ ] = None,
428
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
429
+ _content_type: Optional[StrictStr] = None,
430
+ _headers: Optional[Dict[StrictStr, Any]] = None,
431
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
432
+ ) -> ApiResponse[XmlSignaturePostResponse]:
433
+ """api_xml_signatures_full_xml_signature_post
434
+
435
+
436
+ :param full_xml_signature_post_request:
437
+ :type full_xml_signature_post_request: FullXmlSignaturePostRequest
438
+ :param _request_timeout: timeout setting for this request. If one
439
+ number provided, it will be total request
440
+ timeout. It can also be a pair (tuple) of
441
+ (connection, read) timeouts.
442
+ :type _request_timeout: int, tuple(int, int), optional
443
+ :param _request_auth: set to override the auth_settings for an a single
444
+ request; this effectively ignores the
445
+ authentication in the spec for a single request.
446
+ :type _request_auth: dict, optional
447
+ :param _content_type: force content-type for the request.
448
+ :type _content_type: str, Optional
449
+ :param _headers: set to override the headers for a single
450
+ request; this effectively ignores the headers
451
+ in the spec for a single request.
452
+ :type _headers: dict, optional
453
+ :param _host_index: set to override the host_index for a single
454
+ request; this effectively ignores the host_index
455
+ in the spec for a single request.
456
+ :type _host_index: int, optional
457
+ :return: Returns the result object.
458
+ """ # noqa: E501
459
+
460
+ _param = self._api_xml_signatures_full_xml_signature_post_serialize(
461
+ full_xml_signature_post_request=full_xml_signature_post_request,
462
+ _request_auth=_request_auth,
463
+ _content_type=_content_type,
464
+ _headers=_headers,
465
+ _host_index=_host_index
466
+ )
467
+
468
+ _response_types_map: Dict[str, Optional[str]] = {
469
+ '201': "XmlSignaturePostResponse",
470
+ '400': None,
471
+ '401': None,
472
+ '403': None,
473
+ '422': None
474
+
475
+ }
476
+ response_data = self.api_client.call_api(
477
+ *_param,
478
+ _request_timeout=_request_timeout
479
+ )
480
+ response_data.read()
481
+ return self.api_client.response_deserialize(
482
+ response_data=response_data,
483
+ response_types_map=_response_types_map,
484
+ )
485
+
486
+
487
+ @validate_call
488
+ def api_xml_signatures_full_xml_signature_post_without_preload_content(
489
+ self,
490
+ full_xml_signature_post_request: Optional[FullXmlSignaturePostRequest] = None,
491
+ _request_timeout: Union[
492
+ None,
493
+ Annotated[StrictFloat, Field(gt=0)],
494
+ Tuple[
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Annotated[StrictFloat, Field(gt=0)]
497
+ ]
498
+ ] = None,
499
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
500
+ _content_type: Optional[StrictStr] = None,
501
+ _headers: Optional[Dict[StrictStr, Any]] = None,
502
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
503
+ ) -> RESTResponseType:
504
+ """api_xml_signatures_full_xml_signature_post
505
+
506
+
507
+ :param full_xml_signature_post_request:
508
+ :type full_xml_signature_post_request: FullXmlSignaturePostRequest
509
+ :param _request_timeout: timeout setting for this request. If one
510
+ number provided, it will be total request
511
+ timeout. It can also be a pair (tuple) of
512
+ (connection, read) timeouts.
513
+ :type _request_timeout: int, tuple(int, int), optional
514
+ :param _request_auth: set to override the auth_settings for an a single
515
+ request; this effectively ignores the
516
+ authentication in the spec for a single request.
517
+ :type _request_auth: dict, optional
518
+ :param _content_type: force content-type for the request.
519
+ :type _content_type: str, Optional
520
+ :param _headers: set to override the headers for a single
521
+ request; this effectively ignores the headers
522
+ in the spec for a single request.
523
+ :type _headers: dict, optional
524
+ :param _host_index: set to override the host_index for a single
525
+ request; this effectively ignores the host_index
526
+ in the spec for a single request.
527
+ :type _host_index: int, optional
528
+ :return: Returns the result object.
529
+ """ # noqa: E501
530
+
531
+ _param = self._api_xml_signatures_full_xml_signature_post_serialize(
532
+ full_xml_signature_post_request=full_xml_signature_post_request,
533
+ _request_auth=_request_auth,
534
+ _content_type=_content_type,
535
+ _headers=_headers,
536
+ _host_index=_host_index
537
+ )
538
+
539
+ _response_types_map: Dict[str, Optional[str]] = {
540
+ '201': "XmlSignaturePostResponse",
541
+ '400': None,
542
+ '401': None,
543
+ '403': None,
544
+ '422': None
545
+
546
+ }
547
+ response_data = self.api_client.call_api(
548
+ *_param,
549
+ _request_timeout=_request_timeout
550
+ )
551
+ return response_data.response
552
+
553
+
554
+ def _api_xml_signatures_full_xml_signature_post_serialize(
555
+ self,
556
+ full_xml_signature_post_request,
557
+ _request_auth,
558
+ _content_type,
559
+ _headers,
560
+ _host_index,
561
+ ) -> Tuple:
562
+
563
+ _host = None
564
+
565
+ _collection_formats: Dict[str, str] = {
566
+
567
+ }
568
+
569
+ _path_params: Dict[str, str] = {}
570
+ _query_params: List[Tuple[str, str]] = []
571
+ _header_params: Dict[str, Optional[str]] = _headers or {}
572
+ _form_params: List[Tuple[str, str]] = []
573
+ _files: Dict[str, str] = {}
574
+ _body_params: Optional[bytes] = None
575
+
576
+ # process the path parameters
577
+ # process the query parameters
578
+ # process the header parameters
579
+ # process the form parameters
580
+ # process the body parameter
581
+ if full_xml_signature_post_request is not None:
582
+ _body_params = full_xml_signature_post_request
583
+
584
+
585
+ # set the HTTP header `Accept`
586
+ _header_params['Accept'] = self.api_client.select_header_accept(
587
+ [
588
+ 'text/plain',
589
+ 'application/json',
590
+ 'text/json'
591
+ ]
592
+ )
593
+
594
+ # set the HTTP header `Content-Type`
595
+ if _content_type:
596
+ _header_params['Content-Type'] = _content_type
597
+ else:
598
+ _default_content_type = (
599
+ self.api_client.select_header_content_type(
600
+ [
601
+ 'application/json-patch+json',
602
+ 'application/json',
603
+ 'text/json',
604
+ 'application/*+json'
605
+ ]
606
+ )
607
+ )
608
+ if _default_content_type is not None:
609
+ _header_params['Content-Type'] = _default_content_type
610
+
611
+ # authentication setting
612
+ _auth_settings: List[str] = [
613
+ ]
614
+
615
+ return self.api_client.param_serialize(
616
+ method='POST',
617
+ resource_path='/Api/XmlSignatures/FullXmlSignature',
618
+ path_params=_path_params,
619
+ query_params=_query_params,
620
+ header_params=_header_params,
621
+ body=_body_params,
622
+ post_params=_form_params,
623
+ files=_files,
624
+ auth_settings=_auth_settings,
625
+ collection_formats=_collection_formats,
626
+ _host=_host,
627
+ _request_auth=_request_auth
628
+ )
629
+
630
+
631
+
632
+
633
+ @validate_call
634
+ def api_xml_signatures_open_post(
635
+ self,
636
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
637
+ _request_timeout: Union[
638
+ None,
639
+ Annotated[StrictFloat, Field(gt=0)],
640
+ Tuple[
641
+ Annotated[StrictFloat, Field(gt=0)],
642
+ Annotated[StrictFloat, Field(gt=0)]
643
+ ]
644
+ ] = None,
645
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
646
+ _content_type: Optional[StrictStr] = None,
647
+ _headers: Optional[Dict[StrictStr, Any]] = None,
648
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
649
+ ) -> List[XmlSignatureModel]:
650
+ """api_xml_signatures_open_post
651
+
652
+
653
+ :param open_xml_signature_request_model:
654
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
655
+ :param _request_timeout: timeout setting for this request. If one
656
+ number provided, it will be total request
657
+ timeout. It can also be a pair (tuple) of
658
+ (connection, read) timeouts.
659
+ :type _request_timeout: int, tuple(int, int), optional
660
+ :param _request_auth: set to override the auth_settings for an a single
661
+ request; this effectively ignores the
662
+ authentication in the spec for a single request.
663
+ :type _request_auth: dict, optional
664
+ :param _content_type: force content-type for the request.
665
+ :type _content_type: str, Optional
666
+ :param _headers: set to override the headers for a single
667
+ request; this effectively ignores the headers
668
+ in the spec for a single request.
669
+ :type _headers: dict, optional
670
+ :param _host_index: set to override the host_index for a single
671
+ request; this effectively ignores the host_index
672
+ in the spec for a single request.
673
+ :type _host_index: int, optional
674
+ :return: Returns the result object.
675
+ """ # noqa: E501
676
+
677
+ _param = self._api_xml_signatures_open_post_serialize(
678
+ open_xml_signature_request_model=open_xml_signature_request_model,
679
+ _request_auth=_request_auth,
680
+ _content_type=_content_type,
681
+ _headers=_headers,
682
+ _host_index=_host_index
683
+ )
684
+
685
+ _response_types_map: Dict[str, Optional[str]] = {
686
+ '200': "List[XmlSignatureModel]",
687
+ '400': None,
688
+ '401': None,
689
+ '403': None,
690
+ '422': None
691
+
692
+ }
693
+ response_data = self.api_client.call_api(
694
+ *_param,
695
+ _request_timeout=_request_timeout
696
+ )
697
+ response_data.read()
698
+ return self.api_client.response_deserialize(
699
+ response_data=response_data,
700
+ response_types_map=_response_types_map,
701
+ ).data
702
+
703
+
704
+ @validate_call
705
+ def api_xml_signatures_open_post_with_http_info(
706
+ self,
707
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
708
+ _request_timeout: Union[
709
+ None,
710
+ Annotated[StrictFloat, Field(gt=0)],
711
+ Tuple[
712
+ Annotated[StrictFloat, Field(gt=0)],
713
+ Annotated[StrictFloat, Field(gt=0)]
714
+ ]
715
+ ] = None,
716
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
717
+ _content_type: Optional[StrictStr] = None,
718
+ _headers: Optional[Dict[StrictStr, Any]] = None,
719
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
720
+ ) -> ApiResponse[List[XmlSignatureModel]]:
721
+ """api_xml_signatures_open_post
722
+
723
+
724
+ :param open_xml_signature_request_model:
725
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
726
+ :param _request_timeout: timeout setting for this request. If one
727
+ number provided, it will be total request
728
+ timeout. It can also be a pair (tuple) of
729
+ (connection, read) timeouts.
730
+ :type _request_timeout: int, tuple(int, int), optional
731
+ :param _request_auth: set to override the auth_settings for an a single
732
+ request; this effectively ignores the
733
+ authentication in the spec for a single request.
734
+ :type _request_auth: dict, optional
735
+ :param _content_type: force content-type for the request.
736
+ :type _content_type: str, Optional
737
+ :param _headers: set to override the headers for a single
738
+ request; this effectively ignores the headers
739
+ in the spec for a single request.
740
+ :type _headers: dict, optional
741
+ :param _host_index: set to override the host_index for a single
742
+ request; this effectively ignores the host_index
743
+ in the spec for a single request.
744
+ :type _host_index: int, optional
745
+ :return: Returns the result object.
746
+ """ # noqa: E501
747
+
748
+ _param = self._api_xml_signatures_open_post_serialize(
749
+ open_xml_signature_request_model=open_xml_signature_request_model,
750
+ _request_auth=_request_auth,
751
+ _content_type=_content_type,
752
+ _headers=_headers,
753
+ _host_index=_host_index
754
+ )
755
+
756
+ _response_types_map: Dict[str, Optional[str]] = {
757
+ '200': "List[XmlSignatureModel]",
758
+ '400': None,
759
+ '401': None,
760
+ '403': None,
761
+ '422': None
762
+
763
+ }
764
+ response_data = self.api_client.call_api(
765
+ *_param,
766
+ _request_timeout=_request_timeout
767
+ )
768
+ response_data.read()
769
+ return self.api_client.response_deserialize(
770
+ response_data=response_data,
771
+ response_types_map=_response_types_map,
772
+ )
773
+
774
+
775
+ @validate_call
776
+ def api_xml_signatures_open_post_without_preload_content(
777
+ self,
778
+ open_xml_signature_request_model: Optional[OpenXmlSignatureRequestModel] = None,
779
+ _request_timeout: Union[
780
+ None,
781
+ Annotated[StrictFloat, Field(gt=0)],
782
+ Tuple[
783
+ Annotated[StrictFloat, Field(gt=0)],
784
+ Annotated[StrictFloat, Field(gt=0)]
785
+ ]
786
+ ] = None,
787
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
788
+ _content_type: Optional[StrictStr] = None,
789
+ _headers: Optional[Dict[StrictStr, Any]] = None,
790
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
791
+ ) -> RESTResponseType:
792
+ """api_xml_signatures_open_post
793
+
794
+
795
+ :param open_xml_signature_request_model:
796
+ :type open_xml_signature_request_model: OpenXmlSignatureRequestModel
797
+ :param _request_timeout: timeout setting for this request. If one
798
+ number provided, it will be total request
799
+ timeout. It can also be a pair (tuple) of
800
+ (connection, read) timeouts.
801
+ :type _request_timeout: int, tuple(int, int), optional
802
+ :param _request_auth: set to override the auth_settings for an a single
803
+ request; this effectively ignores the
804
+ authentication in the spec for a single request.
805
+ :type _request_auth: dict, optional
806
+ :param _content_type: force content-type for the request.
807
+ :type _content_type: str, Optional
808
+ :param _headers: set to override the headers for a single
809
+ request; this effectively ignores the headers
810
+ in the spec for a single request.
811
+ :type _headers: dict, optional
812
+ :param _host_index: set to override the host_index for a single
813
+ request; this effectively ignores the host_index
814
+ in the spec for a single request.
815
+ :type _host_index: int, optional
816
+ :return: Returns the result object.
817
+ """ # noqa: E501
818
+
819
+ _param = self._api_xml_signatures_open_post_serialize(
820
+ open_xml_signature_request_model=open_xml_signature_request_model,
821
+ _request_auth=_request_auth,
822
+ _content_type=_content_type,
823
+ _headers=_headers,
824
+ _host_index=_host_index
825
+ )
826
+
827
+ _response_types_map: Dict[str, Optional[str]] = {
828
+ '200': "List[XmlSignatureModel]",
829
+ '400': None,
830
+ '401': None,
831
+ '403': None,
832
+ '422': None
833
+
834
+ }
835
+ response_data = self.api_client.call_api(
836
+ *_param,
837
+ _request_timeout=_request_timeout
838
+ )
839
+ return response_data.response
840
+
841
+
842
+ def _api_xml_signatures_open_post_serialize(
843
+ self,
844
+ open_xml_signature_request_model,
845
+ _request_auth,
846
+ _content_type,
847
+ _headers,
848
+ _host_index,
849
+ ) -> Tuple:
850
+
851
+ _host = None
852
+
853
+ _collection_formats: Dict[str, str] = {
854
+
855
+ }
856
+
857
+ _path_params: Dict[str, str] = {}
858
+ _query_params: List[Tuple[str, str]] = []
859
+ _header_params: Dict[str, Optional[str]] = _headers or {}
860
+ _form_params: List[Tuple[str, str]] = []
861
+ _files: Dict[str, str] = {}
862
+ _body_params: Optional[bytes] = None
863
+
864
+ # process the path parameters
865
+ # process the query parameters
866
+ # process the header parameters
867
+ # process the form parameters
868
+ # process the body parameter
869
+ if open_xml_signature_request_model is not None:
870
+ _body_params = open_xml_signature_request_model
871
+
872
+
873
+ # set the HTTP header `Accept`
874
+ _header_params['Accept'] = self.api_client.select_header_accept(
875
+ [
876
+ 'text/plain',
877
+ 'application/json',
878
+ 'text/json'
879
+ ]
880
+ )
881
+
882
+ # set the HTTP header `Content-Type`
883
+ if _content_type:
884
+ _header_params['Content-Type'] = _content_type
885
+ else:
886
+ _default_content_type = (
887
+ self.api_client.select_header_content_type(
888
+ [
889
+ 'application/json-patch+json',
890
+ 'application/json',
891
+ 'text/json',
892
+ 'application/*+json'
893
+ ]
894
+ )
895
+ )
896
+ if _default_content_type is not None:
897
+ _header_params['Content-Type'] = _default_content_type
898
+
899
+ # authentication setting
900
+ _auth_settings: List[str] = [
901
+ ]
902
+
903
+ return self.api_client.param_serialize(
904
+ method='POST',
905
+ resource_path='/Api/XmlSignatures/Open',
906
+ path_params=_path_params,
907
+ query_params=_query_params,
908
+ header_params=_header_params,
909
+ body=_body_params,
910
+ post_params=_form_params,
911
+ files=_files,
912
+ auth_settings=_auth_settings,
913
+ collection_formats=_collection_formats,
914
+ _host=_host,
915
+ _request_auth=_request_auth
916
+ )
917
+
918
+
919
+
920
+
921
+ @validate_call
922
+ def api_xml_signatures_token_finalize_post(
923
+ self,
924
+ token: StrictStr,
925
+ _request_timeout: Union[
926
+ None,
927
+ Annotated[StrictFloat, Field(gt=0)],
928
+ Tuple[
929
+ Annotated[StrictFloat, Field(gt=0)],
930
+ Annotated[StrictFloat, Field(gt=0)]
931
+ ]
932
+ ] = None,
933
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
934
+ _content_type: Optional[StrictStr] = None,
935
+ _headers: Optional[Dict[StrictStr, Any]] = None,
936
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
937
+ ) -> XmlSignaturePostSignedBytesResponse:
938
+ """api_xml_signatures_token_finalize_post
939
+
940
+
941
+ :param token: (required)
942
+ :type token: str
943
+ :param _request_timeout: timeout setting for this request. If one
944
+ number provided, it will be total request
945
+ timeout. It can also be a pair (tuple) of
946
+ (connection, read) timeouts.
947
+ :type _request_timeout: int, tuple(int, int), optional
948
+ :param _request_auth: set to override the auth_settings for an a single
949
+ request; this effectively ignores the
950
+ authentication in the spec for a single request.
951
+ :type _request_auth: dict, optional
952
+ :param _content_type: force content-type for the request.
953
+ :type _content_type: str, Optional
954
+ :param _headers: set to override the headers for a single
955
+ request; this effectively ignores the headers
956
+ in the spec for a single request.
957
+ :type _headers: dict, optional
958
+ :param _host_index: set to override the host_index for a single
959
+ request; this effectively ignores the host_index
960
+ in the spec for a single request.
961
+ :type _host_index: int, optional
962
+ :return: Returns the result object.
963
+ """ # noqa: E501
964
+
965
+ _param = self._api_xml_signatures_token_finalize_post_serialize(
966
+ token=token,
967
+ _request_auth=_request_auth,
968
+ _content_type=_content_type,
969
+ _headers=_headers,
970
+ _host_index=_host_index
971
+ )
972
+
973
+ _response_types_map: Dict[str, Optional[str]] = {
974
+ '200': "XmlSignaturePostSignedBytesResponse",
975
+ '400': None,
976
+ '401': None,
977
+ '403': None,
978
+ '422': None
979
+
980
+ }
981
+ response_data = self.api_client.call_api(
982
+ *_param,
983
+ _request_timeout=_request_timeout
984
+ )
985
+ response_data.read()
986
+ return self.api_client.response_deserialize(
987
+ response_data=response_data,
988
+ response_types_map=_response_types_map,
989
+ ).data
990
+
991
+
992
+ @validate_call
993
+ def api_xml_signatures_token_finalize_post_with_http_info(
994
+ self,
995
+ token: StrictStr,
996
+ _request_timeout: Union[
997
+ None,
998
+ Annotated[StrictFloat, Field(gt=0)],
999
+ Tuple[
1000
+ Annotated[StrictFloat, Field(gt=0)],
1001
+ Annotated[StrictFloat, Field(gt=0)]
1002
+ ]
1003
+ ] = None,
1004
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1005
+ _content_type: Optional[StrictStr] = None,
1006
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1007
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1008
+ ) -> ApiResponse[XmlSignaturePostSignedBytesResponse]:
1009
+ """api_xml_signatures_token_finalize_post
1010
+
1011
+
1012
+ :param token: (required)
1013
+ :type token: str
1014
+ :param _request_timeout: timeout setting for this request. If one
1015
+ number provided, it will be total request
1016
+ timeout. It can also be a pair (tuple) of
1017
+ (connection, read) timeouts.
1018
+ :type _request_timeout: int, tuple(int, int), optional
1019
+ :param _request_auth: set to override the auth_settings for an a single
1020
+ request; this effectively ignores the
1021
+ authentication in the spec for a single request.
1022
+ :type _request_auth: dict, optional
1023
+ :param _content_type: force content-type for the request.
1024
+ :type _content_type: str, Optional
1025
+ :param _headers: set to override the headers for a single
1026
+ request; this effectively ignores the headers
1027
+ in the spec for a single request.
1028
+ :type _headers: dict, optional
1029
+ :param _host_index: set to override the host_index for a single
1030
+ request; this effectively ignores the host_index
1031
+ in the spec for a single request.
1032
+ :type _host_index: int, optional
1033
+ :return: Returns the result object.
1034
+ """ # noqa: E501
1035
+
1036
+ _param = self._api_xml_signatures_token_finalize_post_serialize(
1037
+ token=token,
1038
+ _request_auth=_request_auth,
1039
+ _content_type=_content_type,
1040
+ _headers=_headers,
1041
+ _host_index=_host_index
1042
+ )
1043
+
1044
+ _response_types_map: Dict[str, Optional[str]] = {
1045
+ '200': "XmlSignaturePostSignedBytesResponse",
1046
+ '400': None,
1047
+ '401': None,
1048
+ '403': None,
1049
+ '422': None
1050
+
1051
+ }
1052
+ response_data = self.api_client.call_api(
1053
+ *_param,
1054
+ _request_timeout=_request_timeout
1055
+ )
1056
+ response_data.read()
1057
+ return self.api_client.response_deserialize(
1058
+ response_data=response_data,
1059
+ response_types_map=_response_types_map,
1060
+ )
1061
+
1062
+
1063
+ @validate_call
1064
+ def api_xml_signatures_token_finalize_post_without_preload_content(
1065
+ self,
1066
+ token: StrictStr,
1067
+ _request_timeout: Union[
1068
+ None,
1069
+ Annotated[StrictFloat, Field(gt=0)],
1070
+ Tuple[
1071
+ Annotated[StrictFloat, Field(gt=0)],
1072
+ Annotated[StrictFloat, Field(gt=0)]
1073
+ ]
1074
+ ] = None,
1075
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1076
+ _content_type: Optional[StrictStr] = None,
1077
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1078
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1079
+ ) -> RESTResponseType:
1080
+ """api_xml_signatures_token_finalize_post
1081
+
1082
+
1083
+ :param token: (required)
1084
+ :type token: str
1085
+ :param _request_timeout: timeout setting for this request. If one
1086
+ number provided, it will be total request
1087
+ timeout. It can also be a pair (tuple) of
1088
+ (connection, read) timeouts.
1089
+ :type _request_timeout: int, tuple(int, int), optional
1090
+ :param _request_auth: set to override the auth_settings for an a single
1091
+ request; this effectively ignores the
1092
+ authentication in the spec for a single request.
1093
+ :type _request_auth: dict, optional
1094
+ :param _content_type: force content-type for the request.
1095
+ :type _content_type: str, Optional
1096
+ :param _headers: set to override the headers for a single
1097
+ request; this effectively ignores the headers
1098
+ in the spec for a single request.
1099
+ :type _headers: dict, optional
1100
+ :param _host_index: set to override the host_index for a single
1101
+ request; this effectively ignores the host_index
1102
+ in the spec for a single request.
1103
+ :type _host_index: int, optional
1104
+ :return: Returns the result object.
1105
+ """ # noqa: E501
1106
+
1107
+ _param = self._api_xml_signatures_token_finalize_post_serialize(
1108
+ token=token,
1109
+ _request_auth=_request_auth,
1110
+ _content_type=_content_type,
1111
+ _headers=_headers,
1112
+ _host_index=_host_index
1113
+ )
1114
+
1115
+ _response_types_map: Dict[str, Optional[str]] = {
1116
+ '200': "XmlSignaturePostSignedBytesResponse",
1117
+ '400': None,
1118
+ '401': None,
1119
+ '403': None,
1120
+ '422': None
1121
+
1122
+ }
1123
+ response_data = self.api_client.call_api(
1124
+ *_param,
1125
+ _request_timeout=_request_timeout
1126
+ )
1127
+ return response_data.response
1128
+
1129
+
1130
+ def _api_xml_signatures_token_finalize_post_serialize(
1131
+ self,
1132
+ token,
1133
+ _request_auth,
1134
+ _content_type,
1135
+ _headers,
1136
+ _host_index,
1137
+ ) -> Tuple:
1138
+
1139
+ _host = None
1140
+
1141
+ _collection_formats: Dict[str, str] = {
1142
+
1143
+ }
1144
+
1145
+ _path_params: Dict[str, str] = {}
1146
+ _query_params: List[Tuple[str, str]] = []
1147
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1148
+ _form_params: List[Tuple[str, str]] = []
1149
+ _files: Dict[str, str] = {}
1150
+ _body_params: Optional[bytes] = None
1151
+
1152
+ # process the path parameters
1153
+ if token is not None:
1154
+ _path_params['token'] = token
1155
+ # process the query parameters
1156
+ # process the header parameters
1157
+ # process the form parameters
1158
+ # process the body parameter
1159
+
1160
+
1161
+ # set the HTTP header `Accept`
1162
+ _header_params['Accept'] = self.api_client.select_header_accept(
1163
+ [
1164
+ 'text/plain',
1165
+ 'application/json',
1166
+ 'text/json'
1167
+ ]
1168
+ )
1169
+
1170
+
1171
+ # authentication setting
1172
+ _auth_settings: List[str] = [
1173
+ ]
1174
+
1175
+ return self.api_client.param_serialize(
1176
+ method='POST',
1177
+ resource_path='/Api/XmlSignatures/{token}/Finalize',
1178
+ path_params=_path_params,
1179
+ query_params=_query_params,
1180
+ header_params=_header_params,
1181
+ body=_body_params,
1182
+ post_params=_form_params,
1183
+ files=_files,
1184
+ auth_settings=_auth_settings,
1185
+ collection_formats=_collection_formats,
1186
+ _host=_host,
1187
+ _request_auth=_request_auth
1188
+ )
1189
+
1190
+
1191
+
1192
+
1193
+ @validate_call
1194
+ def api_xml_signatures_token_signed_bytes_post(
1195
+ self,
1196
+ token: StrictStr,
1197
+ xml_signature_post_signed_bytes_request: Optional[XmlSignaturePostSignedBytesRequest] = None,
1198
+ _request_timeout: Union[
1199
+ None,
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Tuple[
1202
+ Annotated[StrictFloat, Field(gt=0)],
1203
+ Annotated[StrictFloat, Field(gt=0)]
1204
+ ]
1205
+ ] = None,
1206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1207
+ _content_type: Optional[StrictStr] = None,
1208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1210
+ ) -> XmlSignaturePostSignedBytesResponse:
1211
+ """api_xml_signatures_token_signed_bytes_post
1212
+
1213
+
1214
+ :param token: (required)
1215
+ :type token: str
1216
+ :param xml_signature_post_signed_bytes_request:
1217
+ :type xml_signature_post_signed_bytes_request: XmlSignaturePostSignedBytesRequest
1218
+ :param _request_timeout: timeout setting for this request. If one
1219
+ number provided, it will be total request
1220
+ timeout. It can also be a pair (tuple) of
1221
+ (connection, read) timeouts.
1222
+ :type _request_timeout: int, tuple(int, int), optional
1223
+ :param _request_auth: set to override the auth_settings for an a single
1224
+ request; this effectively ignores the
1225
+ authentication in the spec for a single request.
1226
+ :type _request_auth: dict, optional
1227
+ :param _content_type: force content-type for the request.
1228
+ :type _content_type: str, Optional
1229
+ :param _headers: set to override the headers for a single
1230
+ request; this effectively ignores the headers
1231
+ in the spec for a single request.
1232
+ :type _headers: dict, optional
1233
+ :param _host_index: set to override the host_index for a single
1234
+ request; this effectively ignores the host_index
1235
+ in the spec for a single request.
1236
+ :type _host_index: int, optional
1237
+ :return: Returns the result object.
1238
+ """ # noqa: E501
1239
+
1240
+ _param = self._api_xml_signatures_token_signed_bytes_post_serialize(
1241
+ token=token,
1242
+ xml_signature_post_signed_bytes_request=xml_signature_post_signed_bytes_request,
1243
+ _request_auth=_request_auth,
1244
+ _content_type=_content_type,
1245
+ _headers=_headers,
1246
+ _host_index=_host_index
1247
+ )
1248
+
1249
+ _response_types_map: Dict[str, Optional[str]] = {
1250
+ '200': "XmlSignaturePostSignedBytesResponse",
1251
+ '400': None,
1252
+ '401': None,
1253
+ '403': None,
1254
+ '422': None
1255
+
1256
+ }
1257
+ response_data = self.api_client.call_api(
1258
+ *_param,
1259
+ _request_timeout=_request_timeout
1260
+ )
1261
+ response_data.read()
1262
+ return self.api_client.response_deserialize(
1263
+ response_data=response_data,
1264
+ response_types_map=_response_types_map,
1265
+ ).data
1266
+
1267
+
1268
+ @validate_call
1269
+ def api_xml_signatures_token_signed_bytes_post_with_http_info(
1270
+ self,
1271
+ token: StrictStr,
1272
+ xml_signature_post_signed_bytes_request: Optional[XmlSignaturePostSignedBytesRequest] = None,
1273
+ _request_timeout: Union[
1274
+ None,
1275
+ Annotated[StrictFloat, Field(gt=0)],
1276
+ Tuple[
1277
+ Annotated[StrictFloat, Field(gt=0)],
1278
+ Annotated[StrictFloat, Field(gt=0)]
1279
+ ]
1280
+ ] = None,
1281
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1282
+ _content_type: Optional[StrictStr] = None,
1283
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1284
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
+ ) -> ApiResponse[XmlSignaturePostSignedBytesResponse]:
1286
+ """api_xml_signatures_token_signed_bytes_post
1287
+
1288
+
1289
+ :param token: (required)
1290
+ :type token: str
1291
+ :param xml_signature_post_signed_bytes_request:
1292
+ :type xml_signature_post_signed_bytes_request: XmlSignaturePostSignedBytesRequest
1293
+ :param _request_timeout: timeout setting for this request. If one
1294
+ number provided, it will be total request
1295
+ timeout. It can also be a pair (tuple) of
1296
+ (connection, read) timeouts.
1297
+ :type _request_timeout: int, tuple(int, int), optional
1298
+ :param _request_auth: set to override the auth_settings for an a single
1299
+ request; this effectively ignores the
1300
+ authentication in the spec for a single request.
1301
+ :type _request_auth: dict, optional
1302
+ :param _content_type: force content-type for the request.
1303
+ :type _content_type: str, Optional
1304
+ :param _headers: set to override the headers for a single
1305
+ request; this effectively ignores the headers
1306
+ in the spec for a single request.
1307
+ :type _headers: dict, optional
1308
+ :param _host_index: set to override the host_index for a single
1309
+ request; this effectively ignores the host_index
1310
+ in the spec for a single request.
1311
+ :type _host_index: int, optional
1312
+ :return: Returns the result object.
1313
+ """ # noqa: E501
1314
+
1315
+ _param = self._api_xml_signatures_token_signed_bytes_post_serialize(
1316
+ token=token,
1317
+ xml_signature_post_signed_bytes_request=xml_signature_post_signed_bytes_request,
1318
+ _request_auth=_request_auth,
1319
+ _content_type=_content_type,
1320
+ _headers=_headers,
1321
+ _host_index=_host_index
1322
+ )
1323
+
1324
+ _response_types_map: Dict[str, Optional[str]] = {
1325
+ '200': "XmlSignaturePostSignedBytesResponse",
1326
+ '400': None,
1327
+ '401': None,
1328
+ '403': None,
1329
+ '422': None
1330
+
1331
+ }
1332
+ response_data = self.api_client.call_api(
1333
+ *_param,
1334
+ _request_timeout=_request_timeout
1335
+ )
1336
+ response_data.read()
1337
+ return self.api_client.response_deserialize(
1338
+ response_data=response_data,
1339
+ response_types_map=_response_types_map,
1340
+ )
1341
+
1342
+
1343
+ @validate_call
1344
+ def api_xml_signatures_token_signed_bytes_post_without_preload_content(
1345
+ self,
1346
+ token: StrictStr,
1347
+ xml_signature_post_signed_bytes_request: Optional[XmlSignaturePostSignedBytesRequest] = None,
1348
+ _request_timeout: Union[
1349
+ None,
1350
+ Annotated[StrictFloat, Field(gt=0)],
1351
+ Tuple[
1352
+ Annotated[StrictFloat, Field(gt=0)],
1353
+ Annotated[StrictFloat, Field(gt=0)]
1354
+ ]
1355
+ ] = None,
1356
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1357
+ _content_type: Optional[StrictStr] = None,
1358
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1359
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1360
+ ) -> RESTResponseType:
1361
+ """api_xml_signatures_token_signed_bytes_post
1362
+
1363
+
1364
+ :param token: (required)
1365
+ :type token: str
1366
+ :param xml_signature_post_signed_bytes_request:
1367
+ :type xml_signature_post_signed_bytes_request: XmlSignaturePostSignedBytesRequest
1368
+ :param _request_timeout: timeout setting for this request. If one
1369
+ number provided, it will be total request
1370
+ timeout. It can also be a pair (tuple) of
1371
+ (connection, read) timeouts.
1372
+ :type _request_timeout: int, tuple(int, int), optional
1373
+ :param _request_auth: set to override the auth_settings for an a single
1374
+ request; this effectively ignores the
1375
+ authentication in the spec for a single request.
1376
+ :type _request_auth: dict, optional
1377
+ :param _content_type: force content-type for the request.
1378
+ :type _content_type: str, Optional
1379
+ :param _headers: set to override the headers for a single
1380
+ request; this effectively ignores the headers
1381
+ in the spec for a single request.
1382
+ :type _headers: dict, optional
1383
+ :param _host_index: set to override the host_index for a single
1384
+ request; this effectively ignores the host_index
1385
+ in the spec for a single request.
1386
+ :type _host_index: int, optional
1387
+ :return: Returns the result object.
1388
+ """ # noqa: E501
1389
+
1390
+ _param = self._api_xml_signatures_token_signed_bytes_post_serialize(
1391
+ token=token,
1392
+ xml_signature_post_signed_bytes_request=xml_signature_post_signed_bytes_request,
1393
+ _request_auth=_request_auth,
1394
+ _content_type=_content_type,
1395
+ _headers=_headers,
1396
+ _host_index=_host_index
1397
+ )
1398
+
1399
+ _response_types_map: Dict[str, Optional[str]] = {
1400
+ '200': "XmlSignaturePostSignedBytesResponse",
1401
+ '400': None,
1402
+ '401': None,
1403
+ '403': None,
1404
+ '422': None
1405
+
1406
+ }
1407
+ response_data = self.api_client.call_api(
1408
+ *_param,
1409
+ _request_timeout=_request_timeout
1410
+ )
1411
+ return response_data.response
1412
+
1413
+
1414
+ def _api_xml_signatures_token_signed_bytes_post_serialize(
1415
+ self,
1416
+ token,
1417
+ xml_signature_post_signed_bytes_request,
1418
+ _request_auth,
1419
+ _content_type,
1420
+ _headers,
1421
+ _host_index,
1422
+ ) -> Tuple:
1423
+
1424
+ _host = None
1425
+
1426
+ _collection_formats: Dict[str, str] = {
1427
+
1428
+ }
1429
+
1430
+ _path_params: Dict[str, str] = {}
1431
+ _query_params: List[Tuple[str, str]] = []
1432
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1433
+ _form_params: List[Tuple[str, str]] = []
1434
+ _files: Dict[str, str] = {}
1435
+ _body_params: Optional[bytes] = None
1436
+
1437
+ # process the path parameters
1438
+ if token is not None:
1439
+ _path_params['token'] = token
1440
+ # process the query parameters
1441
+ # process the header parameters
1442
+ # process the form parameters
1443
+ # process the body parameter
1444
+ if xml_signature_post_signed_bytes_request is not None:
1445
+ _body_params = xml_signature_post_signed_bytes_request
1446
+
1447
+
1448
+ # set the HTTP header `Accept`
1449
+ _header_params['Accept'] = self.api_client.select_header_accept(
1450
+ [
1451
+ 'text/plain',
1452
+ 'application/json',
1453
+ 'text/json'
1454
+ ]
1455
+ )
1456
+
1457
+ # set the HTTP header `Content-Type`
1458
+ if _content_type:
1459
+ _header_params['Content-Type'] = _content_type
1460
+ else:
1461
+ _default_content_type = (
1462
+ self.api_client.select_header_content_type(
1463
+ [
1464
+ 'application/json-patch+json',
1465
+ 'application/json',
1466
+ 'text/json',
1467
+ 'application/*+json'
1468
+ ]
1469
+ )
1470
+ )
1471
+ if _default_content_type is not None:
1472
+ _header_params['Content-Type'] = _default_content_type
1473
+
1474
+ # authentication setting
1475
+ _auth_settings: List[str] = [
1476
+ ]
1477
+
1478
+ return self.api_client.param_serialize(
1479
+ method='POST',
1480
+ resource_path='/Api/XmlSignatures/{token}/SignedBytes',
1481
+ path_params=_path_params,
1482
+ query_params=_query_params,
1483
+ header_params=_header_params,
1484
+ body=_body_params,
1485
+ post_params=_form_params,
1486
+ files=_files,
1487
+ auth_settings=_auth_settings,
1488
+ collection_formats=_collection_formats,
1489
+ _host=_host,
1490
+ _request_auth=_request_auth
1491
+ )
1492
+
1493
+
1494
+
1495
+
1496
+ @validate_call
1497
+ def api_xml_signatures_xml_element_signature_post(
1498
+ self,
1499
+ xml_element_signature_post_request: Optional[XmlElementSignaturePostRequest] = None,
1500
+ _request_timeout: Union[
1501
+ None,
1502
+ Annotated[StrictFloat, Field(gt=0)],
1503
+ Tuple[
1504
+ Annotated[StrictFloat, Field(gt=0)],
1505
+ Annotated[StrictFloat, Field(gt=0)]
1506
+ ]
1507
+ ] = None,
1508
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1509
+ _content_type: Optional[StrictStr] = None,
1510
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1511
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1512
+ ) -> XmlSignaturePostResponse:
1513
+ """api_xml_signatures_xml_element_signature_post
1514
+
1515
+
1516
+ :param xml_element_signature_post_request:
1517
+ :type xml_element_signature_post_request: XmlElementSignaturePostRequest
1518
+ :param _request_timeout: timeout setting for this request. If one
1519
+ number provided, it will be total request
1520
+ timeout. It can also be a pair (tuple) of
1521
+ (connection, read) timeouts.
1522
+ :type _request_timeout: int, tuple(int, int), optional
1523
+ :param _request_auth: set to override the auth_settings for an a single
1524
+ request; this effectively ignores the
1525
+ authentication in the spec for a single request.
1526
+ :type _request_auth: dict, optional
1527
+ :param _content_type: force content-type for the request.
1528
+ :type _content_type: str, Optional
1529
+ :param _headers: set to override the headers for a single
1530
+ request; this effectively ignores the headers
1531
+ in the spec for a single request.
1532
+ :type _headers: dict, optional
1533
+ :param _host_index: set to override the host_index for a single
1534
+ request; this effectively ignores the host_index
1535
+ in the spec for a single request.
1536
+ :type _host_index: int, optional
1537
+ :return: Returns the result object.
1538
+ """ # noqa: E501
1539
+
1540
+ _param = self._api_xml_signatures_xml_element_signature_post_serialize(
1541
+ xml_element_signature_post_request=xml_element_signature_post_request,
1542
+ _request_auth=_request_auth,
1543
+ _content_type=_content_type,
1544
+ _headers=_headers,
1545
+ _host_index=_host_index
1546
+ )
1547
+
1548
+ _response_types_map: Dict[str, Optional[str]] = {
1549
+ '201': "XmlSignaturePostResponse",
1550
+ '400': None,
1551
+ '401': None,
1552
+ '403': None,
1553
+ '422': None
1554
+
1555
+ }
1556
+ response_data = self.api_client.call_api(
1557
+ *_param,
1558
+ _request_timeout=_request_timeout
1559
+ )
1560
+ response_data.read()
1561
+ return self.api_client.response_deserialize(
1562
+ response_data=response_data,
1563
+ response_types_map=_response_types_map,
1564
+ ).data
1565
+
1566
+
1567
+ @validate_call
1568
+ def api_xml_signatures_xml_element_signature_post_with_http_info(
1569
+ self,
1570
+ xml_element_signature_post_request: Optional[XmlElementSignaturePostRequest] = None,
1571
+ _request_timeout: Union[
1572
+ None,
1573
+ Annotated[StrictFloat, Field(gt=0)],
1574
+ Tuple[
1575
+ Annotated[StrictFloat, Field(gt=0)],
1576
+ Annotated[StrictFloat, Field(gt=0)]
1577
+ ]
1578
+ ] = None,
1579
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1580
+ _content_type: Optional[StrictStr] = None,
1581
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1582
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1583
+ ) -> ApiResponse[XmlSignaturePostResponse]:
1584
+ """api_xml_signatures_xml_element_signature_post
1585
+
1586
+
1587
+ :param xml_element_signature_post_request:
1588
+ :type xml_element_signature_post_request: XmlElementSignaturePostRequest
1589
+ :param _request_timeout: timeout setting for this request. If one
1590
+ number provided, it will be total request
1591
+ timeout. It can also be a pair (tuple) of
1592
+ (connection, read) timeouts.
1593
+ :type _request_timeout: int, tuple(int, int), optional
1594
+ :param _request_auth: set to override the auth_settings for an a single
1595
+ request; this effectively ignores the
1596
+ authentication in the spec for a single request.
1597
+ :type _request_auth: dict, optional
1598
+ :param _content_type: force content-type for the request.
1599
+ :type _content_type: str, Optional
1600
+ :param _headers: set to override the headers for a single
1601
+ request; this effectively ignores the headers
1602
+ in the spec for a single request.
1603
+ :type _headers: dict, optional
1604
+ :param _host_index: set to override the host_index for a single
1605
+ request; this effectively ignores the host_index
1606
+ in the spec for a single request.
1607
+ :type _host_index: int, optional
1608
+ :return: Returns the result object.
1609
+ """ # noqa: E501
1610
+
1611
+ _param = self._api_xml_signatures_xml_element_signature_post_serialize(
1612
+ xml_element_signature_post_request=xml_element_signature_post_request,
1613
+ _request_auth=_request_auth,
1614
+ _content_type=_content_type,
1615
+ _headers=_headers,
1616
+ _host_index=_host_index
1617
+ )
1618
+
1619
+ _response_types_map: Dict[str, Optional[str]] = {
1620
+ '201': "XmlSignaturePostResponse",
1621
+ '400': None,
1622
+ '401': None,
1623
+ '403': None,
1624
+ '422': None
1625
+
1626
+ }
1627
+ response_data = self.api_client.call_api(
1628
+ *_param,
1629
+ _request_timeout=_request_timeout
1630
+ )
1631
+ response_data.read()
1632
+ return self.api_client.response_deserialize(
1633
+ response_data=response_data,
1634
+ response_types_map=_response_types_map,
1635
+ )
1636
+
1637
+
1638
+ @validate_call
1639
+ def api_xml_signatures_xml_element_signature_post_without_preload_content(
1640
+ self,
1641
+ xml_element_signature_post_request: Optional[XmlElementSignaturePostRequest] = None,
1642
+ _request_timeout: Union[
1643
+ None,
1644
+ Annotated[StrictFloat, Field(gt=0)],
1645
+ Tuple[
1646
+ Annotated[StrictFloat, Field(gt=0)],
1647
+ Annotated[StrictFloat, Field(gt=0)]
1648
+ ]
1649
+ ] = None,
1650
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1651
+ _content_type: Optional[StrictStr] = None,
1652
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1653
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1654
+ ) -> RESTResponseType:
1655
+ """api_xml_signatures_xml_element_signature_post
1656
+
1657
+
1658
+ :param xml_element_signature_post_request:
1659
+ :type xml_element_signature_post_request: XmlElementSignaturePostRequest
1660
+ :param _request_timeout: timeout setting for this request. If one
1661
+ number provided, it will be total request
1662
+ timeout. It can also be a pair (tuple) of
1663
+ (connection, read) timeouts.
1664
+ :type _request_timeout: int, tuple(int, int), optional
1665
+ :param _request_auth: set to override the auth_settings for an a single
1666
+ request; this effectively ignores the
1667
+ authentication in the spec for a single request.
1668
+ :type _request_auth: dict, optional
1669
+ :param _content_type: force content-type for the request.
1670
+ :type _content_type: str, Optional
1671
+ :param _headers: set to override the headers for a single
1672
+ request; this effectively ignores the headers
1673
+ in the spec for a single request.
1674
+ :type _headers: dict, optional
1675
+ :param _host_index: set to override the host_index for a single
1676
+ request; this effectively ignores the host_index
1677
+ in the spec for a single request.
1678
+ :type _host_index: int, optional
1679
+ :return: Returns the result object.
1680
+ """ # noqa: E501
1681
+
1682
+ _param = self._api_xml_signatures_xml_element_signature_post_serialize(
1683
+ xml_element_signature_post_request=xml_element_signature_post_request,
1684
+ _request_auth=_request_auth,
1685
+ _content_type=_content_type,
1686
+ _headers=_headers,
1687
+ _host_index=_host_index
1688
+ )
1689
+
1690
+ _response_types_map: Dict[str, Optional[str]] = {
1691
+ '201': "XmlSignaturePostResponse",
1692
+ '400': None,
1693
+ '401': None,
1694
+ '403': None,
1695
+ '422': None
1696
+
1697
+ }
1698
+ response_data = self.api_client.call_api(
1699
+ *_param,
1700
+ _request_timeout=_request_timeout
1701
+ )
1702
+ return response_data.response
1703
+
1704
+
1705
+ def _api_xml_signatures_xml_element_signature_post_serialize(
1706
+ self,
1707
+ xml_element_signature_post_request,
1708
+ _request_auth,
1709
+ _content_type,
1710
+ _headers,
1711
+ _host_index,
1712
+ ) -> Tuple:
1713
+
1714
+ _host = None
1715
+
1716
+ _collection_formats: Dict[str, str] = {
1717
+
1718
+ }
1719
+
1720
+ _path_params: Dict[str, str] = {}
1721
+ _query_params: List[Tuple[str, str]] = []
1722
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1723
+ _form_params: List[Tuple[str, str]] = []
1724
+ _files: Dict[str, str] = {}
1725
+ _body_params: Optional[bytes] = None
1726
+
1727
+ # process the path parameters
1728
+ # process the query parameters
1729
+ # process the header parameters
1730
+ # process the form parameters
1731
+ # process the body parameter
1732
+ if xml_element_signature_post_request is not None:
1733
+ _body_params = xml_element_signature_post_request
1734
+
1735
+
1736
+ # set the HTTP header `Accept`
1737
+ _header_params['Accept'] = self.api_client.select_header_accept(
1738
+ [
1739
+ 'text/plain',
1740
+ 'application/json',
1741
+ 'text/json'
1742
+ ]
1743
+ )
1744
+
1745
+ # set the HTTP header `Content-Type`
1746
+ if _content_type:
1747
+ _header_params['Content-Type'] = _content_type
1748
+ else:
1749
+ _default_content_type = (
1750
+ self.api_client.select_header_content_type(
1751
+ [
1752
+ 'application/json-patch+json',
1753
+ 'application/json',
1754
+ 'text/json',
1755
+ 'application/*+json'
1756
+ ]
1757
+ )
1758
+ )
1759
+ if _default_content_type is not None:
1760
+ _header_params['Content-Type'] = _default_content_type
1761
+
1762
+ # authentication setting
1763
+ _auth_settings: List[str] = [
1764
+ ]
1765
+
1766
+ return self.api_client.param_serialize(
1767
+ method='POST',
1768
+ resource_path='/Api/XmlSignatures/XmlElementSignature',
1769
+ path_params=_path_params,
1770
+ query_params=_query_params,
1771
+ header_params=_header_params,
1772
+ body=_body_params,
1773
+ post_params=_form_params,
1774
+ files=_files,
1775
+ auth_settings=_auth_settings,
1776
+ collection_formats=_collection_formats,
1777
+ _host=_host,
1778
+ _request_auth=_request_auth
1779
+ )
1780
+
1781
+