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.
- restpki_ng_python_client/__init__.py +200 -0
- restpki_ng_python_client/api/__init__.py +17 -0
- restpki_ng_python_client/api/authentication_api.py +2041 -0
- restpki_ng_python_client/api/cades_signature_api.py +2376 -0
- restpki_ng_python_client/api/document_keys_api.py +1199 -0
- restpki_ng_python_client/api/documents_api.py +868 -0
- restpki_ng_python_client/api/pades_signature_api.py +1797 -0
- restpki_ng_python_client/api/pades_visual_positioning_presets_api.py +869 -0
- restpki_ng_python_client/api/pdf_api.py +334 -0
- restpki_ng_python_client/api/signature_api.py +624 -0
- restpki_ng_python_client/api/signature_inspection_api.py +337 -0
- restpki_ng_python_client/api/signature_sessions_api.py +891 -0
- restpki_ng_python_client/api/timestamp_api.py +654 -0
- restpki_ng_python_client/api/upload_api.py +1124 -0
- restpki_ng_python_client/api/xml_signature_api.py +1781 -0
- restpki_ng_python_client/api_client.py +741 -0
- restpki_ng_python_client/api_response.py +21 -0
- restpki_ng_python_client/configuration.py +426 -0
- restpki_ng_python_client/exceptions.py +166 -0
- restpki_ng_python_client/file_utils.py +122 -0
- restpki_ng_python_client/models/__init__.py +165 -0
- restpki_ng_python_client/models/allocate_document_key_batch_request.py +96 -0
- restpki_ng_python_client/models/allocate_document_key_request.py +93 -0
- restpki_ng_python_client/models/attribute_certificate_model.py +141 -0
- restpki_ng_python_client/models/audit_package_options.py +90 -0
- restpki_ng_python_client/models/authentication_failures.py +45 -0
- restpki_ng_python_client/models/authentication_get_response.py +92 -0
- restpki_ng_python_client/models/authentication_post_request.py +116 -0
- restpki_ng_python_client/models/authentication_post_response.py +98 -0
- restpki_ng_python_client/models/authentications_post_request.py +95 -0
- restpki_ng_python_client/models/authentications_post_response.py +114 -0
- restpki_ng_python_client/models/authentications_post_signed_bytes_request.py +99 -0
- restpki_ng_python_client/models/authentications_post_signed_bytes_response.py +98 -0
- restpki_ng_python_client/models/auto_positioning_horizontal_directions.py +45 -0
- restpki_ng_python_client/models/auto_positioning_vertical_directions.py +45 -0
- restpki_ng_python_client/models/blockchains.py +45 -0
- restpki_ng_python_client/models/cades_signature_model.py +123 -0
- restpki_ng_python_client/models/cades_signature_post_request_v1.py +137 -0
- restpki_ng_python_client/models/cades_signature_post_request_v2.py +152 -0
- restpki_ng_python_client/models/cades_signature_post_request_v3.py +149 -0
- restpki_ng_python_client/models/cades_signature_post_response.py +120 -0
- restpki_ng_python_client/models/cades_signature_post_signed_bytes_request.py +92 -0
- restpki_ng_python_client/models/cades_signature_post_signed_bytes_response.py +106 -0
- restpki_ng_python_client/models/cades_signer_model.py +159 -0
- restpki_ng_python_client/models/cades_timestamp_model.py +140 -0
- restpki_ng_python_client/models/certificate_model.py +197 -0
- restpki_ng_python_client/models/certificate_reference_model.py +99 -0
- restpki_ng_python_client/models/certificate_requirement.py +95 -0
- restpki_ng_python_client/models/certificate_requirement_types.py +45 -0
- restpki_ng_python_client/models/certificate_summary.py +142 -0
- restpki_ng_python_client/models/certified_attribute_model.py +94 -0
- restpki_ng_python_client/models/certified_attribute_types.py +44 -0
- restpki_ng_python_client/models/cms_content_types.py +50 -0
- restpki_ng_python_client/models/cms_signature_options.py +109 -0
- restpki_ng_python_client/models/color_model.py +98 -0
- restpki_ng_python_client/models/commitment_type_model.py +99 -0
- restpki_ng_python_client/models/complete_authentication_request.py +93 -0
- restpki_ng_python_client/models/complete_authentication_response.py +103 -0
- restpki_ng_python_client/models/complete_signature_request.py +95 -0
- restpki_ng_python_client/models/complete_signature_request_v2.py +91 -0
- restpki_ng_python_client/models/create_signature_session_request.py +161 -0
- restpki_ng_python_client/models/create_signature_session_response.py +95 -0
- restpki_ng_python_client/models/digest_algorithm_and_value_model.py +103 -0
- restpki_ng_python_client/models/digest_algorithms.py +49 -0
- restpki_ng_python_client/models/document_file_model.py +137 -0
- restpki_ng_python_client/models/document_key_model.py +100 -0
- restpki_ng_python_client/models/document_key_query_response.py +110 -0
- restpki_ng_python_client/models/document_key_summary.py +100 -0
- restpki_ng_python_client/models/document_model.py +150 -0
- restpki_ng_python_client/models/document_query_response.py +93 -0
- restpki_ng_python_client/models/document_status.py +47 -0
- restpki_ng_python_client/models/document_summary.py +128 -0
- restpki_ng_python_client/models/error_model_v2.py +120 -0
- restpki_ng_python_client/models/file_model.py +114 -0
- restpki_ng_python_client/models/file_reference_model.py +137 -0
- restpki_ng_python_client/models/full_xml_signature_post_request.py +136 -0
- restpki_ng_python_client/models/general_name_choices.py +52 -0
- restpki_ng_python_client/models/general_name_model.py +108 -0
- restpki_ng_python_client/models/holder_types.py +45 -0
- restpki_ng_python_client/models/inspect_signature_failures.py +44 -0
- restpki_ng_python_client/models/inspect_signature_request.py +127 -0
- restpki_ng_python_client/models/inspect_signature_response.py +131 -0
- restpki_ng_python_client/models/multipart_upload_begin_response.py +95 -0
- restpki_ng_python_client/models/multipart_upload_end_request.py +95 -0
- restpki_ng_python_client/models/name_model.py +205 -0
- restpki_ng_python_client/models/namespace_model.py +99 -0
- restpki_ng_python_client/models/open_cades_signature_request_model.py +147 -0
- restpki_ng_python_client/models/open_signature_request_model.py +145 -0
- restpki_ng_python_client/models/open_xml_signature_request_model.py +151 -0
- restpki_ng_python_client/models/other_name_model.py +107 -0
- restpki_ng_python_client/models/pades_certification_level.py +47 -0
- restpki_ng_python_client/models/pades_horizontal_align.py +46 -0
- restpki_ng_python_client/models/pades_measurement_units.py +45 -0
- restpki_ng_python_client/models/pades_page_optimization_model.py +98 -0
- restpki_ng_python_client/models/pades_signature_model.py +113 -0
- restpki_ng_python_client/models/pades_signature_post_request_v1.py +167 -0
- restpki_ng_python_client/models/pades_signature_post_request_v2.py +171 -0
- restpki_ng_python_client/models/pades_signature_post_response.py +120 -0
- restpki_ng_python_client/models/pades_signature_post_signed_bytes_request.py +92 -0
- restpki_ng_python_client/models/pades_signature_post_signed_bytes_response.py +106 -0
- restpki_ng_python_client/models/pades_signer_model.py +168 -0
- restpki_ng_python_client/models/pades_size_model.py +89 -0
- restpki_ng_python_client/models/pades_text_horizontal_align.py +45 -0
- restpki_ng_python_client/models/pades_vertical_align.py +46 -0
- restpki_ng_python_client/models/pades_visual_auto_positioning_model.py +106 -0
- restpki_ng_python_client/models/pades_visual_image_model.py +105 -0
- restpki_ng_python_client/models/pades_visual_positioning_model.py +109 -0
- restpki_ng_python_client/models/pades_visual_rectangle_model.py +127 -0
- restpki_ng_python_client/models/pades_visual_representation_model.py +103 -0
- restpki_ng_python_client/models/pades_visual_text_model.py +111 -0
- restpki_ng_python_client/models/page_orientations.py +46 -0
- restpki_ng_python_client/models/paper_sizes.py +56 -0
- restpki_ng_python_client/models/pdf_add_marks_request.py +117 -0
- restpki_ng_python_client/models/pdf_add_marks_response.py +91 -0
- restpki_ng_python_client/models/pdf_container_definition.py +208 -0
- restpki_ng_python_client/models/pdf_helper.py +43 -0
- restpki_ng_python_client/models/pdf_mark_element_model.py +230 -0
- restpki_ng_python_client/models/pdf_mark_element_type.py +46 -0
- restpki_ng_python_client/models/pdf_mark_image_model.py +98 -0
- restpki_ng_python_client/models/pdf_mark_model.py +168 -0
- restpki_ng_python_client/models/pdf_mark_page_options.py +47 -0
- restpki_ng_python_client/models/pdf_signature_options.py +101 -0
- restpki_ng_python_client/models/pdf_text_section_model.py +125 -0
- restpki_ng_python_client/models/pdf_text_style.py +46 -0
- restpki_ng_python_client/models/pki_brazil_certificate_model.py +159 -0
- restpki_ng_python_client/models/pki_brazil_certificate_types.py +54 -0
- restpki_ng_python_client/models/pki_italy_certificate_model.py +103 -0
- restpki_ng_python_client/models/pki_italy_certificate_types.py +46 -0
- restpki_ng_python_client/models/prepare_authentication_request.py +100 -0
- restpki_ng_python_client/models/prepare_authentication_response.py +99 -0
- restpki_ng_python_client/models/prepare_signature_failures.py +46 -0
- restpki_ng_python_client/models/prepare_signature_request.py +133 -0
- restpki_ng_python_client/models/prepare_signature_response.py +116 -0
- restpki_ng_python_client/models/resource_content_or_reference.py +107 -0
- restpki_ng_python_client/models/role_attribute_model.py +114 -0
- restpki_ng_python_client/models/session_completion_status.py +89 -0
- restpki_ng_python_client/models/signature_algorithm_and_value_model.py +106 -0
- restpki_ng_python_client/models/signature_algorithm_identifier.py +88 -0
- restpki_ng_python_client/models/signature_algorithms.py +48 -0
- restpki_ng_python_client/models/signature_b_stamp_model.py +135 -0
- restpki_ng_python_client/models/signature_policy_identifier_model.py +105 -0
- restpki_ng_python_client/models/signature_result_model.py +105 -0
- restpki_ng_python_client/models/signature_session_document_data.py +128 -0
- restpki_ng_python_client/models/signature_session_document_summary.py +138 -0
- restpki_ng_python_client/models/signature_session_model.py +126 -0
- restpki_ng_python_client/models/signature_session_status.py +49 -0
- restpki_ng_python_client/models/signature_types.py +46 -0
- restpki_ng_python_client/models/signer_b_stamp_model.py +132 -0
- restpki_ng_python_client/models/signer_model.py +187 -0
- restpki_ng_python_client/models/signer_summary.py +94 -0
- restpki_ng_python_client/models/timestamp_issue_response.py +99 -0
- restpki_ng_python_client/models/validation_item_model.py +111 -0
- restpki_ng_python_client/models/validation_item_types.py +91 -0
- restpki_ng_python_client/models/validation_results_model.py +131 -0
- restpki_ng_python_client/models/webhook_event_model.py +94 -0
- restpki_ng_python_client/models/webhook_event_types.py +44 -0
- restpki_ng_python_client/models/xml_attribute_model.py +107 -0
- restpki_ng_python_client/models/xml_element_location_model.py +111 -0
- restpki_ng_python_client/models/xml_element_model.py +115 -0
- restpki_ng_python_client/models/xml_element_signature_post_request.py +145 -0
- restpki_ng_python_client/models/xml_id_attribute_model.py +96 -0
- restpki_ng_python_client/models/xml_id_resolution_table_model.py +123 -0
- restpki_ng_python_client/models/xml_insertion_options.py +47 -0
- restpki_ng_python_client/models/xml_node_name_model.py +96 -0
- restpki_ng_python_client/models/xml_signature_model.py +154 -0
- restpki_ng_python_client/models/xml_signature_options.py +102 -0
- restpki_ng_python_client/models/xml_signature_post_response.py +120 -0
- restpki_ng_python_client/models/xml_signature_post_signed_bytes_request.py +92 -0
- restpki_ng_python_client/models/xml_signature_post_signed_bytes_response.py +106 -0
- restpki_ng_python_client/models/xml_signature_response_model.py +113 -0
- restpki_ng_python_client/models/xml_signature_types.py +47 -0
- restpki_ng_python_client/models/xml_signed_entity_types.py +46 -0
- restpki_ng_python_client/py.typed +0 -0
- restpki_ng_python_client/rest.py +231 -0
- restpki_ng_python_client/restpki_ng_client.py +458 -0
- restpki_ng_python_client/standard_signature_policies.py +24 -0
- restpki_ng_python_client/utils.py +80 -0
- restpki_ng_python_client-0.9.0.dist-info/METADATA +16 -0
- restpki_ng_python_client-0.9.0.dist-info/RECORD +181 -0
- restpki_ng_python_client-0.9.0.dist-info/WHEEL +5 -0
- restpki_ng_python_client-0.9.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2376 @@
|
|
|
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.cades_signature_model import CadesSignatureModel
|
|
31
|
+
from restpki_ng_python_client.models.cades_signature_post_request_v1 import CadesSignaturePostRequestV1
|
|
32
|
+
from restpki_ng_python_client.models.cades_signature_post_request_v2 import CadesSignaturePostRequestV2
|
|
33
|
+
from restpki_ng_python_client.models.cades_signature_post_request_v3 import CadesSignaturePostRequestV3
|
|
34
|
+
from restpki_ng_python_client.models.cades_signature_post_response import CadesSignaturePostResponse
|
|
35
|
+
from restpki_ng_python_client.models.cades_signature_post_signed_bytes_request import CadesSignaturePostSignedBytesRequest
|
|
36
|
+
from restpki_ng_python_client.models.cades_signature_post_signed_bytes_response import CadesSignaturePostSignedBytesResponse
|
|
37
|
+
from restpki_ng_python_client.models.complete_signature_request import CompleteSignatureRequest
|
|
38
|
+
from restpki_ng_python_client.models.digest_algorithms import DigestAlgorithms
|
|
39
|
+
from restpki_ng_python_client.models.file_model import FileModel
|
|
40
|
+
from restpki_ng_python_client.models.open_cades_signature_request_model import OpenCadesSignatureRequestModel
|
|
41
|
+
from restpki_ng_python_client.models.signature_result_model import SignatureResultModel
|
|
42
|
+
|
|
43
|
+
from restpki_ng_python_client.api_client import ApiClient
|
|
44
|
+
from restpki_ng_python_client.api_response import ApiResponse
|
|
45
|
+
from restpki_ng_python_client.rest import RESTResponseType
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class CadesSignatureApi:
|
|
49
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
50
|
+
Ref: https://openapi-generator.tech
|
|
51
|
+
|
|
52
|
+
Do not edit the class manually.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(self, api_client=None) -> None:
|
|
56
|
+
if api_client is None:
|
|
57
|
+
api_client = ApiClient.get_default()
|
|
58
|
+
self.api_client = api_client
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@validate_call
|
|
62
|
+
def api_cades_signatures_open_post(
|
|
63
|
+
self,
|
|
64
|
+
open_cades_signature_request_model: Optional[OpenCadesSignatureRequestModel] = None,
|
|
65
|
+
_request_timeout: Union[
|
|
66
|
+
None,
|
|
67
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
68
|
+
Tuple[
|
|
69
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
70
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
71
|
+
]
|
|
72
|
+
] = None,
|
|
73
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
74
|
+
_content_type: Optional[StrictStr] = None,
|
|
75
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
76
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
77
|
+
) -> CadesSignatureModel:
|
|
78
|
+
"""api_cades_signatures_open_post
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:param open_cades_signature_request_model:
|
|
82
|
+
:type open_cades_signature_request_model: OpenCadesSignatureRequestModel
|
|
83
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
84
|
+
number provided, it will be total request
|
|
85
|
+
timeout. It can also be a pair (tuple) of
|
|
86
|
+
(connection, read) timeouts.
|
|
87
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
88
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
89
|
+
request; this effectively ignores the
|
|
90
|
+
authentication in the spec for a single request.
|
|
91
|
+
:type _request_auth: dict, optional
|
|
92
|
+
:param _content_type: force content-type for the request.
|
|
93
|
+
:type _content_type: str, Optional
|
|
94
|
+
:param _headers: set to override the headers for a single
|
|
95
|
+
request; this effectively ignores the headers
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _headers: dict, optional
|
|
98
|
+
:param _host_index: set to override the host_index for a single
|
|
99
|
+
request; this effectively ignores the host_index
|
|
100
|
+
in the spec for a single request.
|
|
101
|
+
:type _host_index: int, optional
|
|
102
|
+
:return: Returns the result object.
|
|
103
|
+
""" # noqa: E501
|
|
104
|
+
|
|
105
|
+
_param = self._api_cades_signatures_open_post_serialize(
|
|
106
|
+
open_cades_signature_request_model=open_cades_signature_request_model,
|
|
107
|
+
_request_auth=_request_auth,
|
|
108
|
+
_content_type=_content_type,
|
|
109
|
+
_headers=_headers,
|
|
110
|
+
_host_index=_host_index
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
114
|
+
'200': "CadesSignatureModel",
|
|
115
|
+
'400': None,
|
|
116
|
+
'401': None,
|
|
117
|
+
'403': None,
|
|
118
|
+
'422': None
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
response_data = self.api_client.call_api(
|
|
122
|
+
*_param,
|
|
123
|
+
_request_timeout=_request_timeout
|
|
124
|
+
)
|
|
125
|
+
response_data.read()
|
|
126
|
+
return self.api_client.response_deserialize(
|
|
127
|
+
response_data=response_data,
|
|
128
|
+
response_types_map=_response_types_map,
|
|
129
|
+
).data
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
@validate_call
|
|
133
|
+
def api_cades_signatures_open_post_with_http_info(
|
|
134
|
+
self,
|
|
135
|
+
open_cades_signature_request_model: Optional[OpenCadesSignatureRequestModel] = None,
|
|
136
|
+
_request_timeout: Union[
|
|
137
|
+
None,
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Tuple[
|
|
140
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
142
|
+
]
|
|
143
|
+
] = None,
|
|
144
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_content_type: Optional[StrictStr] = None,
|
|
146
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
147
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
148
|
+
) -> ApiResponse[CadesSignatureModel]:
|
|
149
|
+
"""api_cades_signatures_open_post
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param open_cades_signature_request_model:
|
|
153
|
+
:type open_cades_signature_request_model: OpenCadesSignatureRequestModel
|
|
154
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
155
|
+
number provided, it will be total request
|
|
156
|
+
timeout. It can also be a pair (tuple) of
|
|
157
|
+
(connection, read) timeouts.
|
|
158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
160
|
+
request; this effectively ignores the
|
|
161
|
+
authentication in the spec for a single request.
|
|
162
|
+
:type _request_auth: dict, optional
|
|
163
|
+
:param _content_type: force content-type for the request.
|
|
164
|
+
:type _content_type: str, Optional
|
|
165
|
+
:param _headers: set to override the headers for a single
|
|
166
|
+
request; this effectively ignores the headers
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _headers: dict, optional
|
|
169
|
+
:param _host_index: set to override the host_index for a single
|
|
170
|
+
request; this effectively ignores the host_index
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _host_index: int, optional
|
|
173
|
+
:return: Returns the result object.
|
|
174
|
+
""" # noqa: E501
|
|
175
|
+
|
|
176
|
+
_param = self._api_cades_signatures_open_post_serialize(
|
|
177
|
+
open_cades_signature_request_model=open_cades_signature_request_model,
|
|
178
|
+
_request_auth=_request_auth,
|
|
179
|
+
_content_type=_content_type,
|
|
180
|
+
_headers=_headers,
|
|
181
|
+
_host_index=_host_index
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
185
|
+
'200': "CadesSignatureModel",
|
|
186
|
+
'400': None,
|
|
187
|
+
'401': None,
|
|
188
|
+
'403': None,
|
|
189
|
+
'422': None
|
|
190
|
+
|
|
191
|
+
}
|
|
192
|
+
response_data = self.api_client.call_api(
|
|
193
|
+
*_param,
|
|
194
|
+
_request_timeout=_request_timeout
|
|
195
|
+
)
|
|
196
|
+
response_data.read()
|
|
197
|
+
return self.api_client.response_deserialize(
|
|
198
|
+
response_data=response_data,
|
|
199
|
+
response_types_map=_response_types_map,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
@validate_call
|
|
204
|
+
def api_cades_signatures_open_post_without_preload_content(
|
|
205
|
+
self,
|
|
206
|
+
open_cades_signature_request_model: Optional[OpenCadesSignatureRequestModel] = None,
|
|
207
|
+
_request_timeout: Union[
|
|
208
|
+
None,
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Tuple[
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
213
|
+
]
|
|
214
|
+
] = None,
|
|
215
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_content_type: Optional[StrictStr] = None,
|
|
217
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
218
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
219
|
+
) -> RESTResponseType:
|
|
220
|
+
"""api_cades_signatures_open_post
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param open_cades_signature_request_model:
|
|
224
|
+
:type open_cades_signature_request_model: OpenCadesSignatureRequestModel
|
|
225
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
226
|
+
number provided, it will be total request
|
|
227
|
+
timeout. It can also be a pair (tuple) of
|
|
228
|
+
(connection, read) timeouts.
|
|
229
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
230
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
231
|
+
request; this effectively ignores the
|
|
232
|
+
authentication in the spec for a single request.
|
|
233
|
+
:type _request_auth: dict, optional
|
|
234
|
+
:param _content_type: force content-type for the request.
|
|
235
|
+
:type _content_type: str, Optional
|
|
236
|
+
:param _headers: set to override the headers for a single
|
|
237
|
+
request; this effectively ignores the headers
|
|
238
|
+
in the spec for a single request.
|
|
239
|
+
:type _headers: dict, optional
|
|
240
|
+
:param _host_index: set to override the host_index for a single
|
|
241
|
+
request; this effectively ignores the host_index
|
|
242
|
+
in the spec for a single request.
|
|
243
|
+
:type _host_index: int, optional
|
|
244
|
+
:return: Returns the result object.
|
|
245
|
+
""" # noqa: E501
|
|
246
|
+
|
|
247
|
+
_param = self._api_cades_signatures_open_post_serialize(
|
|
248
|
+
open_cades_signature_request_model=open_cades_signature_request_model,
|
|
249
|
+
_request_auth=_request_auth,
|
|
250
|
+
_content_type=_content_type,
|
|
251
|
+
_headers=_headers,
|
|
252
|
+
_host_index=_host_index
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
256
|
+
'200': "CadesSignatureModel",
|
|
257
|
+
'400': None,
|
|
258
|
+
'401': None,
|
|
259
|
+
'403': None,
|
|
260
|
+
'422': None
|
|
261
|
+
|
|
262
|
+
}
|
|
263
|
+
response_data = self.api_client.call_api(
|
|
264
|
+
*_param,
|
|
265
|
+
_request_timeout=_request_timeout
|
|
266
|
+
)
|
|
267
|
+
return response_data.response
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def _api_cades_signatures_open_post_serialize(
|
|
271
|
+
self,
|
|
272
|
+
open_cades_signature_request_model,
|
|
273
|
+
_request_auth,
|
|
274
|
+
_content_type,
|
|
275
|
+
_headers,
|
|
276
|
+
_host_index,
|
|
277
|
+
) -> Tuple:
|
|
278
|
+
|
|
279
|
+
_host = None
|
|
280
|
+
|
|
281
|
+
_collection_formats: Dict[str, str] = {
|
|
282
|
+
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
_path_params: Dict[str, str] = {}
|
|
286
|
+
_query_params: List[Tuple[str, str]] = []
|
|
287
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
288
|
+
_form_params: List[Tuple[str, str]] = []
|
|
289
|
+
_files: Dict[str, str] = {}
|
|
290
|
+
_body_params: Optional[bytes] = None
|
|
291
|
+
|
|
292
|
+
# process the path parameters
|
|
293
|
+
# process the query parameters
|
|
294
|
+
# process the header parameters
|
|
295
|
+
# process the form parameters
|
|
296
|
+
# process the body parameter
|
|
297
|
+
if open_cades_signature_request_model is not None:
|
|
298
|
+
_body_params = open_cades_signature_request_model
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# set the HTTP header `Accept`
|
|
302
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
303
|
+
[
|
|
304
|
+
'text/plain',
|
|
305
|
+
'application/json',
|
|
306
|
+
'text/json'
|
|
307
|
+
]
|
|
308
|
+
)
|
|
309
|
+
|
|
310
|
+
# set the HTTP header `Content-Type`
|
|
311
|
+
if _content_type:
|
|
312
|
+
_header_params['Content-Type'] = _content_type
|
|
313
|
+
else:
|
|
314
|
+
_default_content_type = (
|
|
315
|
+
self.api_client.select_header_content_type(
|
|
316
|
+
[
|
|
317
|
+
'application/json-patch+json',
|
|
318
|
+
'application/json',
|
|
319
|
+
'text/json',
|
|
320
|
+
'application/*+json'
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
)
|
|
324
|
+
if _default_content_type is not None:
|
|
325
|
+
_header_params['Content-Type'] = _default_content_type
|
|
326
|
+
|
|
327
|
+
# authentication setting
|
|
328
|
+
_auth_settings: List[str] = [
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
return self.api_client.param_serialize(
|
|
332
|
+
method='POST',
|
|
333
|
+
resource_path='/Api/CadesSignatures/Open',
|
|
334
|
+
path_params=_path_params,
|
|
335
|
+
query_params=_query_params,
|
|
336
|
+
header_params=_header_params,
|
|
337
|
+
body=_body_params,
|
|
338
|
+
post_params=_form_params,
|
|
339
|
+
files=_files,
|
|
340
|
+
auth_settings=_auth_settings,
|
|
341
|
+
collection_formats=_collection_formats,
|
|
342
|
+
_host=_host,
|
|
343
|
+
_request_auth=_request_auth
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
@validate_call
|
|
350
|
+
def api_cades_signatures_post(
|
|
351
|
+
self,
|
|
352
|
+
cades_signature_post_request_v1: Optional[CadesSignaturePostRequestV1] = None,
|
|
353
|
+
_request_timeout: Union[
|
|
354
|
+
None,
|
|
355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
356
|
+
Tuple[
|
|
357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
358
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
359
|
+
]
|
|
360
|
+
] = None,
|
|
361
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
362
|
+
_content_type: Optional[StrictStr] = None,
|
|
363
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
364
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
365
|
+
) -> CadesSignaturePostResponse:
|
|
366
|
+
"""api_cades_signatures_post
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param cades_signature_post_request_v1:
|
|
370
|
+
:type cades_signature_post_request_v1: CadesSignaturePostRequestV1
|
|
371
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
372
|
+
number provided, it will be total request
|
|
373
|
+
timeout. It can also be a pair (tuple) of
|
|
374
|
+
(connection, read) timeouts.
|
|
375
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
376
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
377
|
+
request; this effectively ignores the
|
|
378
|
+
authentication in the spec for a single request.
|
|
379
|
+
:type _request_auth: dict, optional
|
|
380
|
+
:param _content_type: force content-type for the request.
|
|
381
|
+
:type _content_type: str, Optional
|
|
382
|
+
:param _headers: set to override the headers for a single
|
|
383
|
+
request; this effectively ignores the headers
|
|
384
|
+
in the spec for a single request.
|
|
385
|
+
:type _headers: dict, optional
|
|
386
|
+
:param _host_index: set to override the host_index for a single
|
|
387
|
+
request; this effectively ignores the host_index
|
|
388
|
+
in the spec for a single request.
|
|
389
|
+
:type _host_index: int, optional
|
|
390
|
+
:return: Returns the result object.
|
|
391
|
+
""" # noqa: E501
|
|
392
|
+
|
|
393
|
+
_param = self._api_cades_signatures_post_serialize(
|
|
394
|
+
cades_signature_post_request_v1=cades_signature_post_request_v1,
|
|
395
|
+
_request_auth=_request_auth,
|
|
396
|
+
_content_type=_content_type,
|
|
397
|
+
_headers=_headers,
|
|
398
|
+
_host_index=_host_index
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
402
|
+
'201': "CadesSignaturePostResponse",
|
|
403
|
+
'400': None,
|
|
404
|
+
'401': None,
|
|
405
|
+
'403': None,
|
|
406
|
+
'422': None
|
|
407
|
+
|
|
408
|
+
}
|
|
409
|
+
response_data = self.api_client.call_api(
|
|
410
|
+
*_param,
|
|
411
|
+
_request_timeout=_request_timeout
|
|
412
|
+
)
|
|
413
|
+
response_data.read()
|
|
414
|
+
return self.api_client.response_deserialize(
|
|
415
|
+
response_data=response_data,
|
|
416
|
+
response_types_map=_response_types_map,
|
|
417
|
+
).data
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
@validate_call
|
|
421
|
+
def api_cades_signatures_post_with_http_info(
|
|
422
|
+
self,
|
|
423
|
+
cades_signature_post_request_v1: Optional[CadesSignaturePostRequestV1] = None,
|
|
424
|
+
_request_timeout: Union[
|
|
425
|
+
None,
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
427
|
+
Tuple[
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
430
|
+
]
|
|
431
|
+
] = None,
|
|
432
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
433
|
+
_content_type: Optional[StrictStr] = None,
|
|
434
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
435
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
436
|
+
) -> ApiResponse[CadesSignaturePostResponse]:
|
|
437
|
+
"""api_cades_signatures_post
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
:param cades_signature_post_request_v1:
|
|
441
|
+
:type cades_signature_post_request_v1: CadesSignaturePostRequestV1
|
|
442
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
443
|
+
number provided, it will be total request
|
|
444
|
+
timeout. It can also be a pair (tuple) of
|
|
445
|
+
(connection, read) timeouts.
|
|
446
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
447
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
448
|
+
request; this effectively ignores the
|
|
449
|
+
authentication in the spec for a single request.
|
|
450
|
+
:type _request_auth: dict, optional
|
|
451
|
+
:param _content_type: force content-type for the request.
|
|
452
|
+
:type _content_type: str, Optional
|
|
453
|
+
:param _headers: set to override the headers for a single
|
|
454
|
+
request; this effectively ignores the headers
|
|
455
|
+
in the spec for a single request.
|
|
456
|
+
:type _headers: dict, optional
|
|
457
|
+
:param _host_index: set to override the host_index for a single
|
|
458
|
+
request; this effectively ignores the host_index
|
|
459
|
+
in the spec for a single request.
|
|
460
|
+
:type _host_index: int, optional
|
|
461
|
+
:return: Returns the result object.
|
|
462
|
+
""" # noqa: E501
|
|
463
|
+
|
|
464
|
+
_param = self._api_cades_signatures_post_serialize(
|
|
465
|
+
cades_signature_post_request_v1=cades_signature_post_request_v1,
|
|
466
|
+
_request_auth=_request_auth,
|
|
467
|
+
_content_type=_content_type,
|
|
468
|
+
_headers=_headers,
|
|
469
|
+
_host_index=_host_index
|
|
470
|
+
)
|
|
471
|
+
|
|
472
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
473
|
+
'201': "CadesSignaturePostResponse",
|
|
474
|
+
'400': None,
|
|
475
|
+
'401': None,
|
|
476
|
+
'403': None,
|
|
477
|
+
'422': None
|
|
478
|
+
|
|
479
|
+
}
|
|
480
|
+
response_data = self.api_client.call_api(
|
|
481
|
+
*_param,
|
|
482
|
+
_request_timeout=_request_timeout
|
|
483
|
+
)
|
|
484
|
+
response_data.read()
|
|
485
|
+
return self.api_client.response_deserialize(
|
|
486
|
+
response_data=response_data,
|
|
487
|
+
response_types_map=_response_types_map,
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
@validate_call
|
|
492
|
+
def api_cades_signatures_post_without_preload_content(
|
|
493
|
+
self,
|
|
494
|
+
cades_signature_post_request_v1: Optional[CadesSignaturePostRequestV1] = None,
|
|
495
|
+
_request_timeout: Union[
|
|
496
|
+
None,
|
|
497
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
498
|
+
Tuple[
|
|
499
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
500
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
501
|
+
]
|
|
502
|
+
] = None,
|
|
503
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
504
|
+
_content_type: Optional[StrictStr] = None,
|
|
505
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
506
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
507
|
+
) -> RESTResponseType:
|
|
508
|
+
"""api_cades_signatures_post
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
:param cades_signature_post_request_v1:
|
|
512
|
+
:type cades_signature_post_request_v1: CadesSignaturePostRequestV1
|
|
513
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
514
|
+
number provided, it will be total request
|
|
515
|
+
timeout. It can also be a pair (tuple) of
|
|
516
|
+
(connection, read) timeouts.
|
|
517
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
518
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
519
|
+
request; this effectively ignores the
|
|
520
|
+
authentication in the spec for a single request.
|
|
521
|
+
:type _request_auth: dict, optional
|
|
522
|
+
:param _content_type: force content-type for the request.
|
|
523
|
+
:type _content_type: str, Optional
|
|
524
|
+
:param _headers: set to override the headers for a single
|
|
525
|
+
request; this effectively ignores the headers
|
|
526
|
+
in the spec for a single request.
|
|
527
|
+
:type _headers: dict, optional
|
|
528
|
+
:param _host_index: set to override the host_index for a single
|
|
529
|
+
request; this effectively ignores the host_index
|
|
530
|
+
in the spec for a single request.
|
|
531
|
+
:type _host_index: int, optional
|
|
532
|
+
:return: Returns the result object.
|
|
533
|
+
""" # noqa: E501
|
|
534
|
+
|
|
535
|
+
_param = self._api_cades_signatures_post_serialize(
|
|
536
|
+
cades_signature_post_request_v1=cades_signature_post_request_v1,
|
|
537
|
+
_request_auth=_request_auth,
|
|
538
|
+
_content_type=_content_type,
|
|
539
|
+
_headers=_headers,
|
|
540
|
+
_host_index=_host_index
|
|
541
|
+
)
|
|
542
|
+
|
|
543
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
544
|
+
'201': "CadesSignaturePostResponse",
|
|
545
|
+
'400': None,
|
|
546
|
+
'401': None,
|
|
547
|
+
'403': None,
|
|
548
|
+
'422': None
|
|
549
|
+
|
|
550
|
+
}
|
|
551
|
+
response_data = self.api_client.call_api(
|
|
552
|
+
*_param,
|
|
553
|
+
_request_timeout=_request_timeout
|
|
554
|
+
)
|
|
555
|
+
return response_data.response
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
def _api_cades_signatures_post_serialize(
|
|
559
|
+
self,
|
|
560
|
+
cades_signature_post_request_v1,
|
|
561
|
+
_request_auth,
|
|
562
|
+
_content_type,
|
|
563
|
+
_headers,
|
|
564
|
+
_host_index,
|
|
565
|
+
) -> Tuple:
|
|
566
|
+
|
|
567
|
+
_host = None
|
|
568
|
+
|
|
569
|
+
_collection_formats: Dict[str, str] = {
|
|
570
|
+
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
_path_params: Dict[str, str] = {}
|
|
574
|
+
_query_params: List[Tuple[str, str]] = []
|
|
575
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
576
|
+
_form_params: List[Tuple[str, str]] = []
|
|
577
|
+
_files: Dict[str, str] = {}
|
|
578
|
+
_body_params: Optional[bytes] = None
|
|
579
|
+
|
|
580
|
+
# process the path parameters
|
|
581
|
+
# process the query parameters
|
|
582
|
+
# process the header parameters
|
|
583
|
+
# process the form parameters
|
|
584
|
+
# process the body parameter
|
|
585
|
+
if cades_signature_post_request_v1 is not None:
|
|
586
|
+
_body_params = cades_signature_post_request_v1
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
# set the HTTP header `Accept`
|
|
590
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
591
|
+
[
|
|
592
|
+
'text/plain',
|
|
593
|
+
'application/json',
|
|
594
|
+
'text/json'
|
|
595
|
+
]
|
|
596
|
+
)
|
|
597
|
+
|
|
598
|
+
# set the HTTP header `Content-Type`
|
|
599
|
+
if _content_type:
|
|
600
|
+
_header_params['Content-Type'] = _content_type
|
|
601
|
+
else:
|
|
602
|
+
_default_content_type = (
|
|
603
|
+
self.api_client.select_header_content_type(
|
|
604
|
+
[
|
|
605
|
+
'application/json-patch+json',
|
|
606
|
+
'application/json',
|
|
607
|
+
'text/json',
|
|
608
|
+
'application/*+json'
|
|
609
|
+
]
|
|
610
|
+
)
|
|
611
|
+
)
|
|
612
|
+
if _default_content_type is not None:
|
|
613
|
+
_header_params['Content-Type'] = _default_content_type
|
|
614
|
+
|
|
615
|
+
# authentication setting
|
|
616
|
+
_auth_settings: List[str] = [
|
|
617
|
+
]
|
|
618
|
+
|
|
619
|
+
return self.api_client.param_serialize(
|
|
620
|
+
method='POST',
|
|
621
|
+
resource_path='/Api/CadesSignatures',
|
|
622
|
+
path_params=_path_params,
|
|
623
|
+
query_params=_query_params,
|
|
624
|
+
header_params=_header_params,
|
|
625
|
+
body=_body_params,
|
|
626
|
+
post_params=_form_params,
|
|
627
|
+
files=_files,
|
|
628
|
+
auth_settings=_auth_settings,
|
|
629
|
+
collection_formats=_collection_formats,
|
|
630
|
+
_host=_host,
|
|
631
|
+
_request_auth=_request_auth
|
|
632
|
+
)
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
@validate_call
|
|
638
|
+
def api_cades_signatures_required_hashes_post(
|
|
639
|
+
self,
|
|
640
|
+
file_model: Optional[FileModel] = None,
|
|
641
|
+
_request_timeout: Union[
|
|
642
|
+
None,
|
|
643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
644
|
+
Tuple[
|
|
645
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
646
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
647
|
+
]
|
|
648
|
+
] = None,
|
|
649
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
650
|
+
_content_type: Optional[StrictStr] = None,
|
|
651
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
652
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
653
|
+
) -> List[DigestAlgorithms]:
|
|
654
|
+
"""api_cades_signatures_required_hashes_post
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
:param file_model:
|
|
658
|
+
:type file_model: FileModel
|
|
659
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
660
|
+
number provided, it will be total request
|
|
661
|
+
timeout. It can also be a pair (tuple) of
|
|
662
|
+
(connection, read) timeouts.
|
|
663
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
664
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
665
|
+
request; this effectively ignores the
|
|
666
|
+
authentication in the spec for a single request.
|
|
667
|
+
:type _request_auth: dict, optional
|
|
668
|
+
:param _content_type: force content-type for the request.
|
|
669
|
+
:type _content_type: str, Optional
|
|
670
|
+
:param _headers: set to override the headers for a single
|
|
671
|
+
request; this effectively ignores the headers
|
|
672
|
+
in the spec for a single request.
|
|
673
|
+
:type _headers: dict, optional
|
|
674
|
+
:param _host_index: set to override the host_index for a single
|
|
675
|
+
request; this effectively ignores the host_index
|
|
676
|
+
in the spec for a single request.
|
|
677
|
+
:type _host_index: int, optional
|
|
678
|
+
:return: Returns the result object.
|
|
679
|
+
""" # noqa: E501
|
|
680
|
+
|
|
681
|
+
_param = self._api_cades_signatures_required_hashes_post_serialize(
|
|
682
|
+
file_model=file_model,
|
|
683
|
+
_request_auth=_request_auth,
|
|
684
|
+
_content_type=_content_type,
|
|
685
|
+
_headers=_headers,
|
|
686
|
+
_host_index=_host_index
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
690
|
+
'200': "List[DigestAlgorithms]",
|
|
691
|
+
'400': None,
|
|
692
|
+
'401': None,
|
|
693
|
+
'403': None,
|
|
694
|
+
'422': None
|
|
695
|
+
|
|
696
|
+
}
|
|
697
|
+
response_data = self.api_client.call_api(
|
|
698
|
+
*_param,
|
|
699
|
+
_request_timeout=_request_timeout
|
|
700
|
+
)
|
|
701
|
+
response_data.read()
|
|
702
|
+
return self.api_client.response_deserialize(
|
|
703
|
+
response_data=response_data,
|
|
704
|
+
response_types_map=_response_types_map,
|
|
705
|
+
).data
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
@validate_call
|
|
709
|
+
def api_cades_signatures_required_hashes_post_with_http_info(
|
|
710
|
+
self,
|
|
711
|
+
file_model: Optional[FileModel] = None,
|
|
712
|
+
_request_timeout: Union[
|
|
713
|
+
None,
|
|
714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
715
|
+
Tuple[
|
|
716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
717
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
718
|
+
]
|
|
719
|
+
] = None,
|
|
720
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
721
|
+
_content_type: Optional[StrictStr] = None,
|
|
722
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
723
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
724
|
+
) -> ApiResponse[List[DigestAlgorithms]]:
|
|
725
|
+
"""api_cades_signatures_required_hashes_post
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
:param file_model:
|
|
729
|
+
:type file_model: FileModel
|
|
730
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
731
|
+
number provided, it will be total request
|
|
732
|
+
timeout. It can also be a pair (tuple) of
|
|
733
|
+
(connection, read) timeouts.
|
|
734
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
735
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
736
|
+
request; this effectively ignores the
|
|
737
|
+
authentication in the spec for a single request.
|
|
738
|
+
:type _request_auth: dict, optional
|
|
739
|
+
:param _content_type: force content-type for the request.
|
|
740
|
+
:type _content_type: str, Optional
|
|
741
|
+
:param _headers: set to override the headers for a single
|
|
742
|
+
request; this effectively ignores the headers
|
|
743
|
+
in the spec for a single request.
|
|
744
|
+
:type _headers: dict, optional
|
|
745
|
+
:param _host_index: set to override the host_index for a single
|
|
746
|
+
request; this effectively ignores the host_index
|
|
747
|
+
in the spec for a single request.
|
|
748
|
+
:type _host_index: int, optional
|
|
749
|
+
:return: Returns the result object.
|
|
750
|
+
""" # noqa: E501
|
|
751
|
+
|
|
752
|
+
_param = self._api_cades_signatures_required_hashes_post_serialize(
|
|
753
|
+
file_model=file_model,
|
|
754
|
+
_request_auth=_request_auth,
|
|
755
|
+
_content_type=_content_type,
|
|
756
|
+
_headers=_headers,
|
|
757
|
+
_host_index=_host_index
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
761
|
+
'200': "List[DigestAlgorithms]",
|
|
762
|
+
'400': None,
|
|
763
|
+
'401': None,
|
|
764
|
+
'403': None,
|
|
765
|
+
'422': None
|
|
766
|
+
|
|
767
|
+
}
|
|
768
|
+
response_data = self.api_client.call_api(
|
|
769
|
+
*_param,
|
|
770
|
+
_request_timeout=_request_timeout
|
|
771
|
+
)
|
|
772
|
+
response_data.read()
|
|
773
|
+
return self.api_client.response_deserialize(
|
|
774
|
+
response_data=response_data,
|
|
775
|
+
response_types_map=_response_types_map,
|
|
776
|
+
)
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
@validate_call
|
|
780
|
+
def api_cades_signatures_required_hashes_post_without_preload_content(
|
|
781
|
+
self,
|
|
782
|
+
file_model: Optional[FileModel] = None,
|
|
783
|
+
_request_timeout: Union[
|
|
784
|
+
None,
|
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
786
|
+
Tuple[
|
|
787
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
788
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
789
|
+
]
|
|
790
|
+
] = None,
|
|
791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
792
|
+
_content_type: Optional[StrictStr] = None,
|
|
793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
795
|
+
) -> RESTResponseType:
|
|
796
|
+
"""api_cades_signatures_required_hashes_post
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
:param file_model:
|
|
800
|
+
:type file_model: FileModel
|
|
801
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
802
|
+
number provided, it will be total request
|
|
803
|
+
timeout. It can also be a pair (tuple) of
|
|
804
|
+
(connection, read) timeouts.
|
|
805
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
806
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
807
|
+
request; this effectively ignores the
|
|
808
|
+
authentication in the spec for a single request.
|
|
809
|
+
:type _request_auth: dict, optional
|
|
810
|
+
:param _content_type: force content-type for the request.
|
|
811
|
+
:type _content_type: str, Optional
|
|
812
|
+
:param _headers: set to override the headers for a single
|
|
813
|
+
request; this effectively ignores the headers
|
|
814
|
+
in the spec for a single request.
|
|
815
|
+
:type _headers: dict, optional
|
|
816
|
+
:param _host_index: set to override the host_index for a single
|
|
817
|
+
request; this effectively ignores the host_index
|
|
818
|
+
in the spec for a single request.
|
|
819
|
+
:type _host_index: int, optional
|
|
820
|
+
:return: Returns the result object.
|
|
821
|
+
""" # noqa: E501
|
|
822
|
+
|
|
823
|
+
_param = self._api_cades_signatures_required_hashes_post_serialize(
|
|
824
|
+
file_model=file_model,
|
|
825
|
+
_request_auth=_request_auth,
|
|
826
|
+
_content_type=_content_type,
|
|
827
|
+
_headers=_headers,
|
|
828
|
+
_host_index=_host_index
|
|
829
|
+
)
|
|
830
|
+
|
|
831
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
832
|
+
'200': "List[DigestAlgorithms]",
|
|
833
|
+
'400': None,
|
|
834
|
+
'401': None,
|
|
835
|
+
'403': None,
|
|
836
|
+
'422': None
|
|
837
|
+
|
|
838
|
+
}
|
|
839
|
+
response_data = self.api_client.call_api(
|
|
840
|
+
*_param,
|
|
841
|
+
_request_timeout=_request_timeout
|
|
842
|
+
)
|
|
843
|
+
return response_data.response
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
def _api_cades_signatures_required_hashes_post_serialize(
|
|
847
|
+
self,
|
|
848
|
+
file_model,
|
|
849
|
+
_request_auth,
|
|
850
|
+
_content_type,
|
|
851
|
+
_headers,
|
|
852
|
+
_host_index,
|
|
853
|
+
) -> Tuple:
|
|
854
|
+
|
|
855
|
+
_host = None
|
|
856
|
+
|
|
857
|
+
_collection_formats: Dict[str, str] = {
|
|
858
|
+
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
_path_params: Dict[str, str] = {}
|
|
862
|
+
_query_params: List[Tuple[str, str]] = []
|
|
863
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
864
|
+
_form_params: List[Tuple[str, str]] = []
|
|
865
|
+
_files: Dict[str, str] = {}
|
|
866
|
+
_body_params: Optional[bytes] = None
|
|
867
|
+
|
|
868
|
+
# process the path parameters
|
|
869
|
+
# process the query parameters
|
|
870
|
+
# process the header parameters
|
|
871
|
+
# process the form parameters
|
|
872
|
+
# process the body parameter
|
|
873
|
+
if file_model is not None:
|
|
874
|
+
_body_params = file_model
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
# set the HTTP header `Accept`
|
|
878
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
879
|
+
[
|
|
880
|
+
'text/plain',
|
|
881
|
+
'application/json',
|
|
882
|
+
'text/json'
|
|
883
|
+
]
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
# set the HTTP header `Content-Type`
|
|
887
|
+
if _content_type:
|
|
888
|
+
_header_params['Content-Type'] = _content_type
|
|
889
|
+
else:
|
|
890
|
+
_default_content_type = (
|
|
891
|
+
self.api_client.select_header_content_type(
|
|
892
|
+
[
|
|
893
|
+
'application/json-patch+json',
|
|
894
|
+
'application/json',
|
|
895
|
+
'text/json',
|
|
896
|
+
'application/*+json'
|
|
897
|
+
]
|
|
898
|
+
)
|
|
899
|
+
)
|
|
900
|
+
if _default_content_type is not None:
|
|
901
|
+
_header_params['Content-Type'] = _default_content_type
|
|
902
|
+
|
|
903
|
+
# authentication setting
|
|
904
|
+
_auth_settings: List[str] = [
|
|
905
|
+
]
|
|
906
|
+
|
|
907
|
+
return self.api_client.param_serialize(
|
|
908
|
+
method='POST',
|
|
909
|
+
resource_path='/Api/CadesSignatures/RequiredHashes',
|
|
910
|
+
path_params=_path_params,
|
|
911
|
+
query_params=_query_params,
|
|
912
|
+
header_params=_header_params,
|
|
913
|
+
body=_body_params,
|
|
914
|
+
post_params=_form_params,
|
|
915
|
+
files=_files,
|
|
916
|
+
auth_settings=_auth_settings,
|
|
917
|
+
collection_formats=_collection_formats,
|
|
918
|
+
_host=_host,
|
|
919
|
+
_request_auth=_request_auth
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
@validate_call
|
|
926
|
+
def api_cades_signatures_token_finalize_post(
|
|
927
|
+
self,
|
|
928
|
+
token: StrictStr,
|
|
929
|
+
_request_timeout: Union[
|
|
930
|
+
None,
|
|
931
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
932
|
+
Tuple[
|
|
933
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
934
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
935
|
+
]
|
|
936
|
+
] = None,
|
|
937
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
938
|
+
_content_type: Optional[StrictStr] = None,
|
|
939
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
940
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
941
|
+
) -> CadesSignaturePostSignedBytesResponse:
|
|
942
|
+
"""api_cades_signatures_token_finalize_post
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
:param token: (required)
|
|
946
|
+
:type token: str
|
|
947
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
948
|
+
number provided, it will be total request
|
|
949
|
+
timeout. It can also be a pair (tuple) of
|
|
950
|
+
(connection, read) timeouts.
|
|
951
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
952
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
953
|
+
request; this effectively ignores the
|
|
954
|
+
authentication in the spec for a single request.
|
|
955
|
+
:type _request_auth: dict, optional
|
|
956
|
+
:param _content_type: force content-type for the request.
|
|
957
|
+
:type _content_type: str, Optional
|
|
958
|
+
:param _headers: set to override the headers for a single
|
|
959
|
+
request; this effectively ignores the headers
|
|
960
|
+
in the spec for a single request.
|
|
961
|
+
:type _headers: dict, optional
|
|
962
|
+
:param _host_index: set to override the host_index for a single
|
|
963
|
+
request; this effectively ignores the host_index
|
|
964
|
+
in the spec for a single request.
|
|
965
|
+
:type _host_index: int, optional
|
|
966
|
+
:return: Returns the result object.
|
|
967
|
+
""" # noqa: E501
|
|
968
|
+
|
|
969
|
+
_param = self._api_cades_signatures_token_finalize_post_serialize(
|
|
970
|
+
token=token,
|
|
971
|
+
_request_auth=_request_auth,
|
|
972
|
+
_content_type=_content_type,
|
|
973
|
+
_headers=_headers,
|
|
974
|
+
_host_index=_host_index
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
979
|
+
'400': None,
|
|
980
|
+
'401': None,
|
|
981
|
+
'403': None,
|
|
982
|
+
'422': None
|
|
983
|
+
|
|
984
|
+
}
|
|
985
|
+
response_data = self.api_client.call_api(
|
|
986
|
+
*_param,
|
|
987
|
+
_request_timeout=_request_timeout
|
|
988
|
+
)
|
|
989
|
+
response_data.read()
|
|
990
|
+
return self.api_client.response_deserialize(
|
|
991
|
+
response_data=response_data,
|
|
992
|
+
response_types_map=_response_types_map,
|
|
993
|
+
).data
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
@validate_call
|
|
997
|
+
def api_cades_signatures_token_finalize_post_with_http_info(
|
|
998
|
+
self,
|
|
999
|
+
token: StrictStr,
|
|
1000
|
+
_request_timeout: Union[
|
|
1001
|
+
None,
|
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1003
|
+
Tuple[
|
|
1004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1005
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1006
|
+
]
|
|
1007
|
+
] = None,
|
|
1008
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1009
|
+
_content_type: Optional[StrictStr] = None,
|
|
1010
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1011
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1012
|
+
) -> ApiResponse[CadesSignaturePostSignedBytesResponse]:
|
|
1013
|
+
"""api_cades_signatures_token_finalize_post
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
:param token: (required)
|
|
1017
|
+
:type token: str
|
|
1018
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1019
|
+
number provided, it will be total request
|
|
1020
|
+
timeout. It can also be a pair (tuple) of
|
|
1021
|
+
(connection, read) timeouts.
|
|
1022
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1023
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1024
|
+
request; this effectively ignores the
|
|
1025
|
+
authentication in the spec for a single request.
|
|
1026
|
+
:type _request_auth: dict, optional
|
|
1027
|
+
:param _content_type: force content-type for the request.
|
|
1028
|
+
:type _content_type: str, Optional
|
|
1029
|
+
:param _headers: set to override the headers for a single
|
|
1030
|
+
request; this effectively ignores the headers
|
|
1031
|
+
in the spec for a single request.
|
|
1032
|
+
:type _headers: dict, optional
|
|
1033
|
+
:param _host_index: set to override the host_index for a single
|
|
1034
|
+
request; this effectively ignores the host_index
|
|
1035
|
+
in the spec for a single request.
|
|
1036
|
+
:type _host_index: int, optional
|
|
1037
|
+
:return: Returns the result object.
|
|
1038
|
+
""" # noqa: E501
|
|
1039
|
+
|
|
1040
|
+
_param = self._api_cades_signatures_token_finalize_post_serialize(
|
|
1041
|
+
token=token,
|
|
1042
|
+
_request_auth=_request_auth,
|
|
1043
|
+
_content_type=_content_type,
|
|
1044
|
+
_headers=_headers,
|
|
1045
|
+
_host_index=_host_index
|
|
1046
|
+
)
|
|
1047
|
+
|
|
1048
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1049
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
1050
|
+
'400': None,
|
|
1051
|
+
'401': None,
|
|
1052
|
+
'403': None,
|
|
1053
|
+
'422': None
|
|
1054
|
+
|
|
1055
|
+
}
|
|
1056
|
+
response_data = self.api_client.call_api(
|
|
1057
|
+
*_param,
|
|
1058
|
+
_request_timeout=_request_timeout
|
|
1059
|
+
)
|
|
1060
|
+
response_data.read()
|
|
1061
|
+
return self.api_client.response_deserialize(
|
|
1062
|
+
response_data=response_data,
|
|
1063
|
+
response_types_map=_response_types_map,
|
|
1064
|
+
)
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
@validate_call
|
|
1068
|
+
def api_cades_signatures_token_finalize_post_without_preload_content(
|
|
1069
|
+
self,
|
|
1070
|
+
token: StrictStr,
|
|
1071
|
+
_request_timeout: Union[
|
|
1072
|
+
None,
|
|
1073
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1074
|
+
Tuple[
|
|
1075
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1076
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1077
|
+
]
|
|
1078
|
+
] = None,
|
|
1079
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1080
|
+
_content_type: Optional[StrictStr] = None,
|
|
1081
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1082
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1083
|
+
) -> RESTResponseType:
|
|
1084
|
+
"""api_cades_signatures_token_finalize_post
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
:param token: (required)
|
|
1088
|
+
:type token: str
|
|
1089
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1090
|
+
number provided, it will be total request
|
|
1091
|
+
timeout. It can also be a pair (tuple) of
|
|
1092
|
+
(connection, read) timeouts.
|
|
1093
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1094
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1095
|
+
request; this effectively ignores the
|
|
1096
|
+
authentication in the spec for a single request.
|
|
1097
|
+
:type _request_auth: dict, optional
|
|
1098
|
+
:param _content_type: force content-type for the request.
|
|
1099
|
+
:type _content_type: str, Optional
|
|
1100
|
+
:param _headers: set to override the headers for a single
|
|
1101
|
+
request; this effectively ignores the headers
|
|
1102
|
+
in the spec for a single request.
|
|
1103
|
+
:type _headers: dict, optional
|
|
1104
|
+
:param _host_index: set to override the host_index for a single
|
|
1105
|
+
request; this effectively ignores the host_index
|
|
1106
|
+
in the spec for a single request.
|
|
1107
|
+
:type _host_index: int, optional
|
|
1108
|
+
:return: Returns the result object.
|
|
1109
|
+
""" # noqa: E501
|
|
1110
|
+
|
|
1111
|
+
_param = self._api_cades_signatures_token_finalize_post_serialize(
|
|
1112
|
+
token=token,
|
|
1113
|
+
_request_auth=_request_auth,
|
|
1114
|
+
_content_type=_content_type,
|
|
1115
|
+
_headers=_headers,
|
|
1116
|
+
_host_index=_host_index
|
|
1117
|
+
)
|
|
1118
|
+
|
|
1119
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1120
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
1121
|
+
'400': None,
|
|
1122
|
+
'401': None,
|
|
1123
|
+
'403': None,
|
|
1124
|
+
'422': None
|
|
1125
|
+
|
|
1126
|
+
}
|
|
1127
|
+
response_data = self.api_client.call_api(
|
|
1128
|
+
*_param,
|
|
1129
|
+
_request_timeout=_request_timeout
|
|
1130
|
+
)
|
|
1131
|
+
return response_data.response
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
def _api_cades_signatures_token_finalize_post_serialize(
|
|
1135
|
+
self,
|
|
1136
|
+
token,
|
|
1137
|
+
_request_auth,
|
|
1138
|
+
_content_type,
|
|
1139
|
+
_headers,
|
|
1140
|
+
_host_index,
|
|
1141
|
+
) -> Tuple:
|
|
1142
|
+
|
|
1143
|
+
_host = None
|
|
1144
|
+
|
|
1145
|
+
_collection_formats: Dict[str, str] = {
|
|
1146
|
+
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
_path_params: Dict[str, str] = {}
|
|
1150
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1151
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1152
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1153
|
+
_files: Dict[str, str] = {}
|
|
1154
|
+
_body_params: Optional[bytes] = None
|
|
1155
|
+
|
|
1156
|
+
# process the path parameters
|
|
1157
|
+
if token is not None:
|
|
1158
|
+
_path_params['token'] = token
|
|
1159
|
+
# process the query parameters
|
|
1160
|
+
# process the header parameters
|
|
1161
|
+
# process the form parameters
|
|
1162
|
+
# process the body parameter
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
# set the HTTP header `Accept`
|
|
1166
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1167
|
+
[
|
|
1168
|
+
'text/plain',
|
|
1169
|
+
'application/json',
|
|
1170
|
+
'text/json'
|
|
1171
|
+
]
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
# authentication setting
|
|
1176
|
+
_auth_settings: List[str] = [
|
|
1177
|
+
]
|
|
1178
|
+
|
|
1179
|
+
return self.api_client.param_serialize(
|
|
1180
|
+
method='POST',
|
|
1181
|
+
resource_path='/Api/CadesSignatures/{token}/Finalize',
|
|
1182
|
+
path_params=_path_params,
|
|
1183
|
+
query_params=_query_params,
|
|
1184
|
+
header_params=_header_params,
|
|
1185
|
+
body=_body_params,
|
|
1186
|
+
post_params=_form_params,
|
|
1187
|
+
files=_files,
|
|
1188
|
+
auth_settings=_auth_settings,
|
|
1189
|
+
collection_formats=_collection_formats,
|
|
1190
|
+
_host=_host,
|
|
1191
|
+
_request_auth=_request_auth
|
|
1192
|
+
)
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
@validate_call
|
|
1198
|
+
def api_cades_signatures_token_signed_bytes_post(
|
|
1199
|
+
self,
|
|
1200
|
+
token: StrictStr,
|
|
1201
|
+
cades_signature_post_signed_bytes_request: Optional[CadesSignaturePostSignedBytesRequest] = None,
|
|
1202
|
+
_request_timeout: Union[
|
|
1203
|
+
None,
|
|
1204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1205
|
+
Tuple[
|
|
1206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1207
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1208
|
+
]
|
|
1209
|
+
] = None,
|
|
1210
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1211
|
+
_content_type: Optional[StrictStr] = None,
|
|
1212
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1213
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1214
|
+
) -> CadesSignaturePostSignedBytesResponse:
|
|
1215
|
+
"""api_cades_signatures_token_signed_bytes_post
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
:param token: (required)
|
|
1219
|
+
:type token: str
|
|
1220
|
+
:param cades_signature_post_signed_bytes_request:
|
|
1221
|
+
:type cades_signature_post_signed_bytes_request: CadesSignaturePostSignedBytesRequest
|
|
1222
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1223
|
+
number provided, it will be total request
|
|
1224
|
+
timeout. It can also be a pair (tuple) of
|
|
1225
|
+
(connection, read) timeouts.
|
|
1226
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1227
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1228
|
+
request; this effectively ignores the
|
|
1229
|
+
authentication in the spec for a single request.
|
|
1230
|
+
:type _request_auth: dict, optional
|
|
1231
|
+
:param _content_type: force content-type for the request.
|
|
1232
|
+
:type _content_type: str, Optional
|
|
1233
|
+
:param _headers: set to override the headers for a single
|
|
1234
|
+
request; this effectively ignores the headers
|
|
1235
|
+
in the spec for a single request.
|
|
1236
|
+
:type _headers: dict, optional
|
|
1237
|
+
:param _host_index: set to override the host_index for a single
|
|
1238
|
+
request; this effectively ignores the host_index
|
|
1239
|
+
in the spec for a single request.
|
|
1240
|
+
:type _host_index: int, optional
|
|
1241
|
+
:return: Returns the result object.
|
|
1242
|
+
""" # noqa: E501
|
|
1243
|
+
|
|
1244
|
+
_param = self._api_cades_signatures_token_signed_bytes_post_serialize(
|
|
1245
|
+
token=token,
|
|
1246
|
+
cades_signature_post_signed_bytes_request=cades_signature_post_signed_bytes_request,
|
|
1247
|
+
_request_auth=_request_auth,
|
|
1248
|
+
_content_type=_content_type,
|
|
1249
|
+
_headers=_headers,
|
|
1250
|
+
_host_index=_host_index
|
|
1251
|
+
)
|
|
1252
|
+
|
|
1253
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1254
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
1255
|
+
'400': None,
|
|
1256
|
+
'401': None,
|
|
1257
|
+
'403': None,
|
|
1258
|
+
'422': None
|
|
1259
|
+
|
|
1260
|
+
}
|
|
1261
|
+
response_data = self.api_client.call_api(
|
|
1262
|
+
*_param,
|
|
1263
|
+
_request_timeout=_request_timeout
|
|
1264
|
+
)
|
|
1265
|
+
response_data.read()
|
|
1266
|
+
return self.api_client.response_deserialize(
|
|
1267
|
+
response_data=response_data,
|
|
1268
|
+
response_types_map=_response_types_map,
|
|
1269
|
+
).data
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
@validate_call
|
|
1273
|
+
def api_cades_signatures_token_signed_bytes_post_with_http_info(
|
|
1274
|
+
self,
|
|
1275
|
+
token: StrictStr,
|
|
1276
|
+
cades_signature_post_signed_bytes_request: Optional[CadesSignaturePostSignedBytesRequest] = None,
|
|
1277
|
+
_request_timeout: Union[
|
|
1278
|
+
None,
|
|
1279
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1280
|
+
Tuple[
|
|
1281
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1282
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1283
|
+
]
|
|
1284
|
+
] = None,
|
|
1285
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1286
|
+
_content_type: Optional[StrictStr] = None,
|
|
1287
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1288
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1289
|
+
) -> ApiResponse[CadesSignaturePostSignedBytesResponse]:
|
|
1290
|
+
"""api_cades_signatures_token_signed_bytes_post
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
:param token: (required)
|
|
1294
|
+
:type token: str
|
|
1295
|
+
:param cades_signature_post_signed_bytes_request:
|
|
1296
|
+
:type cades_signature_post_signed_bytes_request: CadesSignaturePostSignedBytesRequest
|
|
1297
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1298
|
+
number provided, it will be total request
|
|
1299
|
+
timeout. It can also be a pair (tuple) of
|
|
1300
|
+
(connection, read) timeouts.
|
|
1301
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1302
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1303
|
+
request; this effectively ignores the
|
|
1304
|
+
authentication in the spec for a single request.
|
|
1305
|
+
:type _request_auth: dict, optional
|
|
1306
|
+
:param _content_type: force content-type for the request.
|
|
1307
|
+
:type _content_type: str, Optional
|
|
1308
|
+
:param _headers: set to override the headers for a single
|
|
1309
|
+
request; this effectively ignores the headers
|
|
1310
|
+
in the spec for a single request.
|
|
1311
|
+
:type _headers: dict, optional
|
|
1312
|
+
:param _host_index: set to override the host_index for a single
|
|
1313
|
+
request; this effectively ignores the host_index
|
|
1314
|
+
in the spec for a single request.
|
|
1315
|
+
:type _host_index: int, optional
|
|
1316
|
+
:return: Returns the result object.
|
|
1317
|
+
""" # noqa: E501
|
|
1318
|
+
|
|
1319
|
+
_param = self._api_cades_signatures_token_signed_bytes_post_serialize(
|
|
1320
|
+
token=token,
|
|
1321
|
+
cades_signature_post_signed_bytes_request=cades_signature_post_signed_bytes_request,
|
|
1322
|
+
_request_auth=_request_auth,
|
|
1323
|
+
_content_type=_content_type,
|
|
1324
|
+
_headers=_headers,
|
|
1325
|
+
_host_index=_host_index
|
|
1326
|
+
)
|
|
1327
|
+
|
|
1328
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1329
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
1330
|
+
'400': None,
|
|
1331
|
+
'401': None,
|
|
1332
|
+
'403': None,
|
|
1333
|
+
'422': None
|
|
1334
|
+
|
|
1335
|
+
}
|
|
1336
|
+
response_data = self.api_client.call_api(
|
|
1337
|
+
*_param,
|
|
1338
|
+
_request_timeout=_request_timeout
|
|
1339
|
+
)
|
|
1340
|
+
response_data.read()
|
|
1341
|
+
return self.api_client.response_deserialize(
|
|
1342
|
+
response_data=response_data,
|
|
1343
|
+
response_types_map=_response_types_map,
|
|
1344
|
+
)
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
@validate_call
|
|
1348
|
+
def api_cades_signatures_token_signed_bytes_post_without_preload_content(
|
|
1349
|
+
self,
|
|
1350
|
+
token: StrictStr,
|
|
1351
|
+
cades_signature_post_signed_bytes_request: Optional[CadesSignaturePostSignedBytesRequest] = None,
|
|
1352
|
+
_request_timeout: Union[
|
|
1353
|
+
None,
|
|
1354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1355
|
+
Tuple[
|
|
1356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1357
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1358
|
+
]
|
|
1359
|
+
] = None,
|
|
1360
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1361
|
+
_content_type: Optional[StrictStr] = None,
|
|
1362
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1363
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1364
|
+
) -> RESTResponseType:
|
|
1365
|
+
"""api_cades_signatures_token_signed_bytes_post
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
:param token: (required)
|
|
1369
|
+
:type token: str
|
|
1370
|
+
:param cades_signature_post_signed_bytes_request:
|
|
1371
|
+
:type cades_signature_post_signed_bytes_request: CadesSignaturePostSignedBytesRequest
|
|
1372
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1373
|
+
number provided, it will be total request
|
|
1374
|
+
timeout. It can also be a pair (tuple) of
|
|
1375
|
+
(connection, read) timeouts.
|
|
1376
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1377
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1378
|
+
request; this effectively ignores the
|
|
1379
|
+
authentication in the spec for a single request.
|
|
1380
|
+
:type _request_auth: dict, optional
|
|
1381
|
+
:param _content_type: force content-type for the request.
|
|
1382
|
+
:type _content_type: str, Optional
|
|
1383
|
+
:param _headers: set to override the headers for a single
|
|
1384
|
+
request; this effectively ignores the headers
|
|
1385
|
+
in the spec for a single request.
|
|
1386
|
+
:type _headers: dict, optional
|
|
1387
|
+
:param _host_index: set to override the host_index for a single
|
|
1388
|
+
request; this effectively ignores the host_index
|
|
1389
|
+
in the spec for a single request.
|
|
1390
|
+
:type _host_index: int, optional
|
|
1391
|
+
:return: Returns the result object.
|
|
1392
|
+
""" # noqa: E501
|
|
1393
|
+
|
|
1394
|
+
_param = self._api_cades_signatures_token_signed_bytes_post_serialize(
|
|
1395
|
+
token=token,
|
|
1396
|
+
cades_signature_post_signed_bytes_request=cades_signature_post_signed_bytes_request,
|
|
1397
|
+
_request_auth=_request_auth,
|
|
1398
|
+
_content_type=_content_type,
|
|
1399
|
+
_headers=_headers,
|
|
1400
|
+
_host_index=_host_index
|
|
1401
|
+
)
|
|
1402
|
+
|
|
1403
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1404
|
+
'200': "CadesSignaturePostSignedBytesResponse",
|
|
1405
|
+
'400': None,
|
|
1406
|
+
'401': None,
|
|
1407
|
+
'403': None,
|
|
1408
|
+
'422': None
|
|
1409
|
+
|
|
1410
|
+
}
|
|
1411
|
+
response_data = self.api_client.call_api(
|
|
1412
|
+
*_param,
|
|
1413
|
+
_request_timeout=_request_timeout
|
|
1414
|
+
)
|
|
1415
|
+
return response_data.response
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
def _api_cades_signatures_token_signed_bytes_post_serialize(
|
|
1419
|
+
self,
|
|
1420
|
+
token,
|
|
1421
|
+
cades_signature_post_signed_bytes_request,
|
|
1422
|
+
_request_auth,
|
|
1423
|
+
_content_type,
|
|
1424
|
+
_headers,
|
|
1425
|
+
_host_index,
|
|
1426
|
+
) -> Tuple:
|
|
1427
|
+
|
|
1428
|
+
_host = None
|
|
1429
|
+
|
|
1430
|
+
_collection_formats: Dict[str, str] = {
|
|
1431
|
+
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
_path_params: Dict[str, str] = {}
|
|
1435
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1436
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1437
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1438
|
+
_files: Dict[str, str] = {}
|
|
1439
|
+
_body_params: Optional[bytes] = None
|
|
1440
|
+
|
|
1441
|
+
# process the path parameters
|
|
1442
|
+
if token is not None:
|
|
1443
|
+
_path_params['token'] = token
|
|
1444
|
+
# process the query parameters
|
|
1445
|
+
# process the header parameters
|
|
1446
|
+
# process the form parameters
|
|
1447
|
+
# process the body parameter
|
|
1448
|
+
if cades_signature_post_signed_bytes_request is not None:
|
|
1449
|
+
_body_params = cades_signature_post_signed_bytes_request
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
# set the HTTP header `Accept`
|
|
1453
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1454
|
+
[
|
|
1455
|
+
'text/plain',
|
|
1456
|
+
'application/json',
|
|
1457
|
+
'text/json'
|
|
1458
|
+
]
|
|
1459
|
+
)
|
|
1460
|
+
|
|
1461
|
+
# set the HTTP header `Content-Type`
|
|
1462
|
+
if _content_type:
|
|
1463
|
+
_header_params['Content-Type'] = _content_type
|
|
1464
|
+
else:
|
|
1465
|
+
_default_content_type = (
|
|
1466
|
+
self.api_client.select_header_content_type(
|
|
1467
|
+
[
|
|
1468
|
+
'application/json-patch+json',
|
|
1469
|
+
'application/json',
|
|
1470
|
+
'text/json',
|
|
1471
|
+
'application/*+json'
|
|
1472
|
+
]
|
|
1473
|
+
)
|
|
1474
|
+
)
|
|
1475
|
+
if _default_content_type is not None:
|
|
1476
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1477
|
+
|
|
1478
|
+
# authentication setting
|
|
1479
|
+
_auth_settings: List[str] = [
|
|
1480
|
+
]
|
|
1481
|
+
|
|
1482
|
+
return self.api_client.param_serialize(
|
|
1483
|
+
method='POST',
|
|
1484
|
+
resource_path='/Api/CadesSignatures/{token}/SignedBytes',
|
|
1485
|
+
path_params=_path_params,
|
|
1486
|
+
query_params=_query_params,
|
|
1487
|
+
header_params=_header_params,
|
|
1488
|
+
body=_body_params,
|
|
1489
|
+
post_params=_form_params,
|
|
1490
|
+
files=_files,
|
|
1491
|
+
auth_settings=_auth_settings,
|
|
1492
|
+
collection_formats=_collection_formats,
|
|
1493
|
+
_host=_host,
|
|
1494
|
+
_request_auth=_request_auth
|
|
1495
|
+
)
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
@validate_call
|
|
1501
|
+
def api_v2_cades_signatures_post(
|
|
1502
|
+
self,
|
|
1503
|
+
cades_signature_post_request_v2: Optional[CadesSignaturePostRequestV2] = None,
|
|
1504
|
+
_request_timeout: Union[
|
|
1505
|
+
None,
|
|
1506
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1507
|
+
Tuple[
|
|
1508
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1509
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1510
|
+
]
|
|
1511
|
+
] = None,
|
|
1512
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1513
|
+
_content_type: Optional[StrictStr] = None,
|
|
1514
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1515
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1516
|
+
) -> CadesSignaturePostResponse:
|
|
1517
|
+
"""api_v2_cades_signatures_post
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
:param cades_signature_post_request_v2:
|
|
1521
|
+
:type cades_signature_post_request_v2: CadesSignaturePostRequestV2
|
|
1522
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1523
|
+
number provided, it will be total request
|
|
1524
|
+
timeout. It can also be a pair (tuple) of
|
|
1525
|
+
(connection, read) timeouts.
|
|
1526
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1527
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1528
|
+
request; this effectively ignores the
|
|
1529
|
+
authentication in the spec for a single request.
|
|
1530
|
+
:type _request_auth: dict, optional
|
|
1531
|
+
:param _content_type: force content-type for the request.
|
|
1532
|
+
:type _content_type: str, Optional
|
|
1533
|
+
:param _headers: set to override the headers for a single
|
|
1534
|
+
request; this effectively ignores the headers
|
|
1535
|
+
in the spec for a single request.
|
|
1536
|
+
:type _headers: dict, optional
|
|
1537
|
+
:param _host_index: set to override the host_index for a single
|
|
1538
|
+
request; this effectively ignores the host_index
|
|
1539
|
+
in the spec for a single request.
|
|
1540
|
+
:type _host_index: int, optional
|
|
1541
|
+
:return: Returns the result object.
|
|
1542
|
+
""" # noqa: E501
|
|
1543
|
+
|
|
1544
|
+
_param = self._api_v2_cades_signatures_post_serialize(
|
|
1545
|
+
cades_signature_post_request_v2=cades_signature_post_request_v2,
|
|
1546
|
+
_request_auth=_request_auth,
|
|
1547
|
+
_content_type=_content_type,
|
|
1548
|
+
_headers=_headers,
|
|
1549
|
+
_host_index=_host_index
|
|
1550
|
+
)
|
|
1551
|
+
|
|
1552
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1553
|
+
'201': "CadesSignaturePostResponse",
|
|
1554
|
+
'400': None,
|
|
1555
|
+
'401': None,
|
|
1556
|
+
'403': None,
|
|
1557
|
+
'422': None
|
|
1558
|
+
|
|
1559
|
+
}
|
|
1560
|
+
response_data = self.api_client.call_api(
|
|
1561
|
+
*_param,
|
|
1562
|
+
_request_timeout=_request_timeout
|
|
1563
|
+
)
|
|
1564
|
+
response_data.read()
|
|
1565
|
+
return self.api_client.response_deserialize(
|
|
1566
|
+
response_data=response_data,
|
|
1567
|
+
response_types_map=_response_types_map,
|
|
1568
|
+
).data
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
@validate_call
|
|
1572
|
+
def api_v2_cades_signatures_post_with_http_info(
|
|
1573
|
+
self,
|
|
1574
|
+
cades_signature_post_request_v2: Optional[CadesSignaturePostRequestV2] = None,
|
|
1575
|
+
_request_timeout: Union[
|
|
1576
|
+
None,
|
|
1577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1578
|
+
Tuple[
|
|
1579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1580
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1581
|
+
]
|
|
1582
|
+
] = None,
|
|
1583
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1584
|
+
_content_type: Optional[StrictStr] = None,
|
|
1585
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1586
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1587
|
+
) -> ApiResponse[CadesSignaturePostResponse]:
|
|
1588
|
+
"""api_v2_cades_signatures_post
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
:param cades_signature_post_request_v2:
|
|
1592
|
+
:type cades_signature_post_request_v2: CadesSignaturePostRequestV2
|
|
1593
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1594
|
+
number provided, it will be total request
|
|
1595
|
+
timeout. It can also be a pair (tuple) of
|
|
1596
|
+
(connection, read) timeouts.
|
|
1597
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1598
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1599
|
+
request; this effectively ignores the
|
|
1600
|
+
authentication in the spec for a single request.
|
|
1601
|
+
:type _request_auth: dict, optional
|
|
1602
|
+
:param _content_type: force content-type for the request.
|
|
1603
|
+
:type _content_type: str, Optional
|
|
1604
|
+
:param _headers: set to override the headers for a single
|
|
1605
|
+
request; this effectively ignores the headers
|
|
1606
|
+
in the spec for a single request.
|
|
1607
|
+
:type _headers: dict, optional
|
|
1608
|
+
:param _host_index: set to override the host_index for a single
|
|
1609
|
+
request; this effectively ignores the host_index
|
|
1610
|
+
in the spec for a single request.
|
|
1611
|
+
:type _host_index: int, optional
|
|
1612
|
+
:return: Returns the result object.
|
|
1613
|
+
""" # noqa: E501
|
|
1614
|
+
|
|
1615
|
+
_param = self._api_v2_cades_signatures_post_serialize(
|
|
1616
|
+
cades_signature_post_request_v2=cades_signature_post_request_v2,
|
|
1617
|
+
_request_auth=_request_auth,
|
|
1618
|
+
_content_type=_content_type,
|
|
1619
|
+
_headers=_headers,
|
|
1620
|
+
_host_index=_host_index
|
|
1621
|
+
)
|
|
1622
|
+
|
|
1623
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1624
|
+
'201': "CadesSignaturePostResponse",
|
|
1625
|
+
'400': None,
|
|
1626
|
+
'401': None,
|
|
1627
|
+
'403': None,
|
|
1628
|
+
'422': None
|
|
1629
|
+
|
|
1630
|
+
}
|
|
1631
|
+
response_data = self.api_client.call_api(
|
|
1632
|
+
*_param,
|
|
1633
|
+
_request_timeout=_request_timeout
|
|
1634
|
+
)
|
|
1635
|
+
response_data.read()
|
|
1636
|
+
return self.api_client.response_deserialize(
|
|
1637
|
+
response_data=response_data,
|
|
1638
|
+
response_types_map=_response_types_map,
|
|
1639
|
+
)
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
@validate_call
|
|
1643
|
+
def api_v2_cades_signatures_post_without_preload_content(
|
|
1644
|
+
self,
|
|
1645
|
+
cades_signature_post_request_v2: Optional[CadesSignaturePostRequestV2] = None,
|
|
1646
|
+
_request_timeout: Union[
|
|
1647
|
+
None,
|
|
1648
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1649
|
+
Tuple[
|
|
1650
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1651
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1652
|
+
]
|
|
1653
|
+
] = None,
|
|
1654
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1655
|
+
_content_type: Optional[StrictStr] = None,
|
|
1656
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1657
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1658
|
+
) -> RESTResponseType:
|
|
1659
|
+
"""api_v2_cades_signatures_post
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
:param cades_signature_post_request_v2:
|
|
1663
|
+
:type cades_signature_post_request_v2: CadesSignaturePostRequestV2
|
|
1664
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1665
|
+
number provided, it will be total request
|
|
1666
|
+
timeout. It can also be a pair (tuple) of
|
|
1667
|
+
(connection, read) timeouts.
|
|
1668
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1669
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1670
|
+
request; this effectively ignores the
|
|
1671
|
+
authentication in the spec for a single request.
|
|
1672
|
+
:type _request_auth: dict, optional
|
|
1673
|
+
:param _content_type: force content-type for the request.
|
|
1674
|
+
:type _content_type: str, Optional
|
|
1675
|
+
:param _headers: set to override the headers for a single
|
|
1676
|
+
request; this effectively ignores the headers
|
|
1677
|
+
in the spec for a single request.
|
|
1678
|
+
:type _headers: dict, optional
|
|
1679
|
+
:param _host_index: set to override the host_index for a single
|
|
1680
|
+
request; this effectively ignores the host_index
|
|
1681
|
+
in the spec for a single request.
|
|
1682
|
+
:type _host_index: int, optional
|
|
1683
|
+
:return: Returns the result object.
|
|
1684
|
+
""" # noqa: E501
|
|
1685
|
+
|
|
1686
|
+
_param = self._api_v2_cades_signatures_post_serialize(
|
|
1687
|
+
cades_signature_post_request_v2=cades_signature_post_request_v2,
|
|
1688
|
+
_request_auth=_request_auth,
|
|
1689
|
+
_content_type=_content_type,
|
|
1690
|
+
_headers=_headers,
|
|
1691
|
+
_host_index=_host_index
|
|
1692
|
+
)
|
|
1693
|
+
|
|
1694
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1695
|
+
'201': "CadesSignaturePostResponse",
|
|
1696
|
+
'400': None,
|
|
1697
|
+
'401': None,
|
|
1698
|
+
'403': None,
|
|
1699
|
+
'422': None
|
|
1700
|
+
|
|
1701
|
+
}
|
|
1702
|
+
response_data = self.api_client.call_api(
|
|
1703
|
+
*_param,
|
|
1704
|
+
_request_timeout=_request_timeout
|
|
1705
|
+
)
|
|
1706
|
+
return response_data.response
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
def _api_v2_cades_signatures_post_serialize(
|
|
1710
|
+
self,
|
|
1711
|
+
cades_signature_post_request_v2,
|
|
1712
|
+
_request_auth,
|
|
1713
|
+
_content_type,
|
|
1714
|
+
_headers,
|
|
1715
|
+
_host_index,
|
|
1716
|
+
) -> Tuple:
|
|
1717
|
+
|
|
1718
|
+
_host = None
|
|
1719
|
+
|
|
1720
|
+
_collection_formats: Dict[str, str] = {
|
|
1721
|
+
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
_path_params: Dict[str, str] = {}
|
|
1725
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1726
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1727
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1728
|
+
_files: Dict[str, str] = {}
|
|
1729
|
+
_body_params: Optional[bytes] = None
|
|
1730
|
+
|
|
1731
|
+
# process the path parameters
|
|
1732
|
+
# process the query parameters
|
|
1733
|
+
# process the header parameters
|
|
1734
|
+
# process the form parameters
|
|
1735
|
+
# process the body parameter
|
|
1736
|
+
if cades_signature_post_request_v2 is not None:
|
|
1737
|
+
_body_params = cades_signature_post_request_v2
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
# set the HTTP header `Accept`
|
|
1741
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1742
|
+
[
|
|
1743
|
+
'text/plain',
|
|
1744
|
+
'application/json',
|
|
1745
|
+
'text/json'
|
|
1746
|
+
]
|
|
1747
|
+
)
|
|
1748
|
+
|
|
1749
|
+
# set the HTTP header `Content-Type`
|
|
1750
|
+
if _content_type:
|
|
1751
|
+
_header_params['Content-Type'] = _content_type
|
|
1752
|
+
else:
|
|
1753
|
+
_default_content_type = (
|
|
1754
|
+
self.api_client.select_header_content_type(
|
|
1755
|
+
[
|
|
1756
|
+
'application/json-patch+json',
|
|
1757
|
+
'application/json',
|
|
1758
|
+
'text/json',
|
|
1759
|
+
'application/*+json'
|
|
1760
|
+
]
|
|
1761
|
+
)
|
|
1762
|
+
)
|
|
1763
|
+
if _default_content_type is not None:
|
|
1764
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1765
|
+
|
|
1766
|
+
# authentication setting
|
|
1767
|
+
_auth_settings: List[str] = [
|
|
1768
|
+
]
|
|
1769
|
+
|
|
1770
|
+
return self.api_client.param_serialize(
|
|
1771
|
+
method='POST',
|
|
1772
|
+
resource_path='/Api/v2/CadesSignatures',
|
|
1773
|
+
path_params=_path_params,
|
|
1774
|
+
query_params=_query_params,
|
|
1775
|
+
header_params=_header_params,
|
|
1776
|
+
body=_body_params,
|
|
1777
|
+
post_params=_form_params,
|
|
1778
|
+
files=_files,
|
|
1779
|
+
auth_settings=_auth_settings,
|
|
1780
|
+
collection_formats=_collection_formats,
|
|
1781
|
+
_host=_host,
|
|
1782
|
+
_request_auth=_request_auth
|
|
1783
|
+
)
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
@validate_call
|
|
1789
|
+
def api_v2_cades_signatures_token_signed_bytes_post(
|
|
1790
|
+
self,
|
|
1791
|
+
token: StrictStr,
|
|
1792
|
+
complete_signature_request: Optional[CompleteSignatureRequest] = None,
|
|
1793
|
+
_request_timeout: Union[
|
|
1794
|
+
None,
|
|
1795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1796
|
+
Tuple[
|
|
1797
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1798
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1799
|
+
]
|
|
1800
|
+
] = None,
|
|
1801
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1802
|
+
_content_type: Optional[StrictStr] = None,
|
|
1803
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1804
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1805
|
+
) -> SignatureResultModel:
|
|
1806
|
+
"""api_v2_cades_signatures_token_signed_bytes_post
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
:param token: (required)
|
|
1810
|
+
:type token: str
|
|
1811
|
+
:param complete_signature_request:
|
|
1812
|
+
:type complete_signature_request: CompleteSignatureRequest
|
|
1813
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1814
|
+
number provided, it will be total request
|
|
1815
|
+
timeout. It can also be a pair (tuple) of
|
|
1816
|
+
(connection, read) timeouts.
|
|
1817
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1818
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1819
|
+
request; this effectively ignores the
|
|
1820
|
+
authentication in the spec for a single request.
|
|
1821
|
+
:type _request_auth: dict, optional
|
|
1822
|
+
:param _content_type: force content-type for the request.
|
|
1823
|
+
:type _content_type: str, Optional
|
|
1824
|
+
:param _headers: set to override the headers for a single
|
|
1825
|
+
request; this effectively ignores the headers
|
|
1826
|
+
in the spec for a single request.
|
|
1827
|
+
:type _headers: dict, optional
|
|
1828
|
+
:param _host_index: set to override the host_index for a single
|
|
1829
|
+
request; this effectively ignores the host_index
|
|
1830
|
+
in the spec for a single request.
|
|
1831
|
+
:type _host_index: int, optional
|
|
1832
|
+
:return: Returns the result object.
|
|
1833
|
+
""" # noqa: E501
|
|
1834
|
+
|
|
1835
|
+
_param = self._api_v2_cades_signatures_token_signed_bytes_post_serialize(
|
|
1836
|
+
token=token,
|
|
1837
|
+
complete_signature_request=complete_signature_request,
|
|
1838
|
+
_request_auth=_request_auth,
|
|
1839
|
+
_content_type=_content_type,
|
|
1840
|
+
_headers=_headers,
|
|
1841
|
+
_host_index=_host_index
|
|
1842
|
+
)
|
|
1843
|
+
|
|
1844
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1845
|
+
'200': "SignatureResultModel",
|
|
1846
|
+
'400': None,
|
|
1847
|
+
'401': None,
|
|
1848
|
+
'403': None,
|
|
1849
|
+
'422': None
|
|
1850
|
+
|
|
1851
|
+
}
|
|
1852
|
+
response_data = self.api_client.call_api(
|
|
1853
|
+
*_param,
|
|
1854
|
+
_request_timeout=_request_timeout
|
|
1855
|
+
)
|
|
1856
|
+
response_data.read()
|
|
1857
|
+
return self.api_client.response_deserialize(
|
|
1858
|
+
response_data=response_data,
|
|
1859
|
+
response_types_map=_response_types_map,
|
|
1860
|
+
).data
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
@validate_call
|
|
1864
|
+
def api_v2_cades_signatures_token_signed_bytes_post_with_http_info(
|
|
1865
|
+
self,
|
|
1866
|
+
token: StrictStr,
|
|
1867
|
+
complete_signature_request: Optional[CompleteSignatureRequest] = None,
|
|
1868
|
+
_request_timeout: Union[
|
|
1869
|
+
None,
|
|
1870
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1871
|
+
Tuple[
|
|
1872
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1873
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1874
|
+
]
|
|
1875
|
+
] = None,
|
|
1876
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1877
|
+
_content_type: Optional[StrictStr] = None,
|
|
1878
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1879
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1880
|
+
) -> ApiResponse[SignatureResultModel]:
|
|
1881
|
+
"""api_v2_cades_signatures_token_signed_bytes_post
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
:param token: (required)
|
|
1885
|
+
:type token: str
|
|
1886
|
+
:param complete_signature_request:
|
|
1887
|
+
:type complete_signature_request: CompleteSignatureRequest
|
|
1888
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1889
|
+
number provided, it will be total request
|
|
1890
|
+
timeout. It can also be a pair (tuple) of
|
|
1891
|
+
(connection, read) timeouts.
|
|
1892
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1893
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1894
|
+
request; this effectively ignores the
|
|
1895
|
+
authentication in the spec for a single request.
|
|
1896
|
+
:type _request_auth: dict, optional
|
|
1897
|
+
:param _content_type: force content-type for the request.
|
|
1898
|
+
:type _content_type: str, Optional
|
|
1899
|
+
:param _headers: set to override the headers for a single
|
|
1900
|
+
request; this effectively ignores the headers
|
|
1901
|
+
in the spec for a single request.
|
|
1902
|
+
:type _headers: dict, optional
|
|
1903
|
+
:param _host_index: set to override the host_index for a single
|
|
1904
|
+
request; this effectively ignores the host_index
|
|
1905
|
+
in the spec for a single request.
|
|
1906
|
+
:type _host_index: int, optional
|
|
1907
|
+
:return: Returns the result object.
|
|
1908
|
+
""" # noqa: E501
|
|
1909
|
+
|
|
1910
|
+
_param = self._api_v2_cades_signatures_token_signed_bytes_post_serialize(
|
|
1911
|
+
token=token,
|
|
1912
|
+
complete_signature_request=complete_signature_request,
|
|
1913
|
+
_request_auth=_request_auth,
|
|
1914
|
+
_content_type=_content_type,
|
|
1915
|
+
_headers=_headers,
|
|
1916
|
+
_host_index=_host_index
|
|
1917
|
+
)
|
|
1918
|
+
|
|
1919
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1920
|
+
'200': "SignatureResultModel",
|
|
1921
|
+
'400': None,
|
|
1922
|
+
'401': None,
|
|
1923
|
+
'403': None,
|
|
1924
|
+
'422': None
|
|
1925
|
+
|
|
1926
|
+
}
|
|
1927
|
+
response_data = self.api_client.call_api(
|
|
1928
|
+
*_param,
|
|
1929
|
+
_request_timeout=_request_timeout
|
|
1930
|
+
)
|
|
1931
|
+
response_data.read()
|
|
1932
|
+
return self.api_client.response_deserialize(
|
|
1933
|
+
response_data=response_data,
|
|
1934
|
+
response_types_map=_response_types_map,
|
|
1935
|
+
)
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
@validate_call
|
|
1939
|
+
def api_v2_cades_signatures_token_signed_bytes_post_without_preload_content(
|
|
1940
|
+
self,
|
|
1941
|
+
token: StrictStr,
|
|
1942
|
+
complete_signature_request: Optional[CompleteSignatureRequest] = None,
|
|
1943
|
+
_request_timeout: Union[
|
|
1944
|
+
None,
|
|
1945
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1946
|
+
Tuple[
|
|
1947
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1948
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1949
|
+
]
|
|
1950
|
+
] = None,
|
|
1951
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1952
|
+
_content_type: Optional[StrictStr] = None,
|
|
1953
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1954
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1955
|
+
) -> RESTResponseType:
|
|
1956
|
+
"""api_v2_cades_signatures_token_signed_bytes_post
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
:param token: (required)
|
|
1960
|
+
:type token: str
|
|
1961
|
+
:param complete_signature_request:
|
|
1962
|
+
:type complete_signature_request: CompleteSignatureRequest
|
|
1963
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1964
|
+
number provided, it will be total request
|
|
1965
|
+
timeout. It can also be a pair (tuple) of
|
|
1966
|
+
(connection, read) timeouts.
|
|
1967
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1968
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1969
|
+
request; this effectively ignores the
|
|
1970
|
+
authentication in the spec for a single request.
|
|
1971
|
+
:type _request_auth: dict, optional
|
|
1972
|
+
:param _content_type: force content-type for the request.
|
|
1973
|
+
:type _content_type: str, Optional
|
|
1974
|
+
:param _headers: set to override the headers for a single
|
|
1975
|
+
request; this effectively ignores the headers
|
|
1976
|
+
in the spec for a single request.
|
|
1977
|
+
:type _headers: dict, optional
|
|
1978
|
+
:param _host_index: set to override the host_index for a single
|
|
1979
|
+
request; this effectively ignores the host_index
|
|
1980
|
+
in the spec for a single request.
|
|
1981
|
+
:type _host_index: int, optional
|
|
1982
|
+
:return: Returns the result object.
|
|
1983
|
+
""" # noqa: E501
|
|
1984
|
+
|
|
1985
|
+
_param = self._api_v2_cades_signatures_token_signed_bytes_post_serialize(
|
|
1986
|
+
token=token,
|
|
1987
|
+
complete_signature_request=complete_signature_request,
|
|
1988
|
+
_request_auth=_request_auth,
|
|
1989
|
+
_content_type=_content_type,
|
|
1990
|
+
_headers=_headers,
|
|
1991
|
+
_host_index=_host_index
|
|
1992
|
+
)
|
|
1993
|
+
|
|
1994
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1995
|
+
'200': "SignatureResultModel",
|
|
1996
|
+
'400': None,
|
|
1997
|
+
'401': None,
|
|
1998
|
+
'403': None,
|
|
1999
|
+
'422': None
|
|
2000
|
+
|
|
2001
|
+
}
|
|
2002
|
+
response_data = self.api_client.call_api(
|
|
2003
|
+
*_param,
|
|
2004
|
+
_request_timeout=_request_timeout
|
|
2005
|
+
)
|
|
2006
|
+
return response_data.response
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
def _api_v2_cades_signatures_token_signed_bytes_post_serialize(
|
|
2010
|
+
self,
|
|
2011
|
+
token,
|
|
2012
|
+
complete_signature_request,
|
|
2013
|
+
_request_auth,
|
|
2014
|
+
_content_type,
|
|
2015
|
+
_headers,
|
|
2016
|
+
_host_index,
|
|
2017
|
+
) -> Tuple:
|
|
2018
|
+
|
|
2019
|
+
_host = None
|
|
2020
|
+
|
|
2021
|
+
_collection_formats: Dict[str, str] = {
|
|
2022
|
+
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
_path_params: Dict[str, str] = {}
|
|
2026
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2027
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2028
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2029
|
+
_files: Dict[str, str] = {}
|
|
2030
|
+
_body_params: Optional[bytes] = None
|
|
2031
|
+
|
|
2032
|
+
# process the path parameters
|
|
2033
|
+
if token is not None:
|
|
2034
|
+
_path_params['token'] = token
|
|
2035
|
+
# process the query parameters
|
|
2036
|
+
# process the header parameters
|
|
2037
|
+
# process the form parameters
|
|
2038
|
+
# process the body parameter
|
|
2039
|
+
if complete_signature_request is not None:
|
|
2040
|
+
_body_params = complete_signature_request
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
# set the HTTP header `Accept`
|
|
2044
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2045
|
+
[
|
|
2046
|
+
'text/plain',
|
|
2047
|
+
'application/json',
|
|
2048
|
+
'text/json'
|
|
2049
|
+
]
|
|
2050
|
+
)
|
|
2051
|
+
|
|
2052
|
+
# set the HTTP header `Content-Type`
|
|
2053
|
+
if _content_type:
|
|
2054
|
+
_header_params['Content-Type'] = _content_type
|
|
2055
|
+
else:
|
|
2056
|
+
_default_content_type = (
|
|
2057
|
+
self.api_client.select_header_content_type(
|
|
2058
|
+
[
|
|
2059
|
+
'application/json-patch+json',
|
|
2060
|
+
'application/json',
|
|
2061
|
+
'text/json',
|
|
2062
|
+
'application/*+json'
|
|
2063
|
+
]
|
|
2064
|
+
)
|
|
2065
|
+
)
|
|
2066
|
+
if _default_content_type is not None:
|
|
2067
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2068
|
+
|
|
2069
|
+
# authentication setting
|
|
2070
|
+
_auth_settings: List[str] = [
|
|
2071
|
+
]
|
|
2072
|
+
|
|
2073
|
+
return self.api_client.param_serialize(
|
|
2074
|
+
method='POST',
|
|
2075
|
+
resource_path='/Api/v2/CadesSignatures/{token}/SignedBytes',
|
|
2076
|
+
path_params=_path_params,
|
|
2077
|
+
query_params=_query_params,
|
|
2078
|
+
header_params=_header_params,
|
|
2079
|
+
body=_body_params,
|
|
2080
|
+
post_params=_form_params,
|
|
2081
|
+
files=_files,
|
|
2082
|
+
auth_settings=_auth_settings,
|
|
2083
|
+
collection_formats=_collection_formats,
|
|
2084
|
+
_host=_host,
|
|
2085
|
+
_request_auth=_request_auth
|
|
2086
|
+
)
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
@validate_call
|
|
2092
|
+
def api_v3_cades_signatures_post(
|
|
2093
|
+
self,
|
|
2094
|
+
cades_signature_post_request_v3: Optional[CadesSignaturePostRequestV3] = None,
|
|
2095
|
+
_request_timeout: Union[
|
|
2096
|
+
None,
|
|
2097
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2098
|
+
Tuple[
|
|
2099
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2100
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2101
|
+
]
|
|
2102
|
+
] = None,
|
|
2103
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2104
|
+
_content_type: Optional[StrictStr] = None,
|
|
2105
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2106
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2107
|
+
) -> CadesSignaturePostResponse:
|
|
2108
|
+
"""api_v3_cades_signatures_post
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
:param cades_signature_post_request_v3:
|
|
2112
|
+
:type cades_signature_post_request_v3: CadesSignaturePostRequestV3
|
|
2113
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2114
|
+
number provided, it will be total request
|
|
2115
|
+
timeout. It can also be a pair (tuple) of
|
|
2116
|
+
(connection, read) timeouts.
|
|
2117
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2118
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2119
|
+
request; this effectively ignores the
|
|
2120
|
+
authentication in the spec for a single request.
|
|
2121
|
+
:type _request_auth: dict, optional
|
|
2122
|
+
:param _content_type: force content-type for the request.
|
|
2123
|
+
:type _content_type: str, Optional
|
|
2124
|
+
:param _headers: set to override the headers for a single
|
|
2125
|
+
request; this effectively ignores the headers
|
|
2126
|
+
in the spec for a single request.
|
|
2127
|
+
:type _headers: dict, optional
|
|
2128
|
+
:param _host_index: set to override the host_index for a single
|
|
2129
|
+
request; this effectively ignores the host_index
|
|
2130
|
+
in the spec for a single request.
|
|
2131
|
+
:type _host_index: int, optional
|
|
2132
|
+
:return: Returns the result object.
|
|
2133
|
+
""" # noqa: E501
|
|
2134
|
+
|
|
2135
|
+
_param = self._api_v3_cades_signatures_post_serialize(
|
|
2136
|
+
cades_signature_post_request_v3=cades_signature_post_request_v3,
|
|
2137
|
+
_request_auth=_request_auth,
|
|
2138
|
+
_content_type=_content_type,
|
|
2139
|
+
_headers=_headers,
|
|
2140
|
+
_host_index=_host_index
|
|
2141
|
+
)
|
|
2142
|
+
|
|
2143
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2144
|
+
'201': "CadesSignaturePostResponse",
|
|
2145
|
+
'400': None,
|
|
2146
|
+
'401': None,
|
|
2147
|
+
'403': None,
|
|
2148
|
+
'422': None
|
|
2149
|
+
|
|
2150
|
+
}
|
|
2151
|
+
response_data = self.api_client.call_api(
|
|
2152
|
+
*_param,
|
|
2153
|
+
_request_timeout=_request_timeout
|
|
2154
|
+
)
|
|
2155
|
+
response_data.read()
|
|
2156
|
+
return self.api_client.response_deserialize(
|
|
2157
|
+
response_data=response_data,
|
|
2158
|
+
response_types_map=_response_types_map,
|
|
2159
|
+
).data
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
@validate_call
|
|
2163
|
+
def api_v3_cades_signatures_post_with_http_info(
|
|
2164
|
+
self,
|
|
2165
|
+
cades_signature_post_request_v3: Optional[CadesSignaturePostRequestV3] = None,
|
|
2166
|
+
_request_timeout: Union[
|
|
2167
|
+
None,
|
|
2168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2169
|
+
Tuple[
|
|
2170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2171
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2172
|
+
]
|
|
2173
|
+
] = None,
|
|
2174
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2175
|
+
_content_type: Optional[StrictStr] = None,
|
|
2176
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2177
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2178
|
+
) -> ApiResponse[CadesSignaturePostResponse]:
|
|
2179
|
+
"""api_v3_cades_signatures_post
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
:param cades_signature_post_request_v3:
|
|
2183
|
+
:type cades_signature_post_request_v3: CadesSignaturePostRequestV3
|
|
2184
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2185
|
+
number provided, it will be total request
|
|
2186
|
+
timeout. It can also be a pair (tuple) of
|
|
2187
|
+
(connection, read) timeouts.
|
|
2188
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2189
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2190
|
+
request; this effectively ignores the
|
|
2191
|
+
authentication in the spec for a single request.
|
|
2192
|
+
:type _request_auth: dict, optional
|
|
2193
|
+
:param _content_type: force content-type for the request.
|
|
2194
|
+
:type _content_type: str, Optional
|
|
2195
|
+
:param _headers: set to override the headers for a single
|
|
2196
|
+
request; this effectively ignores the headers
|
|
2197
|
+
in the spec for a single request.
|
|
2198
|
+
:type _headers: dict, optional
|
|
2199
|
+
:param _host_index: set to override the host_index for a single
|
|
2200
|
+
request; this effectively ignores the host_index
|
|
2201
|
+
in the spec for a single request.
|
|
2202
|
+
:type _host_index: int, optional
|
|
2203
|
+
:return: Returns the result object.
|
|
2204
|
+
""" # noqa: E501
|
|
2205
|
+
|
|
2206
|
+
_param = self._api_v3_cades_signatures_post_serialize(
|
|
2207
|
+
cades_signature_post_request_v3=cades_signature_post_request_v3,
|
|
2208
|
+
_request_auth=_request_auth,
|
|
2209
|
+
_content_type=_content_type,
|
|
2210
|
+
_headers=_headers,
|
|
2211
|
+
_host_index=_host_index
|
|
2212
|
+
)
|
|
2213
|
+
|
|
2214
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2215
|
+
'201': "CadesSignaturePostResponse",
|
|
2216
|
+
'400': None,
|
|
2217
|
+
'401': None,
|
|
2218
|
+
'403': None,
|
|
2219
|
+
'422': None
|
|
2220
|
+
|
|
2221
|
+
}
|
|
2222
|
+
response_data = self.api_client.call_api(
|
|
2223
|
+
*_param,
|
|
2224
|
+
_request_timeout=_request_timeout
|
|
2225
|
+
)
|
|
2226
|
+
response_data.read()
|
|
2227
|
+
return self.api_client.response_deserialize(
|
|
2228
|
+
response_data=response_data,
|
|
2229
|
+
response_types_map=_response_types_map,
|
|
2230
|
+
)
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
@validate_call
|
|
2234
|
+
def api_v3_cades_signatures_post_without_preload_content(
|
|
2235
|
+
self,
|
|
2236
|
+
cades_signature_post_request_v3: Optional[CadesSignaturePostRequestV3] = None,
|
|
2237
|
+
_request_timeout: Union[
|
|
2238
|
+
None,
|
|
2239
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2240
|
+
Tuple[
|
|
2241
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2242
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2243
|
+
]
|
|
2244
|
+
] = None,
|
|
2245
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2246
|
+
_content_type: Optional[StrictStr] = None,
|
|
2247
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2248
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2249
|
+
) -> RESTResponseType:
|
|
2250
|
+
"""api_v3_cades_signatures_post
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
:param cades_signature_post_request_v3:
|
|
2254
|
+
:type cades_signature_post_request_v3: CadesSignaturePostRequestV3
|
|
2255
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2256
|
+
number provided, it will be total request
|
|
2257
|
+
timeout. It can also be a pair (tuple) of
|
|
2258
|
+
(connection, read) timeouts.
|
|
2259
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2260
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2261
|
+
request; this effectively ignores the
|
|
2262
|
+
authentication in the spec for a single request.
|
|
2263
|
+
:type _request_auth: dict, optional
|
|
2264
|
+
:param _content_type: force content-type for the request.
|
|
2265
|
+
:type _content_type: str, Optional
|
|
2266
|
+
:param _headers: set to override the headers for a single
|
|
2267
|
+
request; this effectively ignores the headers
|
|
2268
|
+
in the spec for a single request.
|
|
2269
|
+
:type _headers: dict, optional
|
|
2270
|
+
:param _host_index: set to override the host_index for a single
|
|
2271
|
+
request; this effectively ignores the host_index
|
|
2272
|
+
in the spec for a single request.
|
|
2273
|
+
:type _host_index: int, optional
|
|
2274
|
+
:return: Returns the result object.
|
|
2275
|
+
""" # noqa: E501
|
|
2276
|
+
|
|
2277
|
+
_param = self._api_v3_cades_signatures_post_serialize(
|
|
2278
|
+
cades_signature_post_request_v3=cades_signature_post_request_v3,
|
|
2279
|
+
_request_auth=_request_auth,
|
|
2280
|
+
_content_type=_content_type,
|
|
2281
|
+
_headers=_headers,
|
|
2282
|
+
_host_index=_host_index
|
|
2283
|
+
)
|
|
2284
|
+
|
|
2285
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2286
|
+
'201': "CadesSignaturePostResponse",
|
|
2287
|
+
'400': None,
|
|
2288
|
+
'401': None,
|
|
2289
|
+
'403': None,
|
|
2290
|
+
'422': None
|
|
2291
|
+
|
|
2292
|
+
}
|
|
2293
|
+
response_data = self.api_client.call_api(
|
|
2294
|
+
*_param,
|
|
2295
|
+
_request_timeout=_request_timeout
|
|
2296
|
+
)
|
|
2297
|
+
return response_data.response
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
def _api_v3_cades_signatures_post_serialize(
|
|
2301
|
+
self,
|
|
2302
|
+
cades_signature_post_request_v3,
|
|
2303
|
+
_request_auth,
|
|
2304
|
+
_content_type,
|
|
2305
|
+
_headers,
|
|
2306
|
+
_host_index,
|
|
2307
|
+
) -> Tuple:
|
|
2308
|
+
|
|
2309
|
+
_host = None
|
|
2310
|
+
|
|
2311
|
+
_collection_formats: Dict[str, str] = {
|
|
2312
|
+
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
_path_params: Dict[str, str] = {}
|
|
2316
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2317
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2318
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2319
|
+
_files: Dict[str, str] = {}
|
|
2320
|
+
_body_params: Optional[bytes] = None
|
|
2321
|
+
|
|
2322
|
+
# process the path parameters
|
|
2323
|
+
# process the query parameters
|
|
2324
|
+
# process the header parameters
|
|
2325
|
+
# process the form parameters
|
|
2326
|
+
# process the body parameter
|
|
2327
|
+
if cades_signature_post_request_v3 is not None:
|
|
2328
|
+
_body_params = cades_signature_post_request_v3
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
# set the HTTP header `Accept`
|
|
2332
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2333
|
+
[
|
|
2334
|
+
'text/plain',
|
|
2335
|
+
'application/json',
|
|
2336
|
+
'text/json'
|
|
2337
|
+
]
|
|
2338
|
+
)
|
|
2339
|
+
|
|
2340
|
+
# set the HTTP header `Content-Type`
|
|
2341
|
+
if _content_type:
|
|
2342
|
+
_header_params['Content-Type'] = _content_type
|
|
2343
|
+
else:
|
|
2344
|
+
_default_content_type = (
|
|
2345
|
+
self.api_client.select_header_content_type(
|
|
2346
|
+
[
|
|
2347
|
+
'application/json-patch+json',
|
|
2348
|
+
'application/json',
|
|
2349
|
+
'text/json',
|
|
2350
|
+
'application/*+json'
|
|
2351
|
+
]
|
|
2352
|
+
)
|
|
2353
|
+
)
|
|
2354
|
+
if _default_content_type is not None:
|
|
2355
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2356
|
+
|
|
2357
|
+
# authentication setting
|
|
2358
|
+
_auth_settings: List[str] = [
|
|
2359
|
+
]
|
|
2360
|
+
|
|
2361
|
+
return self.api_client.param_serialize(
|
|
2362
|
+
method='POST',
|
|
2363
|
+
resource_path='/Api/v3/CadesSignatures',
|
|
2364
|
+
path_params=_path_params,
|
|
2365
|
+
query_params=_query_params,
|
|
2366
|
+
header_params=_header_params,
|
|
2367
|
+
body=_body_params,
|
|
2368
|
+
post_params=_form_params,
|
|
2369
|
+
files=_files,
|
|
2370
|
+
auth_settings=_auth_settings,
|
|
2371
|
+
collection_formats=_collection_formats,
|
|
2372
|
+
_host=_host,
|
|
2373
|
+
_request_auth=_request_auth
|
|
2374
|
+
)
|
|
2375
|
+
|
|
2376
|
+
|