asteroid-odyssey 1.0.3__py3-none-any.whl → 1.2.0__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.
- asteroid_odyssey/__init__.py +10 -2
- asteroid_odyssey/agents_v1_gen/__init__.py +87 -0
- asteroid_odyssey/agents_v1_gen/api/__init__.py +7 -0
- asteroid_odyssey/agents_v1_gen/api/agent_profile_api.py +1696 -0
- asteroid_odyssey/{openapi_client → agents_v1_gen}/api/api_api.py +4 -4
- asteroid_odyssey/{openapi_client/api/sdk_api.py → agents_v1_gen/api/execution_api.py} +314 -14
- asteroid_odyssey/{openapi_client → agents_v1_gen}/api_client.py +6 -6
- asteroid_odyssey/{openapi_client → agents_v1_gen}/configuration.py +2 -2
- asteroid_odyssey/agents_v1_gen/models/__init__.py +34 -0
- asteroid_odyssey/agents_v1_gen/models/agent_profile.py +118 -0
- asteroid_odyssey/agents_v1_gen/models/country_code.py +44 -0
- asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +112 -0
- asteroid_odyssey/agents_v1_gen/models/credential.py +95 -0
- asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +87 -0
- asteroid_odyssey/{openapi_client → agents_v1_gen}/models/execution_result_response.py +2 -2
- asteroid_odyssey/{openapi_client → agents_v1_gen}/models/execution_status_response.py +1 -1
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py +37 -0
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +112 -0
- asteroid_odyssey/{openapi_client → agents_v1_gen}/rest.py +1 -1
- asteroid_odyssey/agents_v2_gen/__init__.py +99 -0
- asteroid_odyssey/agents_v2_gen/api/__init__.py +5 -0
- asteroid_odyssey/agents_v2_gen/api/execution_api.py +625 -0
- asteroid_odyssey/agents_v2_gen/api_client.py +801 -0
- asteroid_odyssey/agents_v2_gen/api_response.py +21 -0
- asteroid_odyssey/agents_v2_gen/configuration.py +612 -0
- asteroid_odyssey/agents_v2_gen/exceptions.py +216 -0
- asteroid_odyssey/agents_v2_gen/models/__init__.py +42 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_completed.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_failed.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_started.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_generic.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_started.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_terminal.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/error.py +89 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_action_completed_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_action_failed_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_action_started_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_generic_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_payload_union.py +252 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_status_changed_payload.py +88 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_step_completed_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_step_started_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_transitioned_node_payload.py +89 -0
- asteroid_odyssey/agents_v2_gen/models/execution_activity_user_message_received_payload.py +89 -0
- asteroid_odyssey/agents_v2_gen/models/execution_status.py +43 -0
- asteroid_odyssey/agents_v2_gen/models/execution_terminal_payload.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/execution_user_messages_add_text_body.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/versions.py +37 -0
- asteroid_odyssey/agents_v2_gen/py.typed +0 -0
- asteroid_odyssey/agents_v2_gen/rest.py +258 -0
- asteroid_odyssey/client.py +640 -131
- {asteroid_odyssey-1.0.3.dist-info → asteroid_odyssey-1.2.0.dist-info}/METADATA +2 -1
- asteroid_odyssey-1.2.0.dist-info/RECORD +72 -0
- asteroid_odyssey/openapi_client/__init__.py +0 -73
- asteroid_odyssey/openapi_client/api/__init__.py +0 -7
- asteroid_odyssey/openapi_client/api/execution_api.py +0 -335
- asteroid_odyssey/openapi_client/models/__init__.py +0 -27
- asteroid_odyssey-1.0.3.dist-info/RECORD +0 -29
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/api_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/exceptions.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/browser_session_recording_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/error_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/execution_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/execution_result.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/health_check200_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/health_check500_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/status.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/structured_agent_execution_request.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/models/upload_execution_files200_response.py +0 -0
- /asteroid_odyssey/{openapi_client → agents_v1_gen}/py.typed +0 -0
- {asteroid_odyssey-1.0.3.dist-info → asteroid_odyssey-1.2.0.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.0.3.dist-info → asteroid_odyssey-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1696 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Asteroid Agents API
|
|
5
|
+
|
|
6
|
+
Version 1 of the Asteroid Agents API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1.0.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, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from asteroid_odyssey.agents_v1_gen.models.agent_profile import AgentProfile
|
|
23
|
+
from asteroid_odyssey.agents_v1_gen.models.create_agent_profile_request import CreateAgentProfileRequest
|
|
24
|
+
from asteroid_odyssey.agents_v1_gen.models.delete_agent_profile200_response import DeleteAgentProfile200Response
|
|
25
|
+
from asteroid_odyssey.agents_v1_gen.models.update_agent_profile_request import UpdateAgentProfileRequest
|
|
26
|
+
|
|
27
|
+
from asteroid_odyssey.agents_v1_gen.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from asteroid_odyssey.agents_v1_gen.api_response import ApiResponse
|
|
29
|
+
from asteroid_odyssey.agents_v1_gen.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AgentProfileApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def create_agent_profile(
|
|
47
|
+
self,
|
|
48
|
+
create_agent_profile_request: CreateAgentProfileRequest,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> AgentProfile:
|
|
62
|
+
"""Create an agent profile
|
|
63
|
+
|
|
64
|
+
Creates a new agent profile for the organization
|
|
65
|
+
|
|
66
|
+
:param create_agent_profile_request: (required)
|
|
67
|
+
:type create_agent_profile_request: CreateAgentProfileRequest
|
|
68
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
+
number provided, it will be total request
|
|
70
|
+
timeout. It can also be a pair (tuple) of
|
|
71
|
+
(connection, read) timeouts.
|
|
72
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
+
request; this effectively ignores the
|
|
75
|
+
authentication in the spec for a single request.
|
|
76
|
+
:type _request_auth: dict, optional
|
|
77
|
+
:param _content_type: force content-type for the request.
|
|
78
|
+
:type _content_type: str, Optional
|
|
79
|
+
:param _headers: set to override the headers for a single
|
|
80
|
+
request; this effectively ignores the headers
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _headers: dict, optional
|
|
83
|
+
:param _host_index: set to override the host_index for a single
|
|
84
|
+
request; this effectively ignores the host_index
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _host_index: int, optional
|
|
87
|
+
:return: Returns the result object.
|
|
88
|
+
""" # noqa: E501
|
|
89
|
+
|
|
90
|
+
_param = self._create_agent_profile_serialize(
|
|
91
|
+
create_agent_profile_request=create_agent_profile_request,
|
|
92
|
+
_request_auth=_request_auth,
|
|
93
|
+
_content_type=_content_type,
|
|
94
|
+
_headers=_headers,
|
|
95
|
+
_host_index=_host_index
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
99
|
+
'201': "AgentProfile",
|
|
100
|
+
'400': "ErrorResponse",
|
|
101
|
+
'401': "ErrorResponse",
|
|
102
|
+
'403': "ErrorResponse",
|
|
103
|
+
'500': "ErrorResponse",
|
|
104
|
+
}
|
|
105
|
+
response_data = self.api_client.call_api(
|
|
106
|
+
*_param,
|
|
107
|
+
_request_timeout=_request_timeout
|
|
108
|
+
)
|
|
109
|
+
response_data.read()
|
|
110
|
+
return self.api_client.response_deserialize(
|
|
111
|
+
response_data=response_data,
|
|
112
|
+
response_types_map=_response_types_map,
|
|
113
|
+
).data
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@validate_call
|
|
117
|
+
def create_agent_profile_with_http_info(
|
|
118
|
+
self,
|
|
119
|
+
create_agent_profile_request: CreateAgentProfileRequest,
|
|
120
|
+
_request_timeout: Union[
|
|
121
|
+
None,
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
127
|
+
] = None,
|
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
+
) -> ApiResponse[AgentProfile]:
|
|
133
|
+
"""Create an agent profile
|
|
134
|
+
|
|
135
|
+
Creates a new agent profile for the organization
|
|
136
|
+
|
|
137
|
+
:param create_agent_profile_request: (required)
|
|
138
|
+
:type create_agent_profile_request: CreateAgentProfileRequest
|
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
140
|
+
number provided, it will be total request
|
|
141
|
+
timeout. It can also be a pair (tuple) of
|
|
142
|
+
(connection, read) timeouts.
|
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the
|
|
146
|
+
authentication in the spec for a single request.
|
|
147
|
+
:type _request_auth: dict, optional
|
|
148
|
+
:param _content_type: force content-type for the request.
|
|
149
|
+
:type _content_type: str, Optional
|
|
150
|
+
:param _headers: set to override the headers for a single
|
|
151
|
+
request; this effectively ignores the headers
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _headers: dict, optional
|
|
154
|
+
:param _host_index: set to override the host_index for a single
|
|
155
|
+
request; this effectively ignores the host_index
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _host_index: int, optional
|
|
158
|
+
:return: Returns the result object.
|
|
159
|
+
""" # noqa: E501
|
|
160
|
+
|
|
161
|
+
_param = self._create_agent_profile_serialize(
|
|
162
|
+
create_agent_profile_request=create_agent_profile_request,
|
|
163
|
+
_request_auth=_request_auth,
|
|
164
|
+
_content_type=_content_type,
|
|
165
|
+
_headers=_headers,
|
|
166
|
+
_host_index=_host_index
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
+
'201': "AgentProfile",
|
|
171
|
+
'400': "ErrorResponse",
|
|
172
|
+
'401': "ErrorResponse",
|
|
173
|
+
'403': "ErrorResponse",
|
|
174
|
+
'500': "ErrorResponse",
|
|
175
|
+
}
|
|
176
|
+
response_data = self.api_client.call_api(
|
|
177
|
+
*_param,
|
|
178
|
+
_request_timeout=_request_timeout
|
|
179
|
+
)
|
|
180
|
+
response_data.read()
|
|
181
|
+
return self.api_client.response_deserialize(
|
|
182
|
+
response_data=response_data,
|
|
183
|
+
response_types_map=_response_types_map,
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
@validate_call
|
|
188
|
+
def create_agent_profile_without_preload_content(
|
|
189
|
+
self,
|
|
190
|
+
create_agent_profile_request: CreateAgentProfileRequest,
|
|
191
|
+
_request_timeout: Union[
|
|
192
|
+
None,
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
194
|
+
Tuple[
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
197
|
+
]
|
|
198
|
+
] = None,
|
|
199
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
200
|
+
_content_type: Optional[StrictStr] = None,
|
|
201
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
203
|
+
) -> RESTResponseType:
|
|
204
|
+
"""Create an agent profile
|
|
205
|
+
|
|
206
|
+
Creates a new agent profile for the organization
|
|
207
|
+
|
|
208
|
+
:param create_agent_profile_request: (required)
|
|
209
|
+
:type create_agent_profile_request: CreateAgentProfileRequest
|
|
210
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
211
|
+
number provided, it will be total request
|
|
212
|
+
timeout. It can also be a pair (tuple) of
|
|
213
|
+
(connection, read) timeouts.
|
|
214
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
215
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
216
|
+
request; this effectively ignores the
|
|
217
|
+
authentication in the spec for a single request.
|
|
218
|
+
:type _request_auth: dict, optional
|
|
219
|
+
:param _content_type: force content-type for the request.
|
|
220
|
+
:type _content_type: str, Optional
|
|
221
|
+
:param _headers: set to override the headers for a single
|
|
222
|
+
request; this effectively ignores the headers
|
|
223
|
+
in the spec for a single request.
|
|
224
|
+
:type _headers: dict, optional
|
|
225
|
+
:param _host_index: set to override the host_index for a single
|
|
226
|
+
request; this effectively ignores the host_index
|
|
227
|
+
in the spec for a single request.
|
|
228
|
+
:type _host_index: int, optional
|
|
229
|
+
:return: Returns the result object.
|
|
230
|
+
""" # noqa: E501
|
|
231
|
+
|
|
232
|
+
_param = self._create_agent_profile_serialize(
|
|
233
|
+
create_agent_profile_request=create_agent_profile_request,
|
|
234
|
+
_request_auth=_request_auth,
|
|
235
|
+
_content_type=_content_type,
|
|
236
|
+
_headers=_headers,
|
|
237
|
+
_host_index=_host_index
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
241
|
+
'201': "AgentProfile",
|
|
242
|
+
'400': "ErrorResponse",
|
|
243
|
+
'401': "ErrorResponse",
|
|
244
|
+
'403': "ErrorResponse",
|
|
245
|
+
'500': "ErrorResponse",
|
|
246
|
+
}
|
|
247
|
+
response_data = self.api_client.call_api(
|
|
248
|
+
*_param,
|
|
249
|
+
_request_timeout=_request_timeout
|
|
250
|
+
)
|
|
251
|
+
return response_data.response
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
def _create_agent_profile_serialize(
|
|
255
|
+
self,
|
|
256
|
+
create_agent_profile_request,
|
|
257
|
+
_request_auth,
|
|
258
|
+
_content_type,
|
|
259
|
+
_headers,
|
|
260
|
+
_host_index,
|
|
261
|
+
) -> RequestSerialized:
|
|
262
|
+
|
|
263
|
+
_host = None
|
|
264
|
+
|
|
265
|
+
_collection_formats: Dict[str, str] = {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
_path_params: Dict[str, str] = {}
|
|
269
|
+
_query_params: List[Tuple[str, str]] = []
|
|
270
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
271
|
+
_form_params: List[Tuple[str, str]] = []
|
|
272
|
+
_files: Dict[
|
|
273
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
274
|
+
] = {}
|
|
275
|
+
_body_params: Optional[bytes] = None
|
|
276
|
+
|
|
277
|
+
# process the path parameters
|
|
278
|
+
# process the query parameters
|
|
279
|
+
# process the header parameters
|
|
280
|
+
# process the form parameters
|
|
281
|
+
# process the body parameter
|
|
282
|
+
if create_agent_profile_request is not None:
|
|
283
|
+
_body_params = create_agent_profile_request
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# set the HTTP header `Accept`
|
|
287
|
+
if 'Accept' not in _header_params:
|
|
288
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
+
[
|
|
290
|
+
'application/json'
|
|
291
|
+
]
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
# set the HTTP header `Content-Type`
|
|
295
|
+
if _content_type:
|
|
296
|
+
_header_params['Content-Type'] = _content_type
|
|
297
|
+
else:
|
|
298
|
+
_default_content_type = (
|
|
299
|
+
self.api_client.select_header_content_type(
|
|
300
|
+
[
|
|
301
|
+
'application/json'
|
|
302
|
+
]
|
|
303
|
+
)
|
|
304
|
+
)
|
|
305
|
+
if _default_content_type is not None:
|
|
306
|
+
_header_params['Content-Type'] = _default_content_type
|
|
307
|
+
|
|
308
|
+
# authentication setting
|
|
309
|
+
_auth_settings: List[str] = [
|
|
310
|
+
'ApiKeyAuth'
|
|
311
|
+
]
|
|
312
|
+
|
|
313
|
+
return self.api_client.param_serialize(
|
|
314
|
+
method='POST',
|
|
315
|
+
resource_path='/agent-profiles',
|
|
316
|
+
path_params=_path_params,
|
|
317
|
+
query_params=_query_params,
|
|
318
|
+
header_params=_header_params,
|
|
319
|
+
body=_body_params,
|
|
320
|
+
post_params=_form_params,
|
|
321
|
+
files=_files,
|
|
322
|
+
auth_settings=_auth_settings,
|
|
323
|
+
collection_formats=_collection_formats,
|
|
324
|
+
_host=_host,
|
|
325
|
+
_request_auth=_request_auth
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
@validate_call
|
|
332
|
+
def delete_agent_profile(
|
|
333
|
+
self,
|
|
334
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
335
|
+
_request_timeout: Union[
|
|
336
|
+
None,
|
|
337
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
338
|
+
Tuple[
|
|
339
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
340
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
341
|
+
]
|
|
342
|
+
] = None,
|
|
343
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
344
|
+
_content_type: Optional[StrictStr] = None,
|
|
345
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
346
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
347
|
+
) -> DeleteAgentProfile200Response:
|
|
348
|
+
"""Delete an agent profile
|
|
349
|
+
|
|
350
|
+
Deletes the specified agent profile
|
|
351
|
+
|
|
352
|
+
:param profile_id: The ID of the agent profile (required)
|
|
353
|
+
:type profile_id: str
|
|
354
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
355
|
+
number provided, it will be total request
|
|
356
|
+
timeout. It can also be a pair (tuple) of
|
|
357
|
+
(connection, read) timeouts.
|
|
358
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
359
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
360
|
+
request; this effectively ignores the
|
|
361
|
+
authentication in the spec for a single request.
|
|
362
|
+
:type _request_auth: dict, optional
|
|
363
|
+
:param _content_type: force content-type for the request.
|
|
364
|
+
:type _content_type: str, Optional
|
|
365
|
+
:param _headers: set to override the headers for a single
|
|
366
|
+
request; this effectively ignores the headers
|
|
367
|
+
in the spec for a single request.
|
|
368
|
+
:type _headers: dict, optional
|
|
369
|
+
:param _host_index: set to override the host_index for a single
|
|
370
|
+
request; this effectively ignores the host_index
|
|
371
|
+
in the spec for a single request.
|
|
372
|
+
:type _host_index: int, optional
|
|
373
|
+
:return: Returns the result object.
|
|
374
|
+
""" # noqa: E501
|
|
375
|
+
|
|
376
|
+
_param = self._delete_agent_profile_serialize(
|
|
377
|
+
profile_id=profile_id,
|
|
378
|
+
_request_auth=_request_auth,
|
|
379
|
+
_content_type=_content_type,
|
|
380
|
+
_headers=_headers,
|
|
381
|
+
_host_index=_host_index
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
385
|
+
'200': "DeleteAgentProfile200Response",
|
|
386
|
+
'401': "ErrorResponse",
|
|
387
|
+
'403': "ErrorResponse",
|
|
388
|
+
'404': "ErrorResponse",
|
|
389
|
+
'500': "ErrorResponse",
|
|
390
|
+
}
|
|
391
|
+
response_data = self.api_client.call_api(
|
|
392
|
+
*_param,
|
|
393
|
+
_request_timeout=_request_timeout
|
|
394
|
+
)
|
|
395
|
+
response_data.read()
|
|
396
|
+
return self.api_client.response_deserialize(
|
|
397
|
+
response_data=response_data,
|
|
398
|
+
response_types_map=_response_types_map,
|
|
399
|
+
).data
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
@validate_call
|
|
403
|
+
def delete_agent_profile_with_http_info(
|
|
404
|
+
self,
|
|
405
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
406
|
+
_request_timeout: Union[
|
|
407
|
+
None,
|
|
408
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
409
|
+
Tuple[
|
|
410
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
411
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
412
|
+
]
|
|
413
|
+
] = None,
|
|
414
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
415
|
+
_content_type: Optional[StrictStr] = None,
|
|
416
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
417
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
418
|
+
) -> ApiResponse[DeleteAgentProfile200Response]:
|
|
419
|
+
"""Delete an agent profile
|
|
420
|
+
|
|
421
|
+
Deletes the specified agent profile
|
|
422
|
+
|
|
423
|
+
:param profile_id: The ID of the agent profile (required)
|
|
424
|
+
:type profile_id: str
|
|
425
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
426
|
+
number provided, it will be total request
|
|
427
|
+
timeout. It can also be a pair (tuple) of
|
|
428
|
+
(connection, read) timeouts.
|
|
429
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
430
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
431
|
+
request; this effectively ignores the
|
|
432
|
+
authentication in the spec for a single request.
|
|
433
|
+
:type _request_auth: dict, optional
|
|
434
|
+
:param _content_type: force content-type for the request.
|
|
435
|
+
:type _content_type: str, Optional
|
|
436
|
+
:param _headers: set to override the headers for a single
|
|
437
|
+
request; this effectively ignores the headers
|
|
438
|
+
in the spec for a single request.
|
|
439
|
+
:type _headers: dict, optional
|
|
440
|
+
:param _host_index: set to override the host_index for a single
|
|
441
|
+
request; this effectively ignores the host_index
|
|
442
|
+
in the spec for a single request.
|
|
443
|
+
:type _host_index: int, optional
|
|
444
|
+
:return: Returns the result object.
|
|
445
|
+
""" # noqa: E501
|
|
446
|
+
|
|
447
|
+
_param = self._delete_agent_profile_serialize(
|
|
448
|
+
profile_id=profile_id,
|
|
449
|
+
_request_auth=_request_auth,
|
|
450
|
+
_content_type=_content_type,
|
|
451
|
+
_headers=_headers,
|
|
452
|
+
_host_index=_host_index
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
456
|
+
'200': "DeleteAgentProfile200Response",
|
|
457
|
+
'401': "ErrorResponse",
|
|
458
|
+
'403': "ErrorResponse",
|
|
459
|
+
'404': "ErrorResponse",
|
|
460
|
+
'500': "ErrorResponse",
|
|
461
|
+
}
|
|
462
|
+
response_data = self.api_client.call_api(
|
|
463
|
+
*_param,
|
|
464
|
+
_request_timeout=_request_timeout
|
|
465
|
+
)
|
|
466
|
+
response_data.read()
|
|
467
|
+
return self.api_client.response_deserialize(
|
|
468
|
+
response_data=response_data,
|
|
469
|
+
response_types_map=_response_types_map,
|
|
470
|
+
)
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
@validate_call
|
|
474
|
+
def delete_agent_profile_without_preload_content(
|
|
475
|
+
self,
|
|
476
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
477
|
+
_request_timeout: Union[
|
|
478
|
+
None,
|
|
479
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
480
|
+
Tuple[
|
|
481
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
482
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
483
|
+
]
|
|
484
|
+
] = None,
|
|
485
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
486
|
+
_content_type: Optional[StrictStr] = None,
|
|
487
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
488
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
489
|
+
) -> RESTResponseType:
|
|
490
|
+
"""Delete an agent profile
|
|
491
|
+
|
|
492
|
+
Deletes the specified agent profile
|
|
493
|
+
|
|
494
|
+
:param profile_id: The ID of the agent profile (required)
|
|
495
|
+
:type profile_id: str
|
|
496
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
497
|
+
number provided, it will be total request
|
|
498
|
+
timeout. It can also be a pair (tuple) of
|
|
499
|
+
(connection, read) timeouts.
|
|
500
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
501
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
502
|
+
request; this effectively ignores the
|
|
503
|
+
authentication in the spec for a single request.
|
|
504
|
+
:type _request_auth: dict, optional
|
|
505
|
+
:param _content_type: force content-type for the request.
|
|
506
|
+
:type _content_type: str, Optional
|
|
507
|
+
:param _headers: set to override the headers for a single
|
|
508
|
+
request; this effectively ignores the headers
|
|
509
|
+
in the spec for a single request.
|
|
510
|
+
:type _headers: dict, optional
|
|
511
|
+
:param _host_index: set to override the host_index for a single
|
|
512
|
+
request; this effectively ignores the host_index
|
|
513
|
+
in the spec for a single request.
|
|
514
|
+
:type _host_index: int, optional
|
|
515
|
+
:return: Returns the result object.
|
|
516
|
+
""" # noqa: E501
|
|
517
|
+
|
|
518
|
+
_param = self._delete_agent_profile_serialize(
|
|
519
|
+
profile_id=profile_id,
|
|
520
|
+
_request_auth=_request_auth,
|
|
521
|
+
_content_type=_content_type,
|
|
522
|
+
_headers=_headers,
|
|
523
|
+
_host_index=_host_index
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
527
|
+
'200': "DeleteAgentProfile200Response",
|
|
528
|
+
'401': "ErrorResponse",
|
|
529
|
+
'403': "ErrorResponse",
|
|
530
|
+
'404': "ErrorResponse",
|
|
531
|
+
'500': "ErrorResponse",
|
|
532
|
+
}
|
|
533
|
+
response_data = self.api_client.call_api(
|
|
534
|
+
*_param,
|
|
535
|
+
_request_timeout=_request_timeout
|
|
536
|
+
)
|
|
537
|
+
return response_data.response
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
def _delete_agent_profile_serialize(
|
|
541
|
+
self,
|
|
542
|
+
profile_id,
|
|
543
|
+
_request_auth,
|
|
544
|
+
_content_type,
|
|
545
|
+
_headers,
|
|
546
|
+
_host_index,
|
|
547
|
+
) -> RequestSerialized:
|
|
548
|
+
|
|
549
|
+
_host = None
|
|
550
|
+
|
|
551
|
+
_collection_formats: Dict[str, str] = {
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
_path_params: Dict[str, str] = {}
|
|
555
|
+
_query_params: List[Tuple[str, str]] = []
|
|
556
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
557
|
+
_form_params: List[Tuple[str, str]] = []
|
|
558
|
+
_files: Dict[
|
|
559
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
560
|
+
] = {}
|
|
561
|
+
_body_params: Optional[bytes] = None
|
|
562
|
+
|
|
563
|
+
# process the path parameters
|
|
564
|
+
if profile_id is not None:
|
|
565
|
+
_path_params['profile_id'] = profile_id
|
|
566
|
+
# process the query parameters
|
|
567
|
+
# process the header parameters
|
|
568
|
+
# process the form parameters
|
|
569
|
+
# process the body parameter
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
# set the HTTP header `Accept`
|
|
573
|
+
if 'Accept' not in _header_params:
|
|
574
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
575
|
+
[
|
|
576
|
+
'application/json'
|
|
577
|
+
]
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
# authentication setting
|
|
582
|
+
_auth_settings: List[str] = [
|
|
583
|
+
'ApiKeyAuth'
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
return self.api_client.param_serialize(
|
|
587
|
+
method='DELETE',
|
|
588
|
+
resource_path='/agent-profiles/{profile_id}',
|
|
589
|
+
path_params=_path_params,
|
|
590
|
+
query_params=_query_params,
|
|
591
|
+
header_params=_header_params,
|
|
592
|
+
body=_body_params,
|
|
593
|
+
post_params=_form_params,
|
|
594
|
+
files=_files,
|
|
595
|
+
auth_settings=_auth_settings,
|
|
596
|
+
collection_formats=_collection_formats,
|
|
597
|
+
_host=_host,
|
|
598
|
+
_request_auth=_request_auth
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
@validate_call
|
|
605
|
+
def get_agent_profile(
|
|
606
|
+
self,
|
|
607
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
608
|
+
_request_timeout: Union[
|
|
609
|
+
None,
|
|
610
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
611
|
+
Tuple[
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
613
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
614
|
+
]
|
|
615
|
+
] = None,
|
|
616
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
617
|
+
_content_type: Optional[StrictStr] = None,
|
|
618
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
619
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
620
|
+
) -> AgentProfile:
|
|
621
|
+
"""Get an agent profile by ID
|
|
622
|
+
|
|
623
|
+
Returns the complete agent profile including credentials
|
|
624
|
+
|
|
625
|
+
:param profile_id: The ID of the agent profile (required)
|
|
626
|
+
:type profile_id: str
|
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
628
|
+
number provided, it will be total request
|
|
629
|
+
timeout. It can also be a pair (tuple) of
|
|
630
|
+
(connection, read) timeouts.
|
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
633
|
+
request; this effectively ignores the
|
|
634
|
+
authentication in the spec for a single request.
|
|
635
|
+
:type _request_auth: dict, optional
|
|
636
|
+
:param _content_type: force content-type for the request.
|
|
637
|
+
:type _content_type: str, Optional
|
|
638
|
+
:param _headers: set to override the headers for a single
|
|
639
|
+
request; this effectively ignores the headers
|
|
640
|
+
in the spec for a single request.
|
|
641
|
+
:type _headers: dict, optional
|
|
642
|
+
:param _host_index: set to override the host_index for a single
|
|
643
|
+
request; this effectively ignores the host_index
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _host_index: int, optional
|
|
646
|
+
:return: Returns the result object.
|
|
647
|
+
""" # noqa: E501
|
|
648
|
+
|
|
649
|
+
_param = self._get_agent_profile_serialize(
|
|
650
|
+
profile_id=profile_id,
|
|
651
|
+
_request_auth=_request_auth,
|
|
652
|
+
_content_type=_content_type,
|
|
653
|
+
_headers=_headers,
|
|
654
|
+
_host_index=_host_index
|
|
655
|
+
)
|
|
656
|
+
|
|
657
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
658
|
+
'200': "AgentProfile",
|
|
659
|
+
'401': "ErrorResponse",
|
|
660
|
+
'403': "ErrorResponse",
|
|
661
|
+
'404': "ErrorResponse",
|
|
662
|
+
'500': "ErrorResponse",
|
|
663
|
+
}
|
|
664
|
+
response_data = self.api_client.call_api(
|
|
665
|
+
*_param,
|
|
666
|
+
_request_timeout=_request_timeout
|
|
667
|
+
)
|
|
668
|
+
response_data.read()
|
|
669
|
+
return self.api_client.response_deserialize(
|
|
670
|
+
response_data=response_data,
|
|
671
|
+
response_types_map=_response_types_map,
|
|
672
|
+
).data
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
@validate_call
|
|
676
|
+
def get_agent_profile_with_http_info(
|
|
677
|
+
self,
|
|
678
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
679
|
+
_request_timeout: Union[
|
|
680
|
+
None,
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
682
|
+
Tuple[
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
+
]
|
|
686
|
+
] = None,
|
|
687
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
+
_content_type: Optional[StrictStr] = None,
|
|
689
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
+
) -> ApiResponse[AgentProfile]:
|
|
692
|
+
"""Get an agent profile by ID
|
|
693
|
+
|
|
694
|
+
Returns the complete agent profile including credentials
|
|
695
|
+
|
|
696
|
+
:param profile_id: The ID of the agent profile (required)
|
|
697
|
+
:type profile_id: str
|
|
698
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
699
|
+
number provided, it will be total request
|
|
700
|
+
timeout. It can also be a pair (tuple) of
|
|
701
|
+
(connection, read) timeouts.
|
|
702
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
703
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
704
|
+
request; this effectively ignores the
|
|
705
|
+
authentication in the spec for a single request.
|
|
706
|
+
:type _request_auth: dict, optional
|
|
707
|
+
:param _content_type: force content-type for the request.
|
|
708
|
+
:type _content_type: str, Optional
|
|
709
|
+
:param _headers: set to override the headers for a single
|
|
710
|
+
request; this effectively ignores the headers
|
|
711
|
+
in the spec for a single request.
|
|
712
|
+
:type _headers: dict, optional
|
|
713
|
+
:param _host_index: set to override the host_index for a single
|
|
714
|
+
request; this effectively ignores the host_index
|
|
715
|
+
in the spec for a single request.
|
|
716
|
+
:type _host_index: int, optional
|
|
717
|
+
:return: Returns the result object.
|
|
718
|
+
""" # noqa: E501
|
|
719
|
+
|
|
720
|
+
_param = self._get_agent_profile_serialize(
|
|
721
|
+
profile_id=profile_id,
|
|
722
|
+
_request_auth=_request_auth,
|
|
723
|
+
_content_type=_content_type,
|
|
724
|
+
_headers=_headers,
|
|
725
|
+
_host_index=_host_index
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
729
|
+
'200': "AgentProfile",
|
|
730
|
+
'401': "ErrorResponse",
|
|
731
|
+
'403': "ErrorResponse",
|
|
732
|
+
'404': "ErrorResponse",
|
|
733
|
+
'500': "ErrorResponse",
|
|
734
|
+
}
|
|
735
|
+
response_data = self.api_client.call_api(
|
|
736
|
+
*_param,
|
|
737
|
+
_request_timeout=_request_timeout
|
|
738
|
+
)
|
|
739
|
+
response_data.read()
|
|
740
|
+
return self.api_client.response_deserialize(
|
|
741
|
+
response_data=response_data,
|
|
742
|
+
response_types_map=_response_types_map,
|
|
743
|
+
)
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
@validate_call
|
|
747
|
+
def get_agent_profile_without_preload_content(
|
|
748
|
+
self,
|
|
749
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
750
|
+
_request_timeout: Union[
|
|
751
|
+
None,
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Tuple[
|
|
754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
755
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
756
|
+
]
|
|
757
|
+
] = None,
|
|
758
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_content_type: Optional[StrictStr] = None,
|
|
760
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
761
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
762
|
+
) -> RESTResponseType:
|
|
763
|
+
"""Get an agent profile by ID
|
|
764
|
+
|
|
765
|
+
Returns the complete agent profile including credentials
|
|
766
|
+
|
|
767
|
+
:param profile_id: The ID of the agent profile (required)
|
|
768
|
+
:type profile_id: str
|
|
769
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
770
|
+
number provided, it will be total request
|
|
771
|
+
timeout. It can also be a pair (tuple) of
|
|
772
|
+
(connection, read) timeouts.
|
|
773
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
774
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
775
|
+
request; this effectively ignores the
|
|
776
|
+
authentication in the spec for a single request.
|
|
777
|
+
:type _request_auth: dict, optional
|
|
778
|
+
:param _content_type: force content-type for the request.
|
|
779
|
+
:type _content_type: str, Optional
|
|
780
|
+
:param _headers: set to override the headers for a single
|
|
781
|
+
request; this effectively ignores the headers
|
|
782
|
+
in the spec for a single request.
|
|
783
|
+
:type _headers: dict, optional
|
|
784
|
+
:param _host_index: set to override the host_index for a single
|
|
785
|
+
request; this effectively ignores the host_index
|
|
786
|
+
in the spec for a single request.
|
|
787
|
+
:type _host_index: int, optional
|
|
788
|
+
:return: Returns the result object.
|
|
789
|
+
""" # noqa: E501
|
|
790
|
+
|
|
791
|
+
_param = self._get_agent_profile_serialize(
|
|
792
|
+
profile_id=profile_id,
|
|
793
|
+
_request_auth=_request_auth,
|
|
794
|
+
_content_type=_content_type,
|
|
795
|
+
_headers=_headers,
|
|
796
|
+
_host_index=_host_index
|
|
797
|
+
)
|
|
798
|
+
|
|
799
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
800
|
+
'200': "AgentProfile",
|
|
801
|
+
'401': "ErrorResponse",
|
|
802
|
+
'403': "ErrorResponse",
|
|
803
|
+
'404': "ErrorResponse",
|
|
804
|
+
'500': "ErrorResponse",
|
|
805
|
+
}
|
|
806
|
+
response_data = self.api_client.call_api(
|
|
807
|
+
*_param,
|
|
808
|
+
_request_timeout=_request_timeout
|
|
809
|
+
)
|
|
810
|
+
return response_data.response
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
def _get_agent_profile_serialize(
|
|
814
|
+
self,
|
|
815
|
+
profile_id,
|
|
816
|
+
_request_auth,
|
|
817
|
+
_content_type,
|
|
818
|
+
_headers,
|
|
819
|
+
_host_index,
|
|
820
|
+
) -> RequestSerialized:
|
|
821
|
+
|
|
822
|
+
_host = None
|
|
823
|
+
|
|
824
|
+
_collection_formats: Dict[str, str] = {
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
_path_params: Dict[str, str] = {}
|
|
828
|
+
_query_params: List[Tuple[str, str]] = []
|
|
829
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
830
|
+
_form_params: List[Tuple[str, str]] = []
|
|
831
|
+
_files: Dict[
|
|
832
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
833
|
+
] = {}
|
|
834
|
+
_body_params: Optional[bytes] = None
|
|
835
|
+
|
|
836
|
+
# process the path parameters
|
|
837
|
+
if profile_id is not None:
|
|
838
|
+
_path_params['profile_id'] = profile_id
|
|
839
|
+
# process the query parameters
|
|
840
|
+
# process the header parameters
|
|
841
|
+
# process the form parameters
|
|
842
|
+
# process the body parameter
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
# set the HTTP header `Accept`
|
|
846
|
+
if 'Accept' not in _header_params:
|
|
847
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
848
|
+
[
|
|
849
|
+
'application/json'
|
|
850
|
+
]
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
# authentication setting
|
|
855
|
+
_auth_settings: List[str] = [
|
|
856
|
+
'ApiKeyAuth'
|
|
857
|
+
]
|
|
858
|
+
|
|
859
|
+
return self.api_client.param_serialize(
|
|
860
|
+
method='GET',
|
|
861
|
+
resource_path='/agent-profiles/{profile_id}',
|
|
862
|
+
path_params=_path_params,
|
|
863
|
+
query_params=_query_params,
|
|
864
|
+
header_params=_header_params,
|
|
865
|
+
body=_body_params,
|
|
866
|
+
post_params=_form_params,
|
|
867
|
+
files=_files,
|
|
868
|
+
auth_settings=_auth_settings,
|
|
869
|
+
collection_formats=_collection_formats,
|
|
870
|
+
_host=_host,
|
|
871
|
+
_request_auth=_request_auth
|
|
872
|
+
)
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
@validate_call
|
|
878
|
+
def get_agent_profiles(
|
|
879
|
+
self,
|
|
880
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="The ID of the organization to filter by")] = None,
|
|
881
|
+
_request_timeout: Union[
|
|
882
|
+
None,
|
|
883
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
884
|
+
Tuple[
|
|
885
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
886
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
887
|
+
]
|
|
888
|
+
] = None,
|
|
889
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
890
|
+
_content_type: Optional[StrictStr] = None,
|
|
891
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
892
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
893
|
+
) -> List[AgentProfile]:
|
|
894
|
+
"""Get agent profiles
|
|
895
|
+
|
|
896
|
+
Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
897
|
+
|
|
898
|
+
:param organization_id: The ID of the organization to filter by
|
|
899
|
+
:type organization_id: str
|
|
900
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
901
|
+
number provided, it will be total request
|
|
902
|
+
timeout. It can also be a pair (tuple) of
|
|
903
|
+
(connection, read) timeouts.
|
|
904
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
905
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
906
|
+
request; this effectively ignores the
|
|
907
|
+
authentication in the spec for a single request.
|
|
908
|
+
:type _request_auth: dict, optional
|
|
909
|
+
:param _content_type: force content-type for the request.
|
|
910
|
+
:type _content_type: str, Optional
|
|
911
|
+
:param _headers: set to override the headers for a single
|
|
912
|
+
request; this effectively ignores the headers
|
|
913
|
+
in the spec for a single request.
|
|
914
|
+
:type _headers: dict, optional
|
|
915
|
+
:param _host_index: set to override the host_index for a single
|
|
916
|
+
request; this effectively ignores the host_index
|
|
917
|
+
in the spec for a single request.
|
|
918
|
+
:type _host_index: int, optional
|
|
919
|
+
:return: Returns the result object.
|
|
920
|
+
""" # noqa: E501
|
|
921
|
+
|
|
922
|
+
_param = self._get_agent_profiles_serialize(
|
|
923
|
+
organization_id=organization_id,
|
|
924
|
+
_request_auth=_request_auth,
|
|
925
|
+
_content_type=_content_type,
|
|
926
|
+
_headers=_headers,
|
|
927
|
+
_host_index=_host_index
|
|
928
|
+
)
|
|
929
|
+
|
|
930
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
931
|
+
'200': "List[AgentProfile]",
|
|
932
|
+
'401': "ErrorResponse",
|
|
933
|
+
'403': "ErrorResponse",
|
|
934
|
+
'500': "ErrorResponse",
|
|
935
|
+
}
|
|
936
|
+
response_data = self.api_client.call_api(
|
|
937
|
+
*_param,
|
|
938
|
+
_request_timeout=_request_timeout
|
|
939
|
+
)
|
|
940
|
+
response_data.read()
|
|
941
|
+
return self.api_client.response_deserialize(
|
|
942
|
+
response_data=response_data,
|
|
943
|
+
response_types_map=_response_types_map,
|
|
944
|
+
).data
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
@validate_call
|
|
948
|
+
def get_agent_profiles_with_http_info(
|
|
949
|
+
self,
|
|
950
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="The ID of the organization to filter by")] = None,
|
|
951
|
+
_request_timeout: Union[
|
|
952
|
+
None,
|
|
953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
954
|
+
Tuple[
|
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
956
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
957
|
+
]
|
|
958
|
+
] = None,
|
|
959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
960
|
+
_content_type: Optional[StrictStr] = None,
|
|
961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
963
|
+
) -> ApiResponse[List[AgentProfile]]:
|
|
964
|
+
"""Get agent profiles
|
|
965
|
+
|
|
966
|
+
Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
967
|
+
|
|
968
|
+
:param organization_id: The ID of the organization to filter by
|
|
969
|
+
:type organization_id: str
|
|
970
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
971
|
+
number provided, it will be total request
|
|
972
|
+
timeout. It can also be a pair (tuple) of
|
|
973
|
+
(connection, read) timeouts.
|
|
974
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
975
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
976
|
+
request; this effectively ignores the
|
|
977
|
+
authentication in the spec for a single request.
|
|
978
|
+
:type _request_auth: dict, optional
|
|
979
|
+
:param _content_type: force content-type for the request.
|
|
980
|
+
:type _content_type: str, Optional
|
|
981
|
+
:param _headers: set to override the headers for a single
|
|
982
|
+
request; this effectively ignores the headers
|
|
983
|
+
in the spec for a single request.
|
|
984
|
+
:type _headers: dict, optional
|
|
985
|
+
:param _host_index: set to override the host_index for a single
|
|
986
|
+
request; this effectively ignores the host_index
|
|
987
|
+
in the spec for a single request.
|
|
988
|
+
:type _host_index: int, optional
|
|
989
|
+
:return: Returns the result object.
|
|
990
|
+
""" # noqa: E501
|
|
991
|
+
|
|
992
|
+
_param = self._get_agent_profiles_serialize(
|
|
993
|
+
organization_id=organization_id,
|
|
994
|
+
_request_auth=_request_auth,
|
|
995
|
+
_content_type=_content_type,
|
|
996
|
+
_headers=_headers,
|
|
997
|
+
_host_index=_host_index
|
|
998
|
+
)
|
|
999
|
+
|
|
1000
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1001
|
+
'200': "List[AgentProfile]",
|
|
1002
|
+
'401': "ErrorResponse",
|
|
1003
|
+
'403': "ErrorResponse",
|
|
1004
|
+
'500': "ErrorResponse",
|
|
1005
|
+
}
|
|
1006
|
+
response_data = self.api_client.call_api(
|
|
1007
|
+
*_param,
|
|
1008
|
+
_request_timeout=_request_timeout
|
|
1009
|
+
)
|
|
1010
|
+
response_data.read()
|
|
1011
|
+
return self.api_client.response_deserialize(
|
|
1012
|
+
response_data=response_data,
|
|
1013
|
+
response_types_map=_response_types_map,
|
|
1014
|
+
)
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
@validate_call
|
|
1018
|
+
def get_agent_profiles_without_preload_content(
|
|
1019
|
+
self,
|
|
1020
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="The ID of the organization to filter by")] = None,
|
|
1021
|
+
_request_timeout: Union[
|
|
1022
|
+
None,
|
|
1023
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1024
|
+
Tuple[
|
|
1025
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1027
|
+
]
|
|
1028
|
+
] = None,
|
|
1029
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1030
|
+
_content_type: Optional[StrictStr] = None,
|
|
1031
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1032
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1033
|
+
) -> RESTResponseType:
|
|
1034
|
+
"""Get agent profiles
|
|
1035
|
+
|
|
1036
|
+
Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
1037
|
+
|
|
1038
|
+
:param organization_id: The ID of the organization to filter by
|
|
1039
|
+
:type organization_id: str
|
|
1040
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1041
|
+
number provided, it will be total request
|
|
1042
|
+
timeout. It can also be a pair (tuple) of
|
|
1043
|
+
(connection, read) timeouts.
|
|
1044
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1045
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1046
|
+
request; this effectively ignores the
|
|
1047
|
+
authentication in the spec for a single request.
|
|
1048
|
+
:type _request_auth: dict, optional
|
|
1049
|
+
:param _content_type: force content-type for the request.
|
|
1050
|
+
:type _content_type: str, Optional
|
|
1051
|
+
:param _headers: set to override the headers for a single
|
|
1052
|
+
request; this effectively ignores the headers
|
|
1053
|
+
in the spec for a single request.
|
|
1054
|
+
:type _headers: dict, optional
|
|
1055
|
+
:param _host_index: set to override the host_index for a single
|
|
1056
|
+
request; this effectively ignores the host_index
|
|
1057
|
+
in the spec for a single request.
|
|
1058
|
+
:type _host_index: int, optional
|
|
1059
|
+
:return: Returns the result object.
|
|
1060
|
+
""" # noqa: E501
|
|
1061
|
+
|
|
1062
|
+
_param = self._get_agent_profiles_serialize(
|
|
1063
|
+
organization_id=organization_id,
|
|
1064
|
+
_request_auth=_request_auth,
|
|
1065
|
+
_content_type=_content_type,
|
|
1066
|
+
_headers=_headers,
|
|
1067
|
+
_host_index=_host_index
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1071
|
+
'200': "List[AgentProfile]",
|
|
1072
|
+
'401': "ErrorResponse",
|
|
1073
|
+
'403': "ErrorResponse",
|
|
1074
|
+
'500': "ErrorResponse",
|
|
1075
|
+
}
|
|
1076
|
+
response_data = self.api_client.call_api(
|
|
1077
|
+
*_param,
|
|
1078
|
+
_request_timeout=_request_timeout
|
|
1079
|
+
)
|
|
1080
|
+
return response_data.response
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
def _get_agent_profiles_serialize(
|
|
1084
|
+
self,
|
|
1085
|
+
organization_id,
|
|
1086
|
+
_request_auth,
|
|
1087
|
+
_content_type,
|
|
1088
|
+
_headers,
|
|
1089
|
+
_host_index,
|
|
1090
|
+
) -> RequestSerialized:
|
|
1091
|
+
|
|
1092
|
+
_host = None
|
|
1093
|
+
|
|
1094
|
+
_collection_formats: Dict[str, str] = {
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
_path_params: Dict[str, str] = {}
|
|
1098
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1099
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1100
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1101
|
+
_files: Dict[
|
|
1102
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1103
|
+
] = {}
|
|
1104
|
+
_body_params: Optional[bytes] = None
|
|
1105
|
+
|
|
1106
|
+
# process the path parameters
|
|
1107
|
+
# process the query parameters
|
|
1108
|
+
if organization_id is not None:
|
|
1109
|
+
|
|
1110
|
+
_query_params.append(('organization_id', organization_id))
|
|
1111
|
+
|
|
1112
|
+
# process the header parameters
|
|
1113
|
+
# process the form parameters
|
|
1114
|
+
# process the body parameter
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
# set the HTTP header `Accept`
|
|
1118
|
+
if 'Accept' not in _header_params:
|
|
1119
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1120
|
+
[
|
|
1121
|
+
'application/json'
|
|
1122
|
+
]
|
|
1123
|
+
)
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
# authentication setting
|
|
1127
|
+
_auth_settings: List[str] = [
|
|
1128
|
+
'ApiKeyAuth'
|
|
1129
|
+
]
|
|
1130
|
+
|
|
1131
|
+
return self.api_client.param_serialize(
|
|
1132
|
+
method='GET',
|
|
1133
|
+
resource_path='/agent-profiles',
|
|
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
|
+
|
|
1149
|
+
@validate_call
|
|
1150
|
+
def get_credentials_public_key(
|
|
1151
|
+
self,
|
|
1152
|
+
_request_timeout: Union[
|
|
1153
|
+
None,
|
|
1154
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1155
|
+
Tuple[
|
|
1156
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1157
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1158
|
+
]
|
|
1159
|
+
] = None,
|
|
1160
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1161
|
+
_content_type: Optional[StrictStr] = None,
|
|
1162
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1163
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1164
|
+
) -> str:
|
|
1165
|
+
"""Get the public key for credentials
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1169
|
+
number provided, it will be total request
|
|
1170
|
+
timeout. It can also be a pair (tuple) of
|
|
1171
|
+
(connection, read) timeouts.
|
|
1172
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1173
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1174
|
+
request; this effectively ignores the
|
|
1175
|
+
authentication in the spec for a single request.
|
|
1176
|
+
:type _request_auth: dict, optional
|
|
1177
|
+
:param _content_type: force content-type for the request.
|
|
1178
|
+
:type _content_type: str, Optional
|
|
1179
|
+
:param _headers: set to override the headers for a single
|
|
1180
|
+
request; this effectively ignores the headers
|
|
1181
|
+
in the spec for a single request.
|
|
1182
|
+
:type _headers: dict, optional
|
|
1183
|
+
:param _host_index: set to override the host_index for a single
|
|
1184
|
+
request; this effectively ignores the host_index
|
|
1185
|
+
in the spec for a single request.
|
|
1186
|
+
:type _host_index: int, optional
|
|
1187
|
+
:return: Returns the result object.
|
|
1188
|
+
""" # noqa: E501
|
|
1189
|
+
|
|
1190
|
+
_param = self._get_credentials_public_key_serialize(
|
|
1191
|
+
_request_auth=_request_auth,
|
|
1192
|
+
_content_type=_content_type,
|
|
1193
|
+
_headers=_headers,
|
|
1194
|
+
_host_index=_host_index
|
|
1195
|
+
)
|
|
1196
|
+
|
|
1197
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1198
|
+
'200': "str",
|
|
1199
|
+
'404': None,
|
|
1200
|
+
}
|
|
1201
|
+
response_data = self.api_client.call_api(
|
|
1202
|
+
*_param,
|
|
1203
|
+
_request_timeout=_request_timeout
|
|
1204
|
+
)
|
|
1205
|
+
response_data.read()
|
|
1206
|
+
return self.api_client.response_deserialize(
|
|
1207
|
+
response_data=response_data,
|
|
1208
|
+
response_types_map=_response_types_map,
|
|
1209
|
+
).data
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
@validate_call
|
|
1213
|
+
def get_credentials_public_key_with_http_info(
|
|
1214
|
+
self,
|
|
1215
|
+
_request_timeout: Union[
|
|
1216
|
+
None,
|
|
1217
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1218
|
+
Tuple[
|
|
1219
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1220
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1221
|
+
]
|
|
1222
|
+
] = None,
|
|
1223
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1224
|
+
_content_type: Optional[StrictStr] = None,
|
|
1225
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1226
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1227
|
+
) -> ApiResponse[str]:
|
|
1228
|
+
"""Get the public key for credentials
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1232
|
+
number provided, it will be total request
|
|
1233
|
+
timeout. It can also be a pair (tuple) of
|
|
1234
|
+
(connection, read) timeouts.
|
|
1235
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1236
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1237
|
+
request; this effectively ignores the
|
|
1238
|
+
authentication in the spec for a single request.
|
|
1239
|
+
:type _request_auth: dict, optional
|
|
1240
|
+
:param _content_type: force content-type for the request.
|
|
1241
|
+
:type _content_type: str, Optional
|
|
1242
|
+
:param _headers: set to override the headers for a single
|
|
1243
|
+
request; this effectively ignores the headers
|
|
1244
|
+
in the spec for a single request.
|
|
1245
|
+
:type _headers: dict, optional
|
|
1246
|
+
:param _host_index: set to override the host_index for a single
|
|
1247
|
+
request; this effectively ignores the host_index
|
|
1248
|
+
in the spec for a single request.
|
|
1249
|
+
:type _host_index: int, optional
|
|
1250
|
+
:return: Returns the result object.
|
|
1251
|
+
""" # noqa: E501
|
|
1252
|
+
|
|
1253
|
+
_param = self._get_credentials_public_key_serialize(
|
|
1254
|
+
_request_auth=_request_auth,
|
|
1255
|
+
_content_type=_content_type,
|
|
1256
|
+
_headers=_headers,
|
|
1257
|
+
_host_index=_host_index
|
|
1258
|
+
)
|
|
1259
|
+
|
|
1260
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1261
|
+
'200': "str",
|
|
1262
|
+
'404': None,
|
|
1263
|
+
}
|
|
1264
|
+
response_data = self.api_client.call_api(
|
|
1265
|
+
*_param,
|
|
1266
|
+
_request_timeout=_request_timeout
|
|
1267
|
+
)
|
|
1268
|
+
response_data.read()
|
|
1269
|
+
return self.api_client.response_deserialize(
|
|
1270
|
+
response_data=response_data,
|
|
1271
|
+
response_types_map=_response_types_map,
|
|
1272
|
+
)
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
@validate_call
|
|
1276
|
+
def get_credentials_public_key_without_preload_content(
|
|
1277
|
+
self,
|
|
1278
|
+
_request_timeout: Union[
|
|
1279
|
+
None,
|
|
1280
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1281
|
+
Tuple[
|
|
1282
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1284
|
+
]
|
|
1285
|
+
] = None,
|
|
1286
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1287
|
+
_content_type: Optional[StrictStr] = None,
|
|
1288
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1289
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1290
|
+
) -> RESTResponseType:
|
|
1291
|
+
"""Get the public key for credentials
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1295
|
+
number provided, it will be total request
|
|
1296
|
+
timeout. It can also be a pair (tuple) of
|
|
1297
|
+
(connection, read) timeouts.
|
|
1298
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1299
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1300
|
+
request; this effectively ignores the
|
|
1301
|
+
authentication in the spec for a single request.
|
|
1302
|
+
:type _request_auth: dict, optional
|
|
1303
|
+
:param _content_type: force content-type for the request.
|
|
1304
|
+
:type _content_type: str, Optional
|
|
1305
|
+
:param _headers: set to override the headers for a single
|
|
1306
|
+
request; this effectively ignores the headers
|
|
1307
|
+
in the spec for a single request.
|
|
1308
|
+
:type _headers: dict, optional
|
|
1309
|
+
:param _host_index: set to override the host_index for a single
|
|
1310
|
+
request; this effectively ignores the host_index
|
|
1311
|
+
in the spec for a single request.
|
|
1312
|
+
:type _host_index: int, optional
|
|
1313
|
+
:return: Returns the result object.
|
|
1314
|
+
""" # noqa: E501
|
|
1315
|
+
|
|
1316
|
+
_param = self._get_credentials_public_key_serialize(
|
|
1317
|
+
_request_auth=_request_auth,
|
|
1318
|
+
_content_type=_content_type,
|
|
1319
|
+
_headers=_headers,
|
|
1320
|
+
_host_index=_host_index
|
|
1321
|
+
)
|
|
1322
|
+
|
|
1323
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1324
|
+
'200': "str",
|
|
1325
|
+
'404': None,
|
|
1326
|
+
}
|
|
1327
|
+
response_data = self.api_client.call_api(
|
|
1328
|
+
*_param,
|
|
1329
|
+
_request_timeout=_request_timeout
|
|
1330
|
+
)
|
|
1331
|
+
return response_data.response
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
def _get_credentials_public_key_serialize(
|
|
1335
|
+
self,
|
|
1336
|
+
_request_auth,
|
|
1337
|
+
_content_type,
|
|
1338
|
+
_headers,
|
|
1339
|
+
_host_index,
|
|
1340
|
+
) -> RequestSerialized:
|
|
1341
|
+
|
|
1342
|
+
_host = None
|
|
1343
|
+
|
|
1344
|
+
_collection_formats: Dict[str, str] = {
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
_path_params: Dict[str, str] = {}
|
|
1348
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1349
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1350
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1351
|
+
_files: Dict[
|
|
1352
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1353
|
+
] = {}
|
|
1354
|
+
_body_params: Optional[bytes] = None
|
|
1355
|
+
|
|
1356
|
+
# process the path parameters
|
|
1357
|
+
# process the query parameters
|
|
1358
|
+
# process the header parameters
|
|
1359
|
+
# process the form parameters
|
|
1360
|
+
# process the body parameter
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
# set the HTTP header `Accept`
|
|
1364
|
+
if 'Accept' not in _header_params:
|
|
1365
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1366
|
+
[
|
|
1367
|
+
'application/json'
|
|
1368
|
+
]
|
|
1369
|
+
)
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
# authentication setting
|
|
1373
|
+
_auth_settings: List[str] = [
|
|
1374
|
+
'ApiKeyAuth'
|
|
1375
|
+
]
|
|
1376
|
+
|
|
1377
|
+
return self.api_client.param_serialize(
|
|
1378
|
+
method='GET',
|
|
1379
|
+
resource_path='/credentials/public_key',
|
|
1380
|
+
path_params=_path_params,
|
|
1381
|
+
query_params=_query_params,
|
|
1382
|
+
header_params=_header_params,
|
|
1383
|
+
body=_body_params,
|
|
1384
|
+
post_params=_form_params,
|
|
1385
|
+
files=_files,
|
|
1386
|
+
auth_settings=_auth_settings,
|
|
1387
|
+
collection_formats=_collection_formats,
|
|
1388
|
+
_host=_host,
|
|
1389
|
+
_request_auth=_request_auth
|
|
1390
|
+
)
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
@validate_call
|
|
1396
|
+
def update_agent_profile(
|
|
1397
|
+
self,
|
|
1398
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
1399
|
+
update_agent_profile_request: UpdateAgentProfileRequest,
|
|
1400
|
+
_request_timeout: Union[
|
|
1401
|
+
None,
|
|
1402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1403
|
+
Tuple[
|
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1405
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1406
|
+
]
|
|
1407
|
+
] = None,
|
|
1408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1409
|
+
_content_type: Optional[StrictStr] = None,
|
|
1410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1412
|
+
) -> AgentProfile:
|
|
1413
|
+
"""Update an agent profile
|
|
1414
|
+
|
|
1415
|
+
Updates an agent profile including metadata and/or credentials
|
|
1416
|
+
|
|
1417
|
+
:param profile_id: The ID of the agent profile (required)
|
|
1418
|
+
:type profile_id: str
|
|
1419
|
+
:param update_agent_profile_request: (required)
|
|
1420
|
+
:type update_agent_profile_request: UpdateAgentProfileRequest
|
|
1421
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1422
|
+
number provided, it will be total request
|
|
1423
|
+
timeout. It can also be a pair (tuple) of
|
|
1424
|
+
(connection, read) timeouts.
|
|
1425
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1426
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1427
|
+
request; this effectively ignores the
|
|
1428
|
+
authentication in the spec for a single request.
|
|
1429
|
+
:type _request_auth: dict, optional
|
|
1430
|
+
:param _content_type: force content-type for the request.
|
|
1431
|
+
:type _content_type: str, Optional
|
|
1432
|
+
:param _headers: set to override the headers for a single
|
|
1433
|
+
request; this effectively ignores the headers
|
|
1434
|
+
in the spec for a single request.
|
|
1435
|
+
:type _headers: dict, optional
|
|
1436
|
+
:param _host_index: set to override the host_index for a single
|
|
1437
|
+
request; this effectively ignores the host_index
|
|
1438
|
+
in the spec for a single request.
|
|
1439
|
+
:type _host_index: int, optional
|
|
1440
|
+
:return: Returns the result object.
|
|
1441
|
+
""" # noqa: E501
|
|
1442
|
+
|
|
1443
|
+
_param = self._update_agent_profile_serialize(
|
|
1444
|
+
profile_id=profile_id,
|
|
1445
|
+
update_agent_profile_request=update_agent_profile_request,
|
|
1446
|
+
_request_auth=_request_auth,
|
|
1447
|
+
_content_type=_content_type,
|
|
1448
|
+
_headers=_headers,
|
|
1449
|
+
_host_index=_host_index
|
|
1450
|
+
)
|
|
1451
|
+
|
|
1452
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1453
|
+
'200': "AgentProfile",
|
|
1454
|
+
'400': "ErrorResponse",
|
|
1455
|
+
'401': "ErrorResponse",
|
|
1456
|
+
'403': "ErrorResponse",
|
|
1457
|
+
'404': "ErrorResponse",
|
|
1458
|
+
'500': "ErrorResponse",
|
|
1459
|
+
}
|
|
1460
|
+
response_data = self.api_client.call_api(
|
|
1461
|
+
*_param,
|
|
1462
|
+
_request_timeout=_request_timeout
|
|
1463
|
+
)
|
|
1464
|
+
response_data.read()
|
|
1465
|
+
return self.api_client.response_deserialize(
|
|
1466
|
+
response_data=response_data,
|
|
1467
|
+
response_types_map=_response_types_map,
|
|
1468
|
+
).data
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
@validate_call
|
|
1472
|
+
def update_agent_profile_with_http_info(
|
|
1473
|
+
self,
|
|
1474
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
1475
|
+
update_agent_profile_request: UpdateAgentProfileRequest,
|
|
1476
|
+
_request_timeout: Union[
|
|
1477
|
+
None,
|
|
1478
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1479
|
+
Tuple[
|
|
1480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1481
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1482
|
+
]
|
|
1483
|
+
] = None,
|
|
1484
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1485
|
+
_content_type: Optional[StrictStr] = None,
|
|
1486
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1487
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1488
|
+
) -> ApiResponse[AgentProfile]:
|
|
1489
|
+
"""Update an agent profile
|
|
1490
|
+
|
|
1491
|
+
Updates an agent profile including metadata and/or credentials
|
|
1492
|
+
|
|
1493
|
+
:param profile_id: The ID of the agent profile (required)
|
|
1494
|
+
:type profile_id: str
|
|
1495
|
+
:param update_agent_profile_request: (required)
|
|
1496
|
+
:type update_agent_profile_request: UpdateAgentProfileRequest
|
|
1497
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1498
|
+
number provided, it will be total request
|
|
1499
|
+
timeout. It can also be a pair (tuple) of
|
|
1500
|
+
(connection, read) timeouts.
|
|
1501
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1502
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1503
|
+
request; this effectively ignores the
|
|
1504
|
+
authentication in the spec for a single request.
|
|
1505
|
+
:type _request_auth: dict, optional
|
|
1506
|
+
:param _content_type: force content-type for the request.
|
|
1507
|
+
:type _content_type: str, Optional
|
|
1508
|
+
:param _headers: set to override the headers for a single
|
|
1509
|
+
request; this effectively ignores the headers
|
|
1510
|
+
in the spec for a single request.
|
|
1511
|
+
:type _headers: dict, optional
|
|
1512
|
+
:param _host_index: set to override the host_index for a single
|
|
1513
|
+
request; this effectively ignores the host_index
|
|
1514
|
+
in the spec for a single request.
|
|
1515
|
+
:type _host_index: int, optional
|
|
1516
|
+
:return: Returns the result object.
|
|
1517
|
+
""" # noqa: E501
|
|
1518
|
+
|
|
1519
|
+
_param = self._update_agent_profile_serialize(
|
|
1520
|
+
profile_id=profile_id,
|
|
1521
|
+
update_agent_profile_request=update_agent_profile_request,
|
|
1522
|
+
_request_auth=_request_auth,
|
|
1523
|
+
_content_type=_content_type,
|
|
1524
|
+
_headers=_headers,
|
|
1525
|
+
_host_index=_host_index
|
|
1526
|
+
)
|
|
1527
|
+
|
|
1528
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1529
|
+
'200': "AgentProfile",
|
|
1530
|
+
'400': "ErrorResponse",
|
|
1531
|
+
'401': "ErrorResponse",
|
|
1532
|
+
'403': "ErrorResponse",
|
|
1533
|
+
'404': "ErrorResponse",
|
|
1534
|
+
'500': "ErrorResponse",
|
|
1535
|
+
}
|
|
1536
|
+
response_data = self.api_client.call_api(
|
|
1537
|
+
*_param,
|
|
1538
|
+
_request_timeout=_request_timeout
|
|
1539
|
+
)
|
|
1540
|
+
response_data.read()
|
|
1541
|
+
return self.api_client.response_deserialize(
|
|
1542
|
+
response_data=response_data,
|
|
1543
|
+
response_types_map=_response_types_map,
|
|
1544
|
+
)
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
@validate_call
|
|
1548
|
+
def update_agent_profile_without_preload_content(
|
|
1549
|
+
self,
|
|
1550
|
+
profile_id: Annotated[StrictStr, Field(description="The ID of the agent profile")],
|
|
1551
|
+
update_agent_profile_request: UpdateAgentProfileRequest,
|
|
1552
|
+
_request_timeout: Union[
|
|
1553
|
+
None,
|
|
1554
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1555
|
+
Tuple[
|
|
1556
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1557
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1558
|
+
]
|
|
1559
|
+
] = None,
|
|
1560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1561
|
+
_content_type: Optional[StrictStr] = None,
|
|
1562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1564
|
+
) -> RESTResponseType:
|
|
1565
|
+
"""Update an agent profile
|
|
1566
|
+
|
|
1567
|
+
Updates an agent profile including metadata and/or credentials
|
|
1568
|
+
|
|
1569
|
+
:param profile_id: The ID of the agent profile (required)
|
|
1570
|
+
:type profile_id: str
|
|
1571
|
+
:param update_agent_profile_request: (required)
|
|
1572
|
+
:type update_agent_profile_request: UpdateAgentProfileRequest
|
|
1573
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1574
|
+
number provided, it will be total request
|
|
1575
|
+
timeout. It can also be a pair (tuple) of
|
|
1576
|
+
(connection, read) timeouts.
|
|
1577
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1578
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1579
|
+
request; this effectively ignores the
|
|
1580
|
+
authentication in the spec for a single request.
|
|
1581
|
+
:type _request_auth: dict, optional
|
|
1582
|
+
:param _content_type: force content-type for the request.
|
|
1583
|
+
:type _content_type: str, Optional
|
|
1584
|
+
:param _headers: set to override the headers for a single
|
|
1585
|
+
request; this effectively ignores the headers
|
|
1586
|
+
in the spec for a single request.
|
|
1587
|
+
:type _headers: dict, optional
|
|
1588
|
+
:param _host_index: set to override the host_index for a single
|
|
1589
|
+
request; this effectively ignores the host_index
|
|
1590
|
+
in the spec for a single request.
|
|
1591
|
+
:type _host_index: int, optional
|
|
1592
|
+
:return: Returns the result object.
|
|
1593
|
+
""" # noqa: E501
|
|
1594
|
+
|
|
1595
|
+
_param = self._update_agent_profile_serialize(
|
|
1596
|
+
profile_id=profile_id,
|
|
1597
|
+
update_agent_profile_request=update_agent_profile_request,
|
|
1598
|
+
_request_auth=_request_auth,
|
|
1599
|
+
_content_type=_content_type,
|
|
1600
|
+
_headers=_headers,
|
|
1601
|
+
_host_index=_host_index
|
|
1602
|
+
)
|
|
1603
|
+
|
|
1604
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1605
|
+
'200': "AgentProfile",
|
|
1606
|
+
'400': "ErrorResponse",
|
|
1607
|
+
'401': "ErrorResponse",
|
|
1608
|
+
'403': "ErrorResponse",
|
|
1609
|
+
'404': "ErrorResponse",
|
|
1610
|
+
'500': "ErrorResponse",
|
|
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 _update_agent_profile_serialize(
|
|
1620
|
+
self,
|
|
1621
|
+
profile_id,
|
|
1622
|
+
update_agent_profile_request,
|
|
1623
|
+
_request_auth,
|
|
1624
|
+
_content_type,
|
|
1625
|
+
_headers,
|
|
1626
|
+
_host_index,
|
|
1627
|
+
) -> RequestSerialized:
|
|
1628
|
+
|
|
1629
|
+
_host = None
|
|
1630
|
+
|
|
1631
|
+
_collection_formats: Dict[str, str] = {
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
_path_params: Dict[str, str] = {}
|
|
1635
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1636
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1637
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1638
|
+
_files: Dict[
|
|
1639
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1640
|
+
] = {}
|
|
1641
|
+
_body_params: Optional[bytes] = None
|
|
1642
|
+
|
|
1643
|
+
# process the path parameters
|
|
1644
|
+
if profile_id is not None:
|
|
1645
|
+
_path_params['profile_id'] = profile_id
|
|
1646
|
+
# process the query parameters
|
|
1647
|
+
# process the header parameters
|
|
1648
|
+
# process the form parameters
|
|
1649
|
+
# process the body parameter
|
|
1650
|
+
if update_agent_profile_request is not None:
|
|
1651
|
+
_body_params = update_agent_profile_request
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
# set the HTTP header `Accept`
|
|
1655
|
+
if 'Accept' not in _header_params:
|
|
1656
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1657
|
+
[
|
|
1658
|
+
'application/json'
|
|
1659
|
+
]
|
|
1660
|
+
)
|
|
1661
|
+
|
|
1662
|
+
# set the HTTP header `Content-Type`
|
|
1663
|
+
if _content_type:
|
|
1664
|
+
_header_params['Content-Type'] = _content_type
|
|
1665
|
+
else:
|
|
1666
|
+
_default_content_type = (
|
|
1667
|
+
self.api_client.select_header_content_type(
|
|
1668
|
+
[
|
|
1669
|
+
'application/json'
|
|
1670
|
+
]
|
|
1671
|
+
)
|
|
1672
|
+
)
|
|
1673
|
+
if _default_content_type is not None:
|
|
1674
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1675
|
+
|
|
1676
|
+
# authentication setting
|
|
1677
|
+
_auth_settings: List[str] = [
|
|
1678
|
+
'ApiKeyAuth'
|
|
1679
|
+
]
|
|
1680
|
+
|
|
1681
|
+
return self.api_client.param_serialize(
|
|
1682
|
+
method='PATCH',
|
|
1683
|
+
resource_path='/agent-profiles/{profile_id}',
|
|
1684
|
+
path_params=_path_params,
|
|
1685
|
+
query_params=_query_params,
|
|
1686
|
+
header_params=_header_params,
|
|
1687
|
+
body=_body_params,
|
|
1688
|
+
post_params=_form_params,
|
|
1689
|
+
files=_files,
|
|
1690
|
+
auth_settings=_auth_settings,
|
|
1691
|
+
collection_formats=_collection_formats,
|
|
1692
|
+
_host=_host,
|
|
1693
|
+
_request_auth=_request_auth
|
|
1694
|
+
)
|
|
1695
|
+
|
|
1696
|
+
|