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