signwell-sdk-python 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. signwell_sdk/__init__.py +287 -0
  2. signwell_sdk/api/__init__.py +10 -0
  3. signwell_sdk/api/api_application_api.py +481 -0
  4. signwell_sdk/api/bulk_send_api.py +1589 -0
  5. signwell_sdk/api/document_api.py +2425 -0
  6. signwell_sdk/api/me_api.py +246 -0
  7. signwell_sdk/api/regional_api.py +345 -0
  8. signwell_sdk/api/template_api.py +1298 -0
  9. signwell_sdk/api/webhooks_api.py +710 -0
  10. signwell_sdk/api_client.py +747 -0
  11. signwell_sdk/api_response.py +20 -0
  12. signwell_sdk/configuration.py +599 -0
  13. signwell_sdk/embedded.py +385 -0
  14. signwell_sdk/exceptions.py +314 -0
  15. signwell_sdk/models/__init__.py +114 -0
  16. signwell_sdk/models/account_info_response.py +143 -0
  17. signwell_sdk/models/account_info_response_active_users_inner.py +107 -0
  18. signwell_sdk/models/account_info_response_preferences.py +147 -0
  19. signwell_sdk/models/additional_fields_inner_inner.py +274 -0
  20. signwell_sdk/models/additional_fields_inner_inner_value.py +189 -0
  21. signwell_sdk/models/additional_files_inner.py +103 -0
  22. signwell_sdk/models/api_application_response.py +137 -0
  23. signwell_sdk/models/api_application_response_owner.py +107 -0
  24. signwell_sdk/models/api_application_response_preferences.py +135 -0
  25. signwell_sdk/models/attachment_request_info.py +99 -0
  26. signwell_sdk/models/attachment_requests_inner.py +110 -0
  27. signwell_sdk/models/bulk_send_create_response.py +132 -0
  28. signwell_sdk/models/bulk_send_csv_request.py +100 -0
  29. signwell_sdk/models/bulk_send_csv_template_response.py +97 -0
  30. signwell_sdk/models/bulk_send_documents_response.py +167 -0
  31. signwell_sdk/models/bulk_send_list_item.py +141 -0
  32. signwell_sdk/models/bulk_send_list_response.py +138 -0
  33. signwell_sdk/models/bulk_send_response.py +151 -0
  34. signwell_sdk/models/bulk_send_response_templates_inner.py +98 -0
  35. signwell_sdk/models/bulk_send_validate_csv_response.py +129 -0
  36. signwell_sdk/models/checkbox_group_info.py +138 -0
  37. signwell_sdk/models/checkbox_groups_inner.py +136 -0
  38. signwell_sdk/models/checkbox_validation.py +35 -0
  39. signwell_sdk/models/completed_pdf_response.py +177 -0
  40. signwell_sdk/models/completed_pdf_url_response.py +97 -0
  41. signwell_sdk/models/copied_contact_info.py +99 -0
  42. signwell_sdk/models/copied_contacts_inner.py +98 -0
  43. signwell_sdk/models/copied_placeholders_inner.py +111 -0
  44. signwell_sdk/models/create_bulk_send_request.py +155 -0
  45. signwell_sdk/models/create_webhook_request.py +100 -0
  46. signwell_sdk/models/date_format.py +36 -0
  47. signwell_sdk/models/detailed_option.py +105 -0
  48. signwell_sdk/models/document_from_template_request.py +377 -0
  49. signwell_sdk/models/document_from_template_response.py +353 -0
  50. signwell_sdk/models/document_from_template_response_fields_inner_inner.py +270 -0
  51. signwell_sdk/models/document_from_template_response_fields_inner_inner_recipient.py +99 -0
  52. signwell_sdk/models/document_from_template_response_recipients_inner.py +206 -0
  53. signwell_sdk/models/document_list_response.py +138 -0
  54. signwell_sdk/models/document_request.py +350 -0
  55. signwell_sdk/models/document_response.py +357 -0
  56. signwell_sdk/models/document_response_attachment_requests_inner.py +101 -0
  57. signwell_sdk/models/document_response_fields_inner_inner.py +268 -0
  58. signwell_sdk/models/document_response_fields_inner_inner_options_inner.py +101 -0
  59. signwell_sdk/models/document_response_fields_inner_inner_recipient.py +98 -0
  60. signwell_sdk/models/document_response_fields_inner_inner_value.py +195 -0
  61. signwell_sdk/models/document_response_recipients_inner.py +208 -0
  62. signwell_sdk/models/document_template_list_response.py +138 -0
  63. signwell_sdk/models/document_template_request.py +307 -0
  64. signwell_sdk/models/document_template_response.py +323 -0
  65. signwell_sdk/models/document_template_response_copied_placeholders_inner.py +131 -0
  66. signwell_sdk/models/document_template_response_placeholders_inner.py +144 -0
  67. signwell_sdk/models/document_template_update_request.py +208 -0
  68. signwell_sdk/models/dropdown_option.py +153 -0
  69. signwell_sdk/models/error_response.py +107 -0
  70. signwell_sdk/models/error_response_meta.py +101 -0
  71. signwell_sdk/models/field_type.py +46 -0
  72. signwell_sdk/models/fields_inner_inner.py +268 -0
  73. signwell_sdk/models/file_format.py +33 -0
  74. signwell_sdk/models/file_info.py +98 -0
  75. signwell_sdk/models/files_inner.py +103 -0
  76. signwell_sdk/models/label_info.py +98 -0
  77. signwell_sdk/models/label_request.py +97 -0
  78. signwell_sdk/models/label_response.py +98 -0
  79. signwell_sdk/models/me_response.py +130 -0
  80. signwell_sdk/models/me_response_contact.py +147 -0
  81. signwell_sdk/models/me_response_user.py +117 -0
  82. signwell_sdk/models/me_response_user_preferences.py +105 -0
  83. signwell_sdk/models/nom151_certificate_response.py +107 -0
  84. signwell_sdk/models/nom151_certificate_response_nom151.py +125 -0
  85. signwell_sdk/models/nom151_url_response.py +97 -0
  86. signwell_sdk/models/pagination_meta.py +119 -0
  87. signwell_sdk/models/placeholders_inner.py +115 -0
  88. signwell_sdk/models/rate_limit_error_response.py +97 -0
  89. signwell_sdk/models/recipients_inner.py +141 -0
  90. signwell_sdk/models/reminder_recipients_inner.py +100 -0
  91. signwell_sdk/models/send_reminder_request.py +114 -0
  92. signwell_sdk/models/template_attachment_requests_inner.py +110 -0
  93. signwell_sdk/models/template_checkbox_groups_inner.py +136 -0
  94. signwell_sdk/models/template_field_values_inner.py +109 -0
  95. signwell_sdk/models/template_field_values_inner_value.py +189 -0
  96. signwell_sdk/models/template_fields_inner_inner.py +266 -0
  97. signwell_sdk/models/template_recipients_inner.py +146 -0
  98. signwell_sdk/models/text_validation.py +42 -0
  99. signwell_sdk/models/update_document_and_send_request.py +234 -0
  100. signwell_sdk/models/update_recipients_map_inner.py +118 -0
  101. signwell_sdk/models/update_recipients_request.py +111 -0
  102. signwell_sdk/models/validation_error_response.py +99 -0
  103. signwell_sdk/models/webhook_response.py +110 -0
  104. signwell_sdk/py.typed +0 -0
  105. signwell_sdk/rest.py +209 -0
  106. signwell_sdk/webhook.py +214 -0
  107. signwell_sdk_python-0.1.0.dist-info/METADATA +177 -0
  108. signwell_sdk_python-0.1.0.dist-info/RECORD +110 -0
  109. signwell_sdk_python-0.1.0.dist-info/WHEEL +4 -0
  110. signwell_sdk_python-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,481 @@
