neurograph-core 1.202509252137__py3-none-any.whl → 1.202510040107__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.
- neurograph/v1/__init__.py +63 -198
- neurograph/v1/api/__init__.py +4 -27
- neurograph/v1/api/admin_api.py +1123 -0
- neurograph/v1/api/client_api.py +263 -0
- neurograph/v1/api/dagster_api.py +2 -1
- neurograph/v1/api/knowledge_api.py +296 -0
- neurograph/v1/api/knowledge_extract_api.py +1 -1
- neurograph/v1/api/lookup_api.py +279 -27
- neurograph/v1/api/organization_api.py +128 -137
- neurograph/v1/api/persona_api.py +2 -1
- neurograph/v1/api/reporting_api.py +300 -0
- neurograph/v1/api/user_api.py +282 -0
- neurograph/v1/api_client.py +4 -4
- neurograph/v1/models/__init__.py +29 -170
- neurograph/v1/models/admin_permission_response.py +95 -0
- neurograph/v1/models/admin_set_permission_request.py +91 -0
- neurograph/v1/models/admin_upsert_user_request.py +91 -0
- neurograph/v1/models/admin_upsert_user_response.py +99 -0
- neurograph/v1/models/admin_user.py +97 -0
- neurograph/v1/models/admin_user_detail_response.py +121 -0
- neurograph/v1/models/admin_users_get_many_response.py +97 -0
- neurograph/v1/models/admin_users_org_response.py +97 -0
- neurograph/v1/models/db_account_organization_brand.py +109 -0
- neurograph/v1/models/db_my_client.py +99 -0
- neurograph/v1/models/db_my_org.py +121 -0
- neurograph/v1/models/db_user_client_role.py +93 -0
- neurograph/v1/models/db_user_in_db.py +127 -0
- neurograph/v1/models/db_user_org_role.py +93 -0
- neurograph/v1/models/db_user_role.py +91 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +3 -1
- neurograph/v1/models/knowledge_enrichment_query.py +3 -1
- neurograph/v1/models/knowledge_product.py +103 -0
- neurograph/v1/models/knowledge_product_upsert_request.py +95 -0
- neurograph/v1/models/knowledge_product_upsert_response.py +99 -0
- neurograph/v1/models/lookup_env.py +89 -0
- neurograph/v1/models/{lookup_lookup_language_response.py → lookup_language_response.py} +4 -4
- neurograph/v1/models/lookup_lookup_environments_response.py +97 -0
- neurograph/v1/models/lookup_role.py +89 -0
- neurograph/v1/models/lookup_roles_response.py +97 -0
- neurograph/v1/models/{lookup_lookup_state_response.py → lookup_states_response.py} +4 -4
- neurograph/v1/models/me_my_profile_response.py +115 -0
- neurograph/v1/models/reporting_daily_metric.py +95 -0
- neurograph/v1/models/reporting_daily_metrics_response.py +97 -0
- neurograph/v1/models/reporting_query.py +91 -0
- {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202510040107.dist-info}/METADATA +2 -3
- {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202510040107.dist-info}/RECORD +48 -19
- {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202510040107.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202510040107.dist-info}/top_level.txt +0 -0
|
@@ -19,6 +19,7 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
|
20
20
|
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
+
from neurograph.v1.models.admin_users_org_response import AdminUsersOrgResponse
|
|
22
23
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
23
24
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
|
|
24
25
|
from neurograph.v1.models.organizations_create_request import OrganizationsCreateRequest
|
|
@@ -615,9 +616,9 @@ class OrganizationApi:
|
|
|
615
616
|
|
|
616
617
|
|
|
617
618
|
@validate_call
|
|
618
|
-
def
|
|
619
|
+
def api_v1_organizations_org_id_get(
|
|
619
620
|
self,
|
|
620
|
-
|
|
621
|
+
org_id: Annotated[StrictStr, Field(description="Organization identifier (ID with prefix 'org_' or UID)")],
|
|
621
622
|
_request_timeout: Union[
|
|
622
623
|
None,
|
|
623
624
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -631,12 +632,12 @@ class OrganizationApi:
|
|
|
631
632
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
632
633
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
633
634
|
) -> OrganizationsDetailResponse:
|
|
634
|
-
"""Get Organization by
|
|
635
|
+
"""Get Organization by ID or UID
|
|
635
636
|
|
|
636
|
-
|
|
637
|
+
Retrieve a single organization record by its identifier.
|
|
637
638
|
|
|
638
|
-
:param
|
|
639
|
-
:type
|
|
639
|
+
:param org_id: Organization identifier (ID with prefix 'org_' or UID) (required)
|
|
640
|
+
:type org_id: str
|
|
640
641
|
:param _request_timeout: timeout setting for this request. If one
|
|
641
642
|
number provided, it will be total request
|
|
642
643
|
timeout. It can also be a pair (tuple) of
|
|
@@ -659,8 +660,8 @@ class OrganizationApi:
|
|
|
659
660
|
:return: Returns the result object.
|
|
660
661
|
""" # noqa: E501
|
|
661
662
|
|
|
662
|
-
_param = self.
|
|
663
|
-
|
|
663
|
+
_param = self._api_v1_organizations_org_id_get_serialize(
|
|
664
|
+
org_id=org_id,
|
|
664
665
|
_request_auth=_request_auth,
|
|
665
666
|
_content_type=_content_type,
|
|
666
667
|
_headers=_headers,
|
|
@@ -670,7 +671,6 @@ class OrganizationApi:
|
|
|
670
671
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
671
672
|
'200': "OrganizationsDetailResponse",
|
|
672
673
|
'400': "OrganizationsDetailResponse",
|
|
673
|
-
'503': "OrganizationsDetailResponse",
|
|
674
674
|
}
|
|
675
675
|
response_data = self.api_client.call_api(
|
|
676
676
|
*_param,
|
|
@@ -684,9 +684,9 @@ class OrganizationApi:
|
|
|
684
684
|
|
|
685
685
|
|
|
686
686
|
@validate_call
|
|
687
|
-
def
|
|
687
|
+
def api_v1_organizations_org_id_get_with_http_info(
|
|
688
688
|
self,
|
|
689
|
-
|
|
689
|
+
org_id: Annotated[StrictStr, Field(description="Organization identifier (ID with prefix 'org_' or UID)")],
|
|
690
690
|
_request_timeout: Union[
|
|
691
691
|
None,
|
|
692
692
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -700,12 +700,12 @@ class OrganizationApi:
|
|
|
700
700
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
701
701
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
702
702
|
) -> ApiResponse[OrganizationsDetailResponse]:
|
|
703
|
-
"""Get Organization by
|
|
703
|
+
"""Get Organization by ID or UID
|
|
704
704
|
|
|
705
|
-
|
|
705
|
+
Retrieve a single organization record by its identifier.
|
|
706
706
|
|
|
707
|
-
:param
|
|
708
|
-
:type
|
|
707
|
+
:param org_id: Organization identifier (ID with prefix 'org_' or UID) (required)
|
|
708
|
+
:type org_id: str
|
|
709
709
|
:param _request_timeout: timeout setting for this request. If one
|
|
710
710
|
number provided, it will be total request
|
|
711
711
|
timeout. It can also be a pair (tuple) of
|
|
@@ -728,8 +728,8 @@ class OrganizationApi:
|
|
|
728
728
|
:return: Returns the result object.
|
|
729
729
|
""" # noqa: E501
|
|
730
730
|
|
|
731
|
-
_param = self.
|
|
732
|
-
|
|
731
|
+
_param = self._api_v1_organizations_org_id_get_serialize(
|
|
732
|
+
org_id=org_id,
|
|
733
733
|
_request_auth=_request_auth,
|
|
734
734
|
_content_type=_content_type,
|
|
735
735
|
_headers=_headers,
|
|
@@ -739,7 +739,6 @@ class OrganizationApi:
|
|
|
739
739
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
740
740
|
'200': "OrganizationsDetailResponse",
|
|
741
741
|
'400': "OrganizationsDetailResponse",
|
|
742
|
-
'503': "OrganizationsDetailResponse",
|
|
743
742
|
}
|
|
744
743
|
response_data = self.api_client.call_api(
|
|
745
744
|
*_param,
|
|
@@ -753,9 +752,9 @@ class OrganizationApi:
|
|
|
753
752
|
|
|
754
753
|
|
|
755
754
|
@validate_call
|
|
756
|
-
def
|
|
755
|
+
def api_v1_organizations_org_id_get_without_preload_content(
|
|
757
756
|
self,
|
|
758
|
-
|
|
757
|
+
org_id: Annotated[StrictStr, Field(description="Organization identifier (ID with prefix 'org_' or UID)")],
|
|
759
758
|
_request_timeout: Union[
|
|
760
759
|
None,
|
|
761
760
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -769,12 +768,12 @@ class OrganizationApi:
|
|
|
769
768
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
770
769
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
771
770
|
) -> RESTResponseType:
|
|
772
|
-
"""Get Organization by
|
|
771
|
+
"""Get Organization by ID or UID
|
|
773
772
|
|
|
774
|
-
|
|
773
|
+
Retrieve a single organization record by its identifier.
|
|
775
774
|
|
|
776
|
-
:param
|
|
777
|
-
:type
|
|
775
|
+
:param org_id: Organization identifier (ID with prefix 'org_' or UID) (required)
|
|
776
|
+
:type org_id: str
|
|
778
777
|
:param _request_timeout: timeout setting for this request. If one
|
|
779
778
|
number provided, it will be total request
|
|
780
779
|
timeout. It can also be a pair (tuple) of
|
|
@@ -797,8 +796,8 @@ class OrganizationApi:
|
|
|
797
796
|
:return: Returns the result object.
|
|
798
797
|
""" # noqa: E501
|
|
799
798
|
|
|
800
|
-
_param = self.
|
|
801
|
-
|
|
799
|
+
_param = self._api_v1_organizations_org_id_get_serialize(
|
|
800
|
+
org_id=org_id,
|
|
802
801
|
_request_auth=_request_auth,
|
|
803
802
|
_content_type=_content_type,
|
|
804
803
|
_headers=_headers,
|
|
@@ -808,7 +807,6 @@ class OrganizationApi:
|
|
|
808
807
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
809
808
|
'200': "OrganizationsDetailResponse",
|
|
810
809
|
'400': "OrganizationsDetailResponse",
|
|
811
|
-
'503': "OrganizationsDetailResponse",
|
|
812
810
|
}
|
|
813
811
|
response_data = self.api_client.call_api(
|
|
814
812
|
*_param,
|
|
@@ -817,9 +815,9 @@ class OrganizationApi:
|
|
|
817
815
|
return response_data.response
|
|
818
816
|
|
|
819
817
|
|
|
820
|
-
def
|
|
818
|
+
def _api_v1_organizations_org_id_get_serialize(
|
|
821
819
|
self,
|
|
822
|
-
|
|
820
|
+
org_id,
|
|
823
821
|
_request_auth,
|
|
824
822
|
_content_type,
|
|
825
823
|
_headers,
|
|
@@ -841,8 +839,8 @@ class OrganizationApi:
|
|
|
841
839
|
_body_params: Optional[bytes] = None
|
|
842
840
|
|
|
843
841
|
# process the path parameters
|
|
844
|
-
if
|
|
845
|
-
_path_params['
|
|
842
|
+
if org_id is not None:
|
|
843
|
+
_path_params['org_id'] = org_id
|
|
846
844
|
# process the query parameters
|
|
847
845
|
# process the header parameters
|
|
848
846
|
# process the form parameters
|
|
@@ -866,7 +864,7 @@ class OrganizationApi:
|
|
|
866
864
|
|
|
867
865
|
return self.api_client.param_serialize(
|
|
868
866
|
method='GET',
|
|
869
|
-
resource_path='/api/v1/organizations/{
|
|
867
|
+
resource_path='/api/v1/organizations/{org_id}',
|
|
870
868
|
path_params=_path_params,
|
|
871
869
|
query_params=_query_params,
|
|
872
870
|
header_params=_header_params,
|
|
@@ -883,9 +881,9 @@ class OrganizationApi:
|
|
|
883
881
|
|
|
884
882
|
|
|
885
883
|
@validate_call
|
|
886
|
-
def
|
|
884
|
+
def api_v1_organizations_org_id_users_get(
|
|
887
885
|
self,
|
|
888
|
-
|
|
886
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
889
887
|
_request_timeout: Union[
|
|
890
888
|
None,
|
|
891
889
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -898,13 +896,12 @@ class OrganizationApi:
|
|
|
898
896
|
_content_type: Optional[StrictStr] = None,
|
|
899
897
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
900
898
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
901
|
-
) ->
|
|
902
|
-
"""
|
|
899
|
+
) -> AdminUsersOrgResponse:
|
|
900
|
+
"""Organization's assigned users and their permissions
|
|
903
901
|
|
|
904
|
-
Create an Organization
|
|
905
902
|
|
|
906
|
-
:param
|
|
907
|
-
:type
|
|
903
|
+
:param org_id: Organization ID (required)
|
|
904
|
+
:type org_id: str
|
|
908
905
|
:param _request_timeout: timeout setting for this request. If one
|
|
909
906
|
number provided, it will be total request
|
|
910
907
|
timeout. It can also be a pair (tuple) of
|
|
@@ -927,8 +924,8 @@ class OrganizationApi:
|
|
|
927
924
|
:return: Returns the result object.
|
|
928
925
|
""" # noqa: E501
|
|
929
926
|
|
|
930
|
-
_param = self.
|
|
931
|
-
|
|
927
|
+
_param = self._api_v1_organizations_org_id_users_get_serialize(
|
|
928
|
+
org_id=org_id,
|
|
932
929
|
_request_auth=_request_auth,
|
|
933
930
|
_content_type=_content_type,
|
|
934
931
|
_headers=_headers,
|
|
@@ -936,9 +933,8 @@ class OrganizationApi:
|
|
|
936
933
|
)
|
|
937
934
|
|
|
938
935
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
939
|
-
'200': "
|
|
940
|
-
'
|
|
941
|
-
'503': "OrganizationsDetailResponse",
|
|
936
|
+
'200': "AdminUsersOrgResponse",
|
|
937
|
+
'503': "AdminUsersOrgResponse",
|
|
942
938
|
}
|
|
943
939
|
response_data = self.api_client.call_api(
|
|
944
940
|
*_param,
|
|
@@ -952,9 +948,9 @@ class OrganizationApi:
|
|
|
952
948
|
|
|
953
949
|
|
|
954
950
|
@validate_call
|
|
955
|
-
def
|
|
951
|
+
def api_v1_organizations_org_id_users_get_with_http_info(
|
|
956
952
|
self,
|
|
957
|
-
|
|
953
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
958
954
|
_request_timeout: Union[
|
|
959
955
|
None,
|
|
960
956
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -967,13 +963,12 @@ class OrganizationApi:
|
|
|
967
963
|
_content_type: Optional[StrictStr] = None,
|
|
968
964
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
969
965
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
970
|
-
) -> ApiResponse[
|
|
971
|
-
"""
|
|
966
|
+
) -> ApiResponse[AdminUsersOrgResponse]:
|
|
967
|
+
"""Organization's assigned users and their permissions
|
|
972
968
|
|
|
973
|
-
Create an Organization
|
|
974
969
|
|
|
975
|
-
:param
|
|
976
|
-
:type
|
|
970
|
+
:param org_id: Organization ID (required)
|
|
971
|
+
:type org_id: str
|
|
977
972
|
:param _request_timeout: timeout setting for this request. If one
|
|
978
973
|
number provided, it will be total request
|
|
979
974
|
timeout. It can also be a pair (tuple) of
|
|
@@ -996,8 +991,8 @@ class OrganizationApi:
|
|
|
996
991
|
:return: Returns the result object.
|
|
997
992
|
""" # noqa: E501
|
|
998
993
|
|
|
999
|
-
_param = self.
|
|
1000
|
-
|
|
994
|
+
_param = self._api_v1_organizations_org_id_users_get_serialize(
|
|
995
|
+
org_id=org_id,
|
|
1001
996
|
_request_auth=_request_auth,
|
|
1002
997
|
_content_type=_content_type,
|
|
1003
998
|
_headers=_headers,
|
|
@@ -1005,9 +1000,8 @@ class OrganizationApi:
|
|
|
1005
1000
|
)
|
|
1006
1001
|
|
|
1007
1002
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1008
|
-
'200': "
|
|
1009
|
-
'
|
|
1010
|
-
'503': "OrganizationsDetailResponse",
|
|
1003
|
+
'200': "AdminUsersOrgResponse",
|
|
1004
|
+
'503': "AdminUsersOrgResponse",
|
|
1011
1005
|
}
|
|
1012
1006
|
response_data = self.api_client.call_api(
|
|
1013
1007
|
*_param,
|
|
@@ -1021,9 +1015,9 @@ class OrganizationApi:
|
|
|
1021
1015
|
|
|
1022
1016
|
|
|
1023
1017
|
@validate_call
|
|
1024
|
-
def
|
|
1018
|
+
def api_v1_organizations_org_id_users_get_without_preload_content(
|
|
1025
1019
|
self,
|
|
1026
|
-
|
|
1020
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
1027
1021
|
_request_timeout: Union[
|
|
1028
1022
|
None,
|
|
1029
1023
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1037,12 +1031,11 @@ class OrganizationApi:
|
|
|
1037
1031
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1038
1032
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1039
1033
|
) -> RESTResponseType:
|
|
1040
|
-
"""
|
|
1034
|
+
"""Organization's assigned users and their permissions
|
|
1041
1035
|
|
|
1042
|
-
Create an Organization
|
|
1043
1036
|
|
|
1044
|
-
:param
|
|
1045
|
-
:type
|
|
1037
|
+
:param org_id: Organization ID (required)
|
|
1038
|
+
:type org_id: str
|
|
1046
1039
|
:param _request_timeout: timeout setting for this request. If one
|
|
1047
1040
|
number provided, it will be total request
|
|
1048
1041
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1065,8 +1058,8 @@ class OrganizationApi:
|
|
|
1065
1058
|
:return: Returns the result object.
|
|
1066
1059
|
""" # noqa: E501
|
|
1067
1060
|
|
|
1068
|
-
_param = self.
|
|
1069
|
-
|
|
1061
|
+
_param = self._api_v1_organizations_org_id_users_get_serialize(
|
|
1062
|
+
org_id=org_id,
|
|
1070
1063
|
_request_auth=_request_auth,
|
|
1071
1064
|
_content_type=_content_type,
|
|
1072
1065
|
_headers=_headers,
|
|
@@ -1074,9 +1067,8 @@ class OrganizationApi:
|
|
|
1074
1067
|
)
|
|
1075
1068
|
|
|
1076
1069
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1077
|
-
'200': "
|
|
1078
|
-
'
|
|
1079
|
-
'503': "OrganizationsDetailResponse",
|
|
1070
|
+
'200': "AdminUsersOrgResponse",
|
|
1071
|
+
'503': "AdminUsersOrgResponse",
|
|
1080
1072
|
}
|
|
1081
1073
|
response_data = self.api_client.call_api(
|
|
1082
1074
|
*_param,
|
|
@@ -1085,9 +1077,9 @@ class OrganizationApi:
|
|
|
1085
1077
|
return response_data.response
|
|
1086
1078
|
|
|
1087
1079
|
|
|
1088
|
-
def
|
|
1080
|
+
def _api_v1_organizations_org_id_users_get_serialize(
|
|
1089
1081
|
self,
|
|
1090
|
-
|
|
1082
|
+
org_id,
|
|
1091
1083
|
_request_auth,
|
|
1092
1084
|
_content_type,
|
|
1093
1085
|
_headers,
|
|
@@ -1109,12 +1101,12 @@ class OrganizationApi:
|
|
|
1109
1101
|
_body_params: Optional[bytes] = None
|
|
1110
1102
|
|
|
1111
1103
|
# process the path parameters
|
|
1104
|
+
if org_id is not None:
|
|
1105
|
+
_path_params['org_id'] = org_id
|
|
1112
1106
|
# process the query parameters
|
|
1113
1107
|
# process the header parameters
|
|
1114
1108
|
# process the form parameters
|
|
1115
1109
|
# process the body parameter
|
|
1116
|
-
if request is not None:
|
|
1117
|
-
_body_params = request
|
|
1118
1110
|
|
|
1119
1111
|
|
|
1120
1112
|
# set the HTTP header `Accept`
|
|
@@ -1125,29 +1117,15 @@ class OrganizationApi:
|
|
|
1125
1117
|
]
|
|
1126
1118
|
)
|
|
1127
1119
|
|
|
1128
|
-
# set the HTTP header `Content-Type`
|
|
1129
|
-
if _content_type:
|
|
1130
|
-
_header_params['Content-Type'] = _content_type
|
|
1131
|
-
else:
|
|
1132
|
-
_default_content_type = (
|
|
1133
|
-
self.api_client.select_header_content_type(
|
|
1134
|
-
[
|
|
1135
|
-
'application/json'
|
|
1136
|
-
]
|
|
1137
|
-
)
|
|
1138
|
-
)
|
|
1139
|
-
if _default_content_type is not None:
|
|
1140
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1141
1120
|
|
|
1142
1121
|
# authentication setting
|
|
1143
1122
|
_auth_settings: List[str] = [
|
|
1144
|
-
'TokenAuth',
|
|
1145
1123
|
'ApiKeyAuth'
|
|
1146
1124
|
]
|
|
1147
1125
|
|
|
1148
1126
|
return self.api_client.param_serialize(
|
|
1149
|
-
method='
|
|
1150
|
-
resource_path='/api/v1/organizations/',
|
|
1127
|
+
method='GET',
|
|
1128
|
+
resource_path='/api/v1/organizations/{org_id}/users/',
|
|
1151
1129
|
path_params=_path_params,
|
|
1152
1130
|
query_params=_query_params,
|
|
1153
1131
|
header_params=_header_params,
|
|
@@ -1164,9 +1142,9 @@ class OrganizationApi:
|
|
|
1164
1142
|
|
|
1165
1143
|
|
|
1166
1144
|
@validate_call
|
|
1167
|
-
def
|
|
1145
|
+
def api_v1_organizations_post(
|
|
1168
1146
|
self,
|
|
1169
|
-
request: Annotated[
|
|
1147
|
+
request: Annotated[OrganizationsCreateRequest, Field(description="Body")],
|
|
1170
1148
|
_request_timeout: Union[
|
|
1171
1149
|
None,
|
|
1172
1150
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1180,12 +1158,12 @@ class OrganizationApi:
|
|
|
1180
1158
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1181
1159
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1182
1160
|
) -> OrganizationsDetailResponse:
|
|
1183
|
-
"""
|
|
1161
|
+
"""Create an Organization
|
|
1184
1162
|
|
|
1185
|
-
|
|
1163
|
+
Create an Organization
|
|
1186
1164
|
|
|
1187
1165
|
:param request: Body (required)
|
|
1188
|
-
:type request:
|
|
1166
|
+
:type request: OrganizationsCreateRequest
|
|
1189
1167
|
:param _request_timeout: timeout setting for this request. If one
|
|
1190
1168
|
number provided, it will be total request
|
|
1191
1169
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1208,7 +1186,7 @@ class OrganizationApi:
|
|
|
1208
1186
|
:return: Returns the result object.
|
|
1209
1187
|
""" # noqa: E501
|
|
1210
1188
|
|
|
1211
|
-
_param = self.
|
|
1189
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
1212
1190
|
request=request,
|
|
1213
1191
|
_request_auth=_request_auth,
|
|
1214
1192
|
_content_type=_content_type,
|
|
@@ -1233,9 +1211,9 @@ class OrganizationApi:
|
|
|
1233
1211
|
|
|
1234
1212
|
|
|
1235
1213
|
@validate_call
|
|
1236
|
-
def
|
|
1214
|
+
def api_v1_organizations_post_with_http_info(
|
|
1237
1215
|
self,
|
|
1238
|
-
request: Annotated[
|
|
1216
|
+
request: Annotated[OrganizationsCreateRequest, Field(description="Body")],
|
|
1239
1217
|
_request_timeout: Union[
|
|
1240
1218
|
None,
|
|
1241
1219
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1249,12 +1227,12 @@ class OrganizationApi:
|
|
|
1249
1227
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1250
1228
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1251
1229
|
) -> ApiResponse[OrganizationsDetailResponse]:
|
|
1252
|
-
"""
|
|
1230
|
+
"""Create an Organization
|
|
1253
1231
|
|
|
1254
|
-
|
|
1232
|
+
Create an Organization
|
|
1255
1233
|
|
|
1256
1234
|
:param request: Body (required)
|
|
1257
|
-
:type request:
|
|
1235
|
+
:type request: OrganizationsCreateRequest
|
|
1258
1236
|
:param _request_timeout: timeout setting for this request. If one
|
|
1259
1237
|
number provided, it will be total request
|
|
1260
1238
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1277,7 +1255,7 @@ class OrganizationApi:
|
|
|
1277
1255
|
:return: Returns the result object.
|
|
1278
1256
|
""" # noqa: E501
|
|
1279
1257
|
|
|
1280
|
-
_param = self.
|
|
1258
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
1281
1259
|
request=request,
|
|
1282
1260
|
_request_auth=_request_auth,
|
|
1283
1261
|
_content_type=_content_type,
|
|
@@ -1302,9 +1280,9 @@ class OrganizationApi:
|
|
|
1302
1280
|
|
|
1303
1281
|
|
|
1304
1282
|
@validate_call
|
|
1305
|
-
def
|
|
1283
|
+
def api_v1_organizations_post_without_preload_content(
|
|
1306
1284
|
self,
|
|
1307
|
-
request: Annotated[
|
|
1285
|
+
request: Annotated[OrganizationsCreateRequest, Field(description="Body")],
|
|
1308
1286
|
_request_timeout: Union[
|
|
1309
1287
|
None,
|
|
1310
1288
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1318,12 +1296,12 @@ class OrganizationApi:
|
|
|
1318
1296
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1319
1297
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1320
1298
|
) -> RESTResponseType:
|
|
1321
|
-
"""
|
|
1299
|
+
"""Create an Organization
|
|
1322
1300
|
|
|
1323
|
-
|
|
1301
|
+
Create an Organization
|
|
1324
1302
|
|
|
1325
1303
|
:param request: Body (required)
|
|
1326
|
-
:type request:
|
|
1304
|
+
:type request: OrganizationsCreateRequest
|
|
1327
1305
|
:param _request_timeout: timeout setting for this request. If one
|
|
1328
1306
|
number provided, it will be total request
|
|
1329
1307
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1346,7 +1324,7 @@ class OrganizationApi:
|
|
|
1346
1324
|
:return: Returns the result object.
|
|
1347
1325
|
""" # noqa: E501
|
|
1348
1326
|
|
|
1349
|
-
_param = self.
|
|
1327
|
+
_param = self._api_v1_organizations_post_serialize(
|
|
1350
1328
|
request=request,
|
|
1351
1329
|
_request_auth=_request_auth,
|
|
1352
1330
|
_content_type=_content_type,
|
|
@@ -1366,7 +1344,7 @@ class OrganizationApi:
|
|
|
1366
1344
|
return response_data.response
|
|
1367
1345
|
|
|
1368
1346
|
|
|
1369
|
-
def
|
|
1347
|
+
def _api_v1_organizations_post_serialize(
|
|
1370
1348
|
self,
|
|
1371
1349
|
request,
|
|
1372
1350
|
_request_auth,
|
|
@@ -1427,7 +1405,7 @@ class OrganizationApi:
|
|
|
1427
1405
|
]
|
|
1428
1406
|
|
|
1429
1407
|
return self.api_client.param_serialize(
|
|
1430
|
-
method='
|
|
1408
|
+
method='POST',
|
|
1431
1409
|
resource_path='/api/v1/organizations/',
|
|
1432
1410
|
path_params=_path_params,
|
|
1433
1411
|
query_params=_query_params,
|
|
@@ -1445,9 +1423,9 @@ class OrganizationApi:
|
|
|
1445
1423
|
|
|
1446
1424
|
|
|
1447
1425
|
@validate_call
|
|
1448
|
-
def
|
|
1426
|
+
def api_v1_organizations_put(
|
|
1449
1427
|
self,
|
|
1450
|
-
|
|
1428
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1451
1429
|
_request_timeout: Union[
|
|
1452
1430
|
None,
|
|
1453
1431
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1461,12 +1439,12 @@ class OrganizationApi:
|
|
|
1461
1439
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1462
1440
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1463
1441
|
) -> OrganizationsDetailResponse:
|
|
1464
|
-
"""
|
|
1442
|
+
"""Update an Organization
|
|
1465
1443
|
|
|
1466
|
-
|
|
1444
|
+
Update an Organization
|
|
1467
1445
|
|
|
1468
|
-
:param
|
|
1469
|
-
:type
|
|
1446
|
+
:param request: Body (required)
|
|
1447
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1470
1448
|
:param _request_timeout: timeout setting for this request. If one
|
|
1471
1449
|
number provided, it will be total request
|
|
1472
1450
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1489,8 +1467,8 @@ class OrganizationApi:
|
|
|
1489
1467
|
:return: Returns the result object.
|
|
1490
1468
|
""" # noqa: E501
|
|
1491
1469
|
|
|
1492
|
-
_param = self.
|
|
1493
|
-
|
|
1470
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1471
|
+
request=request,
|
|
1494
1472
|
_request_auth=_request_auth,
|
|
1495
1473
|
_content_type=_content_type,
|
|
1496
1474
|
_headers=_headers,
|
|
@@ -1514,9 +1492,9 @@ class OrganizationApi:
|
|
|
1514
1492
|
|
|
1515
1493
|
|
|
1516
1494
|
@validate_call
|
|
1517
|
-
def
|
|
1495
|
+
def api_v1_organizations_put_with_http_info(
|
|
1518
1496
|
self,
|
|
1519
|
-
|
|
1497
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1520
1498
|
_request_timeout: Union[
|
|
1521
1499
|
None,
|
|
1522
1500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1530,12 +1508,12 @@ class OrganizationApi:
|
|
|
1530
1508
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1531
1509
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1532
1510
|
) -> ApiResponse[OrganizationsDetailResponse]:
|
|
1533
|
-
"""
|
|
1511
|
+
"""Update an Organization
|
|
1534
1512
|
|
|
1535
|
-
|
|
1513
|
+
Update an Organization
|
|
1536
1514
|
|
|
1537
|
-
:param
|
|
1538
|
-
:type
|
|
1515
|
+
:param request: Body (required)
|
|
1516
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1539
1517
|
:param _request_timeout: timeout setting for this request. If one
|
|
1540
1518
|
number provided, it will be total request
|
|
1541
1519
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1558,8 +1536,8 @@ class OrganizationApi:
|
|
|
1558
1536
|
:return: Returns the result object.
|
|
1559
1537
|
""" # noqa: E501
|
|
1560
1538
|
|
|
1561
|
-
_param = self.
|
|
1562
|
-
|
|
1539
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1540
|
+
request=request,
|
|
1563
1541
|
_request_auth=_request_auth,
|
|
1564
1542
|
_content_type=_content_type,
|
|
1565
1543
|
_headers=_headers,
|
|
@@ -1583,9 +1561,9 @@ class OrganizationApi:
|
|
|
1583
1561
|
|
|
1584
1562
|
|
|
1585
1563
|
@validate_call
|
|
1586
|
-
def
|
|
1564
|
+
def api_v1_organizations_put_without_preload_content(
|
|
1587
1565
|
self,
|
|
1588
|
-
|
|
1566
|
+
request: Annotated[OrganizationsOrganizationUpdateRequest, Field(description="Body")],
|
|
1589
1567
|
_request_timeout: Union[
|
|
1590
1568
|
None,
|
|
1591
1569
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1599,12 +1577,12 @@ class OrganizationApi:
|
|
|
1599
1577
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1600
1578
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1601
1579
|
) -> RESTResponseType:
|
|
1602
|
-
"""
|
|
1580
|
+
"""Update an Organization
|
|
1603
1581
|
|
|
1604
|
-
|
|
1582
|
+
Update an Organization
|
|
1605
1583
|
|
|
1606
|
-
:param
|
|
1607
|
-
:type
|
|
1584
|
+
:param request: Body (required)
|
|
1585
|
+
:type request: OrganizationsOrganizationUpdateRequest
|
|
1608
1586
|
:param _request_timeout: timeout setting for this request. If one
|
|
1609
1587
|
number provided, it will be total request
|
|
1610
1588
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1627,8 +1605,8 @@ class OrganizationApi:
|
|
|
1627
1605
|
:return: Returns the result object.
|
|
1628
1606
|
""" # noqa: E501
|
|
1629
1607
|
|
|
1630
|
-
_param = self.
|
|
1631
|
-
|
|
1608
|
+
_param = self._api_v1_organizations_put_serialize(
|
|
1609
|
+
request=request,
|
|
1632
1610
|
_request_auth=_request_auth,
|
|
1633
1611
|
_content_type=_content_type,
|
|
1634
1612
|
_headers=_headers,
|
|
@@ -1647,9 +1625,9 @@ class OrganizationApi:
|
|
|
1647
1625
|
return response_data.response
|
|
1648
1626
|
|
|
1649
1627
|
|
|
1650
|
-
def
|
|
1628
|
+
def _api_v1_organizations_put_serialize(
|
|
1651
1629
|
self,
|
|
1652
|
-
|
|
1630
|
+
request,
|
|
1653
1631
|
_request_auth,
|
|
1654
1632
|
_content_type,
|
|
1655
1633
|
_headers,
|
|
@@ -1671,12 +1649,12 @@ class OrganizationApi:
|
|
|
1671
1649
|
_body_params: Optional[bytes] = None
|
|
1672
1650
|
|
|
1673
1651
|
# process the path parameters
|
|
1674
|
-
if organization_uid is not None:
|
|
1675
|
-
_path_params['organization_uid'] = organization_uid
|
|
1676
1652
|
# process the query parameters
|
|
1677
1653
|
# process the header parameters
|
|
1678
1654
|
# process the form parameters
|
|
1679
1655
|
# process the body parameter
|
|
1656
|
+
if request is not None:
|
|
1657
|
+
_body_params = request
|
|
1680
1658
|
|
|
1681
1659
|
|
|
1682
1660
|
# set the HTTP header `Accept`
|
|
@@ -1687,6 +1665,19 @@ class OrganizationApi:
|
|
|
1687
1665
|
]
|
|
1688
1666
|
)
|
|
1689
1667
|
|
|
1668
|
+
# set the HTTP header `Content-Type`
|
|
1669
|
+
if _content_type:
|
|
1670
|
+
_header_params['Content-Type'] = _content_type
|
|
1671
|
+
else:
|
|
1672
|
+
_default_content_type = (
|
|
1673
|
+
self.api_client.select_header_content_type(
|
|
1674
|
+
[
|
|
1675
|
+
'application/json'
|
|
1676
|
+
]
|
|
1677
|
+
)
|
|
1678
|
+
)
|
|
1679
|
+
if _default_content_type is not None:
|
|
1680
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1690
1681
|
|
|
1691
1682
|
# authentication setting
|
|
1692
1683
|
_auth_settings: List[str] = [
|
|
@@ -1695,8 +1686,8 @@ class OrganizationApi:
|
|
|
1695
1686
|
]
|
|
1696
1687
|
|
|
1697
1688
|
return self.api_client.param_serialize(
|
|
1698
|
-
method='
|
|
1699
|
-
resource_path='/api/v1/organizations/
|
|
1689
|
+
method='PUT',
|
|
1690
|
+
resource_path='/api/v1/organizations/',
|
|
1700
1691
|
path_params=_path_params,
|
|
1701
1692
|
query_params=_query_params,
|
|
1702
1693
|
header_params=_header_params,
|