neurograph-core 1.202508112256__py3-none-any.whl → 1.202508152055__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 +24 -16
- neurograph/v1/api/__init__.py +0 -1
- neurograph/v1/api/authentication_api.py +36 -8
- neurograph/v1/api/client_api.py +9 -3
- neurograph/v1/api/client_metadata_api.py +287 -1
- neurograph/v1/api/lookup_api.py +2 -0
- neurograph/v1/api/organization_api.py +9 -272
- neurograph/v1/api/organization_metadata_api.py +3 -0
- neurograph/v1/api/persona_api.py +1249 -135
- neurograph/v1/api/tasks_api.py +1 -0
- neurograph/v1/api/workbench_api.py +3 -0
- neurograph/v1/models/__init__.py +12 -7
- neurograph/v1/models/auth_test_service_token_request.py +87 -0
- neurograph/v1/models/organizations_organization_detail_response.py +1 -7
- neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
- neurograph/v1/models/organizations_organization_set_workbench_response.py +12 -10
- neurograph/v1/models/organizations_workbench_config.py +12 -10
- neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
- neurograph/v1/models/personas_kpi.py +93 -0
- neurograph/v1/models/personas_persona.py +171 -0
- neurograph/v1/models/personas_persona_factor.py +1 -3
- neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
- neurograph/v1/models/personas_persona_factor_resp.py +101 -0
- neurograph/v1/models/personas_persona_insight.py +93 -0
- neurograph/v1/models/personas_persona_instances_delete_response.py +89 -0
- neurograph/v1/models/personas_persona_instances_response.py +103 -0
- neurograph/v1/models/personas_persona_personality_trait.py +93 -0
- neurograph/v1/models/personas_persona_seed_get_many_response.py +105 -0
- neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
- neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/METADATA +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/RECORD +34 -22
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/top_level.txt +0 -0
neurograph/v1/api/persona_api.py
CHANGED
|
@@ -16,20 +16,27 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field
|
|
19
|
+
from pydantic import Field, StrictInt
|
|
20
|
+
from typing import Optional
|
|
20
21
|
from typing_extensions import Annotated
|
|
22
|
+
from neurograph.v1.models.personas_delete_many_persona_instances_request import PersonasDeleteManyPersonaInstancesRequest
|
|
21
23
|
from neurograph.v1.models.personas_persona_factor_create_request import PersonasPersonaFactorCreateRequest
|
|
22
24
|
from neurograph.v1.models.personas_persona_factor_create_response import PersonasPersonaFactorCreateResponse
|
|
23
25
|
from neurograph.v1.models.personas_persona_insight_create_request import PersonasPersonaInsightCreateRequest
|
|
24
26
|
from neurograph.v1.models.personas_persona_insight_create_response import PersonasPersonaInsightCreateResponse
|
|
25
27
|
from neurograph.v1.models.personas_persona_instance_create_request import PersonasPersonaInstanceCreateRequest
|
|
26
28
|
from neurograph.v1.models.personas_persona_instance_create_response import PersonasPersonaInstanceCreateResponse
|
|
29
|
+
from neurograph.v1.models.personas_persona_instances_delete_response import PersonasPersonaInstancesDeleteResponse
|
|
30
|
+
from neurograph.v1.models.personas_persona_instances_response import PersonasPersonaInstancesResponse
|
|
27
31
|
from neurograph.v1.models.personas_persona_kpi_create_request import PersonasPersonaKpiCreateRequest
|
|
28
32
|
from neurograph.v1.models.personas_persona_kpi_create_response import PersonasPersonaKpiCreateResponse
|
|
29
33
|
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest
|
|
30
34
|
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse
|
|
31
35
|
from neurograph.v1.models.personas_persona_seed_create_request import PersonasPersonaSeedCreateRequest
|
|
32
36
|
from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse
|
|
37
|
+
from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse
|
|
38
|
+
from neurograph.v1.models.personas_persona_seeds_delete_request import PersonasPersonaSeedsDeleteRequest
|
|
39
|
+
from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse
|
|
33
40
|
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest
|
|
34
41
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
|
|
35
42
|
|
|
@@ -585,10 +592,1098 @@ class PersonaApi:
|
|
|
585
592
|
|
|
586
593
|
|
|
587
594
|
|
|
595
|
+
@validate_call
|
|
596
|
+
def api_v1_persona_instance_delete(
|
|
597
|
+
self,
|
|
598
|
+
request: Annotated[PersonasDeleteManyPersonaInstancesRequest, Field(description="Body")],
|
|
599
|
+
_request_timeout: Union[
|
|
600
|
+
None,
|
|
601
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
602
|
+
Tuple[
|
|
603
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
604
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
605
|
+
]
|
|
606
|
+
] = None,
|
|
607
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
608
|
+
_content_type: Optional[StrictStr] = None,
|
|
609
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
610
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
611
|
+
) -> PersonasPersonaInstancesDeleteResponse:
|
|
612
|
+
"""Delete one or more Persona Instances and associated data
|
|
613
|
+
|
|
614
|
+
Delete one or more Persona Instances and associated data
|
|
615
|
+
|
|
616
|
+
:param request: Body (required)
|
|
617
|
+
:type request: PersonasDeleteManyPersonaInstancesRequest
|
|
618
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
619
|
+
number provided, it will be total request
|
|
620
|
+
timeout. It can also be a pair (tuple) of
|
|
621
|
+
(connection, read) timeouts.
|
|
622
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
623
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
624
|
+
request; this effectively ignores the
|
|
625
|
+
authentication in the spec for a single request.
|
|
626
|
+
:type _request_auth: dict, optional
|
|
627
|
+
:param _content_type: force content-type for the request.
|
|
628
|
+
:type _content_type: str, Optional
|
|
629
|
+
:param _headers: set to override the headers for a single
|
|
630
|
+
request; this effectively ignores the headers
|
|
631
|
+
in the spec for a single request.
|
|
632
|
+
:type _headers: dict, optional
|
|
633
|
+
:param _host_index: set to override the host_index for a single
|
|
634
|
+
request; this effectively ignores the host_index
|
|
635
|
+
in the spec for a single request.
|
|
636
|
+
:type _host_index: int, optional
|
|
637
|
+
:return: Returns the result object.
|
|
638
|
+
""" # noqa: E501
|
|
639
|
+
|
|
640
|
+
_param = self._api_v1_persona_instance_delete_serialize(
|
|
641
|
+
request=request,
|
|
642
|
+
_request_auth=_request_auth,
|
|
643
|
+
_content_type=_content_type,
|
|
644
|
+
_headers=_headers,
|
|
645
|
+
_host_index=_host_index
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
649
|
+
'200': "PersonasPersonaInstancesDeleteResponse",
|
|
650
|
+
'400': "PersonasPersonaInstancesDeleteResponse",
|
|
651
|
+
'503': "PersonasPersonaInstancesDeleteResponse",
|
|
652
|
+
}
|
|
653
|
+
response_data = self.api_client.call_api(
|
|
654
|
+
*_param,
|
|
655
|
+
_request_timeout=_request_timeout
|
|
656
|
+
)
|
|
657
|
+
response_data.read()
|
|
658
|
+
return self.api_client.response_deserialize(
|
|
659
|
+
response_data=response_data,
|
|
660
|
+
response_types_map=_response_types_map,
|
|
661
|
+
).data
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
@validate_call
|
|
665
|
+
def api_v1_persona_instance_delete_with_http_info(
|
|
666
|
+
self,
|
|
667
|
+
request: Annotated[PersonasDeleteManyPersonaInstancesRequest, Field(description="Body")],
|
|
668
|
+
_request_timeout: Union[
|
|
669
|
+
None,
|
|
670
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
671
|
+
Tuple[
|
|
672
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
673
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
674
|
+
]
|
|
675
|
+
] = None,
|
|
676
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
677
|
+
_content_type: Optional[StrictStr] = None,
|
|
678
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
679
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
680
|
+
) -> ApiResponse[PersonasPersonaInstancesDeleteResponse]:
|
|
681
|
+
"""Delete one or more Persona Instances and associated data
|
|
682
|
+
|
|
683
|
+
Delete one or more Persona Instances and associated data
|
|
684
|
+
|
|
685
|
+
:param request: Body (required)
|
|
686
|
+
:type request: PersonasDeleteManyPersonaInstancesRequest
|
|
687
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
688
|
+
number provided, it will be total request
|
|
689
|
+
timeout. It can also be a pair (tuple) of
|
|
690
|
+
(connection, read) timeouts.
|
|
691
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
692
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
693
|
+
request; this effectively ignores the
|
|
694
|
+
authentication in the spec for a single request.
|
|
695
|
+
:type _request_auth: dict, optional
|
|
696
|
+
:param _content_type: force content-type for the request.
|
|
697
|
+
:type _content_type: str, Optional
|
|
698
|
+
:param _headers: set to override the headers for a single
|
|
699
|
+
request; this effectively ignores the headers
|
|
700
|
+
in the spec for a single request.
|
|
701
|
+
:type _headers: dict, optional
|
|
702
|
+
:param _host_index: set to override the host_index for a single
|
|
703
|
+
request; this effectively ignores the host_index
|
|
704
|
+
in the spec for a single request.
|
|
705
|
+
:type _host_index: int, optional
|
|
706
|
+
:return: Returns the result object.
|
|
707
|
+
""" # noqa: E501
|
|
708
|
+
|
|
709
|
+
_param = self._api_v1_persona_instance_delete_serialize(
|
|
710
|
+
request=request,
|
|
711
|
+
_request_auth=_request_auth,
|
|
712
|
+
_content_type=_content_type,
|
|
713
|
+
_headers=_headers,
|
|
714
|
+
_host_index=_host_index
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
718
|
+
'200': "PersonasPersonaInstancesDeleteResponse",
|
|
719
|
+
'400': "PersonasPersonaInstancesDeleteResponse",
|
|
720
|
+
'503': "PersonasPersonaInstancesDeleteResponse",
|
|
721
|
+
}
|
|
722
|
+
response_data = self.api_client.call_api(
|
|
723
|
+
*_param,
|
|
724
|
+
_request_timeout=_request_timeout
|
|
725
|
+
)
|
|
726
|
+
response_data.read()
|
|
727
|
+
return self.api_client.response_deserialize(
|
|
728
|
+
response_data=response_data,
|
|
729
|
+
response_types_map=_response_types_map,
|
|
730
|
+
)
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
@validate_call
|
|
734
|
+
def api_v1_persona_instance_delete_without_preload_content(
|
|
735
|
+
self,
|
|
736
|
+
request: Annotated[PersonasDeleteManyPersonaInstancesRequest, Field(description="Body")],
|
|
737
|
+
_request_timeout: Union[
|
|
738
|
+
None,
|
|
739
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
740
|
+
Tuple[
|
|
741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
742
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
743
|
+
]
|
|
744
|
+
] = None,
|
|
745
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
746
|
+
_content_type: Optional[StrictStr] = None,
|
|
747
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
748
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
749
|
+
) -> RESTResponseType:
|
|
750
|
+
"""Delete one or more Persona Instances and associated data
|
|
751
|
+
|
|
752
|
+
Delete one or more Persona Instances and associated data
|
|
753
|
+
|
|
754
|
+
:param request: Body (required)
|
|
755
|
+
:type request: PersonasDeleteManyPersonaInstancesRequest
|
|
756
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
757
|
+
number provided, it will be total request
|
|
758
|
+
timeout. It can also be a pair (tuple) of
|
|
759
|
+
(connection, read) timeouts.
|
|
760
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
761
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
762
|
+
request; this effectively ignores the
|
|
763
|
+
authentication in the spec for a single request.
|
|
764
|
+
:type _request_auth: dict, optional
|
|
765
|
+
:param _content_type: force content-type for the request.
|
|
766
|
+
:type _content_type: str, Optional
|
|
767
|
+
:param _headers: set to override the headers for a single
|
|
768
|
+
request; this effectively ignores the headers
|
|
769
|
+
in the spec for a single request.
|
|
770
|
+
:type _headers: dict, optional
|
|
771
|
+
:param _host_index: set to override the host_index for a single
|
|
772
|
+
request; this effectively ignores the host_index
|
|
773
|
+
in the spec for a single request.
|
|
774
|
+
:type _host_index: int, optional
|
|
775
|
+
:return: Returns the result object.
|
|
776
|
+
""" # noqa: E501
|
|
777
|
+
|
|
778
|
+
_param = self._api_v1_persona_instance_delete_serialize(
|
|
779
|
+
request=request,
|
|
780
|
+
_request_auth=_request_auth,
|
|
781
|
+
_content_type=_content_type,
|
|
782
|
+
_headers=_headers,
|
|
783
|
+
_host_index=_host_index
|
|
784
|
+
)
|
|
785
|
+
|
|
786
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
787
|
+
'200': "PersonasPersonaInstancesDeleteResponse",
|
|
788
|
+
'400': "PersonasPersonaInstancesDeleteResponse",
|
|
789
|
+
'503': "PersonasPersonaInstancesDeleteResponse",
|
|
790
|
+
}
|
|
791
|
+
response_data = self.api_client.call_api(
|
|
792
|
+
*_param,
|
|
793
|
+
_request_timeout=_request_timeout
|
|
794
|
+
)
|
|
795
|
+
return response_data.response
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
def _api_v1_persona_instance_delete_serialize(
|
|
799
|
+
self,
|
|
800
|
+
request,
|
|
801
|
+
_request_auth,
|
|
802
|
+
_content_type,
|
|
803
|
+
_headers,
|
|
804
|
+
_host_index,
|
|
805
|
+
) -> RequestSerialized:
|
|
806
|
+
|
|
807
|
+
_host = None
|
|
808
|
+
|
|
809
|
+
_collection_formats: Dict[str, str] = {
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
_path_params: Dict[str, str] = {}
|
|
813
|
+
_query_params: List[Tuple[str, str]] = []
|
|
814
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
815
|
+
_form_params: List[Tuple[str, str]] = []
|
|
816
|
+
_files: Dict[
|
|
817
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
818
|
+
] = {}
|
|
819
|
+
_body_params: Optional[bytes] = None
|
|
820
|
+
|
|
821
|
+
# process the path parameters
|
|
822
|
+
# process the query parameters
|
|
823
|
+
# process the header parameters
|
|
824
|
+
# process the form parameters
|
|
825
|
+
# process the body parameter
|
|
826
|
+
if request is not None:
|
|
827
|
+
_body_params = request
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
# set the HTTP header `Accept`
|
|
831
|
+
if 'Accept' not in _header_params:
|
|
832
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
833
|
+
[
|
|
834
|
+
'application/json'
|
|
835
|
+
]
|
|
836
|
+
)
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
# authentication setting
|
|
840
|
+
_auth_settings: List[str] = [
|
|
841
|
+
'TokenAuth'
|
|
842
|
+
]
|
|
843
|
+
|
|
844
|
+
return self.api_client.param_serialize(
|
|
845
|
+
method='DELETE',
|
|
846
|
+
resource_path='/api/v1/persona/instance',
|
|
847
|
+
path_params=_path_params,
|
|
848
|
+
query_params=_query_params,
|
|
849
|
+
header_params=_header_params,
|
|
850
|
+
body=_body_params,
|
|
851
|
+
post_params=_form_params,
|
|
852
|
+
files=_files,
|
|
853
|
+
auth_settings=_auth_settings,
|
|
854
|
+
collection_formats=_collection_formats,
|
|
855
|
+
_host=_host,
|
|
856
|
+
_request_auth=_request_auth
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
@validate_call
|
|
863
|
+
def api_v1_persona_instance_get(
|
|
864
|
+
self,
|
|
865
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
866
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
867
|
+
_request_timeout: Union[
|
|
868
|
+
None,
|
|
869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
870
|
+
Tuple[
|
|
871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
872
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
873
|
+
]
|
|
874
|
+
] = None,
|
|
875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
876
|
+
_content_type: Optional[StrictStr] = None,
|
|
877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
879
|
+
) -> PersonasPersonaInstancesResponse:
|
|
880
|
+
"""Get Persona Instances and all associated data
|
|
881
|
+
|
|
882
|
+
Get Persona Instances and all associated data
|
|
883
|
+
|
|
884
|
+
:param limit: Maximum number of records
|
|
885
|
+
:type limit: int
|
|
886
|
+
:param offset: Record offset
|
|
887
|
+
:type offset: int
|
|
888
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
889
|
+
number provided, it will be total request
|
|
890
|
+
timeout. It can also be a pair (tuple) of
|
|
891
|
+
(connection, read) timeouts.
|
|
892
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
893
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
894
|
+
request; this effectively ignores the
|
|
895
|
+
authentication in the spec for a single request.
|
|
896
|
+
:type _request_auth: dict, optional
|
|
897
|
+
:param _content_type: force content-type for the request.
|
|
898
|
+
:type _content_type: str, Optional
|
|
899
|
+
:param _headers: set to override the headers for a single
|
|
900
|
+
request; this effectively ignores the headers
|
|
901
|
+
in the spec for a single request.
|
|
902
|
+
:type _headers: dict, optional
|
|
903
|
+
:param _host_index: set to override the host_index for a single
|
|
904
|
+
request; this effectively ignores the host_index
|
|
905
|
+
in the spec for a single request.
|
|
906
|
+
:type _host_index: int, optional
|
|
907
|
+
:return: Returns the result object.
|
|
908
|
+
""" # noqa: E501
|
|
909
|
+
|
|
910
|
+
_param = self._api_v1_persona_instance_get_serialize(
|
|
911
|
+
limit=limit,
|
|
912
|
+
offset=offset,
|
|
913
|
+
_request_auth=_request_auth,
|
|
914
|
+
_content_type=_content_type,
|
|
915
|
+
_headers=_headers,
|
|
916
|
+
_host_index=_host_index
|
|
917
|
+
)
|
|
918
|
+
|
|
919
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
920
|
+
'200': "PersonasPersonaInstancesResponse",
|
|
921
|
+
'400': "PersonasPersonaInstancesResponse",
|
|
922
|
+
'503': "PersonasPersonaInstancesResponse",
|
|
923
|
+
}
|
|
924
|
+
response_data = self.api_client.call_api(
|
|
925
|
+
*_param,
|
|
926
|
+
_request_timeout=_request_timeout
|
|
927
|
+
)
|
|
928
|
+
response_data.read()
|
|
929
|
+
return self.api_client.response_deserialize(
|
|
930
|
+
response_data=response_data,
|
|
931
|
+
response_types_map=_response_types_map,
|
|
932
|
+
).data
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
@validate_call
|
|
936
|
+
def api_v1_persona_instance_get_with_http_info(
|
|
937
|
+
self,
|
|
938
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
939
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
940
|
+
_request_timeout: Union[
|
|
941
|
+
None,
|
|
942
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
943
|
+
Tuple[
|
|
944
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
945
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
946
|
+
]
|
|
947
|
+
] = None,
|
|
948
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
949
|
+
_content_type: Optional[StrictStr] = None,
|
|
950
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
951
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
952
|
+
) -> ApiResponse[PersonasPersonaInstancesResponse]:
|
|
953
|
+
"""Get Persona Instances and all associated data
|
|
954
|
+
|
|
955
|
+
Get Persona Instances and all associated data
|
|
956
|
+
|
|
957
|
+
:param limit: Maximum number of records
|
|
958
|
+
:type limit: int
|
|
959
|
+
:param offset: Record offset
|
|
960
|
+
:type offset: int
|
|
961
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
962
|
+
number provided, it will be total request
|
|
963
|
+
timeout. It can also be a pair (tuple) of
|
|
964
|
+
(connection, read) timeouts.
|
|
965
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
966
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
967
|
+
request; this effectively ignores the
|
|
968
|
+
authentication in the spec for a single request.
|
|
969
|
+
:type _request_auth: dict, optional
|
|
970
|
+
:param _content_type: force content-type for the request.
|
|
971
|
+
:type _content_type: str, Optional
|
|
972
|
+
:param _headers: set to override the headers for a single
|
|
973
|
+
request; this effectively ignores the headers
|
|
974
|
+
in the spec for a single request.
|
|
975
|
+
:type _headers: dict, optional
|
|
976
|
+
:param _host_index: set to override the host_index for a single
|
|
977
|
+
request; this effectively ignores the host_index
|
|
978
|
+
in the spec for a single request.
|
|
979
|
+
:type _host_index: int, optional
|
|
980
|
+
:return: Returns the result object.
|
|
981
|
+
""" # noqa: E501
|
|
982
|
+
|
|
983
|
+
_param = self._api_v1_persona_instance_get_serialize(
|
|
984
|
+
limit=limit,
|
|
985
|
+
offset=offset,
|
|
986
|
+
_request_auth=_request_auth,
|
|
987
|
+
_content_type=_content_type,
|
|
988
|
+
_headers=_headers,
|
|
989
|
+
_host_index=_host_index
|
|
990
|
+
)
|
|
991
|
+
|
|
992
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
993
|
+
'200': "PersonasPersonaInstancesResponse",
|
|
994
|
+
'400': "PersonasPersonaInstancesResponse",
|
|
995
|
+
'503': "PersonasPersonaInstancesResponse",
|
|
996
|
+
}
|
|
997
|
+
response_data = self.api_client.call_api(
|
|
998
|
+
*_param,
|
|
999
|
+
_request_timeout=_request_timeout
|
|
1000
|
+
)
|
|
1001
|
+
response_data.read()
|
|
1002
|
+
return self.api_client.response_deserialize(
|
|
1003
|
+
response_data=response_data,
|
|
1004
|
+
response_types_map=_response_types_map,
|
|
1005
|
+
)
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
@validate_call
|
|
1009
|
+
def api_v1_persona_instance_get_without_preload_content(
|
|
1010
|
+
self,
|
|
1011
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
1012
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
1013
|
+
_request_timeout: Union[
|
|
1014
|
+
None,
|
|
1015
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1016
|
+
Tuple[
|
|
1017
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1018
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1019
|
+
]
|
|
1020
|
+
] = None,
|
|
1021
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1022
|
+
_content_type: Optional[StrictStr] = None,
|
|
1023
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1024
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1025
|
+
) -> RESTResponseType:
|
|
1026
|
+
"""Get Persona Instances and all associated data
|
|
1027
|
+
|
|
1028
|
+
Get Persona Instances and all associated data
|
|
1029
|
+
|
|
1030
|
+
:param limit: Maximum number of records
|
|
1031
|
+
:type limit: int
|
|
1032
|
+
:param offset: Record offset
|
|
1033
|
+
:type offset: int
|
|
1034
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1035
|
+
number provided, it will be total request
|
|
1036
|
+
timeout. It can also be a pair (tuple) of
|
|
1037
|
+
(connection, read) timeouts.
|
|
1038
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1039
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1040
|
+
request; this effectively ignores the
|
|
1041
|
+
authentication in the spec for a single request.
|
|
1042
|
+
:type _request_auth: dict, optional
|
|
1043
|
+
:param _content_type: force content-type for the request.
|
|
1044
|
+
:type _content_type: str, Optional
|
|
1045
|
+
:param _headers: set to override the headers for a single
|
|
1046
|
+
request; this effectively ignores the headers
|
|
1047
|
+
in the spec for a single request.
|
|
1048
|
+
:type _headers: dict, optional
|
|
1049
|
+
:param _host_index: set to override the host_index for a single
|
|
1050
|
+
request; this effectively ignores the host_index
|
|
1051
|
+
in the spec for a single request.
|
|
1052
|
+
:type _host_index: int, optional
|
|
1053
|
+
:return: Returns the result object.
|
|
1054
|
+
""" # noqa: E501
|
|
1055
|
+
|
|
1056
|
+
_param = self._api_v1_persona_instance_get_serialize(
|
|
1057
|
+
limit=limit,
|
|
1058
|
+
offset=offset,
|
|
1059
|
+
_request_auth=_request_auth,
|
|
1060
|
+
_content_type=_content_type,
|
|
1061
|
+
_headers=_headers,
|
|
1062
|
+
_host_index=_host_index
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1066
|
+
'200': "PersonasPersonaInstancesResponse",
|
|
1067
|
+
'400': "PersonasPersonaInstancesResponse",
|
|
1068
|
+
'503': "PersonasPersonaInstancesResponse",
|
|
1069
|
+
}
|
|
1070
|
+
response_data = self.api_client.call_api(
|
|
1071
|
+
*_param,
|
|
1072
|
+
_request_timeout=_request_timeout
|
|
1073
|
+
)
|
|
1074
|
+
return response_data.response
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
def _api_v1_persona_instance_get_serialize(
|
|
1078
|
+
self,
|
|
1079
|
+
limit,
|
|
1080
|
+
offset,
|
|
1081
|
+
_request_auth,
|
|
1082
|
+
_content_type,
|
|
1083
|
+
_headers,
|
|
1084
|
+
_host_index,
|
|
1085
|
+
) -> RequestSerialized:
|
|
1086
|
+
|
|
1087
|
+
_host = None
|
|
1088
|
+
|
|
1089
|
+
_collection_formats: Dict[str, str] = {
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
_path_params: Dict[str, str] = {}
|
|
1093
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1094
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1095
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1096
|
+
_files: Dict[
|
|
1097
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1098
|
+
] = {}
|
|
1099
|
+
_body_params: Optional[bytes] = None
|
|
1100
|
+
|
|
1101
|
+
# process the path parameters
|
|
1102
|
+
# process the query parameters
|
|
1103
|
+
if limit is not None:
|
|
1104
|
+
|
|
1105
|
+
_query_params.append(('limit', limit))
|
|
1106
|
+
|
|
1107
|
+
if offset is not None:
|
|
1108
|
+
|
|
1109
|
+
_query_params.append(('offset', offset))
|
|
1110
|
+
|
|
1111
|
+
# process the header parameters
|
|
1112
|
+
# process the form parameters
|
|
1113
|
+
# process the body parameter
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
# set the HTTP header `Accept`
|
|
1117
|
+
if 'Accept' not in _header_params:
|
|
1118
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1119
|
+
[
|
|
1120
|
+
'application/json'
|
|
1121
|
+
]
|
|
1122
|
+
)
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
# authentication setting
|
|
1126
|
+
_auth_settings: List[str] = [
|
|
1127
|
+
'TokenAuth',
|
|
1128
|
+
'ApiKeyAuth'
|
|
1129
|
+
]
|
|
1130
|
+
|
|
1131
|
+
return self.api_client.param_serialize(
|
|
1132
|
+
method='GET',
|
|
1133
|
+
resource_path='/api/v1/persona/instance',
|
|
1134
|
+
path_params=_path_params,
|
|
1135
|
+
query_params=_query_params,
|
|
1136
|
+
header_params=_header_params,
|
|
1137
|
+
body=_body_params,
|
|
1138
|
+
post_params=_form_params,
|
|
1139
|
+
files=_files,
|
|
1140
|
+
auth_settings=_auth_settings,
|
|
1141
|
+
collection_formats=_collection_formats,
|
|
1142
|
+
_host=_host,
|
|
1143
|
+
_request_auth=_request_auth
|
|
1144
|
+
)
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
|
|
588
1149
|
@validate_call
|
|
589
1150
|
def api_v1_persona_instance_post(
|
|
590
1151
|
self,
|
|
591
|
-
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
1152
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
1153
|
+
_request_timeout: Union[
|
|
1154
|
+
None,
|
|
1155
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1156
|
+
Tuple[
|
|
1157
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1158
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1159
|
+
]
|
|
1160
|
+
] = None,
|
|
1161
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1162
|
+
_content_type: Optional[StrictStr] = None,
|
|
1163
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1164
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1165
|
+
) -> PersonasPersonaInstanceCreateResponse:
|
|
1166
|
+
"""Create a Persona Instance
|
|
1167
|
+
|
|
1168
|
+
Create a Persona Instance.
|
|
1169
|
+
|
|
1170
|
+
:param request: Body (required)
|
|
1171
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
1172
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1173
|
+
number provided, it will be total request
|
|
1174
|
+
timeout. It can also be a pair (tuple) of
|
|
1175
|
+
(connection, read) timeouts.
|
|
1176
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1177
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1178
|
+
request; this effectively ignores the
|
|
1179
|
+
authentication in the spec for a single request.
|
|
1180
|
+
:type _request_auth: dict, optional
|
|
1181
|
+
:param _content_type: force content-type for the request.
|
|
1182
|
+
:type _content_type: str, Optional
|
|
1183
|
+
:param _headers: set to override the headers for a single
|
|
1184
|
+
request; this effectively ignores the headers
|
|
1185
|
+
in the spec for a single request.
|
|
1186
|
+
:type _headers: dict, optional
|
|
1187
|
+
:param _host_index: set to override the host_index for a single
|
|
1188
|
+
request; this effectively ignores the host_index
|
|
1189
|
+
in the spec for a single request.
|
|
1190
|
+
:type _host_index: int, optional
|
|
1191
|
+
:return: Returns the result object.
|
|
1192
|
+
""" # noqa: E501
|
|
1193
|
+
|
|
1194
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
1195
|
+
request=request,
|
|
1196
|
+
_request_auth=_request_auth,
|
|
1197
|
+
_content_type=_content_type,
|
|
1198
|
+
_headers=_headers,
|
|
1199
|
+
_host_index=_host_index
|
|
1200
|
+
)
|
|
1201
|
+
|
|
1202
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1203
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
1204
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
1205
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
1206
|
+
}
|
|
1207
|
+
response_data = self.api_client.call_api(
|
|
1208
|
+
*_param,
|
|
1209
|
+
_request_timeout=_request_timeout
|
|
1210
|
+
)
|
|
1211
|
+
response_data.read()
|
|
1212
|
+
return self.api_client.response_deserialize(
|
|
1213
|
+
response_data=response_data,
|
|
1214
|
+
response_types_map=_response_types_map,
|
|
1215
|
+
).data
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
@validate_call
|
|
1219
|
+
def api_v1_persona_instance_post_with_http_info(
|
|
1220
|
+
self,
|
|
1221
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
1222
|
+
_request_timeout: Union[
|
|
1223
|
+
None,
|
|
1224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1225
|
+
Tuple[
|
|
1226
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1227
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1228
|
+
]
|
|
1229
|
+
] = None,
|
|
1230
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1231
|
+
_content_type: Optional[StrictStr] = None,
|
|
1232
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1233
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1234
|
+
) -> ApiResponse[PersonasPersonaInstanceCreateResponse]:
|
|
1235
|
+
"""Create a Persona Instance
|
|
1236
|
+
|
|
1237
|
+
Create a Persona Instance.
|
|
1238
|
+
|
|
1239
|
+
:param request: Body (required)
|
|
1240
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
1241
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1242
|
+
number provided, it will be total request
|
|
1243
|
+
timeout. It can also be a pair (tuple) of
|
|
1244
|
+
(connection, read) timeouts.
|
|
1245
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1246
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1247
|
+
request; this effectively ignores the
|
|
1248
|
+
authentication in the spec for a single request.
|
|
1249
|
+
:type _request_auth: dict, optional
|
|
1250
|
+
:param _content_type: force content-type for the request.
|
|
1251
|
+
:type _content_type: str, Optional
|
|
1252
|
+
:param _headers: set to override the headers for a single
|
|
1253
|
+
request; this effectively ignores the headers
|
|
1254
|
+
in the spec for a single request.
|
|
1255
|
+
:type _headers: dict, optional
|
|
1256
|
+
:param _host_index: set to override the host_index for a single
|
|
1257
|
+
request; this effectively ignores the host_index
|
|
1258
|
+
in the spec for a single request.
|
|
1259
|
+
:type _host_index: int, optional
|
|
1260
|
+
:return: Returns the result object.
|
|
1261
|
+
""" # noqa: E501
|
|
1262
|
+
|
|
1263
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
1264
|
+
request=request,
|
|
1265
|
+
_request_auth=_request_auth,
|
|
1266
|
+
_content_type=_content_type,
|
|
1267
|
+
_headers=_headers,
|
|
1268
|
+
_host_index=_host_index
|
|
1269
|
+
)
|
|
1270
|
+
|
|
1271
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1272
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
1273
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
1274
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
1275
|
+
}
|
|
1276
|
+
response_data = self.api_client.call_api(
|
|
1277
|
+
*_param,
|
|
1278
|
+
_request_timeout=_request_timeout
|
|
1279
|
+
)
|
|
1280
|
+
response_data.read()
|
|
1281
|
+
return self.api_client.response_deserialize(
|
|
1282
|
+
response_data=response_data,
|
|
1283
|
+
response_types_map=_response_types_map,
|
|
1284
|
+
)
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
@validate_call
|
|
1288
|
+
def api_v1_persona_instance_post_without_preload_content(
|
|
1289
|
+
self,
|
|
1290
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
1291
|
+
_request_timeout: Union[
|
|
1292
|
+
None,
|
|
1293
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1294
|
+
Tuple[
|
|
1295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1296
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1297
|
+
]
|
|
1298
|
+
] = None,
|
|
1299
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1300
|
+
_content_type: Optional[StrictStr] = None,
|
|
1301
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1302
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1303
|
+
) -> RESTResponseType:
|
|
1304
|
+
"""Create a Persona Instance
|
|
1305
|
+
|
|
1306
|
+
Create a Persona Instance.
|
|
1307
|
+
|
|
1308
|
+
:param request: Body (required)
|
|
1309
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
1310
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1311
|
+
number provided, it will be total request
|
|
1312
|
+
timeout. It can also be a pair (tuple) of
|
|
1313
|
+
(connection, read) timeouts.
|
|
1314
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1315
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1316
|
+
request; this effectively ignores the
|
|
1317
|
+
authentication in the spec for a single request.
|
|
1318
|
+
:type _request_auth: dict, optional
|
|
1319
|
+
:param _content_type: force content-type for the request.
|
|
1320
|
+
:type _content_type: str, Optional
|
|
1321
|
+
:param _headers: set to override the headers for a single
|
|
1322
|
+
request; this effectively ignores the headers
|
|
1323
|
+
in the spec for a single request.
|
|
1324
|
+
:type _headers: dict, optional
|
|
1325
|
+
:param _host_index: set to override the host_index for a single
|
|
1326
|
+
request; this effectively ignores the host_index
|
|
1327
|
+
in the spec for a single request.
|
|
1328
|
+
:type _host_index: int, optional
|
|
1329
|
+
:return: Returns the result object.
|
|
1330
|
+
""" # noqa: E501
|
|
1331
|
+
|
|
1332
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
1333
|
+
request=request,
|
|
1334
|
+
_request_auth=_request_auth,
|
|
1335
|
+
_content_type=_content_type,
|
|
1336
|
+
_headers=_headers,
|
|
1337
|
+
_host_index=_host_index
|
|
1338
|
+
)
|
|
1339
|
+
|
|
1340
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1341
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
1342
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
1343
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
1344
|
+
}
|
|
1345
|
+
response_data = self.api_client.call_api(
|
|
1346
|
+
*_param,
|
|
1347
|
+
_request_timeout=_request_timeout
|
|
1348
|
+
)
|
|
1349
|
+
return response_data.response
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
def _api_v1_persona_instance_post_serialize(
|
|
1353
|
+
self,
|
|
1354
|
+
request,
|
|
1355
|
+
_request_auth,
|
|
1356
|
+
_content_type,
|
|
1357
|
+
_headers,
|
|
1358
|
+
_host_index,
|
|
1359
|
+
) -> RequestSerialized:
|
|
1360
|
+
|
|
1361
|
+
_host = None
|
|
1362
|
+
|
|
1363
|
+
_collection_formats: Dict[str, str] = {
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
_path_params: Dict[str, str] = {}
|
|
1367
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1368
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1369
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1370
|
+
_files: Dict[
|
|
1371
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1372
|
+
] = {}
|
|
1373
|
+
_body_params: Optional[bytes] = None
|
|
1374
|
+
|
|
1375
|
+
# process the path parameters
|
|
1376
|
+
# process the query parameters
|
|
1377
|
+
# process the header parameters
|
|
1378
|
+
# process the form parameters
|
|
1379
|
+
# process the body parameter
|
|
1380
|
+
if request is not None:
|
|
1381
|
+
_body_params = request
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
# set the HTTP header `Accept`
|
|
1385
|
+
if 'Accept' not in _header_params:
|
|
1386
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1387
|
+
[
|
|
1388
|
+
'application/json'
|
|
1389
|
+
]
|
|
1390
|
+
)
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
# authentication setting
|
|
1394
|
+
_auth_settings: List[str] = [
|
|
1395
|
+
'TokenAuth'
|
|
1396
|
+
]
|
|
1397
|
+
|
|
1398
|
+
return self.api_client.param_serialize(
|
|
1399
|
+
method='POST',
|
|
1400
|
+
resource_path='/api/v1/persona/instance',
|
|
1401
|
+
path_params=_path_params,
|
|
1402
|
+
query_params=_query_params,
|
|
1403
|
+
header_params=_header_params,
|
|
1404
|
+
body=_body_params,
|
|
1405
|
+
post_params=_form_params,
|
|
1406
|
+
files=_files,
|
|
1407
|
+
auth_settings=_auth_settings,
|
|
1408
|
+
collection_formats=_collection_formats,
|
|
1409
|
+
_host=_host,
|
|
1410
|
+
_request_auth=_request_auth
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
@validate_call
|
|
1417
|
+
def api_v1_persona_kpi_post(
|
|
1418
|
+
self,
|
|
1419
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
1420
|
+
_request_timeout: Union[
|
|
1421
|
+
None,
|
|
1422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1423
|
+
Tuple[
|
|
1424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1425
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1426
|
+
]
|
|
1427
|
+
] = None,
|
|
1428
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1429
|
+
_content_type: Optional[StrictStr] = None,
|
|
1430
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1431
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1432
|
+
) -> PersonasPersonaKpiCreateResponse:
|
|
1433
|
+
"""Create Persona KPIs
|
|
1434
|
+
|
|
1435
|
+
A Persona Seed is the top level concpet of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1436
|
+
|
|
1437
|
+
:param request: Body (required)
|
|
1438
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
1439
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1440
|
+
number provided, it will be total request
|
|
1441
|
+
timeout. It can also be a pair (tuple) of
|
|
1442
|
+
(connection, read) timeouts.
|
|
1443
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1444
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1445
|
+
request; this effectively ignores the
|
|
1446
|
+
authentication in the spec for a single request.
|
|
1447
|
+
:type _request_auth: dict, optional
|
|
1448
|
+
:param _content_type: force content-type for the request.
|
|
1449
|
+
:type _content_type: str, Optional
|
|
1450
|
+
:param _headers: set to override the headers for a single
|
|
1451
|
+
request; this effectively ignores the headers
|
|
1452
|
+
in the spec for a single request.
|
|
1453
|
+
:type _headers: dict, optional
|
|
1454
|
+
:param _host_index: set to override the host_index for a single
|
|
1455
|
+
request; this effectively ignores the host_index
|
|
1456
|
+
in the spec for a single request.
|
|
1457
|
+
:type _host_index: int, optional
|
|
1458
|
+
:return: Returns the result object.
|
|
1459
|
+
""" # noqa: E501
|
|
1460
|
+
|
|
1461
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
1462
|
+
request=request,
|
|
1463
|
+
_request_auth=_request_auth,
|
|
1464
|
+
_content_type=_content_type,
|
|
1465
|
+
_headers=_headers,
|
|
1466
|
+
_host_index=_host_index
|
|
1467
|
+
)
|
|
1468
|
+
|
|
1469
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1470
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
1471
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
1472
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
1473
|
+
}
|
|
1474
|
+
response_data = self.api_client.call_api(
|
|
1475
|
+
*_param,
|
|
1476
|
+
_request_timeout=_request_timeout
|
|
1477
|
+
)
|
|
1478
|
+
response_data.read()
|
|
1479
|
+
return self.api_client.response_deserialize(
|
|
1480
|
+
response_data=response_data,
|
|
1481
|
+
response_types_map=_response_types_map,
|
|
1482
|
+
).data
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
@validate_call
|
|
1486
|
+
def api_v1_persona_kpi_post_with_http_info(
|
|
1487
|
+
self,
|
|
1488
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
1489
|
+
_request_timeout: Union[
|
|
1490
|
+
None,
|
|
1491
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1492
|
+
Tuple[
|
|
1493
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1494
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1495
|
+
]
|
|
1496
|
+
] = None,
|
|
1497
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1498
|
+
_content_type: Optional[StrictStr] = None,
|
|
1499
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1500
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1501
|
+
) -> ApiResponse[PersonasPersonaKpiCreateResponse]:
|
|
1502
|
+
"""Create Persona KPIs
|
|
1503
|
+
|
|
1504
|
+
A Persona Seed is the top level concpet of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1505
|
+
|
|
1506
|
+
:param request: Body (required)
|
|
1507
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
1508
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1509
|
+
number provided, it will be total request
|
|
1510
|
+
timeout. It can also be a pair (tuple) of
|
|
1511
|
+
(connection, read) timeouts.
|
|
1512
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1513
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1514
|
+
request; this effectively ignores the
|
|
1515
|
+
authentication in the spec for a single request.
|
|
1516
|
+
:type _request_auth: dict, optional
|
|
1517
|
+
:param _content_type: force content-type for the request.
|
|
1518
|
+
:type _content_type: str, Optional
|
|
1519
|
+
:param _headers: set to override the headers for a single
|
|
1520
|
+
request; this effectively ignores the headers
|
|
1521
|
+
in the spec for a single request.
|
|
1522
|
+
:type _headers: dict, optional
|
|
1523
|
+
:param _host_index: set to override the host_index for a single
|
|
1524
|
+
request; this effectively ignores the host_index
|
|
1525
|
+
in the spec for a single request.
|
|
1526
|
+
:type _host_index: int, optional
|
|
1527
|
+
:return: Returns the result object.
|
|
1528
|
+
""" # noqa: E501
|
|
1529
|
+
|
|
1530
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
1531
|
+
request=request,
|
|
1532
|
+
_request_auth=_request_auth,
|
|
1533
|
+
_content_type=_content_type,
|
|
1534
|
+
_headers=_headers,
|
|
1535
|
+
_host_index=_host_index
|
|
1536
|
+
)
|
|
1537
|
+
|
|
1538
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1539
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
1540
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
1541
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
1542
|
+
}
|
|
1543
|
+
response_data = self.api_client.call_api(
|
|
1544
|
+
*_param,
|
|
1545
|
+
_request_timeout=_request_timeout
|
|
1546
|
+
)
|
|
1547
|
+
response_data.read()
|
|
1548
|
+
return self.api_client.response_deserialize(
|
|
1549
|
+
response_data=response_data,
|
|
1550
|
+
response_types_map=_response_types_map,
|
|
1551
|
+
)
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
@validate_call
|
|
1555
|
+
def api_v1_persona_kpi_post_without_preload_content(
|
|
1556
|
+
self,
|
|
1557
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
1558
|
+
_request_timeout: Union[
|
|
1559
|
+
None,
|
|
1560
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1561
|
+
Tuple[
|
|
1562
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1563
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1564
|
+
]
|
|
1565
|
+
] = None,
|
|
1566
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1567
|
+
_content_type: Optional[StrictStr] = None,
|
|
1568
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1569
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1570
|
+
) -> RESTResponseType:
|
|
1571
|
+
"""Create Persona KPIs
|
|
1572
|
+
|
|
1573
|
+
A Persona Seed is the top level concpet of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1574
|
+
|
|
1575
|
+
:param request: Body (required)
|
|
1576
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
1577
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1578
|
+
number provided, it will be total request
|
|
1579
|
+
timeout. It can also be a pair (tuple) of
|
|
1580
|
+
(connection, read) timeouts.
|
|
1581
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1582
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1583
|
+
request; this effectively ignores the
|
|
1584
|
+
authentication in the spec for a single request.
|
|
1585
|
+
:type _request_auth: dict, optional
|
|
1586
|
+
:param _content_type: force content-type for the request.
|
|
1587
|
+
:type _content_type: str, Optional
|
|
1588
|
+
:param _headers: set to override the headers for a single
|
|
1589
|
+
request; this effectively ignores the headers
|
|
1590
|
+
in the spec for a single request.
|
|
1591
|
+
:type _headers: dict, optional
|
|
1592
|
+
:param _host_index: set to override the host_index for a single
|
|
1593
|
+
request; this effectively ignores the host_index
|
|
1594
|
+
in the spec for a single request.
|
|
1595
|
+
:type _host_index: int, optional
|
|
1596
|
+
:return: Returns the result object.
|
|
1597
|
+
""" # noqa: E501
|
|
1598
|
+
|
|
1599
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
1600
|
+
request=request,
|
|
1601
|
+
_request_auth=_request_auth,
|
|
1602
|
+
_content_type=_content_type,
|
|
1603
|
+
_headers=_headers,
|
|
1604
|
+
_host_index=_host_index
|
|
1605
|
+
)
|
|
1606
|
+
|
|
1607
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1608
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
1609
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
1610
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
1611
|
+
}
|
|
1612
|
+
response_data = self.api_client.call_api(
|
|
1613
|
+
*_param,
|
|
1614
|
+
_request_timeout=_request_timeout
|
|
1615
|
+
)
|
|
1616
|
+
return response_data.response
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
def _api_v1_persona_kpi_post_serialize(
|
|
1620
|
+
self,
|
|
1621
|
+
request,
|
|
1622
|
+
_request_auth,
|
|
1623
|
+
_content_type,
|
|
1624
|
+
_headers,
|
|
1625
|
+
_host_index,
|
|
1626
|
+
) -> RequestSerialized:
|
|
1627
|
+
|
|
1628
|
+
_host = None
|
|
1629
|
+
|
|
1630
|
+
_collection_formats: Dict[str, str] = {
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
_path_params: Dict[str, str] = {}
|
|
1634
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1635
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1636
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1637
|
+
_files: Dict[
|
|
1638
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1639
|
+
] = {}
|
|
1640
|
+
_body_params: Optional[bytes] = None
|
|
1641
|
+
|
|
1642
|
+
# process the path parameters
|
|
1643
|
+
# process the query parameters
|
|
1644
|
+
# process the header parameters
|
|
1645
|
+
# process the form parameters
|
|
1646
|
+
# process the body parameter
|
|
1647
|
+
if request is not None:
|
|
1648
|
+
_body_params = request
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
# set the HTTP header `Accept`
|
|
1652
|
+
if 'Accept' not in _header_params:
|
|
1653
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1654
|
+
[
|
|
1655
|
+
'application/json'
|
|
1656
|
+
]
|
|
1657
|
+
)
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
# authentication setting
|
|
1661
|
+
_auth_settings: List[str] = [
|
|
1662
|
+
'TokenAuth'
|
|
1663
|
+
]
|
|
1664
|
+
|
|
1665
|
+
return self.api_client.param_serialize(
|
|
1666
|
+
method='POST',
|
|
1667
|
+
resource_path='/api/v1/persona/kpi',
|
|
1668
|
+
path_params=_path_params,
|
|
1669
|
+
query_params=_query_params,
|
|
1670
|
+
header_params=_header_params,
|
|
1671
|
+
body=_body_params,
|
|
1672
|
+
post_params=_form_params,
|
|
1673
|
+
files=_files,
|
|
1674
|
+
auth_settings=_auth_settings,
|
|
1675
|
+
collection_formats=_collection_formats,
|
|
1676
|
+
_host=_host,
|
|
1677
|
+
_request_auth=_request_auth
|
|
1678
|
+
)
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
@validate_call
|
|
1684
|
+
def api_v1_persona_match_criteria_post(
|
|
1685
|
+
self,
|
|
1686
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
592
1687
|
_request_timeout: Union[
|
|
593
1688
|
None,
|
|
594
1689
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -601,13 +1696,13 @@ class PersonaApi:
|
|
|
601
1696
|
_content_type: Optional[StrictStr] = None,
|
|
602
1697
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
603
1698
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
604
|
-
) ->
|
|
605
|
-
"""Create
|
|
1699
|
+
) -> PersonasPersonaMatchCriteriaResponse:
|
|
1700
|
+
"""Create Persona Match Criteria
|
|
606
1701
|
|
|
607
|
-
Create
|
|
1702
|
+
Create Persona Match Criteria
|
|
608
1703
|
|
|
609
1704
|
:param request: Body (required)
|
|
610
|
-
:type request:
|
|
1705
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
611
1706
|
:param _request_timeout: timeout setting for this request. If one
|
|
612
1707
|
number provided, it will be total request
|
|
613
1708
|
timeout. It can also be a pair (tuple) of
|
|
@@ -630,7 +1725,7 @@ class PersonaApi:
|
|
|
630
1725
|
:return: Returns the result object.
|
|
631
1726
|
""" # noqa: E501
|
|
632
1727
|
|
|
633
|
-
_param = self.
|
|
1728
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
634
1729
|
request=request,
|
|
635
1730
|
_request_auth=_request_auth,
|
|
636
1731
|
_content_type=_content_type,
|
|
@@ -639,9 +1734,9 @@ class PersonaApi:
|
|
|
639
1734
|
)
|
|
640
1735
|
|
|
641
1736
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
642
|
-
'200': "
|
|
643
|
-
'400': "
|
|
644
|
-
'503': "
|
|
1737
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1738
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1739
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
645
1740
|
}
|
|
646
1741
|
response_data = self.api_client.call_api(
|
|
647
1742
|
*_param,
|
|
@@ -655,9 +1750,9 @@ class PersonaApi:
|
|
|
655
1750
|
|
|
656
1751
|
|
|
657
1752
|
@validate_call
|
|
658
|
-
def
|
|
1753
|
+
def api_v1_persona_match_criteria_post_with_http_info(
|
|
659
1754
|
self,
|
|
660
|
-
request: Annotated[
|
|
1755
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
661
1756
|
_request_timeout: Union[
|
|
662
1757
|
None,
|
|
663
1758
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -670,13 +1765,13 @@ class PersonaApi:
|
|
|
670
1765
|
_content_type: Optional[StrictStr] = None,
|
|
671
1766
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
672
1767
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
673
|
-
) -> ApiResponse[
|
|
674
|
-
"""Create
|
|
1768
|
+
) -> ApiResponse[PersonasPersonaMatchCriteriaResponse]:
|
|
1769
|
+
"""Create Persona Match Criteria
|
|
675
1770
|
|
|
676
|
-
Create
|
|
1771
|
+
Create Persona Match Criteria
|
|
677
1772
|
|
|
678
1773
|
:param request: Body (required)
|
|
679
|
-
:type request:
|
|
1774
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
680
1775
|
:param _request_timeout: timeout setting for this request. If one
|
|
681
1776
|
number provided, it will be total request
|
|
682
1777
|
timeout. It can also be a pair (tuple) of
|
|
@@ -699,7 +1794,7 @@ class PersonaApi:
|
|
|
699
1794
|
:return: Returns the result object.
|
|
700
1795
|
""" # noqa: E501
|
|
701
1796
|
|
|
702
|
-
_param = self.
|
|
1797
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
703
1798
|
request=request,
|
|
704
1799
|
_request_auth=_request_auth,
|
|
705
1800
|
_content_type=_content_type,
|
|
@@ -708,9 +1803,9 @@ class PersonaApi:
|
|
|
708
1803
|
)
|
|
709
1804
|
|
|
710
1805
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
711
|
-
'200': "
|
|
712
|
-
'400': "
|
|
713
|
-
'503': "
|
|
1806
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1807
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1808
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
714
1809
|
}
|
|
715
1810
|
response_data = self.api_client.call_api(
|
|
716
1811
|
*_param,
|
|
@@ -724,9 +1819,9 @@ class PersonaApi:
|
|
|
724
1819
|
|
|
725
1820
|
|
|
726
1821
|
@validate_call
|
|
727
|
-
def
|
|
1822
|
+
def api_v1_persona_match_criteria_post_without_preload_content(
|
|
728
1823
|
self,
|
|
729
|
-
request: Annotated[
|
|
1824
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
730
1825
|
_request_timeout: Union[
|
|
731
1826
|
None,
|
|
732
1827
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -740,12 +1835,12 @@ class PersonaApi:
|
|
|
740
1835
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
741
1836
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
742
1837
|
) -> RESTResponseType:
|
|
743
|
-
"""Create
|
|
1838
|
+
"""Create Persona Match Criteria
|
|
744
1839
|
|
|
745
|
-
Create
|
|
1840
|
+
Create Persona Match Criteria
|
|
746
1841
|
|
|
747
1842
|
:param request: Body (required)
|
|
748
|
-
:type request:
|
|
1843
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
749
1844
|
:param _request_timeout: timeout setting for this request. If one
|
|
750
1845
|
number provided, it will be total request
|
|
751
1846
|
timeout. It can also be a pair (tuple) of
|
|
@@ -768,7 +1863,7 @@ class PersonaApi:
|
|
|
768
1863
|
:return: Returns the result object.
|
|
769
1864
|
""" # noqa: E501
|
|
770
1865
|
|
|
771
|
-
_param = self.
|
|
1866
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
772
1867
|
request=request,
|
|
773
1868
|
_request_auth=_request_auth,
|
|
774
1869
|
_content_type=_content_type,
|
|
@@ -777,9 +1872,9 @@ class PersonaApi:
|
|
|
777
1872
|
)
|
|
778
1873
|
|
|
779
1874
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
780
|
-
'200': "
|
|
781
|
-
'400': "
|
|
782
|
-
'503': "
|
|
1875
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1876
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1877
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
783
1878
|
}
|
|
784
1879
|
response_data = self.api_client.call_api(
|
|
785
1880
|
*_param,
|
|
@@ -788,7 +1883,7 @@ class PersonaApi:
|
|
|
788
1883
|
return response_data.response
|
|
789
1884
|
|
|
790
1885
|
|
|
791
|
-
def
|
|
1886
|
+
def _api_v1_persona_match_criteria_post_serialize(
|
|
792
1887
|
self,
|
|
793
1888
|
request,
|
|
794
1889
|
_request_auth,
|
|
@@ -836,7 +1931,7 @@ class PersonaApi:
|
|
|
836
1931
|
|
|
837
1932
|
return self.api_client.param_serialize(
|
|
838
1933
|
method='POST',
|
|
839
|
-
resource_path='/api/v1/persona/
|
|
1934
|
+
resource_path='/api/v1/persona/match_criteria',
|
|
840
1935
|
path_params=_path_params,
|
|
841
1936
|
query_params=_query_params,
|
|
842
1937
|
header_params=_header_params,
|
|
@@ -853,9 +1948,9 @@ class PersonaApi:
|
|
|
853
1948
|
|
|
854
1949
|
|
|
855
1950
|
@validate_call
|
|
856
|
-
def
|
|
1951
|
+
def api_v1_persona_personality_trait_post(
|
|
857
1952
|
self,
|
|
858
|
-
request: Annotated[
|
|
1953
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
859
1954
|
_request_timeout: Union[
|
|
860
1955
|
None,
|
|
861
1956
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -868,13 +1963,13 @@ class PersonaApi:
|
|
|
868
1963
|
_content_type: Optional[StrictStr] = None,
|
|
869
1964
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
870
1965
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
871
|
-
) ->
|
|
872
|
-
"""Create Persona
|
|
1966
|
+
) -> PersonasPersonaTraitCreateResponse:
|
|
1967
|
+
"""Create a Persona Traits
|
|
873
1968
|
|
|
874
|
-
|
|
1969
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
875
1970
|
|
|
876
1971
|
:param request: Body (required)
|
|
877
|
-
:type request:
|
|
1972
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
878
1973
|
:param _request_timeout: timeout setting for this request. If one
|
|
879
1974
|
number provided, it will be total request
|
|
880
1975
|
timeout. It can also be a pair (tuple) of
|
|
@@ -897,7 +1992,7 @@ class PersonaApi:
|
|
|
897
1992
|
:return: Returns the result object.
|
|
898
1993
|
""" # noqa: E501
|
|
899
1994
|
|
|
900
|
-
_param = self.
|
|
1995
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
901
1996
|
request=request,
|
|
902
1997
|
_request_auth=_request_auth,
|
|
903
1998
|
_content_type=_content_type,
|
|
@@ -906,9 +2001,9 @@ class PersonaApi:
|
|
|
906
2001
|
)
|
|
907
2002
|
|
|
908
2003
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
909
|
-
'200': "
|
|
910
|
-
'400': "
|
|
911
|
-
'503': "
|
|
2004
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
2005
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
2006
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
912
2007
|
}
|
|
913
2008
|
response_data = self.api_client.call_api(
|
|
914
2009
|
*_param,
|
|
@@ -922,9 +2017,9 @@ class PersonaApi:
|
|
|
922
2017
|
|
|
923
2018
|
|
|
924
2019
|
@validate_call
|
|
925
|
-
def
|
|
2020
|
+
def api_v1_persona_personality_trait_post_with_http_info(
|
|
926
2021
|
self,
|
|
927
|
-
request: Annotated[
|
|
2022
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
928
2023
|
_request_timeout: Union[
|
|
929
2024
|
None,
|
|
930
2025
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -937,13 +2032,13 @@ class PersonaApi:
|
|
|
937
2032
|
_content_type: Optional[StrictStr] = None,
|
|
938
2033
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
939
2034
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
940
|
-
) -> ApiResponse[
|
|
941
|
-
"""Create Persona
|
|
2035
|
+
) -> ApiResponse[PersonasPersonaTraitCreateResponse]:
|
|
2036
|
+
"""Create a Persona Traits
|
|
942
2037
|
|
|
943
|
-
|
|
2038
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
944
2039
|
|
|
945
2040
|
:param request: Body (required)
|
|
946
|
-
:type request:
|
|
2041
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
947
2042
|
:param _request_timeout: timeout setting for this request. If one
|
|
948
2043
|
number provided, it will be total request
|
|
949
2044
|
timeout. It can also be a pair (tuple) of
|
|
@@ -966,7 +2061,7 @@ class PersonaApi:
|
|
|
966
2061
|
:return: Returns the result object.
|
|
967
2062
|
""" # noqa: E501
|
|
968
2063
|
|
|
969
|
-
_param = self.
|
|
2064
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
970
2065
|
request=request,
|
|
971
2066
|
_request_auth=_request_auth,
|
|
972
2067
|
_content_type=_content_type,
|
|
@@ -975,9 +2070,9 @@ class PersonaApi:
|
|
|
975
2070
|
)
|
|
976
2071
|
|
|
977
2072
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
-
'200': "
|
|
979
|
-
'400': "
|
|
980
|
-
'503': "
|
|
2073
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
2074
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
2075
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
981
2076
|
}
|
|
982
2077
|
response_data = self.api_client.call_api(
|
|
983
2078
|
*_param,
|
|
@@ -991,9 +2086,9 @@ class PersonaApi:
|
|
|
991
2086
|
|
|
992
2087
|
|
|
993
2088
|
@validate_call
|
|
994
|
-
def
|
|
2089
|
+
def api_v1_persona_personality_trait_post_without_preload_content(
|
|
995
2090
|
self,
|
|
996
|
-
request: Annotated[
|
|
2091
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
997
2092
|
_request_timeout: Union[
|
|
998
2093
|
None,
|
|
999
2094
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1007,12 +2102,12 @@ class PersonaApi:
|
|
|
1007
2102
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1008
2103
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1009
2104
|
) -> RESTResponseType:
|
|
1010
|
-
"""Create Persona
|
|
2105
|
+
"""Create a Persona Traits
|
|
1011
2106
|
|
|
1012
|
-
|
|
2107
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
1013
2108
|
|
|
1014
2109
|
:param request: Body (required)
|
|
1015
|
-
:type request:
|
|
2110
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
1016
2111
|
:param _request_timeout: timeout setting for this request. If one
|
|
1017
2112
|
number provided, it will be total request
|
|
1018
2113
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1035,7 +2130,7 @@ class PersonaApi:
|
|
|
1035
2130
|
:return: Returns the result object.
|
|
1036
2131
|
""" # noqa: E501
|
|
1037
2132
|
|
|
1038
|
-
_param = self.
|
|
2133
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
1039
2134
|
request=request,
|
|
1040
2135
|
_request_auth=_request_auth,
|
|
1041
2136
|
_content_type=_content_type,
|
|
@@ -1044,9 +2139,9 @@ class PersonaApi:
|
|
|
1044
2139
|
)
|
|
1045
2140
|
|
|
1046
2141
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1047
|
-
'200': "
|
|
1048
|
-
'400': "
|
|
1049
|
-
'503': "
|
|
2142
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
2143
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
2144
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
1050
2145
|
}
|
|
1051
2146
|
response_data = self.api_client.call_api(
|
|
1052
2147
|
*_param,
|
|
@@ -1055,7 +2150,7 @@ class PersonaApi:
|
|
|
1055
2150
|
return response_data.response
|
|
1056
2151
|
|
|
1057
2152
|
|
|
1058
|
-
def
|
|
2153
|
+
def _api_v1_persona_personality_trait_post_serialize(
|
|
1059
2154
|
self,
|
|
1060
2155
|
request,
|
|
1061
2156
|
_request_auth,
|
|
@@ -1103,7 +2198,7 @@ class PersonaApi:
|
|
|
1103
2198
|
|
|
1104
2199
|
return self.api_client.param_serialize(
|
|
1105
2200
|
method='POST',
|
|
1106
|
-
resource_path='/api/v1/persona/
|
|
2201
|
+
resource_path='/api/v1/persona/personality-trait',
|
|
1107
2202
|
path_params=_path_params,
|
|
1108
2203
|
query_params=_query_params,
|
|
1109
2204
|
header_params=_header_params,
|
|
@@ -1120,9 +2215,9 @@ class PersonaApi:
|
|
|
1120
2215
|
|
|
1121
2216
|
|
|
1122
2217
|
@validate_call
|
|
1123
|
-
def
|
|
2218
|
+
def api_v1_persona_seed_delete(
|
|
1124
2219
|
self,
|
|
1125
|
-
request: Annotated[
|
|
2220
|
+
request: Annotated[PersonasPersonaSeedsDeleteRequest, Field(description="Body")],
|
|
1126
2221
|
_request_timeout: Union[
|
|
1127
2222
|
None,
|
|
1128
2223
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1135,13 +2230,13 @@ class PersonaApi:
|
|
|
1135
2230
|
_content_type: Optional[StrictStr] = None,
|
|
1136
2231
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1137
2232
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1138
|
-
) ->
|
|
1139
|
-
"""
|
|
2233
|
+
) -> PersonasPersonaSeedsDeleteResponse:
|
|
2234
|
+
"""Delete one or more Persona Seeds
|
|
1140
2235
|
|
|
1141
|
-
|
|
2236
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1142
2237
|
|
|
1143
2238
|
:param request: Body (required)
|
|
1144
|
-
:type request:
|
|
2239
|
+
:type request: PersonasPersonaSeedsDeleteRequest
|
|
1145
2240
|
:param _request_timeout: timeout setting for this request. If one
|
|
1146
2241
|
number provided, it will be total request
|
|
1147
2242
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1164,7 +2259,7 @@ class PersonaApi:
|
|
|
1164
2259
|
:return: Returns the result object.
|
|
1165
2260
|
""" # noqa: E501
|
|
1166
2261
|
|
|
1167
|
-
_param = self.
|
|
2262
|
+
_param = self._api_v1_persona_seed_delete_serialize(
|
|
1168
2263
|
request=request,
|
|
1169
2264
|
_request_auth=_request_auth,
|
|
1170
2265
|
_content_type=_content_type,
|
|
@@ -1173,9 +2268,9 @@ class PersonaApi:
|
|
|
1173
2268
|
)
|
|
1174
2269
|
|
|
1175
2270
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1176
|
-
'200': "
|
|
1177
|
-
'400': "
|
|
1178
|
-
'503': "
|
|
2271
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2272
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2273
|
+
'503': "PersonasPersonaSeedsDeleteResponse",
|
|
1179
2274
|
}
|
|
1180
2275
|
response_data = self.api_client.call_api(
|
|
1181
2276
|
*_param,
|
|
@@ -1189,9 +2284,9 @@ class PersonaApi:
|
|
|
1189
2284
|
|
|
1190
2285
|
|
|
1191
2286
|
@validate_call
|
|
1192
|
-
def
|
|
2287
|
+
def api_v1_persona_seed_delete_with_http_info(
|
|
1193
2288
|
self,
|
|
1194
|
-
request: Annotated[
|
|
2289
|
+
request: Annotated[PersonasPersonaSeedsDeleteRequest, Field(description="Body")],
|
|
1195
2290
|
_request_timeout: Union[
|
|
1196
2291
|
None,
|
|
1197
2292
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1204,13 +2299,13 @@ class PersonaApi:
|
|
|
1204
2299
|
_content_type: Optional[StrictStr] = None,
|
|
1205
2300
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1206
2301
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1207
|
-
) -> ApiResponse[
|
|
1208
|
-
"""
|
|
2302
|
+
) -> ApiResponse[PersonasPersonaSeedsDeleteResponse]:
|
|
2303
|
+
"""Delete one or more Persona Seeds
|
|
1209
2304
|
|
|
1210
|
-
|
|
2305
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1211
2306
|
|
|
1212
2307
|
:param request: Body (required)
|
|
1213
|
-
:type request:
|
|
2308
|
+
:type request: PersonasPersonaSeedsDeleteRequest
|
|
1214
2309
|
:param _request_timeout: timeout setting for this request. If one
|
|
1215
2310
|
number provided, it will be total request
|
|
1216
2311
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1233,7 +2328,7 @@ class PersonaApi:
|
|
|
1233
2328
|
:return: Returns the result object.
|
|
1234
2329
|
""" # noqa: E501
|
|
1235
2330
|
|
|
1236
|
-
_param = self.
|
|
2331
|
+
_param = self._api_v1_persona_seed_delete_serialize(
|
|
1237
2332
|
request=request,
|
|
1238
2333
|
_request_auth=_request_auth,
|
|
1239
2334
|
_content_type=_content_type,
|
|
@@ -1242,9 +2337,9 @@ class PersonaApi:
|
|
|
1242
2337
|
)
|
|
1243
2338
|
|
|
1244
2339
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1245
|
-
'200': "
|
|
1246
|
-
'400': "
|
|
1247
|
-
'503': "
|
|
2340
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2341
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2342
|
+
'503': "PersonasPersonaSeedsDeleteResponse",
|
|
1248
2343
|
}
|
|
1249
2344
|
response_data = self.api_client.call_api(
|
|
1250
2345
|
*_param,
|
|
@@ -1258,9 +2353,9 @@ class PersonaApi:
|
|
|
1258
2353
|
|
|
1259
2354
|
|
|
1260
2355
|
@validate_call
|
|
1261
|
-
def
|
|
2356
|
+
def api_v1_persona_seed_delete_without_preload_content(
|
|
1262
2357
|
self,
|
|
1263
|
-
request: Annotated[
|
|
2358
|
+
request: Annotated[PersonasPersonaSeedsDeleteRequest, Field(description="Body")],
|
|
1264
2359
|
_request_timeout: Union[
|
|
1265
2360
|
None,
|
|
1266
2361
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1274,12 +2369,12 @@ class PersonaApi:
|
|
|
1274
2369
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1275
2370
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1276
2371
|
) -> RESTResponseType:
|
|
1277
|
-
"""
|
|
2372
|
+
"""Delete one or more Persona Seeds
|
|
1278
2373
|
|
|
1279
|
-
|
|
2374
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1280
2375
|
|
|
1281
2376
|
:param request: Body (required)
|
|
1282
|
-
:type request:
|
|
2377
|
+
:type request: PersonasPersonaSeedsDeleteRequest
|
|
1283
2378
|
:param _request_timeout: timeout setting for this request. If one
|
|
1284
2379
|
number provided, it will be total request
|
|
1285
2380
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1302,7 +2397,7 @@ class PersonaApi:
|
|
|
1302
2397
|
:return: Returns the result object.
|
|
1303
2398
|
""" # noqa: E501
|
|
1304
2399
|
|
|
1305
|
-
_param = self.
|
|
2400
|
+
_param = self._api_v1_persona_seed_delete_serialize(
|
|
1306
2401
|
request=request,
|
|
1307
2402
|
_request_auth=_request_auth,
|
|
1308
2403
|
_content_type=_content_type,
|
|
@@ -1311,9 +2406,9 @@ class PersonaApi:
|
|
|
1311
2406
|
)
|
|
1312
2407
|
|
|
1313
2408
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1314
|
-
'200': "
|
|
1315
|
-
'400': "
|
|
1316
|
-
'503': "
|
|
2409
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2410
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2411
|
+
'503': "PersonasPersonaSeedsDeleteResponse",
|
|
1317
2412
|
}
|
|
1318
2413
|
response_data = self.api_client.call_api(
|
|
1319
2414
|
*_param,
|
|
@@ -1322,7 +2417,7 @@ class PersonaApi:
|
|
|
1322
2417
|
return response_data.response
|
|
1323
2418
|
|
|
1324
2419
|
|
|
1325
|
-
def
|
|
2420
|
+
def _api_v1_persona_seed_delete_serialize(
|
|
1326
2421
|
self,
|
|
1327
2422
|
request,
|
|
1328
2423
|
_request_auth,
|
|
@@ -1369,8 +2464,8 @@ class PersonaApi:
|
|
|
1369
2464
|
]
|
|
1370
2465
|
|
|
1371
2466
|
return self.api_client.param_serialize(
|
|
1372
|
-
method='
|
|
1373
|
-
resource_path='/api/v1/persona/
|
|
2467
|
+
method='DELETE',
|
|
2468
|
+
resource_path='/api/v1/persona/seed',
|
|
1374
2469
|
path_params=_path_params,
|
|
1375
2470
|
query_params=_query_params,
|
|
1376
2471
|
header_params=_header_params,
|
|
@@ -1387,9 +2482,10 @@ class PersonaApi:
|
|
|
1387
2482
|
|
|
1388
2483
|
|
|
1389
2484
|
@validate_call
|
|
1390
|
-
def
|
|
2485
|
+
def api_v1_persona_seed_get(
|
|
1391
2486
|
self,
|
|
1392
|
-
|
|
2487
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2488
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
1393
2489
|
_request_timeout: Union[
|
|
1394
2490
|
None,
|
|
1395
2491
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1402,13 +2498,15 @@ class PersonaApi:
|
|
|
1402
2498
|
_content_type: Optional[StrictStr] = None,
|
|
1403
2499
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1404
2500
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1405
|
-
) ->
|
|
1406
|
-
"""
|
|
2501
|
+
) -> PersonasPersonaSeedGetManyResponse:
|
|
2502
|
+
"""Get one or more Persona Seeds
|
|
1407
2503
|
|
|
1408
|
-
|
|
2504
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1409
2505
|
|
|
1410
|
-
:param
|
|
1411
|
-
:type
|
|
2506
|
+
:param limit: Maximum number of records
|
|
2507
|
+
:type limit: int
|
|
2508
|
+
:param offset: Record offset
|
|
2509
|
+
:type offset: int
|
|
1412
2510
|
:param _request_timeout: timeout setting for this request. If one
|
|
1413
2511
|
number provided, it will be total request
|
|
1414
2512
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1431,8 +2529,9 @@ class PersonaApi:
|
|
|
1431
2529
|
:return: Returns the result object.
|
|
1432
2530
|
""" # noqa: E501
|
|
1433
2531
|
|
|
1434
|
-
_param = self.
|
|
1435
|
-
|
|
2532
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2533
|
+
limit=limit,
|
|
2534
|
+
offset=offset,
|
|
1436
2535
|
_request_auth=_request_auth,
|
|
1437
2536
|
_content_type=_content_type,
|
|
1438
2537
|
_headers=_headers,
|
|
@@ -1440,9 +2539,9 @@ class PersonaApi:
|
|
|
1440
2539
|
)
|
|
1441
2540
|
|
|
1442
2541
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1443
|
-
'200': "
|
|
1444
|
-
'400': "
|
|
1445
|
-
'503': "
|
|
2542
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2543
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2544
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
1446
2545
|
}
|
|
1447
2546
|
response_data = self.api_client.call_api(
|
|
1448
2547
|
*_param,
|
|
@@ -1456,9 +2555,10 @@ class PersonaApi:
|
|
|
1456
2555
|
|
|
1457
2556
|
|
|
1458
2557
|
@validate_call
|
|
1459
|
-
def
|
|
2558
|
+
def api_v1_persona_seed_get_with_http_info(
|
|
1460
2559
|
self,
|
|
1461
|
-
|
|
2560
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2561
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
1462
2562
|
_request_timeout: Union[
|
|
1463
2563
|
None,
|
|
1464
2564
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1471,13 +2571,15 @@ class PersonaApi:
|
|
|
1471
2571
|
_content_type: Optional[StrictStr] = None,
|
|
1472
2572
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1473
2573
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1474
|
-
) -> ApiResponse[
|
|
1475
|
-
"""
|
|
2574
|
+
) -> ApiResponse[PersonasPersonaSeedGetManyResponse]:
|
|
2575
|
+
"""Get one or more Persona Seeds
|
|
1476
2576
|
|
|
1477
|
-
|
|
2577
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1478
2578
|
|
|
1479
|
-
:param
|
|
1480
|
-
:type
|
|
2579
|
+
:param limit: Maximum number of records
|
|
2580
|
+
:type limit: int
|
|
2581
|
+
:param offset: Record offset
|
|
2582
|
+
:type offset: int
|
|
1481
2583
|
:param _request_timeout: timeout setting for this request. If one
|
|
1482
2584
|
number provided, it will be total request
|
|
1483
2585
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1500,8 +2602,9 @@ class PersonaApi:
|
|
|
1500
2602
|
:return: Returns the result object.
|
|
1501
2603
|
""" # noqa: E501
|
|
1502
2604
|
|
|
1503
|
-
_param = self.
|
|
1504
|
-
|
|
2605
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2606
|
+
limit=limit,
|
|
2607
|
+
offset=offset,
|
|
1505
2608
|
_request_auth=_request_auth,
|
|
1506
2609
|
_content_type=_content_type,
|
|
1507
2610
|
_headers=_headers,
|
|
@@ -1509,9 +2612,9 @@ class PersonaApi:
|
|
|
1509
2612
|
)
|
|
1510
2613
|
|
|
1511
2614
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1512
|
-
'200': "
|
|
1513
|
-
'400': "
|
|
1514
|
-
'503': "
|
|
2615
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2616
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2617
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
1515
2618
|
}
|
|
1516
2619
|
response_data = self.api_client.call_api(
|
|
1517
2620
|
*_param,
|
|
@@ -1525,9 +2628,10 @@ class PersonaApi:
|
|
|
1525
2628
|
|
|
1526
2629
|
|
|
1527
2630
|
@validate_call
|
|
1528
|
-
def
|
|
2631
|
+
def api_v1_persona_seed_get_without_preload_content(
|
|
1529
2632
|
self,
|
|
1530
|
-
|
|
2633
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2634
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
1531
2635
|
_request_timeout: Union[
|
|
1532
2636
|
None,
|
|
1533
2637
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1541,12 +2645,14 @@ class PersonaApi:
|
|
|
1541
2645
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1542
2646
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1543
2647
|
) -> RESTResponseType:
|
|
1544
|
-
"""
|
|
2648
|
+
"""Get one or more Persona Seeds
|
|
1545
2649
|
|
|
1546
|
-
|
|
2650
|
+
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
1547
2651
|
|
|
1548
|
-
:param
|
|
1549
|
-
:type
|
|
2652
|
+
:param limit: Maximum number of records
|
|
2653
|
+
:type limit: int
|
|
2654
|
+
:param offset: Record offset
|
|
2655
|
+
:type offset: int
|
|
1550
2656
|
:param _request_timeout: timeout setting for this request. If one
|
|
1551
2657
|
number provided, it will be total request
|
|
1552
2658
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1569,8 +2675,9 @@ class PersonaApi:
|
|
|
1569
2675
|
:return: Returns the result object.
|
|
1570
2676
|
""" # noqa: E501
|
|
1571
2677
|
|
|
1572
|
-
_param = self.
|
|
1573
|
-
|
|
2678
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2679
|
+
limit=limit,
|
|
2680
|
+
offset=offset,
|
|
1574
2681
|
_request_auth=_request_auth,
|
|
1575
2682
|
_content_type=_content_type,
|
|
1576
2683
|
_headers=_headers,
|
|
@@ -1578,9 +2685,9 @@ class PersonaApi:
|
|
|
1578
2685
|
)
|
|
1579
2686
|
|
|
1580
2687
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1581
|
-
'200': "
|
|
1582
|
-
'400': "
|
|
1583
|
-
'503': "
|
|
2688
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2689
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2690
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
1584
2691
|
}
|
|
1585
2692
|
response_data = self.api_client.call_api(
|
|
1586
2693
|
*_param,
|
|
@@ -1589,9 +2696,10 @@ class PersonaApi:
|
|
|
1589
2696
|
return response_data.response
|
|
1590
2697
|
|
|
1591
2698
|
|
|
1592
|
-
def
|
|
2699
|
+
def _api_v1_persona_seed_get_serialize(
|
|
1593
2700
|
self,
|
|
1594
|
-
|
|
2701
|
+
limit,
|
|
2702
|
+
offset,
|
|
1595
2703
|
_request_auth,
|
|
1596
2704
|
_content_type,
|
|
1597
2705
|
_headers,
|
|
@@ -1614,11 +2722,17 @@ class PersonaApi:
|
|
|
1614
2722
|
|
|
1615
2723
|
# process the path parameters
|
|
1616
2724
|
# process the query parameters
|
|
2725
|
+
if limit is not None:
|
|
2726
|
+
|
|
2727
|
+
_query_params.append(('limit', limit))
|
|
2728
|
+
|
|
2729
|
+
if offset is not None:
|
|
2730
|
+
|
|
2731
|
+
_query_params.append(('offset', offset))
|
|
2732
|
+
|
|
1617
2733
|
# process the header parameters
|
|
1618
2734
|
# process the form parameters
|
|
1619
2735
|
# process the body parameter
|
|
1620
|
-
if request is not None:
|
|
1621
|
-
_body_params = request
|
|
1622
2736
|
|
|
1623
2737
|
|
|
1624
2738
|
# set the HTTP header `Accept`
|
|
@@ -1636,8 +2750,8 @@ class PersonaApi:
|
|
|
1636
2750
|
]
|
|
1637
2751
|
|
|
1638
2752
|
return self.api_client.param_serialize(
|
|
1639
|
-
method='
|
|
1640
|
-
resource_path='/api/v1/persona/
|
|
2753
|
+
method='GET',
|
|
2754
|
+
resource_path='/api/v1/persona/seed',
|
|
1641
2755
|
path_params=_path_params,
|
|
1642
2756
|
query_params=_query_params,
|
|
1643
2757
|
header_params=_header_params,
|