1
+ """
2
+ SignWell Developer API
3
+
4
+ API for creating, managing, and tracking electronic signature workflows.
5
+
6
+ The version of the OpenAPI document: v1
7
+ Contact: support@signwell.com
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+ from __future__ import annotations
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+ from signwell_sdk.models.api_application_response import ApiApplicationResponse
20
+ from signwell_sdk.api_client import ApiClient, RequestSerialized
21
+ from signwell_sdk.api_response import ApiResponse
22
+ from signwell_sdk.rest import RESTResponseType
23
+
24
+
25
+ class ApiApplicationApi:
26
+ """NOTE: This class is auto generated by OpenAPI Generator
27
+ Ref: https://openapi-generator.tech
28
+
29
+ Do not edit the class manually.
30
+ """
31
+
32
+ def __init__(self, api_client=None) -> None:
33
+ if api_client is None:
34
+ api_client = ApiClient.get_default()
35
+ self.api_client = api_client
36
+
37
+ @validate_call
38
+ def delete_api_application(
39
+ self,
40
+ id: StrictStr,
41
+ _request_timeout: Union[
42
+ None,
43
+ Annotated[StrictFloat, Field(gt=0)],
44
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
45
+ ] = None,
46
+ _request_auth: Dict[StrictStr, Any] | None = None,
47
+ _content_type: StrictStr | None = None,
48
+ _headers: Dict[StrictStr, Any] | None = None,
49
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
50
+ ) -> None:
51
+ """Delete API Application
52
+
53
+ Deletes an API Application from an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page
54
+
55
+ :param id: (required)
56
+ :type id: str
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :type _request_timeout: int, tuple(int, int), optional
62
+ :param _request_auth: set to override the auth_settings for an a single
63
+ request; this effectively ignores the
64
+ authentication in the spec for a single request.
65
+ :type _request_auth: dict, optional
66
+ :param _content_type: force content-type for the request.
67
+ :type _content_type: str, Optional
68
+ :param _headers: set to override the headers for a single
69
+ request; this effectively ignores the headers
70
+ in the spec for a single request.
71
+ :type _headers: dict, optional
72
+ :param _host_index: set to override the host_index for a single
73
+ request; this effectively ignores the host_index
74
+ in the spec for a single request.
75
+ :type _host_index: int, optional
76
+ :return: Returns the result object.
77
+ """ # noqa: E501
78
+
79
+ _param = self._delete_api_application_serialize(
80
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
81
+ )
82
+
83
+ _response_types_map: Dict[str, str | None] = {
84
+ "204": None,
85
+ "404": "ErrorResponse",
86
+ "429": "RateLimitErrorResponse",
87
+ }
88
+
89
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
90
+ response_data.read()
91
+ return self.api_client.response_deserialize(
92
+ response_data=response_data,
93
+ response_types_map=_response_types_map,
94
+ ).data
95
+
96
+ @validate_call
97
+ def delete_api_application_with_http_info(
98
+ self,
99
+ id: StrictStr,
100
+ _request_timeout: Union[
101
+ None,
102
+ Annotated[StrictFloat, Field(gt=0)],
103
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
104
+ ] = None,
105
+ _request_auth: Dict[StrictStr, Any] | None = None,
106
+ _content_type: StrictStr | None = None,
107
+ _headers: Dict[StrictStr, Any] | None = None,
108
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
109
+ ) -> ApiResponse[None]:
110
+ """Delete API Application
111
+
112
+ Deletes an API Application from an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page
113
+
114
+ :param id: (required)
115
+ :type id: str
116
+ :param _request_timeout: timeout setting for this request. If one
117
+ number provided, it will be total request
118
+ timeout. It can also be a pair (tuple) of
119
+ (connection, read) timeouts.
120
+ :type _request_timeout: int, tuple(int, int), optional
121
+ :param _request_auth: set to override the auth_settings for an a single
122
+ request; this effectively ignores the
123
+ authentication in the spec for a single request.
124
+ :type _request_auth: dict, optional
125
+ :param _content_type: force content-type for the request.
126
+ :type _content_type: str, Optional
127
+ :param _headers: set to override the headers for a single
128
+ request; this effectively ignores the headers
129
+ in the spec for a single request.
130
+ :type _headers: dict, optional
131
+ :param _host_index: set to override the host_index for a single
132
+ request; this effectively ignores the host_index
133
+ in the spec for a single request.
134
+ :type _host_index: int, optional
135
+ :return: Returns the result object.
136
+ """ # noqa: E501
137
+
138
+ _param = self._delete_api_application_serialize(
139
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
140
+ )
141
+
142
+ _response_types_map: Dict[str, str | None] = {
143
+ "204": None,
144
+ "404": "ErrorResponse",
145
+ "429": "RateLimitErrorResponse",
146
+ }
147
+
148
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
149
+ response_data.read()
150
+ return self.api_client.response_deserialize(
151
+ response_data=response_data,
152
+ response_types_map=_response_types_map,
153
+ )
154
+
155
+ @validate_call
156
+ def delete_api_application_without_preload_content(
157
+ self,
158
+ id: StrictStr,
159
+ _request_timeout: Union[
160
+ None,
161
+ Annotated[StrictFloat, Field(gt=0)],
162
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
163
+ ] = None,
164
+ _request_auth: Dict[StrictStr, Any] | None = None,
165
+ _content_type: StrictStr | None = None,
166
+ _headers: Dict[StrictStr, Any] | None = None,
167
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
168
+ ) -> RESTResponseType:
169
+ """Delete API Application
170
+
171
+ Deletes an API Application from an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page
172
+
173
+ :param id: (required)
174
+ :type id: str
175
+ :param _request_timeout: timeout setting for this request. If one
176
+ number provided, it will be total request
177
+ timeout. It can also be a pair (tuple) of
178
+ (connection, read) timeouts.
179
+ :type _request_timeout: int, tuple(int, int), optional
180
+ :param _request_auth: set to override the auth_settings for an a single
181
+ request; this effectively ignores the
182
+ authentication in the spec for a single request.
183
+ :type _request_auth: dict, optional
184
+ :param _content_type: force content-type for the request.
185
+ :type _content_type: str, Optional
186
+ :param _headers: set to override the headers for a single
187
+ request; this effectively ignores the headers
188
+ in the spec for a single request.
189
+ :type _headers: dict, optional
190
+ :param _host_index: set to override the host_index for a single
191
+ request; this effectively ignores the host_index
192
+ in the spec for a single request.
193
+ :type _host_index: int, optional
194
+ :return: Returns the result object.
195
+ """ # noqa: E501
196
+
197
+ _param = self._delete_api_application_serialize(
198
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
199
+ )
200
+
201
+ _response_types_map: Dict[str, str | None] = {
202
+ "204": None,
203
+ "404": "ErrorResponse",
204
+ "429": "RateLimitErrorResponse",
205
+ }
206
+
207
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
208
+ return response_data.response
209
+
210
+ def _delete_api_application_serialize(
211
+ self,
212
+ id,
213
+ _request_auth,
214
+ _content_type,
215
+ _headers,
216
+ _host_index,
217
+ ) -> RequestSerialized:
218
+
219
+ _host = None
220
+
221
+ _collection_formats: Dict[str, str] = {}
222
+
223
+ _path_params: Dict[str, str] = {}
224
+ _query_params: List[Tuple[str, str]] = []
225
+ _header_params: Dict[str, str | None] = _headers or {}
226
+ _form_params: List[Tuple[str, str]] = []
227
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
228
+ _body_params: bytes | None = None
229
+
230
+ # process the path parameters
231
+ if id is not None:
232
+ _path_params["id"] = id
233
+ # process the query parameters
234
+ # process the header parameters
235
+ # process the form parameters
236
+ # process the body parameter
237
+
238
+ # set the HTTP header `Accept`
239
+ if "Accept" not in _header_params:
240
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
241
+
242
+ # authentication setting
243
+ _auth_settings: List[str] = ["api_key"]
244
+
245
+ return self.api_client.param_serialize(
246
+ method="DELETE",
247
+ resource_path="/api/v1/api_applications/{id}",
248
+ path_params=_path_params,
249
+ query_params=_query_params,
250
+ header_params=_header_params,
251
+ body=_body_params,
252
+ post_params=_form_params,
253
+ files=_files,
254
+ auth_settings=_auth_settings,
255
+ collection_formats=_collection_formats,
256
+ _host=_host,
257
+ _request_auth=_request_auth,
258
+ )
259
+
260
+ @validate_call
261
+ def get_api_application(
262
+ self,
263
+ id: StrictStr,
264
+ _request_timeout: Union[
265
+ None,
266
+ Annotated[StrictFloat, Field(gt=0)],
267
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
268
+ ] = None,
269
+ _request_auth: Dict[StrictStr, Any] | None = None,
270
+ _content_type: StrictStr | None = None,
271
+ _headers: Dict[StrictStr, Any] | None = None,
272
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
273
+ ) -> ApiApplicationResponse:
274
+ """Get API Application
275
+
276
+ Gets the details of a specific API Application within an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page.
277
+
278
+ :param id: (required)
279
+ :type id: str
280
+ :param _request_timeout: timeout setting for this request. If one
281
+ number provided, it will be total request
282
+ timeout. It can also be a pair (tuple) of
283
+ (connection, read) timeouts.
284
+ :type _request_timeout: int, tuple(int, int), optional
285
+ :param _request_auth: set to override the auth_settings for an a single
286
+ request; this effectively ignores the
287
+ authentication in the spec for a single request.
288
+ :type _request_auth: dict, optional
289
+ :param _content_type: force content-type for the request.
290
+ :type _content_type: str, Optional
291
+ :param _headers: set to override the headers for a single
292
+ request; this effectively ignores the headers
293
+ in the spec for a single request.
294
+ :type _headers: dict, optional
295
+ :param _host_index: set to override the host_index for a single
296
+ request; this effectively ignores the host_index
297
+ in the spec for a single request.
298
+ :type _host_index: int, optional
299
+ :return: Returns the result object.
300
+ """ # noqa: E501
301
+
302
+ _param = self._get_api_application_serialize(
303
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
304
+ )
305
+
306
+ _response_types_map: Dict[str, str | None] = {
307
+ "200": "ApiApplicationResponse",
308
+ "404": "ErrorResponse",
309
+ "429": "RateLimitErrorResponse",
310
+ }
311
+
312
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
313
+ response_data.read()
314
+ return self.api_client.response_deserialize(
315
+ response_data=response_data,
316
+ response_types_map=_response_types_map,
317
+ ).data
318
+
319
+ @validate_call
320
+ def get_api_application_with_http_info(
321
+ self,
322
+ id: StrictStr,
323
+ _request_timeout: Union[
324
+ None,
325
+ Annotated[StrictFloat, Field(gt=0)],
326
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
327
+ ] = None,
328
+ _request_auth: Dict[StrictStr, Any] | None = None,
329
+ _content_type: StrictStr | None = None,
330
+ _headers: Dict[StrictStr, Any] | None = None,
331
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
332
+ ) -> ApiResponse[ApiApplicationResponse]:
333
+ """Get API Application
334
+
335
+ Gets the details of a specific API Application within an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page.
336
+
337
+ :param id: (required)
338
+ :type id: str
339
+ :param _request_timeout: timeout setting for this request. If one
340
+ number provided, it will be total request
341
+ timeout. It can also be a pair (tuple) of
342
+ (connection, read) timeouts.
343
+ :type _request_timeout: int, tuple(int, int), optional
344
+ :param _request_auth: set to override the auth_settings for an a single
345
+ request; this effectively ignores the
346
+ authentication in the spec for a single request.
347
+ :type _request_auth: dict, optional
348
+ :param _content_type: force content-type for the request.
349
+ :type _content_type: str, Optional
350
+ :param _headers: set to override the headers for a single
351
+ request; this effectively ignores the headers
352
+ in the spec for a single request.
353
+ :type _headers: dict, optional
354
+ :param _host_index: set to override the host_index for a single
355
+ request; this effectively ignores the host_index
356
+ in the spec for a single request.
357
+ :type _host_index: int, optional
358
+ :return: Returns the result object.
359
+ """ # noqa: E501
360
+
361
+ _param = self._get_api_application_serialize(
362
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
363
+ )
364
+
365
+ _response_types_map: Dict[str, str | None] = {
366
+ "200": "ApiApplicationResponse",
367
+ "404": "ErrorResponse",
368
+ "429": "RateLimitErrorResponse",
369
+ }
370
+
371
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
372
+ response_data.read()
373
+ return self.api_client.response_deserialize(
374
+ response_data=response_data,
375
+ response_types_map=_response_types_map,
376
+ )
377
+
378
+ @validate_call
379
+ def get_api_application_without_preload_content(
380
+ self,
381
+ id: StrictStr,
382
+ _request_timeout: Union[
383
+ None,
384
+ Annotated[StrictFloat, Field(gt=0)],
385
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
386
+ ] = None,
387
+ _request_auth: Dict[StrictStr, Any] | None = None,
388
+ _content_type: StrictStr | None = None,
389
+ _headers: Dict[StrictStr, Any] | None = None,
390
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
391
+ ) -> RESTResponseType:
392
+ """Get API Application
393
+
394
+ Gets the details of a specific API Application within an account. Supply the unique Application ID from either the Create API Application response or the API Application edit page.
395
+
396
+ :param id: (required)
397
+ :type id: str
398
+ :param _request_timeout: timeout setting for this request. If one
399
+ number provided, it will be total request
400
+ timeout. It can also be a pair (tuple) of
401
+ (connection, read) timeouts.
402
+ :type _request_timeout: int, tuple(int, int), optional
403
+ :param _request_auth: set to override the auth_settings for an a single
404
+ request; this effectively ignores the
405
+ authentication in the spec for a single request.
406
+ :type _request_auth: dict, optional
407
+ :param _content_type: force content-type for the request.
408
+ :type _content_type: str, Optional
409
+ :param _headers: set to override the headers for a single
410
+ request; this effectively ignores the headers
411
+ in the spec for a single request.
412
+ :type _headers: dict, optional
413
+ :param _host_index: set to override the host_index for a single
414
+ request; this effectively ignores the host_index
415
+ in the spec for a single request.
416
+ :type _host_index: int, optional
417
+ :return: Returns the result object.
418
+ """ # noqa: E501
419
+
420
+ _param = self._get_api_application_serialize(
421
+ id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index
422
+ )
423
+
424
+ _response_types_map: Dict[str, str | None] = {
425
+ "200": "ApiApplicationResponse",
426
+ "404": "ErrorResponse",
427
+ "429": "RateLimitErrorResponse",
428
+ }
429
+
430
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
431
+ return response_data.response
432
+
433
+ def _get_api_application_serialize(
434
+ self,
435
+ id,
436
+ _request_auth,
437
+ _content_type,
438
+ _headers,
439
+ _host_index,
440
+ ) -> RequestSerialized:
441
+
442
+ _host = None
443
+
444
+ _collection_formats: Dict[str, str] = {}
445
+
446
+ _path_params: Dict[str, str] = {}
447
+ _query_params: List[Tuple[str, str]] = []
448
+ _header_params: Dict[str, str | None] = _headers or {}
449
+ _form_params: List[Tuple[str, str]] = []
450
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
451
+ _body_params: bytes | None = None
452
+
453
+ # process the path parameters
454
+ if id is not None:
455
+ _path_params["id"] = id
456
+ # process the query parameters
457
+ # process the header parameters
458
+ # process the form parameters
459
+ # process the body parameter
460
+
461
+ # set the HTTP header `Accept`
462
+ if "Accept" not in _header_params:
463
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
464
+
465
+ # authentication setting
466
+ _auth_settings: List[str] = ["api_key"]
467
+
468
+ return self.api_client.param_serialize(
469
+ method="GET",
470
+ resource_path="/api/v1/api_applications/{id}",
471
+ path_params=_path_params,
472
+ query_params=_query_params,
473
+ header_params=_header_params,
474
+ body=_body_params,
475
+ post_params=_form_params,
476
+ files=_files,
477
+ auth_settings=_auth_settings,
478
+ collection_formats=_collection_formats,
479
+ _host=_host,
480
+ _request_auth=_request_auth,
481
+ )