neurograph-core 1.202508112256__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/__init__.py +0 -0
- neurograph/v1/__init__.py +227 -0
- neurograph/v1/api/__init__.py +15 -0
- neurograph/v1/api/atlas_api.py +588 -0
- neurograph/v1/api/authentication_api.py +830 -0
- neurograph/v1/api/client_api.py +1684 -0
- neurograph/v1/api/client_metadata_api.py +871 -0
- neurograph/v1/api/lookup_api.py +1049 -0
- neurograph/v1/api/organization_api.py +1975 -0
- neurograph/v1/api/organization_metadata_api.py +872 -0
- neurograph/v1/api/persona_api.py +1920 -0
- neurograph/v1/api/system_api.py +293 -0
- neurograph/v1/api/tasks_api.py +285 -0
- neurograph/v1/api/workbench_api.py +857 -0
- neurograph/v1/api_client.py +801 -0
- neurograph/v1/api_response.py +21 -0
- neurograph/v1/configuration.py +612 -0
- neurograph/v1/exceptions.py +216 -0
- neurograph/v1/models/__init__.py +96 -0
- neurograph/v1/models/atlas_atlas_version.py +99 -0
- neurograph/v1/models/atlas_atlas_version_many_response.py +97 -0
- neurograph/v1/models/atlas_atlas_version_response.py +101 -0
- neurograph/v1/models/atlas_atlas_version_upsert_request.py +95 -0
- neurograph/v1/models/auth_service_token_request.py +87 -0
- neurograph/v1/models/auth_test_service_token_response.py +89 -0
- neurograph/v1/models/auth_test_token_response.py +87 -0
- neurograph/v1/models/client_client.py +109 -0
- neurograph/v1/models/client_client_creat_response.py +111 -0
- neurograph/v1/models/client_client_create_request.py +95 -0
- neurograph/v1/models/client_client_get_detail_response.py +93 -0
- neurograph/v1/models/client_client_get_many_response.py +105 -0
- neurograph/v1/models/client_client_metadata_request.py +89 -0
- neurograph/v1/models/client_client_metadata_response.py +97 -0
- neurograph/v1/models/client_client_personas_response.py +99 -0
- neurograph/v1/models/client_client_url_upsert_request.py +99 -0
- neurograph/v1/models/client_client_url_upsert_response.py +101 -0
- neurograph/v1/models/client_client_urls_response.py +101 -0
- neurograph/v1/models/client_delete_metadata_request.py +87 -0
- neurograph/v1/models/client_kpi.py +93 -0
- neurograph/v1/models/client_metadata.py +93 -0
- neurograph/v1/models/client_persona.py +171 -0
- neurograph/v1/models/client_persona_factor.py +99 -0
- neurograph/v1/models/client_persona_insight.py +93 -0
- neurograph/v1/models/client_persona_personality_trait.py +93 -0
- neurograph/v1/models/client_query.py +93 -0
- neurograph/v1/models/db_client_url.py +99 -0
- neurograph/v1/models/db_persona_factor_create_params.py +97 -0
- neurograph/v1/models/lookup_language.py +97 -0
- neurograph/v1/models/lookup_lookup_language_response.py +97 -0
- neurograph/v1/models/lookup_lookup_state_response.py +97 -0
- neurograph/v1/models/lookup_state.py +91 -0
- neurograph/v1/models/lookup_state_response.py +93 -0
- neurograph/v1/models/organizations_atlas_config.py +97 -0
- neurograph/v1/models/organizations_brand_detail_response.py +109 -0
- neurograph/v1/models/organizations_brand_upsert_request.py +107 -0
- neurograph/v1/models/organizations_delete_metadata_request.py +87 -0
- neurograph/v1/models/organizations_delete_metadata_response.py +97 -0
- neurograph/v1/models/organizations_metadata.py +93 -0
- neurograph/v1/models/organizations_organization.py +103 -0
- neurograph/v1/models/organizations_organization_brand.py +107 -0
- neurograph/v1/models/organizations_organization_create_request.py +97 -0
- neurograph/v1/models/organizations_organization_detail_response.py +123 -0
- neurograph/v1/models/organizations_organization_get_many_response.py +103 -0
- neurograph/v1/models/organizations_organization_metadata_request.py +89 -0
- neurograph/v1/models/organizations_organization_metadata_response.py +97 -0
- neurograph/v1/models/organizations_organization_set_atlas_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_atlas_response.py +99 -0
- neurograph/v1/models/organizations_organization_set_workbench_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_workbench_response.py +99 -0
- neurograph/v1/models/organizations_organization_update_request.py +99 -0
- neurograph/v1/models/organizations_workbench_config.py +97 -0
- neurograph/v1/models/personas_match_criteria_row.py +97 -0
- neurograph/v1/models/personas_match_criteria_row_in.py +93 -0
- neurograph/v1/models/personas_persona_factor.py +101 -0
- neurograph/v1/models/personas_persona_factor_create_request.py +95 -0
- neurograph/v1/models/personas_persona_factor_create_response.py +97 -0
- neurograph/v1/models/personas_persona_insight_create_request.py +91 -0
- neurograph/v1/models/personas_persona_insight_create_response.py +95 -0
- neurograph/v1/models/personas_persona_instance_create_request.py +123 -0
- neurograph/v1/models/personas_persona_instance_create_response.py +127 -0
- neurograph/v1/models/personas_persona_kpi_create_request.py +95 -0
- neurograph/v1/models/personas_persona_kpi_create_response.py +97 -0
- neurograph/v1/models/personas_persona_kpi_req.py +91 -0
- neurograph/v1/models/personas_persona_kpi_resp.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_request.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_response.py +97 -0
- neurograph/v1/models/personas_persona_seed_create_request.py +89 -0
- neurograph/v1/models/personas_persona_seed_create_response.py +97 -0
- neurograph/v1/models/personas_persona_trait_create_request.py +95 -0
- neurograph/v1/models/personas_persona_trait_create_response.py +97 -0
- neurograph/v1/models/personas_personality_trait_in.py +91 -0
- neurograph/v1/models/personas_personality_trait_out.py +95 -0
- neurograph/v1/models/tasks_sync_from_firebase_result.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_request.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_response.py +111 -0
- neurograph/v1/models/workbench_workbench_version.py +99 -0
- neurograph/v1/models/workbench_workbench_version_many_response.py +97 -0
- neurograph/v1/models/workbench_workbench_version_response.py +101 -0
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +95 -0
- neurograph/v1/py.typed +0 -0
- neurograph/v1/rest.py +258 -0
- neurograph_core-1.202508112256.dist-info/METADATA +62 -0
- neurograph_core-1.202508112256.dist-info/RECORD +105 -0
- neurograph_core-1.202508112256.dist-info/WHEEL +5 -0
- neurograph_core-1.202508112256.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1920 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from neurograph.v1.models.personas_persona_factor_create_request import PersonasPersonaFactorCreateRequest
|
|
22
|
+
from neurograph.v1.models.personas_persona_factor_create_response import PersonasPersonaFactorCreateResponse
|
|
23
|
+
from neurograph.v1.models.personas_persona_insight_create_request import PersonasPersonaInsightCreateRequest
|
|
24
|
+
from neurograph.v1.models.personas_persona_insight_create_response import PersonasPersonaInsightCreateResponse
|
|
25
|
+
from neurograph.v1.models.personas_persona_instance_create_request import PersonasPersonaInstanceCreateRequest
|
|
26
|
+
from neurograph.v1.models.personas_persona_instance_create_response import PersonasPersonaInstanceCreateResponse
|
|
27
|
+
from neurograph.v1.models.personas_persona_kpi_create_request import PersonasPersonaKpiCreateRequest
|
|
28
|
+
from neurograph.v1.models.personas_persona_kpi_create_response import PersonasPersonaKpiCreateResponse
|
|
29
|
+
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest
|
|
30
|
+
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse
|
|
31
|
+
from neurograph.v1.models.personas_persona_seed_create_request import PersonasPersonaSeedCreateRequest
|
|
32
|
+
from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse
|
|
33
|
+
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest
|
|
34
|
+
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
|
|
35
|
+
|
|
36
|
+
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
37
|
+
from neurograph.v1.api_response import ApiResponse
|
|
38
|
+
from neurograph.v1.rest import RESTResponseType
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class PersonaApi:
|
|
42
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
43
|
+
Ref: https://openapi-generator.tech
|
|
44
|
+
|
|
45
|
+
Do not edit the class manually.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def __init__(self, api_client=None) -> None:
|
|
49
|
+
if api_client is None:
|
|
50
|
+
api_client = ApiClient.get_default()
|
|
51
|
+
self.api_client = api_client
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@validate_call
|
|
55
|
+
def api_v1_persona_factors_post(
|
|
56
|
+
self,
|
|
57
|
+
request: Annotated[PersonasPersonaFactorCreateRequest, Field(description="Body")],
|
|
58
|
+
_request_timeout: Union[
|
|
59
|
+
None,
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Tuple[
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
63
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
64
|
+
]
|
|
65
|
+
] = None,
|
|
66
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_content_type: Optional[StrictStr] = None,
|
|
68
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
69
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
70
|
+
) -> PersonasPersonaFactorCreateResponse:
|
|
71
|
+
"""Create Persona Factors
|
|
72
|
+
|
|
73
|
+
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.
|
|
74
|
+
|
|
75
|
+
:param request: Body (required)
|
|
76
|
+
:type request: PersonasPersonaFactorCreateRequest
|
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
78
|
+
number provided, it will be total request
|
|
79
|
+
timeout. It can also be a pair (tuple) of
|
|
80
|
+
(connection, read) timeouts.
|
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
83
|
+
request; this effectively ignores the
|
|
84
|
+
authentication in the spec for a single request.
|
|
85
|
+
:type _request_auth: dict, optional
|
|
86
|
+
:param _content_type: force content-type for the request.
|
|
87
|
+
:type _content_type: str, Optional
|
|
88
|
+
:param _headers: set to override the headers for a single
|
|
89
|
+
request; this effectively ignores the headers
|
|
90
|
+
in the spec for a single request.
|
|
91
|
+
:type _headers: dict, optional
|
|
92
|
+
:param _host_index: set to override the host_index for a single
|
|
93
|
+
request; this effectively ignores the host_index
|
|
94
|
+
in the spec for a single request.
|
|
95
|
+
:type _host_index: int, optional
|
|
96
|
+
:return: Returns the result object.
|
|
97
|
+
""" # noqa: E501
|
|
98
|
+
|
|
99
|
+
_param = self._api_v1_persona_factors_post_serialize(
|
|
100
|
+
request=request,
|
|
101
|
+
_request_auth=_request_auth,
|
|
102
|
+
_content_type=_content_type,
|
|
103
|
+
_headers=_headers,
|
|
104
|
+
_host_index=_host_index
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
108
|
+
'200': "PersonasPersonaFactorCreateResponse",
|
|
109
|
+
'400': "PersonasPersonaFactorCreateResponse",
|
|
110
|
+
'503': "PersonasPersonaFactorCreateResponse",
|
|
111
|
+
}
|
|
112
|
+
response_data = self.api_client.call_api(
|
|
113
|
+
*_param,
|
|
114
|
+
_request_timeout=_request_timeout
|
|
115
|
+
)
|
|
116
|
+
response_data.read()
|
|
117
|
+
return self.api_client.response_deserialize(
|
|
118
|
+
response_data=response_data,
|
|
119
|
+
response_types_map=_response_types_map,
|
|
120
|
+
).data
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@validate_call
|
|
124
|
+
def api_v1_persona_factors_post_with_http_info(
|
|
125
|
+
self,
|
|
126
|
+
request: Annotated[PersonasPersonaFactorCreateRequest, Field(description="Body")],
|
|
127
|
+
_request_timeout: Union[
|
|
128
|
+
None,
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Tuple[
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
133
|
+
]
|
|
134
|
+
] = None,
|
|
135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_content_type: Optional[StrictStr] = None,
|
|
137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
139
|
+
) -> ApiResponse[PersonasPersonaFactorCreateResponse]:
|
|
140
|
+
"""Create Persona Factors
|
|
141
|
+
|
|
142
|
+
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.
|
|
143
|
+
|
|
144
|
+
:param request: Body (required)
|
|
145
|
+
:type request: PersonasPersonaFactorCreateRequest
|
|
146
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
147
|
+
number provided, it will be total request
|
|
148
|
+
timeout. It can also be a pair (tuple) of
|
|
149
|
+
(connection, read) timeouts.
|
|
150
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
152
|
+
request; this effectively ignores the
|
|
153
|
+
authentication in the spec for a single request.
|
|
154
|
+
:type _request_auth: dict, optional
|
|
155
|
+
:param _content_type: force content-type for the request.
|
|
156
|
+
:type _content_type: str, Optional
|
|
157
|
+
:param _headers: set to override the headers for a single
|
|
158
|
+
request; this effectively ignores the headers
|
|
159
|
+
in the spec for a single request.
|
|
160
|
+
:type _headers: dict, optional
|
|
161
|
+
:param _host_index: set to override the host_index for a single
|
|
162
|
+
request; this effectively ignores the host_index
|
|
163
|
+
in the spec for a single request.
|
|
164
|
+
:type _host_index: int, optional
|
|
165
|
+
:return: Returns the result object.
|
|
166
|
+
""" # noqa: E501
|
|
167
|
+
|
|
168
|
+
_param = self._api_v1_persona_factors_post_serialize(
|
|
169
|
+
request=request,
|
|
170
|
+
_request_auth=_request_auth,
|
|
171
|
+
_content_type=_content_type,
|
|
172
|
+
_headers=_headers,
|
|
173
|
+
_host_index=_host_index
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
+
'200': "PersonasPersonaFactorCreateResponse",
|
|
178
|
+
'400': "PersonasPersonaFactorCreateResponse",
|
|
179
|
+
'503': "PersonasPersonaFactorCreateResponse",
|
|
180
|
+
}
|
|
181
|
+
response_data = self.api_client.call_api(
|
|
182
|
+
*_param,
|
|
183
|
+
_request_timeout=_request_timeout
|
|
184
|
+
)
|
|
185
|
+
response_data.read()
|
|
186
|
+
return self.api_client.response_deserialize(
|
|
187
|
+
response_data=response_data,
|
|
188
|
+
response_types_map=_response_types_map,
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
@validate_call
|
|
193
|
+
def api_v1_persona_factors_post_without_preload_content(
|
|
194
|
+
self,
|
|
195
|
+
request: Annotated[PersonasPersonaFactorCreateRequest, Field(description="Body")],
|
|
196
|
+
_request_timeout: Union[
|
|
197
|
+
None,
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
199
|
+
Tuple[
|
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
202
|
+
]
|
|
203
|
+
] = None,
|
|
204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
205
|
+
_content_type: Optional[StrictStr] = None,
|
|
206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
208
|
+
) -> RESTResponseType:
|
|
209
|
+
"""Create Persona Factors
|
|
210
|
+
|
|
211
|
+
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.
|
|
212
|
+
|
|
213
|
+
:param request: Body (required)
|
|
214
|
+
:type request: PersonasPersonaFactorCreateRequest
|
|
215
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
216
|
+
number provided, it will be total request
|
|
217
|
+
timeout. It can also be a pair (tuple) of
|
|
218
|
+
(connection, read) timeouts.
|
|
219
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
220
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
221
|
+
request; this effectively ignores the
|
|
222
|
+
authentication in the spec for a single request.
|
|
223
|
+
:type _request_auth: dict, optional
|
|
224
|
+
:param _content_type: force content-type for the request.
|
|
225
|
+
:type _content_type: str, Optional
|
|
226
|
+
:param _headers: set to override the headers for a single
|
|
227
|
+
request; this effectively ignores the headers
|
|
228
|
+
in the spec for a single request.
|
|
229
|
+
:type _headers: dict, optional
|
|
230
|
+
:param _host_index: set to override the host_index for a single
|
|
231
|
+
request; this effectively ignores the host_index
|
|
232
|
+
in the spec for a single request.
|
|
233
|
+
:type _host_index: int, optional
|
|
234
|
+
:return: Returns the result object.
|
|
235
|
+
""" # noqa: E501
|
|
236
|
+
|
|
237
|
+
_param = self._api_v1_persona_factors_post_serialize(
|
|
238
|
+
request=request,
|
|
239
|
+
_request_auth=_request_auth,
|
|
240
|
+
_content_type=_content_type,
|
|
241
|
+
_headers=_headers,
|
|
242
|
+
_host_index=_host_index
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
+
'200': "PersonasPersonaFactorCreateResponse",
|
|
247
|
+
'400': "PersonasPersonaFactorCreateResponse",
|
|
248
|
+
'503': "PersonasPersonaFactorCreateResponse",
|
|
249
|
+
}
|
|
250
|
+
response_data = self.api_client.call_api(
|
|
251
|
+
*_param,
|
|
252
|
+
_request_timeout=_request_timeout
|
|
253
|
+
)
|
|
254
|
+
return response_data.response
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def _api_v1_persona_factors_post_serialize(
|
|
258
|
+
self,
|
|
259
|
+
request,
|
|
260
|
+
_request_auth,
|
|
261
|
+
_content_type,
|
|
262
|
+
_headers,
|
|
263
|
+
_host_index,
|
|
264
|
+
) -> RequestSerialized:
|
|
265
|
+
|
|
266
|
+
_host = None
|
|
267
|
+
|
|
268
|
+
_collection_formats: Dict[str, str] = {
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
_path_params: Dict[str, str] = {}
|
|
272
|
+
_query_params: List[Tuple[str, str]] = []
|
|
273
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
274
|
+
_form_params: List[Tuple[str, str]] = []
|
|
275
|
+
_files: Dict[
|
|
276
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
277
|
+
] = {}
|
|
278
|
+
_body_params: Optional[bytes] = None
|
|
279
|
+
|
|
280
|
+
# process the path parameters
|
|
281
|
+
# process the query parameters
|
|
282
|
+
# process the header parameters
|
|
283
|
+
# process the form parameters
|
|
284
|
+
# process the body parameter
|
|
285
|
+
if request is not None:
|
|
286
|
+
_body_params = request
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
# set the HTTP header `Accept`
|
|
290
|
+
if 'Accept' not in _header_params:
|
|
291
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
292
|
+
[
|
|
293
|
+
'application/json'
|
|
294
|
+
]
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
# authentication setting
|
|
299
|
+
_auth_settings: List[str] = [
|
|
300
|
+
'TokenAuth'
|
|
301
|
+
]
|
|
302
|
+
|
|
303
|
+
return self.api_client.param_serialize(
|
|
304
|
+
method='POST',
|
|
305
|
+
resource_path='/api/v1/persona/factors',
|
|
306
|
+
path_params=_path_params,
|
|
307
|
+
query_params=_query_params,
|
|
308
|
+
header_params=_header_params,
|
|
309
|
+
body=_body_params,
|
|
310
|
+
post_params=_form_params,
|
|
311
|
+
files=_files,
|
|
312
|
+
auth_settings=_auth_settings,
|
|
313
|
+
collection_formats=_collection_formats,
|
|
314
|
+
_host=_host,
|
|
315
|
+
_request_auth=_request_auth
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
@validate_call
|
|
322
|
+
def api_v1_persona_insight_post(
|
|
323
|
+
self,
|
|
324
|
+
request: Annotated[PersonasPersonaInsightCreateRequest, Field(description="Body")],
|
|
325
|
+
_request_timeout: Union[
|
|
326
|
+
None,
|
|
327
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
328
|
+
Tuple[
|
|
329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
331
|
+
]
|
|
332
|
+
] = None,
|
|
333
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
334
|
+
_content_type: Optional[StrictStr] = None,
|
|
335
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
336
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
337
|
+
) -> PersonasPersonaInsightCreateResponse:
|
|
338
|
+
"""Create a Persona Insight
|
|
339
|
+
|
|
340
|
+
A Persona Inisght is an insight topic and json blob.
|
|
341
|
+
|
|
342
|
+
:param request: Body (required)
|
|
343
|
+
:type request: PersonasPersonaInsightCreateRequest
|
|
344
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
345
|
+
number provided, it will be total request
|
|
346
|
+
timeout. It can also be a pair (tuple) of
|
|
347
|
+
(connection, read) timeouts.
|
|
348
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
349
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
350
|
+
request; this effectively ignores the
|
|
351
|
+
authentication in the spec for a single request.
|
|
352
|
+
:type _request_auth: dict, optional
|
|
353
|
+
:param _content_type: force content-type for the request.
|
|
354
|
+
:type _content_type: str, Optional
|
|
355
|
+
:param _headers: set to override the headers for a single
|
|
356
|
+
request; this effectively ignores the headers
|
|
357
|
+
in the spec for a single request.
|
|
358
|
+
:type _headers: dict, optional
|
|
359
|
+
:param _host_index: set to override the host_index for a single
|
|
360
|
+
request; this effectively ignores the host_index
|
|
361
|
+
in the spec for a single request.
|
|
362
|
+
:type _host_index: int, optional
|
|
363
|
+
:return: Returns the result object.
|
|
364
|
+
""" # noqa: E501
|
|
365
|
+
|
|
366
|
+
_param = self._api_v1_persona_insight_post_serialize(
|
|
367
|
+
request=request,
|
|
368
|
+
_request_auth=_request_auth,
|
|
369
|
+
_content_type=_content_type,
|
|
370
|
+
_headers=_headers,
|
|
371
|
+
_host_index=_host_index
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
375
|
+
'200': "PersonasPersonaInsightCreateResponse",
|
|
376
|
+
'400': "PersonasPersonaInsightCreateResponse",
|
|
377
|
+
'503': "PersonasPersonaInsightCreateResponse",
|
|
378
|
+
}
|
|
379
|
+
response_data = self.api_client.call_api(
|
|
380
|
+
*_param,
|
|
381
|
+
_request_timeout=_request_timeout
|
|
382
|
+
)
|
|
383
|
+
response_data.read()
|
|
384
|
+
return self.api_client.response_deserialize(
|
|
385
|
+
response_data=response_data,
|
|
386
|
+
response_types_map=_response_types_map,
|
|
387
|
+
).data
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
@validate_call
|
|
391
|
+
def api_v1_persona_insight_post_with_http_info(
|
|
392
|
+
self,
|
|
393
|
+
request: Annotated[PersonasPersonaInsightCreateRequest, Field(description="Body")],
|
|
394
|
+
_request_timeout: Union[
|
|
395
|
+
None,
|
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
397
|
+
Tuple[
|
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
400
|
+
]
|
|
401
|
+
] = None,
|
|
402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
403
|
+
_content_type: Optional[StrictStr] = None,
|
|
404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
406
|
+
) -> ApiResponse[PersonasPersonaInsightCreateResponse]:
|
|
407
|
+
"""Create a Persona Insight
|
|
408
|
+
|
|
409
|
+
A Persona Inisght is an insight topic and json blob.
|
|
410
|
+
|
|
411
|
+
:param request: Body (required)
|
|
412
|
+
:type request: PersonasPersonaInsightCreateRequest
|
|
413
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
414
|
+
number provided, it will be total request
|
|
415
|
+
timeout. It can also be a pair (tuple) of
|
|
416
|
+
(connection, read) timeouts.
|
|
417
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
418
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
419
|
+
request; this effectively ignores the
|
|
420
|
+
authentication in the spec for a single request.
|
|
421
|
+
:type _request_auth: dict, optional
|
|
422
|
+
:param _content_type: force content-type for the request.
|
|
423
|
+
:type _content_type: str, Optional
|
|
424
|
+
:param _headers: set to override the headers for a single
|
|
425
|
+
request; this effectively ignores the headers
|
|
426
|
+
in the spec for a single request.
|
|
427
|
+
:type _headers: dict, optional
|
|
428
|
+
:param _host_index: set to override the host_index for a single
|
|
429
|
+
request; this effectively ignores the host_index
|
|
430
|
+
in the spec for a single request.
|
|
431
|
+
:type _host_index: int, optional
|
|
432
|
+
:return: Returns the result object.
|
|
433
|
+
""" # noqa: E501
|
|
434
|
+
|
|
435
|
+
_param = self._api_v1_persona_insight_post_serialize(
|
|
436
|
+
request=request,
|
|
437
|
+
_request_auth=_request_auth,
|
|
438
|
+
_content_type=_content_type,
|
|
439
|
+
_headers=_headers,
|
|
440
|
+
_host_index=_host_index
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
444
|
+
'200': "PersonasPersonaInsightCreateResponse",
|
|
445
|
+
'400': "PersonasPersonaInsightCreateResponse",
|
|
446
|
+
'503': "PersonasPersonaInsightCreateResponse",
|
|
447
|
+
}
|
|
448
|
+
response_data = self.api_client.call_api(
|
|
449
|
+
*_param,
|
|
450
|
+
_request_timeout=_request_timeout
|
|
451
|
+
)
|
|
452
|
+
response_data.read()
|
|
453
|
+
return self.api_client.response_deserialize(
|
|
454
|
+
response_data=response_data,
|
|
455
|
+
response_types_map=_response_types_map,
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
@validate_call
|
|
460
|
+
def api_v1_persona_insight_post_without_preload_content(
|
|
461
|
+
self,
|
|
462
|
+
request: Annotated[PersonasPersonaInsightCreateRequest, Field(description="Body")],
|
|
463
|
+
_request_timeout: Union[
|
|
464
|
+
None,
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
466
|
+
Tuple[
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
469
|
+
]
|
|
470
|
+
] = None,
|
|
471
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
472
|
+
_content_type: Optional[StrictStr] = None,
|
|
473
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
475
|
+
) -> RESTResponseType:
|
|
476
|
+
"""Create a Persona Insight
|
|
477
|
+
|
|
478
|
+
A Persona Inisght is an insight topic and json blob.
|
|
479
|
+
|
|
480
|
+
:param request: Body (required)
|
|
481
|
+
:type request: PersonasPersonaInsightCreateRequest
|
|
482
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
483
|
+
number provided, it will be total request
|
|
484
|
+
timeout. It can also be a pair (tuple) of
|
|
485
|
+
(connection, read) timeouts.
|
|
486
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
487
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
488
|
+
request; this effectively ignores the
|
|
489
|
+
authentication in the spec for a single request.
|
|
490
|
+
:type _request_auth: dict, optional
|
|
491
|
+
:param _content_type: force content-type for the request.
|
|
492
|
+
:type _content_type: str, Optional
|
|
493
|
+
:param _headers: set to override the headers for a single
|
|
494
|
+
request; this effectively ignores the headers
|
|
495
|
+
in the spec for a single request.
|
|
496
|
+
:type _headers: dict, optional
|
|
497
|
+
:param _host_index: set to override the host_index for a single
|
|
498
|
+
request; this effectively ignores the host_index
|
|
499
|
+
in the spec for a single request.
|
|
500
|
+
:type _host_index: int, optional
|
|
501
|
+
:return: Returns the result object.
|
|
502
|
+
""" # noqa: E501
|
|
503
|
+
|
|
504
|
+
_param = self._api_v1_persona_insight_post_serialize(
|
|
505
|
+
request=request,
|
|
506
|
+
_request_auth=_request_auth,
|
|
507
|
+
_content_type=_content_type,
|
|
508
|
+
_headers=_headers,
|
|
509
|
+
_host_index=_host_index
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
513
|
+
'200': "PersonasPersonaInsightCreateResponse",
|
|
514
|
+
'400': "PersonasPersonaInsightCreateResponse",
|
|
515
|
+
'503': "PersonasPersonaInsightCreateResponse",
|
|
516
|
+
}
|
|
517
|
+
response_data = self.api_client.call_api(
|
|
518
|
+
*_param,
|
|
519
|
+
_request_timeout=_request_timeout
|
|
520
|
+
)
|
|
521
|
+
return response_data.response
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def _api_v1_persona_insight_post_serialize(
|
|
525
|
+
self,
|
|
526
|
+
request,
|
|
527
|
+
_request_auth,
|
|
528
|
+
_content_type,
|
|
529
|
+
_headers,
|
|
530
|
+
_host_index,
|
|
531
|
+
) -> RequestSerialized:
|
|
532
|
+
|
|
533
|
+
_host = None
|
|
534
|
+
|
|
535
|
+
_collection_formats: Dict[str, str] = {
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
_path_params: Dict[str, str] = {}
|
|
539
|
+
_query_params: List[Tuple[str, str]] = []
|
|
540
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
541
|
+
_form_params: List[Tuple[str, str]] = []
|
|
542
|
+
_files: Dict[
|
|
543
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
544
|
+
] = {}
|
|
545
|
+
_body_params: Optional[bytes] = None
|
|
546
|
+
|
|
547
|
+
# process the path parameters
|
|
548
|
+
# process the query parameters
|
|
549
|
+
# process the header parameters
|
|
550
|
+
# process the form parameters
|
|
551
|
+
# process the body parameter
|
|
552
|
+
if request is not None:
|
|
553
|
+
_body_params = request
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
# set the HTTP header `Accept`
|
|
557
|
+
if 'Accept' not in _header_params:
|
|
558
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
559
|
+
[
|
|
560
|
+
'application/json'
|
|
561
|
+
]
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
# authentication setting
|
|
566
|
+
_auth_settings: List[str] = [
|
|
567
|
+
'TokenAuth'
|
|
568
|
+
]
|
|
569
|
+
|
|
570
|
+
return self.api_client.param_serialize(
|
|
571
|
+
method='POST',
|
|
572
|
+
resource_path='/api/v1/persona/insight',
|
|
573
|
+
path_params=_path_params,
|
|
574
|
+
query_params=_query_params,
|
|
575
|
+
header_params=_header_params,
|
|
576
|
+
body=_body_params,
|
|
577
|
+
post_params=_form_params,
|
|
578
|
+
files=_files,
|
|
579
|
+
auth_settings=_auth_settings,
|
|
580
|
+
collection_formats=_collection_formats,
|
|
581
|
+
_host=_host,
|
|
582
|
+
_request_auth=_request_auth
|
|
583
|
+
)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
@validate_call
|
|
589
|
+
def api_v1_persona_instance_post(
|
|
590
|
+
self,
|
|
591
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
592
|
+
_request_timeout: Union[
|
|
593
|
+
None,
|
|
594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
595
|
+
Tuple[
|
|
596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
598
|
+
]
|
|
599
|
+
] = None,
|
|
600
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
601
|
+
_content_type: Optional[StrictStr] = None,
|
|
602
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
603
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
604
|
+
) -> PersonasPersonaInstanceCreateResponse:
|
|
605
|
+
"""Create a Persona Instance
|
|
606
|
+
|
|
607
|
+
Create a Persona Instance.
|
|
608
|
+
|
|
609
|
+
:param request: Body (required)
|
|
610
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
611
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
612
|
+
number provided, it will be total request
|
|
613
|
+
timeout. It can also be a pair (tuple) of
|
|
614
|
+
(connection, read) timeouts.
|
|
615
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
616
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
617
|
+
request; this effectively ignores the
|
|
618
|
+
authentication in the spec for a single request.
|
|
619
|
+
:type _request_auth: dict, optional
|
|
620
|
+
:param _content_type: force content-type for the request.
|
|
621
|
+
:type _content_type: str, Optional
|
|
622
|
+
:param _headers: set to override the headers for a single
|
|
623
|
+
request; this effectively ignores the headers
|
|
624
|
+
in the spec for a single request.
|
|
625
|
+
:type _headers: dict, optional
|
|
626
|
+
:param _host_index: set to override the host_index for a single
|
|
627
|
+
request; this effectively ignores the host_index
|
|
628
|
+
in the spec for a single request.
|
|
629
|
+
:type _host_index: int, optional
|
|
630
|
+
:return: Returns the result object.
|
|
631
|
+
""" # noqa: E501
|
|
632
|
+
|
|
633
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
634
|
+
request=request,
|
|
635
|
+
_request_auth=_request_auth,
|
|
636
|
+
_content_type=_content_type,
|
|
637
|
+
_headers=_headers,
|
|
638
|
+
_host_index=_host_index
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
642
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
643
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
644
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
645
|
+
}
|
|
646
|
+
response_data = self.api_client.call_api(
|
|
647
|
+
*_param,
|
|
648
|
+
_request_timeout=_request_timeout
|
|
649
|
+
)
|
|
650
|
+
response_data.read()
|
|
651
|
+
return self.api_client.response_deserialize(
|
|
652
|
+
response_data=response_data,
|
|
653
|
+
response_types_map=_response_types_map,
|
|
654
|
+
).data
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
@validate_call
|
|
658
|
+
def api_v1_persona_instance_post_with_http_info(
|
|
659
|
+
self,
|
|
660
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
661
|
+
_request_timeout: Union[
|
|
662
|
+
None,
|
|
663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
664
|
+
Tuple[
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
666
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
667
|
+
]
|
|
668
|
+
] = None,
|
|
669
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
670
|
+
_content_type: Optional[StrictStr] = None,
|
|
671
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
672
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
673
|
+
) -> ApiResponse[PersonasPersonaInstanceCreateResponse]:
|
|
674
|
+
"""Create a Persona Instance
|
|
675
|
+
|
|
676
|
+
Create a Persona Instance.
|
|
677
|
+
|
|
678
|
+
:param request: Body (required)
|
|
679
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
680
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
681
|
+
number provided, it will be total request
|
|
682
|
+
timeout. It can also be a pair (tuple) of
|
|
683
|
+
(connection, read) timeouts.
|
|
684
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
685
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
686
|
+
request; this effectively ignores the
|
|
687
|
+
authentication in the spec for a single request.
|
|
688
|
+
:type _request_auth: dict, optional
|
|
689
|
+
:param _content_type: force content-type for the request.
|
|
690
|
+
:type _content_type: str, Optional
|
|
691
|
+
:param _headers: set to override the headers for a single
|
|
692
|
+
request; this effectively ignores the headers
|
|
693
|
+
in the spec for a single request.
|
|
694
|
+
:type _headers: dict, optional
|
|
695
|
+
:param _host_index: set to override the host_index for a single
|
|
696
|
+
request; this effectively ignores the host_index
|
|
697
|
+
in the spec for a single request.
|
|
698
|
+
:type _host_index: int, optional
|
|
699
|
+
:return: Returns the result object.
|
|
700
|
+
""" # noqa: E501
|
|
701
|
+
|
|
702
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
703
|
+
request=request,
|
|
704
|
+
_request_auth=_request_auth,
|
|
705
|
+
_content_type=_content_type,
|
|
706
|
+
_headers=_headers,
|
|
707
|
+
_host_index=_host_index
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
711
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
712
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
713
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
714
|
+
}
|
|
715
|
+
response_data = self.api_client.call_api(
|
|
716
|
+
*_param,
|
|
717
|
+
_request_timeout=_request_timeout
|
|
718
|
+
)
|
|
719
|
+
response_data.read()
|
|
720
|
+
return self.api_client.response_deserialize(
|
|
721
|
+
response_data=response_data,
|
|
722
|
+
response_types_map=_response_types_map,
|
|
723
|
+
)
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
@validate_call
|
|
727
|
+
def api_v1_persona_instance_post_without_preload_content(
|
|
728
|
+
self,
|
|
729
|
+
request: Annotated[PersonasPersonaInstanceCreateRequest, Field(description="Body")],
|
|
730
|
+
_request_timeout: Union[
|
|
731
|
+
None,
|
|
732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
733
|
+
Tuple[
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
736
|
+
]
|
|
737
|
+
] = None,
|
|
738
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
739
|
+
_content_type: Optional[StrictStr] = None,
|
|
740
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
742
|
+
) -> RESTResponseType:
|
|
743
|
+
"""Create a Persona Instance
|
|
744
|
+
|
|
745
|
+
Create a Persona Instance.
|
|
746
|
+
|
|
747
|
+
:param request: Body (required)
|
|
748
|
+
:type request: PersonasPersonaInstanceCreateRequest
|
|
749
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
750
|
+
number provided, it will be total request
|
|
751
|
+
timeout. It can also be a pair (tuple) of
|
|
752
|
+
(connection, read) timeouts.
|
|
753
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
754
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
755
|
+
request; this effectively ignores the
|
|
756
|
+
authentication in the spec for a single request.
|
|
757
|
+
:type _request_auth: dict, optional
|
|
758
|
+
:param _content_type: force content-type for the request.
|
|
759
|
+
:type _content_type: str, Optional
|
|
760
|
+
:param _headers: set to override the headers for a single
|
|
761
|
+
request; this effectively ignores the headers
|
|
762
|
+
in the spec for a single request.
|
|
763
|
+
:type _headers: dict, optional
|
|
764
|
+
:param _host_index: set to override the host_index for a single
|
|
765
|
+
request; this effectively ignores the host_index
|
|
766
|
+
in the spec for a single request.
|
|
767
|
+
:type _host_index: int, optional
|
|
768
|
+
:return: Returns the result object.
|
|
769
|
+
""" # noqa: E501
|
|
770
|
+
|
|
771
|
+
_param = self._api_v1_persona_instance_post_serialize(
|
|
772
|
+
request=request,
|
|
773
|
+
_request_auth=_request_auth,
|
|
774
|
+
_content_type=_content_type,
|
|
775
|
+
_headers=_headers,
|
|
776
|
+
_host_index=_host_index
|
|
777
|
+
)
|
|
778
|
+
|
|
779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
780
|
+
'200': "PersonasPersonaInstanceCreateResponse",
|
|
781
|
+
'400': "PersonasPersonaInstanceCreateResponse",
|
|
782
|
+
'503': "PersonasPersonaInstanceCreateResponse",
|
|
783
|
+
}
|
|
784
|
+
response_data = self.api_client.call_api(
|
|
785
|
+
*_param,
|
|
786
|
+
_request_timeout=_request_timeout
|
|
787
|
+
)
|
|
788
|
+
return response_data.response
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
def _api_v1_persona_instance_post_serialize(
|
|
792
|
+
self,
|
|
793
|
+
request,
|
|
794
|
+
_request_auth,
|
|
795
|
+
_content_type,
|
|
796
|
+
_headers,
|
|
797
|
+
_host_index,
|
|
798
|
+
) -> RequestSerialized:
|
|
799
|
+
|
|
800
|
+
_host = None
|
|
801
|
+
|
|
802
|
+
_collection_formats: Dict[str, str] = {
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
_path_params: Dict[str, str] = {}
|
|
806
|
+
_query_params: List[Tuple[str, str]] = []
|
|
807
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
808
|
+
_form_params: List[Tuple[str, str]] = []
|
|
809
|
+
_files: Dict[
|
|
810
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
811
|
+
] = {}
|
|
812
|
+
_body_params: Optional[bytes] = None
|
|
813
|
+
|
|
814
|
+
# process the path parameters
|
|
815
|
+
# process the query parameters
|
|
816
|
+
# process the header parameters
|
|
817
|
+
# process the form parameters
|
|
818
|
+
# process the body parameter
|
|
819
|
+
if request is not None:
|
|
820
|
+
_body_params = request
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
# set the HTTP header `Accept`
|
|
824
|
+
if 'Accept' not in _header_params:
|
|
825
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
826
|
+
[
|
|
827
|
+
'application/json'
|
|
828
|
+
]
|
|
829
|
+
)
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
# authentication setting
|
|
833
|
+
_auth_settings: List[str] = [
|
|
834
|
+
'TokenAuth'
|
|
835
|
+
]
|
|
836
|
+
|
|
837
|
+
return self.api_client.param_serialize(
|
|
838
|
+
method='POST',
|
|
839
|
+
resource_path='/api/v1/persona/instance',
|
|
840
|
+
path_params=_path_params,
|
|
841
|
+
query_params=_query_params,
|
|
842
|
+
header_params=_header_params,
|
|
843
|
+
body=_body_params,
|
|
844
|
+
post_params=_form_params,
|
|
845
|
+
files=_files,
|
|
846
|
+
auth_settings=_auth_settings,
|
|
847
|
+
collection_formats=_collection_formats,
|
|
848
|
+
_host=_host,
|
|
849
|
+
_request_auth=_request_auth
|
|
850
|
+
)
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
@validate_call
|
|
856
|
+
def api_v1_persona_kpi_post(
|
|
857
|
+
self,
|
|
858
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
859
|
+
_request_timeout: Union[
|
|
860
|
+
None,
|
|
861
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
862
|
+
Tuple[
|
|
863
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
864
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
865
|
+
]
|
|
866
|
+
] = None,
|
|
867
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
868
|
+
_content_type: Optional[StrictStr] = None,
|
|
869
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
870
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
871
|
+
) -> PersonasPersonaKpiCreateResponse:
|
|
872
|
+
"""Create Persona KPIs
|
|
873
|
+
|
|
874
|
+
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.
|
|
875
|
+
|
|
876
|
+
:param request: Body (required)
|
|
877
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
878
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
879
|
+
number provided, it will be total request
|
|
880
|
+
timeout. It can also be a pair (tuple) of
|
|
881
|
+
(connection, read) timeouts.
|
|
882
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
883
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
884
|
+
request; this effectively ignores the
|
|
885
|
+
authentication in the spec for a single request.
|
|
886
|
+
:type _request_auth: dict, optional
|
|
887
|
+
:param _content_type: force content-type for the request.
|
|
888
|
+
:type _content_type: str, Optional
|
|
889
|
+
:param _headers: set to override the headers for a single
|
|
890
|
+
request; this effectively ignores the headers
|
|
891
|
+
in the spec for a single request.
|
|
892
|
+
:type _headers: dict, optional
|
|
893
|
+
:param _host_index: set to override the host_index for a single
|
|
894
|
+
request; this effectively ignores the host_index
|
|
895
|
+
in the spec for a single request.
|
|
896
|
+
:type _host_index: int, optional
|
|
897
|
+
:return: Returns the result object.
|
|
898
|
+
""" # noqa: E501
|
|
899
|
+
|
|
900
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
901
|
+
request=request,
|
|
902
|
+
_request_auth=_request_auth,
|
|
903
|
+
_content_type=_content_type,
|
|
904
|
+
_headers=_headers,
|
|
905
|
+
_host_index=_host_index
|
|
906
|
+
)
|
|
907
|
+
|
|
908
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
909
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
910
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
911
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
912
|
+
}
|
|
913
|
+
response_data = self.api_client.call_api(
|
|
914
|
+
*_param,
|
|
915
|
+
_request_timeout=_request_timeout
|
|
916
|
+
)
|
|
917
|
+
response_data.read()
|
|
918
|
+
return self.api_client.response_deserialize(
|
|
919
|
+
response_data=response_data,
|
|
920
|
+
response_types_map=_response_types_map,
|
|
921
|
+
).data
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
@validate_call
|
|
925
|
+
def api_v1_persona_kpi_post_with_http_info(
|
|
926
|
+
self,
|
|
927
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
928
|
+
_request_timeout: Union[
|
|
929
|
+
None,
|
|
930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
931
|
+
Tuple[
|
|
932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
933
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
934
|
+
]
|
|
935
|
+
] = None,
|
|
936
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
937
|
+
_content_type: Optional[StrictStr] = None,
|
|
938
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
939
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
940
|
+
) -> ApiResponse[PersonasPersonaKpiCreateResponse]:
|
|
941
|
+
"""Create Persona KPIs
|
|
942
|
+
|
|
943
|
+
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.
|
|
944
|
+
|
|
945
|
+
:param request: Body (required)
|
|
946
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
947
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
948
|
+
number provided, it will be total request
|
|
949
|
+
timeout. It can also be a pair (tuple) of
|
|
950
|
+
(connection, read) timeouts.
|
|
951
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
952
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
953
|
+
request; this effectively ignores the
|
|
954
|
+
authentication in the spec for a single request.
|
|
955
|
+
:type _request_auth: dict, optional
|
|
956
|
+
:param _content_type: force content-type for the request.
|
|
957
|
+
:type _content_type: str, Optional
|
|
958
|
+
:param _headers: set to override the headers for a single
|
|
959
|
+
request; this effectively ignores the headers
|
|
960
|
+
in the spec for a single request.
|
|
961
|
+
:type _headers: dict, optional
|
|
962
|
+
:param _host_index: set to override the host_index for a single
|
|
963
|
+
request; this effectively ignores the host_index
|
|
964
|
+
in the spec for a single request.
|
|
965
|
+
:type _host_index: int, optional
|
|
966
|
+
:return: Returns the result object.
|
|
967
|
+
""" # noqa: E501
|
|
968
|
+
|
|
969
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
970
|
+
request=request,
|
|
971
|
+
_request_auth=_request_auth,
|
|
972
|
+
_content_type=_content_type,
|
|
973
|
+
_headers=_headers,
|
|
974
|
+
_host_index=_host_index
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
979
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
980
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
981
|
+
}
|
|
982
|
+
response_data = self.api_client.call_api(
|
|
983
|
+
*_param,
|
|
984
|
+
_request_timeout=_request_timeout
|
|
985
|
+
)
|
|
986
|
+
response_data.read()
|
|
987
|
+
return self.api_client.response_deserialize(
|
|
988
|
+
response_data=response_data,
|
|
989
|
+
response_types_map=_response_types_map,
|
|
990
|
+
)
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
@validate_call
|
|
994
|
+
def api_v1_persona_kpi_post_without_preload_content(
|
|
995
|
+
self,
|
|
996
|
+
request: Annotated[PersonasPersonaKpiCreateRequest, Field(description="Body")],
|
|
997
|
+
_request_timeout: Union[
|
|
998
|
+
None,
|
|
999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1000
|
+
Tuple[
|
|
1001
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1003
|
+
]
|
|
1004
|
+
] = None,
|
|
1005
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1006
|
+
_content_type: Optional[StrictStr] = None,
|
|
1007
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1008
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1009
|
+
) -> RESTResponseType:
|
|
1010
|
+
"""Create Persona KPIs
|
|
1011
|
+
|
|
1012
|
+
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.
|
|
1013
|
+
|
|
1014
|
+
:param request: Body (required)
|
|
1015
|
+
:type request: PersonasPersonaKpiCreateRequest
|
|
1016
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1017
|
+
number provided, it will be total request
|
|
1018
|
+
timeout. It can also be a pair (tuple) of
|
|
1019
|
+
(connection, read) timeouts.
|
|
1020
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1021
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1022
|
+
request; this effectively ignores the
|
|
1023
|
+
authentication in the spec for a single request.
|
|
1024
|
+
:type _request_auth: dict, optional
|
|
1025
|
+
:param _content_type: force content-type for the request.
|
|
1026
|
+
:type _content_type: str, Optional
|
|
1027
|
+
:param _headers: set to override the headers for a single
|
|
1028
|
+
request; this effectively ignores the headers
|
|
1029
|
+
in the spec for a single request.
|
|
1030
|
+
:type _headers: dict, optional
|
|
1031
|
+
:param _host_index: set to override the host_index for a single
|
|
1032
|
+
request; this effectively ignores the host_index
|
|
1033
|
+
in the spec for a single request.
|
|
1034
|
+
:type _host_index: int, optional
|
|
1035
|
+
:return: Returns the result object.
|
|
1036
|
+
""" # noqa: E501
|
|
1037
|
+
|
|
1038
|
+
_param = self._api_v1_persona_kpi_post_serialize(
|
|
1039
|
+
request=request,
|
|
1040
|
+
_request_auth=_request_auth,
|
|
1041
|
+
_content_type=_content_type,
|
|
1042
|
+
_headers=_headers,
|
|
1043
|
+
_host_index=_host_index
|
|
1044
|
+
)
|
|
1045
|
+
|
|
1046
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1047
|
+
'200': "PersonasPersonaKpiCreateResponse",
|
|
1048
|
+
'400': "PersonasPersonaKpiCreateResponse",
|
|
1049
|
+
'503': "PersonasPersonaKpiCreateResponse",
|
|
1050
|
+
}
|
|
1051
|
+
response_data = self.api_client.call_api(
|
|
1052
|
+
*_param,
|
|
1053
|
+
_request_timeout=_request_timeout
|
|
1054
|
+
)
|
|
1055
|
+
return response_data.response
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
def _api_v1_persona_kpi_post_serialize(
|
|
1059
|
+
self,
|
|
1060
|
+
request,
|
|
1061
|
+
_request_auth,
|
|
1062
|
+
_content_type,
|
|
1063
|
+
_headers,
|
|
1064
|
+
_host_index,
|
|
1065
|
+
) -> RequestSerialized:
|
|
1066
|
+
|
|
1067
|
+
_host = None
|
|
1068
|
+
|
|
1069
|
+
_collection_formats: Dict[str, str] = {
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
_path_params: Dict[str, str] = {}
|
|
1073
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1074
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1075
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1076
|
+
_files: Dict[
|
|
1077
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1078
|
+
] = {}
|
|
1079
|
+
_body_params: Optional[bytes] = None
|
|
1080
|
+
|
|
1081
|
+
# process the path parameters
|
|
1082
|
+
# process the query parameters
|
|
1083
|
+
# process the header parameters
|
|
1084
|
+
# process the form parameters
|
|
1085
|
+
# process the body parameter
|
|
1086
|
+
if request is not None:
|
|
1087
|
+
_body_params = request
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
# set the HTTP header `Accept`
|
|
1091
|
+
if 'Accept' not in _header_params:
|
|
1092
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1093
|
+
[
|
|
1094
|
+
'application/json'
|
|
1095
|
+
]
|
|
1096
|
+
)
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
# authentication setting
|
|
1100
|
+
_auth_settings: List[str] = [
|
|
1101
|
+
'TokenAuth'
|
|
1102
|
+
]
|
|
1103
|
+
|
|
1104
|
+
return self.api_client.param_serialize(
|
|
1105
|
+
method='POST',
|
|
1106
|
+
resource_path='/api/v1/persona/kpi',
|
|
1107
|
+
path_params=_path_params,
|
|
1108
|
+
query_params=_query_params,
|
|
1109
|
+
header_params=_header_params,
|
|
1110
|
+
body=_body_params,
|
|
1111
|
+
post_params=_form_params,
|
|
1112
|
+
files=_files,
|
|
1113
|
+
auth_settings=_auth_settings,
|
|
1114
|
+
collection_formats=_collection_formats,
|
|
1115
|
+
_host=_host,
|
|
1116
|
+
_request_auth=_request_auth
|
|
1117
|
+
)
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
@validate_call
|
|
1123
|
+
def api_v1_persona_match_criteria_post(
|
|
1124
|
+
self,
|
|
1125
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
1126
|
+
_request_timeout: Union[
|
|
1127
|
+
None,
|
|
1128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1129
|
+
Tuple[
|
|
1130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1131
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1132
|
+
]
|
|
1133
|
+
] = None,
|
|
1134
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1135
|
+
_content_type: Optional[StrictStr] = None,
|
|
1136
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1137
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1138
|
+
) -> PersonasPersonaMatchCriteriaResponse:
|
|
1139
|
+
"""Create Persona Match Criteria
|
|
1140
|
+
|
|
1141
|
+
Create Persona Match Criteria
|
|
1142
|
+
|
|
1143
|
+
:param request: Body (required)
|
|
1144
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
1145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1146
|
+
number provided, it will be total request
|
|
1147
|
+
timeout. It can also be a pair (tuple) of
|
|
1148
|
+
(connection, read) timeouts.
|
|
1149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1151
|
+
request; this effectively ignores the
|
|
1152
|
+
authentication in the spec for a single request.
|
|
1153
|
+
:type _request_auth: dict, optional
|
|
1154
|
+
:param _content_type: force content-type for the request.
|
|
1155
|
+
:type _content_type: str, Optional
|
|
1156
|
+
:param _headers: set to override the headers for a single
|
|
1157
|
+
request; this effectively ignores the headers
|
|
1158
|
+
in the spec for a single request.
|
|
1159
|
+
:type _headers: dict, optional
|
|
1160
|
+
:param _host_index: set to override the host_index for a single
|
|
1161
|
+
request; this effectively ignores the host_index
|
|
1162
|
+
in the spec for a single request.
|
|
1163
|
+
:type _host_index: int, optional
|
|
1164
|
+
:return: Returns the result object.
|
|
1165
|
+
""" # noqa: E501
|
|
1166
|
+
|
|
1167
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
1168
|
+
request=request,
|
|
1169
|
+
_request_auth=_request_auth,
|
|
1170
|
+
_content_type=_content_type,
|
|
1171
|
+
_headers=_headers,
|
|
1172
|
+
_host_index=_host_index
|
|
1173
|
+
)
|
|
1174
|
+
|
|
1175
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1176
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1177
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1178
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
1179
|
+
}
|
|
1180
|
+
response_data = self.api_client.call_api(
|
|
1181
|
+
*_param,
|
|
1182
|
+
_request_timeout=_request_timeout
|
|
1183
|
+
)
|
|
1184
|
+
response_data.read()
|
|
1185
|
+
return self.api_client.response_deserialize(
|
|
1186
|
+
response_data=response_data,
|
|
1187
|
+
response_types_map=_response_types_map,
|
|
1188
|
+
).data
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
@validate_call
|
|
1192
|
+
def api_v1_persona_match_criteria_post_with_http_info(
|
|
1193
|
+
self,
|
|
1194
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
1195
|
+
_request_timeout: Union[
|
|
1196
|
+
None,
|
|
1197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1198
|
+
Tuple[
|
|
1199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1200
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1201
|
+
]
|
|
1202
|
+
] = None,
|
|
1203
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1204
|
+
_content_type: Optional[StrictStr] = None,
|
|
1205
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1206
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1207
|
+
) -> ApiResponse[PersonasPersonaMatchCriteriaResponse]:
|
|
1208
|
+
"""Create Persona Match Criteria
|
|
1209
|
+
|
|
1210
|
+
Create Persona Match Criteria
|
|
1211
|
+
|
|
1212
|
+
:param request: Body (required)
|
|
1213
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
1214
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1215
|
+
number provided, it will be total request
|
|
1216
|
+
timeout. It can also be a pair (tuple) of
|
|
1217
|
+
(connection, read) timeouts.
|
|
1218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1220
|
+
request; this effectively ignores the
|
|
1221
|
+
authentication in the spec for a single request.
|
|
1222
|
+
:type _request_auth: dict, optional
|
|
1223
|
+
:param _content_type: force content-type for the request.
|
|
1224
|
+
:type _content_type: str, Optional
|
|
1225
|
+
:param _headers: set to override the headers for a single
|
|
1226
|
+
request; this effectively ignores the headers
|
|
1227
|
+
in the spec for a single request.
|
|
1228
|
+
:type _headers: dict, optional
|
|
1229
|
+
:param _host_index: set to override the host_index for a single
|
|
1230
|
+
request; this effectively ignores the host_index
|
|
1231
|
+
in the spec for a single request.
|
|
1232
|
+
:type _host_index: int, optional
|
|
1233
|
+
:return: Returns the result object.
|
|
1234
|
+
""" # noqa: E501
|
|
1235
|
+
|
|
1236
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
1237
|
+
request=request,
|
|
1238
|
+
_request_auth=_request_auth,
|
|
1239
|
+
_content_type=_content_type,
|
|
1240
|
+
_headers=_headers,
|
|
1241
|
+
_host_index=_host_index
|
|
1242
|
+
)
|
|
1243
|
+
|
|
1244
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1245
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1246
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1247
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
1248
|
+
}
|
|
1249
|
+
response_data = self.api_client.call_api(
|
|
1250
|
+
*_param,
|
|
1251
|
+
_request_timeout=_request_timeout
|
|
1252
|
+
)
|
|
1253
|
+
response_data.read()
|
|
1254
|
+
return self.api_client.response_deserialize(
|
|
1255
|
+
response_data=response_data,
|
|
1256
|
+
response_types_map=_response_types_map,
|
|
1257
|
+
)
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
@validate_call
|
|
1261
|
+
def api_v1_persona_match_criteria_post_without_preload_content(
|
|
1262
|
+
self,
|
|
1263
|
+
request: Annotated[PersonasPersonaMatchCriteriaRequest, Field(description="Body")],
|
|
1264
|
+
_request_timeout: Union[
|
|
1265
|
+
None,
|
|
1266
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1267
|
+
Tuple[
|
|
1268
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1269
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1270
|
+
]
|
|
1271
|
+
] = None,
|
|
1272
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1273
|
+
_content_type: Optional[StrictStr] = None,
|
|
1274
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1275
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1276
|
+
) -> RESTResponseType:
|
|
1277
|
+
"""Create Persona Match Criteria
|
|
1278
|
+
|
|
1279
|
+
Create Persona Match Criteria
|
|
1280
|
+
|
|
1281
|
+
:param request: Body (required)
|
|
1282
|
+
:type request: PersonasPersonaMatchCriteriaRequest
|
|
1283
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1284
|
+
number provided, it will be total request
|
|
1285
|
+
timeout. It can also be a pair (tuple) of
|
|
1286
|
+
(connection, read) timeouts.
|
|
1287
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1288
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1289
|
+
request; this effectively ignores the
|
|
1290
|
+
authentication in the spec for a single request.
|
|
1291
|
+
:type _request_auth: dict, optional
|
|
1292
|
+
:param _content_type: force content-type for the request.
|
|
1293
|
+
:type _content_type: str, Optional
|
|
1294
|
+
:param _headers: set to override the headers for a single
|
|
1295
|
+
request; this effectively ignores the headers
|
|
1296
|
+
in the spec for a single request.
|
|
1297
|
+
:type _headers: dict, optional
|
|
1298
|
+
:param _host_index: set to override the host_index for a single
|
|
1299
|
+
request; this effectively ignores the host_index
|
|
1300
|
+
in the spec for a single request.
|
|
1301
|
+
:type _host_index: int, optional
|
|
1302
|
+
:return: Returns the result object.
|
|
1303
|
+
""" # noqa: E501
|
|
1304
|
+
|
|
1305
|
+
_param = self._api_v1_persona_match_criteria_post_serialize(
|
|
1306
|
+
request=request,
|
|
1307
|
+
_request_auth=_request_auth,
|
|
1308
|
+
_content_type=_content_type,
|
|
1309
|
+
_headers=_headers,
|
|
1310
|
+
_host_index=_host_index
|
|
1311
|
+
)
|
|
1312
|
+
|
|
1313
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1314
|
+
'200': "PersonasPersonaMatchCriteriaResponse",
|
|
1315
|
+
'400': "PersonasPersonaMatchCriteriaResponse",
|
|
1316
|
+
'503': "PersonasPersonaMatchCriteriaResponse",
|
|
1317
|
+
}
|
|
1318
|
+
response_data = self.api_client.call_api(
|
|
1319
|
+
*_param,
|
|
1320
|
+
_request_timeout=_request_timeout
|
|
1321
|
+
)
|
|
1322
|
+
return response_data.response
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
def _api_v1_persona_match_criteria_post_serialize(
|
|
1326
|
+
self,
|
|
1327
|
+
request,
|
|
1328
|
+
_request_auth,
|
|
1329
|
+
_content_type,
|
|
1330
|
+
_headers,
|
|
1331
|
+
_host_index,
|
|
1332
|
+
) -> RequestSerialized:
|
|
1333
|
+
|
|
1334
|
+
_host = None
|
|
1335
|
+
|
|
1336
|
+
_collection_formats: Dict[str, str] = {
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
_path_params: Dict[str, str] = {}
|
|
1340
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1341
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1342
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1343
|
+
_files: Dict[
|
|
1344
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1345
|
+
] = {}
|
|
1346
|
+
_body_params: Optional[bytes] = None
|
|
1347
|
+
|
|
1348
|
+
# process the path parameters
|
|
1349
|
+
# process the query parameters
|
|
1350
|
+
# process the header parameters
|
|
1351
|
+
# process the form parameters
|
|
1352
|
+
# process the body parameter
|
|
1353
|
+
if request is not None:
|
|
1354
|
+
_body_params = request
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
# set the HTTP header `Accept`
|
|
1358
|
+
if 'Accept' not in _header_params:
|
|
1359
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1360
|
+
[
|
|
1361
|
+
'application/json'
|
|
1362
|
+
]
|
|
1363
|
+
)
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
# authentication setting
|
|
1367
|
+
_auth_settings: List[str] = [
|
|
1368
|
+
'TokenAuth'
|
|
1369
|
+
]
|
|
1370
|
+
|
|
1371
|
+
return self.api_client.param_serialize(
|
|
1372
|
+
method='POST',
|
|
1373
|
+
resource_path='/api/v1/persona/match_criteria',
|
|
1374
|
+
path_params=_path_params,
|
|
1375
|
+
query_params=_query_params,
|
|
1376
|
+
header_params=_header_params,
|
|
1377
|
+
body=_body_params,
|
|
1378
|
+
post_params=_form_params,
|
|
1379
|
+
files=_files,
|
|
1380
|
+
auth_settings=_auth_settings,
|
|
1381
|
+
collection_formats=_collection_formats,
|
|
1382
|
+
_host=_host,
|
|
1383
|
+
_request_auth=_request_auth
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
@validate_call
|
|
1390
|
+
def api_v1_persona_personality_trait_post(
|
|
1391
|
+
self,
|
|
1392
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
1393
|
+
_request_timeout: Union[
|
|
1394
|
+
None,
|
|
1395
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1396
|
+
Tuple[
|
|
1397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1398
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1399
|
+
]
|
|
1400
|
+
] = None,
|
|
1401
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1402
|
+
_content_type: Optional[StrictStr] = None,
|
|
1403
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1405
|
+
) -> PersonasPersonaTraitCreateResponse:
|
|
1406
|
+
"""Create a Persona Traits
|
|
1407
|
+
|
|
1408
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
1409
|
+
|
|
1410
|
+
:param request: Body (required)
|
|
1411
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
1412
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1413
|
+
number provided, it will be total request
|
|
1414
|
+
timeout. It can also be a pair (tuple) of
|
|
1415
|
+
(connection, read) timeouts.
|
|
1416
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1417
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1418
|
+
request; this effectively ignores the
|
|
1419
|
+
authentication in the spec for a single request.
|
|
1420
|
+
:type _request_auth: dict, optional
|
|
1421
|
+
:param _content_type: force content-type for the request.
|
|
1422
|
+
:type _content_type: str, Optional
|
|
1423
|
+
:param _headers: set to override the headers for a single
|
|
1424
|
+
request; this effectively ignores the headers
|
|
1425
|
+
in the spec for a single request.
|
|
1426
|
+
:type _headers: dict, optional
|
|
1427
|
+
:param _host_index: set to override the host_index for a single
|
|
1428
|
+
request; this effectively ignores the host_index
|
|
1429
|
+
in the spec for a single request.
|
|
1430
|
+
:type _host_index: int, optional
|
|
1431
|
+
:return: Returns the result object.
|
|
1432
|
+
""" # noqa: E501
|
|
1433
|
+
|
|
1434
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
1435
|
+
request=request,
|
|
1436
|
+
_request_auth=_request_auth,
|
|
1437
|
+
_content_type=_content_type,
|
|
1438
|
+
_headers=_headers,
|
|
1439
|
+
_host_index=_host_index
|
|
1440
|
+
)
|
|
1441
|
+
|
|
1442
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1443
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
1444
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
1445
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
1446
|
+
}
|
|
1447
|
+
response_data = self.api_client.call_api(
|
|
1448
|
+
*_param,
|
|
1449
|
+
_request_timeout=_request_timeout
|
|
1450
|
+
)
|
|
1451
|
+
response_data.read()
|
|
1452
|
+
return self.api_client.response_deserialize(
|
|
1453
|
+
response_data=response_data,
|
|
1454
|
+
response_types_map=_response_types_map,
|
|
1455
|
+
).data
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
@validate_call
|
|
1459
|
+
def api_v1_persona_personality_trait_post_with_http_info(
|
|
1460
|
+
self,
|
|
1461
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
1462
|
+
_request_timeout: Union[
|
|
1463
|
+
None,
|
|
1464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1465
|
+
Tuple[
|
|
1466
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1467
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1468
|
+
]
|
|
1469
|
+
] = None,
|
|
1470
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1471
|
+
_content_type: Optional[StrictStr] = None,
|
|
1472
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1473
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1474
|
+
) -> ApiResponse[PersonasPersonaTraitCreateResponse]:
|
|
1475
|
+
"""Create a Persona Traits
|
|
1476
|
+
|
|
1477
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
1478
|
+
|
|
1479
|
+
:param request: Body (required)
|
|
1480
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
1481
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1482
|
+
number provided, it will be total request
|
|
1483
|
+
timeout. It can also be a pair (tuple) of
|
|
1484
|
+
(connection, read) timeouts.
|
|
1485
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1486
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1487
|
+
request; this effectively ignores the
|
|
1488
|
+
authentication in the spec for a single request.
|
|
1489
|
+
:type _request_auth: dict, optional
|
|
1490
|
+
:param _content_type: force content-type for the request.
|
|
1491
|
+
:type _content_type: str, Optional
|
|
1492
|
+
:param _headers: set to override the headers for a single
|
|
1493
|
+
request; this effectively ignores the headers
|
|
1494
|
+
in the spec for a single request.
|
|
1495
|
+
:type _headers: dict, optional
|
|
1496
|
+
:param _host_index: set to override the host_index for a single
|
|
1497
|
+
request; this effectively ignores the host_index
|
|
1498
|
+
in the spec for a single request.
|
|
1499
|
+
:type _host_index: int, optional
|
|
1500
|
+
:return: Returns the result object.
|
|
1501
|
+
""" # noqa: E501
|
|
1502
|
+
|
|
1503
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
1504
|
+
request=request,
|
|
1505
|
+
_request_auth=_request_auth,
|
|
1506
|
+
_content_type=_content_type,
|
|
1507
|
+
_headers=_headers,
|
|
1508
|
+
_host_index=_host_index
|
|
1509
|
+
)
|
|
1510
|
+
|
|
1511
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1512
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
1513
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
1514
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
1515
|
+
}
|
|
1516
|
+
response_data = self.api_client.call_api(
|
|
1517
|
+
*_param,
|
|
1518
|
+
_request_timeout=_request_timeout
|
|
1519
|
+
)
|
|
1520
|
+
response_data.read()
|
|
1521
|
+
return self.api_client.response_deserialize(
|
|
1522
|
+
response_data=response_data,
|
|
1523
|
+
response_types_map=_response_types_map,
|
|
1524
|
+
)
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
@validate_call
|
|
1528
|
+
def api_v1_persona_personality_trait_post_without_preload_content(
|
|
1529
|
+
self,
|
|
1530
|
+
request: Annotated[PersonasPersonaTraitCreateRequest, Field(description="Body")],
|
|
1531
|
+
_request_timeout: Union[
|
|
1532
|
+
None,
|
|
1533
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1534
|
+
Tuple[
|
|
1535
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1536
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1537
|
+
]
|
|
1538
|
+
] = None,
|
|
1539
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1540
|
+
_content_type: Optional[StrictStr] = None,
|
|
1541
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1542
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1543
|
+
) -> RESTResponseType:
|
|
1544
|
+
"""Create a Persona Traits
|
|
1545
|
+
|
|
1546
|
+
Many Persona Traits can be assigned to a Persona Instance
|
|
1547
|
+
|
|
1548
|
+
:param request: Body (required)
|
|
1549
|
+
:type request: PersonasPersonaTraitCreateRequest
|
|
1550
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1551
|
+
number provided, it will be total request
|
|
1552
|
+
timeout. It can also be a pair (tuple) of
|
|
1553
|
+
(connection, read) timeouts.
|
|
1554
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1555
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1556
|
+
request; this effectively ignores the
|
|
1557
|
+
authentication in the spec for a single request.
|
|
1558
|
+
:type _request_auth: dict, optional
|
|
1559
|
+
:param _content_type: force content-type for the request.
|
|
1560
|
+
:type _content_type: str, Optional
|
|
1561
|
+
:param _headers: set to override the headers for a single
|
|
1562
|
+
request; this effectively ignores the headers
|
|
1563
|
+
in the spec for a single request.
|
|
1564
|
+
:type _headers: dict, optional
|
|
1565
|
+
:param _host_index: set to override the host_index for a single
|
|
1566
|
+
request; this effectively ignores the host_index
|
|
1567
|
+
in the spec for a single request.
|
|
1568
|
+
:type _host_index: int, optional
|
|
1569
|
+
:return: Returns the result object.
|
|
1570
|
+
""" # noqa: E501
|
|
1571
|
+
|
|
1572
|
+
_param = self._api_v1_persona_personality_trait_post_serialize(
|
|
1573
|
+
request=request,
|
|
1574
|
+
_request_auth=_request_auth,
|
|
1575
|
+
_content_type=_content_type,
|
|
1576
|
+
_headers=_headers,
|
|
1577
|
+
_host_index=_host_index
|
|
1578
|
+
)
|
|
1579
|
+
|
|
1580
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1581
|
+
'200': "PersonasPersonaTraitCreateResponse",
|
|
1582
|
+
'400': "PersonasPersonaTraitCreateResponse",
|
|
1583
|
+
'503': "PersonasPersonaTraitCreateResponse",
|
|
1584
|
+
}
|
|
1585
|
+
response_data = self.api_client.call_api(
|
|
1586
|
+
*_param,
|
|
1587
|
+
_request_timeout=_request_timeout
|
|
1588
|
+
)
|
|
1589
|
+
return response_data.response
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
def _api_v1_persona_personality_trait_post_serialize(
|
|
1593
|
+
self,
|
|
1594
|
+
request,
|
|
1595
|
+
_request_auth,
|
|
1596
|
+
_content_type,
|
|
1597
|
+
_headers,
|
|
1598
|
+
_host_index,
|
|
1599
|
+
) -> RequestSerialized:
|
|
1600
|
+
|
|
1601
|
+
_host = None
|
|
1602
|
+
|
|
1603
|
+
_collection_formats: Dict[str, str] = {
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
_path_params: Dict[str, str] = {}
|
|
1607
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1608
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1609
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1610
|
+
_files: Dict[
|
|
1611
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1612
|
+
] = {}
|
|
1613
|
+
_body_params: Optional[bytes] = None
|
|
1614
|
+
|
|
1615
|
+
# process the path parameters
|
|
1616
|
+
# process the query parameters
|
|
1617
|
+
# process the header parameters
|
|
1618
|
+
# process the form parameters
|
|
1619
|
+
# process the body parameter
|
|
1620
|
+
if request is not None:
|
|
1621
|
+
_body_params = request
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
# set the HTTP header `Accept`
|
|
1625
|
+
if 'Accept' not in _header_params:
|
|
1626
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1627
|
+
[
|
|
1628
|
+
'application/json'
|
|
1629
|
+
]
|
|
1630
|
+
)
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
# authentication setting
|
|
1634
|
+
_auth_settings: List[str] = [
|
|
1635
|
+
'TokenAuth'
|
|
1636
|
+
]
|
|
1637
|
+
|
|
1638
|
+
return self.api_client.param_serialize(
|
|
1639
|
+
method='POST',
|
|
1640
|
+
resource_path='/api/v1/persona/personality-trait',
|
|
1641
|
+
path_params=_path_params,
|
|
1642
|
+
query_params=_query_params,
|
|
1643
|
+
header_params=_header_params,
|
|
1644
|
+
body=_body_params,
|
|
1645
|
+
post_params=_form_params,
|
|
1646
|
+
files=_files,
|
|
1647
|
+
auth_settings=_auth_settings,
|
|
1648
|
+
collection_formats=_collection_formats,
|
|
1649
|
+
_host=_host,
|
|
1650
|
+
_request_auth=_request_auth
|
|
1651
|
+
)
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
@validate_call
|
|
1657
|
+
def api_v1_persona_seed_post(
|
|
1658
|
+
self,
|
|
1659
|
+
request: Annotated[PersonasPersonaSeedCreateRequest, Field(description="Body")],
|
|
1660
|
+
_request_timeout: Union[
|
|
1661
|
+
None,
|
|
1662
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1663
|
+
Tuple[
|
|
1664
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1665
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1666
|
+
]
|
|
1667
|
+
] = None,
|
|
1668
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1669
|
+
_content_type: Optional[StrictStr] = None,
|
|
1670
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1671
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1672
|
+
) -> PersonasPersonaSeedCreateResponse:
|
|
1673
|
+
"""Create a Persona Seed
|
|
1674
|
+
|
|
1675
|
+
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.
|
|
1676
|
+
|
|
1677
|
+
:param request: Body (required)
|
|
1678
|
+
:type request: PersonasPersonaSeedCreateRequest
|
|
1679
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1680
|
+
number provided, it will be total request
|
|
1681
|
+
timeout. It can also be a pair (tuple) of
|
|
1682
|
+
(connection, read) timeouts.
|
|
1683
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1684
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1685
|
+
request; this effectively ignores the
|
|
1686
|
+
authentication in the spec for a single request.
|
|
1687
|
+
:type _request_auth: dict, optional
|
|
1688
|
+
:param _content_type: force content-type for the request.
|
|
1689
|
+
:type _content_type: str, Optional
|
|
1690
|
+
:param _headers: set to override the headers for a single
|
|
1691
|
+
request; this effectively ignores the headers
|
|
1692
|
+
in the spec for a single request.
|
|
1693
|
+
:type _headers: dict, optional
|
|
1694
|
+
:param _host_index: set to override the host_index for a single
|
|
1695
|
+
request; this effectively ignores the host_index
|
|
1696
|
+
in the spec for a single request.
|
|
1697
|
+
:type _host_index: int, optional
|
|
1698
|
+
:return: Returns the result object.
|
|
1699
|
+
""" # noqa: E501
|
|
1700
|
+
|
|
1701
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
1702
|
+
request=request,
|
|
1703
|
+
_request_auth=_request_auth,
|
|
1704
|
+
_content_type=_content_type,
|
|
1705
|
+
_headers=_headers,
|
|
1706
|
+
_host_index=_host_index
|
|
1707
|
+
)
|
|
1708
|
+
|
|
1709
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1710
|
+
'200': "PersonasPersonaSeedCreateResponse",
|
|
1711
|
+
'400': "PersonasPersonaSeedCreateResponse",
|
|
1712
|
+
'503': "PersonasPersonaSeedCreateResponse",
|
|
1713
|
+
}
|
|
1714
|
+
response_data = self.api_client.call_api(
|
|
1715
|
+
*_param,
|
|
1716
|
+
_request_timeout=_request_timeout
|
|
1717
|
+
)
|
|
1718
|
+
response_data.read()
|
|
1719
|
+
return self.api_client.response_deserialize(
|
|
1720
|
+
response_data=response_data,
|
|
1721
|
+
response_types_map=_response_types_map,
|
|
1722
|
+
).data
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
@validate_call
|
|
1726
|
+
def api_v1_persona_seed_post_with_http_info(
|
|
1727
|
+
self,
|
|
1728
|
+
request: Annotated[PersonasPersonaSeedCreateRequest, Field(description="Body")],
|
|
1729
|
+
_request_timeout: Union[
|
|
1730
|
+
None,
|
|
1731
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1732
|
+
Tuple[
|
|
1733
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1734
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1735
|
+
]
|
|
1736
|
+
] = None,
|
|
1737
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1738
|
+
_content_type: Optional[StrictStr] = None,
|
|
1739
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1740
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1741
|
+
) -> ApiResponse[PersonasPersonaSeedCreateResponse]:
|
|
1742
|
+
"""Create a Persona Seed
|
|
1743
|
+
|
|
1744
|
+
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.
|
|
1745
|
+
|
|
1746
|
+
:param request: Body (required)
|
|
1747
|
+
:type request: PersonasPersonaSeedCreateRequest
|
|
1748
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1749
|
+
number provided, it will be total request
|
|
1750
|
+
timeout. It can also be a pair (tuple) of
|
|
1751
|
+
(connection, read) timeouts.
|
|
1752
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1753
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1754
|
+
request; this effectively ignores the
|
|
1755
|
+
authentication in the spec for a single request.
|
|
1756
|
+
:type _request_auth: dict, optional
|
|
1757
|
+
:param _content_type: force content-type for the request.
|
|
1758
|
+
:type _content_type: str, Optional
|
|
1759
|
+
:param _headers: set to override the headers for a single
|
|
1760
|
+
request; this effectively ignores the headers
|
|
1761
|
+
in the spec for a single request.
|
|
1762
|
+
:type _headers: dict, optional
|
|
1763
|
+
:param _host_index: set to override the host_index for a single
|
|
1764
|
+
request; this effectively ignores the host_index
|
|
1765
|
+
in the spec for a single request.
|
|
1766
|
+
:type _host_index: int, optional
|
|
1767
|
+
:return: Returns the result object.
|
|
1768
|
+
""" # noqa: E501
|
|
1769
|
+
|
|
1770
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
1771
|
+
request=request,
|
|
1772
|
+
_request_auth=_request_auth,
|
|
1773
|
+
_content_type=_content_type,
|
|
1774
|
+
_headers=_headers,
|
|
1775
|
+
_host_index=_host_index
|
|
1776
|
+
)
|
|
1777
|
+
|
|
1778
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1779
|
+
'200': "PersonasPersonaSeedCreateResponse",
|
|
1780
|
+
'400': "PersonasPersonaSeedCreateResponse",
|
|
1781
|
+
'503': "PersonasPersonaSeedCreateResponse",
|
|
1782
|
+
}
|
|
1783
|
+
response_data = self.api_client.call_api(
|
|
1784
|
+
*_param,
|
|
1785
|
+
_request_timeout=_request_timeout
|
|
1786
|
+
)
|
|
1787
|
+
response_data.read()
|
|
1788
|
+
return self.api_client.response_deserialize(
|
|
1789
|
+
response_data=response_data,
|
|
1790
|
+
response_types_map=_response_types_map,
|
|
1791
|
+
)
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
@validate_call
|
|
1795
|
+
def api_v1_persona_seed_post_without_preload_content(
|
|
1796
|
+
self,
|
|
1797
|
+
request: Annotated[PersonasPersonaSeedCreateRequest, Field(description="Body")],
|
|
1798
|
+
_request_timeout: Union[
|
|
1799
|
+
None,
|
|
1800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1801
|
+
Tuple[
|
|
1802
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1803
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1804
|
+
]
|
|
1805
|
+
] = None,
|
|
1806
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1807
|
+
_content_type: Optional[StrictStr] = None,
|
|
1808
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1809
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1810
|
+
) -> RESTResponseType:
|
|
1811
|
+
"""Create a Persona Seed
|
|
1812
|
+
|
|
1813
|
+
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.
|
|
1814
|
+
|
|
1815
|
+
:param request: Body (required)
|
|
1816
|
+
:type request: PersonasPersonaSeedCreateRequest
|
|
1817
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1818
|
+
number provided, it will be total request
|
|
1819
|
+
timeout. It can also be a pair (tuple) of
|
|
1820
|
+
(connection, read) timeouts.
|
|
1821
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1822
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1823
|
+
request; this effectively ignores the
|
|
1824
|
+
authentication in the spec for a single request.
|
|
1825
|
+
:type _request_auth: dict, optional
|
|
1826
|
+
:param _content_type: force content-type for the request.
|
|
1827
|
+
:type _content_type: str, Optional
|
|
1828
|
+
:param _headers: set to override the headers for a single
|
|
1829
|
+
request; this effectively ignores the headers
|
|
1830
|
+
in the spec for a single request.
|
|
1831
|
+
:type _headers: dict, optional
|
|
1832
|
+
:param _host_index: set to override the host_index for a single
|
|
1833
|
+
request; this effectively ignores the host_index
|
|
1834
|
+
in the spec for a single request.
|
|
1835
|
+
:type _host_index: int, optional
|
|
1836
|
+
:return: Returns the result object.
|
|
1837
|
+
""" # noqa: E501
|
|
1838
|
+
|
|
1839
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
1840
|
+
request=request,
|
|
1841
|
+
_request_auth=_request_auth,
|
|
1842
|
+
_content_type=_content_type,
|
|
1843
|
+
_headers=_headers,
|
|
1844
|
+
_host_index=_host_index
|
|
1845
|
+
)
|
|
1846
|
+
|
|
1847
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1848
|
+
'200': "PersonasPersonaSeedCreateResponse",
|
|
1849
|
+
'400': "PersonasPersonaSeedCreateResponse",
|
|
1850
|
+
'503': "PersonasPersonaSeedCreateResponse",
|
|
1851
|
+
}
|
|
1852
|
+
response_data = self.api_client.call_api(
|
|
1853
|
+
*_param,
|
|
1854
|
+
_request_timeout=_request_timeout
|
|
1855
|
+
)
|
|
1856
|
+
return response_data.response
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
def _api_v1_persona_seed_post_serialize(
|
|
1860
|
+
self,
|
|
1861
|
+
request,
|
|
1862
|
+
_request_auth,
|
|
1863
|
+
_content_type,
|
|
1864
|
+
_headers,
|
|
1865
|
+
_host_index,
|
|
1866
|
+
) -> RequestSerialized:
|
|
1867
|
+
|
|
1868
|
+
_host = None
|
|
1869
|
+
|
|
1870
|
+
_collection_formats: Dict[str, str] = {
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
_path_params: Dict[str, str] = {}
|
|
1874
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1875
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1876
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1877
|
+
_files: Dict[
|
|
1878
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1879
|
+
] = {}
|
|
1880
|
+
_body_params: Optional[bytes] = None
|
|
1881
|
+
|
|
1882
|
+
# process the path parameters
|
|
1883
|
+
# process the query parameters
|
|
1884
|
+
# process the header parameters
|
|
1885
|
+
# process the form parameters
|
|
1886
|
+
# process the body parameter
|
|
1887
|
+
if request is not None:
|
|
1888
|
+
_body_params = request
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
# set the HTTP header `Accept`
|
|
1892
|
+
if 'Accept' not in _header_params:
|
|
1893
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1894
|
+
[
|
|
1895
|
+
'application/json'
|
|
1896
|
+
]
|
|
1897
|
+
)
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
# authentication setting
|
|
1901
|
+
_auth_settings: List[str] = [
|
|
1902
|
+
'TokenAuth'
|
|
1903
|
+
]
|
|
1904
|
+
|
|
1905
|
+
return self.api_client.param_serialize(
|
|
1906
|
+
method='POST',
|
|
1907
|
+
resource_path='/api/v1/persona/seed',
|
|
1908
|
+
path_params=_path_params,
|
|
1909
|
+
query_params=_query_params,
|
|
1910
|
+
header_params=_header_params,
|
|
1911
|
+
body=_body_params,
|
|
1912
|
+
post_params=_form_params,
|
|
1913
|
+
files=_files,
|
|
1914
|
+
auth_settings=_auth_settings,
|
|
1915
|
+
collection_formats=_collection_formats,
|
|
1916
|
+
_host=_host,
|
|
1917
|
+
_request_auth=_request_auth
|
|
1918
|
+
)
|
|
1919
|
+
|
|
1920
|
+
|