gsctl 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 +106 -0
- graphscope/flex/rest/api/__init__.py +12 -0
- graphscope/flex/rest/api/alert_api.py +2790 -0
- graphscope/flex/rest/api/data_source_api.py +1177 -0
- graphscope/flex/rest/api/deployment_api.py +1323 -0
- graphscope/flex/rest/api/graph_api.py +2813 -0
- graphscope/flex/rest/api/job_api.py +1408 -0
- graphscope/flex/rest/api/service_api.py +1316 -0
- graphscope/flex/rest/api/stored_procedure_api.py +1454 -0
- graphscope/flex/rest/api/utils_api.py +310 -0
- graphscope/flex/rest/api_client.py +789 -0
- graphscope/flex/rest/api_response.py +21 -0
- graphscope/flex/rest/configuration.py +451 -0
- graphscope/flex/rest/exceptions.py +200 -0
- graphscope/flex/rest/models/__init__.py +82 -0
- graphscope/flex/rest/models/base_edge_type.py +102 -0
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py +108 -0
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py +98 -0
- graphscope/flex/rest/models/base_property_meta.py +105 -0
- graphscope/flex/rest/models/base_vertex_type.py +96 -0
- graphscope/flex/rest/models/base_vertex_type_x_csr_params.py +88 -0
- graphscope/flex/rest/models/column_mapping.py +94 -0
- graphscope/flex/rest/models/column_mapping_column.py +90 -0
- graphscope/flex/rest/models/create_alert_receiver_request.py +103 -0
- graphscope/flex/rest/models/create_alert_rule_request.py +112 -0
- 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/create_graph_request.py +106 -0
- graphscope/flex/rest/models/create_graph_response.py +88 -0
- graphscope/flex/rest/models/create_graph_schema_request.py +106 -0
- graphscope/flex/rest/models/create_property_meta.py +105 -0
- graphscope/flex/rest/models/create_stored_proc_request.py +101 -0
- 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/dataloading_job_config.py +136 -0
- graphscope/flex/rest/models/dataloading_job_config_edges_inner.py +92 -0
- graphscope/flex/rest/models/dataloading_job_config_loading_config.py +104 -0
- graphscope/flex/rest/models/dataloading_job_config_loading_config_format.py +90 -0
- graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py +88 -0
- 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 +122 -0
- graphscope/flex/rest/models/edge_mapping_type_triplet.py +92 -0
- graphscope/flex/rest/models/error.py +90 -0
- graphscope/flex/rest/models/get_alert_message_response.py +123 -0
- graphscope/flex/rest/models/get_alert_receiver_response.py +107 -0
- graphscope/flex/rest/models/get_alert_rule_response.py +114 -0
- graphscope/flex/rest/models/get_edge_type.py +116 -0
- graphscope/flex/rest/models/get_graph_response.py +139 -0
- graphscope/flex/rest/models/get_graph_schema_response.py +106 -0
- graphscope/flex/rest/models/get_pod_log_response.py +88 -0
- graphscope/flex/rest/models/get_property_meta.py +107 -0
- 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/get_stored_proc_response.py +130 -0
- graphscope/flex/rest/models/get_vertex_type.py +110 -0
- graphscope/flex/rest/models/gs_data_type.py +152 -0
- graphscope/flex/rest/models/job_status.py +107 -0
- graphscope/flex/rest/models/long_text.py +93 -0
- graphscope/flex/rest/models/node_status.py +94 -0
- graphscope/flex/rest/models/parameter.py +96 -0
- graphscope/flex/rest/models/pod_status.py +108 -0
- graphscope/flex/rest/models/primitive_type.py +95 -0
- graphscope/flex/rest/models/resource_usage.py +92 -0
- graphscope/flex/rest/models/running_deployment_info.py +128 -0
- graphscope/flex/rest/models/running_deployment_status.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +106 -0
- graphscope/flex/rest/models/service_status.py +112 -0
- graphscope/flex/rest/models/service_status_sdk_endpoints.py +94 -0
- graphscope/flex/rest/models/start_service_request.py +88 -0
- graphscope/flex/rest/models/stored_procedure_meta.py +126 -0
- 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 +100 -0
- graphscope/flex/rest/py.typed +0 -0
- graphscope/flex/rest/rest.py +258 -0
- graphscope/gsctl/V6D_VERSION +1 -0
- graphscope/gsctl/VERSION +1 -0
- graphscope/gsctl/__init__.py +22 -0
- graphscope/gsctl/commands/__init__.py +148 -0
- graphscope/gsctl/commands/common.py +200 -0
- graphscope/gsctl/commands/dev.py +448 -0
- graphscope/gsctl/commands/insight/__init__.py +17 -0
- graphscope/gsctl/commands/insight/glob.py +234 -0
- graphscope/gsctl/commands/insight/graph.py +205 -0
- graphscope/gsctl/commands/interactive/__init__.py +17 -0
- graphscope/gsctl/commands/interactive/glob.py +280 -0
- graphscope/gsctl/commands/interactive/graph.py +259 -0
- graphscope/gsctl/config.py +221 -0
- graphscope/gsctl/gsctl.py +51 -0
- graphscope/gsctl/impl/__init__.py +64 -0
- graphscope/gsctl/impl/alert.py +135 -0
- graphscope/gsctl/impl/common.py +53 -0
- graphscope/gsctl/impl/datasource.py +80 -0
- graphscope/gsctl/impl/deployment.py +62 -0
- graphscope/gsctl/impl/graph.py +150 -0
- graphscope/gsctl/impl/job.py +63 -0
- graphscope/gsctl/impl/service.py +62 -0
- graphscope/gsctl/impl/stored_procedure.py +92 -0
- graphscope/gsctl/impl/utils.py +38 -0
- graphscope/gsctl/scripts/install_deps.sh +969 -0
- graphscope/gsctl/tests/__init__.py +17 -0
- graphscope/gsctl/tests/test_graphscope_insight.py +401 -0
- graphscope/gsctl/tests/test_interactive.py +516 -0
- graphscope/gsctl/utils.py +337 -0
- graphscope/gsctl/version.py +31 -0
- gsctl-0.29.0a20250114.dist-info/METADATA +20 -0
- gsctl-0.29.0a20250114.dist-info/RECORD +117 -0
- gsctl-0.29.0a20250114.dist-info/WHEEL +6 -0
- gsctl-0.29.0a20250114.dist-info/entry_points.txt +3 -0
- gsctl-0.29.0a20250114.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1454 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
GraphScope FLEX HTTP SERVICE API
|
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/).
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: graphscope@alibaba-inc.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
19
|
+
|
20
|
+
from pydantic import StrictStr
|
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
|
26
|
+
|
27
|
+
from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
|
28
|
+
from graphscope.flex.rest.api_response import ApiResponse
|
29
|
+
from graphscope.flex.rest.rest import RESTResponseType
|
30
|
+
|
31
|
+
|
32
|
+
class StoredProcedureApi:
|
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_stored_procedure(
|
47
|
+
self,
|
48
|
+
graph_id: StrictStr,
|
49
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
50
|
+
_request_timeout: Union[
|
51
|
+
None,
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
53
|
+
Tuple[
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
56
|
+
]
|
57
|
+
] = None,
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
62
|
+
) -> CreateStoredProcResponse:
|
63
|
+
"""create_stored_procedure
|
64
|
+
|
65
|
+
Create a new stored procedure on a certain graph
|
66
|
+
|
67
|
+
:param graph_id: (required)
|
68
|
+
:type graph_id: str
|
69
|
+
:param create_stored_proc_request: (required)
|
70
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
72
|
+
number provided, it will be total request
|
73
|
+
timeout. It can also be a pair (tuple) of
|
74
|
+
(connection, read) timeouts.
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
77
|
+
request; this effectively ignores the
|
78
|
+
authentication in the spec for a single request.
|
79
|
+
:type _request_auth: dict, optional
|
80
|
+
:param _content_type: force content-type for the request.
|
81
|
+
:type _content_type: str, Optional
|
82
|
+
:param _headers: set to override the headers for a single
|
83
|
+
request; this effectively ignores the headers
|
84
|
+
in the spec for a single request.
|
85
|
+
:type _headers: dict, optional
|
86
|
+
:param _host_index: set to override the host_index for a single
|
87
|
+
request; this effectively ignores the host_index
|
88
|
+
in the spec for a single request.
|
89
|
+
:type _host_index: int, optional
|
90
|
+
:return: Returns the result object.
|
91
|
+
""" # noqa: E501
|
92
|
+
|
93
|
+
_param = self._create_stored_procedure_serialize(
|
94
|
+
graph_id=graph_id,
|
95
|
+
create_stored_proc_request=create_stored_proc_request,
|
96
|
+
_request_auth=_request_auth,
|
97
|
+
_content_type=_content_type,
|
98
|
+
_headers=_headers,
|
99
|
+
_host_index=_host_index
|
100
|
+
)
|
101
|
+
|
102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
103
|
+
'200': "CreateStoredProcResponse",
|
104
|
+
'400': "Error",
|
105
|
+
'500': "Error",
|
106
|
+
}
|
107
|
+
response_data = self.api_client.call_api(
|
108
|
+
*_param,
|
109
|
+
_request_timeout=_request_timeout
|
110
|
+
)
|
111
|
+
response_data.read()
|
112
|
+
return self.api_client.response_deserialize(
|
113
|
+
response_data=response_data,
|
114
|
+
response_types_map=_response_types_map,
|
115
|
+
).data
|
116
|
+
|
117
|
+
|
118
|
+
@validate_call
|
119
|
+
def create_stored_procedure_with_http_info(
|
120
|
+
self,
|
121
|
+
graph_id: StrictStr,
|
122
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
123
|
+
_request_timeout: Union[
|
124
|
+
None,
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Tuple[
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
128
|
+
Annotated[StrictFloat, Field(gt=0)]
|
129
|
+
]
|
130
|
+
] = None,
|
131
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_content_type: Optional[StrictStr] = None,
|
133
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
134
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
135
|
+
) -> ApiResponse[CreateStoredProcResponse]:
|
136
|
+
"""create_stored_procedure
|
137
|
+
|
138
|
+
Create a new stored procedure on a certain graph
|
139
|
+
|
140
|
+
:param graph_id: (required)
|
141
|
+
:type graph_id: str
|
142
|
+
:param create_stored_proc_request: (required)
|
143
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
144
|
+
:param _request_timeout: timeout setting for this request. If one
|
145
|
+
number provided, it will be total request
|
146
|
+
timeout. It can also be a pair (tuple) of
|
147
|
+
(connection, read) timeouts.
|
148
|
+
:type _request_timeout: int, tuple(int, int), optional
|
149
|
+
:param _request_auth: set to override the auth_settings for an a single
|
150
|
+
request; this effectively ignores the
|
151
|
+
authentication in the spec for a single request.
|
152
|
+
:type _request_auth: dict, optional
|
153
|
+
:param _content_type: force content-type for the request.
|
154
|
+
:type _content_type: str, Optional
|
155
|
+
:param _headers: set to override the headers for a single
|
156
|
+
request; this effectively ignores the headers
|
157
|
+
in the spec for a single request.
|
158
|
+
:type _headers: dict, optional
|
159
|
+
:param _host_index: set to override the host_index for a single
|
160
|
+
request; this effectively ignores the host_index
|
161
|
+
in the spec for a single request.
|
162
|
+
:type _host_index: int, optional
|
163
|
+
:return: Returns the result object.
|
164
|
+
""" # noqa: E501
|
165
|
+
|
166
|
+
_param = self._create_stored_procedure_serialize(
|
167
|
+
graph_id=graph_id,
|
168
|
+
create_stored_proc_request=create_stored_proc_request,
|
169
|
+
_request_auth=_request_auth,
|
170
|
+
_content_type=_content_type,
|
171
|
+
_headers=_headers,
|
172
|
+
_host_index=_host_index
|
173
|
+
)
|
174
|
+
|
175
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
176
|
+
'200': "CreateStoredProcResponse",
|
177
|
+
'400': "Error",
|
178
|
+
'500': "Error",
|
179
|
+
}
|
180
|
+
response_data = self.api_client.call_api(
|
181
|
+
*_param,
|
182
|
+
_request_timeout=_request_timeout
|
183
|
+
)
|
184
|
+
response_data.read()
|
185
|
+
return self.api_client.response_deserialize(
|
186
|
+
response_data=response_data,
|
187
|
+
response_types_map=_response_types_map,
|
188
|
+
)
|
189
|
+
|
190
|
+
|
191
|
+
@validate_call
|
192
|
+
def create_stored_procedure_without_preload_content(
|
193
|
+
self,
|
194
|
+
graph_id: StrictStr,
|
195
|
+
create_stored_proc_request: CreateStoredProcRequest,
|
196
|
+
_request_timeout: Union[
|
197
|
+
None,
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
199
|
+
Tuple[
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
202
|
+
]
|
203
|
+
] = None,
|
204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
205
|
+
_content_type: Optional[StrictStr] = None,
|
206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
208
|
+
) -> RESTResponseType:
|
209
|
+
"""create_stored_procedure
|
210
|
+
|
211
|
+
Create a new stored procedure on a certain graph
|
212
|
+
|
213
|
+
:param graph_id: (required)
|
214
|
+
:type graph_id: str
|
215
|
+
:param create_stored_proc_request: (required)
|
216
|
+
:type create_stored_proc_request: CreateStoredProcRequest
|
217
|
+
:param _request_timeout: timeout setting for this request. If one
|
218
|
+
number provided, it will be total request
|
219
|
+
timeout. It can also be a pair (tuple) of
|
220
|
+
(connection, read) timeouts.
|
221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
223
|
+
request; this effectively ignores the
|
224
|
+
authentication in the spec for a single request.
|
225
|
+
:type _request_auth: dict, optional
|
226
|
+
:param _content_type: force content-type for the request.
|
227
|
+
:type _content_type: str, Optional
|
228
|
+
:param _headers: set to override the headers for a single
|
229
|
+
request; this effectively ignores the headers
|
230
|
+
in the spec for a single request.
|
231
|
+
:type _headers: dict, optional
|
232
|
+
:param _host_index: set to override the host_index for a single
|
233
|
+
request; this effectively ignores the host_index
|
234
|
+
in the spec for a single request.
|
235
|
+
:type _host_index: int, optional
|
236
|
+
:return: Returns the result object.
|
237
|
+
""" # noqa: E501
|
238
|
+
|
239
|
+
_param = self._create_stored_procedure_serialize(
|
240
|
+
graph_id=graph_id,
|
241
|
+
create_stored_proc_request=create_stored_proc_request,
|
242
|
+
_request_auth=_request_auth,
|
243
|
+
_content_type=_content_type,
|
244
|
+
_headers=_headers,
|
245
|
+
_host_index=_host_index
|
246
|
+
)
|
247
|
+
|
248
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
249
|
+
'200': "CreateStoredProcResponse",
|
250
|
+
'400': "Error",
|
251
|
+
'500': "Error",
|
252
|
+
}
|
253
|
+
response_data = self.api_client.call_api(
|
254
|
+
*_param,
|
255
|
+
_request_timeout=_request_timeout
|
256
|
+
)
|
257
|
+
return response_data.response
|
258
|
+
|
259
|
+
|
260
|
+
def _create_stored_procedure_serialize(
|
261
|
+
self,
|
262
|
+
graph_id,
|
263
|
+
create_stored_proc_request,
|
264
|
+
_request_auth,
|
265
|
+
_content_type,
|
266
|
+
_headers,
|
267
|
+
_host_index,
|
268
|
+
) -> RequestSerialized:
|
269
|
+
|
270
|
+
_host = None
|
271
|
+
|
272
|
+
_collection_formats: Dict[str, str] = {
|
273
|
+
}
|
274
|
+
|
275
|
+
_path_params: Dict[str, str] = {}
|
276
|
+
_query_params: List[Tuple[str, str]] = []
|
277
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
278
|
+
_form_params: List[Tuple[str, str]] = []
|
279
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
280
|
+
_body_params: Optional[bytes] = None
|
281
|
+
|
282
|
+
# process the path parameters
|
283
|
+
if graph_id is not None:
|
284
|
+
_path_params['graph_id'] = graph_id
|
285
|
+
# process the query parameters
|
286
|
+
# process the header parameters
|
287
|
+
# process the form parameters
|
288
|
+
# process the body parameter
|
289
|
+
if create_stored_proc_request is not None:
|
290
|
+
_body_params = create_stored_proc_request
|
291
|
+
|
292
|
+
|
293
|
+
# set the HTTP header `Accept`
|
294
|
+
if 'Accept' not in _header_params:
|
295
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
296
|
+
[
|
297
|
+
'application/json'
|
298
|
+
]
|
299
|
+
)
|
300
|
+
|
301
|
+
# set the HTTP header `Content-Type`
|
302
|
+
if _content_type:
|
303
|
+
_header_params['Content-Type'] = _content_type
|
304
|
+
else:
|
305
|
+
_default_content_type = (
|
306
|
+
self.api_client.select_header_content_type(
|
307
|
+
[
|
308
|
+
'application/json'
|
309
|
+
]
|
310
|
+
)
|
311
|
+
)
|
312
|
+
if _default_content_type is not None:
|
313
|
+
_header_params['Content-Type'] = _default_content_type
|
314
|
+
|
315
|
+
# authentication setting
|
316
|
+
_auth_settings: List[str] = [
|
317
|
+
]
|
318
|
+
|
319
|
+
return self.api_client.param_serialize(
|
320
|
+
method='POST',
|
321
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc',
|
322
|
+
path_params=_path_params,
|
323
|
+
query_params=_query_params,
|
324
|
+
header_params=_header_params,
|
325
|
+
body=_body_params,
|
326
|
+
post_params=_form_params,
|
327
|
+
files=_files,
|
328
|
+
auth_settings=_auth_settings,
|
329
|
+
collection_formats=_collection_formats,
|
330
|
+
_host=_host,
|
331
|
+
_request_auth=_request_auth
|
332
|
+
)
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
@validate_call
|
338
|
+
def delete_stored_procedure_by_id(
|
339
|
+
self,
|
340
|
+
graph_id: StrictStr,
|
341
|
+
stored_procedure_id: StrictStr,
|
342
|
+
_request_timeout: Union[
|
343
|
+
None,
|
344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
345
|
+
Tuple[
|
346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
347
|
+
Annotated[StrictFloat, Field(gt=0)]
|
348
|
+
]
|
349
|
+
] = None,
|
350
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
351
|
+
_content_type: Optional[StrictStr] = None,
|
352
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
353
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
354
|
+
) -> str:
|
355
|
+
"""delete_stored_procedure_by_id
|
356
|
+
|
357
|
+
Delete a stored procedure by ID
|
358
|
+
|
359
|
+
:param graph_id: (required)
|
360
|
+
:type graph_id: str
|
361
|
+
:param stored_procedure_id: (required)
|
362
|
+
:type stored_procedure_id: str
|
363
|
+
:param _request_timeout: timeout setting for this request. If one
|
364
|
+
number provided, it will be total request
|
365
|
+
timeout. It can also be a pair (tuple) of
|
366
|
+
(connection, read) timeouts.
|
367
|
+
:type _request_timeout: int, tuple(int, int), optional
|
368
|
+
:param _request_auth: set to override the auth_settings for an a single
|
369
|
+
request; this effectively ignores the
|
370
|
+
authentication in the spec for a single request.
|
371
|
+
:type _request_auth: dict, optional
|
372
|
+
:param _content_type: force content-type for the request.
|
373
|
+
:type _content_type: str, Optional
|
374
|
+
:param _headers: set to override the headers for a single
|
375
|
+
request; this effectively ignores the headers
|
376
|
+
in the spec for a single request.
|
377
|
+
:type _headers: dict, optional
|
378
|
+
:param _host_index: set to override the host_index for a single
|
379
|
+
request; this effectively ignores the host_index
|
380
|
+
in the spec for a single request.
|
381
|
+
:type _host_index: int, optional
|
382
|
+
:return: Returns the result object.
|
383
|
+
""" # noqa: E501
|
384
|
+
|
385
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
386
|
+
graph_id=graph_id,
|
387
|
+
stored_procedure_id=stored_procedure_id,
|
388
|
+
_request_auth=_request_auth,
|
389
|
+
_content_type=_content_type,
|
390
|
+
_headers=_headers,
|
391
|
+
_host_index=_host_index
|
392
|
+
)
|
393
|
+
|
394
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
395
|
+
'200': "str",
|
396
|
+
'500': "Error",
|
397
|
+
}
|
398
|
+
response_data = self.api_client.call_api(
|
399
|
+
*_param,
|
400
|
+
_request_timeout=_request_timeout
|
401
|
+
)
|
402
|
+
response_data.read()
|
403
|
+
return self.api_client.response_deserialize(
|
404
|
+
response_data=response_data,
|
405
|
+
response_types_map=_response_types_map,
|
406
|
+
).data
|
407
|
+
|
408
|
+
|
409
|
+
@validate_call
|
410
|
+
def delete_stored_procedure_by_id_with_http_info(
|
411
|
+
self,
|
412
|
+
graph_id: StrictStr,
|
413
|
+
stored_procedure_id: StrictStr,
|
414
|
+
_request_timeout: Union[
|
415
|
+
None,
|
416
|
+
Annotated[StrictFloat, Field(gt=0)],
|
417
|
+
Tuple[
|
418
|
+
Annotated[StrictFloat, Field(gt=0)],
|
419
|
+
Annotated[StrictFloat, Field(gt=0)]
|
420
|
+
]
|
421
|
+
] = None,
|
422
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
423
|
+
_content_type: Optional[StrictStr] = None,
|
424
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
425
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
426
|
+
) -> ApiResponse[str]:
|
427
|
+
"""delete_stored_procedure_by_id
|
428
|
+
|
429
|
+
Delete a stored procedure by ID
|
430
|
+
|
431
|
+
:param graph_id: (required)
|
432
|
+
:type graph_id: str
|
433
|
+
:param stored_procedure_id: (required)
|
434
|
+
:type stored_procedure_id: str
|
435
|
+
:param _request_timeout: timeout setting for this request. If one
|
436
|
+
number provided, it will be total request
|
437
|
+
timeout. It can also be a pair (tuple) of
|
438
|
+
(connection, read) timeouts.
|
439
|
+
:type _request_timeout: int, tuple(int, int), optional
|
440
|
+
:param _request_auth: set to override the auth_settings for an a single
|
441
|
+
request; this effectively ignores the
|
442
|
+
authentication in the spec for a single request.
|
443
|
+
:type _request_auth: dict, optional
|
444
|
+
:param _content_type: force content-type for the request.
|
445
|
+
:type _content_type: str, Optional
|
446
|
+
:param _headers: set to override the headers for a single
|
447
|
+
request; this effectively ignores the headers
|
448
|
+
in the spec for a single request.
|
449
|
+
:type _headers: dict, optional
|
450
|
+
:param _host_index: set to override the host_index for a single
|
451
|
+
request; this effectively ignores the host_index
|
452
|
+
in the spec for a single request.
|
453
|
+
:type _host_index: int, optional
|
454
|
+
:return: Returns the result object.
|
455
|
+
""" # noqa: E501
|
456
|
+
|
457
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
458
|
+
graph_id=graph_id,
|
459
|
+
stored_procedure_id=stored_procedure_id,
|
460
|
+
_request_auth=_request_auth,
|
461
|
+
_content_type=_content_type,
|
462
|
+
_headers=_headers,
|
463
|
+
_host_index=_host_index
|
464
|
+
)
|
465
|
+
|
466
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
467
|
+
'200': "str",
|
468
|
+
'500': "Error",
|
469
|
+
}
|
470
|
+
response_data = self.api_client.call_api(
|
471
|
+
*_param,
|
472
|
+
_request_timeout=_request_timeout
|
473
|
+
)
|
474
|
+
response_data.read()
|
475
|
+
return self.api_client.response_deserialize(
|
476
|
+
response_data=response_data,
|
477
|
+
response_types_map=_response_types_map,
|
478
|
+
)
|
479
|
+
|
480
|
+
|
481
|
+
@validate_call
|
482
|
+
def delete_stored_procedure_by_id_without_preload_content(
|
483
|
+
self,
|
484
|
+
graph_id: StrictStr,
|
485
|
+
stored_procedure_id: StrictStr,
|
486
|
+
_request_timeout: Union[
|
487
|
+
None,
|
488
|
+
Annotated[StrictFloat, Field(gt=0)],
|
489
|
+
Tuple[
|
490
|
+
Annotated[StrictFloat, Field(gt=0)],
|
491
|
+
Annotated[StrictFloat, Field(gt=0)]
|
492
|
+
]
|
493
|
+
] = None,
|
494
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
495
|
+
_content_type: Optional[StrictStr] = None,
|
496
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
497
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
498
|
+
) -> RESTResponseType:
|
499
|
+
"""delete_stored_procedure_by_id
|
500
|
+
|
501
|
+
Delete a stored procedure by ID
|
502
|
+
|
503
|
+
:param graph_id: (required)
|
504
|
+
:type graph_id: str
|
505
|
+
:param stored_procedure_id: (required)
|
506
|
+
:type stored_procedure_id: str
|
507
|
+
:param _request_timeout: timeout setting for this request. If one
|
508
|
+
number provided, it will be total request
|
509
|
+
timeout. It can also be a pair (tuple) of
|
510
|
+
(connection, read) timeouts.
|
511
|
+
:type _request_timeout: int, tuple(int, int), optional
|
512
|
+
:param _request_auth: set to override the auth_settings for an a single
|
513
|
+
request; this effectively ignores the
|
514
|
+
authentication in the spec for a single request.
|
515
|
+
:type _request_auth: dict, optional
|
516
|
+
:param _content_type: force content-type for the request.
|
517
|
+
:type _content_type: str, Optional
|
518
|
+
:param _headers: set to override the headers for a single
|
519
|
+
request; this effectively ignores the headers
|
520
|
+
in the spec for a single request.
|
521
|
+
:type _headers: dict, optional
|
522
|
+
:param _host_index: set to override the host_index for a single
|
523
|
+
request; this effectively ignores the host_index
|
524
|
+
in the spec for a single request.
|
525
|
+
:type _host_index: int, optional
|
526
|
+
:return: Returns the result object.
|
527
|
+
""" # noqa: E501
|
528
|
+
|
529
|
+
_param = self._delete_stored_procedure_by_id_serialize(
|
530
|
+
graph_id=graph_id,
|
531
|
+
stored_procedure_id=stored_procedure_id,
|
532
|
+
_request_auth=_request_auth,
|
533
|
+
_content_type=_content_type,
|
534
|
+
_headers=_headers,
|
535
|
+
_host_index=_host_index
|
536
|
+
)
|
537
|
+
|
538
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
539
|
+
'200': "str",
|
540
|
+
'500': "Error",
|
541
|
+
}
|
542
|
+
response_data = self.api_client.call_api(
|
543
|
+
*_param,
|
544
|
+
_request_timeout=_request_timeout
|
545
|
+
)
|
546
|
+
return response_data.response
|
547
|
+
|
548
|
+
|
549
|
+
def _delete_stored_procedure_by_id_serialize(
|
550
|
+
self,
|
551
|
+
graph_id,
|
552
|
+
stored_procedure_id,
|
553
|
+
_request_auth,
|
554
|
+
_content_type,
|
555
|
+
_headers,
|
556
|
+
_host_index,
|
557
|
+
) -> RequestSerialized:
|
558
|
+
|
559
|
+
_host = None
|
560
|
+
|
561
|
+
_collection_formats: Dict[str, str] = {
|
562
|
+
}
|
563
|
+
|
564
|
+
_path_params: Dict[str, str] = {}
|
565
|
+
_query_params: List[Tuple[str, str]] = []
|
566
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
567
|
+
_form_params: List[Tuple[str, str]] = []
|
568
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
569
|
+
_body_params: Optional[bytes] = None
|
570
|
+
|
571
|
+
# process the path parameters
|
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
|
576
|
+
# process the query parameters
|
577
|
+
# process the header parameters
|
578
|
+
# process the form parameters
|
579
|
+
# process the body parameter
|
580
|
+
|
581
|
+
|
582
|
+
# set the HTTP header `Accept`
|
583
|
+
if 'Accept' not in _header_params:
|
584
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
585
|
+
[
|
586
|
+
'application/json'
|
587
|
+
]
|
588
|
+
)
|
589
|
+
|
590
|
+
|
591
|
+
# authentication setting
|
592
|
+
_auth_settings: List[str] = [
|
593
|
+
]
|
594
|
+
|
595
|
+
return self.api_client.param_serialize(
|
596
|
+
method='DELETE',
|
597
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
598
|
+
path_params=_path_params,
|
599
|
+
query_params=_query_params,
|
600
|
+
header_params=_header_params,
|
601
|
+
body=_body_params,
|
602
|
+
post_params=_form_params,
|
603
|
+
files=_files,
|
604
|
+
auth_settings=_auth_settings,
|
605
|
+
collection_formats=_collection_formats,
|
606
|
+
_host=_host,
|
607
|
+
_request_auth=_request_auth
|
608
|
+
)
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
@validate_call
|
614
|
+
def get_stored_procedure_by_id(
|
615
|
+
self,
|
616
|
+
graph_id: StrictStr,
|
617
|
+
stored_procedure_id: StrictStr,
|
618
|
+
_request_timeout: Union[
|
619
|
+
None,
|
620
|
+
Annotated[StrictFloat, Field(gt=0)],
|
621
|
+
Tuple[
|
622
|
+
Annotated[StrictFloat, Field(gt=0)],
|
623
|
+
Annotated[StrictFloat, Field(gt=0)]
|
624
|
+
]
|
625
|
+
] = None,
|
626
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
627
|
+
_content_type: Optional[StrictStr] = None,
|
628
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
629
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
630
|
+
) -> GetStoredProcResponse:
|
631
|
+
"""get_stored_procedure_by_id
|
632
|
+
|
633
|
+
Get a stored procedure by ID
|
634
|
+
|
635
|
+
:param graph_id: (required)
|
636
|
+
:type graph_id: str
|
637
|
+
:param stored_procedure_id: (required)
|
638
|
+
:type stored_procedure_id: str
|
639
|
+
:param _request_timeout: timeout setting for this request. If one
|
640
|
+
number provided, it will be total request
|
641
|
+
timeout. It can also be a pair (tuple) of
|
642
|
+
(connection, read) timeouts.
|
643
|
+
:type _request_timeout: int, tuple(int, int), optional
|
644
|
+
:param _request_auth: set to override the auth_settings for an a single
|
645
|
+
request; this effectively ignores the
|
646
|
+
authentication in the spec for a single request.
|
647
|
+
:type _request_auth: dict, optional
|
648
|
+
:param _content_type: force content-type for the request.
|
649
|
+
:type _content_type: str, Optional
|
650
|
+
:param _headers: set to override the headers for a single
|
651
|
+
request; this effectively ignores the headers
|
652
|
+
in the spec for a single request.
|
653
|
+
:type _headers: dict, optional
|
654
|
+
:param _host_index: set to override the host_index for a single
|
655
|
+
request; this effectively ignores the host_index
|
656
|
+
in the spec for a single request.
|
657
|
+
:type _host_index: int, optional
|
658
|
+
:return: Returns the result object.
|
659
|
+
""" # noqa: E501
|
660
|
+
|
661
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
662
|
+
graph_id=graph_id,
|
663
|
+
stored_procedure_id=stored_procedure_id,
|
664
|
+
_request_auth=_request_auth,
|
665
|
+
_content_type=_content_type,
|
666
|
+
_headers=_headers,
|
667
|
+
_host_index=_host_index
|
668
|
+
)
|
669
|
+
|
670
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
671
|
+
'200': "GetStoredProcResponse",
|
672
|
+
'500': "Error",
|
673
|
+
}
|
674
|
+
response_data = self.api_client.call_api(
|
675
|
+
*_param,
|
676
|
+
_request_timeout=_request_timeout
|
677
|
+
)
|
678
|
+
response_data.read()
|
679
|
+
return self.api_client.response_deserialize(
|
680
|
+
response_data=response_data,
|
681
|
+
response_types_map=_response_types_map,
|
682
|
+
).data
|
683
|
+
|
684
|
+
|
685
|
+
@validate_call
|
686
|
+
def get_stored_procedure_by_id_with_http_info(
|
687
|
+
self,
|
688
|
+
graph_id: StrictStr,
|
689
|
+
stored_procedure_id: StrictStr,
|
690
|
+
_request_timeout: Union[
|
691
|
+
None,
|
692
|
+
Annotated[StrictFloat, Field(gt=0)],
|
693
|
+
Tuple[
|
694
|
+
Annotated[StrictFloat, Field(gt=0)],
|
695
|
+
Annotated[StrictFloat, Field(gt=0)]
|
696
|
+
]
|
697
|
+
] = None,
|
698
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
699
|
+
_content_type: Optional[StrictStr] = None,
|
700
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
701
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
702
|
+
) -> ApiResponse[GetStoredProcResponse]:
|
703
|
+
"""get_stored_procedure_by_id
|
704
|
+
|
705
|
+
Get a stored procedure by ID
|
706
|
+
|
707
|
+
:param graph_id: (required)
|
708
|
+
:type graph_id: str
|
709
|
+
:param stored_procedure_id: (required)
|
710
|
+
:type stored_procedure_id: str
|
711
|
+
:param _request_timeout: timeout setting for this request. If one
|
712
|
+
number provided, it will be total request
|
713
|
+
timeout. It can also be a pair (tuple) of
|
714
|
+
(connection, read) timeouts.
|
715
|
+
:type _request_timeout: int, tuple(int, int), optional
|
716
|
+
:param _request_auth: set to override the auth_settings for an a single
|
717
|
+
request; this effectively ignores the
|
718
|
+
authentication in the spec for a single request.
|
719
|
+
:type _request_auth: dict, optional
|
720
|
+
:param _content_type: force content-type for the request.
|
721
|
+
:type _content_type: str, Optional
|
722
|
+
:param _headers: set to override the headers for a single
|
723
|
+
request; this effectively ignores the headers
|
724
|
+
in the spec for a single request.
|
725
|
+
:type _headers: dict, optional
|
726
|
+
:param _host_index: set to override the host_index for a single
|
727
|
+
request; this effectively ignores the host_index
|
728
|
+
in the spec for a single request.
|
729
|
+
:type _host_index: int, optional
|
730
|
+
:return: Returns the result object.
|
731
|
+
""" # noqa: E501
|
732
|
+
|
733
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
734
|
+
graph_id=graph_id,
|
735
|
+
stored_procedure_id=stored_procedure_id,
|
736
|
+
_request_auth=_request_auth,
|
737
|
+
_content_type=_content_type,
|
738
|
+
_headers=_headers,
|
739
|
+
_host_index=_host_index
|
740
|
+
)
|
741
|
+
|
742
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
743
|
+
'200': "GetStoredProcResponse",
|
744
|
+
'500': "Error",
|
745
|
+
}
|
746
|
+
response_data = self.api_client.call_api(
|
747
|
+
*_param,
|
748
|
+
_request_timeout=_request_timeout
|
749
|
+
)
|
750
|
+
response_data.read()
|
751
|
+
return self.api_client.response_deserialize(
|
752
|
+
response_data=response_data,
|
753
|
+
response_types_map=_response_types_map,
|
754
|
+
)
|
755
|
+
|
756
|
+
|
757
|
+
@validate_call
|
758
|
+
def get_stored_procedure_by_id_without_preload_content(
|
759
|
+
self,
|
760
|
+
graph_id: StrictStr,
|
761
|
+
stored_procedure_id: StrictStr,
|
762
|
+
_request_timeout: Union[
|
763
|
+
None,
|
764
|
+
Annotated[StrictFloat, Field(gt=0)],
|
765
|
+
Tuple[
|
766
|
+
Annotated[StrictFloat, Field(gt=0)],
|
767
|
+
Annotated[StrictFloat, Field(gt=0)]
|
768
|
+
]
|
769
|
+
] = None,
|
770
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
771
|
+
_content_type: Optional[StrictStr] = None,
|
772
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
773
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
774
|
+
) -> RESTResponseType:
|
775
|
+
"""get_stored_procedure_by_id
|
776
|
+
|
777
|
+
Get a stored procedure by ID
|
778
|
+
|
779
|
+
:param graph_id: (required)
|
780
|
+
:type graph_id: str
|
781
|
+
:param stored_procedure_id: (required)
|
782
|
+
:type stored_procedure_id: str
|
783
|
+
:param _request_timeout: timeout setting for this request. If one
|
784
|
+
number provided, it will be total request
|
785
|
+
timeout. It can also be a pair (tuple) of
|
786
|
+
(connection, read) timeouts.
|
787
|
+
:type _request_timeout: int, tuple(int, int), optional
|
788
|
+
:param _request_auth: set to override the auth_settings for an a single
|
789
|
+
request; this effectively ignores the
|
790
|
+
authentication in the spec for a single request.
|
791
|
+
:type _request_auth: dict, optional
|
792
|
+
:param _content_type: force content-type for the request.
|
793
|
+
:type _content_type: str, Optional
|
794
|
+
:param _headers: set to override the headers for a single
|
795
|
+
request; this effectively ignores the headers
|
796
|
+
in the spec for a single request.
|
797
|
+
:type _headers: dict, optional
|
798
|
+
:param _host_index: set to override the host_index for a single
|
799
|
+
request; this effectively ignores the host_index
|
800
|
+
in the spec for a single request.
|
801
|
+
:type _host_index: int, optional
|
802
|
+
:return: Returns the result object.
|
803
|
+
""" # noqa: E501
|
804
|
+
|
805
|
+
_param = self._get_stored_procedure_by_id_serialize(
|
806
|
+
graph_id=graph_id,
|
807
|
+
stored_procedure_id=stored_procedure_id,
|
808
|
+
_request_auth=_request_auth,
|
809
|
+
_content_type=_content_type,
|
810
|
+
_headers=_headers,
|
811
|
+
_host_index=_host_index
|
812
|
+
)
|
813
|
+
|
814
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
815
|
+
'200': "GetStoredProcResponse",
|
816
|
+
'500': "Error",
|
817
|
+
}
|
818
|
+
response_data = self.api_client.call_api(
|
819
|
+
*_param,
|
820
|
+
_request_timeout=_request_timeout
|
821
|
+
)
|
822
|
+
return response_data.response
|
823
|
+
|
824
|
+
|
825
|
+
def _get_stored_procedure_by_id_serialize(
|
826
|
+
self,
|
827
|
+
graph_id,
|
828
|
+
stored_procedure_id,
|
829
|
+
_request_auth,
|
830
|
+
_content_type,
|
831
|
+
_headers,
|
832
|
+
_host_index,
|
833
|
+
) -> RequestSerialized:
|
834
|
+
|
835
|
+
_host = None
|
836
|
+
|
837
|
+
_collection_formats: Dict[str, str] = {
|
838
|
+
}
|
839
|
+
|
840
|
+
_path_params: Dict[str, str] = {}
|
841
|
+
_query_params: List[Tuple[str, str]] = []
|
842
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
843
|
+
_form_params: List[Tuple[str, str]] = []
|
844
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
845
|
+
_body_params: Optional[bytes] = None
|
846
|
+
|
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
|
852
|
+
# process the query parameters
|
853
|
+
# process the header parameters
|
854
|
+
# process the form parameters
|
855
|
+
# process the body parameter
|
856
|
+
|
857
|
+
|
858
|
+
# set the HTTP header `Accept`
|
859
|
+
if 'Accept' not in _header_params:
|
860
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
861
|
+
[
|
862
|
+
'application/json'
|
863
|
+
]
|
864
|
+
)
|
865
|
+
|
866
|
+
|
867
|
+
# authentication setting
|
868
|
+
_auth_settings: List[str] = [
|
869
|
+
]
|
870
|
+
|
871
|
+
return self.api_client.param_serialize(
|
872
|
+
method='GET',
|
873
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
874
|
+
path_params=_path_params,
|
875
|
+
query_params=_query_params,
|
876
|
+
header_params=_header_params,
|
877
|
+
body=_body_params,
|
878
|
+
post_params=_form_params,
|
879
|
+
files=_files,
|
880
|
+
auth_settings=_auth_settings,
|
881
|
+
collection_formats=_collection_formats,
|
882
|
+
_host=_host,
|
883
|
+
_request_auth=_request_auth
|
884
|
+
)
|
885
|
+
|
886
|
+
|
887
|
+
|
888
|
+
|
889
|
+
@validate_call
|
890
|
+
def list_stored_procedures(
|
891
|
+
self,
|
892
|
+
graph_id: StrictStr,
|
893
|
+
_request_timeout: Union[
|
894
|
+
None,
|
895
|
+
Annotated[StrictFloat, Field(gt=0)],
|
896
|
+
Tuple[
|
897
|
+
Annotated[StrictFloat, Field(gt=0)],
|
898
|
+
Annotated[StrictFloat, Field(gt=0)]
|
899
|
+
]
|
900
|
+
] = None,
|
901
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
902
|
+
_content_type: Optional[StrictStr] = None,
|
903
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
904
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
905
|
+
) -> List[GetStoredProcResponse]:
|
906
|
+
"""list_stored_procedures
|
907
|
+
|
908
|
+
List all stored procedures on a certain graph
|
909
|
+
|
910
|
+
:param graph_id: (required)
|
911
|
+
:type graph_id: str
|
912
|
+
:param _request_timeout: timeout setting for this request. If one
|
913
|
+
number provided, it will be total request
|
914
|
+
timeout. It can also be a pair (tuple) of
|
915
|
+
(connection, read) timeouts.
|
916
|
+
:type _request_timeout: int, tuple(int, int), optional
|
917
|
+
:param _request_auth: set to override the auth_settings for an a single
|
918
|
+
request; this effectively ignores the
|
919
|
+
authentication in the spec for a single request.
|
920
|
+
:type _request_auth: dict, optional
|
921
|
+
:param _content_type: force content-type for the request.
|
922
|
+
:type _content_type: str, Optional
|
923
|
+
:param _headers: set to override the headers for a single
|
924
|
+
request; this effectively ignores the headers
|
925
|
+
in the spec for a single request.
|
926
|
+
:type _headers: dict, optional
|
927
|
+
:param _host_index: set to override the host_index for a single
|
928
|
+
request; this effectively ignores the host_index
|
929
|
+
in the spec for a single request.
|
930
|
+
:type _host_index: int, optional
|
931
|
+
:return: Returns the result object.
|
932
|
+
""" # noqa: E501
|
933
|
+
|
934
|
+
_param = self._list_stored_procedures_serialize(
|
935
|
+
graph_id=graph_id,
|
936
|
+
_request_auth=_request_auth,
|
937
|
+
_content_type=_content_type,
|
938
|
+
_headers=_headers,
|
939
|
+
_host_index=_host_index
|
940
|
+
)
|
941
|
+
|
942
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
943
|
+
'200': "List[GetStoredProcResponse]",
|
944
|
+
'400': "Error",
|
945
|
+
'500': "Error",
|
946
|
+
}
|
947
|
+
response_data = self.api_client.call_api(
|
948
|
+
*_param,
|
949
|
+
_request_timeout=_request_timeout
|
950
|
+
)
|
951
|
+
response_data.read()
|
952
|
+
return self.api_client.response_deserialize(
|
953
|
+
response_data=response_data,
|
954
|
+
response_types_map=_response_types_map,
|
955
|
+
).data
|
956
|
+
|
957
|
+
|
958
|
+
@validate_call
|
959
|
+
def list_stored_procedures_with_http_info(
|
960
|
+
self,
|
961
|
+
graph_id: StrictStr,
|
962
|
+
_request_timeout: Union[
|
963
|
+
None,
|
964
|
+
Annotated[StrictFloat, Field(gt=0)],
|
965
|
+
Tuple[
|
966
|
+
Annotated[StrictFloat, Field(gt=0)],
|
967
|
+
Annotated[StrictFloat, Field(gt=0)]
|
968
|
+
]
|
969
|
+
] = None,
|
970
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
971
|
+
_content_type: Optional[StrictStr] = None,
|
972
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
973
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
974
|
+
) -> ApiResponse[List[GetStoredProcResponse]]:
|
975
|
+
"""list_stored_procedures
|
976
|
+
|
977
|
+
List all stored procedures on a certain graph
|
978
|
+
|
979
|
+
:param graph_id: (required)
|
980
|
+
:type graph_id: str
|
981
|
+
:param _request_timeout: timeout setting for this request. If one
|
982
|
+
number provided, it will be total request
|
983
|
+
timeout. It can also be a pair (tuple) of
|
984
|
+
(connection, read) timeouts.
|
985
|
+
:type _request_timeout: int, tuple(int, int), optional
|
986
|
+
:param _request_auth: set to override the auth_settings for an a single
|
987
|
+
request; this effectively ignores the
|
988
|
+
authentication in the spec for a single request.
|
989
|
+
:type _request_auth: dict, optional
|
990
|
+
:param _content_type: force content-type for the request.
|
991
|
+
:type _content_type: str, Optional
|
992
|
+
:param _headers: set to override the headers for a single
|
993
|
+
request; this effectively ignores the headers
|
994
|
+
in the spec for a single request.
|
995
|
+
:type _headers: dict, optional
|
996
|
+
:param _host_index: set to override the host_index for a single
|
997
|
+
request; this effectively ignores the host_index
|
998
|
+
in the spec for a single request.
|
999
|
+
:type _host_index: int, optional
|
1000
|
+
:return: Returns the result object.
|
1001
|
+
""" # noqa: E501
|
1002
|
+
|
1003
|
+
_param = self._list_stored_procedures_serialize(
|
1004
|
+
graph_id=graph_id,
|
1005
|
+
_request_auth=_request_auth,
|
1006
|
+
_content_type=_content_type,
|
1007
|
+
_headers=_headers,
|
1008
|
+
_host_index=_host_index
|
1009
|
+
)
|
1010
|
+
|
1011
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1012
|
+
'200': "List[GetStoredProcResponse]",
|
1013
|
+
'400': "Error",
|
1014
|
+
'500': "Error",
|
1015
|
+
}
|
1016
|
+
response_data = self.api_client.call_api(
|
1017
|
+
*_param,
|
1018
|
+
_request_timeout=_request_timeout
|
1019
|
+
)
|
1020
|
+
response_data.read()
|
1021
|
+
return self.api_client.response_deserialize(
|
1022
|
+
response_data=response_data,
|
1023
|
+
response_types_map=_response_types_map,
|
1024
|
+
)
|
1025
|
+
|
1026
|
+
|
1027
|
+
@validate_call
|
1028
|
+
def list_stored_procedures_without_preload_content(
|
1029
|
+
self,
|
1030
|
+
graph_id: StrictStr,
|
1031
|
+
_request_timeout: Union[
|
1032
|
+
None,
|
1033
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1034
|
+
Tuple[
|
1035
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1036
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1037
|
+
]
|
1038
|
+
] = None,
|
1039
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1040
|
+
_content_type: Optional[StrictStr] = None,
|
1041
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1042
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1043
|
+
) -> RESTResponseType:
|
1044
|
+
"""list_stored_procedures
|
1045
|
+
|
1046
|
+
List all stored procedures on a certain graph
|
1047
|
+
|
1048
|
+
:param graph_id: (required)
|
1049
|
+
:type graph_id: str
|
1050
|
+
:param _request_timeout: timeout setting for this request. If one
|
1051
|
+
number provided, it will be total request
|
1052
|
+
timeout. It can also be a pair (tuple) of
|
1053
|
+
(connection, read) timeouts.
|
1054
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1055
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1056
|
+
request; this effectively ignores the
|
1057
|
+
authentication in the spec for a single request.
|
1058
|
+
:type _request_auth: dict, optional
|
1059
|
+
:param _content_type: force content-type for the request.
|
1060
|
+
:type _content_type: str, Optional
|
1061
|
+
:param _headers: set to override the headers for a single
|
1062
|
+
request; this effectively ignores the headers
|
1063
|
+
in the spec for a single request.
|
1064
|
+
:type _headers: dict, optional
|
1065
|
+
:param _host_index: set to override the host_index for a single
|
1066
|
+
request; this effectively ignores the host_index
|
1067
|
+
in the spec for a single request.
|
1068
|
+
:type _host_index: int, optional
|
1069
|
+
:return: Returns the result object.
|
1070
|
+
""" # noqa: E501
|
1071
|
+
|
1072
|
+
_param = self._list_stored_procedures_serialize(
|
1073
|
+
graph_id=graph_id,
|
1074
|
+
_request_auth=_request_auth,
|
1075
|
+
_content_type=_content_type,
|
1076
|
+
_headers=_headers,
|
1077
|
+
_host_index=_host_index
|
1078
|
+
)
|
1079
|
+
|
1080
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1081
|
+
'200': "List[GetStoredProcResponse]",
|
1082
|
+
'400': "Error",
|
1083
|
+
'500': "Error",
|
1084
|
+
}
|
1085
|
+
response_data = self.api_client.call_api(
|
1086
|
+
*_param,
|
1087
|
+
_request_timeout=_request_timeout
|
1088
|
+
)
|
1089
|
+
return response_data.response
|
1090
|
+
|
1091
|
+
|
1092
|
+
def _list_stored_procedures_serialize(
|
1093
|
+
self,
|
1094
|
+
graph_id,
|
1095
|
+
_request_auth,
|
1096
|
+
_content_type,
|
1097
|
+
_headers,
|
1098
|
+
_host_index,
|
1099
|
+
) -> RequestSerialized:
|
1100
|
+
|
1101
|
+
_host = None
|
1102
|
+
|
1103
|
+
_collection_formats: Dict[str, str] = {
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
_path_params: Dict[str, str] = {}
|
1107
|
+
_query_params: List[Tuple[str, str]] = []
|
1108
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1109
|
+
_form_params: List[Tuple[str, str]] = []
|
1110
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1111
|
+
_body_params: Optional[bytes] = None
|
1112
|
+
|
1113
|
+
# process the path parameters
|
1114
|
+
if graph_id is not None:
|
1115
|
+
_path_params['graph_id'] = graph_id
|
1116
|
+
# process the query parameters
|
1117
|
+
# process the header parameters
|
1118
|
+
# process the form parameters
|
1119
|
+
# process the body parameter
|
1120
|
+
|
1121
|
+
|
1122
|
+
# set the HTTP header `Accept`
|
1123
|
+
if 'Accept' not in _header_params:
|
1124
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1125
|
+
[
|
1126
|
+
'application/json'
|
1127
|
+
]
|
1128
|
+
)
|
1129
|
+
|
1130
|
+
|
1131
|
+
# authentication setting
|
1132
|
+
_auth_settings: List[str] = [
|
1133
|
+
]
|
1134
|
+
|
1135
|
+
return self.api_client.param_serialize(
|
1136
|
+
method='GET',
|
1137
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc',
|
1138
|
+
path_params=_path_params,
|
1139
|
+
query_params=_query_params,
|
1140
|
+
header_params=_header_params,
|
1141
|
+
body=_body_params,
|
1142
|
+
post_params=_form_params,
|
1143
|
+
files=_files,
|
1144
|
+
auth_settings=_auth_settings,
|
1145
|
+
collection_formats=_collection_formats,
|
1146
|
+
_host=_host,
|
1147
|
+
_request_auth=_request_auth
|
1148
|
+
)
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
@validate_call
|
1154
|
+
def update_stored_procedure_by_id(
|
1155
|
+
self,
|
1156
|
+
graph_id: StrictStr,
|
1157
|
+
stored_procedure_id: StrictStr,
|
1158
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1159
|
+
_request_timeout: Union[
|
1160
|
+
None,
|
1161
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1162
|
+
Tuple[
|
1163
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1164
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1165
|
+
]
|
1166
|
+
] = None,
|
1167
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1168
|
+
_content_type: Optional[StrictStr] = None,
|
1169
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1170
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1171
|
+
) -> str:
|
1172
|
+
"""update_stored_procedure_by_id
|
1173
|
+
|
1174
|
+
Update a stored procedure by ID
|
1175
|
+
|
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
|
1182
|
+
:param _request_timeout: timeout setting for this request. If one
|
1183
|
+
number provided, it will be total request
|
1184
|
+
timeout. It can also be a pair (tuple) of
|
1185
|
+
(connection, read) timeouts.
|
1186
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1187
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1188
|
+
request; this effectively ignores the
|
1189
|
+
authentication in the spec for a single request.
|
1190
|
+
:type _request_auth: dict, optional
|
1191
|
+
:param _content_type: force content-type for the request.
|
1192
|
+
:type _content_type: str, Optional
|
1193
|
+
:param _headers: set to override the headers for a single
|
1194
|
+
request; this effectively ignores the headers
|
1195
|
+
in the spec for a single request.
|
1196
|
+
:type _headers: dict, optional
|
1197
|
+
:param _host_index: set to override the host_index for a single
|
1198
|
+
request; this effectively ignores the host_index
|
1199
|
+
in the spec for a single request.
|
1200
|
+
:type _host_index: int, optional
|
1201
|
+
:return: Returns the result object.
|
1202
|
+
""" # noqa: E501
|
1203
|
+
|
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,
|
1208
|
+
_request_auth=_request_auth,
|
1209
|
+
_content_type=_content_type,
|
1210
|
+
_headers=_headers,
|
1211
|
+
_host_index=_host_index
|
1212
|
+
)
|
1213
|
+
|
1214
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1215
|
+
'200': "str",
|
1216
|
+
'500': "Error",
|
1217
|
+
}
|
1218
|
+
response_data = self.api_client.call_api(
|
1219
|
+
*_param,
|
1220
|
+
_request_timeout=_request_timeout
|
1221
|
+
)
|
1222
|
+
response_data.read()
|
1223
|
+
return self.api_client.response_deserialize(
|
1224
|
+
response_data=response_data,
|
1225
|
+
response_types_map=_response_types_map,
|
1226
|
+
).data
|
1227
|
+
|
1228
|
+
|
1229
|
+
@validate_call
|
1230
|
+
def update_stored_procedure_by_id_with_http_info(
|
1231
|
+
self,
|
1232
|
+
graph_id: StrictStr,
|
1233
|
+
stored_procedure_id: StrictStr,
|
1234
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1235
|
+
_request_timeout: Union[
|
1236
|
+
None,
|
1237
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1238
|
+
Tuple[
|
1239
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1240
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1241
|
+
]
|
1242
|
+
] = None,
|
1243
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1244
|
+
_content_type: Optional[StrictStr] = None,
|
1245
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1246
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1247
|
+
) -> ApiResponse[str]:
|
1248
|
+
"""update_stored_procedure_by_id
|
1249
|
+
|
1250
|
+
Update a stored procedure by ID
|
1251
|
+
|
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
|
1258
|
+
:param _request_timeout: timeout setting for this request. If one
|
1259
|
+
number provided, it will be total request
|
1260
|
+
timeout. It can also be a pair (tuple) of
|
1261
|
+
(connection, read) timeouts.
|
1262
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1263
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1264
|
+
request; this effectively ignores the
|
1265
|
+
authentication in the spec for a single request.
|
1266
|
+
:type _request_auth: dict, optional
|
1267
|
+
:param _content_type: force content-type for the request.
|
1268
|
+
:type _content_type: str, Optional
|
1269
|
+
:param _headers: set to override the headers for a single
|
1270
|
+
request; this effectively ignores the headers
|
1271
|
+
in the spec for a single request.
|
1272
|
+
:type _headers: dict, optional
|
1273
|
+
:param _host_index: set to override the host_index for a single
|
1274
|
+
request; this effectively ignores the host_index
|
1275
|
+
in the spec for a single request.
|
1276
|
+
:type _host_index: int, optional
|
1277
|
+
:return: Returns the result object.
|
1278
|
+
""" # noqa: E501
|
1279
|
+
|
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,
|
1284
|
+
_request_auth=_request_auth,
|
1285
|
+
_content_type=_content_type,
|
1286
|
+
_headers=_headers,
|
1287
|
+
_host_index=_host_index
|
1288
|
+
)
|
1289
|
+
|
1290
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1291
|
+
'200': "str",
|
1292
|
+
'500': "Error",
|
1293
|
+
}
|
1294
|
+
response_data = self.api_client.call_api(
|
1295
|
+
*_param,
|
1296
|
+
_request_timeout=_request_timeout
|
1297
|
+
)
|
1298
|
+
response_data.read()
|
1299
|
+
return self.api_client.response_deserialize(
|
1300
|
+
response_data=response_data,
|
1301
|
+
response_types_map=_response_types_map,
|
1302
|
+
)
|
1303
|
+
|
1304
|
+
|
1305
|
+
@validate_call
|
1306
|
+
def update_stored_procedure_by_id_without_preload_content(
|
1307
|
+
self,
|
1308
|
+
graph_id: StrictStr,
|
1309
|
+
stored_procedure_id: StrictStr,
|
1310
|
+
update_stored_proc_request: Optional[UpdateStoredProcRequest] = None,
|
1311
|
+
_request_timeout: Union[
|
1312
|
+
None,
|
1313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1314
|
+
Tuple[
|
1315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1316
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1317
|
+
]
|
1318
|
+
] = None,
|
1319
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1320
|
+
_content_type: Optional[StrictStr] = None,
|
1321
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1322
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1323
|
+
) -> RESTResponseType:
|
1324
|
+
"""update_stored_procedure_by_id
|
1325
|
+
|
1326
|
+
Update a stored procedure by ID
|
1327
|
+
|
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
|
1334
|
+
:param _request_timeout: timeout setting for this request. If one
|
1335
|
+
number provided, it will be total request
|
1336
|
+
timeout. It can also be a pair (tuple) of
|
1337
|
+
(connection, read) timeouts.
|
1338
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1339
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1340
|
+
request; this effectively ignores the
|
1341
|
+
authentication in the spec for a single request.
|
1342
|
+
:type _request_auth: dict, optional
|
1343
|
+
:param _content_type: force content-type for the request.
|
1344
|
+
:type _content_type: str, Optional
|
1345
|
+
:param _headers: set to override the headers for a single
|
1346
|
+
request; this effectively ignores the headers
|
1347
|
+
in the spec for a single request.
|
1348
|
+
:type _headers: dict, optional
|
1349
|
+
:param _host_index: set to override the host_index for a single
|
1350
|
+
request; this effectively ignores the host_index
|
1351
|
+
in the spec for a single request.
|
1352
|
+
:type _host_index: int, optional
|
1353
|
+
:return: Returns the result object.
|
1354
|
+
""" # noqa: E501
|
1355
|
+
|
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,
|
1360
|
+
_request_auth=_request_auth,
|
1361
|
+
_content_type=_content_type,
|
1362
|
+
_headers=_headers,
|
1363
|
+
_host_index=_host_index
|
1364
|
+
)
|
1365
|
+
|
1366
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1367
|
+
'200': "str",
|
1368
|
+
'500': "Error",
|
1369
|
+
}
|
1370
|
+
response_data = self.api_client.call_api(
|
1371
|
+
*_param,
|
1372
|
+
_request_timeout=_request_timeout
|
1373
|
+
)
|
1374
|
+
return response_data.response
|
1375
|
+
|
1376
|
+
|
1377
|
+
def _update_stored_procedure_by_id_serialize(
|
1378
|
+
self,
|
1379
|
+
graph_id,
|
1380
|
+
stored_procedure_id,
|
1381
|
+
update_stored_proc_request,
|
1382
|
+
_request_auth,
|
1383
|
+
_content_type,
|
1384
|
+
_headers,
|
1385
|
+
_host_index,
|
1386
|
+
) -> RequestSerialized:
|
1387
|
+
|
1388
|
+
_host = None
|
1389
|
+
|
1390
|
+
_collection_formats: Dict[str, str] = {
|
1391
|
+
}
|
1392
|
+
|
1393
|
+
_path_params: Dict[str, str] = {}
|
1394
|
+
_query_params: List[Tuple[str, str]] = []
|
1395
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1396
|
+
_form_params: List[Tuple[str, str]] = []
|
1397
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1398
|
+
_body_params: Optional[bytes] = None
|
1399
|
+
|
1400
|
+
# process the path parameters
|
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
|
1405
|
+
# process the query parameters
|
1406
|
+
# process the header parameters
|
1407
|
+
# process the form parameters
|
1408
|
+
# process the body parameter
|
1409
|
+
if update_stored_proc_request is not None:
|
1410
|
+
_body_params = update_stored_proc_request
|
1411
|
+
|
1412
|
+
|
1413
|
+
# set the HTTP header `Accept`
|
1414
|
+
if 'Accept' not in _header_params:
|
1415
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1416
|
+
[
|
1417
|
+
'application/json'
|
1418
|
+
]
|
1419
|
+
)
|
1420
|
+
|
1421
|
+
# set the HTTP header `Content-Type`
|
1422
|
+
if _content_type:
|
1423
|
+
_header_params['Content-Type'] = _content_type
|
1424
|
+
else:
|
1425
|
+
_default_content_type = (
|
1426
|
+
self.api_client.select_header_content_type(
|
1427
|
+
[
|
1428
|
+
'application/json'
|
1429
|
+
]
|
1430
|
+
)
|
1431
|
+
)
|
1432
|
+
if _default_content_type is not None:
|
1433
|
+
_header_params['Content-Type'] = _default_content_type
|
1434
|
+
|
1435
|
+
# authentication setting
|
1436
|
+
_auth_settings: List[str] = [
|
1437
|
+
]
|
1438
|
+
|
1439
|
+
return self.api_client.param_serialize(
|
1440
|
+
method='PUT',
|
1441
|
+
resource_path='/api/v1/graph/{graph_id}/storedproc/{stored_procedure_id}',
|
1442
|
+
path_params=_path_params,
|
1443
|
+
query_params=_query_params,
|
1444
|
+
header_params=_header_params,
|
1445
|
+
body=_body_params,
|
1446
|
+
post_params=_form_params,
|
1447
|
+
files=_files,
|
1448
|
+
auth_settings=_auth_settings,
|
1449
|
+
collection_formats=_collection_formats,
|
1450
|
+
_host=_host,
|
1451
|
+
_request_auth=_request_auth
|
1452
|
+
)
|
1453
|
+
|
1454
|
+
|