factpulse 1.0.6__py3-none-any.whl → 2.0.2__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.
- factpulse/__init__.py +17 -23
- factpulse/api/__init__.py +0 -2
- factpulse/api/afnorpdppa_directory_service_api.py +4293 -64
- factpulse/api_client.py +1 -1
- factpulse/configuration.py +1 -1
- factpulse/exceptions.py +5 -2
- factpulse/models/__init__.py +8 -9
- factpulse/models/ligne_de_poste.py +6 -6
- factpulse/models/ligne_de_tva.py +6 -6
- factpulse/models/{montantapayer.py → montant_a_payer.py} +4 -4
- factpulse/models/{montantbaseht.py → montant_base_ht.py} +4 -4
- factpulse/models/montant_ht_total.py +3 -3
- factpulse/models/{montantttctotal.py → montant_ht_total1.py} +8 -8
- factpulse/models/{montant_total_montant_remise_globale_ttc.py → montant_remise_globale_ttc.py} +5 -5
- factpulse/models/montant_total.py +15 -15
- factpulse/models/{ligne_de_poste_montant_total_ligne_ht.py → montant_total_ligne_ht.py} +5 -5
- factpulse/models/montant_ttc_total.py +3 -3
- factpulse/models/{montanttva.py → montant_ttc_total1.py} +8 -8
- factpulse/models/montant_tva.py +3 -3
- factpulse/models/{montanttva1.py → montant_tva1.py} +4 -4
- factpulse/models/{montantunitaireht.py → montant_unitaire_ht.py} +4 -4
- factpulse/models/options_processing.py +4 -13
- factpulse/models/soumettre_facture_request.py +18 -6
- factpulse/models/statut_tache.py +2 -5
- {factpulse-1.0.6.dist-info → factpulse-2.0.2.dist-info}/METADATA +2 -2
- {factpulse-1.0.6.dist-info → factpulse-2.0.2.dist-info}/RECORD +29 -32
- factpulse/api/processing_endpoints_unifis_api.py +0 -592
- factpulse/api/signature_lectronique_api.py +0 -1358
- factpulse/models/montanthttotal.py +0 -139
- {factpulse-1.0.6.dist-info → factpulse-2.0.2.dist-info}/WHEEL +0 -0
- {factpulse-1.0.6.dist-info → factpulse-2.0.2.dist-info}/licenses/LICENSE +0 -0
- {factpulse-1.0.6.dist-info → factpulse-2.0.2.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,786 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
37
37
|
self.api_client = api_client
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
@validate_call
|
|
41
|
+
def create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post(
|
|
42
|
+
self,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
49
|
+
]
|
|
50
|
+
] = None,
|
|
51
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_content_type: Optional[StrictStr] = None,
|
|
53
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
|
+
) -> object:
|
|
56
|
+
"""Creating a directory line
|
|
57
|
+
|
|
58
|
+
Créer une ligne dans l'annuaire
|
|
59
|
+
|
|
60
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
61
|
+
number provided, it will be total request
|
|
62
|
+
timeout. It can also be a pair (tuple) of
|
|
63
|
+
(connection, read) timeouts.
|
|
64
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
65
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
66
|
+
request; this effectively ignores the
|
|
67
|
+
authentication in the spec for a single request.
|
|
68
|
+
:type _request_auth: dict, optional
|
|
69
|
+
:param _content_type: force content-type for the request.
|
|
70
|
+
:type _content_type: str, Optional
|
|
71
|
+
:param _headers: set to override the headers for a single
|
|
72
|
+
request; this effectively ignores the headers
|
|
73
|
+
in the spec for a single request.
|
|
74
|
+
:type _headers: dict, optional
|
|
75
|
+
:param _host_index: set to override the host_index for a single
|
|
76
|
+
request; this effectively ignores the host_index
|
|
77
|
+
in the spec for a single request.
|
|
78
|
+
:type _host_index: int, optional
|
|
79
|
+
:return: Returns the result object.
|
|
80
|
+
""" # noqa: E501
|
|
81
|
+
|
|
82
|
+
_param = self._create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_serialize(
|
|
83
|
+
_request_auth=_request_auth,
|
|
84
|
+
_content_type=_content_type,
|
|
85
|
+
_headers=_headers,
|
|
86
|
+
_host_index=_host_index
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
90
|
+
'200': "object",
|
|
91
|
+
'201': None,
|
|
92
|
+
'400': None,
|
|
93
|
+
'401': None,
|
|
94
|
+
}
|
|
95
|
+
response_data = self.api_client.call_api(
|
|
96
|
+
*_param,
|
|
97
|
+
_request_timeout=_request_timeout
|
|
98
|
+
)
|
|
99
|
+
response_data.read()
|
|
100
|
+
return self.api_client.response_deserialize(
|
|
101
|
+
response_data=response_data,
|
|
102
|
+
response_types_map=_response_types_map,
|
|
103
|
+
).data
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@validate_call
|
|
107
|
+
def create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_with_http_info(
|
|
108
|
+
self,
|
|
109
|
+
_request_timeout: Union[
|
|
110
|
+
None,
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
112
|
+
Tuple[
|
|
113
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
115
|
+
]
|
|
116
|
+
] = None,
|
|
117
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
118
|
+
_content_type: Optional[StrictStr] = None,
|
|
119
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
120
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
121
|
+
) -> ApiResponse[object]:
|
|
122
|
+
"""Creating a directory line
|
|
123
|
+
|
|
124
|
+
Créer une ligne dans l'annuaire
|
|
125
|
+
|
|
126
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
127
|
+
number provided, it will be total request
|
|
128
|
+
timeout. It can also be a pair (tuple) of
|
|
129
|
+
(connection, read) timeouts.
|
|
130
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
131
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
132
|
+
request; this effectively ignores the
|
|
133
|
+
authentication in the spec for a single request.
|
|
134
|
+
:type _request_auth: dict, optional
|
|
135
|
+
:param _content_type: force content-type for the request.
|
|
136
|
+
:type _content_type: str, Optional
|
|
137
|
+
:param _headers: set to override the headers for a single
|
|
138
|
+
request; this effectively ignores the headers
|
|
139
|
+
in the spec for a single request.
|
|
140
|
+
:type _headers: dict, optional
|
|
141
|
+
:param _host_index: set to override the host_index for a single
|
|
142
|
+
request; this effectively ignores the host_index
|
|
143
|
+
in the spec for a single request.
|
|
144
|
+
:type _host_index: int, optional
|
|
145
|
+
:return: Returns the result object.
|
|
146
|
+
""" # noqa: E501
|
|
147
|
+
|
|
148
|
+
_param = self._create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_serialize(
|
|
149
|
+
_request_auth=_request_auth,
|
|
150
|
+
_content_type=_content_type,
|
|
151
|
+
_headers=_headers,
|
|
152
|
+
_host_index=_host_index
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
156
|
+
'200': "object",
|
|
157
|
+
'201': None,
|
|
158
|
+
'400': None,
|
|
159
|
+
'401': None,
|
|
160
|
+
}
|
|
161
|
+
response_data = self.api_client.call_api(
|
|
162
|
+
*_param,
|
|
163
|
+
_request_timeout=_request_timeout
|
|
164
|
+
)
|
|
165
|
+
response_data.read()
|
|
166
|
+
return self.api_client.response_deserialize(
|
|
167
|
+
response_data=response_data,
|
|
168
|
+
response_types_map=_response_types_map,
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
@validate_call
|
|
173
|
+
def create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_without_preload_content(
|
|
174
|
+
self,
|
|
175
|
+
_request_timeout: Union[
|
|
176
|
+
None,
|
|
177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
178
|
+
Tuple[
|
|
179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
180
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
181
|
+
]
|
|
182
|
+
] = None,
|
|
183
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
184
|
+
_content_type: Optional[StrictStr] = None,
|
|
185
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
186
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
187
|
+
) -> RESTResponseType:
|
|
188
|
+
"""Creating a directory line
|
|
189
|
+
|
|
190
|
+
Créer une ligne dans l'annuaire
|
|
191
|
+
|
|
192
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
193
|
+
number provided, it will be total request
|
|
194
|
+
timeout. It can also be a pair (tuple) of
|
|
195
|
+
(connection, read) timeouts.
|
|
196
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
197
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
198
|
+
request; this effectively ignores the
|
|
199
|
+
authentication in the spec for a single request.
|
|
200
|
+
:type _request_auth: dict, optional
|
|
201
|
+
:param _content_type: force content-type for the request.
|
|
202
|
+
:type _content_type: str, Optional
|
|
203
|
+
:param _headers: set to override the headers for a single
|
|
204
|
+
request; this effectively ignores the headers
|
|
205
|
+
in the spec for a single request.
|
|
206
|
+
:type _headers: dict, optional
|
|
207
|
+
:param _host_index: set to override the host_index for a single
|
|
208
|
+
request; this effectively ignores the host_index
|
|
209
|
+
in the spec for a single request.
|
|
210
|
+
:type _host_index: int, optional
|
|
211
|
+
:return: Returns the result object.
|
|
212
|
+
""" # noqa: E501
|
|
213
|
+
|
|
214
|
+
_param = self._create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_serialize(
|
|
215
|
+
_request_auth=_request_auth,
|
|
216
|
+
_content_type=_content_type,
|
|
217
|
+
_headers=_headers,
|
|
218
|
+
_host_index=_host_index
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
222
|
+
'200': "object",
|
|
223
|
+
'201': None,
|
|
224
|
+
'400': None,
|
|
225
|
+
'401': None,
|
|
226
|
+
}
|
|
227
|
+
response_data = self.api_client.call_api(
|
|
228
|
+
*_param,
|
|
229
|
+
_request_timeout=_request_timeout
|
|
230
|
+
)
|
|
231
|
+
return response_data.response
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
def _create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_serialize(
|
|
235
|
+
self,
|
|
236
|
+
_request_auth,
|
|
237
|
+
_content_type,
|
|
238
|
+
_headers,
|
|
239
|
+
_host_index,
|
|
240
|
+
) -> RequestSerialized:
|
|
241
|
+
|
|
242
|
+
_host = None
|
|
243
|
+
|
|
244
|
+
_collection_formats: Dict[str, str] = {
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
_path_params: Dict[str, str] = {}
|
|
248
|
+
_query_params: List[Tuple[str, str]] = []
|
|
249
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
250
|
+
_form_params: List[Tuple[str, str]] = []
|
|
251
|
+
_files: Dict[
|
|
252
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
253
|
+
] = {}
|
|
254
|
+
_body_params: Optional[bytes] = None
|
|
255
|
+
|
|
256
|
+
# process the path parameters
|
|
257
|
+
# process the query parameters
|
|
258
|
+
# process the header parameters
|
|
259
|
+
# process the form parameters
|
|
260
|
+
# process the body parameter
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# set the HTTP header `Accept`
|
|
264
|
+
if 'Accept' not in _header_params:
|
|
265
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
266
|
+
[
|
|
267
|
+
'application/json'
|
|
268
|
+
]
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
# authentication setting
|
|
273
|
+
_auth_settings: List[str] = [
|
|
274
|
+
]
|
|
275
|
+
|
|
276
|
+
return self.api_client.param_serialize(
|
|
277
|
+
method='POST',
|
|
278
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line',
|
|
279
|
+
path_params=_path_params,
|
|
280
|
+
query_params=_query_params,
|
|
281
|
+
header_params=_header_params,
|
|
282
|
+
body=_body_params,
|
|
283
|
+
post_params=_form_params,
|
|
284
|
+
files=_files,
|
|
285
|
+
auth_settings=_auth_settings,
|
|
286
|
+
collection_formats=_collection_formats,
|
|
287
|
+
_host=_host,
|
|
288
|
+
_request_auth=_request_auth
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
@validate_call
|
|
295
|
+
def create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post(
|
|
296
|
+
self,
|
|
297
|
+
_request_timeout: Union[
|
|
298
|
+
None,
|
|
299
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
300
|
+
Tuple[
|
|
301
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
302
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
303
|
+
]
|
|
304
|
+
] = None,
|
|
305
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
306
|
+
_content_type: Optional[StrictStr] = None,
|
|
307
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
308
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
309
|
+
) -> object:
|
|
310
|
+
"""Create a routing code
|
|
311
|
+
|
|
312
|
+
Créer un code de routage dans l'annuaire
|
|
313
|
+
|
|
314
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
315
|
+
number provided, it will be total request
|
|
316
|
+
timeout. It can also be a pair (tuple) of
|
|
317
|
+
(connection, read) timeouts.
|
|
318
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
319
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
320
|
+
request; this effectively ignores the
|
|
321
|
+
authentication in the spec for a single request.
|
|
322
|
+
:type _request_auth: dict, optional
|
|
323
|
+
:param _content_type: force content-type for the request.
|
|
324
|
+
:type _content_type: str, Optional
|
|
325
|
+
:param _headers: set to override the headers for a single
|
|
326
|
+
request; this effectively ignores the headers
|
|
327
|
+
in the spec for a single request.
|
|
328
|
+
:type _headers: dict, optional
|
|
329
|
+
:param _host_index: set to override the host_index for a single
|
|
330
|
+
request; this effectively ignores the host_index
|
|
331
|
+
in the spec for a single request.
|
|
332
|
+
:type _host_index: int, optional
|
|
333
|
+
:return: Returns the result object.
|
|
334
|
+
""" # noqa: E501
|
|
335
|
+
|
|
336
|
+
_param = self._create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_serialize(
|
|
337
|
+
_request_auth=_request_auth,
|
|
338
|
+
_content_type=_content_type,
|
|
339
|
+
_headers=_headers,
|
|
340
|
+
_host_index=_host_index
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
344
|
+
'200': "object",
|
|
345
|
+
'201': None,
|
|
346
|
+
'400': None,
|
|
347
|
+
'401': None,
|
|
348
|
+
}
|
|
349
|
+
response_data = self.api_client.call_api(
|
|
350
|
+
*_param,
|
|
351
|
+
_request_timeout=_request_timeout
|
|
352
|
+
)
|
|
353
|
+
response_data.read()
|
|
354
|
+
return self.api_client.response_deserialize(
|
|
355
|
+
response_data=response_data,
|
|
356
|
+
response_types_map=_response_types_map,
|
|
357
|
+
).data
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
@validate_call
|
|
361
|
+
def create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_with_http_info(
|
|
362
|
+
self,
|
|
363
|
+
_request_timeout: Union[
|
|
364
|
+
None,
|
|
365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
366
|
+
Tuple[
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
369
|
+
]
|
|
370
|
+
] = None,
|
|
371
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
372
|
+
_content_type: Optional[StrictStr] = None,
|
|
373
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
374
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
375
|
+
) -> ApiResponse[object]:
|
|
376
|
+
"""Create a routing code
|
|
377
|
+
|
|
378
|
+
Créer un code de routage dans l'annuaire
|
|
379
|
+
|
|
380
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
381
|
+
number provided, it will be total request
|
|
382
|
+
timeout. It can also be a pair (tuple) of
|
|
383
|
+
(connection, read) timeouts.
|
|
384
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
385
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
386
|
+
request; this effectively ignores the
|
|
387
|
+
authentication in the spec for a single request.
|
|
388
|
+
:type _request_auth: dict, optional
|
|
389
|
+
:param _content_type: force content-type for the request.
|
|
390
|
+
:type _content_type: str, Optional
|
|
391
|
+
:param _headers: set to override the headers for a single
|
|
392
|
+
request; this effectively ignores the headers
|
|
393
|
+
in the spec for a single request.
|
|
394
|
+
:type _headers: dict, optional
|
|
395
|
+
:param _host_index: set to override the host_index for a single
|
|
396
|
+
request; this effectively ignores the host_index
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _host_index: int, optional
|
|
399
|
+
:return: Returns the result object.
|
|
400
|
+
""" # noqa: E501
|
|
401
|
+
|
|
402
|
+
_param = self._create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_serialize(
|
|
403
|
+
_request_auth=_request_auth,
|
|
404
|
+
_content_type=_content_type,
|
|
405
|
+
_headers=_headers,
|
|
406
|
+
_host_index=_host_index
|
|
407
|
+
)
|
|
408
|
+
|
|
409
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
410
|
+
'200': "object",
|
|
411
|
+
'201': None,
|
|
412
|
+
'400': None,
|
|
413
|
+
'401': None,
|
|
414
|
+
}
|
|
415
|
+
response_data = self.api_client.call_api(
|
|
416
|
+
*_param,
|
|
417
|
+
_request_timeout=_request_timeout
|
|
418
|
+
)
|
|
419
|
+
response_data.read()
|
|
420
|
+
return self.api_client.response_deserialize(
|
|
421
|
+
response_data=response_data,
|
|
422
|
+
response_types_map=_response_types_map,
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
@validate_call
|
|
427
|
+
def create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_without_preload_content(
|
|
428
|
+
self,
|
|
429
|
+
_request_timeout: Union[
|
|
430
|
+
None,
|
|
431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
432
|
+
Tuple[
|
|
433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
434
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
435
|
+
]
|
|
436
|
+
] = None,
|
|
437
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
438
|
+
_content_type: Optional[StrictStr] = None,
|
|
439
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
440
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
441
|
+
) -> RESTResponseType:
|
|
442
|
+
"""Create a routing code
|
|
443
|
+
|
|
444
|
+
Créer un code de routage dans l'annuaire
|
|
445
|
+
|
|
446
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
447
|
+
number provided, it will be total request
|
|
448
|
+
timeout. It can also be a pair (tuple) of
|
|
449
|
+
(connection, read) timeouts.
|
|
450
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
451
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
452
|
+
request; this effectively ignores the
|
|
453
|
+
authentication in the spec for a single request.
|
|
454
|
+
:type _request_auth: dict, optional
|
|
455
|
+
:param _content_type: force content-type for the request.
|
|
456
|
+
:type _content_type: str, Optional
|
|
457
|
+
:param _headers: set to override the headers for a single
|
|
458
|
+
request; this effectively ignores the headers
|
|
459
|
+
in the spec for a single request.
|
|
460
|
+
:type _headers: dict, optional
|
|
461
|
+
:param _host_index: set to override the host_index for a single
|
|
462
|
+
request; this effectively ignores the host_index
|
|
463
|
+
in the spec for a single request.
|
|
464
|
+
:type _host_index: int, optional
|
|
465
|
+
:return: Returns the result object.
|
|
466
|
+
""" # noqa: E501
|
|
467
|
+
|
|
468
|
+
_param = self._create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_serialize(
|
|
469
|
+
_request_auth=_request_auth,
|
|
470
|
+
_content_type=_content_type,
|
|
471
|
+
_headers=_headers,
|
|
472
|
+
_host_index=_host_index
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
476
|
+
'200': "object",
|
|
477
|
+
'201': None,
|
|
478
|
+
'400': None,
|
|
479
|
+
'401': None,
|
|
480
|
+
}
|
|
481
|
+
response_data = self.api_client.call_api(
|
|
482
|
+
*_param,
|
|
483
|
+
_request_timeout=_request_timeout
|
|
484
|
+
)
|
|
485
|
+
return response_data.response
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
def _create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_serialize(
|
|
489
|
+
self,
|
|
490
|
+
_request_auth,
|
|
491
|
+
_content_type,
|
|
492
|
+
_headers,
|
|
493
|
+
_host_index,
|
|
494
|
+
) -> RequestSerialized:
|
|
495
|
+
|
|
496
|
+
_host = None
|
|
497
|
+
|
|
498
|
+
_collection_formats: Dict[str, str] = {
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
_path_params: Dict[str, str] = {}
|
|
502
|
+
_query_params: List[Tuple[str, str]] = []
|
|
503
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
504
|
+
_form_params: List[Tuple[str, str]] = []
|
|
505
|
+
_files: Dict[
|
|
506
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
507
|
+
] = {}
|
|
508
|
+
_body_params: Optional[bytes] = None
|
|
509
|
+
|
|
510
|
+
# process the path parameters
|
|
511
|
+
# process the query parameters
|
|
512
|
+
# process the header parameters
|
|
513
|
+
# process the form parameters
|
|
514
|
+
# process the body parameter
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
# set the HTTP header `Accept`
|
|
518
|
+
if 'Accept' not in _header_params:
|
|
519
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
520
|
+
[
|
|
521
|
+
'application/json'
|
|
522
|
+
]
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
# authentication setting
|
|
527
|
+
_auth_settings: List[str] = [
|
|
528
|
+
]
|
|
529
|
+
|
|
530
|
+
return self.api_client.param_serialize(
|
|
531
|
+
method='POST',
|
|
532
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code',
|
|
533
|
+
path_params=_path_params,
|
|
534
|
+
query_params=_query_params,
|
|
535
|
+
header_params=_header_params,
|
|
536
|
+
body=_body_params,
|
|
537
|
+
post_params=_form_params,
|
|
538
|
+
files=_files,
|
|
539
|
+
auth_settings=_auth_settings,
|
|
540
|
+
collection_formats=_collection_formats,
|
|
541
|
+
_host=_host,
|
|
542
|
+
_request_auth=_request_auth
|
|
543
|
+
)
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
@validate_call
|
|
549
|
+
def delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete(
|
|
550
|
+
self,
|
|
551
|
+
id_instance: StrictStr,
|
|
552
|
+
_request_timeout: Union[
|
|
553
|
+
None,
|
|
554
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
555
|
+
Tuple[
|
|
556
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
557
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
558
|
+
]
|
|
559
|
+
] = None,
|
|
560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
561
|
+
_content_type: Optional[StrictStr] = None,
|
|
562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
564
|
+
) -> object:
|
|
565
|
+
"""Delete a directory line
|
|
566
|
+
|
|
567
|
+
Supprimer une ligne d'annuaire
|
|
568
|
+
|
|
569
|
+
:param id_instance: (required)
|
|
570
|
+
:type id_instance: str
|
|
571
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
572
|
+
number provided, it will be total request
|
|
573
|
+
timeout. It can also be a pair (tuple) of
|
|
574
|
+
(connection, read) timeouts.
|
|
575
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
576
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
577
|
+
request; this effectively ignores the
|
|
578
|
+
authentication in the spec for a single request.
|
|
579
|
+
:type _request_auth: dict, optional
|
|
580
|
+
:param _content_type: force content-type for the request.
|
|
581
|
+
:type _content_type: str, Optional
|
|
582
|
+
:param _headers: set to override the headers for a single
|
|
583
|
+
request; this effectively ignores the headers
|
|
584
|
+
in the spec for a single request.
|
|
585
|
+
:type _headers: dict, optional
|
|
586
|
+
:param _host_index: set to override the host_index for a single
|
|
587
|
+
request; this effectively ignores the host_index
|
|
588
|
+
in the spec for a single request.
|
|
589
|
+
:type _host_index: int, optional
|
|
590
|
+
:return: Returns the result object.
|
|
591
|
+
""" # noqa: E501
|
|
592
|
+
|
|
593
|
+
_param = self._delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_serialize(
|
|
594
|
+
id_instance=id_instance,
|
|
595
|
+
_request_auth=_request_auth,
|
|
596
|
+
_content_type=_content_type,
|
|
597
|
+
_headers=_headers,
|
|
598
|
+
_host_index=_host_index
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
602
|
+
'200': "object",
|
|
603
|
+
'204': None,
|
|
604
|
+
'404': None,
|
|
605
|
+
'401': None,
|
|
606
|
+
'422': "HTTPValidationError",
|
|
607
|
+
}
|
|
608
|
+
response_data = self.api_client.call_api(
|
|
609
|
+
*_param,
|
|
610
|
+
_request_timeout=_request_timeout
|
|
611
|
+
)
|
|
612
|
+
response_data.read()
|
|
613
|
+
return self.api_client.response_deserialize(
|
|
614
|
+
response_data=response_data,
|
|
615
|
+
response_types_map=_response_types_map,
|
|
616
|
+
).data
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
@validate_call
|
|
620
|
+
def delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_with_http_info(
|
|
621
|
+
self,
|
|
622
|
+
id_instance: StrictStr,
|
|
623
|
+
_request_timeout: Union[
|
|
624
|
+
None,
|
|
625
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
626
|
+
Tuple[
|
|
627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
628
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
629
|
+
]
|
|
630
|
+
] = None,
|
|
631
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
632
|
+
_content_type: Optional[StrictStr] = None,
|
|
633
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
634
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
635
|
+
) -> ApiResponse[object]:
|
|
636
|
+
"""Delete a directory line
|
|
637
|
+
|
|
638
|
+
Supprimer une ligne d'annuaire
|
|
639
|
+
|
|
640
|
+
:param id_instance: (required)
|
|
641
|
+
:type id_instance: str
|
|
642
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
643
|
+
number provided, it will be total request
|
|
644
|
+
timeout. It can also be a pair (tuple) of
|
|
645
|
+
(connection, read) timeouts.
|
|
646
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
647
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
648
|
+
request; this effectively ignores the
|
|
649
|
+
authentication in the spec for a single request.
|
|
650
|
+
:type _request_auth: dict, optional
|
|
651
|
+
:param _content_type: force content-type for the request.
|
|
652
|
+
:type _content_type: str, Optional
|
|
653
|
+
:param _headers: set to override the headers for a single
|
|
654
|
+
request; this effectively ignores the headers
|
|
655
|
+
in the spec for a single request.
|
|
656
|
+
:type _headers: dict, optional
|
|
657
|
+
:param _host_index: set to override the host_index for a single
|
|
658
|
+
request; this effectively ignores the host_index
|
|
659
|
+
in the spec for a single request.
|
|
660
|
+
:type _host_index: int, optional
|
|
661
|
+
:return: Returns the result object.
|
|
662
|
+
""" # noqa: E501
|
|
663
|
+
|
|
664
|
+
_param = self._delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_serialize(
|
|
665
|
+
id_instance=id_instance,
|
|
666
|
+
_request_auth=_request_auth,
|
|
667
|
+
_content_type=_content_type,
|
|
668
|
+
_headers=_headers,
|
|
669
|
+
_host_index=_host_index
|
|
670
|
+
)
|
|
671
|
+
|
|
672
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
673
|
+
'200': "object",
|
|
674
|
+
'204': None,
|
|
675
|
+
'404': None,
|
|
676
|
+
'401': None,
|
|
677
|
+
'422': "HTTPValidationError",
|
|
678
|
+
}
|
|
679
|
+
response_data = self.api_client.call_api(
|
|
680
|
+
*_param,
|
|
681
|
+
_request_timeout=_request_timeout
|
|
682
|
+
)
|
|
683
|
+
response_data.read()
|
|
684
|
+
return self.api_client.response_deserialize(
|
|
685
|
+
response_data=response_data,
|
|
686
|
+
response_types_map=_response_types_map,
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
@validate_call
|
|
691
|
+
def delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_without_preload_content(
|
|
692
|
+
self,
|
|
693
|
+
id_instance: StrictStr,
|
|
694
|
+
_request_timeout: Union[
|
|
695
|
+
None,
|
|
696
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
697
|
+
Tuple[
|
|
698
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
699
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
700
|
+
]
|
|
701
|
+
] = None,
|
|
702
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
703
|
+
_content_type: Optional[StrictStr] = None,
|
|
704
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
705
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
706
|
+
) -> RESTResponseType:
|
|
707
|
+
"""Delete a directory line
|
|
708
|
+
|
|
709
|
+
Supprimer une ligne d'annuaire
|
|
710
|
+
|
|
711
|
+
:param id_instance: (required)
|
|
712
|
+
:type id_instance: str
|
|
713
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
714
|
+
number provided, it will be total request
|
|
715
|
+
timeout. It can also be a pair (tuple) of
|
|
716
|
+
(connection, read) timeouts.
|
|
717
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
718
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
719
|
+
request; this effectively ignores the
|
|
720
|
+
authentication in the spec for a single request.
|
|
721
|
+
:type _request_auth: dict, optional
|
|
722
|
+
:param _content_type: force content-type for the request.
|
|
723
|
+
:type _content_type: str, Optional
|
|
724
|
+
:param _headers: set to override the headers for a single
|
|
725
|
+
request; this effectively ignores the headers
|
|
726
|
+
in the spec for a single request.
|
|
727
|
+
:type _headers: dict, optional
|
|
728
|
+
:param _host_index: set to override the host_index for a single
|
|
729
|
+
request; this effectively ignores the host_index
|
|
730
|
+
in the spec for a single request.
|
|
731
|
+
:type _host_index: int, optional
|
|
732
|
+
:return: Returns the result object.
|
|
733
|
+
""" # noqa: E501
|
|
734
|
+
|
|
735
|
+
_param = self._delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_serialize(
|
|
736
|
+
id_instance=id_instance,
|
|
737
|
+
_request_auth=_request_auth,
|
|
738
|
+
_content_type=_content_type,
|
|
739
|
+
_headers=_headers,
|
|
740
|
+
_host_index=_host_index
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
744
|
+
'200': "object",
|
|
745
|
+
'204': None,
|
|
746
|
+
'404': None,
|
|
747
|
+
'401': None,
|
|
748
|
+
'422': "HTTPValidationError",
|
|
749
|
+
}
|
|
750
|
+
response_data = self.api_client.call_api(
|
|
751
|
+
*_param,
|
|
752
|
+
_request_timeout=_request_timeout
|
|
753
|
+
)
|
|
754
|
+
return response_data.response
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
def _delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_serialize(
|
|
758
|
+
self,
|
|
759
|
+
id_instance,
|
|
760
|
+
_request_auth,
|
|
761
|
+
_content_type,
|
|
762
|
+
_headers,
|
|
763
|
+
_host_index,
|
|
764
|
+
) -> RequestSerialized:
|
|
765
|
+
|
|
766
|
+
_host = None
|
|
767
|
+
|
|
768
|
+
_collection_formats: Dict[str, str] = {
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
_path_params: Dict[str, str] = {}
|
|
772
|
+
_query_params: List[Tuple[str, str]] = []
|
|
773
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
774
|
+
_form_params: List[Tuple[str, str]] = []
|
|
775
|
+
_files: Dict[
|
|
776
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
777
|
+
] = {}
|
|
778
|
+
_body_params: Optional[bytes] = None
|
|
779
|
+
|
|
780
|
+
# process the path parameters
|
|
781
|
+
if id_instance is not None:
|
|
782
|
+
_path_params['id_instance'] = id_instance
|
|
783
|
+
# process the query parameters
|
|
784
|
+
# process the header parameters
|
|
785
|
+
# process the form parameters
|
|
786
|
+
# process the body parameter
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
# set the HTTP header `Accept`
|
|
790
|
+
if 'Accept' not in _header_params:
|
|
791
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
792
|
+
[
|
|
793
|
+
'application/json'
|
|
794
|
+
]
|
|
795
|
+
)
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
# authentication setting
|
|
799
|
+
_auth_settings: List[str] = [
|
|
800
|
+
]
|
|
801
|
+
|
|
802
|
+
return self.api_client.param_serialize(
|
|
803
|
+
method='DELETE',
|
|
804
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}',
|
|
805
|
+
path_params=_path_params,
|
|
806
|
+
query_params=_query_params,
|
|
807
|
+
header_params=_header_params,
|
|
808
|
+
body=_body_params,
|
|
809
|
+
post_params=_form_params,
|
|
810
|
+
files=_files,
|
|
811
|
+
auth_settings=_auth_settings,
|
|
812
|
+
collection_formats=_collection_formats,
|
|
813
|
+
_host=_host,
|
|
814
|
+
_request_auth=_request_auth
|
|
815
|
+
)
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
40
820
|
@validate_call
|
|
41
821
|
def directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get(
|
|
42
822
|
self,
|
|
@@ -53,9 +833,3476 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
53
833
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
834
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
835
|
) -> object:
|
|
56
|
-
"""Healthcheck Directory Service
|
|
836
|
+
"""Healthcheck Directory Service
|
|
837
|
+
|
|
838
|
+
Vérifier la disponibilité du Directory Service
|
|
839
|
+
|
|
840
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
841
|
+
number provided, it will be total request
|
|
842
|
+
timeout. It can also be a pair (tuple) of
|
|
843
|
+
(connection, read) timeouts.
|
|
844
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
845
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
846
|
+
request; this effectively ignores the
|
|
847
|
+
authentication in the spec for a single request.
|
|
848
|
+
:type _request_auth: dict, optional
|
|
849
|
+
:param _content_type: force content-type for the request.
|
|
850
|
+
:type _content_type: str, Optional
|
|
851
|
+
:param _headers: set to override the headers for a single
|
|
852
|
+
request; this effectively ignores the headers
|
|
853
|
+
in the spec for a single request.
|
|
854
|
+
:type _headers: dict, optional
|
|
855
|
+
:param _host_index: set to override the host_index for a single
|
|
856
|
+
request; this effectively ignores the host_index
|
|
857
|
+
in the spec for a single request.
|
|
858
|
+
:type _host_index: int, optional
|
|
859
|
+
:return: Returns the result object.
|
|
860
|
+
""" # noqa: E501
|
|
861
|
+
|
|
862
|
+
_param = self._directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_serialize(
|
|
863
|
+
_request_auth=_request_auth,
|
|
864
|
+
_content_type=_content_type,
|
|
865
|
+
_headers=_headers,
|
|
866
|
+
_host_index=_host_index
|
|
867
|
+
)
|
|
868
|
+
|
|
869
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
870
|
+
'200': "object",
|
|
871
|
+
}
|
|
872
|
+
response_data = self.api_client.call_api(
|
|
873
|
+
*_param,
|
|
874
|
+
_request_timeout=_request_timeout
|
|
875
|
+
)
|
|
876
|
+
response_data.read()
|
|
877
|
+
return self.api_client.response_deserialize(
|
|
878
|
+
response_data=response_data,
|
|
879
|
+
response_types_map=_response_types_map,
|
|
880
|
+
).data
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
@validate_call
|
|
884
|
+
def directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_with_http_info(
|
|
885
|
+
self,
|
|
886
|
+
_request_timeout: Union[
|
|
887
|
+
None,
|
|
888
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
889
|
+
Tuple[
|
|
890
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
891
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
892
|
+
]
|
|
893
|
+
] = None,
|
|
894
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
895
|
+
_content_type: Optional[StrictStr] = None,
|
|
896
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
897
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
898
|
+
) -> ApiResponse[object]:
|
|
899
|
+
"""Healthcheck Directory Service
|
|
900
|
+
|
|
901
|
+
Vérifier la disponibilité du Directory Service
|
|
902
|
+
|
|
903
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
904
|
+
number provided, it will be total request
|
|
905
|
+
timeout. It can also be a pair (tuple) of
|
|
906
|
+
(connection, read) timeouts.
|
|
907
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
908
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
909
|
+
request; this effectively ignores the
|
|
910
|
+
authentication in the spec for a single request.
|
|
911
|
+
:type _request_auth: dict, optional
|
|
912
|
+
:param _content_type: force content-type for the request.
|
|
913
|
+
:type _content_type: str, Optional
|
|
914
|
+
:param _headers: set to override the headers for a single
|
|
915
|
+
request; this effectively ignores the headers
|
|
916
|
+
in the spec for a single request.
|
|
917
|
+
:type _headers: dict, optional
|
|
918
|
+
:param _host_index: set to override the host_index for a single
|
|
919
|
+
request; this effectively ignores the host_index
|
|
920
|
+
in the spec for a single request.
|
|
921
|
+
:type _host_index: int, optional
|
|
922
|
+
:return: Returns the result object.
|
|
923
|
+
""" # noqa: E501
|
|
924
|
+
|
|
925
|
+
_param = self._directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_serialize(
|
|
926
|
+
_request_auth=_request_auth,
|
|
927
|
+
_content_type=_content_type,
|
|
928
|
+
_headers=_headers,
|
|
929
|
+
_host_index=_host_index
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
933
|
+
'200': "object",
|
|
934
|
+
}
|
|
935
|
+
response_data = self.api_client.call_api(
|
|
936
|
+
*_param,
|
|
937
|
+
_request_timeout=_request_timeout
|
|
938
|
+
)
|
|
939
|
+
response_data.read()
|
|
940
|
+
return self.api_client.response_deserialize(
|
|
941
|
+
response_data=response_data,
|
|
942
|
+
response_types_map=_response_types_map,
|
|
943
|
+
)
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
@validate_call
|
|
947
|
+
def directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_without_preload_content(
|
|
948
|
+
self,
|
|
949
|
+
_request_timeout: Union[
|
|
950
|
+
None,
|
|
951
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
952
|
+
Tuple[
|
|
953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
954
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
955
|
+
]
|
|
956
|
+
] = None,
|
|
957
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
958
|
+
_content_type: Optional[StrictStr] = None,
|
|
959
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
960
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
961
|
+
) -> RESTResponseType:
|
|
962
|
+
"""Healthcheck Directory Service
|
|
963
|
+
|
|
964
|
+
Vérifier la disponibilité du Directory Service
|
|
965
|
+
|
|
966
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
967
|
+
number provided, it will be total request
|
|
968
|
+
timeout. It can also be a pair (tuple) of
|
|
969
|
+
(connection, read) timeouts.
|
|
970
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
971
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
972
|
+
request; this effectively ignores the
|
|
973
|
+
authentication in the spec for a single request.
|
|
974
|
+
:type _request_auth: dict, optional
|
|
975
|
+
:param _content_type: force content-type for the request.
|
|
976
|
+
:type _content_type: str, Optional
|
|
977
|
+
:param _headers: set to override the headers for a single
|
|
978
|
+
request; this effectively ignores the headers
|
|
979
|
+
in the spec for a single request.
|
|
980
|
+
:type _headers: dict, optional
|
|
981
|
+
:param _host_index: set to override the host_index for a single
|
|
982
|
+
request; this effectively ignores the host_index
|
|
983
|
+
in the spec for a single request.
|
|
984
|
+
:type _host_index: int, optional
|
|
985
|
+
:return: Returns the result object.
|
|
986
|
+
""" # noqa: E501
|
|
987
|
+
|
|
988
|
+
_param = self._directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_serialize(
|
|
989
|
+
_request_auth=_request_auth,
|
|
990
|
+
_content_type=_content_type,
|
|
991
|
+
_headers=_headers,
|
|
992
|
+
_host_index=_host_index
|
|
993
|
+
)
|
|
994
|
+
|
|
995
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
996
|
+
'200': "object",
|
|
997
|
+
}
|
|
998
|
+
response_data = self.api_client.call_api(
|
|
999
|
+
*_param,
|
|
1000
|
+
_request_timeout=_request_timeout
|
|
1001
|
+
)
|
|
1002
|
+
return response_data.response
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
def _directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_serialize(
|
|
1006
|
+
self,
|
|
1007
|
+
_request_auth,
|
|
1008
|
+
_content_type,
|
|
1009
|
+
_headers,
|
|
1010
|
+
_host_index,
|
|
1011
|
+
) -> RequestSerialized:
|
|
1012
|
+
|
|
1013
|
+
_host = None
|
|
1014
|
+
|
|
1015
|
+
_collection_formats: Dict[str, str] = {
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
_path_params: Dict[str, str] = {}
|
|
1019
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1020
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1021
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1022
|
+
_files: Dict[
|
|
1023
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1024
|
+
] = {}
|
|
1025
|
+
_body_params: Optional[bytes] = None
|
|
1026
|
+
|
|
1027
|
+
# process the path parameters
|
|
1028
|
+
# process the query parameters
|
|
1029
|
+
# process the header parameters
|
|
1030
|
+
# process the form parameters
|
|
1031
|
+
# process the body parameter
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
# set the HTTP header `Accept`
|
|
1035
|
+
if 'Accept' not in _header_params:
|
|
1036
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1037
|
+
[
|
|
1038
|
+
'application/json'
|
|
1039
|
+
]
|
|
1040
|
+
)
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
# authentication setting
|
|
1044
|
+
_auth_settings: List[str] = [
|
|
1045
|
+
]
|
|
1046
|
+
|
|
1047
|
+
return self.api_client.param_serialize(
|
|
1048
|
+
method='GET',
|
|
1049
|
+
resource_path='/api/v1/afnor/directory/v1/healthcheck',
|
|
1050
|
+
path_params=_path_params,
|
|
1051
|
+
query_params=_query_params,
|
|
1052
|
+
header_params=_header_params,
|
|
1053
|
+
body=_body_params,
|
|
1054
|
+
post_params=_form_params,
|
|
1055
|
+
files=_files,
|
|
1056
|
+
auth_settings=_auth_settings,
|
|
1057
|
+
collection_formats=_collection_formats,
|
|
1058
|
+
_host=_host,
|
|
1059
|
+
_request_auth=_request_auth
|
|
1060
|
+
)
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
@validate_call
|
|
1066
|
+
def get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get(
|
|
1067
|
+
self,
|
|
1068
|
+
addressing_identifier: StrictStr,
|
|
1069
|
+
_request_timeout: Union[
|
|
1070
|
+
None,
|
|
1071
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1072
|
+
Tuple[
|
|
1073
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1074
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1075
|
+
]
|
|
1076
|
+
] = None,
|
|
1077
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1078
|
+
_content_type: Optional[StrictStr] = None,
|
|
1079
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1080
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1081
|
+
) -> object:
|
|
1082
|
+
"""Get a directory line
|
|
1083
|
+
|
|
1084
|
+
Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
1085
|
+
|
|
1086
|
+
:param addressing_identifier: (required)
|
|
1087
|
+
:type addressing_identifier: str
|
|
1088
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1089
|
+
number provided, it will be total request
|
|
1090
|
+
timeout. It can also be a pair (tuple) of
|
|
1091
|
+
(connection, read) timeouts.
|
|
1092
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1093
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1094
|
+
request; this effectively ignores the
|
|
1095
|
+
authentication in the spec for a single request.
|
|
1096
|
+
:type _request_auth: dict, optional
|
|
1097
|
+
:param _content_type: force content-type for the request.
|
|
1098
|
+
:type _content_type: str, Optional
|
|
1099
|
+
:param _headers: set to override the headers for a single
|
|
1100
|
+
request; this effectively ignores the headers
|
|
1101
|
+
in the spec for a single request.
|
|
1102
|
+
:type _headers: dict, optional
|
|
1103
|
+
:param _host_index: set to override the host_index for a single
|
|
1104
|
+
request; this effectively ignores the host_index
|
|
1105
|
+
in the spec for a single request.
|
|
1106
|
+
:type _host_index: int, optional
|
|
1107
|
+
:return: Returns the result object.
|
|
1108
|
+
""" # noqa: E501
|
|
1109
|
+
|
|
1110
|
+
_param = self._get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_serialize(
|
|
1111
|
+
addressing_identifier=addressing_identifier,
|
|
1112
|
+
_request_auth=_request_auth,
|
|
1113
|
+
_content_type=_content_type,
|
|
1114
|
+
_headers=_headers,
|
|
1115
|
+
_host_index=_host_index
|
|
1116
|
+
)
|
|
1117
|
+
|
|
1118
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1119
|
+
'200': "object",
|
|
1120
|
+
'404': None,
|
|
1121
|
+
'401': None,
|
|
1122
|
+
'422': "HTTPValidationError",
|
|
1123
|
+
}
|
|
1124
|
+
response_data = self.api_client.call_api(
|
|
1125
|
+
*_param,
|
|
1126
|
+
_request_timeout=_request_timeout
|
|
1127
|
+
)
|
|
1128
|
+
response_data.read()
|
|
1129
|
+
return self.api_client.response_deserialize(
|
|
1130
|
+
response_data=response_data,
|
|
1131
|
+
response_types_map=_response_types_map,
|
|
1132
|
+
).data
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
@validate_call
|
|
1136
|
+
def get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_with_http_info(
|
|
1137
|
+
self,
|
|
1138
|
+
addressing_identifier: StrictStr,
|
|
1139
|
+
_request_timeout: Union[
|
|
1140
|
+
None,
|
|
1141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1142
|
+
Tuple[
|
|
1143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1145
|
+
]
|
|
1146
|
+
] = None,
|
|
1147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1148
|
+
_content_type: Optional[StrictStr] = None,
|
|
1149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1151
|
+
) -> ApiResponse[object]:
|
|
1152
|
+
"""Get a directory line
|
|
1153
|
+
|
|
1154
|
+
Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
1155
|
+
|
|
1156
|
+
:param addressing_identifier: (required)
|
|
1157
|
+
:type addressing_identifier: str
|
|
1158
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1159
|
+
number provided, it will be total request
|
|
1160
|
+
timeout. It can also be a pair (tuple) of
|
|
1161
|
+
(connection, read) timeouts.
|
|
1162
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1163
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1164
|
+
request; this effectively ignores the
|
|
1165
|
+
authentication in the spec for a single request.
|
|
1166
|
+
:type _request_auth: dict, optional
|
|
1167
|
+
:param _content_type: force content-type for the request.
|
|
1168
|
+
:type _content_type: str, Optional
|
|
1169
|
+
:param _headers: set to override the headers for a single
|
|
1170
|
+
request; this effectively ignores the headers
|
|
1171
|
+
in the spec for a single request.
|
|
1172
|
+
:type _headers: dict, optional
|
|
1173
|
+
:param _host_index: set to override the host_index for a single
|
|
1174
|
+
request; this effectively ignores the host_index
|
|
1175
|
+
in the spec for a single request.
|
|
1176
|
+
:type _host_index: int, optional
|
|
1177
|
+
:return: Returns the result object.
|
|
1178
|
+
""" # noqa: E501
|
|
1179
|
+
|
|
1180
|
+
_param = self._get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_serialize(
|
|
1181
|
+
addressing_identifier=addressing_identifier,
|
|
1182
|
+
_request_auth=_request_auth,
|
|
1183
|
+
_content_type=_content_type,
|
|
1184
|
+
_headers=_headers,
|
|
1185
|
+
_host_index=_host_index
|
|
1186
|
+
)
|
|
1187
|
+
|
|
1188
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1189
|
+
'200': "object",
|
|
1190
|
+
'404': None,
|
|
1191
|
+
'401': None,
|
|
1192
|
+
'422': "HTTPValidationError",
|
|
1193
|
+
}
|
|
1194
|
+
response_data = self.api_client.call_api(
|
|
1195
|
+
*_param,
|
|
1196
|
+
_request_timeout=_request_timeout
|
|
1197
|
+
)
|
|
1198
|
+
response_data.read()
|
|
1199
|
+
return self.api_client.response_deserialize(
|
|
1200
|
+
response_data=response_data,
|
|
1201
|
+
response_types_map=_response_types_map,
|
|
1202
|
+
)
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
@validate_call
|
|
1206
|
+
def get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_without_preload_content(
|
|
1207
|
+
self,
|
|
1208
|
+
addressing_identifier: StrictStr,
|
|
1209
|
+
_request_timeout: Union[
|
|
1210
|
+
None,
|
|
1211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1212
|
+
Tuple[
|
|
1213
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1214
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1215
|
+
]
|
|
1216
|
+
] = None,
|
|
1217
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1218
|
+
_content_type: Optional[StrictStr] = None,
|
|
1219
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1220
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1221
|
+
) -> RESTResponseType:
|
|
1222
|
+
"""Get a directory line
|
|
1223
|
+
|
|
1224
|
+
Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
1225
|
+
|
|
1226
|
+
:param addressing_identifier: (required)
|
|
1227
|
+
:type addressing_identifier: str
|
|
1228
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1229
|
+
number provided, it will be total request
|
|
1230
|
+
timeout. It can also be a pair (tuple) of
|
|
1231
|
+
(connection, read) timeouts.
|
|
1232
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1233
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1234
|
+
request; this effectively ignores the
|
|
1235
|
+
authentication in the spec for a single request.
|
|
1236
|
+
:type _request_auth: dict, optional
|
|
1237
|
+
:param _content_type: force content-type for the request.
|
|
1238
|
+
:type _content_type: str, Optional
|
|
1239
|
+
:param _headers: set to override the headers for a single
|
|
1240
|
+
request; this effectively ignores the headers
|
|
1241
|
+
in the spec for a single request.
|
|
1242
|
+
:type _headers: dict, optional
|
|
1243
|
+
:param _host_index: set to override the host_index for a single
|
|
1244
|
+
request; this effectively ignores the host_index
|
|
1245
|
+
in the spec for a single request.
|
|
1246
|
+
:type _host_index: int, optional
|
|
1247
|
+
:return: Returns the result object.
|
|
1248
|
+
""" # noqa: E501
|
|
1249
|
+
|
|
1250
|
+
_param = self._get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_serialize(
|
|
1251
|
+
addressing_identifier=addressing_identifier,
|
|
1252
|
+
_request_auth=_request_auth,
|
|
1253
|
+
_content_type=_content_type,
|
|
1254
|
+
_headers=_headers,
|
|
1255
|
+
_host_index=_host_index
|
|
1256
|
+
)
|
|
1257
|
+
|
|
1258
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1259
|
+
'200': "object",
|
|
1260
|
+
'404': None,
|
|
1261
|
+
'401': None,
|
|
1262
|
+
'422': "HTTPValidationError",
|
|
1263
|
+
}
|
|
1264
|
+
response_data = self.api_client.call_api(
|
|
1265
|
+
*_param,
|
|
1266
|
+
_request_timeout=_request_timeout
|
|
1267
|
+
)
|
|
1268
|
+
return response_data.response
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
def _get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_serialize(
|
|
1272
|
+
self,
|
|
1273
|
+
addressing_identifier,
|
|
1274
|
+
_request_auth,
|
|
1275
|
+
_content_type,
|
|
1276
|
+
_headers,
|
|
1277
|
+
_host_index,
|
|
1278
|
+
) -> RequestSerialized:
|
|
1279
|
+
|
|
1280
|
+
_host = None
|
|
1281
|
+
|
|
1282
|
+
_collection_formats: Dict[str, str] = {
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
_path_params: Dict[str, str] = {}
|
|
1286
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1287
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1288
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1289
|
+
_files: Dict[
|
|
1290
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1291
|
+
] = {}
|
|
1292
|
+
_body_params: Optional[bytes] = None
|
|
1293
|
+
|
|
1294
|
+
# process the path parameters
|
|
1295
|
+
if addressing_identifier is not None:
|
|
1296
|
+
_path_params['addressing_identifier'] = addressing_identifier
|
|
1297
|
+
# process the query parameters
|
|
1298
|
+
# process the header parameters
|
|
1299
|
+
# process the form parameters
|
|
1300
|
+
# process the body parameter
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
# set the HTTP header `Accept`
|
|
1304
|
+
if 'Accept' not in _header_params:
|
|
1305
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1306
|
+
[
|
|
1307
|
+
'application/json'
|
|
1308
|
+
]
|
|
1309
|
+
)
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
# authentication setting
|
|
1313
|
+
_auth_settings: List[str] = [
|
|
1314
|
+
]
|
|
1315
|
+
|
|
1316
|
+
return self.api_client.param_serialize(
|
|
1317
|
+
method='GET',
|
|
1318
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line/code:{addressing_identifier}',
|
|
1319
|
+
path_params=_path_params,
|
|
1320
|
+
query_params=_query_params,
|
|
1321
|
+
header_params=_header_params,
|
|
1322
|
+
body=_body_params,
|
|
1323
|
+
post_params=_form_params,
|
|
1324
|
+
files=_files,
|
|
1325
|
+
auth_settings=_auth_settings,
|
|
1326
|
+
collection_formats=_collection_formats,
|
|
1327
|
+
_host=_host,
|
|
1328
|
+
_request_auth=_request_auth
|
|
1329
|
+
)
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
@validate_call
|
|
1335
|
+
def get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get(
|
|
1336
|
+
self,
|
|
1337
|
+
id_instance: StrictStr,
|
|
1338
|
+
_request_timeout: Union[
|
|
1339
|
+
None,
|
|
1340
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1341
|
+
Tuple[
|
|
1342
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1343
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1344
|
+
]
|
|
1345
|
+
] = None,
|
|
1346
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1347
|
+
_content_type: Optional[StrictStr] = None,
|
|
1348
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1349
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1350
|
+
) -> object:
|
|
1351
|
+
"""Get a directory line
|
|
1352
|
+
|
|
1353
|
+
Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
1354
|
+
|
|
1355
|
+
:param id_instance: (required)
|
|
1356
|
+
:type id_instance: str
|
|
1357
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1358
|
+
number provided, it will be total request
|
|
1359
|
+
timeout. It can also be a pair (tuple) of
|
|
1360
|
+
(connection, read) timeouts.
|
|
1361
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1362
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1363
|
+
request; this effectively ignores the
|
|
1364
|
+
authentication in the spec for a single request.
|
|
1365
|
+
:type _request_auth: dict, optional
|
|
1366
|
+
:param _content_type: force content-type for the request.
|
|
1367
|
+
:type _content_type: str, Optional
|
|
1368
|
+
:param _headers: set to override the headers for a single
|
|
1369
|
+
request; this effectively ignores the headers
|
|
1370
|
+
in the spec for a single request.
|
|
1371
|
+
:type _headers: dict, optional
|
|
1372
|
+
:param _host_index: set to override the host_index for a single
|
|
1373
|
+
request; this effectively ignores the host_index
|
|
1374
|
+
in the spec for a single request.
|
|
1375
|
+
:type _host_index: int, optional
|
|
1376
|
+
:return: Returns the result object.
|
|
1377
|
+
""" # noqa: E501
|
|
1378
|
+
|
|
1379
|
+
_param = self._get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_serialize(
|
|
1380
|
+
id_instance=id_instance,
|
|
1381
|
+
_request_auth=_request_auth,
|
|
1382
|
+
_content_type=_content_type,
|
|
1383
|
+
_headers=_headers,
|
|
1384
|
+
_host_index=_host_index
|
|
1385
|
+
)
|
|
1386
|
+
|
|
1387
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1388
|
+
'200': "object",
|
|
1389
|
+
'404': None,
|
|
1390
|
+
'401': None,
|
|
1391
|
+
'422': "HTTPValidationError",
|
|
1392
|
+
}
|
|
1393
|
+
response_data = self.api_client.call_api(
|
|
1394
|
+
*_param,
|
|
1395
|
+
_request_timeout=_request_timeout
|
|
1396
|
+
)
|
|
1397
|
+
response_data.read()
|
|
1398
|
+
return self.api_client.response_deserialize(
|
|
1399
|
+
response_data=response_data,
|
|
1400
|
+
response_types_map=_response_types_map,
|
|
1401
|
+
).data
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
@validate_call
|
|
1405
|
+
def get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_with_http_info(
|
|
1406
|
+
self,
|
|
1407
|
+
id_instance: StrictStr,
|
|
1408
|
+
_request_timeout: Union[
|
|
1409
|
+
None,
|
|
1410
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1411
|
+
Tuple[
|
|
1412
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1413
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1414
|
+
]
|
|
1415
|
+
] = None,
|
|
1416
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1417
|
+
_content_type: Optional[StrictStr] = None,
|
|
1418
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1419
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1420
|
+
) -> ApiResponse[object]:
|
|
1421
|
+
"""Get a directory line
|
|
1422
|
+
|
|
1423
|
+
Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
1424
|
+
|
|
1425
|
+
:param id_instance: (required)
|
|
1426
|
+
:type id_instance: str
|
|
1427
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1428
|
+
number provided, it will be total request
|
|
1429
|
+
timeout. It can also be a pair (tuple) of
|
|
1430
|
+
(connection, read) timeouts.
|
|
1431
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1432
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1433
|
+
request; this effectively ignores the
|
|
1434
|
+
authentication in the spec for a single request.
|
|
1435
|
+
:type _request_auth: dict, optional
|
|
1436
|
+
:param _content_type: force content-type for the request.
|
|
1437
|
+
:type _content_type: str, Optional
|
|
1438
|
+
:param _headers: set to override the headers for a single
|
|
1439
|
+
request; this effectively ignores the headers
|
|
1440
|
+
in the spec for a single request.
|
|
1441
|
+
:type _headers: dict, optional
|
|
1442
|
+
:param _host_index: set to override the host_index for a single
|
|
1443
|
+
request; this effectively ignores the host_index
|
|
1444
|
+
in the spec for a single request.
|
|
1445
|
+
:type _host_index: int, optional
|
|
1446
|
+
:return: Returns the result object.
|
|
1447
|
+
""" # noqa: E501
|
|
1448
|
+
|
|
1449
|
+
_param = self._get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_serialize(
|
|
1450
|
+
id_instance=id_instance,
|
|
1451
|
+
_request_auth=_request_auth,
|
|
1452
|
+
_content_type=_content_type,
|
|
1453
|
+
_headers=_headers,
|
|
1454
|
+
_host_index=_host_index
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1458
|
+
'200': "object",
|
|
1459
|
+
'404': None,
|
|
1460
|
+
'401': None,
|
|
1461
|
+
'422': "HTTPValidationError",
|
|
1462
|
+
}
|
|
1463
|
+
response_data = self.api_client.call_api(
|
|
1464
|
+
*_param,
|
|
1465
|
+
_request_timeout=_request_timeout
|
|
1466
|
+
)
|
|
1467
|
+
response_data.read()
|
|
1468
|
+
return self.api_client.response_deserialize(
|
|
1469
|
+
response_data=response_data,
|
|
1470
|
+
response_types_map=_response_types_map,
|
|
1471
|
+
)
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
@validate_call
|
|
1475
|
+
def get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_without_preload_content(
|
|
1476
|
+
self,
|
|
1477
|
+
id_instance: StrictStr,
|
|
1478
|
+
_request_timeout: Union[
|
|
1479
|
+
None,
|
|
1480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1481
|
+
Tuple[
|
|
1482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1483
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1484
|
+
]
|
|
1485
|
+
] = None,
|
|
1486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1487
|
+
_content_type: Optional[StrictStr] = None,
|
|
1488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1490
|
+
) -> RESTResponseType:
|
|
1491
|
+
"""Get a directory line
|
|
1492
|
+
|
|
1493
|
+
Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
1494
|
+
|
|
1495
|
+
:param id_instance: (required)
|
|
1496
|
+
:type id_instance: str
|
|
1497
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1498
|
+
number provided, it will be total request
|
|
1499
|
+
timeout. It can also be a pair (tuple) of
|
|
1500
|
+
(connection, read) timeouts.
|
|
1501
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1502
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1503
|
+
request; this effectively ignores the
|
|
1504
|
+
authentication in the spec for a single request.
|
|
1505
|
+
:type _request_auth: dict, optional
|
|
1506
|
+
:param _content_type: force content-type for the request.
|
|
1507
|
+
:type _content_type: str, Optional
|
|
1508
|
+
:param _headers: set to override the headers for a single
|
|
1509
|
+
request; this effectively ignores the headers
|
|
1510
|
+
in the spec for a single request.
|
|
1511
|
+
:type _headers: dict, optional
|
|
1512
|
+
:param _host_index: set to override the host_index for a single
|
|
1513
|
+
request; this effectively ignores the host_index
|
|
1514
|
+
in the spec for a single request.
|
|
1515
|
+
:type _host_index: int, optional
|
|
1516
|
+
:return: Returns the result object.
|
|
1517
|
+
""" # noqa: E501
|
|
1518
|
+
|
|
1519
|
+
_param = self._get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_serialize(
|
|
1520
|
+
id_instance=id_instance,
|
|
1521
|
+
_request_auth=_request_auth,
|
|
1522
|
+
_content_type=_content_type,
|
|
1523
|
+
_headers=_headers,
|
|
1524
|
+
_host_index=_host_index
|
|
1525
|
+
)
|
|
1526
|
+
|
|
1527
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1528
|
+
'200': "object",
|
|
1529
|
+
'404': None,
|
|
1530
|
+
'401': None,
|
|
1531
|
+
'422': "HTTPValidationError",
|
|
1532
|
+
}
|
|
1533
|
+
response_data = self.api_client.call_api(
|
|
1534
|
+
*_param,
|
|
1535
|
+
_request_timeout=_request_timeout
|
|
1536
|
+
)
|
|
1537
|
+
return response_data.response
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
def _get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_serialize(
|
|
1541
|
+
self,
|
|
1542
|
+
id_instance,
|
|
1543
|
+
_request_auth,
|
|
1544
|
+
_content_type,
|
|
1545
|
+
_headers,
|
|
1546
|
+
_host_index,
|
|
1547
|
+
) -> RequestSerialized:
|
|
1548
|
+
|
|
1549
|
+
_host = None
|
|
1550
|
+
|
|
1551
|
+
_collection_formats: Dict[str, str] = {
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
_path_params: Dict[str, str] = {}
|
|
1555
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1556
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1557
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1558
|
+
_files: Dict[
|
|
1559
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1560
|
+
] = {}
|
|
1561
|
+
_body_params: Optional[bytes] = None
|
|
1562
|
+
|
|
1563
|
+
# process the path parameters
|
|
1564
|
+
if id_instance is not None:
|
|
1565
|
+
_path_params['id_instance'] = id_instance
|
|
1566
|
+
# process the query parameters
|
|
1567
|
+
# process the header parameters
|
|
1568
|
+
# process the form parameters
|
|
1569
|
+
# process the body parameter
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
# set the HTTP header `Accept`
|
|
1573
|
+
if 'Accept' not in _header_params:
|
|
1574
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1575
|
+
[
|
|
1576
|
+
'application/json'
|
|
1577
|
+
]
|
|
1578
|
+
)
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
# authentication setting
|
|
1582
|
+
_auth_settings: List[str] = [
|
|
1583
|
+
]
|
|
1584
|
+
|
|
1585
|
+
return self.api_client.param_serialize(
|
|
1586
|
+
method='GET',
|
|
1587
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}',
|
|
1588
|
+
path_params=_path_params,
|
|
1589
|
+
query_params=_query_params,
|
|
1590
|
+
header_params=_header_params,
|
|
1591
|
+
body=_body_params,
|
|
1592
|
+
post_params=_form_params,
|
|
1593
|
+
files=_files,
|
|
1594
|
+
auth_settings=_auth_settings,
|
|
1595
|
+
collection_formats=_collection_formats,
|
|
1596
|
+
_host=_host,
|
|
1597
|
+
_request_auth=_request_auth
|
|
1598
|
+
)
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
@validate_call
|
|
1604
|
+
def get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get(
|
|
1605
|
+
self,
|
|
1606
|
+
id_instance: StrictStr,
|
|
1607
|
+
_request_timeout: Union[
|
|
1608
|
+
None,
|
|
1609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1610
|
+
Tuple[
|
|
1611
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1612
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1613
|
+
]
|
|
1614
|
+
] = None,
|
|
1615
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1616
|
+
_content_type: Optional[StrictStr] = None,
|
|
1617
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1618
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1619
|
+
) -> object:
|
|
1620
|
+
"""Get a routing code by instance-id
|
|
1621
|
+
|
|
1622
|
+
Obtenir un code de routage identifié par son idInstance
|
|
1623
|
+
|
|
1624
|
+
:param id_instance: (required)
|
|
1625
|
+
:type id_instance: str
|
|
1626
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1627
|
+
number provided, it will be total request
|
|
1628
|
+
timeout. It can also be a pair (tuple) of
|
|
1629
|
+
(connection, read) timeouts.
|
|
1630
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1631
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1632
|
+
request; this effectively ignores the
|
|
1633
|
+
authentication in the spec for a single request.
|
|
1634
|
+
:type _request_auth: dict, optional
|
|
1635
|
+
:param _content_type: force content-type for the request.
|
|
1636
|
+
:type _content_type: str, Optional
|
|
1637
|
+
:param _headers: set to override the headers for a single
|
|
1638
|
+
request; this effectively ignores the headers
|
|
1639
|
+
in the spec for a single request.
|
|
1640
|
+
:type _headers: dict, optional
|
|
1641
|
+
:param _host_index: set to override the host_index for a single
|
|
1642
|
+
request; this effectively ignores the host_index
|
|
1643
|
+
in the spec for a single request.
|
|
1644
|
+
:type _host_index: int, optional
|
|
1645
|
+
:return: Returns the result object.
|
|
1646
|
+
""" # noqa: E501
|
|
1647
|
+
|
|
1648
|
+
_param = self._get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_serialize(
|
|
1649
|
+
id_instance=id_instance,
|
|
1650
|
+
_request_auth=_request_auth,
|
|
1651
|
+
_content_type=_content_type,
|
|
1652
|
+
_headers=_headers,
|
|
1653
|
+
_host_index=_host_index
|
|
1654
|
+
)
|
|
1655
|
+
|
|
1656
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1657
|
+
'200': "object",
|
|
1658
|
+
'404': None,
|
|
1659
|
+
'401': None,
|
|
1660
|
+
'422': "HTTPValidationError",
|
|
1661
|
+
}
|
|
1662
|
+
response_data = self.api_client.call_api(
|
|
1663
|
+
*_param,
|
|
1664
|
+
_request_timeout=_request_timeout
|
|
1665
|
+
)
|
|
1666
|
+
response_data.read()
|
|
1667
|
+
return self.api_client.response_deserialize(
|
|
1668
|
+
response_data=response_data,
|
|
1669
|
+
response_types_map=_response_types_map,
|
|
1670
|
+
).data
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
@validate_call
|
|
1674
|
+
def get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_with_http_info(
|
|
1675
|
+
self,
|
|
1676
|
+
id_instance: StrictStr,
|
|
1677
|
+
_request_timeout: Union[
|
|
1678
|
+
None,
|
|
1679
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1680
|
+
Tuple[
|
|
1681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1682
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1683
|
+
]
|
|
1684
|
+
] = None,
|
|
1685
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1686
|
+
_content_type: Optional[StrictStr] = None,
|
|
1687
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1688
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1689
|
+
) -> ApiResponse[object]:
|
|
1690
|
+
"""Get a routing code by instance-id
|
|
1691
|
+
|
|
1692
|
+
Obtenir un code de routage identifié par son idInstance
|
|
1693
|
+
|
|
1694
|
+
:param id_instance: (required)
|
|
1695
|
+
:type id_instance: str
|
|
1696
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1697
|
+
number provided, it will be total request
|
|
1698
|
+
timeout. It can also be a pair (tuple) of
|
|
1699
|
+
(connection, read) timeouts.
|
|
1700
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1701
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1702
|
+
request; this effectively ignores the
|
|
1703
|
+
authentication in the spec for a single request.
|
|
1704
|
+
:type _request_auth: dict, optional
|
|
1705
|
+
:param _content_type: force content-type for the request.
|
|
1706
|
+
:type _content_type: str, Optional
|
|
1707
|
+
:param _headers: set to override the headers for a single
|
|
1708
|
+
request; this effectively ignores the headers
|
|
1709
|
+
in the spec for a single request.
|
|
1710
|
+
:type _headers: dict, optional
|
|
1711
|
+
:param _host_index: set to override the host_index for a single
|
|
1712
|
+
request; this effectively ignores the host_index
|
|
1713
|
+
in the spec for a single request.
|
|
1714
|
+
:type _host_index: int, optional
|
|
1715
|
+
:return: Returns the result object.
|
|
1716
|
+
""" # noqa: E501
|
|
1717
|
+
|
|
1718
|
+
_param = self._get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_serialize(
|
|
1719
|
+
id_instance=id_instance,
|
|
1720
|
+
_request_auth=_request_auth,
|
|
1721
|
+
_content_type=_content_type,
|
|
1722
|
+
_headers=_headers,
|
|
1723
|
+
_host_index=_host_index
|
|
1724
|
+
)
|
|
1725
|
+
|
|
1726
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1727
|
+
'200': "object",
|
|
1728
|
+
'404': None,
|
|
1729
|
+
'401': None,
|
|
1730
|
+
'422': "HTTPValidationError",
|
|
1731
|
+
}
|
|
1732
|
+
response_data = self.api_client.call_api(
|
|
1733
|
+
*_param,
|
|
1734
|
+
_request_timeout=_request_timeout
|
|
1735
|
+
)
|
|
1736
|
+
response_data.read()
|
|
1737
|
+
return self.api_client.response_deserialize(
|
|
1738
|
+
response_data=response_data,
|
|
1739
|
+
response_types_map=_response_types_map,
|
|
1740
|
+
)
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
@validate_call
|
|
1744
|
+
def get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_without_preload_content(
|
|
1745
|
+
self,
|
|
1746
|
+
id_instance: StrictStr,
|
|
1747
|
+
_request_timeout: Union[
|
|
1748
|
+
None,
|
|
1749
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1750
|
+
Tuple[
|
|
1751
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1752
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1753
|
+
]
|
|
1754
|
+
] = None,
|
|
1755
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1756
|
+
_content_type: Optional[StrictStr] = None,
|
|
1757
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1758
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1759
|
+
) -> RESTResponseType:
|
|
1760
|
+
"""Get a routing code by instance-id
|
|
1761
|
+
|
|
1762
|
+
Obtenir un code de routage identifié par son idInstance
|
|
1763
|
+
|
|
1764
|
+
:param id_instance: (required)
|
|
1765
|
+
:type id_instance: str
|
|
1766
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1767
|
+
number provided, it will be total request
|
|
1768
|
+
timeout. It can also be a pair (tuple) of
|
|
1769
|
+
(connection, read) timeouts.
|
|
1770
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1771
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1772
|
+
request; this effectively ignores the
|
|
1773
|
+
authentication in the spec for a single request.
|
|
1774
|
+
:type _request_auth: dict, optional
|
|
1775
|
+
:param _content_type: force content-type for the request.
|
|
1776
|
+
:type _content_type: str, Optional
|
|
1777
|
+
:param _headers: set to override the headers for a single
|
|
1778
|
+
request; this effectively ignores the headers
|
|
1779
|
+
in the spec for a single request.
|
|
1780
|
+
:type _headers: dict, optional
|
|
1781
|
+
:param _host_index: set to override the host_index for a single
|
|
1782
|
+
request; this effectively ignores the host_index
|
|
1783
|
+
in the spec for a single request.
|
|
1784
|
+
:type _host_index: int, optional
|
|
1785
|
+
:return: Returns the result object.
|
|
1786
|
+
""" # noqa: E501
|
|
1787
|
+
|
|
1788
|
+
_param = self._get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_serialize(
|
|
1789
|
+
id_instance=id_instance,
|
|
1790
|
+
_request_auth=_request_auth,
|
|
1791
|
+
_content_type=_content_type,
|
|
1792
|
+
_headers=_headers,
|
|
1793
|
+
_host_index=_host_index
|
|
1794
|
+
)
|
|
1795
|
+
|
|
1796
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1797
|
+
'200': "object",
|
|
1798
|
+
'404': None,
|
|
1799
|
+
'401': None,
|
|
1800
|
+
'422': "HTTPValidationError",
|
|
1801
|
+
}
|
|
1802
|
+
response_data = self.api_client.call_api(
|
|
1803
|
+
*_param,
|
|
1804
|
+
_request_timeout=_request_timeout
|
|
1805
|
+
)
|
|
1806
|
+
return response_data.response
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
def _get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_serialize(
|
|
1810
|
+
self,
|
|
1811
|
+
id_instance,
|
|
1812
|
+
_request_auth,
|
|
1813
|
+
_content_type,
|
|
1814
|
+
_headers,
|
|
1815
|
+
_host_index,
|
|
1816
|
+
) -> RequestSerialized:
|
|
1817
|
+
|
|
1818
|
+
_host = None
|
|
1819
|
+
|
|
1820
|
+
_collection_formats: Dict[str, str] = {
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
_path_params: Dict[str, str] = {}
|
|
1824
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1825
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1826
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1827
|
+
_files: Dict[
|
|
1828
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1829
|
+
] = {}
|
|
1830
|
+
_body_params: Optional[bytes] = None
|
|
1831
|
+
|
|
1832
|
+
# process the path parameters
|
|
1833
|
+
if id_instance is not None:
|
|
1834
|
+
_path_params['id_instance'] = id_instance
|
|
1835
|
+
# process the query parameters
|
|
1836
|
+
# process the header parameters
|
|
1837
|
+
# process the form parameters
|
|
1838
|
+
# process the body parameter
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
# set the HTTP header `Accept`
|
|
1842
|
+
if 'Accept' not in _header_params:
|
|
1843
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1844
|
+
[
|
|
1845
|
+
'application/json'
|
|
1846
|
+
]
|
|
1847
|
+
)
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
# authentication setting
|
|
1851
|
+
_auth_settings: List[str] = [
|
|
1852
|
+
]
|
|
1853
|
+
|
|
1854
|
+
return self.api_client.param_serialize(
|
|
1855
|
+
method='GET',
|
|
1856
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}',
|
|
1857
|
+
path_params=_path_params,
|
|
1858
|
+
query_params=_query_params,
|
|
1859
|
+
header_params=_header_params,
|
|
1860
|
+
body=_body_params,
|
|
1861
|
+
post_params=_form_params,
|
|
1862
|
+
files=_files,
|
|
1863
|
+
auth_settings=_auth_settings,
|
|
1864
|
+
collection_formats=_collection_formats,
|
|
1865
|
+
_host=_host,
|
|
1866
|
+
_request_auth=_request_auth
|
|
1867
|
+
)
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
@validate_call
|
|
1873
|
+
def get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get(
|
|
1874
|
+
self,
|
|
1875
|
+
siret: StrictStr,
|
|
1876
|
+
routing_identifier: StrictStr,
|
|
1877
|
+
_request_timeout: Union[
|
|
1878
|
+
None,
|
|
1879
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1880
|
+
Tuple[
|
|
1881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1882
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1883
|
+
]
|
|
1884
|
+
] = None,
|
|
1885
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1886
|
+
_content_type: Optional[StrictStr] = None,
|
|
1887
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1888
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1889
|
+
) -> object:
|
|
1890
|
+
"""Get a routing code by SIRET and routing identifier
|
|
1891
|
+
|
|
1892
|
+
Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
1893
|
+
|
|
1894
|
+
:param siret: (required)
|
|
1895
|
+
:type siret: str
|
|
1896
|
+
:param routing_identifier: (required)
|
|
1897
|
+
:type routing_identifier: str
|
|
1898
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1899
|
+
number provided, it will be total request
|
|
1900
|
+
timeout. It can also be a pair (tuple) of
|
|
1901
|
+
(connection, read) timeouts.
|
|
1902
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1903
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1904
|
+
request; this effectively ignores the
|
|
1905
|
+
authentication in the spec for a single request.
|
|
1906
|
+
:type _request_auth: dict, optional
|
|
1907
|
+
:param _content_type: force content-type for the request.
|
|
1908
|
+
:type _content_type: str, Optional
|
|
1909
|
+
:param _headers: set to override the headers for a single
|
|
1910
|
+
request; this effectively ignores the headers
|
|
1911
|
+
in the spec for a single request.
|
|
1912
|
+
:type _headers: dict, optional
|
|
1913
|
+
:param _host_index: set to override the host_index for a single
|
|
1914
|
+
request; this effectively ignores the host_index
|
|
1915
|
+
in the spec for a single request.
|
|
1916
|
+
:type _host_index: int, optional
|
|
1917
|
+
:return: Returns the result object.
|
|
1918
|
+
""" # noqa: E501
|
|
1919
|
+
|
|
1920
|
+
_param = self._get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_serialize(
|
|
1921
|
+
siret=siret,
|
|
1922
|
+
routing_identifier=routing_identifier,
|
|
1923
|
+
_request_auth=_request_auth,
|
|
1924
|
+
_content_type=_content_type,
|
|
1925
|
+
_headers=_headers,
|
|
1926
|
+
_host_index=_host_index
|
|
1927
|
+
)
|
|
1928
|
+
|
|
1929
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1930
|
+
'200': "object",
|
|
1931
|
+
'404': None,
|
|
1932
|
+
'401': None,
|
|
1933
|
+
'422': "HTTPValidationError",
|
|
1934
|
+
}
|
|
1935
|
+
response_data = self.api_client.call_api(
|
|
1936
|
+
*_param,
|
|
1937
|
+
_request_timeout=_request_timeout
|
|
1938
|
+
)
|
|
1939
|
+
response_data.read()
|
|
1940
|
+
return self.api_client.response_deserialize(
|
|
1941
|
+
response_data=response_data,
|
|
1942
|
+
response_types_map=_response_types_map,
|
|
1943
|
+
).data
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
@validate_call
|
|
1947
|
+
def get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_with_http_info(
|
|
1948
|
+
self,
|
|
1949
|
+
siret: StrictStr,
|
|
1950
|
+
routing_identifier: StrictStr,
|
|
1951
|
+
_request_timeout: Union[
|
|
1952
|
+
None,
|
|
1953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1954
|
+
Tuple[
|
|
1955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1956
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1957
|
+
]
|
|
1958
|
+
] = None,
|
|
1959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1960
|
+
_content_type: Optional[StrictStr] = None,
|
|
1961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1963
|
+
) -> ApiResponse[object]:
|
|
1964
|
+
"""Get a routing code by SIRET and routing identifier
|
|
1965
|
+
|
|
1966
|
+
Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
1967
|
+
|
|
1968
|
+
:param siret: (required)
|
|
1969
|
+
:type siret: str
|
|
1970
|
+
:param routing_identifier: (required)
|
|
1971
|
+
:type routing_identifier: str
|
|
1972
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1973
|
+
number provided, it will be total request
|
|
1974
|
+
timeout. It can also be a pair (tuple) of
|
|
1975
|
+
(connection, read) timeouts.
|
|
1976
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1977
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1978
|
+
request; this effectively ignores the
|
|
1979
|
+
authentication in the spec for a single request.
|
|
1980
|
+
:type _request_auth: dict, optional
|
|
1981
|
+
:param _content_type: force content-type for the request.
|
|
1982
|
+
:type _content_type: str, Optional
|
|
1983
|
+
:param _headers: set to override the headers for a single
|
|
1984
|
+
request; this effectively ignores the headers
|
|
1985
|
+
in the spec for a single request.
|
|
1986
|
+
:type _headers: dict, optional
|
|
1987
|
+
:param _host_index: set to override the host_index for a single
|
|
1988
|
+
request; this effectively ignores the host_index
|
|
1989
|
+
in the spec for a single request.
|
|
1990
|
+
:type _host_index: int, optional
|
|
1991
|
+
:return: Returns the result object.
|
|
1992
|
+
""" # noqa: E501
|
|
1993
|
+
|
|
1994
|
+
_param = self._get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_serialize(
|
|
1995
|
+
siret=siret,
|
|
1996
|
+
routing_identifier=routing_identifier,
|
|
1997
|
+
_request_auth=_request_auth,
|
|
1998
|
+
_content_type=_content_type,
|
|
1999
|
+
_headers=_headers,
|
|
2000
|
+
_host_index=_host_index
|
|
2001
|
+
)
|
|
2002
|
+
|
|
2003
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2004
|
+
'200': "object",
|
|
2005
|
+
'404': None,
|
|
2006
|
+
'401': None,
|
|
2007
|
+
'422': "HTTPValidationError",
|
|
2008
|
+
}
|
|
2009
|
+
response_data = self.api_client.call_api(
|
|
2010
|
+
*_param,
|
|
2011
|
+
_request_timeout=_request_timeout
|
|
2012
|
+
)
|
|
2013
|
+
response_data.read()
|
|
2014
|
+
return self.api_client.response_deserialize(
|
|
2015
|
+
response_data=response_data,
|
|
2016
|
+
response_types_map=_response_types_map,
|
|
2017
|
+
)
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
@validate_call
|
|
2021
|
+
def get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_without_preload_content(
|
|
2022
|
+
self,
|
|
2023
|
+
siret: StrictStr,
|
|
2024
|
+
routing_identifier: StrictStr,
|
|
2025
|
+
_request_timeout: Union[
|
|
2026
|
+
None,
|
|
2027
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2028
|
+
Tuple[
|
|
2029
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2030
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2031
|
+
]
|
|
2032
|
+
] = None,
|
|
2033
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2034
|
+
_content_type: Optional[StrictStr] = None,
|
|
2035
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2036
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2037
|
+
) -> RESTResponseType:
|
|
2038
|
+
"""Get a routing code by SIRET and routing identifier
|
|
2039
|
+
|
|
2040
|
+
Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
2041
|
+
|
|
2042
|
+
:param siret: (required)
|
|
2043
|
+
:type siret: str
|
|
2044
|
+
:param routing_identifier: (required)
|
|
2045
|
+
:type routing_identifier: str
|
|
2046
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2047
|
+
number provided, it will be total request
|
|
2048
|
+
timeout. It can also be a pair (tuple) of
|
|
2049
|
+
(connection, read) timeouts.
|
|
2050
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2051
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2052
|
+
request; this effectively ignores the
|
|
2053
|
+
authentication in the spec for a single request.
|
|
2054
|
+
:type _request_auth: dict, optional
|
|
2055
|
+
:param _content_type: force content-type for the request.
|
|
2056
|
+
:type _content_type: str, Optional
|
|
2057
|
+
:param _headers: set to override the headers for a single
|
|
2058
|
+
request; this effectively ignores the headers
|
|
2059
|
+
in the spec for a single request.
|
|
2060
|
+
:type _headers: dict, optional
|
|
2061
|
+
:param _host_index: set to override the host_index for a single
|
|
2062
|
+
request; this effectively ignores the host_index
|
|
2063
|
+
in the spec for a single request.
|
|
2064
|
+
:type _host_index: int, optional
|
|
2065
|
+
:return: Returns the result object.
|
|
2066
|
+
""" # noqa: E501
|
|
2067
|
+
|
|
2068
|
+
_param = self._get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_serialize(
|
|
2069
|
+
siret=siret,
|
|
2070
|
+
routing_identifier=routing_identifier,
|
|
2071
|
+
_request_auth=_request_auth,
|
|
2072
|
+
_content_type=_content_type,
|
|
2073
|
+
_headers=_headers,
|
|
2074
|
+
_host_index=_host_index
|
|
2075
|
+
)
|
|
2076
|
+
|
|
2077
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2078
|
+
'200': "object",
|
|
2079
|
+
'404': None,
|
|
2080
|
+
'401': None,
|
|
2081
|
+
'422': "HTTPValidationError",
|
|
2082
|
+
}
|
|
2083
|
+
response_data = self.api_client.call_api(
|
|
2084
|
+
*_param,
|
|
2085
|
+
_request_timeout=_request_timeout
|
|
2086
|
+
)
|
|
2087
|
+
return response_data.response
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
def _get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_serialize(
|
|
2091
|
+
self,
|
|
2092
|
+
siret,
|
|
2093
|
+
routing_identifier,
|
|
2094
|
+
_request_auth,
|
|
2095
|
+
_content_type,
|
|
2096
|
+
_headers,
|
|
2097
|
+
_host_index,
|
|
2098
|
+
) -> RequestSerialized:
|
|
2099
|
+
|
|
2100
|
+
_host = None
|
|
2101
|
+
|
|
2102
|
+
_collection_formats: Dict[str, str] = {
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
_path_params: Dict[str, str] = {}
|
|
2106
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2107
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2108
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2109
|
+
_files: Dict[
|
|
2110
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2111
|
+
] = {}
|
|
2112
|
+
_body_params: Optional[bytes] = None
|
|
2113
|
+
|
|
2114
|
+
# process the path parameters
|
|
2115
|
+
if siret is not None:
|
|
2116
|
+
_path_params['siret'] = siret
|
|
2117
|
+
if routing_identifier is not None:
|
|
2118
|
+
_path_params['routing_identifier'] = routing_identifier
|
|
2119
|
+
# process the query parameters
|
|
2120
|
+
# process the header parameters
|
|
2121
|
+
# process the form parameters
|
|
2122
|
+
# process the body parameter
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
# set the HTTP header `Accept`
|
|
2126
|
+
if 'Accept' not in _header_params:
|
|
2127
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2128
|
+
[
|
|
2129
|
+
'application/json'
|
|
2130
|
+
]
|
|
2131
|
+
)
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
# authentication setting
|
|
2135
|
+
_auth_settings: List[str] = [
|
|
2136
|
+
]
|
|
2137
|
+
|
|
2138
|
+
return self.api_client.param_serialize(
|
|
2139
|
+
method='GET',
|
|
2140
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code/siret:{siret}/code:{routing_identifier}',
|
|
2141
|
+
path_params=_path_params,
|
|
2142
|
+
query_params=_query_params,
|
|
2143
|
+
header_params=_header_params,
|
|
2144
|
+
body=_body_params,
|
|
2145
|
+
post_params=_form_params,
|
|
2146
|
+
files=_files,
|
|
2147
|
+
auth_settings=_auth_settings,
|
|
2148
|
+
collection_formats=_collection_formats,
|
|
2149
|
+
_host=_host,
|
|
2150
|
+
_request_auth=_request_auth
|
|
2151
|
+
)
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
@validate_call
|
|
2157
|
+
def get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get(
|
|
2158
|
+
self,
|
|
2159
|
+
siren: StrictStr,
|
|
2160
|
+
_request_timeout: Union[
|
|
2161
|
+
None,
|
|
2162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2163
|
+
Tuple[
|
|
2164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2165
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2166
|
+
]
|
|
2167
|
+
] = None,
|
|
2168
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2169
|
+
_content_type: Optional[StrictStr] = None,
|
|
2170
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2171
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2172
|
+
) -> object:
|
|
2173
|
+
"""Consult a siren (legal unit) by SIREN number
|
|
2174
|
+
|
|
2175
|
+
Retourne les détails d'une entreprise (unité légale) identifiée par son numéro SIREN
|
|
2176
|
+
|
|
2177
|
+
:param siren: (required)
|
|
2178
|
+
:type siren: str
|
|
2179
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2180
|
+
number provided, it will be total request
|
|
2181
|
+
timeout. It can also be a pair (tuple) of
|
|
2182
|
+
(connection, read) timeouts.
|
|
2183
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2184
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2185
|
+
request; this effectively ignores the
|
|
2186
|
+
authentication in the spec for a single request.
|
|
2187
|
+
:type _request_auth: dict, optional
|
|
2188
|
+
:param _content_type: force content-type for the request.
|
|
2189
|
+
:type _content_type: str, Optional
|
|
2190
|
+
:param _headers: set to override the headers for a single
|
|
2191
|
+
request; this effectively ignores the headers
|
|
2192
|
+
in the spec for a single request.
|
|
2193
|
+
:type _headers: dict, optional
|
|
2194
|
+
:param _host_index: set to override the host_index for a single
|
|
2195
|
+
request; this effectively ignores the host_index
|
|
2196
|
+
in the spec for a single request.
|
|
2197
|
+
:type _host_index: int, optional
|
|
2198
|
+
:return: Returns the result object.
|
|
2199
|
+
""" # noqa: E501
|
|
2200
|
+
|
|
2201
|
+
_param = self._get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_serialize(
|
|
2202
|
+
siren=siren,
|
|
2203
|
+
_request_auth=_request_auth,
|
|
2204
|
+
_content_type=_content_type,
|
|
2205
|
+
_headers=_headers,
|
|
2206
|
+
_host_index=_host_index
|
|
2207
|
+
)
|
|
2208
|
+
|
|
2209
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2210
|
+
'200': "object",
|
|
2211
|
+
'404': None,
|
|
2212
|
+
'401': None,
|
|
2213
|
+
'422': "HTTPValidationError",
|
|
2214
|
+
}
|
|
2215
|
+
response_data = self.api_client.call_api(
|
|
2216
|
+
*_param,
|
|
2217
|
+
_request_timeout=_request_timeout
|
|
2218
|
+
)
|
|
2219
|
+
response_data.read()
|
|
2220
|
+
return self.api_client.response_deserialize(
|
|
2221
|
+
response_data=response_data,
|
|
2222
|
+
response_types_map=_response_types_map,
|
|
2223
|
+
).data
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
@validate_call
|
|
2227
|
+
def get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_with_http_info(
|
|
2228
|
+
self,
|
|
2229
|
+
siren: StrictStr,
|
|
2230
|
+
_request_timeout: Union[
|
|
2231
|
+
None,
|
|
2232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2233
|
+
Tuple[
|
|
2234
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2235
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2236
|
+
]
|
|
2237
|
+
] = None,
|
|
2238
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2239
|
+
_content_type: Optional[StrictStr] = None,
|
|
2240
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2241
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2242
|
+
) -> ApiResponse[object]:
|
|
2243
|
+
"""Consult a siren (legal unit) by SIREN number
|
|
2244
|
+
|
|
2245
|
+
Retourne les détails d'une entreprise (unité légale) identifiée par son numéro SIREN
|
|
2246
|
+
|
|
2247
|
+
:param siren: (required)
|
|
2248
|
+
:type siren: str
|
|
2249
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2250
|
+
number provided, it will be total request
|
|
2251
|
+
timeout. It can also be a pair (tuple) of
|
|
2252
|
+
(connection, read) timeouts.
|
|
2253
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2254
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2255
|
+
request; this effectively ignores the
|
|
2256
|
+
authentication in the spec for a single request.
|
|
2257
|
+
:type _request_auth: dict, optional
|
|
2258
|
+
:param _content_type: force content-type for the request.
|
|
2259
|
+
:type _content_type: str, Optional
|
|
2260
|
+
:param _headers: set to override the headers for a single
|
|
2261
|
+
request; this effectively ignores the headers
|
|
2262
|
+
in the spec for a single request.
|
|
2263
|
+
:type _headers: dict, optional
|
|
2264
|
+
:param _host_index: set to override the host_index for a single
|
|
2265
|
+
request; this effectively ignores the host_index
|
|
2266
|
+
in the spec for a single request.
|
|
2267
|
+
:type _host_index: int, optional
|
|
2268
|
+
:return: Returns the result object.
|
|
2269
|
+
""" # noqa: E501
|
|
2270
|
+
|
|
2271
|
+
_param = self._get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_serialize(
|
|
2272
|
+
siren=siren,
|
|
2273
|
+
_request_auth=_request_auth,
|
|
2274
|
+
_content_type=_content_type,
|
|
2275
|
+
_headers=_headers,
|
|
2276
|
+
_host_index=_host_index
|
|
2277
|
+
)
|
|
2278
|
+
|
|
2279
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2280
|
+
'200': "object",
|
|
2281
|
+
'404': None,
|
|
2282
|
+
'401': None,
|
|
2283
|
+
'422': "HTTPValidationError",
|
|
2284
|
+
}
|
|
2285
|
+
response_data = self.api_client.call_api(
|
|
2286
|
+
*_param,
|
|
2287
|
+
_request_timeout=_request_timeout
|
|
2288
|
+
)
|
|
2289
|
+
response_data.read()
|
|
2290
|
+
return self.api_client.response_deserialize(
|
|
2291
|
+
response_data=response_data,
|
|
2292
|
+
response_types_map=_response_types_map,
|
|
2293
|
+
)
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
@validate_call
|
|
2297
|
+
def get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_without_preload_content(
|
|
2298
|
+
self,
|
|
2299
|
+
siren: StrictStr,
|
|
2300
|
+
_request_timeout: Union[
|
|
2301
|
+
None,
|
|
2302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2303
|
+
Tuple[
|
|
2304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2305
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2306
|
+
]
|
|
2307
|
+
] = None,
|
|
2308
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2309
|
+
_content_type: Optional[StrictStr] = None,
|
|
2310
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2312
|
+
) -> RESTResponseType:
|
|
2313
|
+
"""Consult a siren (legal unit) by SIREN number
|
|
2314
|
+
|
|
2315
|
+
Retourne les détails d'une entreprise (unité légale) identifiée par son numéro SIREN
|
|
2316
|
+
|
|
2317
|
+
:param siren: (required)
|
|
2318
|
+
:type siren: str
|
|
2319
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2320
|
+
number provided, it will be total request
|
|
2321
|
+
timeout. It can also be a pair (tuple) of
|
|
2322
|
+
(connection, read) timeouts.
|
|
2323
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2324
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2325
|
+
request; this effectively ignores the
|
|
2326
|
+
authentication in the spec for a single request.
|
|
2327
|
+
:type _request_auth: dict, optional
|
|
2328
|
+
:param _content_type: force content-type for the request.
|
|
2329
|
+
:type _content_type: str, Optional
|
|
2330
|
+
:param _headers: set to override the headers for a single
|
|
2331
|
+
request; this effectively ignores the headers
|
|
2332
|
+
in the spec for a single request.
|
|
2333
|
+
:type _headers: dict, optional
|
|
2334
|
+
:param _host_index: set to override the host_index for a single
|
|
2335
|
+
request; this effectively ignores the host_index
|
|
2336
|
+
in the spec for a single request.
|
|
2337
|
+
:type _host_index: int, optional
|
|
2338
|
+
:return: Returns the result object.
|
|
2339
|
+
""" # noqa: E501
|
|
2340
|
+
|
|
2341
|
+
_param = self._get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_serialize(
|
|
2342
|
+
siren=siren,
|
|
2343
|
+
_request_auth=_request_auth,
|
|
2344
|
+
_content_type=_content_type,
|
|
2345
|
+
_headers=_headers,
|
|
2346
|
+
_host_index=_host_index
|
|
2347
|
+
)
|
|
2348
|
+
|
|
2349
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2350
|
+
'200': "object",
|
|
2351
|
+
'404': None,
|
|
2352
|
+
'401': None,
|
|
2353
|
+
'422': "HTTPValidationError",
|
|
2354
|
+
}
|
|
2355
|
+
response_data = self.api_client.call_api(
|
|
2356
|
+
*_param,
|
|
2357
|
+
_request_timeout=_request_timeout
|
|
2358
|
+
)
|
|
2359
|
+
return response_data.response
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
def _get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_serialize(
|
|
2363
|
+
self,
|
|
2364
|
+
siren,
|
|
2365
|
+
_request_auth,
|
|
2366
|
+
_content_type,
|
|
2367
|
+
_headers,
|
|
2368
|
+
_host_index,
|
|
2369
|
+
) -> RequestSerialized:
|
|
2370
|
+
|
|
2371
|
+
_host = None
|
|
2372
|
+
|
|
2373
|
+
_collection_formats: Dict[str, str] = {
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
_path_params: Dict[str, str] = {}
|
|
2377
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2378
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2379
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2380
|
+
_files: Dict[
|
|
2381
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2382
|
+
] = {}
|
|
2383
|
+
_body_params: Optional[bytes] = None
|
|
2384
|
+
|
|
2385
|
+
# process the path parameters
|
|
2386
|
+
if siren is not None:
|
|
2387
|
+
_path_params['siren'] = siren
|
|
2388
|
+
# process the query parameters
|
|
2389
|
+
# process the header parameters
|
|
2390
|
+
# process the form parameters
|
|
2391
|
+
# process the body parameter
|
|
2392
|
+
|
|
2393
|
+
|
|
2394
|
+
# set the HTTP header `Accept`
|
|
2395
|
+
if 'Accept' not in _header_params:
|
|
2396
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2397
|
+
[
|
|
2398
|
+
'application/json'
|
|
2399
|
+
]
|
|
2400
|
+
)
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
# authentication setting
|
|
2404
|
+
_auth_settings: List[str] = [
|
|
2405
|
+
]
|
|
2406
|
+
|
|
2407
|
+
return self.api_client.param_serialize(
|
|
2408
|
+
method='GET',
|
|
2409
|
+
resource_path='/api/v1/afnor/directory/v1/siren/code-insee:{siren}',
|
|
2410
|
+
path_params=_path_params,
|
|
2411
|
+
query_params=_query_params,
|
|
2412
|
+
header_params=_header_params,
|
|
2413
|
+
body=_body_params,
|
|
2414
|
+
post_params=_form_params,
|
|
2415
|
+
files=_files,
|
|
2416
|
+
auth_settings=_auth_settings,
|
|
2417
|
+
collection_formats=_collection_formats,
|
|
2418
|
+
_host=_host,
|
|
2419
|
+
_request_auth=_request_auth
|
|
2420
|
+
)
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
@validate_call
|
|
2426
|
+
def get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get(
|
|
2427
|
+
self,
|
|
2428
|
+
id_instance: StrictStr,
|
|
2429
|
+
_request_timeout: Union[
|
|
2430
|
+
None,
|
|
2431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2432
|
+
Tuple[
|
|
2433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2434
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2435
|
+
]
|
|
2436
|
+
] = None,
|
|
2437
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2438
|
+
_content_type: Optional[StrictStr] = None,
|
|
2439
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2440
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2441
|
+
) -> object:
|
|
2442
|
+
"""Gets a siren (legal unit) by instance ID
|
|
2443
|
+
|
|
2444
|
+
Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
2445
|
+
|
|
2446
|
+
:param id_instance: (required)
|
|
2447
|
+
:type id_instance: str
|
|
2448
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2449
|
+
number provided, it will be total request
|
|
2450
|
+
timeout. It can also be a pair (tuple) of
|
|
2451
|
+
(connection, read) timeouts.
|
|
2452
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2453
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2454
|
+
request; this effectively ignores the
|
|
2455
|
+
authentication in the spec for a single request.
|
|
2456
|
+
:type _request_auth: dict, optional
|
|
2457
|
+
:param _content_type: force content-type for the request.
|
|
2458
|
+
:type _content_type: str, Optional
|
|
2459
|
+
:param _headers: set to override the headers for a single
|
|
2460
|
+
request; this effectively ignores the headers
|
|
2461
|
+
in the spec for a single request.
|
|
2462
|
+
:type _headers: dict, optional
|
|
2463
|
+
:param _host_index: set to override the host_index for a single
|
|
2464
|
+
request; this effectively ignores the host_index
|
|
2465
|
+
in the spec for a single request.
|
|
2466
|
+
:type _host_index: int, optional
|
|
2467
|
+
:return: Returns the result object.
|
|
2468
|
+
""" # noqa: E501
|
|
2469
|
+
|
|
2470
|
+
_param = self._get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_serialize(
|
|
2471
|
+
id_instance=id_instance,
|
|
2472
|
+
_request_auth=_request_auth,
|
|
2473
|
+
_content_type=_content_type,
|
|
2474
|
+
_headers=_headers,
|
|
2475
|
+
_host_index=_host_index
|
|
2476
|
+
)
|
|
2477
|
+
|
|
2478
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2479
|
+
'200': "object",
|
|
2480
|
+
'404': None,
|
|
2481
|
+
'401': None,
|
|
2482
|
+
'422': "HTTPValidationError",
|
|
2483
|
+
}
|
|
2484
|
+
response_data = self.api_client.call_api(
|
|
2485
|
+
*_param,
|
|
2486
|
+
_request_timeout=_request_timeout
|
|
2487
|
+
)
|
|
2488
|
+
response_data.read()
|
|
2489
|
+
return self.api_client.response_deserialize(
|
|
2490
|
+
response_data=response_data,
|
|
2491
|
+
response_types_map=_response_types_map,
|
|
2492
|
+
).data
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
@validate_call
|
|
2496
|
+
def get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_with_http_info(
|
|
2497
|
+
self,
|
|
2498
|
+
id_instance: StrictStr,
|
|
2499
|
+
_request_timeout: Union[
|
|
2500
|
+
None,
|
|
2501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2502
|
+
Tuple[
|
|
2503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2504
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2505
|
+
]
|
|
2506
|
+
] = None,
|
|
2507
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2508
|
+
_content_type: Optional[StrictStr] = None,
|
|
2509
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2511
|
+
) -> ApiResponse[object]:
|
|
2512
|
+
"""Gets a siren (legal unit) by instance ID
|
|
2513
|
+
|
|
2514
|
+
Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
2515
|
+
|
|
2516
|
+
:param id_instance: (required)
|
|
2517
|
+
:type id_instance: str
|
|
2518
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2519
|
+
number provided, it will be total request
|
|
2520
|
+
timeout. It can also be a pair (tuple) of
|
|
2521
|
+
(connection, read) timeouts.
|
|
2522
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2523
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2524
|
+
request; this effectively ignores the
|
|
2525
|
+
authentication in the spec for a single request.
|
|
2526
|
+
:type _request_auth: dict, optional
|
|
2527
|
+
:param _content_type: force content-type for the request.
|
|
2528
|
+
:type _content_type: str, Optional
|
|
2529
|
+
:param _headers: set to override the headers for a single
|
|
2530
|
+
request; this effectively ignores the headers
|
|
2531
|
+
in the spec for a single request.
|
|
2532
|
+
:type _headers: dict, optional
|
|
2533
|
+
:param _host_index: set to override the host_index for a single
|
|
2534
|
+
request; this effectively ignores the host_index
|
|
2535
|
+
in the spec for a single request.
|
|
2536
|
+
:type _host_index: int, optional
|
|
2537
|
+
:return: Returns the result object.
|
|
2538
|
+
""" # noqa: E501
|
|
2539
|
+
|
|
2540
|
+
_param = self._get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_serialize(
|
|
2541
|
+
id_instance=id_instance,
|
|
2542
|
+
_request_auth=_request_auth,
|
|
2543
|
+
_content_type=_content_type,
|
|
2544
|
+
_headers=_headers,
|
|
2545
|
+
_host_index=_host_index
|
|
2546
|
+
)
|
|
2547
|
+
|
|
2548
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2549
|
+
'200': "object",
|
|
2550
|
+
'404': None,
|
|
2551
|
+
'401': None,
|
|
2552
|
+
'422': "HTTPValidationError",
|
|
2553
|
+
}
|
|
2554
|
+
response_data = self.api_client.call_api(
|
|
2555
|
+
*_param,
|
|
2556
|
+
_request_timeout=_request_timeout
|
|
2557
|
+
)
|
|
2558
|
+
response_data.read()
|
|
2559
|
+
return self.api_client.response_deserialize(
|
|
2560
|
+
response_data=response_data,
|
|
2561
|
+
response_types_map=_response_types_map,
|
|
2562
|
+
)
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
@validate_call
|
|
2566
|
+
def get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_without_preload_content(
|
|
2567
|
+
self,
|
|
2568
|
+
id_instance: StrictStr,
|
|
2569
|
+
_request_timeout: Union[
|
|
2570
|
+
None,
|
|
2571
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2572
|
+
Tuple[
|
|
2573
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2574
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2575
|
+
]
|
|
2576
|
+
] = None,
|
|
2577
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2578
|
+
_content_type: Optional[StrictStr] = None,
|
|
2579
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2580
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2581
|
+
) -> RESTResponseType:
|
|
2582
|
+
"""Gets a siren (legal unit) by instance ID
|
|
2583
|
+
|
|
2584
|
+
Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
2585
|
+
|
|
2586
|
+
:param id_instance: (required)
|
|
2587
|
+
:type id_instance: str
|
|
2588
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2589
|
+
number provided, it will be total request
|
|
2590
|
+
timeout. It can also be a pair (tuple) of
|
|
2591
|
+
(connection, read) timeouts.
|
|
2592
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2593
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2594
|
+
request; this effectively ignores the
|
|
2595
|
+
authentication in the spec for a single request.
|
|
2596
|
+
:type _request_auth: dict, optional
|
|
2597
|
+
:param _content_type: force content-type for the request.
|
|
2598
|
+
:type _content_type: str, Optional
|
|
2599
|
+
:param _headers: set to override the headers for a single
|
|
2600
|
+
request; this effectively ignores the headers
|
|
2601
|
+
in the spec for a single request.
|
|
2602
|
+
:type _headers: dict, optional
|
|
2603
|
+
:param _host_index: set to override the host_index for a single
|
|
2604
|
+
request; this effectively ignores the host_index
|
|
2605
|
+
in the spec for a single request.
|
|
2606
|
+
:type _host_index: int, optional
|
|
2607
|
+
:return: Returns the result object.
|
|
2608
|
+
""" # noqa: E501
|
|
2609
|
+
|
|
2610
|
+
_param = self._get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_serialize(
|
|
2611
|
+
id_instance=id_instance,
|
|
2612
|
+
_request_auth=_request_auth,
|
|
2613
|
+
_content_type=_content_type,
|
|
2614
|
+
_headers=_headers,
|
|
2615
|
+
_host_index=_host_index
|
|
2616
|
+
)
|
|
2617
|
+
|
|
2618
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2619
|
+
'200': "object",
|
|
2620
|
+
'404': None,
|
|
2621
|
+
'401': None,
|
|
2622
|
+
'422': "HTTPValidationError",
|
|
2623
|
+
}
|
|
2624
|
+
response_data = self.api_client.call_api(
|
|
2625
|
+
*_param,
|
|
2626
|
+
_request_timeout=_request_timeout
|
|
2627
|
+
)
|
|
2628
|
+
return response_data.response
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
def _get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_serialize(
|
|
2632
|
+
self,
|
|
2633
|
+
id_instance,
|
|
2634
|
+
_request_auth,
|
|
2635
|
+
_content_type,
|
|
2636
|
+
_headers,
|
|
2637
|
+
_host_index,
|
|
2638
|
+
) -> RequestSerialized:
|
|
2639
|
+
|
|
2640
|
+
_host = None
|
|
2641
|
+
|
|
2642
|
+
_collection_formats: Dict[str, str] = {
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
_path_params: Dict[str, str] = {}
|
|
2646
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2647
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2648
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2649
|
+
_files: Dict[
|
|
2650
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2651
|
+
] = {}
|
|
2652
|
+
_body_params: Optional[bytes] = None
|
|
2653
|
+
|
|
2654
|
+
# process the path parameters
|
|
2655
|
+
if id_instance is not None:
|
|
2656
|
+
_path_params['id_instance'] = id_instance
|
|
2657
|
+
# process the query parameters
|
|
2658
|
+
# process the header parameters
|
|
2659
|
+
# process the form parameters
|
|
2660
|
+
# process the body parameter
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
# set the HTTP header `Accept`
|
|
2664
|
+
if 'Accept' not in _header_params:
|
|
2665
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2666
|
+
[
|
|
2667
|
+
'application/json'
|
|
2668
|
+
]
|
|
2669
|
+
)
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
# authentication setting
|
|
2673
|
+
_auth_settings: List[str] = [
|
|
2674
|
+
]
|
|
2675
|
+
|
|
2676
|
+
return self.api_client.param_serialize(
|
|
2677
|
+
method='GET',
|
|
2678
|
+
resource_path='/api/v1/afnor/directory/v1/siren/id-instance:{id_instance}',
|
|
2679
|
+
path_params=_path_params,
|
|
2680
|
+
query_params=_query_params,
|
|
2681
|
+
header_params=_header_params,
|
|
2682
|
+
body=_body_params,
|
|
2683
|
+
post_params=_form_params,
|
|
2684
|
+
files=_files,
|
|
2685
|
+
auth_settings=_auth_settings,
|
|
2686
|
+
collection_formats=_collection_formats,
|
|
2687
|
+
_host=_host,
|
|
2688
|
+
_request_auth=_request_auth
|
|
2689
|
+
)
|
|
2690
|
+
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
@validate_call
|
|
2695
|
+
def get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get(
|
|
2696
|
+
self,
|
|
2697
|
+
siret: StrictStr,
|
|
2698
|
+
_request_timeout: Union[
|
|
2699
|
+
None,
|
|
2700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2701
|
+
Tuple[
|
|
2702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2704
|
+
]
|
|
2705
|
+
] = None,
|
|
2706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2707
|
+
_content_type: Optional[StrictStr] = None,
|
|
2708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2710
|
+
) -> object:
|
|
2711
|
+
"""Gets a siret (facility) by SIRET number
|
|
2712
|
+
|
|
2713
|
+
Obtenir un établissement identifié par son numéro SIRET
|
|
2714
|
+
|
|
2715
|
+
:param siret: (required)
|
|
2716
|
+
:type siret: str
|
|
2717
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2718
|
+
number provided, it will be total request
|
|
2719
|
+
timeout. It can also be a pair (tuple) of
|
|
2720
|
+
(connection, read) timeouts.
|
|
2721
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2722
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2723
|
+
request; this effectively ignores the
|
|
2724
|
+
authentication in the spec for a single request.
|
|
2725
|
+
:type _request_auth: dict, optional
|
|
2726
|
+
:param _content_type: force content-type for the request.
|
|
2727
|
+
:type _content_type: str, Optional
|
|
2728
|
+
:param _headers: set to override the headers for a single
|
|
2729
|
+
request; this effectively ignores the headers
|
|
2730
|
+
in the spec for a single request.
|
|
2731
|
+
:type _headers: dict, optional
|
|
2732
|
+
:param _host_index: set to override the host_index for a single
|
|
2733
|
+
request; this effectively ignores the host_index
|
|
2734
|
+
in the spec for a single request.
|
|
2735
|
+
:type _host_index: int, optional
|
|
2736
|
+
:return: Returns the result object.
|
|
2737
|
+
""" # noqa: E501
|
|
2738
|
+
|
|
2739
|
+
_param = self._get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_serialize(
|
|
2740
|
+
siret=siret,
|
|
2741
|
+
_request_auth=_request_auth,
|
|
2742
|
+
_content_type=_content_type,
|
|
2743
|
+
_headers=_headers,
|
|
2744
|
+
_host_index=_host_index
|
|
2745
|
+
)
|
|
2746
|
+
|
|
2747
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2748
|
+
'200': "object",
|
|
2749
|
+
'404': None,
|
|
2750
|
+
'401': None,
|
|
2751
|
+
'422': "HTTPValidationError",
|
|
2752
|
+
}
|
|
2753
|
+
response_data = self.api_client.call_api(
|
|
2754
|
+
*_param,
|
|
2755
|
+
_request_timeout=_request_timeout
|
|
2756
|
+
)
|
|
2757
|
+
response_data.read()
|
|
2758
|
+
return self.api_client.response_deserialize(
|
|
2759
|
+
response_data=response_data,
|
|
2760
|
+
response_types_map=_response_types_map,
|
|
2761
|
+
).data
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
@validate_call
|
|
2765
|
+
def get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_with_http_info(
|
|
2766
|
+
self,
|
|
2767
|
+
siret: StrictStr,
|
|
2768
|
+
_request_timeout: Union[
|
|
2769
|
+
None,
|
|
2770
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2771
|
+
Tuple[
|
|
2772
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2773
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2774
|
+
]
|
|
2775
|
+
] = None,
|
|
2776
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2777
|
+
_content_type: Optional[StrictStr] = None,
|
|
2778
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2779
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2780
|
+
) -> ApiResponse[object]:
|
|
2781
|
+
"""Gets a siret (facility) by SIRET number
|
|
2782
|
+
|
|
2783
|
+
Obtenir un établissement identifié par son numéro SIRET
|
|
2784
|
+
|
|
2785
|
+
:param siret: (required)
|
|
2786
|
+
:type siret: str
|
|
2787
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2788
|
+
number provided, it will be total request
|
|
2789
|
+
timeout. It can also be a pair (tuple) of
|
|
2790
|
+
(connection, read) timeouts.
|
|
2791
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2792
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2793
|
+
request; this effectively ignores the
|
|
2794
|
+
authentication in the spec for a single request.
|
|
2795
|
+
:type _request_auth: dict, optional
|
|
2796
|
+
:param _content_type: force content-type for the request.
|
|
2797
|
+
:type _content_type: str, Optional
|
|
2798
|
+
:param _headers: set to override the headers for a single
|
|
2799
|
+
request; this effectively ignores the headers
|
|
2800
|
+
in the spec for a single request.
|
|
2801
|
+
:type _headers: dict, optional
|
|
2802
|
+
:param _host_index: set to override the host_index for a single
|
|
2803
|
+
request; this effectively ignores the host_index
|
|
2804
|
+
in the spec for a single request.
|
|
2805
|
+
:type _host_index: int, optional
|
|
2806
|
+
:return: Returns the result object.
|
|
2807
|
+
""" # noqa: E501
|
|
2808
|
+
|
|
2809
|
+
_param = self._get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_serialize(
|
|
2810
|
+
siret=siret,
|
|
2811
|
+
_request_auth=_request_auth,
|
|
2812
|
+
_content_type=_content_type,
|
|
2813
|
+
_headers=_headers,
|
|
2814
|
+
_host_index=_host_index
|
|
2815
|
+
)
|
|
2816
|
+
|
|
2817
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2818
|
+
'200': "object",
|
|
2819
|
+
'404': None,
|
|
2820
|
+
'401': None,
|
|
2821
|
+
'422': "HTTPValidationError",
|
|
2822
|
+
}
|
|
2823
|
+
response_data = self.api_client.call_api(
|
|
2824
|
+
*_param,
|
|
2825
|
+
_request_timeout=_request_timeout
|
|
2826
|
+
)
|
|
2827
|
+
response_data.read()
|
|
2828
|
+
return self.api_client.response_deserialize(
|
|
2829
|
+
response_data=response_data,
|
|
2830
|
+
response_types_map=_response_types_map,
|
|
2831
|
+
)
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
@validate_call
|
|
2835
|
+
def get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_without_preload_content(
|
|
2836
|
+
self,
|
|
2837
|
+
siret: StrictStr,
|
|
2838
|
+
_request_timeout: Union[
|
|
2839
|
+
None,
|
|
2840
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2841
|
+
Tuple[
|
|
2842
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2843
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2844
|
+
]
|
|
2845
|
+
] = None,
|
|
2846
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2847
|
+
_content_type: Optional[StrictStr] = None,
|
|
2848
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2849
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2850
|
+
) -> RESTResponseType:
|
|
2851
|
+
"""Gets a siret (facility) by SIRET number
|
|
2852
|
+
|
|
2853
|
+
Obtenir un établissement identifié par son numéro SIRET
|
|
2854
|
+
|
|
2855
|
+
:param siret: (required)
|
|
2856
|
+
:type siret: str
|
|
2857
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2858
|
+
number provided, it will be total request
|
|
2859
|
+
timeout. It can also be a pair (tuple) of
|
|
2860
|
+
(connection, read) timeouts.
|
|
2861
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2862
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2863
|
+
request; this effectively ignores the
|
|
2864
|
+
authentication in the spec for a single request.
|
|
2865
|
+
:type _request_auth: dict, optional
|
|
2866
|
+
:param _content_type: force content-type for the request.
|
|
2867
|
+
:type _content_type: str, Optional
|
|
2868
|
+
:param _headers: set to override the headers for a single
|
|
2869
|
+
request; this effectively ignores the headers
|
|
2870
|
+
in the spec for a single request.
|
|
2871
|
+
:type _headers: dict, optional
|
|
2872
|
+
:param _host_index: set to override the host_index for a single
|
|
2873
|
+
request; this effectively ignores the host_index
|
|
2874
|
+
in the spec for a single request.
|
|
2875
|
+
:type _host_index: int, optional
|
|
2876
|
+
:return: Returns the result object.
|
|
2877
|
+
""" # noqa: E501
|
|
2878
|
+
|
|
2879
|
+
_param = self._get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_serialize(
|
|
2880
|
+
siret=siret,
|
|
2881
|
+
_request_auth=_request_auth,
|
|
2882
|
+
_content_type=_content_type,
|
|
2883
|
+
_headers=_headers,
|
|
2884
|
+
_host_index=_host_index
|
|
2885
|
+
)
|
|
2886
|
+
|
|
2887
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2888
|
+
'200': "object",
|
|
2889
|
+
'404': None,
|
|
2890
|
+
'401': None,
|
|
2891
|
+
'422': "HTTPValidationError",
|
|
2892
|
+
}
|
|
2893
|
+
response_data = self.api_client.call_api(
|
|
2894
|
+
*_param,
|
|
2895
|
+
_request_timeout=_request_timeout
|
|
2896
|
+
)
|
|
2897
|
+
return response_data.response
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
def _get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_serialize(
|
|
2901
|
+
self,
|
|
2902
|
+
siret,
|
|
2903
|
+
_request_auth,
|
|
2904
|
+
_content_type,
|
|
2905
|
+
_headers,
|
|
2906
|
+
_host_index,
|
|
2907
|
+
) -> RequestSerialized:
|
|
2908
|
+
|
|
2909
|
+
_host = None
|
|
2910
|
+
|
|
2911
|
+
_collection_formats: Dict[str, str] = {
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
_path_params: Dict[str, str] = {}
|
|
2915
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2916
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2917
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2918
|
+
_files: Dict[
|
|
2919
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2920
|
+
] = {}
|
|
2921
|
+
_body_params: Optional[bytes] = None
|
|
2922
|
+
|
|
2923
|
+
# process the path parameters
|
|
2924
|
+
if siret is not None:
|
|
2925
|
+
_path_params['siret'] = siret
|
|
2926
|
+
# process the query parameters
|
|
2927
|
+
# process the header parameters
|
|
2928
|
+
# process the form parameters
|
|
2929
|
+
# process the body parameter
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
# set the HTTP header `Accept`
|
|
2933
|
+
if 'Accept' not in _header_params:
|
|
2934
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2935
|
+
[
|
|
2936
|
+
'application/json'
|
|
2937
|
+
]
|
|
2938
|
+
)
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
# authentication setting
|
|
2942
|
+
_auth_settings: List[str] = [
|
|
2943
|
+
]
|
|
2944
|
+
|
|
2945
|
+
return self.api_client.param_serialize(
|
|
2946
|
+
method='GET',
|
|
2947
|
+
resource_path='/api/v1/afnor/directory/v1/siret/code-insee:{siret}',
|
|
2948
|
+
path_params=_path_params,
|
|
2949
|
+
query_params=_query_params,
|
|
2950
|
+
header_params=_header_params,
|
|
2951
|
+
body=_body_params,
|
|
2952
|
+
post_params=_form_params,
|
|
2953
|
+
files=_files,
|
|
2954
|
+
auth_settings=_auth_settings,
|
|
2955
|
+
collection_formats=_collection_formats,
|
|
2956
|
+
_host=_host,
|
|
2957
|
+
_request_auth=_request_auth
|
|
2958
|
+
)
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
@validate_call
|
|
2964
|
+
def get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get(
|
|
2965
|
+
self,
|
|
2966
|
+
id_instance: StrictStr,
|
|
2967
|
+
_request_timeout: Union[
|
|
2968
|
+
None,
|
|
2969
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2970
|
+
Tuple[
|
|
2971
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2972
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2973
|
+
]
|
|
2974
|
+
] = None,
|
|
2975
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2976
|
+
_content_type: Optional[StrictStr] = None,
|
|
2977
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2978
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2979
|
+
) -> object:
|
|
2980
|
+
"""Gets a siret (facility) by id-instance
|
|
2981
|
+
|
|
2982
|
+
Obtenir un établissement identifié par son idInstance
|
|
2983
|
+
|
|
2984
|
+
:param id_instance: (required)
|
|
2985
|
+
:type id_instance: str
|
|
2986
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2987
|
+
number provided, it will be total request
|
|
2988
|
+
timeout. It can also be a pair (tuple) of
|
|
2989
|
+
(connection, read) timeouts.
|
|
2990
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2991
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2992
|
+
request; this effectively ignores the
|
|
2993
|
+
authentication in the spec for a single request.
|
|
2994
|
+
:type _request_auth: dict, optional
|
|
2995
|
+
:param _content_type: force content-type for the request.
|
|
2996
|
+
:type _content_type: str, Optional
|
|
2997
|
+
:param _headers: set to override the headers for a single
|
|
2998
|
+
request; this effectively ignores the headers
|
|
2999
|
+
in the spec for a single request.
|
|
3000
|
+
:type _headers: dict, optional
|
|
3001
|
+
:param _host_index: set to override the host_index for a single
|
|
3002
|
+
request; this effectively ignores the host_index
|
|
3003
|
+
in the spec for a single request.
|
|
3004
|
+
:type _host_index: int, optional
|
|
3005
|
+
:return: Returns the result object.
|
|
3006
|
+
""" # noqa: E501
|
|
3007
|
+
|
|
3008
|
+
_param = self._get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_serialize(
|
|
3009
|
+
id_instance=id_instance,
|
|
3010
|
+
_request_auth=_request_auth,
|
|
3011
|
+
_content_type=_content_type,
|
|
3012
|
+
_headers=_headers,
|
|
3013
|
+
_host_index=_host_index
|
|
3014
|
+
)
|
|
3015
|
+
|
|
3016
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3017
|
+
'200': "object",
|
|
3018
|
+
'404': None,
|
|
3019
|
+
'401': None,
|
|
3020
|
+
'422': "HTTPValidationError",
|
|
3021
|
+
}
|
|
3022
|
+
response_data = self.api_client.call_api(
|
|
3023
|
+
*_param,
|
|
3024
|
+
_request_timeout=_request_timeout
|
|
3025
|
+
)
|
|
3026
|
+
response_data.read()
|
|
3027
|
+
return self.api_client.response_deserialize(
|
|
3028
|
+
response_data=response_data,
|
|
3029
|
+
response_types_map=_response_types_map,
|
|
3030
|
+
).data
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
@validate_call
|
|
3034
|
+
def get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_with_http_info(
|
|
3035
|
+
self,
|
|
3036
|
+
id_instance: StrictStr,
|
|
3037
|
+
_request_timeout: Union[
|
|
3038
|
+
None,
|
|
3039
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3040
|
+
Tuple[
|
|
3041
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3042
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3043
|
+
]
|
|
3044
|
+
] = None,
|
|
3045
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3046
|
+
_content_type: Optional[StrictStr] = None,
|
|
3047
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3048
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3049
|
+
) -> ApiResponse[object]:
|
|
3050
|
+
"""Gets a siret (facility) by id-instance
|
|
3051
|
+
|
|
3052
|
+
Obtenir un établissement identifié par son idInstance
|
|
3053
|
+
|
|
3054
|
+
:param id_instance: (required)
|
|
3055
|
+
:type id_instance: str
|
|
3056
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3057
|
+
number provided, it will be total request
|
|
3058
|
+
timeout. It can also be a pair (tuple) of
|
|
3059
|
+
(connection, read) timeouts.
|
|
3060
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3061
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3062
|
+
request; this effectively ignores the
|
|
3063
|
+
authentication in the spec for a single request.
|
|
3064
|
+
:type _request_auth: dict, optional
|
|
3065
|
+
:param _content_type: force content-type for the request.
|
|
3066
|
+
:type _content_type: str, Optional
|
|
3067
|
+
:param _headers: set to override the headers for a single
|
|
3068
|
+
request; this effectively ignores the headers
|
|
3069
|
+
in the spec for a single request.
|
|
3070
|
+
:type _headers: dict, optional
|
|
3071
|
+
:param _host_index: set to override the host_index for a single
|
|
3072
|
+
request; this effectively ignores the host_index
|
|
3073
|
+
in the spec for a single request.
|
|
3074
|
+
:type _host_index: int, optional
|
|
3075
|
+
:return: Returns the result object.
|
|
3076
|
+
""" # noqa: E501
|
|
3077
|
+
|
|
3078
|
+
_param = self._get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_serialize(
|
|
3079
|
+
id_instance=id_instance,
|
|
3080
|
+
_request_auth=_request_auth,
|
|
3081
|
+
_content_type=_content_type,
|
|
3082
|
+
_headers=_headers,
|
|
3083
|
+
_host_index=_host_index
|
|
3084
|
+
)
|
|
3085
|
+
|
|
3086
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3087
|
+
'200': "object",
|
|
3088
|
+
'404': None,
|
|
3089
|
+
'401': None,
|
|
3090
|
+
'422': "HTTPValidationError",
|
|
3091
|
+
}
|
|
3092
|
+
response_data = self.api_client.call_api(
|
|
3093
|
+
*_param,
|
|
3094
|
+
_request_timeout=_request_timeout
|
|
3095
|
+
)
|
|
3096
|
+
response_data.read()
|
|
3097
|
+
return self.api_client.response_deserialize(
|
|
3098
|
+
response_data=response_data,
|
|
3099
|
+
response_types_map=_response_types_map,
|
|
3100
|
+
)
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
@validate_call
|
|
3104
|
+
def get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_without_preload_content(
|
|
3105
|
+
self,
|
|
3106
|
+
id_instance: StrictStr,
|
|
3107
|
+
_request_timeout: Union[
|
|
3108
|
+
None,
|
|
3109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3110
|
+
Tuple[
|
|
3111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3112
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3113
|
+
]
|
|
3114
|
+
] = None,
|
|
3115
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3116
|
+
_content_type: Optional[StrictStr] = None,
|
|
3117
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3118
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3119
|
+
) -> RESTResponseType:
|
|
3120
|
+
"""Gets a siret (facility) by id-instance
|
|
3121
|
+
|
|
3122
|
+
Obtenir un établissement identifié par son idInstance
|
|
3123
|
+
|
|
3124
|
+
:param id_instance: (required)
|
|
3125
|
+
:type id_instance: str
|
|
3126
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3127
|
+
number provided, it will be total request
|
|
3128
|
+
timeout. It can also be a pair (tuple) of
|
|
3129
|
+
(connection, read) timeouts.
|
|
3130
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3131
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3132
|
+
request; this effectively ignores the
|
|
3133
|
+
authentication in the spec for a single request.
|
|
3134
|
+
:type _request_auth: dict, optional
|
|
3135
|
+
:param _content_type: force content-type for the request.
|
|
3136
|
+
:type _content_type: str, Optional
|
|
3137
|
+
:param _headers: set to override the headers for a single
|
|
3138
|
+
request; this effectively ignores the headers
|
|
3139
|
+
in the spec for a single request.
|
|
3140
|
+
:type _headers: dict, optional
|
|
3141
|
+
:param _host_index: set to override the host_index for a single
|
|
3142
|
+
request; this effectively ignores the host_index
|
|
3143
|
+
in the spec for a single request.
|
|
3144
|
+
:type _host_index: int, optional
|
|
3145
|
+
:return: Returns the result object.
|
|
3146
|
+
""" # noqa: E501
|
|
3147
|
+
|
|
3148
|
+
_param = self._get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_serialize(
|
|
3149
|
+
id_instance=id_instance,
|
|
3150
|
+
_request_auth=_request_auth,
|
|
3151
|
+
_content_type=_content_type,
|
|
3152
|
+
_headers=_headers,
|
|
3153
|
+
_host_index=_host_index
|
|
3154
|
+
)
|
|
3155
|
+
|
|
3156
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3157
|
+
'200': "object",
|
|
3158
|
+
'404': None,
|
|
3159
|
+
'401': None,
|
|
3160
|
+
'422': "HTTPValidationError",
|
|
3161
|
+
}
|
|
3162
|
+
response_data = self.api_client.call_api(
|
|
3163
|
+
*_param,
|
|
3164
|
+
_request_timeout=_request_timeout
|
|
3165
|
+
)
|
|
3166
|
+
return response_data.response
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
def _get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_serialize(
|
|
3170
|
+
self,
|
|
3171
|
+
id_instance,
|
|
3172
|
+
_request_auth,
|
|
3173
|
+
_content_type,
|
|
3174
|
+
_headers,
|
|
3175
|
+
_host_index,
|
|
3176
|
+
) -> RequestSerialized:
|
|
3177
|
+
|
|
3178
|
+
_host = None
|
|
3179
|
+
|
|
3180
|
+
_collection_formats: Dict[str, str] = {
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
_path_params: Dict[str, str] = {}
|
|
3184
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3185
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3186
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3187
|
+
_files: Dict[
|
|
3188
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3189
|
+
] = {}
|
|
3190
|
+
_body_params: Optional[bytes] = None
|
|
3191
|
+
|
|
3192
|
+
# process the path parameters
|
|
3193
|
+
if id_instance is not None:
|
|
3194
|
+
_path_params['id_instance'] = id_instance
|
|
3195
|
+
# process the query parameters
|
|
3196
|
+
# process the header parameters
|
|
3197
|
+
# process the form parameters
|
|
3198
|
+
# process the body parameter
|
|
3199
|
+
|
|
3200
|
+
|
|
3201
|
+
# set the HTTP header `Accept`
|
|
3202
|
+
if 'Accept' not in _header_params:
|
|
3203
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3204
|
+
[
|
|
3205
|
+
'application/json'
|
|
3206
|
+
]
|
|
3207
|
+
)
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
# authentication setting
|
|
3211
|
+
_auth_settings: List[str] = [
|
|
3212
|
+
]
|
|
3213
|
+
|
|
3214
|
+
return self.api_client.param_serialize(
|
|
3215
|
+
method='GET',
|
|
3216
|
+
resource_path='/api/v1/afnor/directory/v1/siret/id-instance:{id_instance}',
|
|
3217
|
+
path_params=_path_params,
|
|
3218
|
+
query_params=_query_params,
|
|
3219
|
+
header_params=_header_params,
|
|
3220
|
+
body=_body_params,
|
|
3221
|
+
post_params=_form_params,
|
|
3222
|
+
files=_files,
|
|
3223
|
+
auth_settings=_auth_settings,
|
|
3224
|
+
collection_formats=_collection_formats,
|
|
3225
|
+
_host=_host,
|
|
3226
|
+
_request_auth=_request_auth
|
|
3227
|
+
)
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
@validate_call
|
|
3233
|
+
def patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch(
|
|
3234
|
+
self,
|
|
3235
|
+
id_instance: StrictStr,
|
|
3236
|
+
_request_timeout: Union[
|
|
3237
|
+
None,
|
|
3238
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3239
|
+
Tuple[
|
|
3240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3241
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3242
|
+
]
|
|
3243
|
+
] = None,
|
|
3244
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3245
|
+
_content_type: Optional[StrictStr] = None,
|
|
3246
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3247
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3248
|
+
) -> object:
|
|
3249
|
+
"""Partially updates a directory line
|
|
3250
|
+
|
|
3251
|
+
Mettre à jour partiellement une ligne d'annuaire
|
|
3252
|
+
|
|
3253
|
+
:param id_instance: (required)
|
|
3254
|
+
:type id_instance: str
|
|
3255
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3256
|
+
number provided, it will be total request
|
|
3257
|
+
timeout. It can also be a pair (tuple) of
|
|
3258
|
+
(connection, read) timeouts.
|
|
3259
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3260
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3261
|
+
request; this effectively ignores the
|
|
3262
|
+
authentication in the spec for a single request.
|
|
3263
|
+
:type _request_auth: dict, optional
|
|
3264
|
+
:param _content_type: force content-type for the request.
|
|
3265
|
+
:type _content_type: str, Optional
|
|
3266
|
+
:param _headers: set to override the headers for a single
|
|
3267
|
+
request; this effectively ignores the headers
|
|
3268
|
+
in the spec for a single request.
|
|
3269
|
+
:type _headers: dict, optional
|
|
3270
|
+
:param _host_index: set to override the host_index for a single
|
|
3271
|
+
request; this effectively ignores the host_index
|
|
3272
|
+
in the spec for a single request.
|
|
3273
|
+
:type _host_index: int, optional
|
|
3274
|
+
:return: Returns the result object.
|
|
3275
|
+
""" # noqa: E501
|
|
3276
|
+
|
|
3277
|
+
_param = self._patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_serialize(
|
|
3278
|
+
id_instance=id_instance,
|
|
3279
|
+
_request_auth=_request_auth,
|
|
3280
|
+
_content_type=_content_type,
|
|
3281
|
+
_headers=_headers,
|
|
3282
|
+
_host_index=_host_index
|
|
3283
|
+
)
|
|
3284
|
+
|
|
3285
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3286
|
+
'200': "object",
|
|
3287
|
+
'404': None,
|
|
3288
|
+
'401': None,
|
|
3289
|
+
'422': "HTTPValidationError",
|
|
3290
|
+
}
|
|
3291
|
+
response_data = self.api_client.call_api(
|
|
3292
|
+
*_param,
|
|
3293
|
+
_request_timeout=_request_timeout
|
|
3294
|
+
)
|
|
3295
|
+
response_data.read()
|
|
3296
|
+
return self.api_client.response_deserialize(
|
|
3297
|
+
response_data=response_data,
|
|
3298
|
+
response_types_map=_response_types_map,
|
|
3299
|
+
).data
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
@validate_call
|
|
3303
|
+
def patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_with_http_info(
|
|
3304
|
+
self,
|
|
3305
|
+
id_instance: StrictStr,
|
|
3306
|
+
_request_timeout: Union[
|
|
3307
|
+
None,
|
|
3308
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3309
|
+
Tuple[
|
|
3310
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3311
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3312
|
+
]
|
|
3313
|
+
] = None,
|
|
3314
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3315
|
+
_content_type: Optional[StrictStr] = None,
|
|
3316
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3317
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3318
|
+
) -> ApiResponse[object]:
|
|
3319
|
+
"""Partially updates a directory line
|
|
3320
|
+
|
|
3321
|
+
Mettre à jour partiellement une ligne d'annuaire
|
|
3322
|
+
|
|
3323
|
+
:param id_instance: (required)
|
|
3324
|
+
:type id_instance: str
|
|
3325
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3326
|
+
number provided, it will be total request
|
|
3327
|
+
timeout. It can also be a pair (tuple) of
|
|
3328
|
+
(connection, read) timeouts.
|
|
3329
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3330
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3331
|
+
request; this effectively ignores the
|
|
3332
|
+
authentication in the spec for a single request.
|
|
3333
|
+
:type _request_auth: dict, optional
|
|
3334
|
+
:param _content_type: force content-type for the request.
|
|
3335
|
+
:type _content_type: str, Optional
|
|
3336
|
+
:param _headers: set to override the headers for a single
|
|
3337
|
+
request; this effectively ignores the headers
|
|
3338
|
+
in the spec for a single request.
|
|
3339
|
+
:type _headers: dict, optional
|
|
3340
|
+
:param _host_index: set to override the host_index for a single
|
|
3341
|
+
request; this effectively ignores the host_index
|
|
3342
|
+
in the spec for a single request.
|
|
3343
|
+
:type _host_index: int, optional
|
|
3344
|
+
:return: Returns the result object.
|
|
3345
|
+
""" # noqa: E501
|
|
3346
|
+
|
|
3347
|
+
_param = self._patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_serialize(
|
|
3348
|
+
id_instance=id_instance,
|
|
3349
|
+
_request_auth=_request_auth,
|
|
3350
|
+
_content_type=_content_type,
|
|
3351
|
+
_headers=_headers,
|
|
3352
|
+
_host_index=_host_index
|
|
3353
|
+
)
|
|
3354
|
+
|
|
3355
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3356
|
+
'200': "object",
|
|
3357
|
+
'404': None,
|
|
3358
|
+
'401': None,
|
|
3359
|
+
'422': "HTTPValidationError",
|
|
3360
|
+
}
|
|
3361
|
+
response_data = self.api_client.call_api(
|
|
3362
|
+
*_param,
|
|
3363
|
+
_request_timeout=_request_timeout
|
|
3364
|
+
)
|
|
3365
|
+
response_data.read()
|
|
3366
|
+
return self.api_client.response_deserialize(
|
|
3367
|
+
response_data=response_data,
|
|
3368
|
+
response_types_map=_response_types_map,
|
|
3369
|
+
)
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
@validate_call
|
|
3373
|
+
def patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_without_preload_content(
|
|
3374
|
+
self,
|
|
3375
|
+
id_instance: StrictStr,
|
|
3376
|
+
_request_timeout: Union[
|
|
3377
|
+
None,
|
|
3378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3379
|
+
Tuple[
|
|
3380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3381
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3382
|
+
]
|
|
3383
|
+
] = None,
|
|
3384
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3385
|
+
_content_type: Optional[StrictStr] = None,
|
|
3386
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3387
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3388
|
+
) -> RESTResponseType:
|
|
3389
|
+
"""Partially updates a directory line
|
|
3390
|
+
|
|
3391
|
+
Mettre à jour partiellement une ligne d'annuaire
|
|
3392
|
+
|
|
3393
|
+
:param id_instance: (required)
|
|
3394
|
+
:type id_instance: str
|
|
3395
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3396
|
+
number provided, it will be total request
|
|
3397
|
+
timeout. It can also be a pair (tuple) of
|
|
3398
|
+
(connection, read) timeouts.
|
|
3399
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3400
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3401
|
+
request; this effectively ignores the
|
|
3402
|
+
authentication in the spec for a single request.
|
|
3403
|
+
:type _request_auth: dict, optional
|
|
3404
|
+
:param _content_type: force content-type for the request.
|
|
3405
|
+
:type _content_type: str, Optional
|
|
3406
|
+
:param _headers: set to override the headers for a single
|
|
3407
|
+
request; this effectively ignores the headers
|
|
3408
|
+
in the spec for a single request.
|
|
3409
|
+
:type _headers: dict, optional
|
|
3410
|
+
:param _host_index: set to override the host_index for a single
|
|
3411
|
+
request; this effectively ignores the host_index
|
|
3412
|
+
in the spec for a single request.
|
|
3413
|
+
:type _host_index: int, optional
|
|
3414
|
+
:return: Returns the result object.
|
|
3415
|
+
""" # noqa: E501
|
|
3416
|
+
|
|
3417
|
+
_param = self._patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_serialize(
|
|
3418
|
+
id_instance=id_instance,
|
|
3419
|
+
_request_auth=_request_auth,
|
|
3420
|
+
_content_type=_content_type,
|
|
3421
|
+
_headers=_headers,
|
|
3422
|
+
_host_index=_host_index
|
|
3423
|
+
)
|
|
3424
|
+
|
|
3425
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3426
|
+
'200': "object",
|
|
3427
|
+
'404': None,
|
|
3428
|
+
'401': None,
|
|
3429
|
+
'422': "HTTPValidationError",
|
|
3430
|
+
}
|
|
3431
|
+
response_data = self.api_client.call_api(
|
|
3432
|
+
*_param,
|
|
3433
|
+
_request_timeout=_request_timeout
|
|
3434
|
+
)
|
|
3435
|
+
return response_data.response
|
|
3436
|
+
|
|
3437
|
+
|
|
3438
|
+
def _patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_serialize(
|
|
3439
|
+
self,
|
|
3440
|
+
id_instance,
|
|
3441
|
+
_request_auth,
|
|
3442
|
+
_content_type,
|
|
3443
|
+
_headers,
|
|
3444
|
+
_host_index,
|
|
3445
|
+
) -> RequestSerialized:
|
|
3446
|
+
|
|
3447
|
+
_host = None
|
|
3448
|
+
|
|
3449
|
+
_collection_formats: Dict[str, str] = {
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
_path_params: Dict[str, str] = {}
|
|
3453
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3454
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3455
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3456
|
+
_files: Dict[
|
|
3457
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3458
|
+
] = {}
|
|
3459
|
+
_body_params: Optional[bytes] = None
|
|
3460
|
+
|
|
3461
|
+
# process the path parameters
|
|
3462
|
+
if id_instance is not None:
|
|
3463
|
+
_path_params['id_instance'] = id_instance
|
|
3464
|
+
# process the query parameters
|
|
3465
|
+
# process the header parameters
|
|
3466
|
+
# process the form parameters
|
|
3467
|
+
# process the body parameter
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
# set the HTTP header `Accept`
|
|
3471
|
+
if 'Accept' not in _header_params:
|
|
3472
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3473
|
+
[
|
|
3474
|
+
'application/json'
|
|
3475
|
+
]
|
|
3476
|
+
)
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
# authentication setting
|
|
3480
|
+
_auth_settings: List[str] = [
|
|
3481
|
+
]
|
|
3482
|
+
|
|
3483
|
+
return self.api_client.param_serialize(
|
|
3484
|
+
method='PATCH',
|
|
3485
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}',
|
|
3486
|
+
path_params=_path_params,
|
|
3487
|
+
query_params=_query_params,
|
|
3488
|
+
header_params=_header_params,
|
|
3489
|
+
body=_body_params,
|
|
3490
|
+
post_params=_form_params,
|
|
3491
|
+
files=_files,
|
|
3492
|
+
auth_settings=_auth_settings,
|
|
3493
|
+
collection_formats=_collection_formats,
|
|
3494
|
+
_host=_host,
|
|
3495
|
+
_request_auth=_request_auth
|
|
3496
|
+
)
|
|
3497
|
+
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
|
|
3501
|
+
@validate_call
|
|
3502
|
+
def patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch(
|
|
3503
|
+
self,
|
|
3504
|
+
id_instance: StrictStr,
|
|
3505
|
+
_request_timeout: Union[
|
|
3506
|
+
None,
|
|
3507
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3508
|
+
Tuple[
|
|
3509
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3510
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3511
|
+
]
|
|
3512
|
+
] = None,
|
|
3513
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3514
|
+
_content_type: Optional[StrictStr] = None,
|
|
3515
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3516
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3517
|
+
) -> object:
|
|
3518
|
+
"""Partially update a private routing code
|
|
3519
|
+
|
|
3520
|
+
Mettre à jour partiellement un code de routage privé
|
|
3521
|
+
|
|
3522
|
+
:param id_instance: (required)
|
|
3523
|
+
:type id_instance: str
|
|
3524
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3525
|
+
number provided, it will be total request
|
|
3526
|
+
timeout. It can also be a pair (tuple) of
|
|
3527
|
+
(connection, read) timeouts.
|
|
3528
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3529
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3530
|
+
request; this effectively ignores the
|
|
3531
|
+
authentication in the spec for a single request.
|
|
3532
|
+
:type _request_auth: dict, optional
|
|
3533
|
+
:param _content_type: force content-type for the request.
|
|
3534
|
+
:type _content_type: str, Optional
|
|
3535
|
+
:param _headers: set to override the headers for a single
|
|
3536
|
+
request; this effectively ignores the headers
|
|
3537
|
+
in the spec for a single request.
|
|
3538
|
+
:type _headers: dict, optional
|
|
3539
|
+
:param _host_index: set to override the host_index for a single
|
|
3540
|
+
request; this effectively ignores the host_index
|
|
3541
|
+
in the spec for a single request.
|
|
3542
|
+
:type _host_index: int, optional
|
|
3543
|
+
:return: Returns the result object.
|
|
3544
|
+
""" # noqa: E501
|
|
3545
|
+
|
|
3546
|
+
_param = self._patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_serialize(
|
|
3547
|
+
id_instance=id_instance,
|
|
3548
|
+
_request_auth=_request_auth,
|
|
3549
|
+
_content_type=_content_type,
|
|
3550
|
+
_headers=_headers,
|
|
3551
|
+
_host_index=_host_index
|
|
3552
|
+
)
|
|
3553
|
+
|
|
3554
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3555
|
+
'200': "object",
|
|
3556
|
+
'404': None,
|
|
3557
|
+
'401': None,
|
|
3558
|
+
'422': "HTTPValidationError",
|
|
3559
|
+
}
|
|
3560
|
+
response_data = self.api_client.call_api(
|
|
3561
|
+
*_param,
|
|
3562
|
+
_request_timeout=_request_timeout
|
|
3563
|
+
)
|
|
3564
|
+
response_data.read()
|
|
3565
|
+
return self.api_client.response_deserialize(
|
|
3566
|
+
response_data=response_data,
|
|
3567
|
+
response_types_map=_response_types_map,
|
|
3568
|
+
).data
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
@validate_call
|
|
3572
|
+
def patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_with_http_info(
|
|
3573
|
+
self,
|
|
3574
|
+
id_instance: StrictStr,
|
|
3575
|
+
_request_timeout: Union[
|
|
3576
|
+
None,
|
|
3577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3578
|
+
Tuple[
|
|
3579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3580
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3581
|
+
]
|
|
3582
|
+
] = None,
|
|
3583
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3584
|
+
_content_type: Optional[StrictStr] = None,
|
|
3585
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3586
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3587
|
+
) -> ApiResponse[object]:
|
|
3588
|
+
"""Partially update a private routing code
|
|
3589
|
+
|
|
3590
|
+
Mettre à jour partiellement un code de routage privé
|
|
3591
|
+
|
|
3592
|
+
:param id_instance: (required)
|
|
3593
|
+
:type id_instance: str
|
|
3594
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3595
|
+
number provided, it will be total request
|
|
3596
|
+
timeout. It can also be a pair (tuple) of
|
|
3597
|
+
(connection, read) timeouts.
|
|
3598
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3599
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3600
|
+
request; this effectively ignores the
|
|
3601
|
+
authentication in the spec for a single request.
|
|
3602
|
+
:type _request_auth: dict, optional
|
|
3603
|
+
:param _content_type: force content-type for the request.
|
|
3604
|
+
:type _content_type: str, Optional
|
|
3605
|
+
:param _headers: set to override the headers for a single
|
|
3606
|
+
request; this effectively ignores the headers
|
|
3607
|
+
in the spec for a single request.
|
|
3608
|
+
:type _headers: dict, optional
|
|
3609
|
+
:param _host_index: set to override the host_index for a single
|
|
3610
|
+
request; this effectively ignores the host_index
|
|
3611
|
+
in the spec for a single request.
|
|
3612
|
+
:type _host_index: int, optional
|
|
3613
|
+
:return: Returns the result object.
|
|
3614
|
+
""" # noqa: E501
|
|
3615
|
+
|
|
3616
|
+
_param = self._patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_serialize(
|
|
3617
|
+
id_instance=id_instance,
|
|
3618
|
+
_request_auth=_request_auth,
|
|
3619
|
+
_content_type=_content_type,
|
|
3620
|
+
_headers=_headers,
|
|
3621
|
+
_host_index=_host_index
|
|
3622
|
+
)
|
|
3623
|
+
|
|
3624
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3625
|
+
'200': "object",
|
|
3626
|
+
'404': None,
|
|
3627
|
+
'401': None,
|
|
3628
|
+
'422': "HTTPValidationError",
|
|
3629
|
+
}
|
|
3630
|
+
response_data = self.api_client.call_api(
|
|
3631
|
+
*_param,
|
|
3632
|
+
_request_timeout=_request_timeout
|
|
3633
|
+
)
|
|
3634
|
+
response_data.read()
|
|
3635
|
+
return self.api_client.response_deserialize(
|
|
3636
|
+
response_data=response_data,
|
|
3637
|
+
response_types_map=_response_types_map,
|
|
3638
|
+
)
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
@validate_call
|
|
3642
|
+
def patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_without_preload_content(
|
|
3643
|
+
self,
|
|
3644
|
+
id_instance: StrictStr,
|
|
3645
|
+
_request_timeout: Union[
|
|
3646
|
+
None,
|
|
3647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3648
|
+
Tuple[
|
|
3649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3650
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3651
|
+
]
|
|
3652
|
+
] = None,
|
|
3653
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3654
|
+
_content_type: Optional[StrictStr] = None,
|
|
3655
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3656
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3657
|
+
) -> RESTResponseType:
|
|
3658
|
+
"""Partially update a private routing code
|
|
3659
|
+
|
|
3660
|
+
Mettre à jour partiellement un code de routage privé
|
|
3661
|
+
|
|
3662
|
+
:param id_instance: (required)
|
|
3663
|
+
:type id_instance: str
|
|
3664
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3665
|
+
number provided, it will be total request
|
|
3666
|
+
timeout. It can also be a pair (tuple) of
|
|
3667
|
+
(connection, read) timeouts.
|
|
3668
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3669
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3670
|
+
request; this effectively ignores the
|
|
3671
|
+
authentication in the spec for a single request.
|
|
3672
|
+
:type _request_auth: dict, optional
|
|
3673
|
+
:param _content_type: force content-type for the request.
|
|
3674
|
+
:type _content_type: str, Optional
|
|
3675
|
+
:param _headers: set to override the headers for a single
|
|
3676
|
+
request; this effectively ignores the headers
|
|
3677
|
+
in the spec for a single request.
|
|
3678
|
+
:type _headers: dict, optional
|
|
3679
|
+
:param _host_index: set to override the host_index for a single
|
|
3680
|
+
request; this effectively ignores the host_index
|
|
3681
|
+
in the spec for a single request.
|
|
3682
|
+
:type _host_index: int, optional
|
|
3683
|
+
:return: Returns the result object.
|
|
3684
|
+
""" # noqa: E501
|
|
3685
|
+
|
|
3686
|
+
_param = self._patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_serialize(
|
|
3687
|
+
id_instance=id_instance,
|
|
3688
|
+
_request_auth=_request_auth,
|
|
3689
|
+
_content_type=_content_type,
|
|
3690
|
+
_headers=_headers,
|
|
3691
|
+
_host_index=_host_index
|
|
3692
|
+
)
|
|
3693
|
+
|
|
3694
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3695
|
+
'200': "object",
|
|
3696
|
+
'404': None,
|
|
3697
|
+
'401': None,
|
|
3698
|
+
'422': "HTTPValidationError",
|
|
3699
|
+
}
|
|
3700
|
+
response_data = self.api_client.call_api(
|
|
3701
|
+
*_param,
|
|
3702
|
+
_request_timeout=_request_timeout
|
|
3703
|
+
)
|
|
3704
|
+
return response_data.response
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
def _patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_serialize(
|
|
3708
|
+
self,
|
|
3709
|
+
id_instance,
|
|
3710
|
+
_request_auth,
|
|
3711
|
+
_content_type,
|
|
3712
|
+
_headers,
|
|
3713
|
+
_host_index,
|
|
3714
|
+
) -> RequestSerialized:
|
|
3715
|
+
|
|
3716
|
+
_host = None
|
|
3717
|
+
|
|
3718
|
+
_collection_formats: Dict[str, str] = {
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
_path_params: Dict[str, str] = {}
|
|
3722
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3723
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3724
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3725
|
+
_files: Dict[
|
|
3726
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3727
|
+
] = {}
|
|
3728
|
+
_body_params: Optional[bytes] = None
|
|
3729
|
+
|
|
3730
|
+
# process the path parameters
|
|
3731
|
+
if id_instance is not None:
|
|
3732
|
+
_path_params['id_instance'] = id_instance
|
|
3733
|
+
# process the query parameters
|
|
3734
|
+
# process the header parameters
|
|
3735
|
+
# process the form parameters
|
|
3736
|
+
# process the body parameter
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
# set the HTTP header `Accept`
|
|
3740
|
+
if 'Accept' not in _header_params:
|
|
3741
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3742
|
+
[
|
|
3743
|
+
'application/json'
|
|
3744
|
+
]
|
|
3745
|
+
)
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
# authentication setting
|
|
3749
|
+
_auth_settings: List[str] = [
|
|
3750
|
+
]
|
|
3751
|
+
|
|
3752
|
+
return self.api_client.param_serialize(
|
|
3753
|
+
method='PATCH',
|
|
3754
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}',
|
|
3755
|
+
path_params=_path_params,
|
|
3756
|
+
query_params=_query_params,
|
|
3757
|
+
header_params=_header_params,
|
|
3758
|
+
body=_body_params,
|
|
3759
|
+
post_params=_form_params,
|
|
3760
|
+
files=_files,
|
|
3761
|
+
auth_settings=_auth_settings,
|
|
3762
|
+
collection_formats=_collection_formats,
|
|
3763
|
+
_host=_host,
|
|
3764
|
+
_request_auth=_request_auth
|
|
3765
|
+
)
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
@validate_call
|
|
3771
|
+
def put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put(
|
|
3772
|
+
self,
|
|
3773
|
+
id_instance: StrictStr,
|
|
3774
|
+
_request_timeout: Union[
|
|
3775
|
+
None,
|
|
3776
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3777
|
+
Tuple[
|
|
3778
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3779
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3780
|
+
]
|
|
3781
|
+
] = None,
|
|
3782
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3783
|
+
_content_type: Optional[StrictStr] = None,
|
|
3784
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3785
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3786
|
+
) -> object:
|
|
3787
|
+
"""Completely update a private routing code
|
|
3788
|
+
|
|
3789
|
+
Mettre à jour complètement un code de routage privé
|
|
3790
|
+
|
|
3791
|
+
:param id_instance: (required)
|
|
3792
|
+
:type id_instance: str
|
|
3793
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3794
|
+
number provided, it will be total request
|
|
3795
|
+
timeout. It can also be a pair (tuple) of
|
|
3796
|
+
(connection, read) timeouts.
|
|
3797
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3798
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3799
|
+
request; this effectively ignores the
|
|
3800
|
+
authentication in the spec for a single request.
|
|
3801
|
+
:type _request_auth: dict, optional
|
|
3802
|
+
:param _content_type: force content-type for the request.
|
|
3803
|
+
:type _content_type: str, Optional
|
|
3804
|
+
:param _headers: set to override the headers for a single
|
|
3805
|
+
request; this effectively ignores the headers
|
|
3806
|
+
in the spec for a single request.
|
|
3807
|
+
:type _headers: dict, optional
|
|
3808
|
+
:param _host_index: set to override the host_index for a single
|
|
3809
|
+
request; this effectively ignores the host_index
|
|
3810
|
+
in the spec for a single request.
|
|
3811
|
+
:type _host_index: int, optional
|
|
3812
|
+
:return: Returns the result object.
|
|
3813
|
+
""" # noqa: E501
|
|
3814
|
+
|
|
3815
|
+
_param = self._put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_serialize(
|
|
3816
|
+
id_instance=id_instance,
|
|
3817
|
+
_request_auth=_request_auth,
|
|
3818
|
+
_content_type=_content_type,
|
|
3819
|
+
_headers=_headers,
|
|
3820
|
+
_host_index=_host_index
|
|
3821
|
+
)
|
|
3822
|
+
|
|
3823
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3824
|
+
'200': "object",
|
|
3825
|
+
'404': None,
|
|
3826
|
+
'401': None,
|
|
3827
|
+
'422': "HTTPValidationError",
|
|
3828
|
+
}
|
|
3829
|
+
response_data = self.api_client.call_api(
|
|
3830
|
+
*_param,
|
|
3831
|
+
_request_timeout=_request_timeout
|
|
3832
|
+
)
|
|
3833
|
+
response_data.read()
|
|
3834
|
+
return self.api_client.response_deserialize(
|
|
3835
|
+
response_data=response_data,
|
|
3836
|
+
response_types_map=_response_types_map,
|
|
3837
|
+
).data
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
@validate_call
|
|
3841
|
+
def put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_with_http_info(
|
|
3842
|
+
self,
|
|
3843
|
+
id_instance: StrictStr,
|
|
3844
|
+
_request_timeout: Union[
|
|
3845
|
+
None,
|
|
3846
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3847
|
+
Tuple[
|
|
3848
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3849
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3850
|
+
]
|
|
3851
|
+
] = None,
|
|
3852
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3853
|
+
_content_type: Optional[StrictStr] = None,
|
|
3854
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3855
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3856
|
+
) -> ApiResponse[object]:
|
|
3857
|
+
"""Completely update a private routing code
|
|
3858
|
+
|
|
3859
|
+
Mettre à jour complètement un code de routage privé
|
|
3860
|
+
|
|
3861
|
+
:param id_instance: (required)
|
|
3862
|
+
:type id_instance: str
|
|
3863
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3864
|
+
number provided, it will be total request
|
|
3865
|
+
timeout. It can also be a pair (tuple) of
|
|
3866
|
+
(connection, read) timeouts.
|
|
3867
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3868
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3869
|
+
request; this effectively ignores the
|
|
3870
|
+
authentication in the spec for a single request.
|
|
3871
|
+
:type _request_auth: dict, optional
|
|
3872
|
+
:param _content_type: force content-type for the request.
|
|
3873
|
+
:type _content_type: str, Optional
|
|
3874
|
+
:param _headers: set to override the headers for a single
|
|
3875
|
+
request; this effectively ignores the headers
|
|
3876
|
+
in the spec for a single request.
|
|
3877
|
+
:type _headers: dict, optional
|
|
3878
|
+
:param _host_index: set to override the host_index for a single
|
|
3879
|
+
request; this effectively ignores the host_index
|
|
3880
|
+
in the spec for a single request.
|
|
3881
|
+
:type _host_index: int, optional
|
|
3882
|
+
:return: Returns the result object.
|
|
3883
|
+
""" # noqa: E501
|
|
3884
|
+
|
|
3885
|
+
_param = self._put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_serialize(
|
|
3886
|
+
id_instance=id_instance,
|
|
3887
|
+
_request_auth=_request_auth,
|
|
3888
|
+
_content_type=_content_type,
|
|
3889
|
+
_headers=_headers,
|
|
3890
|
+
_host_index=_host_index
|
|
3891
|
+
)
|
|
3892
|
+
|
|
3893
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3894
|
+
'200': "object",
|
|
3895
|
+
'404': None,
|
|
3896
|
+
'401': None,
|
|
3897
|
+
'422': "HTTPValidationError",
|
|
3898
|
+
}
|
|
3899
|
+
response_data = self.api_client.call_api(
|
|
3900
|
+
*_param,
|
|
3901
|
+
_request_timeout=_request_timeout
|
|
3902
|
+
)
|
|
3903
|
+
response_data.read()
|
|
3904
|
+
return self.api_client.response_deserialize(
|
|
3905
|
+
response_data=response_data,
|
|
3906
|
+
response_types_map=_response_types_map,
|
|
3907
|
+
)
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
@validate_call
|
|
3911
|
+
def put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_without_preload_content(
|
|
3912
|
+
self,
|
|
3913
|
+
id_instance: StrictStr,
|
|
3914
|
+
_request_timeout: Union[
|
|
3915
|
+
None,
|
|
3916
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3917
|
+
Tuple[
|
|
3918
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3919
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3920
|
+
]
|
|
3921
|
+
] = None,
|
|
3922
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3923
|
+
_content_type: Optional[StrictStr] = None,
|
|
3924
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3925
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3926
|
+
) -> RESTResponseType:
|
|
3927
|
+
"""Completely update a private routing code
|
|
3928
|
+
|
|
3929
|
+
Mettre à jour complètement un code de routage privé
|
|
3930
|
+
|
|
3931
|
+
:param id_instance: (required)
|
|
3932
|
+
:type id_instance: str
|
|
3933
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3934
|
+
number provided, it will be total request
|
|
3935
|
+
timeout. It can also be a pair (tuple) of
|
|
3936
|
+
(connection, read) timeouts.
|
|
3937
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3938
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3939
|
+
request; this effectively ignores the
|
|
3940
|
+
authentication in the spec for a single request.
|
|
3941
|
+
:type _request_auth: dict, optional
|
|
3942
|
+
:param _content_type: force content-type for the request.
|
|
3943
|
+
:type _content_type: str, Optional
|
|
3944
|
+
:param _headers: set to override the headers for a single
|
|
3945
|
+
request; this effectively ignores the headers
|
|
3946
|
+
in the spec for a single request.
|
|
3947
|
+
:type _headers: dict, optional
|
|
3948
|
+
:param _host_index: set to override the host_index for a single
|
|
3949
|
+
request; this effectively ignores the host_index
|
|
3950
|
+
in the spec for a single request.
|
|
3951
|
+
:type _host_index: int, optional
|
|
3952
|
+
:return: Returns the result object.
|
|
3953
|
+
""" # noqa: E501
|
|
3954
|
+
|
|
3955
|
+
_param = self._put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_serialize(
|
|
3956
|
+
id_instance=id_instance,
|
|
3957
|
+
_request_auth=_request_auth,
|
|
3958
|
+
_content_type=_content_type,
|
|
3959
|
+
_headers=_headers,
|
|
3960
|
+
_host_index=_host_index
|
|
3961
|
+
)
|
|
3962
|
+
|
|
3963
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3964
|
+
'200': "object",
|
|
3965
|
+
'404': None,
|
|
3966
|
+
'401': None,
|
|
3967
|
+
'422': "HTTPValidationError",
|
|
3968
|
+
}
|
|
3969
|
+
response_data = self.api_client.call_api(
|
|
3970
|
+
*_param,
|
|
3971
|
+
_request_timeout=_request_timeout
|
|
3972
|
+
)
|
|
3973
|
+
return response_data.response
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
def _put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_serialize(
|
|
3977
|
+
self,
|
|
3978
|
+
id_instance,
|
|
3979
|
+
_request_auth,
|
|
3980
|
+
_content_type,
|
|
3981
|
+
_headers,
|
|
3982
|
+
_host_index,
|
|
3983
|
+
) -> RequestSerialized:
|
|
3984
|
+
|
|
3985
|
+
_host = None
|
|
3986
|
+
|
|
3987
|
+
_collection_formats: Dict[str, str] = {
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
_path_params: Dict[str, str] = {}
|
|
3991
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3992
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3993
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3994
|
+
_files: Dict[
|
|
3995
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3996
|
+
] = {}
|
|
3997
|
+
_body_params: Optional[bytes] = None
|
|
3998
|
+
|
|
3999
|
+
# process the path parameters
|
|
4000
|
+
if id_instance is not None:
|
|
4001
|
+
_path_params['id_instance'] = id_instance
|
|
4002
|
+
# process the query parameters
|
|
4003
|
+
# process the header parameters
|
|
4004
|
+
# process the form parameters
|
|
4005
|
+
# process the body parameter
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
# set the HTTP header `Accept`
|
|
4009
|
+
if 'Accept' not in _header_params:
|
|
4010
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4011
|
+
[
|
|
4012
|
+
'application/json'
|
|
4013
|
+
]
|
|
4014
|
+
)
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
# authentication setting
|
|
4018
|
+
_auth_settings: List[str] = [
|
|
4019
|
+
]
|
|
4020
|
+
|
|
4021
|
+
return self.api_client.param_serialize(
|
|
4022
|
+
method='PUT',
|
|
4023
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}',
|
|
4024
|
+
path_params=_path_params,
|
|
4025
|
+
query_params=_query_params,
|
|
4026
|
+
header_params=_header_params,
|
|
4027
|
+
body=_body_params,
|
|
4028
|
+
post_params=_form_params,
|
|
4029
|
+
files=_files,
|
|
4030
|
+
auth_settings=_auth_settings,
|
|
4031
|
+
collection_formats=_collection_formats,
|
|
4032
|
+
_host=_host,
|
|
4033
|
+
_request_auth=_request_auth
|
|
4034
|
+
)
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
@validate_call
|
|
4040
|
+
def search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post(
|
|
4041
|
+
self,
|
|
4042
|
+
_request_timeout: Union[
|
|
4043
|
+
None,
|
|
4044
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4045
|
+
Tuple[
|
|
4046
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4047
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4048
|
+
]
|
|
4049
|
+
] = None,
|
|
4050
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4051
|
+
_content_type: Optional[StrictStr] = None,
|
|
4052
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4053
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4054
|
+
) -> object:
|
|
4055
|
+
"""Search for a directory line
|
|
4056
|
+
|
|
4057
|
+
Rechercher des lignes d'annuaire selon des critères
|
|
4058
|
+
|
|
4059
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4060
|
+
number provided, it will be total request
|
|
4061
|
+
timeout. It can also be a pair (tuple) of
|
|
4062
|
+
(connection, read) timeouts.
|
|
4063
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4064
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4065
|
+
request; this effectively ignores the
|
|
4066
|
+
authentication in the spec for a single request.
|
|
4067
|
+
:type _request_auth: dict, optional
|
|
4068
|
+
:param _content_type: force content-type for the request.
|
|
4069
|
+
:type _content_type: str, Optional
|
|
4070
|
+
:param _headers: set to override the headers for a single
|
|
4071
|
+
request; this effectively ignores the headers
|
|
4072
|
+
in the spec for a single request.
|
|
4073
|
+
:type _headers: dict, optional
|
|
4074
|
+
:param _host_index: set to override the host_index for a single
|
|
4075
|
+
request; this effectively ignores the host_index
|
|
4076
|
+
in the spec for a single request.
|
|
4077
|
+
:type _host_index: int, optional
|
|
4078
|
+
:return: Returns the result object.
|
|
4079
|
+
""" # noqa: E501
|
|
4080
|
+
|
|
4081
|
+
_param = self._search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_serialize(
|
|
4082
|
+
_request_auth=_request_auth,
|
|
4083
|
+
_content_type=_content_type,
|
|
4084
|
+
_headers=_headers,
|
|
4085
|
+
_host_index=_host_index
|
|
4086
|
+
)
|
|
4087
|
+
|
|
4088
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4089
|
+
'200': "object",
|
|
4090
|
+
'401': None,
|
|
4091
|
+
}
|
|
4092
|
+
response_data = self.api_client.call_api(
|
|
4093
|
+
*_param,
|
|
4094
|
+
_request_timeout=_request_timeout
|
|
4095
|
+
)
|
|
4096
|
+
response_data.read()
|
|
4097
|
+
return self.api_client.response_deserialize(
|
|
4098
|
+
response_data=response_data,
|
|
4099
|
+
response_types_map=_response_types_map,
|
|
4100
|
+
).data
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
@validate_call
|
|
4104
|
+
def search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_with_http_info(
|
|
4105
|
+
self,
|
|
4106
|
+
_request_timeout: Union[
|
|
4107
|
+
None,
|
|
4108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4109
|
+
Tuple[
|
|
4110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4112
|
+
]
|
|
4113
|
+
] = None,
|
|
4114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4115
|
+
_content_type: Optional[StrictStr] = None,
|
|
4116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4118
|
+
) -> ApiResponse[object]:
|
|
4119
|
+
"""Search for a directory line
|
|
4120
|
+
|
|
4121
|
+
Rechercher des lignes d'annuaire selon des critères
|
|
4122
|
+
|
|
4123
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4124
|
+
number provided, it will be total request
|
|
4125
|
+
timeout. It can also be a pair (tuple) of
|
|
4126
|
+
(connection, read) timeouts.
|
|
4127
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4129
|
+
request; this effectively ignores the
|
|
4130
|
+
authentication in the spec for a single request.
|
|
4131
|
+
:type _request_auth: dict, optional
|
|
4132
|
+
:param _content_type: force content-type for the request.
|
|
4133
|
+
:type _content_type: str, Optional
|
|
4134
|
+
:param _headers: set to override the headers for a single
|
|
4135
|
+
request; this effectively ignores the headers
|
|
4136
|
+
in the spec for a single request.
|
|
4137
|
+
:type _headers: dict, optional
|
|
4138
|
+
:param _host_index: set to override the host_index for a single
|
|
4139
|
+
request; this effectively ignores the host_index
|
|
4140
|
+
in the spec for a single request.
|
|
4141
|
+
:type _host_index: int, optional
|
|
4142
|
+
:return: Returns the result object.
|
|
4143
|
+
""" # noqa: E501
|
|
4144
|
+
|
|
4145
|
+
_param = self._search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_serialize(
|
|
4146
|
+
_request_auth=_request_auth,
|
|
4147
|
+
_content_type=_content_type,
|
|
4148
|
+
_headers=_headers,
|
|
4149
|
+
_host_index=_host_index
|
|
4150
|
+
)
|
|
4151
|
+
|
|
4152
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4153
|
+
'200': "object",
|
|
4154
|
+
'401': None,
|
|
4155
|
+
}
|
|
4156
|
+
response_data = self.api_client.call_api(
|
|
4157
|
+
*_param,
|
|
4158
|
+
_request_timeout=_request_timeout
|
|
4159
|
+
)
|
|
4160
|
+
response_data.read()
|
|
4161
|
+
return self.api_client.response_deserialize(
|
|
4162
|
+
response_data=response_data,
|
|
4163
|
+
response_types_map=_response_types_map,
|
|
4164
|
+
)
|
|
4165
|
+
|
|
4166
|
+
|
|
4167
|
+
@validate_call
|
|
4168
|
+
def search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_without_preload_content(
|
|
4169
|
+
self,
|
|
4170
|
+
_request_timeout: Union[
|
|
4171
|
+
None,
|
|
4172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4173
|
+
Tuple[
|
|
4174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4176
|
+
]
|
|
4177
|
+
] = None,
|
|
4178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4179
|
+
_content_type: Optional[StrictStr] = None,
|
|
4180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4182
|
+
) -> RESTResponseType:
|
|
4183
|
+
"""Search for a directory line
|
|
4184
|
+
|
|
4185
|
+
Rechercher des lignes d'annuaire selon des critères
|
|
4186
|
+
|
|
4187
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4188
|
+
number provided, it will be total request
|
|
4189
|
+
timeout. It can also be a pair (tuple) of
|
|
4190
|
+
(connection, read) timeouts.
|
|
4191
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4192
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4193
|
+
request; this effectively ignores the
|
|
4194
|
+
authentication in the spec for a single request.
|
|
4195
|
+
:type _request_auth: dict, optional
|
|
4196
|
+
:param _content_type: force content-type for the request.
|
|
4197
|
+
:type _content_type: str, Optional
|
|
4198
|
+
:param _headers: set to override the headers for a single
|
|
4199
|
+
request; this effectively ignores the headers
|
|
4200
|
+
in the spec for a single request.
|
|
4201
|
+
:type _headers: dict, optional
|
|
4202
|
+
:param _host_index: set to override the host_index for a single
|
|
4203
|
+
request; this effectively ignores the host_index
|
|
4204
|
+
in the spec for a single request.
|
|
4205
|
+
:type _host_index: int, optional
|
|
4206
|
+
:return: Returns the result object.
|
|
4207
|
+
""" # noqa: E501
|
|
4208
|
+
|
|
4209
|
+
_param = self._search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_serialize(
|
|
4210
|
+
_request_auth=_request_auth,
|
|
4211
|
+
_content_type=_content_type,
|
|
4212
|
+
_headers=_headers,
|
|
4213
|
+
_host_index=_host_index
|
|
4214
|
+
)
|
|
4215
|
+
|
|
4216
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4217
|
+
'200': "object",
|
|
4218
|
+
'401': None,
|
|
4219
|
+
}
|
|
4220
|
+
response_data = self.api_client.call_api(
|
|
4221
|
+
*_param,
|
|
4222
|
+
_request_timeout=_request_timeout
|
|
4223
|
+
)
|
|
4224
|
+
return response_data.response
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
def _search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_serialize(
|
|
4228
|
+
self,
|
|
4229
|
+
_request_auth,
|
|
4230
|
+
_content_type,
|
|
4231
|
+
_headers,
|
|
4232
|
+
_host_index,
|
|
4233
|
+
) -> RequestSerialized:
|
|
4234
|
+
|
|
4235
|
+
_host = None
|
|
4236
|
+
|
|
4237
|
+
_collection_formats: Dict[str, str] = {
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
_path_params: Dict[str, str] = {}
|
|
4241
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4242
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4243
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4244
|
+
_files: Dict[
|
|
4245
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4246
|
+
] = {}
|
|
4247
|
+
_body_params: Optional[bytes] = None
|
|
4248
|
+
|
|
4249
|
+
# process the path parameters
|
|
4250
|
+
# process the query parameters
|
|
4251
|
+
# process the header parameters
|
|
4252
|
+
# process the form parameters
|
|
4253
|
+
# process the body parameter
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
# set the HTTP header `Accept`
|
|
4257
|
+
if 'Accept' not in _header_params:
|
|
4258
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4259
|
+
[
|
|
4260
|
+
'application/json'
|
|
4261
|
+
]
|
|
4262
|
+
)
|
|
4263
|
+
|
|
4264
|
+
|
|
4265
|
+
# authentication setting
|
|
4266
|
+
_auth_settings: List[str] = [
|
|
4267
|
+
]
|
|
4268
|
+
|
|
4269
|
+
return self.api_client.param_serialize(
|
|
4270
|
+
method='POST',
|
|
4271
|
+
resource_path='/api/v1/afnor/directory/v1/directory-line/search',
|
|
4272
|
+
path_params=_path_params,
|
|
4273
|
+
query_params=_query_params,
|
|
4274
|
+
header_params=_header_params,
|
|
4275
|
+
body=_body_params,
|
|
4276
|
+
post_params=_form_params,
|
|
4277
|
+
files=_files,
|
|
4278
|
+
auth_settings=_auth_settings,
|
|
4279
|
+
collection_formats=_collection_formats,
|
|
4280
|
+
_host=_host,
|
|
4281
|
+
_request_auth=_request_auth
|
|
4282
|
+
)
|
|
4283
|
+
|
|
4284
|
+
|
|
4285
|
+
|
|
4286
|
+
|
|
4287
|
+
@validate_call
|
|
4288
|
+
def search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post(
|
|
4289
|
+
self,
|
|
4290
|
+
_request_timeout: Union[
|
|
4291
|
+
None,
|
|
4292
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4293
|
+
Tuple[
|
|
4294
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4295
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4296
|
+
]
|
|
4297
|
+
] = None,
|
|
4298
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4299
|
+
_content_type: Optional[StrictStr] = None,
|
|
4300
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4301
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4302
|
+
) -> object:
|
|
4303
|
+
"""Search for a routing code
|
|
57
4304
|
|
|
58
|
-
|
|
4305
|
+
Rechercher des codes de routage selon des critères
|
|
59
4306
|
|
|
60
4307
|
:param _request_timeout: timeout setting for this request. If one
|
|
61
4308
|
number provided, it will be total request
|
|
@@ -79,7 +4326,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
79
4326
|
:return: Returns the result object.
|
|
80
4327
|
""" # noqa: E501
|
|
81
4328
|
|
|
82
|
-
_param = self.
|
|
4329
|
+
_param = self._search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_serialize(
|
|
83
4330
|
_request_auth=_request_auth,
|
|
84
4331
|
_content_type=_content_type,
|
|
85
4332
|
_headers=_headers,
|
|
@@ -88,6 +4335,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
88
4335
|
|
|
89
4336
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
90
4337
|
'200': "object",
|
|
4338
|
+
'401': None,
|
|
91
4339
|
}
|
|
92
4340
|
response_data = self.api_client.call_api(
|
|
93
4341
|
*_param,
|
|
@@ -101,7 +4349,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
101
4349
|
|
|
102
4350
|
|
|
103
4351
|
@validate_call
|
|
104
|
-
def
|
|
4352
|
+
def search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_with_http_info(
|
|
105
4353
|
self,
|
|
106
4354
|
_request_timeout: Union[
|
|
107
4355
|
None,
|
|
@@ -116,9 +4364,9 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
116
4364
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
4365
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
4366
|
) -> ApiResponse[object]:
|
|
119
|
-
"""
|
|
4367
|
+
"""Search for a routing code
|
|
120
4368
|
|
|
121
|
-
|
|
4369
|
+
Rechercher des codes de routage selon des critères
|
|
122
4370
|
|
|
123
4371
|
:param _request_timeout: timeout setting for this request. If one
|
|
124
4372
|
number provided, it will be total request
|
|
@@ -142,7 +4390,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
142
4390
|
:return: Returns the result object.
|
|
143
4391
|
""" # noqa: E501
|
|
144
4392
|
|
|
145
|
-
_param = self.
|
|
4393
|
+
_param = self._search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_serialize(
|
|
146
4394
|
_request_auth=_request_auth,
|
|
147
4395
|
_content_type=_content_type,
|
|
148
4396
|
_headers=_headers,
|
|
@@ -151,6 +4399,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
151
4399
|
|
|
152
4400
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
153
4401
|
'200': "object",
|
|
4402
|
+
'401': None,
|
|
154
4403
|
}
|
|
155
4404
|
response_data = self.api_client.call_api(
|
|
156
4405
|
*_param,
|
|
@@ -164,7 +4413,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
164
4413
|
|
|
165
4414
|
|
|
166
4415
|
@validate_call
|
|
167
|
-
def
|
|
4416
|
+
def search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_without_preload_content(
|
|
168
4417
|
self,
|
|
169
4418
|
_request_timeout: Union[
|
|
170
4419
|
None,
|
|
@@ -179,9 +4428,9 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
179
4428
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
180
4429
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
181
4430
|
) -> RESTResponseType:
|
|
182
|
-
"""
|
|
4431
|
+
"""Search for a routing code
|
|
183
4432
|
|
|
184
|
-
|
|
4433
|
+
Rechercher des codes de routage selon des critères
|
|
185
4434
|
|
|
186
4435
|
:param _request_timeout: timeout setting for this request. If one
|
|
187
4436
|
number provided, it will be total request
|
|
@@ -205,7 +4454,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
205
4454
|
:return: Returns the result object.
|
|
206
4455
|
""" # noqa: E501
|
|
207
4456
|
|
|
208
|
-
_param = self.
|
|
4457
|
+
_param = self._search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_serialize(
|
|
209
4458
|
_request_auth=_request_auth,
|
|
210
4459
|
_content_type=_content_type,
|
|
211
4460
|
_headers=_headers,
|
|
@@ -214,6 +4463,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
214
4463
|
|
|
215
4464
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
4465
|
'200': "object",
|
|
4466
|
+
'401': None,
|
|
217
4467
|
}
|
|
218
4468
|
response_data = self.api_client.call_api(
|
|
219
4469
|
*_param,
|
|
@@ -222,7 +4472,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
222
4472
|
return response_data.response
|
|
223
4473
|
|
|
224
4474
|
|
|
225
|
-
def
|
|
4475
|
+
def _search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_serialize(
|
|
226
4476
|
self,
|
|
227
4477
|
_request_auth,
|
|
228
4478
|
_content_type,
|
|
@@ -265,8 +4515,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
265
4515
|
]
|
|
266
4516
|
|
|
267
4517
|
return self.api_client.param_serialize(
|
|
268
|
-
method='
|
|
269
|
-
resource_path='/api/v1/afnor/directory/v1/
|
|
4518
|
+
method='POST',
|
|
4519
|
+
resource_path='/api/v1/afnor/directory/v1/routing-code/search',
|
|
270
4520
|
path_params=_path_params,
|
|
271
4521
|
query_params=_query_params,
|
|
272
4522
|
header_params=_header_params,
|
|
@@ -283,9 +4533,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
283
4533
|
|
|
284
4534
|
|
|
285
4535
|
@validate_call
|
|
286
|
-
def
|
|
4536
|
+
def search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post(
|
|
287
4537
|
self,
|
|
288
|
-
siren: StrictStr,
|
|
289
4538
|
_request_timeout: Union[
|
|
290
4539
|
None,
|
|
291
4540
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -299,12 +4548,10 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
299
4548
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
300
4549
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
301
4550
|
) -> object:
|
|
302
|
-
"""
|
|
4551
|
+
"""SIREN search (or legal unit)
|
|
303
4552
|
|
|
304
|
-
|
|
4553
|
+
Recherche multi-critères d'entreprises (unités légales)
|
|
305
4554
|
|
|
306
|
-
:param siren: (required)
|
|
307
|
-
:type siren: str
|
|
308
4555
|
:param _request_timeout: timeout setting for this request. If one
|
|
309
4556
|
number provided, it will be total request
|
|
310
4557
|
timeout. It can also be a pair (tuple) of
|
|
@@ -327,8 +4574,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
327
4574
|
:return: Returns the result object.
|
|
328
4575
|
""" # noqa: E501
|
|
329
4576
|
|
|
330
|
-
_param = self.
|
|
331
|
-
siren=siren,
|
|
4577
|
+
_param = self._search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_serialize(
|
|
332
4578
|
_request_auth=_request_auth,
|
|
333
4579
|
_content_type=_content_type,
|
|
334
4580
|
_headers=_headers,
|
|
@@ -337,9 +4583,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
337
4583
|
|
|
338
4584
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
339
4585
|
'200': "object",
|
|
340
|
-
'404': None,
|
|
341
4586
|
'401': None,
|
|
342
|
-
'422': "HTTPValidationError",
|
|
343
4587
|
}
|
|
344
4588
|
response_data = self.api_client.call_api(
|
|
345
4589
|
*_param,
|
|
@@ -353,9 +4597,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
353
4597
|
|
|
354
4598
|
|
|
355
4599
|
@validate_call
|
|
356
|
-
def
|
|
4600
|
+
def search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_with_http_info(
|
|
357
4601
|
self,
|
|
358
|
-
siren: StrictStr,
|
|
359
4602
|
_request_timeout: Union[
|
|
360
4603
|
None,
|
|
361
4604
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -369,12 +4612,10 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
369
4612
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
370
4613
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
371
4614
|
) -> ApiResponse[object]:
|
|
372
|
-
"""
|
|
4615
|
+
"""SIREN search (or legal unit)
|
|
373
4616
|
|
|
374
|
-
|
|
4617
|
+
Recherche multi-critères d'entreprises (unités légales)
|
|
375
4618
|
|
|
376
|
-
:param siren: (required)
|
|
377
|
-
:type siren: str
|
|
378
4619
|
:param _request_timeout: timeout setting for this request. If one
|
|
379
4620
|
number provided, it will be total request
|
|
380
4621
|
timeout. It can also be a pair (tuple) of
|
|
@@ -397,8 +4638,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
397
4638
|
:return: Returns the result object.
|
|
398
4639
|
""" # noqa: E501
|
|
399
4640
|
|
|
400
|
-
_param = self.
|
|
401
|
-
siren=siren,
|
|
4641
|
+
_param = self._search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_serialize(
|
|
402
4642
|
_request_auth=_request_auth,
|
|
403
4643
|
_content_type=_content_type,
|
|
404
4644
|
_headers=_headers,
|
|
@@ -407,9 +4647,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
407
4647
|
|
|
408
4648
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
409
4649
|
'200': "object",
|
|
410
|
-
'404': None,
|
|
411
4650
|
'401': None,
|
|
412
|
-
'422': "HTTPValidationError",
|
|
413
4651
|
}
|
|
414
4652
|
response_data = self.api_client.call_api(
|
|
415
4653
|
*_param,
|
|
@@ -423,9 +4661,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
423
4661
|
|
|
424
4662
|
|
|
425
4663
|
@validate_call
|
|
426
|
-
def
|
|
4664
|
+
def search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_without_preload_content(
|
|
427
4665
|
self,
|
|
428
|
-
siren: StrictStr,
|
|
429
4666
|
_request_timeout: Union[
|
|
430
4667
|
None,
|
|
431
4668
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -439,12 +4676,10 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
439
4676
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
440
4677
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
441
4678
|
) -> RESTResponseType:
|
|
442
|
-
"""
|
|
4679
|
+
"""SIREN search (or legal unit)
|
|
443
4680
|
|
|
444
|
-
|
|
4681
|
+
Recherche multi-critères d'entreprises (unités légales)
|
|
445
4682
|
|
|
446
|
-
:param siren: (required)
|
|
447
|
-
:type siren: str
|
|
448
4683
|
:param _request_timeout: timeout setting for this request. If one
|
|
449
4684
|
number provided, it will be total request
|
|
450
4685
|
timeout. It can also be a pair (tuple) of
|
|
@@ -467,8 +4702,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
467
4702
|
:return: Returns the result object.
|
|
468
4703
|
""" # noqa: E501
|
|
469
4704
|
|
|
470
|
-
_param = self.
|
|
471
|
-
siren=siren,
|
|
4705
|
+
_param = self._search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_serialize(
|
|
472
4706
|
_request_auth=_request_auth,
|
|
473
4707
|
_content_type=_content_type,
|
|
474
4708
|
_headers=_headers,
|
|
@@ -477,9 +4711,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
477
4711
|
|
|
478
4712
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
479
4713
|
'200': "object",
|
|
480
|
-
'404': None,
|
|
481
4714
|
'401': None,
|
|
482
|
-
'422': "HTTPValidationError",
|
|
483
4715
|
}
|
|
484
4716
|
response_data = self.api_client.call_api(
|
|
485
4717
|
*_param,
|
|
@@ -488,9 +4720,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
488
4720
|
return response_data.response
|
|
489
4721
|
|
|
490
4722
|
|
|
491
|
-
def
|
|
4723
|
+
def _search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_serialize(
|
|
492
4724
|
self,
|
|
493
|
-
siren,
|
|
494
4725
|
_request_auth,
|
|
495
4726
|
_content_type,
|
|
496
4727
|
_headers,
|
|
@@ -512,8 +4743,6 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
512
4743
|
_body_params: Optional[bytes] = None
|
|
513
4744
|
|
|
514
4745
|
# process the path parameters
|
|
515
|
-
if siren is not None:
|
|
516
|
-
_path_params['siren'] = siren
|
|
517
4746
|
# process the query parameters
|
|
518
4747
|
# process the header parameters
|
|
519
4748
|
# process the form parameters
|
|
@@ -534,8 +4763,8 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
534
4763
|
]
|
|
535
4764
|
|
|
536
4765
|
return self.api_client.param_serialize(
|
|
537
|
-
method='
|
|
538
|
-
resource_path='/api/v1/afnor/directory/v1/
|
|
4766
|
+
method='POST',
|
|
4767
|
+
resource_path='/api/v1/afnor/directory/v1/siren/search',
|
|
539
4768
|
path_params=_path_params,
|
|
540
4769
|
query_params=_query_params,
|
|
541
4770
|
header_params=_header_params,
|
|
@@ -552,7 +4781,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
552
4781
|
|
|
553
4782
|
|
|
554
4783
|
@validate_call
|
|
555
|
-
def
|
|
4784
|
+
def search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post(
|
|
556
4785
|
self,
|
|
557
4786
|
_request_timeout: Union[
|
|
558
4787
|
None,
|
|
@@ -567,9 +4796,9 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
567
4796
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
568
4797
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
569
4798
|
) -> object:
|
|
570
|
-
"""
|
|
4799
|
+
"""Search for a SIRET (facility)
|
|
571
4800
|
|
|
572
|
-
|
|
4801
|
+
Recherche multi-critères d'établissements
|
|
573
4802
|
|
|
574
4803
|
:param _request_timeout: timeout setting for this request. If one
|
|
575
4804
|
number provided, it will be total request
|
|
@@ -593,7 +4822,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
593
4822
|
:return: Returns the result object.
|
|
594
4823
|
""" # noqa: E501
|
|
595
4824
|
|
|
596
|
-
_param = self.
|
|
4825
|
+
_param = self._search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_serialize(
|
|
597
4826
|
_request_auth=_request_auth,
|
|
598
4827
|
_content_type=_content_type,
|
|
599
4828
|
_headers=_headers,
|
|
@@ -616,7 +4845,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
616
4845
|
|
|
617
4846
|
|
|
618
4847
|
@validate_call
|
|
619
|
-
def
|
|
4848
|
+
def search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_with_http_info(
|
|
620
4849
|
self,
|
|
621
4850
|
_request_timeout: Union[
|
|
622
4851
|
None,
|
|
@@ -631,9 +4860,9 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
631
4860
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
632
4861
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
633
4862
|
) -> ApiResponse[object]:
|
|
634
|
-
"""
|
|
4863
|
+
"""Search for a SIRET (facility)
|
|
635
4864
|
|
|
636
|
-
|
|
4865
|
+
Recherche multi-critères d'établissements
|
|
637
4866
|
|
|
638
4867
|
:param _request_timeout: timeout setting for this request. If one
|
|
639
4868
|
number provided, it will be total request
|
|
@@ -657,7 +4886,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
657
4886
|
:return: Returns the result object.
|
|
658
4887
|
""" # noqa: E501
|
|
659
4888
|
|
|
660
|
-
_param = self.
|
|
4889
|
+
_param = self._search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_serialize(
|
|
661
4890
|
_request_auth=_request_auth,
|
|
662
4891
|
_content_type=_content_type,
|
|
663
4892
|
_headers=_headers,
|
|
@@ -680,7 +4909,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
680
4909
|
|
|
681
4910
|
|
|
682
4911
|
@validate_call
|
|
683
|
-
def
|
|
4912
|
+
def search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_without_preload_content(
|
|
684
4913
|
self,
|
|
685
4914
|
_request_timeout: Union[
|
|
686
4915
|
None,
|
|
@@ -695,9 +4924,9 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
695
4924
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
696
4925
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
697
4926
|
) -> RESTResponseType:
|
|
698
|
-
"""
|
|
4927
|
+
"""Search for a SIRET (facility)
|
|
699
4928
|
|
|
700
|
-
|
|
4929
|
+
Recherche multi-critères d'établissements
|
|
701
4930
|
|
|
702
4931
|
:param _request_timeout: timeout setting for this request. If one
|
|
703
4932
|
number provided, it will be total request
|
|
@@ -721,7 +4950,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
721
4950
|
:return: Returns the result object.
|
|
722
4951
|
""" # noqa: E501
|
|
723
4952
|
|
|
724
|
-
_param = self.
|
|
4953
|
+
_param = self._search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_serialize(
|
|
725
4954
|
_request_auth=_request_auth,
|
|
726
4955
|
_content_type=_content_type,
|
|
727
4956
|
_headers=_headers,
|
|
@@ -739,7 +4968,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
739
4968
|
return response_data.response
|
|
740
4969
|
|
|
741
4970
|
|
|
742
|
-
def
|
|
4971
|
+
def _search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_serialize(
|
|
743
4972
|
self,
|
|
744
4973
|
_request_auth,
|
|
745
4974
|
_content_type,
|
|
@@ -783,7 +5012,7 @@ class AFNORPDPPADirectoryServiceApi:
|
|
|
783
5012
|
|
|
784
5013
|
return self.api_client.param_serialize(
|
|
785
5014
|
method='POST',
|
|
786
|
-
resource_path='/api/v1/afnor/directory/v1/
|
|
5015
|
+
resource_path='/api/v1/afnor/directory/v1/siret/search',
|
|
787
5016
|
path_params=_path_params,
|
|
788
5017
|
query_params=_query_params,
|
|
789
5018
|
header_params=_header_params,
|