graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.29.0a20250115__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.0a20250115.dist-info/METADATA +19 -0
- graphscope_flex-0.29.0a20250115.dist-info/RECORD +86 -0
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250115.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.0a20250115.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
|
|
@@ -17,9 +17,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
|
-
from pydantic import StrictStr
|
20
|
+
from pydantic import StrictBool, StrictStr
|
21
|
+
from typing import List, Optional
|
22
|
+
from graphscope.flex.rest.models.create_dataloading_job_response import CreateDataloadingJobResponse
|
23
|
+
from graphscope.flex.rest.models.dataloading_job_config import DataloadingJobConfig
|
24
|
+
from graphscope.flex.rest.models.dataloading_mr_job_config import DataloadingMRJobConfig
|
21
25
|
from graphscope.flex.rest.models.job_status import JobStatus
|
22
|
-
from graphscope.flex.rest.models.schema_mapping import SchemaMapping
|
23
26
|
|
24
27
|
from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
|
25
28
|
from graphscope.flex.rest.api_response import ApiResponse
|
@@ -40,10 +43,10 @@ class JobApi:
|
|
40
43
|
|
41
44
|
|
42
45
|
@validate_call
|
43
|
-
def
|
46
|
+
def delete_job_by_id(
|
44
47
|
self,
|
45
|
-
|
46
|
-
|
48
|
+
job_id: StrictStr,
|
49
|
+
delete_scheduler: Optional[StrictBool] = None,
|
47
50
|
_request_timeout: Union[
|
48
51
|
None,
|
49
52
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -57,13 +60,14 @@ class JobApi:
|
|
57
60
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
58
61
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
59
62
|
) -> str:
|
60
|
-
"""
|
63
|
+
"""delete_job_by_id
|
61
64
|
|
65
|
+
Delete job by ID
|
62
66
|
|
63
|
-
:param
|
64
|
-
:type
|
65
|
-
:param
|
66
|
-
:type
|
67
|
+
:param job_id: (required)
|
68
|
+
:type job_id: str
|
69
|
+
:param delete_scheduler:
|
70
|
+
:type delete_scheduler: bool
|
67
71
|
:param _request_timeout: timeout setting for this request. If one
|
68
72
|
number provided, it will be total request
|
69
73
|
timeout. It can also be a pair (tuple) of
|
@@ -86,9 +90,9 @@ class JobApi:
|
|
86
90
|
:return: Returns the result object.
|
87
91
|
""" # noqa: E501
|
88
92
|
|
89
|
-
_param = self.
|
90
|
-
|
91
|
-
|
93
|
+
_param = self._delete_job_by_id_serialize(
|
94
|
+
job_id=job_id,
|
95
|
+
delete_scheduler=delete_scheduler,
|
92
96
|
_request_auth=_request_auth,
|
93
97
|
_content_type=_content_type,
|
94
98
|
_headers=_headers,
|
@@ -97,6 +101,7 @@ class JobApi:
|
|
97
101
|
|
98
102
|
_response_types_map: Dict[str, Optional[str]] = {
|
99
103
|
'200': "str",
|
104
|
+
'500': "Error",
|
100
105
|
}
|
101
106
|
response_data = self.api_client.call_api(
|
102
107
|
*_param,
|
@@ -110,10 +115,10 @@ class JobApi:
|
|
110
115
|
|
111
116
|
|
112
117
|
@validate_call
|
113
|
-
def
|
118
|
+
def delete_job_by_id_with_http_info(
|
114
119
|
self,
|
115
|
-
|
116
|
-
|
120
|
+
job_id: StrictStr,
|
121
|
+
delete_scheduler: Optional[StrictBool] = None,
|
117
122
|
_request_timeout: Union[
|
118
123
|
None,
|
119
124
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -127,13 +132,14 @@ class JobApi:
|
|
127
132
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
128
133
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
129
134
|
) -> ApiResponse[str]:
|
130
|
-
"""
|
135
|
+
"""delete_job_by_id
|
131
136
|
|
137
|
+
Delete job by ID
|
132
138
|
|
133
|
-
:param
|
134
|
-
:type
|
135
|
-
:param
|
136
|
-
:type
|
139
|
+
:param job_id: (required)
|
140
|
+
:type job_id: str
|
141
|
+
:param delete_scheduler:
|
142
|
+
:type delete_scheduler: bool
|
137
143
|
:param _request_timeout: timeout setting for this request. If one
|
138
144
|
number provided, it will be total request
|
139
145
|
timeout. It can also be a pair (tuple) of
|
@@ -156,9 +162,9 @@ class JobApi:
|
|
156
162
|
:return: Returns the result object.
|
157
163
|
""" # noqa: E501
|
158
164
|
|
159
|
-
_param = self.
|
160
|
-
|
161
|
-
|
165
|
+
_param = self._delete_job_by_id_serialize(
|
166
|
+
job_id=job_id,
|
167
|
+
delete_scheduler=delete_scheduler,
|
162
168
|
_request_auth=_request_auth,
|
163
169
|
_content_type=_content_type,
|
164
170
|
_headers=_headers,
|
@@ -167,6 +173,7 @@ class JobApi:
|
|
167
173
|
|
168
174
|
_response_types_map: Dict[str, Optional[str]] = {
|
169
175
|
'200': "str",
|
176
|
+
'500': "Error",
|
170
177
|
}
|
171
178
|
response_data = self.api_client.call_api(
|
172
179
|
*_param,
|
@@ -180,10 +187,10 @@ class JobApi:
|
|
180
187
|
|
181
188
|
|
182
189
|
@validate_call
|
183
|
-
def
|
190
|
+
def delete_job_by_id_without_preload_content(
|
184
191
|
self,
|
185
|
-
|
186
|
-
|
192
|
+
job_id: StrictStr,
|
193
|
+
delete_scheduler: Optional[StrictBool] = None,
|
187
194
|
_request_timeout: Union[
|
188
195
|
None,
|
189
196
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -197,13 +204,14 @@ class JobApi:
|
|
197
204
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
198
205
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
199
206
|
) -> RESTResponseType:
|
200
|
-
"""
|
207
|
+
"""delete_job_by_id
|
201
208
|
|
209
|
+
Delete job by ID
|
202
210
|
|
203
|
-
:param
|
204
|
-
:type
|
205
|
-
:param
|
206
|
-
:type
|
211
|
+
:param job_id: (required)
|
212
|
+
:type job_id: str
|
213
|
+
:param delete_scheduler:
|
214
|
+
:type delete_scheduler: bool
|
207
215
|
:param _request_timeout: timeout setting for this request. If one
|
208
216
|
number provided, it will be total request
|
209
217
|
timeout. It can also be a pair (tuple) of
|
@@ -226,9 +234,9 @@ class JobApi:
|
|
226
234
|
:return: Returns the result object.
|
227
235
|
""" # noqa: E501
|
228
236
|
|
229
|
-
_param = self.
|
230
|
-
|
231
|
-
|
237
|
+
_param = self._delete_job_by_id_serialize(
|
238
|
+
job_id=job_id,
|
239
|
+
delete_scheduler=delete_scheduler,
|
232
240
|
_request_auth=_request_auth,
|
233
241
|
_content_type=_content_type,
|
234
242
|
_headers=_headers,
|
@@ -237,6 +245,7 @@ class JobApi:
|
|
237
245
|
|
238
246
|
_response_types_map: Dict[str, Optional[str]] = {
|
239
247
|
'200': "str",
|
248
|
+
'500': "Error",
|
240
249
|
}
|
241
250
|
response_data = self.api_client.call_api(
|
242
251
|
*_param,
|
@@ -245,10 +254,10 @@ class JobApi:
|
|
245
254
|
return response_data.response
|
246
255
|
|
247
256
|
|
248
|
-
def
|
257
|
+
def _delete_job_by_id_serialize(
|
249
258
|
self,
|
250
|
-
|
251
|
-
|
259
|
+
job_id,
|
260
|
+
delete_scheduler,
|
252
261
|
_request_auth,
|
253
262
|
_content_type,
|
254
263
|
_headers,
|
@@ -264,48 +273,38 @@ class JobApi:
|
|
264
273
|
_query_params: List[Tuple[str, str]] = []
|
265
274
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
266
275
|
_form_params: List[Tuple[str, str]] = []
|
267
|
-
_files: Dict[str, str] = {}
|
276
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
268
277
|
_body_params: Optional[bytes] = None
|
269
278
|
|
270
279
|
# process the path parameters
|
271
|
-
if
|
272
|
-
_path_params['
|
280
|
+
if job_id is not None:
|
281
|
+
_path_params['job_id'] = job_id
|
273
282
|
# process the query parameters
|
283
|
+
if delete_scheduler is not None:
|
284
|
+
|
285
|
+
_query_params.append(('delete_scheduler', delete_scheduler))
|
286
|
+
|
274
287
|
# process the header parameters
|
275
288
|
# process the form parameters
|
276
289
|
# process the body parameter
|
277
|
-
if schema_mapping is not None:
|
278
|
-
_body_params = schema_mapping
|
279
290
|
|
280
291
|
|
281
292
|
# set the HTTP header `Accept`
|
282
|
-
|
283
|
-
[
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
# set the HTTP header `Content-Type`
|
289
|
-
if _content_type:
|
290
|
-
_header_params['Content-Type'] = _content_type
|
291
|
-
else:
|
292
|
-
_default_content_type = (
|
293
|
-
self.api_client.select_header_content_type(
|
294
|
-
[
|
295
|
-
'application/json'
|
296
|
-
]
|
297
|
-
)
|
293
|
+
if 'Accept' not in _header_params:
|
294
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
295
|
+
[
|
296
|
+
'application/json'
|
297
|
+
]
|
298
298
|
)
|
299
|
-
|
300
|
-
_header_params['Content-Type'] = _default_content_type
|
299
|
+
|
301
300
|
|
302
301
|
# authentication setting
|
303
302
|
_auth_settings: List[str] = [
|
304
303
|
]
|
305
304
|
|
306
305
|
return self.api_client.param_serialize(
|
307
|
-
method='
|
308
|
-
resource_path='/api/v1/
|
306
|
+
method='DELETE',
|
307
|
+
resource_path='/api/v1/job/{job_id}',
|
309
308
|
path_params=_path_params,
|
310
309
|
query_params=_query_params,
|
311
310
|
header_params=_header_params,
|
@@ -322,9 +321,10 @@ class JobApi:
|
|
322
321
|
|
323
322
|
|
324
323
|
@validate_call
|
325
|
-
def
|
324
|
+
def get_dataloading_job_config(
|
326
325
|
self,
|
327
|
-
|
326
|
+
graph_id: StrictStr,
|
327
|
+
dataloading_job_config: DataloadingJobConfig,
|
328
328
|
_request_timeout: Union[
|
329
329
|
None,
|
330
330
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -337,12 +337,15 @@ class JobApi:
|
|
337
337
|
_content_type: Optional[StrictStr] = None,
|
338
338
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
339
339
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
340
|
-
) ->
|
341
|
-
"""
|
340
|
+
) -> DataloadingMRJobConfig:
|
341
|
+
"""get_dataloading_job_config
|
342
342
|
|
343
|
+
Post to get the data loading configuration for MapReduce Task
|
343
344
|
|
344
|
-
:param
|
345
|
-
:type
|
345
|
+
:param graph_id: (required)
|
346
|
+
:type graph_id: str
|
347
|
+
:param dataloading_job_config: (required)
|
348
|
+
:type dataloading_job_config: DataloadingJobConfig
|
346
349
|
:param _request_timeout: timeout setting for this request. If one
|
347
350
|
number provided, it will be total request
|
348
351
|
timeout. It can also be a pair (tuple) of
|
@@ -365,8 +368,9 @@ class JobApi:
|
|
365
368
|
:return: Returns the result object.
|
366
369
|
""" # noqa: E501
|
367
370
|
|
368
|
-
_param = self.
|
369
|
-
|
371
|
+
_param = self._get_dataloading_job_config_serialize(
|
372
|
+
graph_id=graph_id,
|
373
|
+
dataloading_job_config=dataloading_job_config,
|
370
374
|
_request_auth=_request_auth,
|
371
375
|
_content_type=_content_type,
|
372
376
|
_headers=_headers,
|
@@ -374,7 +378,8 @@ class JobApi:
|
|
374
378
|
)
|
375
379
|
|
376
380
|
_response_types_map: Dict[str, Optional[str]] = {
|
377
|
-
'200': "
|
381
|
+
'200': "DataloadingMRJobConfig",
|
382
|
+
'500': "Error",
|
378
383
|
}
|
379
384
|
response_data = self.api_client.call_api(
|
380
385
|
*_param,
|
@@ -388,9 +393,10 @@ class JobApi:
|
|
388
393
|
|
389
394
|
|
390
395
|
@validate_call
|
391
|
-
def
|
396
|
+
def get_dataloading_job_config_with_http_info(
|
392
397
|
self,
|
393
|
-
|
398
|
+
graph_id: StrictStr,
|
399
|
+
dataloading_job_config: DataloadingJobConfig,
|
394
400
|
_request_timeout: Union[
|
395
401
|
None,
|
396
402
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -403,12 +409,15 @@ class JobApi:
|
|
403
409
|
_content_type: Optional[StrictStr] = None,
|
404
410
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
405
411
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
406
|
-
) -> ApiResponse[
|
407
|
-
"""
|
412
|
+
) -> ApiResponse[DataloadingMRJobConfig]:
|
413
|
+
"""get_dataloading_job_config
|
408
414
|
|
415
|
+
Post to get the data loading configuration for MapReduce Task
|
409
416
|
|
410
|
-
:param
|
411
|
-
:type
|
417
|
+
:param graph_id: (required)
|
418
|
+
:type graph_id: str
|
419
|
+
:param dataloading_job_config: (required)
|
420
|
+
:type dataloading_job_config: DataloadingJobConfig
|
412
421
|
:param _request_timeout: timeout setting for this request. If one
|
413
422
|
number provided, it will be total request
|
414
423
|
timeout. It can also be a pair (tuple) of
|
@@ -431,8 +440,9 @@ class JobApi:
|
|
431
440
|
:return: Returns the result object.
|
432
441
|
""" # noqa: E501
|
433
442
|
|
434
|
-
_param = self.
|
435
|
-
|
443
|
+
_param = self._get_dataloading_job_config_serialize(
|
444
|
+
graph_id=graph_id,
|
445
|
+
dataloading_job_config=dataloading_job_config,
|
436
446
|
_request_auth=_request_auth,
|
437
447
|
_content_type=_content_type,
|
438
448
|
_headers=_headers,
|
@@ -440,7 +450,8 @@ class JobApi:
|
|
440
450
|
)
|
441
451
|
|
442
452
|
_response_types_map: Dict[str, Optional[str]] = {
|
443
|
-
'200': "
|
453
|
+
'200': "DataloadingMRJobConfig",
|
454
|
+
'500': "Error",
|
444
455
|
}
|
445
456
|
response_data = self.api_client.call_api(
|
446
457
|
*_param,
|
@@ -454,9 +465,10 @@ class JobApi:
|
|
454
465
|
|
455
466
|
|
456
467
|
@validate_call
|
457
|
-
def
|
468
|
+
def get_dataloading_job_config_without_preload_content(
|
458
469
|
self,
|
459
|
-
|
470
|
+
graph_id: StrictStr,
|
471
|
+
dataloading_job_config: DataloadingJobConfig,
|
460
472
|
_request_timeout: Union[
|
461
473
|
None,
|
462
474
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -470,11 +482,14 @@ class JobApi:
|
|
470
482
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
471
483
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
472
484
|
) -> RESTResponseType:
|
473
|
-
"""
|
485
|
+
"""get_dataloading_job_config
|
474
486
|
|
487
|
+
Post to get the data loading configuration for MapReduce Task
|
475
488
|
|
476
|
-
:param
|
477
|
-
:type
|
489
|
+
:param graph_id: (required)
|
490
|
+
:type graph_id: str
|
491
|
+
:param dataloading_job_config: (required)
|
492
|
+
:type dataloading_job_config: DataloadingJobConfig
|
478
493
|
:param _request_timeout: timeout setting for this request. If one
|
479
494
|
number provided, it will be total request
|
480
495
|
timeout. It can also be a pair (tuple) of
|
@@ -497,8 +512,9 @@ class JobApi:
|
|
497
512
|
:return: Returns the result object.
|
498
513
|
""" # noqa: E501
|
499
514
|
|
500
|
-
_param = self.
|
501
|
-
|
515
|
+
_param = self._get_dataloading_job_config_serialize(
|
516
|
+
graph_id=graph_id,
|
517
|
+
dataloading_job_config=dataloading_job_config,
|
502
518
|
_request_auth=_request_auth,
|
503
519
|
_content_type=_content_type,
|
504
520
|
_headers=_headers,
|
@@ -506,7 +522,8 @@ class JobApi:
|
|
506
522
|
)
|
507
523
|
|
508
524
|
_response_types_map: Dict[str, Optional[str]] = {
|
509
|
-
'200': "
|
525
|
+
'200': "DataloadingMRJobConfig",
|
526
|
+
'500': "Error",
|
510
527
|
}
|
511
528
|
response_data = self.api_client.call_api(
|
512
529
|
*_param,
|
@@ -515,9 +532,10 @@ class JobApi:
|
|
515
532
|
return response_data.response
|
516
533
|
|
517
534
|
|
518
|
-
def
|
535
|
+
def _get_dataloading_job_config_serialize(
|
519
536
|
self,
|
520
|
-
|
537
|
+
graph_id,
|
538
|
+
dataloading_job_config,
|
521
539
|
_request_auth,
|
522
540
|
_content_type,
|
523
541
|
_headers,
|
@@ -533,33 +551,49 @@ class JobApi:
|
|
533
551
|
_query_params: List[Tuple[str, str]] = []
|
534
552
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
535
553
|
_form_params: List[Tuple[str, str]] = []
|
536
|
-
_files: Dict[str, str] = {}
|
554
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
537
555
|
_body_params: Optional[bytes] = None
|
538
556
|
|
539
557
|
# process the path parameters
|
540
|
-
if
|
541
|
-
_path_params['
|
558
|
+
if graph_id is not None:
|
559
|
+
_path_params['graph_id'] = graph_id
|
542
560
|
# process the query parameters
|
543
561
|
# process the header parameters
|
544
562
|
# process the form parameters
|
545
563
|
# process the body parameter
|
564
|
+
if dataloading_job_config is not None:
|
565
|
+
_body_params = dataloading_job_config
|
546
566
|
|
547
567
|
|
548
568
|
# set the HTTP header `Accept`
|
549
|
-
|
550
|
-
[
|
551
|
-
|
552
|
-
|
553
|
-
|
569
|
+
if 'Accept' not in _header_params:
|
570
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
571
|
+
[
|
572
|
+
'application/json'
|
573
|
+
]
|
574
|
+
)
|
554
575
|
|
576
|
+
# set the HTTP header `Content-Type`
|
577
|
+
if _content_type:
|
578
|
+
_header_params['Content-Type'] = _content_type
|
579
|
+
else:
|
580
|
+
_default_content_type = (
|
581
|
+
self.api_client.select_header_content_type(
|
582
|
+
[
|
583
|
+
'application/json'
|
584
|
+
]
|
585
|
+
)
|
586
|
+
)
|
587
|
+
if _default_content_type is not None:
|
588
|
+
_header_params['Content-Type'] = _default_content_type
|
555
589
|
|
556
590
|
# authentication setting
|
557
591
|
_auth_settings: List[str] = [
|
558
592
|
]
|
559
593
|
|
560
594
|
return self.api_client.param_serialize(
|
561
|
-
method='
|
562
|
-
resource_path='/api/v1/
|
595
|
+
method='POST',
|
596
|
+
resource_path='/api/v1/graph/{graph_id}/dataloading/config',
|
563
597
|
path_params=_path_params,
|
564
598
|
query_params=_query_params,
|
565
599
|
header_params=_header_params,
|
@@ -576,9 +610,9 @@ class JobApi:
|
|
576
610
|
|
577
611
|
|
578
612
|
@validate_call
|
579
|
-
def
|
613
|
+
def get_job_by_id(
|
580
614
|
self,
|
581
|
-
|
615
|
+
job_id: StrictStr,
|
582
616
|
_request_timeout: Union[
|
583
617
|
None,
|
584
618
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -591,13 +625,13 @@ class JobApi:
|
|
591
625
|
_content_type: Optional[StrictStr] = None,
|
592
626
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
593
627
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
594
|
-
) ->
|
595
|
-
"""
|
628
|
+
) -> JobStatus:
|
629
|
+
"""get_job_by_id
|
596
630
|
|
597
|
-
|
631
|
+
Get job status by ID
|
598
632
|
|
599
|
-
:param
|
600
|
-
:type
|
633
|
+
:param job_id: (required)
|
634
|
+
:type job_id: str
|
601
635
|
:param _request_timeout: timeout setting for this request. If one
|
602
636
|
number provided, it will be total request
|
603
637
|
timeout. It can also be a pair (tuple) of
|
@@ -620,8 +654,8 @@ class JobApi:
|
|
620
654
|
:return: Returns the result object.
|
621
655
|
""" # noqa: E501
|
622
656
|
|
623
|
-
_param = self.
|
624
|
-
|
657
|
+
_param = self._get_job_by_id_serialize(
|
658
|
+
job_id=job_id,
|
625
659
|
_request_auth=_request_auth,
|
626
660
|
_content_type=_content_type,
|
627
661
|
_headers=_headers,
|
@@ -629,7 +663,8 @@ class JobApi:
|
|
629
663
|
)
|
630
664
|
|
631
665
|
_response_types_map: Dict[str, Optional[str]] = {
|
632
|
-
'200': "
|
666
|
+
'200': "JobStatus",
|
667
|
+
'500': "Error",
|
633
668
|
}
|
634
669
|
response_data = self.api_client.call_api(
|
635
670
|
*_param,
|
@@ -643,9 +678,9 @@ class JobApi:
|
|
643
678
|
|
644
679
|
|
645
680
|
@validate_call
|
646
|
-
def
|
681
|
+
def get_job_by_id_with_http_info(
|
647
682
|
self,
|
648
|
-
|
683
|
+
job_id: StrictStr,
|
649
684
|
_request_timeout: Union[
|
650
685
|
None,
|
651
686
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -658,13 +693,13 @@ class JobApi:
|
|
658
693
|
_content_type: Optional[StrictStr] = None,
|
659
694
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
660
695
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
661
|
-
) -> ApiResponse[
|
662
|
-
"""
|
696
|
+
) -> ApiResponse[JobStatus]:
|
697
|
+
"""get_job_by_id
|
663
698
|
|
664
|
-
|
699
|
+
Get job status by ID
|
665
700
|
|
666
|
-
:param
|
667
|
-
:type
|
701
|
+
:param job_id: (required)
|
702
|
+
:type job_id: str
|
668
703
|
:param _request_timeout: timeout setting for this request. If one
|
669
704
|
number provided, it will be total request
|
670
705
|
timeout. It can also be a pair (tuple) of
|
@@ -687,8 +722,8 @@ class JobApi:
|
|
687
722
|
:return: Returns the result object.
|
688
723
|
""" # noqa: E501
|
689
724
|
|
690
|
-
_param = self.
|
691
|
-
|
725
|
+
_param = self._get_job_by_id_serialize(
|
726
|
+
job_id=job_id,
|
692
727
|
_request_auth=_request_auth,
|
693
728
|
_content_type=_content_type,
|
694
729
|
_headers=_headers,
|
@@ -696,7 +731,8 @@ class JobApi:
|
|
696
731
|
)
|
697
732
|
|
698
733
|
_response_types_map: Dict[str, Optional[str]] = {
|
699
|
-
'200': "
|
734
|
+
'200': "JobStatus",
|
735
|
+
'500': "Error",
|
700
736
|
}
|
701
737
|
response_data = self.api_client.call_api(
|
702
738
|
*_param,
|
@@ -710,9 +746,9 @@ class JobApi:
|
|
710
746
|
|
711
747
|
|
712
748
|
@validate_call
|
713
|
-
def
|
749
|
+
def get_job_by_id_without_preload_content(
|
714
750
|
self,
|
715
|
-
|
751
|
+
job_id: StrictStr,
|
716
752
|
_request_timeout: Union[
|
717
753
|
None,
|
718
754
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -726,12 +762,12 @@ class JobApi:
|
|
726
762
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
727
763
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
728
764
|
) -> RESTResponseType:
|
729
|
-
"""
|
765
|
+
"""get_job_by_id
|
730
766
|
|
731
|
-
|
767
|
+
Get job status by ID
|
732
768
|
|
733
|
-
:param
|
734
|
-
:type
|
769
|
+
:param job_id: (required)
|
770
|
+
:type job_id: str
|
735
771
|
:param _request_timeout: timeout setting for this request. If one
|
736
772
|
number provided, it will be total request
|
737
773
|
timeout. It can also be a pair (tuple) of
|
@@ -754,8 +790,8 @@ class JobApi:
|
|
754
790
|
:return: Returns the result object.
|
755
791
|
""" # noqa: E501
|
756
792
|
|
757
|
-
_param = self.
|
758
|
-
|
793
|
+
_param = self._get_job_by_id_serialize(
|
794
|
+
job_id=job_id,
|
759
795
|
_request_auth=_request_auth,
|
760
796
|
_content_type=_content_type,
|
761
797
|
_headers=_headers,
|
@@ -763,7 +799,8 @@ class JobApi:
|
|
763
799
|
)
|
764
800
|
|
765
801
|
_response_types_map: Dict[str, Optional[str]] = {
|
766
|
-
'200': "
|
802
|
+
'200': "JobStatus",
|
803
|
+
'500': "Error",
|
767
804
|
}
|
768
805
|
response_data = self.api_client.call_api(
|
769
806
|
*_param,
|
@@ -772,9 +809,9 @@ class JobApi:
|
|
772
809
|
return response_data.response
|
773
810
|
|
774
811
|
|
775
|
-
def
|
812
|
+
def _get_job_by_id_serialize(
|
776
813
|
self,
|
777
|
-
|
814
|
+
job_id,
|
778
815
|
_request_auth,
|
779
816
|
_content_type,
|
780
817
|
_headers,
|
@@ -790,12 +827,12 @@ class JobApi:
|
|
790
827
|
_query_params: List[Tuple[str, str]] = []
|
791
828
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
792
829
|
_form_params: List[Tuple[str, str]] = []
|
793
|
-
_files: Dict[str, str] = {}
|
830
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
794
831
|
_body_params: Optional[bytes] = None
|
795
832
|
|
796
833
|
# process the path parameters
|
797
|
-
if
|
798
|
-
_path_params['
|
834
|
+
if job_id is not None:
|
835
|
+
_path_params['job_id'] = job_id
|
799
836
|
# process the query parameters
|
800
837
|
# process the header parameters
|
801
838
|
# process the form parameters
|
@@ -803,11 +840,12 @@ class JobApi:
|
|
803
840
|
|
804
841
|
|
805
842
|
# set the HTTP header `Accept`
|
806
|
-
|
807
|
-
[
|
808
|
-
|
809
|
-
|
810
|
-
|
843
|
+
if 'Accept' not in _header_params:
|
844
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
845
|
+
[
|
846
|
+
'application/json'
|
847
|
+
]
|
848
|
+
)
|
811
849
|
|
812
850
|
|
813
851
|
# authentication setting
|
@@ -816,7 +854,7 @@ class JobApi:
|
|
816
854
|
|
817
855
|
return self.api_client.param_serialize(
|
818
856
|
method='GET',
|
819
|
-
resource_path='/api/v1/
|
857
|
+
resource_path='/api/v1/job/{job_id}',
|
820
858
|
path_params=_path_params,
|
821
859
|
query_params=_query_params,
|
822
860
|
header_params=_header_params,
|
@@ -833,9 +871,8 @@ class JobApi:
|
|
833
871
|
|
834
872
|
|
835
873
|
@validate_call
|
836
|
-
def
|
874
|
+
def list_jobs(
|
837
875
|
self,
|
838
|
-
job_id: StrictStr,
|
839
876
|
_request_timeout: Union[
|
840
877
|
None,
|
841
878
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -848,12 +885,11 @@ class JobApi:
|
|
848
885
|
_content_type: Optional[StrictStr] = None,
|
849
886
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
850
887
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
851
|
-
) -> JobStatus:
|
852
|
-
"""
|
888
|
+
) -> List[JobStatus]:
|
889
|
+
"""list_jobs
|
853
890
|
|
891
|
+
List all jobs
|
854
892
|
|
855
|
-
:param job_id: (required)
|
856
|
-
:type job_id: str
|
857
893
|
:param _request_timeout: timeout setting for this request. If one
|
858
894
|
number provided, it will be total request
|
859
895
|
timeout. It can also be a pair (tuple) of
|
@@ -876,8 +912,7 @@ class JobApi:
|
|
876
912
|
:return: Returns the result object.
|
877
913
|
""" # noqa: E501
|
878
914
|
|
879
|
-
_param = self.
|
880
|
-
job_id=job_id,
|
915
|
+
_param = self._list_jobs_serialize(
|
881
916
|
_request_auth=_request_auth,
|
882
917
|
_content_type=_content_type,
|
883
918
|
_headers=_headers,
|
@@ -885,7 +920,8 @@ class JobApi:
|
|
885
920
|
)
|
886
921
|
|
887
922
|
_response_types_map: Dict[str, Optional[str]] = {
|
888
|
-
'200': "JobStatus",
|
923
|
+
'200': "List[JobStatus]",
|
924
|
+
'500': "Error",
|
889
925
|
}
|
890
926
|
response_data = self.api_client.call_api(
|
891
927
|
*_param,
|
@@ -899,9 +935,8 @@ class JobApi:
|
|
899
935
|
|
900
936
|
|
901
937
|
@validate_call
|
902
|
-
def
|
938
|
+
def list_jobs_with_http_info(
|
903
939
|
self,
|
904
|
-
job_id: StrictStr,
|
905
940
|
_request_timeout: Union[
|
906
941
|
None,
|
907
942
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -914,12 +949,11 @@ class JobApi:
|
|
914
949
|
_content_type: Optional[StrictStr] = None,
|
915
950
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
916
951
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
917
|
-
) -> ApiResponse[JobStatus]:
|
918
|
-
"""
|
952
|
+
) -> ApiResponse[List[JobStatus]]:
|
953
|
+
"""list_jobs
|
919
954
|
|
955
|
+
List all jobs
|
920
956
|
|
921
|
-
:param job_id: (required)
|
922
|
-
:type job_id: str
|
923
957
|
:param _request_timeout: timeout setting for this request. If one
|
924
958
|
number provided, it will be total request
|
925
959
|
timeout. It can also be a pair (tuple) of
|
@@ -942,8 +976,7 @@ class JobApi:
|
|
942
976
|
:return: Returns the result object.
|
943
977
|
""" # noqa: E501
|
944
978
|
|
945
|
-
_param = self.
|
946
|
-
job_id=job_id,
|
979
|
+
_param = self._list_jobs_serialize(
|
947
980
|
_request_auth=_request_auth,
|
948
981
|
_content_type=_content_type,
|
949
982
|
_headers=_headers,
|
@@ -951,7 +984,8 @@ class JobApi:
|
|
951
984
|
)
|
952
985
|
|
953
986
|
_response_types_map: Dict[str, Optional[str]] = {
|
954
|
-
'200': "JobStatus",
|
987
|
+
'200': "List[JobStatus]",
|
988
|
+
'500': "Error",
|
955
989
|
}
|
956
990
|
response_data = self.api_client.call_api(
|
957
991
|
*_param,
|
@@ -965,9 +999,8 @@ class JobApi:
|
|
965
999
|
|
966
1000
|
|
967
1001
|
@validate_call
|
968
|
-
def
|
1002
|
+
def list_jobs_without_preload_content(
|
969
1003
|
self,
|
970
|
-
job_id: StrictStr,
|
971
1004
|
_request_timeout: Union[
|
972
1005
|
None,
|
973
1006
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -981,11 +1014,10 @@ class JobApi:
|
|
981
1014
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
982
1015
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
983
1016
|
) -> RESTResponseType:
|
984
|
-
"""
|
1017
|
+
"""list_jobs
|
985
1018
|
|
1019
|
+
List all jobs
|
986
1020
|
|
987
|
-
:param job_id: (required)
|
988
|
-
:type job_id: str
|
989
1021
|
:param _request_timeout: timeout setting for this request. If one
|
990
1022
|
number provided, it will be total request
|
991
1023
|
timeout. It can also be a pair (tuple) of
|
@@ -1008,8 +1040,7 @@ class JobApi:
|
|
1008
1040
|
:return: Returns the result object.
|
1009
1041
|
""" # noqa: E501
|
1010
1042
|
|
1011
|
-
_param = self.
|
1012
|
-
job_id=job_id,
|
1043
|
+
_param = self._list_jobs_serialize(
|
1013
1044
|
_request_auth=_request_auth,
|
1014
1045
|
_content_type=_content_type,
|
1015
1046
|
_headers=_headers,
|
@@ -1017,7 +1048,8 @@ class JobApi:
|
|
1017
1048
|
)
|
1018
1049
|
|
1019
1050
|
_response_types_map: Dict[str, Optional[str]] = {
|
1020
|
-
'200': "JobStatus",
|
1051
|
+
'200': "List[JobStatus]",
|
1052
|
+
'500': "Error",
|
1021
1053
|
}
|
1022
1054
|
response_data = self.api_client.call_api(
|
1023
1055
|
*_param,
|
@@ -1026,9 +1058,8 @@ class JobApi:
|
|
1026
1058
|
return response_data.response
|
1027
1059
|
|
1028
1060
|
|
1029
|
-
def
|
1061
|
+
def _list_jobs_serialize(
|
1030
1062
|
self,
|
1031
|
-
job_id,
|
1032
1063
|
_request_auth,
|
1033
1064
|
_content_type,
|
1034
1065
|
_headers,
|
@@ -1044,12 +1075,10 @@ class JobApi:
|
|
1044
1075
|
_query_params: List[Tuple[str, str]] = []
|
1045
1076
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1046
1077
|
_form_params: List[Tuple[str, str]] = []
|
1047
|
-
_files: Dict[str, str] = {}
|
1078
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1048
1079
|
_body_params: Optional[bytes] = None
|
1049
1080
|
|
1050
1081
|
# process the path parameters
|
1051
|
-
if job_id is not None:
|
1052
|
-
_path_params['job_id'] = job_id
|
1053
1082
|
# process the query parameters
|
1054
1083
|
# process the header parameters
|
1055
1084
|
# process the form parameters
|
@@ -1057,11 +1086,12 @@ class JobApi:
|
|
1057
1086
|
|
1058
1087
|
|
1059
1088
|
# set the HTTP header `Accept`
|
1060
|
-
|
1061
|
-
[
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1089
|
+
if 'Accept' not in _header_params:
|
1090
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1091
|
+
[
|
1092
|
+
'application/json'
|
1093
|
+
]
|
1094
|
+
)
|
1065
1095
|
|
1066
1096
|
|
1067
1097
|
# authentication setting
|
@@ -1070,7 +1100,7 @@ class JobApi:
|
|
1070
1100
|
|
1071
1101
|
return self.api_client.param_serialize(
|
1072
1102
|
method='GET',
|
1073
|
-
resource_path='/api/v1/job
|
1103
|
+
resource_path='/api/v1/job',
|
1074
1104
|
path_params=_path_params,
|
1075
1105
|
query_params=_query_params,
|
1076
1106
|
header_params=_header_params,
|
@@ -1087,8 +1117,10 @@ class JobApi:
|
|
1087
1117
|
|
1088
1118
|
|
1089
1119
|
@validate_call
|
1090
|
-
def
|
1120
|
+
def submit_dataloading_job(
|
1091
1121
|
self,
|
1122
|
+
graph_id: StrictStr,
|
1123
|
+
dataloading_job_config: DataloadingJobConfig,
|
1092
1124
|
_request_timeout: Union[
|
1093
1125
|
None,
|
1094
1126
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1101,10 +1133,15 @@ class JobApi:
|
|
1101
1133
|
_content_type: Optional[StrictStr] = None,
|
1102
1134
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1103
1135
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1104
|
-
) ->
|
1105
|
-
"""
|
1136
|
+
) -> CreateDataloadingJobResponse:
|
1137
|
+
"""submit_dataloading_job
|
1106
1138
|
|
1139
|
+
Submit a dataloading job
|
1107
1140
|
|
1141
|
+
:param graph_id: (required)
|
1142
|
+
:type graph_id: str
|
1143
|
+
:param dataloading_job_config: (required)
|
1144
|
+
:type dataloading_job_config: DataloadingJobConfig
|
1108
1145
|
:param _request_timeout: timeout setting for this request. If one
|
1109
1146
|
number provided, it will be total request
|
1110
1147
|
timeout. It can also be a pair (tuple) of
|
@@ -1127,7 +1164,9 @@ class JobApi:
|
|
1127
1164
|
:return: Returns the result object.
|
1128
1165
|
""" # noqa: E501
|
1129
1166
|
|
1130
|
-
_param = self.
|
1167
|
+
_param = self._submit_dataloading_job_serialize(
|
1168
|
+
graph_id=graph_id,
|
1169
|
+
dataloading_job_config=dataloading_job_config,
|
1131
1170
|
_request_auth=_request_auth,
|
1132
1171
|
_content_type=_content_type,
|
1133
1172
|
_headers=_headers,
|
@@ -1135,7 +1174,9 @@ class JobApi:
|
|
1135
1174
|
)
|
1136
1175
|
|
1137
1176
|
_response_types_map: Dict[str, Optional[str]] = {
|
1138
|
-
'200': "
|
1177
|
+
'200': "CreateDataloadingJobResponse",
|
1178
|
+
'400': "Error",
|
1179
|
+
'500': "Error",
|
1139
1180
|
}
|
1140
1181
|
response_data = self.api_client.call_api(
|
1141
1182
|
*_param,
|
@@ -1149,8 +1190,10 @@ class JobApi:
|
|
1149
1190
|
|
1150
1191
|
|
1151
1192
|
@validate_call
|
1152
|
-
def
|
1193
|
+
def submit_dataloading_job_with_http_info(
|
1153
1194
|
self,
|
1195
|
+
graph_id: StrictStr,
|
1196
|
+
dataloading_job_config: DataloadingJobConfig,
|
1154
1197
|
_request_timeout: Union[
|
1155
1198
|
None,
|
1156
1199
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1163,10 +1206,15 @@ class JobApi:
|
|
1163
1206
|
_content_type: Optional[StrictStr] = None,
|
1164
1207
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1165
1208
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1166
|
-
) -> ApiResponse[
|
1167
|
-
"""
|
1209
|
+
) -> ApiResponse[CreateDataloadingJobResponse]:
|
1210
|
+
"""submit_dataloading_job
|
1168
1211
|
|
1212
|
+
Submit a dataloading job
|
1169
1213
|
|
1214
|
+
:param graph_id: (required)
|
1215
|
+
:type graph_id: str
|
1216
|
+
:param dataloading_job_config: (required)
|
1217
|
+
:type dataloading_job_config: DataloadingJobConfig
|
1170
1218
|
:param _request_timeout: timeout setting for this request. If one
|
1171
1219
|
number provided, it will be total request
|
1172
1220
|
timeout. It can also be a pair (tuple) of
|
@@ -1189,7 +1237,9 @@ class JobApi:
|
|
1189
1237
|
:return: Returns the result object.
|
1190
1238
|
""" # noqa: E501
|
1191
1239
|
|
1192
|
-
_param = self.
|
1240
|
+
_param = self._submit_dataloading_job_serialize(
|
1241
|
+
graph_id=graph_id,
|
1242
|
+
dataloading_job_config=dataloading_job_config,
|
1193
1243
|
_request_auth=_request_auth,
|
1194
1244
|
_content_type=_content_type,
|
1195
1245
|
_headers=_headers,
|
@@ -1197,7 +1247,9 @@ class JobApi:
|
|
1197
1247
|
)
|
1198
1248
|
|
1199
1249
|
_response_types_map: Dict[str, Optional[str]] = {
|
1200
|
-
'200': "
|
1250
|
+
'200': "CreateDataloadingJobResponse",
|
1251
|
+
'400': "Error",
|
1252
|
+
'500': "Error",
|
1201
1253
|
}
|
1202
1254
|
response_data = self.api_client.call_api(
|
1203
1255
|
*_param,
|
@@ -1211,8 +1263,10 @@ class JobApi:
|
|
1211
1263
|
|
1212
1264
|
|
1213
1265
|
@validate_call
|
1214
|
-
def
|
1266
|
+
def submit_dataloading_job_without_preload_content(
|
1215
1267
|
self,
|
1268
|
+
graph_id: StrictStr,
|
1269
|
+
dataloading_job_config: DataloadingJobConfig,
|
1216
1270
|
_request_timeout: Union[
|
1217
1271
|
None,
|
1218
1272
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1226,9 +1280,14 @@ class JobApi:
|
|
1226
1280
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1227
1281
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1228
1282
|
) -> RESTResponseType:
|
1229
|
-
"""
|
1283
|
+
"""submit_dataloading_job
|
1230
1284
|
|
1285
|
+
Submit a dataloading job
|
1231
1286
|
|
1287
|
+
:param graph_id: (required)
|
1288
|
+
:type graph_id: str
|
1289
|
+
:param dataloading_job_config: (required)
|
1290
|
+
:type dataloading_job_config: DataloadingJobConfig
|
1232
1291
|
:param _request_timeout: timeout setting for this request. If one
|
1233
1292
|
number provided, it will be total request
|
1234
1293
|
timeout. It can also be a pair (tuple) of
|
@@ -1251,7 +1310,9 @@ class JobApi:
|
|
1251
1310
|
:return: Returns the result object.
|
1252
1311
|
""" # noqa: E501
|
1253
1312
|
|
1254
|
-
_param = self.
|
1313
|
+
_param = self._submit_dataloading_job_serialize(
|
1314
|
+
graph_id=graph_id,
|
1315
|
+
dataloading_job_config=dataloading_job_config,
|
1255
1316
|
_request_auth=_request_auth,
|
1256
1317
|
_content_type=_content_type,
|
1257
1318
|
_headers=_headers,
|
@@ -1259,7 +1320,9 @@ class JobApi:
|
|
1259
1320
|
)
|
1260
1321
|
|
1261
1322
|
_response_types_map: Dict[str, Optional[str]] = {
|
1262
|
-
'200': "
|
1323
|
+
'200': "CreateDataloadingJobResponse",
|
1324
|
+
'400': "Error",
|
1325
|
+
'500': "Error",
|
1263
1326
|
}
|
1264
1327
|
response_data = self.api_client.call_api(
|
1265
1328
|
*_param,
|
@@ -1268,8 +1331,10 @@ class JobApi:
|
|
1268
1331
|
return response_data.response
|
1269
1332
|
|
1270
1333
|
|
1271
|
-
def
|
1334
|
+
def _submit_dataloading_job_serialize(
|
1272
1335
|
self,
|
1336
|
+
graph_id,
|
1337
|
+
dataloading_job_config,
|
1273
1338
|
_request_auth,
|
1274
1339
|
_content_type,
|
1275
1340
|
_headers,
|
@@ -1285,31 +1350,49 @@ class JobApi:
|
|
1285
1350
|
_query_params: List[Tuple[str, str]] = []
|
1286
1351
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1287
1352
|
_form_params: List[Tuple[str, str]] = []
|
1288
|
-
_files: Dict[str, str] = {}
|
1353
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1289
1354
|
_body_params: Optional[bytes] = None
|
1290
1355
|
|
1291
1356
|
# process the path parameters
|
1357
|
+
if graph_id is not None:
|
1358
|
+
_path_params['graph_id'] = graph_id
|
1292
1359
|
# process the query parameters
|
1293
1360
|
# process the header parameters
|
1294
1361
|
# process the form parameters
|
1295
1362
|
# process the body parameter
|
1363
|
+
if dataloading_job_config is not None:
|
1364
|
+
_body_params = dataloading_job_config
|
1296
1365
|
|
1297
1366
|
|
1298
1367
|
# set the HTTP header `Accept`
|
1299
|
-
|
1300
|
-
[
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1368
|
+
if 'Accept' not in _header_params:
|
1369
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1370
|
+
[
|
1371
|
+
'application/json'
|
1372
|
+
]
|
1373
|
+
)
|
1304
1374
|
|
1375
|
+
# set the HTTP header `Content-Type`
|
1376
|
+
if _content_type:
|
1377
|
+
_header_params['Content-Type'] = _content_type
|
1378
|
+
else:
|
1379
|
+
_default_content_type = (
|
1380
|
+
self.api_client.select_header_content_type(
|
1381
|
+
[
|
1382
|
+
'application/json'
|
1383
|
+
]
|
1384
|
+
)
|
1385
|
+
)
|
1386
|
+
if _default_content_type is not None:
|
1387
|
+
_header_params['Content-Type'] = _default_content_type
|
1305
1388
|
|
1306
1389
|
# authentication setting
|
1307
1390
|
_auth_settings: List[str] = [
|
1308
1391
|
]
|
1309
1392
|
|
1310
1393
|
return self.api_client.param_serialize(
|
1311
|
-
method='
|
1312
|
-
resource_path='/api/v1/
|
1394
|
+
method='POST',
|
1395
|
+
resource_path='/api/v1/graph/{graph_id}/dataloading',
|
1313
1396
|
path_params=_path_params,
|
1314
1397
|
query_params=_query_params,
|
1315
1398
|
header_params=_header_params,
|