graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.29.0a20250114__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- graphscope/flex/rest/__init__.py +59 -44
- graphscope/flex/rest/api/__init__.py +2 -4
- graphscope/flex/rest/api/alert_api.py +721 -394
- graphscope/flex/rest/api/{legacy_api.py → data_source_api.py} +260 -189
- graphscope/flex/rest/api/deployment_api.py +388 -138
- graphscope/flex/rest/api/graph_api.py +858 -260
- graphscope/flex/rest/api/job_api.py +286 -203
- graphscope/flex/rest/api/service_api.py +320 -39
- graphscope/flex/rest/api/{procedure_api.py → stored_procedure_api.py} +296 -237
- graphscope/flex/rest/api/utils_api.py +18 -13
- graphscope/flex/rest/api_client.py +60 -30
- graphscope/flex/rest/configuration.py +19 -5
- graphscope/flex/rest/exceptions.py +2 -2
- graphscope/flex/rest/models/__init__.py +57 -40
- graphscope/flex/rest/models/{vertex_type.py → base_edge_type.py} +25 -25
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner.py → base_edge_type_vertex_type_pair_relations_inner.py} +17 -17
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner_x_csr_params.py → base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py} +11 -11
- graphscope/flex/rest/models/{model_property.py → base_property_meta.py} +28 -19
- graphscope/flex/rest/models/base_vertex_type.py +96 -0
- graphscope/flex/rest/models/{procedure_params_inner.py → base_vertex_type_x_csr_params.py} +15 -17
- graphscope/flex/rest/models/column_mapping.py +13 -13
- graphscope/flex/rest/models/{edge_mapping_source_vertex_mappings_inner_column.py → column_mapping_column.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config_data_source.py → create_alert_receiver_request.py} +29 -24
- graphscope/flex/rest/models/{alert_rule.py → create_alert_rule_request.py} +19 -25
- graphscope/flex/rest/models/create_dataloading_job_response.py +88 -0
- graphscope/flex/rest/models/create_edge_type.py +114 -0
- graphscope/flex/rest/models/{graph.py → create_graph_request.py} +27 -33
- graphscope/flex/rest/models/create_graph_response.py +88 -0
- graphscope/flex/rest/models/{model_schema.py → create_graph_schema_request.py} +25 -25
- graphscope/flex/rest/models/{groot_vertex_type.py → create_property_meta.py} +32 -25
- graphscope/flex/rest/models/{graph_stored_procedures.py → create_stored_proc_request.py} +26 -23
- graphscope/flex/rest/models/create_stored_proc_response.py +88 -0
- graphscope/flex/rest/models/create_vertex_type.py +108 -0
- graphscope/flex/rest/models/{groot_dataloading_job_config.py → dataloading_job_config.py} +45 -21
- graphscope/flex/rest/models/{groot_dataloading_job_config_edges_inner.py → dataloading_job_config_edges_inner.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config.py → dataloading_job_config_loading_config.py} +16 -22
- graphscope/flex/rest/models/{schema_mapping_loading_config_format.py → dataloading_job_config_loading_config_format.py} +12 -12
- graphscope/flex/rest/models/{groot_edge_type_relations_inner.py → dataloading_job_config_vertices_inner.py} +15 -17
- graphscope/flex/rest/models/dataloading_mr_job_config.py +88 -0
- graphscope/flex/rest/models/date_type.py +88 -0
- graphscope/flex/rest/models/edge_mapping.py +23 -25
- graphscope/flex/rest/models/edge_mapping_type_triplet.py +12 -12
- graphscope/flex/rest/models/error.py +90 -0
- graphscope/flex/rest/models/{alert_message.py → get_alert_message_response.py} +23 -32
- graphscope/flex/rest/models/{alert_receiver.py → get_alert_receiver_response.py} +22 -25
- graphscope/flex/rest/models/{connection_status.py → get_alert_rule_response.py} +37 -33
- graphscope/flex/rest/models/{edge_type.py → get_edge_type.py} +33 -27
- graphscope/flex/rest/models/get_graph_response.py +139 -0
- graphscope/flex/rest/models/{groot_schema.py → get_graph_schema_response.py} +32 -32
- graphscope/flex/rest/models/get_pod_log_response.py +88 -0
- graphscope/flex/rest/models/{edge_mapping_destination_vertex_mappings_inner.py → get_property_meta.py} +34 -19
- graphscope/flex/rest/models/get_resource_usage_response.py +105 -0
- graphscope/flex/rest/models/get_storage_usage_response.py +88 -0
- graphscope/flex/rest/models/{procedure.py → get_stored_proc_response.py} +37 -36
- graphscope/flex/rest/models/{groot_edge_type.py → get_vertex_type.py} +33 -31
- graphscope/flex/rest/models/gs_data_type.py +152 -0
- graphscope/flex/rest/models/job_status.py +14 -17
- graphscope/flex/rest/models/{connection.py → long_text.py} +20 -15
- graphscope/flex/rest/models/node_status.py +15 -15
- graphscope/flex/rest/models/parameter.py +96 -0
- graphscope/flex/rest/models/{deployment_info_graphs_info_value.py → pod_status.py} +34 -20
- graphscope/flex/rest/models/{property_property_type.py → primitive_type.py} +16 -19
- graphscope/flex/rest/models/resource_usage.py +92 -0
- graphscope/flex/rest/models/{deployment_info.py → running_deployment_info.py} +42 -45
- graphscope/flex/rest/models/running_deployment_status.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +18 -26
- graphscope/flex/rest/models/service_status.py +29 -13
- graphscope/flex/rest/models/service_status_sdk_endpoints.py +8 -8
- graphscope/flex/rest/models/start_service_request.py +11 -11
- graphscope/flex/rest/models/{groot_graph.py → stored_procedure_meta.py} +46 -36
- graphscope/flex/rest/models/string_type.py +92 -0
- graphscope/flex/rest/models/string_type_string.py +124 -0
- graphscope/flex/rest/models/temporal_type.py +92 -0
- graphscope/flex/rest/models/temporal_type_temporal.py +138 -0
- graphscope/flex/rest/models/time_stamp_type.py +88 -0
- graphscope/flex/rest/models/update_alert_message_status_request.py +97 -0
- graphscope/flex/rest/models/update_stored_proc_request.py +88 -0
- graphscope/flex/rest/models/upload_file_response.py +90 -0
- graphscope/flex/rest/models/vertex_mapping.py +13 -13
- graphscope/flex/rest/rest.py +4 -2
- graphscope_flex-0.29.0a20250114.dist-info/METADATA +19 -0
- graphscope_flex-0.29.0a20250114.dist-info/RECORD +86 -0
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250114.dist-info}/WHEEL +1 -1
- graphscope/flex/rest/api/connection_api.py +0 -550
- graphscope/flex/rest/api/datasource_api.py +0 -2308
- graphscope/flex/rest/models/data_source.py +0 -106
- graphscope/flex/rest/models/deployment_status.py +0 -108
- graphscope/flex/rest/models/edge_data_source.py +0 -112
- graphscope/flex/rest/models/edge_mapping_source_vertex_mappings_inner.py +0 -92
- graphscope/flex/rest/models/groot_graph_gremlin_interface.py +0 -94
- graphscope/flex/rest/models/groot_property.py +0 -104
- graphscope/flex/rest/models/update_alert_messages_request.py +0 -110
- graphscope/flex/rest/models/vertex_data_source.py +0 -104
- graphscope_flex-0.27.0.dist-info/METADATA +0 -17
- graphscope_flex-0.27.0.dist-info/RECORD +0 -71
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250114.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
GraphScope FLEX HTTP SERVICE API
|
5
5
|
|
6
|
-
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: graphscope@alibaba-inc.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -18,15 +18,18 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
20
|
from pydantic import StrictStr
|
21
|
-
from typing import Optional
|
22
|
-
from graphscope.flex.rest.models.
|
21
|
+
from typing import List, Optional
|
22
|
+
from graphscope.flex.rest.models.create_stored_proc_request import CreateStoredProcRequest
|
23
|
+
from graphscope.flex.rest.models.create_stored_proc_response import CreateStoredProcResponse
|
24
|
+
from graphscope.flex.rest.models.get_stored_proc_response import GetStoredProcResponse
|
25
|
+
from graphscope.flex.rest.models.update_stored_proc_request import UpdateStoredProcRequest
|
23
26
|
|
24
27
|
from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
|
25
28
|
from graphscope.flex.rest.api_response import ApiResponse
|
26
29
|
from graphscope.flex.rest.rest import RESTResponseType
|
27
30
|
|
28
31
|
|
29
|
-
class
|
32
|
+
class StoredProcedureApi:
|
30
33
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
31
34
|
Ref: https://openapi-generator.tech
|
32
35
|
|
@@ -40,10 +43,10 @@ class ProcedureApi:
|
|
40
43
|
|
41
44
|
|
42
45
|
@validate_call
|
43
|
-
def
|
46
|
+
def create_stored_procedure(
|
44
47
|
self,
|
45
|
-
|
46
|
-
|
48
|
+
graph_id: StrictStr,
|
49
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
47
50
|
_request_timeout: Union[
|
48
51
|
None,
|
49
52
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -56,15 +59,15 @@ class ProcedureApi:
|
|
56
59
|
_content_type: Optional[StrictStr] = None,
|
57
60
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
58
61
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
59
|
-
) ->
|
60
|
-
"""
|
62
|
+
) -> CreateStoredProcResponse:
|
63
|
+
"""create_stored_procedure
|
61
64
|
|
62
65
|
Create a new stored procedure on a certain graph
|
63
66
|
|
64
|
-
:param
|
65
|
-
:type
|
66
|
-
:param
|
67
|
-
:type
|
67
|
+
:param graph_id: (required)
|
68
|
+
:type graph_id: str
|
69
|
+
:param create_stored_proc_request: (required)
|
70
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
68
71
|
:param _request_timeout: timeout setting for this request. If one
|
69
72
|
number provided, it will be total request
|
70
73
|
timeout. It can also be a pair (tuple) of
|
@@ -87,9 +90,9 @@ class ProcedureApi:
|
|
87
90
|
:return: Returns the result object.
|
88
91
|
""" # noqa: E501
|
89
92
|
|
90
|
-
_param = self.
|
91
|
-
|
92
|
-
|
93
|
+
_param = self._create_stored_procedure_serialize(
|
94
|
+
graph_id=graph_id,
|
95
|
+
create_stored_proc_request=create_stored_proc_request,
|
93
96
|
_request_auth=_request_auth,
|
94
97
|
_content_type=_content_type,
|
95
98
|
_headers=_headers,
|
@@ -97,7 +100,9 @@ class ProcedureApi:
|
|
97
100
|
)
|
98
101
|
|
99
102
|
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
-
'200': "
|
103
|
+
'200': "CreateStoredProcResponse",
|
104
|
+
'400': "Error",
|
105
|
+
'500': "Error",
|
101
106
|
}
|
102
107
|
response_data = self.api_client.call_api(
|
103
108
|
*_param,
|
@@ -111,10 +116,10 @@ class ProcedureApi:
|
|
111
116
|
|
112
117
|
|
113
118
|
@validate_call
|
114
|
-
def
|
119
|
+
def create_stored_procedure_with_http_info(
|
115
120
|
self,
|
116
|
-
|
117
|
-
|
121
|
+
graph_id: StrictStr,
|
122
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
118
123
|
_request_timeout: Union[
|
119
124
|
None,
|
120
125
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -127,15 +132,15 @@ class ProcedureApi:
|
|
127
132
|
_content_type: Optional[StrictStr] = None,
|
128
133
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
129
134
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
130
|
-
) -> ApiResponse[
|
131
|
-
"""
|
135
|
+
) -> ApiResponse[CreateStoredProcResponse]:
|
136
|
+
"""create_stored_procedure
|
132
137
|
|
133
138
|
Create a new stored procedure on a certain graph
|
134
139
|
|
135
|
-
:param
|
136
|
-
:type
|
137
|
-
:param
|
138
|
-
:type
|
140
|
+
:param graph_id: (required)
|
141
|
+
:type graph_id: str
|
142
|
+
:param create_stored_proc_request: (required)
|
143
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
139
144
|
:param _request_timeout: timeout setting for this request. If one
|
140
145
|
number provided, it will be total request
|
141
146
|
timeout. It can also be a pair (tuple) of
|
@@ -158,9 +163,9 @@ class ProcedureApi:
|
|
158
163
|
:return: Returns the result object.
|
159
164
|
""" # noqa: E501
|
160
165
|
|
161
|
-
_param = self.
|
162
|
-
|
163
|
-
|
166
|
+
_param = self._create_stored_procedure_serialize(
|
167
|
+
graph_id=graph_id,
|
168
|
+
create_stored_proc_request=create_stored_proc_request,
|
164
169
|
_request_auth=_request_auth,
|
165
170
|
_content_type=_content_type,
|
166
171
|
_headers=_headers,
|
@@ -168,7 +173,9 @@ class ProcedureApi:
|
|
168
173
|
)
|
169
174
|
|
170
175
|
_response_types_map: Dict[str, Optional[str]] = {
|
171
|
-
'200': "
|
176
|
+
'200': "CreateStoredProcResponse",
|
177
|
+
'400': "Error",
|
178
|
+
'500': "Error",
|
172
179
|
}
|
173
180
|
response_data = self.api_client.call_api(
|
174
181
|
*_param,
|
@@ -182,10 +189,10 @@ class ProcedureApi:
|
|
182
189
|
|
183
190
|
|
184
191
|
@validate_call
|
185
|
-
def
|
192
|
+
def create_stored_procedure_without_preload_content(
|
186
193
|
self,
|
187
|
-
|
188
|
-
|
194
|
+
graph_id: StrictStr,
|
195
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
189
196
|
_request_timeout: Union[
|
190
197
|
None,
|
191
198
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -199,14 +206,14 @@ class ProcedureApi:
|
|
199
206
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
200
207
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
201
208
|
) -> RESTResponseType:
|
202
|
-
"""
|
209
|
+
"""create_stored_procedure
|
203
210
|
|
204
211
|
Create a new stored procedure on a certain graph
|
205
212
|
|
206
|
-
:param
|
207
|
-
:type
|
208
|
-
:param
|
209
|
-
:type
|
213
|
+
:param graph_id: (required)
|
214
|
+
:type graph_id: str
|
215
|
+
:param create_stored_proc_request: (required)
|
216
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
210
217
|
:param _request_timeout: timeout setting for this request. If one
|
211
218
|
number provided, it will be total request
|
212
219
|
timeout. It can also be a pair (tuple) of
|
@@ -229,9 +236,9 @@ class ProcedureApi:
|
|
229
236
|
:return: Returns the result object.
|
230
237
|
""" # noqa: E501
|
231
238
|
|
232
|
-
_param = self.
|
233
|
-
|
234
|
-
|
239
|
+
_param = self._create_stored_procedure_serialize(
|
240
|
+
graph_id=graph_id,
|
241
|
+
create_stored_proc_request=create_stored_proc_request,
|
235
242
|
_request_auth=_request_auth,
|
236
243
|
_content_type=_content_type,
|
237
244
|
_headers=_headers,
|
@@ -239,7 +246,9 @@ class ProcedureApi:
|
|
239
246
|
)
|
240
247
|
|
241
248
|
_response_types_map: Dict[str, Optional[str]] = {
|
242
|
-
'200': "
|
249
|
+
'200': "CreateStoredProcResponse",
|
250
|
+
'400': "Error",
|
251
|
+
'500': "Error",
|
243
252
|
}
|
244
253
|
response_data = self.api_client.call_api(
|
245
254
|
*_param,
|
@@ -248,10 +257,10 @@ class ProcedureApi:
|
|
248
257
|
return response_data.response
|
249
258
|
|
250
259
|
|
251
|
-
def
|
260
|
+
def _create_stored_procedure_serialize(
|
252
261
|
self,
|
253
|
-
|
254
|
-
|
262
|
+
graph_id,
|
263
|
+
create_stored_proc_request,
|
255
264
|
_request_auth,
|
256
265
|
_content_type,
|
257
266
|
_headers,
|
@@ -267,26 +276,27 @@ class ProcedureApi:
|
|
267
276
|
_query_params: List[Tuple[str, str]] = []
|
268
277
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
269
278
|
_form_params: List[Tuple[str, str]] = []
|
270
|
-
_files: Dict[str, str] = {}
|
279
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
271
280
|
_body_params: Optional[bytes] = None
|
272
281
|
|
273
282
|
# process the path parameters
|
274
|
-
if
|
275
|
-
_path_params['
|
283
|
+
if graph_id is not None:
|
284
|
+
_path_params['graph_id'] = graph_id
|
276
285
|
# process the query parameters
|
277
286
|
# process the header parameters
|
278
287
|
# process the form parameters
|
279
288
|
# process the body parameter
|
280
|
-
if
|
281
|
-
_body_params =
|
289
|
+
if create_stored_proc_request is not None:
|
290
|
+
_body_params = create_stored_proc_request
|
282
291
|
|
283
292
|
|
284
293
|
# set the HTTP header `Accept`
|
285
|
-
|
286
|
-
[
|
287
|
-
|
288
|
-
|
289
|
-
|
294
|
+
if 'Accept' not in _header_params:
|
295
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
296
|
+
[
|
297
|
+
'application/json'
|
298
|
+
]
|
299
|
+
)
|
290
300
|
|
291
301
|
# set the HTTP header `Content-Type`
|
292
302
|
if _content_type:
|
@@ -308,7 +318,7 @@ class ProcedureApi:
|
|
308
318
|
|
309
319
|
return self.api_client.param_serialize(
|
310
320
|
method='POST',
|
311
|
-
resource_path='/api/v1/graph/{
|
321
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc',
|
312
322
|
path_params=_path_params,
|
313
323
|
query_params=_query_params,
|
314
324
|
header_params=_header_params,
|
@@ -325,10 +335,10 @@ class ProcedureApi:
|
|
325
335
|
|
326
336
|
|
327
337
|
@validate_call
|
328
|
-
def
|
338
|
+
def delete_stored_procedure_by_id(
|
329
339
|
self,
|
330
|
-
|
331
|
-
|
340
|
+
graph_id: StrictStr,
|
341
|
+
stored_procedure_id: StrictStr,
|
332
342
|
_request_timeout: Union[
|
333
343
|
None,
|
334
344
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -342,14 +352,14 @@ class ProcedureApi:
|
|
342
352
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
343
353
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
344
354
|
) -> str:
|
345
|
-
"""
|
355
|
+
"""delete_stored_procedure_by_id
|
346
356
|
|
347
|
-
Delete a stored procedure
|
357
|
+
Delete a stored procedure by ID
|
348
358
|
|
349
|
-
:param
|
350
|
-
:type
|
351
|
-
:param
|
352
|
-
:type
|
359
|
+
:param graph_id: (required)
|
360
|
+
:type graph_id: str
|
361
|
+
:param stored_procedure_id: (required)
|
362
|
+
:type stored_procedure_id: str
|
353
363
|
:param _request_timeout: timeout setting for this request. If one
|
354
364
|
number provided, it will be total request
|
355
365
|
timeout. It can also be a pair (tuple) of
|
@@ -372,9 +382,9 @@ class ProcedureApi:
|
|
372
382
|
:return: Returns the result object.
|
373
383
|
""" # noqa: E501
|
374
384
|
|
375
|
-
_param = self.
|
376
|
-
|
377
|
-
|
385
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
386
|
+
graph_id=graph_id,
|
387
|
+
stored_procedure_id=stored_procedure_id,
|
378
388
|
_request_auth=_request_auth,
|
379
389
|
_content_type=_content_type,
|
380
390
|
_headers=_headers,
|
@@ -383,6 +393,7 @@ class ProcedureApi:
|
|
383
393
|
|
384
394
|
_response_types_map: Dict[str, Optional[str]] = {
|
385
395
|
'200': "str",
|
396
|
+
'500': "Error",
|
386
397
|
}
|
387
398
|
response_data = self.api_client.call_api(
|
388
399
|
*_param,
|
@@ -396,10 +407,10 @@ class ProcedureApi:
|
|
396
407
|
|
397
408
|
|
398
409
|
@validate_call
|
399
|
-
def
|
410
|
+
def delete_stored_procedure_by_id_with_http_info(
|
400
411
|
self,
|
401
|
-
|
402
|
-
|
412
|
+
graph_id: StrictStr,
|
413
|
+
stored_procedure_id: StrictStr,
|
403
414
|
_request_timeout: Union[
|
404
415
|
None,
|
405
416
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -413,14 +424,14 @@ class ProcedureApi:
|
|
413
424
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
414
425
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
415
426
|
) -> ApiResponse[str]:
|
416
|
-
"""
|
427
|
+
"""delete_stored_procedure_by_id
|
417
428
|
|
418
|
-
Delete a stored procedure
|
429
|
+
Delete a stored procedure by ID
|
419
430
|
|
420
|
-
:param
|
421
|
-
:type
|
422
|
-
:param
|
423
|
-
:type
|
431
|
+
:param graph_id: (required)
|
432
|
+
:type graph_id: str
|
433
|
+
:param stored_procedure_id: (required)
|
434
|
+
:type stored_procedure_id: str
|
424
435
|
:param _request_timeout: timeout setting for this request. If one
|
425
436
|
number provided, it will be total request
|
426
437
|
timeout. It can also be a pair (tuple) of
|
@@ -443,9 +454,9 @@ class ProcedureApi:
|
|
443
454
|
:return: Returns the result object.
|
444
455
|
""" # noqa: E501
|
445
456
|
|
446
|
-
_param = self.
|
447
|
-
|
448
|
-
|
457
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
458
|
+
graph_id=graph_id,
|
459
|
+
stored_procedure_id=stored_procedure_id,
|
449
460
|
_request_auth=_request_auth,
|
450
461
|
_content_type=_content_type,
|
451
462
|
_headers=_headers,
|
@@ -454,6 +465,7 @@ class ProcedureApi:
|
|
454
465
|
|
455
466
|
_response_types_map: Dict[str, Optional[str]] = {
|
456
467
|
'200': "str",
|
468
|
+
'500': "Error",
|
457
469
|
}
|
458
470
|
response_data = self.api_client.call_api(
|
459
471
|
*_param,
|
@@ -467,10 +479,10 @@ class ProcedureApi:
|
|
467
479
|
|
468
480
|
|
469
481
|
@validate_call
|
470
|
-
def
|
482
|
+
def delete_stored_procedure_by_id_without_preload_content(
|
471
483
|
self,
|
472
|
-
|
473
|
-
|
484
|
+
graph_id: StrictStr,
|
485
|
+
stored_procedure_id: StrictStr,
|
474
486
|
_request_timeout: Union[
|
475
487
|
None,
|
476
488
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -484,14 +496,14 @@ class ProcedureApi:
|
|
484
496
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
485
497
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
486
498
|
) -> RESTResponseType:
|
487
|
-
"""
|
499
|
+
"""delete_stored_procedure_by_id
|
488
500
|
|
489
|
-
Delete a stored procedure
|
501
|
+
Delete a stored procedure by ID
|
490
502
|
|
491
|
-
:param
|
492
|
-
:type
|
493
|
-
:param
|
494
|
-
:type
|
503
|
+
:param graph_id: (required)
|
504
|
+
:type graph_id: str
|
505
|
+
:param stored_procedure_id: (required)
|
506
|
+
:type stored_procedure_id: str
|
495
507
|
:param _request_timeout: timeout setting for this request. If one
|
496
508
|
number provided, it will be total request
|
497
509
|
timeout. It can also be a pair (tuple) of
|
@@ -514,9 +526,9 @@ class ProcedureApi:
|
|
514
526
|
:return: Returns the result object.
|
515
527
|
""" # noqa: E501
|
516
528
|
|
517
|
-
_param = self.
|
518
|
-
|
519
|
-
|
529
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
530
|
+
graph_id=graph_id,
|
531
|
+
stored_procedure_id=stored_procedure_id,
|
520
532
|
_request_auth=_request_auth,
|
521
533
|
_content_type=_content_type,
|
522
534
|
_headers=_headers,
|
@@ -525,6 +537,7 @@ class ProcedureApi:
|
|
525
537
|
|
526
538
|
_response_types_map: Dict[str, Optional[str]] = {
|
527
539
|
'200': "str",
|
540
|
+
'500': "Error",
|
528
541
|
}
|
529
542
|
response_data = self.api_client.call_api(
|
530
543
|
*_param,
|
@@ -533,10 +546,10 @@ class ProcedureApi:
|
|
533
546
|
return response_data.response
|
534
547
|
|
535
548
|
|
536
|
-
def
|
549
|
+
def _delete_stored_procedure_by_id_serialize(
|
537
550
|
self,
|
538
|
-
|
539
|
-
|
551
|
+
graph_id,
|
552
|
+
stored_procedure_id,
|
540
553
|
_request_auth,
|
541
554
|
_content_type,
|
542
555
|
_headers,
|
@@ -552,14 +565,14 @@ class ProcedureApi:
|
|
552
565
|
_query_params: List[Tuple[str, str]] = []
|
553
566
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
554
567
|
_form_params: List[Tuple[str, str]] = []
|
555
|
-
_files: Dict[str, str] = {}
|
568
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
556
569
|
_body_params: Optional[bytes] = None
|
557
570
|
|
558
571
|
# process the path parameters
|
559
|
-
if
|
560
|
-
_path_params['
|
561
|
-
if
|
562
|
-
_path_params['
|
572
|
+
if graph_id is not None:
|
573
|
+
_path_params['graph_id'] = graph_id
|
574
|
+
if stored_procedure_id is not None:
|
575
|
+
_path_params['stored_procedure_id'] = stored_procedure_id
|
563
576
|
# process the query parameters
|
564
577
|
# process the header parameters
|
565
578
|
# process the form parameters
|
@@ -567,11 +580,12 @@ class ProcedureApi:
|
|
567
580
|
|
568
581
|
|
569
582
|
# set the HTTP header `Accept`
|
570
|
-
|
571
|
-
[
|
572
|
-
|
573
|
-
|
574
|
-
|
583
|
+
if 'Accept' not in _header_params:
|
584
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
585
|
+
[
|
586
|
+
'application/json'
|
587
|
+
]
|
588
|
+
)
|
575
589
|
|
576
590
|
|
577
591
|
# authentication setting
|
@@ -580,7 +594,7 @@ class ProcedureApi:
|
|
580
594
|
|
581
595
|
return self.api_client.param_serialize(
|
582
596
|
method='DELETE',
|
583
|
-
resource_path='/api/v1/graph/{
|
597
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
584
598
|
path_params=_path_params,
|
585
599
|
query_params=_query_params,
|
586
600
|
header_params=_header_params,
|
@@ -597,8 +611,10 @@ class ProcedureApi:
|
|
597
611
|
|
598
612
|
|
599
613
|
@validate_call
|
600
|
-
def
|
614
|
+
def get_stored_procedure_by_id(
|
601
615
|
self,
|
616
|
+
graph_id: StrictStr,
|
617
|
+
stored_procedure_id: StrictStr,
|
602
618
|
_request_timeout: Union[
|
603
619
|
None,
|
604
620
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -611,11 +627,15 @@ class ProcedureApi:
|
|
611
627
|
_content_type: Optional[StrictStr] = None,
|
612
628
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
613
629
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
614
|
-
) ->
|
615
|
-
"""
|
630
|
+
) -> GetStoredProcResponse:
|
631
|
+
"""get_stored_procedure_by_id
|
616
632
|
|
617
|
-
|
633
|
+
Get a stored procedure by ID
|
618
634
|
|
635
|
+
:param graph_id: (required)
|
636
|
+
:type graph_id: str
|
637
|
+
:param stored_procedure_id: (required)
|
638
|
+
:type stored_procedure_id: str
|
619
639
|
:param _request_timeout: timeout setting for this request. If one
|
620
640
|
number provided, it will be total request
|
621
641
|
timeout. It can also be a pair (tuple) of
|
@@ -638,7 +658,9 @@ class ProcedureApi:
|
|
638
658
|
:return: Returns the result object.
|
639
659
|
""" # noqa: E501
|
640
660
|
|
641
|
-
_param = self.
|
661
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
662
|
+
graph_id=graph_id,
|
663
|
+
stored_procedure_id=stored_procedure_id,
|
642
664
|
_request_auth=_request_auth,
|
643
665
|
_content_type=_content_type,
|
644
666
|
_headers=_headers,
|
@@ -646,7 +668,8 @@ class ProcedureApi:
|
|
646
668
|
)
|
647
669
|
|
648
670
|
_response_types_map: Dict[str, Optional[str]] = {
|
649
|
-
'200': "
|
671
|
+
'200': "GetStoredProcResponse",
|
672
|
+
'500': "Error",
|
650
673
|
}
|
651
674
|
response_data = self.api_client.call_api(
|
652
675
|
*_param,
|
@@ -660,8 +683,10 @@ class ProcedureApi:
|
|
660
683
|
|
661
684
|
|
662
685
|
@validate_call
|
663
|
-
def
|
686
|
+
def get_stored_procedure_by_id_with_http_info(
|
664
687
|
self,
|
688
|
+
graph_id: StrictStr,
|
689
|
+
stored_procedure_id: StrictStr,
|
665
690
|
_request_timeout: Union[
|
666
691
|
None,
|
667
692
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -674,11 +699,15 @@ class ProcedureApi:
|
|
674
699
|
_content_type: Optional[StrictStr] = None,
|
675
700
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
676
701
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
677
|
-
) -> ApiResponse[
|
678
|
-
"""
|
702
|
+
) -> ApiResponse[GetStoredProcResponse]:
|
703
|
+
"""get_stored_procedure_by_id
|
679
704
|
|
680
|
-
|
705
|
+
Get a stored procedure by ID
|
681
706
|
|
707
|
+
:param graph_id: (required)
|
708
|
+
:type graph_id: str
|
709
|
+
:param stored_procedure_id: (required)
|
710
|
+
:type stored_procedure_id: str
|
682
711
|
:param _request_timeout: timeout setting for this request. If one
|
683
712
|
number provided, it will be total request
|
684
713
|
timeout. It can also be a pair (tuple) of
|
@@ -701,7 +730,9 @@ class ProcedureApi:
|
|
701
730
|
:return: Returns the result object.
|
702
731
|
""" # noqa: E501
|
703
732
|
|
704
|
-
_param = self.
|
733
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
734
|
+
graph_id=graph_id,
|
735
|
+
stored_procedure_id=stored_procedure_id,
|
705
736
|
_request_auth=_request_auth,
|
706
737
|
_content_type=_content_type,
|
707
738
|
_headers=_headers,
|
@@ -709,7 +740,8 @@ class ProcedureApi:
|
|
709
740
|
)
|
710
741
|
|
711
742
|
_response_types_map: Dict[str, Optional[str]] = {
|
712
|
-
'200': "
|
743
|
+
'200': "GetStoredProcResponse",
|
744
|
+
'500': "Error",
|
713
745
|
}
|
714
746
|
response_data = self.api_client.call_api(
|
715
747
|
*_param,
|
@@ -723,8 +755,10 @@ class ProcedureApi:
|
|
723
755
|
|
724
756
|
|
725
757
|
@validate_call
|
726
|
-
def
|
758
|
+
def get_stored_procedure_by_id_without_preload_content(
|
727
759
|
self,
|
760
|
+
graph_id: StrictStr,
|
761
|
+
stored_procedure_id: StrictStr,
|
728
762
|
_request_timeout: Union[
|
729
763
|
None,
|
730
764
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -738,10 +772,14 @@ class ProcedureApi:
|
|
738
772
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
739
773
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
740
774
|
) -> RESTResponseType:
|
741
|
-
"""
|
775
|
+
"""get_stored_procedure_by_id
|
742
776
|
|
743
|
-
|
777
|
+
Get a stored procedure by ID
|
744
778
|
|
779
|
+
:param graph_id: (required)
|
780
|
+
:type graph_id: str
|
781
|
+
:param stored_procedure_id: (required)
|
782
|
+
:type stored_procedure_id: str
|
745
783
|
:param _request_timeout: timeout setting for this request. If one
|
746
784
|
number provided, it will be total request
|
747
785
|
timeout. It can also be a pair (tuple) of
|
@@ -764,7 +802,9 @@ class ProcedureApi:
|
|
764
802
|
:return: Returns the result object.
|
765
803
|
""" # noqa: E501
|
766
804
|
|
767
|
-
_param = self.
|
805
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
806
|
+
graph_id=graph_id,
|
807
|
+
stored_procedure_id=stored_procedure_id,
|
768
808
|
_request_auth=_request_auth,
|
769
809
|
_content_type=_content_type,
|
770
810
|
_headers=_headers,
|
@@ -772,7 +812,8 @@ class ProcedureApi:
|
|
772
812
|
)
|
773
813
|
|
774
814
|
_response_types_map: Dict[str, Optional[str]] = {
|
775
|
-
'200': "
|
815
|
+
'200': "GetStoredProcResponse",
|
816
|
+
'500': "Error",
|
776
817
|
}
|
777
818
|
response_data = self.api_client.call_api(
|
778
819
|
*_param,
|
@@ -781,8 +822,10 @@ class ProcedureApi:
|
|
781
822
|
return response_data.response
|
782
823
|
|
783
824
|
|
784
|
-
def
|
825
|
+
def _get_stored_procedure_by_id_serialize(
|
785
826
|
self,
|
827
|
+
graph_id,
|
828
|
+
stored_procedure_id,
|
786
829
|
_request_auth,
|
787
830
|
_content_type,
|
788
831
|
_headers,
|
@@ -798,10 +841,14 @@ class ProcedureApi:
|
|
798
841
|
_query_params: List[Tuple[str, str]] = []
|
799
842
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
800
843
|
_form_params: List[Tuple[str, str]] = []
|
801
|
-
_files: Dict[str, str] = {}
|
844
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
802
845
|
_body_params: Optional[bytes] = None
|
803
846
|
|
804
847
|
# process the path parameters
|
848
|
+
if graph_id is not None:
|
849
|
+
_path_params['graph_id'] = graph_id
|
850
|
+
if stored_procedure_id is not None:
|
851
|
+
_path_params['stored_procedure_id'] = stored_procedure_id
|
805
852
|
# process the query parameters
|
806
853
|
# process the header parameters
|
807
854
|
# process the form parameters
|
@@ -809,11 +856,12 @@ class ProcedureApi:
|
|
809
856
|
|
810
857
|
|
811
858
|
# set the HTTP header `Accept`
|
812
|
-
|
813
|
-
[
|
814
|
-
|
815
|
-
|
816
|
-
|
859
|
+
if 'Accept' not in _header_params:
|
860
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
861
|
+
[
|
862
|
+
'application/json'
|
863
|
+
]
|
864
|
+
)
|
817
865
|
|
818
866
|
|
819
867
|
# authentication setting
|
@@ -822,7 +870,7 @@ class ProcedureApi:
|
|
822
870
|
|
823
871
|
return self.api_client.param_serialize(
|
824
872
|
method='GET',
|
825
|
-
resource_path='/api/v1/
|
873
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
826
874
|
path_params=_path_params,
|
827
875
|
query_params=_query_params,
|
828
876
|
header_params=_header_params,
|
@@ -839,9 +887,9 @@ class ProcedureApi:
|
|
839
887
|
|
840
888
|
|
841
889
|
@validate_call
|
842
|
-
def
|
890
|
+
def list_stored_procedures(
|
843
891
|
self,
|
844
|
-
|
892
|
+
graph_id: StrictStr,
|
845
893
|
_request_timeout: Union[
|
846
894
|
None,
|
847
895
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -854,13 +902,13 @@ class ProcedureApi:
|
|
854
902
|
_content_type: Optional[StrictStr] = None,
|
855
903
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
856
904
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
857
|
-
) -> List[
|
858
|
-
"""
|
905
|
+
) -> List[GetStoredProcResponse]:
|
906
|
+
"""list_stored_procedures
|
859
907
|
|
860
|
-
List stored procedures on a certain graph
|
908
|
+
List all stored procedures on a certain graph
|
861
909
|
|
862
|
-
:param
|
863
|
-
:type
|
910
|
+
:param graph_id: (required)
|
911
|
+
:type graph_id: str
|
864
912
|
:param _request_timeout: timeout setting for this request. If one
|
865
913
|
number provided, it will be total request
|
866
914
|
timeout. It can also be a pair (tuple) of
|
@@ -883,8 +931,8 @@ class ProcedureApi:
|
|
883
931
|
:return: Returns the result object.
|
884
932
|
""" # noqa: E501
|
885
933
|
|
886
|
-
_param = self.
|
887
|
-
|
934
|
+
_param = self._list_stored_procedures_serialize(
|
935
|
+
graph_id=graph_id,
|
888
936
|
_request_auth=_request_auth,
|
889
937
|
_content_type=_content_type,
|
890
938
|
_headers=_headers,
|
@@ -892,7 +940,9 @@ class ProcedureApi:
|
|
892
940
|
)
|
893
941
|
|
894
942
|
_response_types_map: Dict[str, Optional[str]] = {
|
895
|
-
'200': "List[
|
943
|
+
'200': "List[GetStoredProcResponse]",
|
944
|
+
'400': "Error",
|
945
|
+
'500': "Error",
|
896
946
|
}
|
897
947
|
response_data = self.api_client.call_api(
|
898
948
|
*_param,
|
@@ -906,9 +956,9 @@ class ProcedureApi:
|
|
906
956
|
|
907
957
|
|
908
958
|
@validate_call
|
909
|
-
def
|
959
|
+
def list_stored_procedures_with_http_info(
|
910
960
|
self,
|
911
|
-
|
961
|
+
graph_id: StrictStr,
|
912
962
|
_request_timeout: Union[
|
913
963
|
None,
|
914
964
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -921,13 +971,13 @@ class ProcedureApi:
|
|
921
971
|
_content_type: Optional[StrictStr] = None,
|
922
972
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
923
973
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
924
|
-
) -> ApiResponse[List[
|
925
|
-
"""
|
974
|
+
) -> ApiResponse[List[GetStoredProcResponse]]:
|
975
|
+
"""list_stored_procedures
|
926
976
|
|
927
|
-
List stored procedures on a certain graph
|
977
|
+
List all stored procedures on a certain graph
|
928
978
|
|
929
|
-
:param
|
930
|
-
:type
|
979
|
+
:param graph_id: (required)
|
980
|
+
:type graph_id: str
|
931
981
|
:param _request_timeout: timeout setting for this request. If one
|
932
982
|
number provided, it will be total request
|
933
983
|
timeout. It can also be a pair (tuple) of
|
@@ -950,8 +1000,8 @@ class ProcedureApi:
|
|
950
1000
|
:return: Returns the result object.
|
951
1001
|
""" # noqa: E501
|
952
1002
|
|
953
|
-
_param = self.
|
954
|
-
|
1003
|
+
_param = self._list_stored_procedures_serialize(
|
1004
|
+
graph_id=graph_id,
|
955
1005
|
_request_auth=_request_auth,
|
956
1006
|
_content_type=_content_type,
|
957
1007
|
_headers=_headers,
|
@@ -959,7 +1009,9 @@ class ProcedureApi:
|
|
959
1009
|
)
|
960
1010
|
|
961
1011
|
_response_types_map: Dict[str, Optional[str]] = {
|
962
|
-
'200': "List[
|
1012
|
+
'200': "List[GetStoredProcResponse]",
|
1013
|
+
'400': "Error",
|
1014
|
+
'500': "Error",
|
963
1015
|
}
|
964
1016
|
response_data = self.api_client.call_api(
|
965
1017
|
*_param,
|
@@ -973,9 +1025,9 @@ class ProcedureApi:
|
|
973
1025
|
|
974
1026
|
|
975
1027
|
@validate_call
|
976
|
-
def
|
1028
|
+
def list_stored_procedures_without_preload_content(
|
977
1029
|
self,
|
978
|
-
|
1030
|
+
graph_id: StrictStr,
|
979
1031
|
_request_timeout: Union[
|
980
1032
|
None,
|
981
1033
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -989,12 +1041,12 @@ class ProcedureApi:
|
|
989
1041
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
990
1042
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
991
1043
|
) -> RESTResponseType:
|
992
|
-
"""
|
1044
|
+
"""list_stored_procedures
|
993
1045
|
|
994
|
-
List stored procedures on a certain graph
|
1046
|
+
List all stored procedures on a certain graph
|
995
1047
|
|
996
|
-
:param
|
997
|
-
:type
|
1048
|
+
:param graph_id: (required)
|
1049
|
+
:type graph_id: str
|
998
1050
|
:param _request_timeout: timeout setting for this request. If one
|
999
1051
|
number provided, it will be total request
|
1000
1052
|
timeout. It can also be a pair (tuple) of
|
@@ -1017,8 +1069,8 @@ class ProcedureApi:
|
|
1017
1069
|
:return: Returns the result object.
|
1018
1070
|
""" # noqa: E501
|
1019
1071
|
|
1020
|
-
_param = self.
|
1021
|
-
|
1072
|
+
_param = self._list_stored_procedures_serialize(
|
1073
|
+
graph_id=graph_id,
|
1022
1074
|
_request_auth=_request_auth,
|
1023
1075
|
_content_type=_content_type,
|
1024
1076
|
_headers=_headers,
|
@@ -1026,7 +1078,9 @@ class ProcedureApi:
|
|
1026
1078
|
)
|
1027
1079
|
|
1028
1080
|
_response_types_map: Dict[str, Optional[str]] = {
|
1029
|
-
'200': "List[
|
1081
|
+
'200': "List[GetStoredProcResponse]",
|
1082
|
+
'400': "Error",
|
1083
|
+
'500': "Error",
|
1030
1084
|
}
|
1031
1085
|
response_data = self.api_client.call_api(
|
1032
1086
|
*_param,
|
@@ -1035,9 +1089,9 @@ class ProcedureApi:
|
|
1035
1089
|
return response_data.response
|
1036
1090
|
|
1037
1091
|
|
1038
|
-
def
|
1092
|
+
def _list_stored_procedures_serialize(
|
1039
1093
|
self,
|
1040
|
-
|
1094
|
+
graph_id,
|
1041
1095
|
_request_auth,
|
1042
1096
|
_content_type,
|
1043
1097
|
_headers,
|
@@ -1053,12 +1107,12 @@ class ProcedureApi:
|
|
1053
1107
|
_query_params: List[Tuple[str, str]] = []
|
1054
1108
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1055
1109
|
_form_params: List[Tuple[str, str]] = []
|
1056
|
-
_files: Dict[str, str] = {}
|
1110
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1057
1111
|
_body_params: Optional[bytes] = None
|
1058
1112
|
|
1059
1113
|
# process the path parameters
|
1060
|
-
if
|
1061
|
-
_path_params['
|
1114
|
+
if graph_id is not None:
|
1115
|
+
_path_params['graph_id'] = graph_id
|
1062
1116
|
# process the query parameters
|
1063
1117
|
# process the header parameters
|
1064
1118
|
# process the form parameters
|
@@ -1066,11 +1120,12 @@ class ProcedureApi:
|
|
1066
1120
|
|
1067
1121
|
|
1068
1122
|
# set the HTTP header `Accept`
|
1069
|
-
|
1070
|
-
[
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1123
|
+
if 'Accept' not in _header_params:
|
1124
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1125
|
+
[
|
1126
|
+
'application/json'
|
1127
|
+
]
|
1128
|
+
)
|
1074
1129
|
|
1075
1130
|
|
1076
1131
|
# authentication setting
|
@@ -1079,7 +1134,7 @@ class ProcedureApi:
|
|
1079
1134
|
|
1080
1135
|
return self.api_client.param_serialize(
|
1081
1136
|
method='GET',
|
1082
|
-
resource_path='/api/v1/graph/{
|
1137
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc',
|
1083
1138
|
path_params=_path_params,
|
1084
1139
|
query_params=_query_params,
|
1085
1140
|
header_params=_header_params,
|
@@ -1096,11 +1151,11 @@ class ProcedureApi:
|
|
1096
1151
|
|
1097
1152
|
|
1098
1153
|
@validate_call
|
1099
|
-
def
|
1154
|
+
def update_stored_procedure_by_id(
|
1100
1155
|
self,
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1156
|
+
graph_id: StrictStr,
|
1157
|
+
stored_procedure_id: StrictStr,
|
1158
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1104
1159
|
_request_timeout: Union[
|
1105
1160
|
None,
|
1106
1161
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1114,16 +1169,16 @@ class ProcedureApi:
|
|
1114
1169
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1115
1170
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1116
1171
|
) -> str:
|
1117
|
-
"""
|
1172
|
+
"""update_stored_procedure_by_id
|
1118
1173
|
|
1119
|
-
Update stored procedure
|
1174
|
+
Update a stored procedure by ID
|
1120
1175
|
|
1121
|
-
:param
|
1122
|
-
:type
|
1123
|
-
:param
|
1124
|
-
:type
|
1125
|
-
:param
|
1126
|
-
:type
|
1176
|
+
:param graph_id: (required)
|
1177
|
+
:type graph_id: str
|
1178
|
+
:param stored_procedure_id: (required)
|
1179
|
+
:type stored_procedure_id: str
|
1180
|
+
:param update_stored_proc_request:
|
1181
|
+
:type update_stored_proc_request: UpdateStoredProcRequest
|
1127
1182
|
:param _request_timeout: timeout setting for this request. If one
|
1128
1183
|
number provided, it will be total request
|
1129
1184
|
timeout. It can also be a pair (tuple) of
|
@@ -1146,10 +1201,10 @@ class ProcedureApi:
|
|
1146
1201
|
:return: Returns the result object.
|
1147
1202
|
""" # noqa: E501
|
1148
1203
|
|
1149
|
-
_param = self.
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1204
|
+
_param = self._update_stored_procedure_by_id_serialize(
|
1205
|
+
graph_id=graph_id,
|
1206
|
+
stored_procedure_id=stored_procedure_id,
|
1207
|
+
update_stored_proc_request=update_stored_proc_request,
|
1153
1208
|
_request_auth=_request_auth,
|
1154
1209
|
_content_type=_content_type,
|
1155
1210
|
_headers=_headers,
|
@@ -1158,6 +1213,7 @@ class ProcedureApi:
|
|
1158
1213
|
|
1159
1214
|
_response_types_map: Dict[str, Optional[str]] = {
|
1160
1215
|
'200': "str",
|
1216
|
+
'500': "Error",
|
1161
1217
|
}
|
1162
1218
|
response_data = self.api_client.call_api(
|
1163
1219
|
*_param,
|
@@ -1171,11 +1227,11 @@ class ProcedureApi:
|
|
1171
1227
|
|
1172
1228
|
|
1173
1229
|
@validate_call
|
1174
|
-
def
|
1230
|
+
def update_stored_procedure_by_id_with_http_info(
|
1175
1231
|
self,
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1232
|
+
graph_id: StrictStr,
|
1233
|
+
stored_procedure_id: StrictStr,
|
1234
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1179
1235
|
_request_timeout: Union[
|
1180
1236
|
None,
|
1181
1237
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1189,16 +1245,16 @@ class ProcedureApi:
|
|
1189
1245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1190
1246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1191
1247
|
) -> ApiResponse[str]:
|
1192
|
-
"""
|
1248
|
+
"""update_stored_procedure_by_id
|
1193
1249
|
|
1194
|
-
Update stored procedure
|
1250
|
+
Update a stored procedure by ID
|
1195
1251
|
|
1196
|
-
:param
|
1197
|
-
:type
|
1198
|
-
:param
|
1199
|
-
:type
|
1200
|
-
:param
|
1201
|
-
:type
|
1252
|
+
:param graph_id: (required)
|
1253
|
+
:type graph_id: str
|
1254
|
+
:param stored_procedure_id: (required)
|
1255
|
+
:type stored_procedure_id: str
|
1256
|
+
:param update_stored_proc_request:
|
1257
|
+
:type update_stored_proc_request: UpdateStoredProcRequest
|
1202
1258
|
:param _request_timeout: timeout setting for this request. If one
|
1203
1259
|
number provided, it will be total request
|
1204
1260
|
timeout. It can also be a pair (tuple) of
|
@@ -1221,10 +1277,10 @@ class ProcedureApi:
|
|
1221
1277
|
:return: Returns the result object.
|
1222
1278
|
""" # noqa: E501
|
1223
1279
|
|
1224
|
-
_param = self.
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1280
|
+
_param = self._update_stored_procedure_by_id_serialize(
|
1281
|
+
graph_id=graph_id,
|
1282
|
+
stored_procedure_id=stored_procedure_id,
|
1283
|
+
update_stored_proc_request=update_stored_proc_request,
|
1228
1284
|
_request_auth=_request_auth,
|
1229
1285
|
_content_type=_content_type,
|
1230
1286
|
_headers=_headers,
|
@@ -1233,6 +1289,7 @@ class ProcedureApi:
|
|
1233
1289
|
|
1234
1290
|
_response_types_map: Dict[str, Optional[str]] = {
|
1235
1291
|
'200': "str",
|
1292
|
+
'500': "Error",
|
1236
1293
|
}
|
1237
1294
|
response_data = self.api_client.call_api(
|
1238
1295
|
*_param,
|
@@ -1246,11 +1303,11 @@ class ProcedureApi:
|
|
1246
1303
|
|
1247
1304
|
|
1248
1305
|
@validate_call
|
1249
|
-
def
|
1306
|
+
def update_stored_procedure_by_id_without_preload_content(
|
1250
1307
|
self,
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1308
|
+
graph_id: StrictStr,
|
1309
|
+
stored_procedure_id: StrictStr,
|
1310
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1254
1311
|
_request_timeout: Union[
|
1255
1312
|
None,
|
1256
1313
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1264,16 +1321,16 @@ class ProcedureApi:
|
|
1264
1321
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1265
1322
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1266
1323
|
) -> RESTResponseType:
|
1267
|
-
"""
|
1324
|
+
"""update_stored_procedure_by_id
|
1268
1325
|
|
1269
|
-
Update stored procedure
|
1326
|
+
Update a stored procedure by ID
|
1270
1327
|
|
1271
|
-
:param
|
1272
|
-
:type
|
1273
|
-
:param
|
1274
|
-
:type
|
1275
|
-
:param
|
1276
|
-
:type
|
1328
|
+
:param graph_id: (required)
|
1329
|
+
:type graph_id: str
|
1330
|
+
:param stored_procedure_id: (required)
|
1331
|
+
:type stored_procedure_id: str
|
1332
|
+
:param update_stored_proc_request:
|
1333
|
+
:type update_stored_proc_request: UpdateStoredProcRequest
|
1277
1334
|
:param _request_timeout: timeout setting for this request. If one
|
1278
1335
|
number provided, it will be total request
|
1279
1336
|
timeout. It can also be a pair (tuple) of
|
@@ -1296,10 +1353,10 @@ class ProcedureApi:
|
|
1296
1353
|
:return: Returns the result object.
|
1297
1354
|
""" # noqa: E501
|
1298
1355
|
|
1299
|
-
_param = self.
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1356
|
+
_param = self._update_stored_procedure_by_id_serialize(
|
1357
|
+
graph_id=graph_id,
|
1358
|
+
stored_procedure_id=stored_procedure_id,
|
1359
|
+
update_stored_proc_request=update_stored_proc_request,
|
1303
1360
|
_request_auth=_request_auth,
|
1304
1361
|
_content_type=_content_type,
|
1305
1362
|
_headers=_headers,
|
@@ -1308,6 +1365,7 @@ class ProcedureApi:
|
|
1308
1365
|
|
1309
1366
|
_response_types_map: Dict[str, Optional[str]] = {
|
1310
1367
|
'200': "str",
|
1368
|
+
'500': "Error",
|
1311
1369
|
}
|
1312
1370
|
response_data = self.api_client.call_api(
|
1313
1371
|
*_param,
|
@@ -1316,11 +1374,11 @@ class ProcedureApi:
|
|
1316
1374
|
return response_data.response
|
1317
1375
|
|
1318
1376
|
|
1319
|
-
def
|
1377
|
+
def _update_stored_procedure_by_id_serialize(
|
1320
1378
|
self,
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1379
|
+
graph_id,
|
1380
|
+
stored_procedure_id,
|
1381
|
+
update_stored_proc_request,
|
1324
1382
|
_request_auth,
|
1325
1383
|
_content_type,
|
1326
1384
|
_headers,
|
@@ -1336,28 +1394,29 @@ class ProcedureApi:
|
|
1336
1394
|
_query_params: List[Tuple[str, str]] = []
|
1337
1395
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1338
1396
|
_form_params: List[Tuple[str, str]] = []
|
1339
|
-
_files: Dict[str, str] = {}
|
1397
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1340
1398
|
_body_params: Optional[bytes] = None
|
1341
1399
|
|
1342
1400
|
# process the path parameters
|
1343
|
-
if
|
1344
|
-
_path_params['
|
1345
|
-
if
|
1346
|
-
_path_params['
|
1401
|
+
if graph_id is not None:
|
1402
|
+
_path_params['graph_id'] = graph_id
|
1403
|
+
if stored_procedure_id is not None:
|
1404
|
+
_path_params['stored_procedure_id'] = stored_procedure_id
|
1347
1405
|
# process the query parameters
|
1348
1406
|
# process the header parameters
|
1349
1407
|
# process the form parameters
|
1350
1408
|
# process the body parameter
|
1351
|
-
if
|
1352
|
-
_body_params =
|
1409
|
+
if update_stored_proc_request is not None:
|
1410
|
+
_body_params = update_stored_proc_request
|
1353
1411
|
|
1354
1412
|
|
1355
1413
|
# set the HTTP header `Accept`
|
1356
|
-
|
1357
|
-
[
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1414
|
+
if 'Accept' not in _header_params:
|
1415
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1416
|
+
[
|
1417
|
+
'application/json'
|
1418
|
+
]
|
1419
|
+
)
|
1361
1420
|
|
1362
1421
|
# set the HTTP header `Content-Type`
|
1363
1422
|
if _content_type:
|
@@ -1379,7 +1438,7 @@ class ProcedureApi:
|
|
1379
1438
|
|
1380
1439
|
return self.api_client.param_serialize(
|
1381
1440
|
method='PUT',
|
1382
|
-
resource_path='/api/v1/graph/{
|
1441
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
1383
1442
|
path_params=_path_params,
|
1384
1443
|
query_params=_query_params,
|
1385
1444
|
header_params=_header_params,
|