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.
Files changed (96) hide show
  1. graphscope/flex/rest/__init__.py +59 -44
  2. graphscope/flex/rest/api/__init__.py +2 -4
  3. graphscope/flex/rest/api/alert_api.py +721 -394
  4. graphscope/flex/rest/api/{legacy_api.py → data_source_api.py} +260 -189
  5. graphscope/flex/rest/api/deployment_api.py +388 -138
  6. graphscope/flex/rest/api/graph_api.py +858 -260
  7. graphscope/flex/rest/api/job_api.py +286 -203
  8. graphscope/flex/rest/api/service_api.py +320 -39
  9. graphscope/flex/rest/api/{procedure_api.py → stored_procedure_api.py} +296 -237
  10. graphscope/flex/rest/api/utils_api.py +18 -13
  11. graphscope/flex/rest/api_client.py +60 -30
  12. graphscope/flex/rest/configuration.py +19 -5
  13. graphscope/flex/rest/exceptions.py +2 -2
  14. graphscope/flex/rest/models/__init__.py +57 -40
  15. graphscope/flex/rest/models/{vertex_type.py → base_edge_type.py} +25 -25
  16. graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner.py → base_edge_type_vertex_type_pair_relations_inner.py} +17 -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
  18. graphscope/flex/rest/models/{model_property.py → base_property_meta.py} +28 -19
  19. graphscope/flex/rest/models/base_vertex_type.py +96 -0
  20. graphscope/flex/rest/models/{procedure_params_inner.py → base_vertex_type_x_csr_params.py} +15 -17
  21. graphscope/flex/rest/models/column_mapping.py +13 -13
  22. graphscope/flex/rest/models/{edge_mapping_source_vertex_mappings_inner_column.py → column_mapping_column.py} +12 -12
  23. graphscope/flex/rest/models/{schema_mapping_loading_config_data_source.py → create_alert_receiver_request.py} +29 -24
  24. graphscope/flex/rest/models/{alert_rule.py → create_alert_rule_request.py} +19 -25
  25. graphscope/flex/rest/models/create_dataloading_job_response.py +88 -0
  26. graphscope/flex/rest/models/create_edge_type.py +114 -0
  27. graphscope/flex/rest/models/{graph.py → create_graph_request.py} +27 -33
  28. graphscope/flex/rest/models/create_graph_response.py +88 -0
  29. graphscope/flex/rest/models/{model_schema.py → create_graph_schema_request.py} +25 -25
  30. graphscope/flex/rest/models/{groot_vertex_type.py → create_property_meta.py} +32 -25
  31. graphscope/flex/rest/models/{graph_stored_procedures.py → create_stored_proc_request.py} +26 -23
  32. graphscope/flex/rest/models/create_stored_proc_response.py +88 -0
  33. graphscope/flex/rest/models/create_vertex_type.py +108 -0
  34. graphscope/flex/rest/models/{groot_dataloading_job_config.py → dataloading_job_config.py} +45 -21
  35. graphscope/flex/rest/models/{groot_dataloading_job_config_edges_inner.py → dataloading_job_config_edges_inner.py} +12 -12
  36. graphscope/flex/rest/models/{schema_mapping_loading_config.py → dataloading_job_config_loading_config.py} +16 -22
  37. graphscope/flex/rest/models/{schema_mapping_loading_config_format.py → dataloading_job_config_loading_config_format.py} +12 -12
  38. graphscope/flex/rest/models/{groot_edge_type_relations_inner.py → dataloading_job_config_vertices_inner.py} +15 -17
  39. graphscope/flex/rest/models/dataloading_mr_job_config.py +88 -0
  40. graphscope/flex/rest/models/date_type.py +88 -0
  41. graphscope/flex/rest/models/edge_mapping.py +23 -25
  42. graphscope/flex/rest/models/edge_mapping_type_triplet.py +12 -12
  43. graphscope/flex/rest/models/error.py +90 -0
  44. graphscope/flex/rest/models/{alert_message.py → get_alert_message_response.py} +23 -32
  45. graphscope/flex/rest/models/{alert_receiver.py → get_alert_receiver_response.py} +22 -25
  46. graphscope/flex/rest/models/{connection_status.py → get_alert_rule_response.py} +37 -33
  47. graphscope/flex/rest/models/{edge_type.py → get_edge_type.py} +33 -27
  48. graphscope/flex/rest/models/get_graph_response.py +139 -0
  49. graphscope/flex/rest/models/{groot_schema.py → get_graph_schema_response.py} +32 -32
  50. graphscope/flex/rest/models/get_pod_log_response.py +88 -0
  51. graphscope/flex/rest/models/{edge_mapping_destination_vertex_mappings_inner.py → get_property_meta.py} +34 -19
  52. graphscope/flex/rest/models/get_resource_usage_response.py +105 -0
  53. graphscope/flex/rest/models/get_storage_usage_response.py +88 -0
  54. graphscope/flex/rest/models/{procedure.py → get_stored_proc_response.py} +37 -36
  55. graphscope/flex/rest/models/{groot_edge_type.py → get_vertex_type.py} +33 -31
  56. graphscope/flex/rest/models/gs_data_type.py +152 -0
  57. graphscope/flex/rest/models/job_status.py +14 -17
  58. graphscope/flex/rest/models/{connection.py → long_text.py} +20 -15
  59. graphscope/flex/rest/models/node_status.py +15 -15
  60. graphscope/flex/rest/models/parameter.py +96 -0
  61. graphscope/flex/rest/models/{deployment_info_graphs_info_value.py → pod_status.py} +34 -20
  62. graphscope/flex/rest/models/{property_property_type.py → primitive_type.py} +16 -19
  63. graphscope/flex/rest/models/resource_usage.py +92 -0
  64. graphscope/flex/rest/models/{deployment_info.py → running_deployment_info.py} +42 -45
  65. graphscope/flex/rest/models/running_deployment_status.py +124 -0
  66. graphscope/flex/rest/models/schema_mapping.py +18 -26
  67. graphscope/flex/rest/models/service_status.py +29 -13
  68. graphscope/flex/rest/models/service_status_sdk_endpoints.py +8 -8
  69. graphscope/flex/rest/models/start_service_request.py +11 -11
  70. graphscope/flex/rest/models/{groot_graph.py → stored_procedure_meta.py} +46 -36
  71. graphscope/flex/rest/models/string_type.py +92 -0
  72. graphscope/flex/rest/models/string_type_string.py +124 -0
  73. graphscope/flex/rest/models/temporal_type.py +92 -0
  74. graphscope/flex/rest/models/temporal_type_temporal.py +138 -0
  75. graphscope/flex/rest/models/time_stamp_type.py +88 -0
  76. graphscope/flex/rest/models/update_alert_message_status_request.py +97 -0
  77. graphscope/flex/rest/models/update_stored_proc_request.py +88 -0
  78. graphscope/flex/rest/models/upload_file_response.py +90 -0
  79. graphscope/flex/rest/models/vertex_mapping.py +13 -13
  80. graphscope/flex/rest/rest.py +4 -2
  81. graphscope_flex-0.29.0a20250115.dist-info/METADATA +19 -0
  82. graphscope_flex-0.29.0a20250115.dist-info/RECORD +86 -0
  83. {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250115.dist-info}/WHEEL +1 -1
  84. graphscope/flex/rest/api/connection_api.py +0 -550
  85. graphscope/flex/rest/api/datasource_api.py +0 -2308
  86. graphscope/flex/rest/models/data_source.py +0 -106
  87. graphscope/flex/rest/models/deployment_status.py +0 -108
  88. graphscope/flex/rest/models/edge_data_source.py +0 -112
  89. graphscope/flex/rest/models/edge_mapping_source_vertex_mappings_inner.py +0 -92
  90. graphscope/flex/rest/models/groot_graph_gremlin_interface.py +0 -94
  91. graphscope/flex/rest/models/groot_property.py +0 -104
  92. graphscope/flex/rest/models/update_alert_messages_request.py +0 -110
  93. graphscope/flex/rest/models/vertex_data_source.py +0 -104
  94. graphscope_flex-0.27.0.dist-info/METADATA +0 -17
  95. graphscope_flex-0.27.0.dist-info/RECORD +0 -71
  96. {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/). Some useful links: - [GraphScope Repository](https://github.com/alibaba/GraphScope) - [The Source API definition for GraphScope Interactive](https://github.com/GraphScope/portal/tree/main/httpservice)
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.9.1
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Contact: graphscope@alibaba-inc.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -18,16 +18,14 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import StrictStr
21
- from graphscope.flex.rest.models.groot_dataloading_job_config import GrootDataloadingJobConfig
22
- from graphscope.flex.rest.models.groot_graph import GrootGraph
23
- from graphscope.flex.rest.models.groot_schema import GrootSchema
21
+ from graphscope.flex.rest.models.schema_mapping import SchemaMapping
24
22
 
25
23
  from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
26
24
  from graphscope.flex.rest.api_response import ApiResponse
27
25
  from graphscope.flex.rest.rest import RESTResponseType
28
26
 
29
27
 
30
- class LegacyApi:
28
+ class DataSourceApi:
31
29
  """NOTE: This class is auto generated by OpenAPI Generator
32
30
  Ref: https://openapi-generator.tech
33
31
 
@@ -41,10 +39,10 @@ class LegacyApi:
41
39
 
42
40
 
43
41
  @validate_call
44
- def create_groot_dataloading_job(
42
+ def bind_datasource_in_batch(
45
43
  self,
46
- graph_name: StrictStr,
47
- groot_dataloading_job_config: GrootDataloadingJobConfig,
44
+ graph_id: StrictStr,
45
+ schema_mapping: SchemaMapping,
48
46
  _request_timeout: Union[
49
47
  None,
50
48
  Annotated[StrictFloat, Field(gt=0)],
@@ -58,13 +56,14 @@ class LegacyApi:
58
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
59
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
58
  ) -> str:
61
- """create_groot_dataloading_job
59
+ """bind_datasource_in_batch
62
60
 
61
+ Bind data sources in batches
63
62
 
64
- :param graph_name: (required)
65
- :type graph_name: str
66
- :param groot_dataloading_job_config: (required)
67
- :type groot_dataloading_job_config: GrootDataloadingJobConfig
63
+ :param graph_id: (required)
64
+ :type graph_id: str
65
+ :param schema_mapping: (required)
66
+ :type schema_mapping: SchemaMapping
68
67
  :param _request_timeout: timeout setting for this request. If one
69
68
  number provided, it will be total request
70
69
  timeout. It can also be a pair (tuple) of
@@ -87,9 +86,9 @@ class LegacyApi:
87
86
  :return: Returns the result object.
88
87
  """ # noqa: E501
89
88
 
90
- _param = self._create_groot_dataloading_job_serialize(
91
- graph_name=graph_name,
92
- groot_dataloading_job_config=groot_dataloading_job_config,
89
+ _param = self._bind_datasource_in_batch_serialize(
90
+ graph_id=graph_id,
91
+ schema_mapping=schema_mapping,
93
92
  _request_auth=_request_auth,
94
93
  _content_type=_content_type,
95
94
  _headers=_headers,
@@ -98,6 +97,8 @@ class LegacyApi:
98
97
 
99
98
  _response_types_map: Dict[str, Optional[str]] = {
100
99
  '200': "str",
100
+ '400': "Error",
101
+ '500': "Error",
101
102
  }
102
103
  response_data = self.api_client.call_api(
103
104
  *_param,
@@ -111,10 +112,10 @@ class LegacyApi:
111
112
 
112
113
 
113
114
  @validate_call
114
- def create_groot_dataloading_job_with_http_info(
115
+ def bind_datasource_in_batch_with_http_info(
115
116
  self,
116
- graph_name: StrictStr,
117
- groot_dataloading_job_config: GrootDataloadingJobConfig,
117
+ graph_id: StrictStr,
118
+ schema_mapping: SchemaMapping,
118
119
  _request_timeout: Union[
119
120
  None,
120
121
  Annotated[StrictFloat, Field(gt=0)],
@@ -128,13 +129,14 @@ class LegacyApi:
128
129
  _headers: Optional[Dict[StrictStr, Any]] = None,
129
130
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
131
  ) -> ApiResponse[str]:
131
- """create_groot_dataloading_job
132
+ """bind_datasource_in_batch
132
133
 
134
+ Bind data sources in batches
133
135
 
134
- :param graph_name: (required)
135
- :type graph_name: str
136
- :param groot_dataloading_job_config: (required)
137
- :type groot_dataloading_job_config: GrootDataloadingJobConfig
136
+ :param graph_id: (required)
137
+ :type graph_id: str
138
+ :param schema_mapping: (required)
139
+ :type schema_mapping: SchemaMapping
138
140
  :param _request_timeout: timeout setting for this request. If one
139
141
  number provided, it will be total request
140
142
  timeout. It can also be a pair (tuple) of
@@ -157,9 +159,9 @@ class LegacyApi:
157
159
  :return: Returns the result object.
158
160
  """ # noqa: E501
159
161
 
160
- _param = self._create_groot_dataloading_job_serialize(
161
- graph_name=graph_name,
162
- groot_dataloading_job_config=groot_dataloading_job_config,
162
+ _param = self._bind_datasource_in_batch_serialize(
163
+ graph_id=graph_id,
164
+ schema_mapping=schema_mapping,
163
165
  _request_auth=_request_auth,
164
166
  _content_type=_content_type,
165
167
  _headers=_headers,
@@ -168,6 +170,8 @@ class LegacyApi:
168
170
 
169
171
  _response_types_map: Dict[str, Optional[str]] = {
170
172
  '200': "str",
173
+ '400': "Error",
174
+ '500': "Error",
171
175
  }
172
176
  response_data = self.api_client.call_api(
173
177
  *_param,
@@ -181,10 +185,10 @@ class LegacyApi:
181
185
 
182
186
 
183
187
  @validate_call
184
- def create_groot_dataloading_job_without_preload_content(
188
+ def bind_datasource_in_batch_without_preload_content(
185
189
  self,
186
- graph_name: StrictStr,
187
- groot_dataloading_job_config: GrootDataloadingJobConfig,
190
+ graph_id: StrictStr,
191
+ schema_mapping: SchemaMapping,
188
192
  _request_timeout: Union[
189
193
  None,
190
194
  Annotated[StrictFloat, Field(gt=0)],
@@ -198,13 +202,14 @@ class LegacyApi:
198
202
  _headers: Optional[Dict[StrictStr, Any]] = None,
199
203
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
204
  ) -> RESTResponseType:
201
- """create_groot_dataloading_job
205
+ """bind_datasource_in_batch
202
206
 
207
+ Bind data sources in batches
203
208
 
204
- :param graph_name: (required)
205
- :type graph_name: str
206
- :param groot_dataloading_job_config: (required)
207
- :type groot_dataloading_job_config: GrootDataloadingJobConfig
209
+ :param graph_id: (required)
210
+ :type graph_id: str
211
+ :param schema_mapping: (required)
212
+ :type schema_mapping: SchemaMapping
208
213
  :param _request_timeout: timeout setting for this request. If one
209
214
  number provided, it will be total request
210
215
  timeout. It can also be a pair (tuple) of
@@ -227,9 +232,9 @@ class LegacyApi:
227
232
  :return: Returns the result object.
228
233
  """ # noqa: E501
229
234
 
230
- _param = self._create_groot_dataloading_job_serialize(
231
- graph_name=graph_name,
232
- groot_dataloading_job_config=groot_dataloading_job_config,
235
+ _param = self._bind_datasource_in_batch_serialize(
236
+ graph_id=graph_id,
237
+ schema_mapping=schema_mapping,
233
238
  _request_auth=_request_auth,
234
239
  _content_type=_content_type,
235
240
  _headers=_headers,
@@ -238,6 +243,8 @@ class LegacyApi:
238
243
 
239
244
  _response_types_map: Dict[str, Optional[str]] = {
240
245
  '200': "str",
246
+ '400': "Error",
247
+ '500': "Error",
241
248
  }
242
249
  response_data = self.api_client.call_api(
243
250
  *_param,
@@ -246,10 +253,10 @@ class LegacyApi:
246
253
  return response_data.response
247
254
 
248
255
 
249
- def _create_groot_dataloading_job_serialize(
256
+ def _bind_datasource_in_batch_serialize(
250
257
  self,
251
- graph_name,
252
- groot_dataloading_job_config,
258
+ graph_id,
259
+ schema_mapping,
253
260
  _request_auth,
254
261
  _content_type,
255
262
  _headers,
@@ -265,26 +272,27 @@ class LegacyApi:
265
272
  _query_params: List[Tuple[str, str]] = []
266
273
  _header_params: Dict[str, Optional[str]] = _headers or {}
267
274
  _form_params: List[Tuple[str, str]] = []
268
- _files: Dict[str, str] = {}
275
+ _files: Dict[str, Union[str, bytes]] = {}
269
276
  _body_params: Optional[bytes] = None
270
277
 
271
278
  # process the path parameters
272
- if graph_name is not None:
273
- _path_params['graph_name'] = graph_name
279
+ if graph_id is not None:
280
+ _path_params['graph_id'] = graph_id
274
281
  # process the query parameters
275
282
  # process the header parameters
276
283
  # process the form parameters
277
284
  # process the body parameter
278
- if groot_dataloading_job_config is not None:
279
- _body_params = groot_dataloading_job_config
285
+ if schema_mapping is not None:
286
+ _body_params = schema_mapping
280
287
 
281
288
 
282
289
  # set the HTTP header `Accept`
283
- _header_params['Accept'] = self.api_client.select_header_accept(
284
- [
285
- 'application/json'
286
- ]
287
- )
290
+ if 'Accept' not in _header_params:
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
288
296
 
289
297
  # set the HTTP header `Content-Type`
290
298
  if _content_type:
@@ -306,7 +314,7 @@ class LegacyApi:
306
314
 
307
315
  return self.api_client.param_serialize(
308
316
  method='POST',
309
- resource_path='/api/v1/groot/graph/{graph_name}/dataloading',
317
+ resource_path='/api/v1/graph/{graph_id}/datasource',
310
318
  path_params=_path_params,
311
319
  query_params=_query_params,
312
320
  header_params=_header_params,
@@ -323,9 +331,9 @@ class LegacyApi:
323
331
 
324
332
 
325
333
  @validate_call
326
- def get_groot_schema(
334
+ def get_datasource_by_id(
327
335
  self,
328
- graph_name: StrictStr,
336
+ graph_id: StrictStr,
329
337
  _request_timeout: Union[
330
338
  None,
331
339
  Annotated[StrictFloat, Field(gt=0)],
@@ -338,13 +346,13 @@ class LegacyApi:
338
346
  _content_type: Optional[StrictStr] = None,
339
347
  _headers: Optional[Dict[StrictStr, Any]] = None,
340
348
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
341
- ) -> GrootSchema:
342
- """get_groot_schema
349
+ ) -> SchemaMapping:
350
+ """get_datasource_by_id
343
351
 
344
- Get graph schema by name
352
+ Get data source by ID
345
353
 
346
- :param graph_name: (required)
347
- :type graph_name: str
354
+ :param graph_id: (required)
355
+ :type graph_id: str
348
356
  :param _request_timeout: timeout setting for this request. If one
349
357
  number provided, it will be total request
350
358
  timeout. It can also be a pair (tuple) of
@@ -367,8 +375,8 @@ class LegacyApi:
367
375
  :return: Returns the result object.
368
376
  """ # noqa: E501
369
377
 
370
- _param = self._get_groot_schema_serialize(
371
- graph_name=graph_name,
378
+ _param = self._get_datasource_by_id_serialize(
379
+ graph_id=graph_id,
372
380
  _request_auth=_request_auth,
373
381
  _content_type=_content_type,
374
382
  _headers=_headers,
@@ -376,7 +384,8 @@ class LegacyApi:
376
384
  )
377
385
 
378
386
  _response_types_map: Dict[str, Optional[str]] = {
379
- '200': "GrootSchema",
387
+ '200': "SchemaMapping",
388
+ '500': "Error",
380
389
  }
381
390
  response_data = self.api_client.call_api(
382
391
  *_param,
@@ -390,9 +399,9 @@ class LegacyApi:
390
399
 
391
400
 
392
401
  @validate_call
393
- def get_groot_schema_with_http_info(
402
+ def get_datasource_by_id_with_http_info(
394
403
  self,
395
- graph_name: StrictStr,
404
+ graph_id: StrictStr,
396
405
  _request_timeout: Union[
397
406
  None,
398
407
  Annotated[StrictFloat, Field(gt=0)],
@@ -405,13 +414,13 @@ class LegacyApi:
405
414
  _content_type: Optional[StrictStr] = None,
406
415
  _headers: Optional[Dict[StrictStr, Any]] = None,
407
416
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
408
- ) -> ApiResponse[GrootSchema]:
409
- """get_groot_schema
417
+ ) -> ApiResponse[SchemaMapping]:
418
+ """get_datasource_by_id
410
419
 
411
- Get graph schema by name
420
+ Get data source by ID
412
421
 
413
- :param graph_name: (required)
414
- :type graph_name: str
422
+ :param graph_id: (required)
423
+ :type graph_id: str
415
424
  :param _request_timeout: timeout setting for this request. If one
416
425
  number provided, it will be total request
417
426
  timeout. It can also be a pair (tuple) of
@@ -434,8 +443,8 @@ class LegacyApi:
434
443
  :return: Returns the result object.
435
444
  """ # noqa: E501
436
445
 
437
- _param = self._get_groot_schema_serialize(
438
- graph_name=graph_name,
446
+ _param = self._get_datasource_by_id_serialize(
447
+ graph_id=graph_id,
439
448
  _request_auth=_request_auth,
440
449
  _content_type=_content_type,
441
450
  _headers=_headers,
@@ -443,7 +452,8 @@ class LegacyApi:
443
452
  )
444
453
 
445
454
  _response_types_map: Dict[str, Optional[str]] = {
446
- '200': "GrootSchema",
455
+ '200': "SchemaMapping",
456
+ '500': "Error",
447
457
  }
448
458
  response_data = self.api_client.call_api(
449
459
  *_param,
@@ -457,9 +467,9 @@ class LegacyApi:
457
467
 
458
468
 
459
469
  @validate_call
460
- def get_groot_schema_without_preload_content(
470
+ def get_datasource_by_id_without_preload_content(
461
471
  self,
462
- graph_name: StrictStr,
472
+ graph_id: StrictStr,
463
473
  _request_timeout: Union[
464
474
  None,
465
475
  Annotated[StrictFloat, Field(gt=0)],
@@ -473,12 +483,12 @@ class LegacyApi:
473
483
  _headers: Optional[Dict[StrictStr, Any]] = None,
474
484
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
475
485
  ) -> RESTResponseType:
476
- """get_groot_schema
486
+ """get_datasource_by_id
477
487
 
478
- Get graph schema by name
488
+ Get data source by ID
479
489
 
480
- :param graph_name: (required)
481
- :type graph_name: str
490
+ :param graph_id: (required)
491
+ :type graph_id: str
482
492
  :param _request_timeout: timeout setting for this request. If one
483
493
  number provided, it will be total request
484
494
  timeout. It can also be a pair (tuple) of
@@ -501,8 +511,8 @@ class LegacyApi:
501
511
  :return: Returns the result object.
502
512
  """ # noqa: E501
503
513
 
504
- _param = self._get_groot_schema_serialize(
505
- graph_name=graph_name,
514
+ _param = self._get_datasource_by_id_serialize(
515
+ graph_id=graph_id,
506
516
  _request_auth=_request_auth,
507
517
  _content_type=_content_type,
508
518
  _headers=_headers,
@@ -510,7 +520,8 @@ class LegacyApi:
510
520
  )
511
521
 
512
522
  _response_types_map: Dict[str, Optional[str]] = {
513
- '200': "GrootSchema",
523
+ '200': "SchemaMapping",
524
+ '500': "Error",
514
525
  }
515
526
  response_data = self.api_client.call_api(
516
527
  *_param,
@@ -519,9 +530,9 @@ class LegacyApi:
519
530
  return response_data.response
520
531
 
521
532
 
522
- def _get_groot_schema_serialize(
533
+ def _get_datasource_by_id_serialize(
523
534
  self,
524
- graph_name,
535
+ graph_id,
525
536
  _request_auth,
526
537
  _content_type,
527
538
  _headers,
@@ -537,12 +548,12 @@ class LegacyApi:
537
548
  _query_params: List[Tuple[str, str]] = []
538
549
  _header_params: Dict[str, Optional[str]] = _headers or {}
539
550
  _form_params: List[Tuple[str, str]] = []
540
- _files: Dict[str, str] = {}
551
+ _files: Dict[str, Union[str, bytes]] = {}
541
552
  _body_params: Optional[bytes] = None
542
553
 
543
554
  # process the path parameters
544
- if graph_name is not None:
545
- _path_params['graph_name'] = graph_name
555
+ if graph_id is not None:
556
+ _path_params['graph_id'] = graph_id
546
557
  # process the query parameters
547
558
  # process the header parameters
548
559
  # process the form parameters
@@ -550,11 +561,12 @@ class LegacyApi:
550
561
 
551
562
 
552
563
  # set the HTTP header `Accept`
553
- _header_params['Accept'] = self.api_client.select_header_accept(
554
- [
555
- 'application/json'
556
- ]
557
- )
564
+ if 'Accept' not in _header_params:
565
+ _header_params['Accept'] = self.api_client.select_header_accept(
566
+ [
567
+ 'application/json'
568
+ ]
569
+ )
558
570
 
559
571
 
560
572
  # authentication setting
@@ -563,7 +575,7 @@ class LegacyApi:
563
575
 
564
576
  return self.api_client.param_serialize(
565
577
  method='GET',
566
- resource_path='/api/v1/groot/graph/{graph_name}/schema',
578
+ resource_path='/api/v1/graph/{graph_id}/datasource',
567
579
  path_params=_path_params,
568
580
  query_params=_query_params,
569
581
  header_params=_header_params,
@@ -580,10 +592,12 @@ class LegacyApi:
580
592
 
581
593
 
582
594
  @validate_call
583
- def import_groot_schema(
595
+ def unbind_edge_datasource(
584
596
  self,
585
- graph_name: StrictStr,
586
- groot_schema: GrootSchema,
597
+ graph_id: StrictStr,
598
+ type_name: StrictStr,
599
+ source_vertex_type: StrictStr,
600
+ destination_vertex_type: StrictStr,
587
601
  _request_timeout: Union[
588
602
  None,
589
603
  Annotated[StrictFloat, Field(gt=0)],
@@ -597,14 +611,18 @@ class LegacyApi:
597
611
  _headers: Optional[Dict[StrictStr, Any]] = None,
598
612
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
599
613
  ) -> str:
600
- """import_groot_schema
601
-
602
- Import schema to groot graph
603
-
604
- :param graph_name: (required)
605
- :type graph_name: str
606
- :param groot_schema: (required)
607
- :type groot_schema: GrootSchema
614
+ """unbind_edge_datasource
615
+
616
+ Unbind datas ource on an edge type
617
+
618
+ :param graph_id: (required)
619
+ :type graph_id: str
620
+ :param type_name: (required)
621
+ :type type_name: str
622
+ :param source_vertex_type: (required)
623
+ :type source_vertex_type: str
624
+ :param destination_vertex_type: (required)
625
+ :type destination_vertex_type: str
608
626
  :param _request_timeout: timeout setting for this request. If one
609
627
  number provided, it will be total request
610
628
  timeout. It can also be a pair (tuple) of
@@ -627,9 +645,11 @@ class LegacyApi:
627
645
  :return: Returns the result object.
628
646
  """ # noqa: E501
629
647
 
630
- _param = self._import_groot_schema_serialize(
631
- graph_name=graph_name,
632
- groot_schema=groot_schema,
648
+ _param = self._unbind_edge_datasource_serialize(
649
+ graph_id=graph_id,
650
+ type_name=type_name,
651
+ source_vertex_type=source_vertex_type,
652
+ destination_vertex_type=destination_vertex_type,
633
653
  _request_auth=_request_auth,
634
654
  _content_type=_content_type,
635
655
  _headers=_headers,
@@ -638,6 +658,7 @@ class LegacyApi:
638
658
 
639
659
  _response_types_map: Dict[str, Optional[str]] = {
640
660
  '200': "str",
661
+ '500': "Error",
641
662
  }
642
663
  response_data = self.api_client.call_api(
643
664
  *_param,
@@ -651,10 +672,12 @@ class LegacyApi:
651
672
 
652
673
 
653
674
  @validate_call
654
- def import_groot_schema_with_http_info(
675
+ def unbind_edge_datasource_with_http_info(
655
676
  self,
656
- graph_name: StrictStr,
657
- groot_schema: GrootSchema,
677
+ graph_id: StrictStr,
678
+ type_name: StrictStr,
679
+ source_vertex_type: StrictStr,
680
+ destination_vertex_type: StrictStr,
658
681
  _request_timeout: Union[
659
682
  None,
660
683
  Annotated[StrictFloat, Field(gt=0)],
@@ -668,14 +691,18 @@ class LegacyApi:
668
691
  _headers: Optional[Dict[StrictStr, Any]] = None,
669
692
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
693
  ) -> ApiResponse[str]:
671
- """import_groot_schema
672
-
673
- Import schema to groot graph
674
-
675
- :param graph_name: (required)
676
- :type graph_name: str
677
- :param groot_schema: (required)
678
- :type groot_schema: GrootSchema
694
+ """unbind_edge_datasource
695
+
696
+ Unbind datas ource on an edge type
697
+
698
+ :param graph_id: (required)
699
+ :type graph_id: str
700
+ :param type_name: (required)
701
+ :type type_name: str
702
+ :param source_vertex_type: (required)
703
+ :type source_vertex_type: str
704
+ :param destination_vertex_type: (required)
705
+ :type destination_vertex_type: str
679
706
  :param _request_timeout: timeout setting for this request. If one
680
707
  number provided, it will be total request
681
708
  timeout. It can also be a pair (tuple) of
@@ -698,9 +725,11 @@ class LegacyApi:
698
725
  :return: Returns the result object.
699
726
  """ # noqa: E501
700
727
 
701
- _param = self._import_groot_schema_serialize(
702
- graph_name=graph_name,
703
- groot_schema=groot_schema,
728
+ _param = self._unbind_edge_datasource_serialize(
729
+ graph_id=graph_id,
730
+ type_name=type_name,
731
+ source_vertex_type=source_vertex_type,
732
+ destination_vertex_type=destination_vertex_type,
704
733
  _request_auth=_request_auth,
705
734
  _content_type=_content_type,
706
735
  _headers=_headers,
@@ -709,6 +738,7 @@ class LegacyApi:
709
738
 
710
739
  _response_types_map: Dict[str, Optional[str]] = {
711
740
  '200': "str",
741
+ '500': "Error",
712
742
  }
713
743
  response_data = self.api_client.call_api(
714
744
  *_param,
@@ -722,10 +752,12 @@ class LegacyApi:
722
752
 
723
753
 
724
754
  @validate_call
725
- def import_groot_schema_without_preload_content(
755
+ def unbind_edge_datasource_without_preload_content(
726
756
  self,
727
- graph_name: StrictStr,
728
- groot_schema: GrootSchema,
757
+ graph_id: StrictStr,
758
+ type_name: StrictStr,
759
+ source_vertex_type: StrictStr,
760
+ destination_vertex_type: StrictStr,
729
761
  _request_timeout: Union[
730
762
  None,
731
763
  Annotated[StrictFloat, Field(gt=0)],
@@ -739,14 +771,18 @@ class LegacyApi:
739
771
  _headers: Optional[Dict[StrictStr, Any]] = None,
740
772
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
741
773
  ) -> RESTResponseType:
742
- """import_groot_schema
743
-
744
- Import schema to groot graph
745
-
746
- :param graph_name: (required)
747
- :type graph_name: str
748
- :param groot_schema: (required)
749
- :type groot_schema: GrootSchema
774
+ """unbind_edge_datasource
775
+
776
+ Unbind datas ource on an edge type
777
+
778
+ :param graph_id: (required)
779
+ :type graph_id: str
780
+ :param type_name: (required)
781
+ :type type_name: str
782
+ :param source_vertex_type: (required)
783
+ :type source_vertex_type: str
784
+ :param destination_vertex_type: (required)
785
+ :type destination_vertex_type: str
750
786
  :param _request_timeout: timeout setting for this request. If one
751
787
  number provided, it will be total request
752
788
  timeout. It can also be a pair (tuple) of
@@ -769,9 +805,11 @@ class LegacyApi:
769
805
  :return: Returns the result object.
770
806
  """ # noqa: E501
771
807
 
772
- _param = self._import_groot_schema_serialize(
773
- graph_name=graph_name,
774
- groot_schema=groot_schema,
808
+ _param = self._unbind_edge_datasource_serialize(
809
+ graph_id=graph_id,
810
+ type_name=type_name,
811
+ source_vertex_type=source_vertex_type,
812
+ destination_vertex_type=destination_vertex_type,
775
813
  _request_auth=_request_auth,
776
814
  _content_type=_content_type,
777
815
  _headers=_headers,
@@ -780,6 +818,7 @@ class LegacyApi:
780
818
 
781
819
  _response_types_map: Dict[str, Optional[str]] = {
782
820
  '200': "str",
821
+ '500': "Error",
783
822
  }
784
823
  response_data = self.api_client.call_api(
785
824
  *_param,
@@ -788,10 +827,12 @@ class LegacyApi:
788
827
  return response_data.response
789
828
 
790
829
 
791
- def _import_groot_schema_serialize(
830
+ def _unbind_edge_datasource_serialize(
792
831
  self,
793
- graph_name,
794
- groot_schema,
832
+ graph_id,
833
+ type_name,
834
+ source_vertex_type,
835
+ destination_vertex_type,
795
836
  _request_auth,
796
837
  _content_type,
797
838
  _headers,
@@ -807,48 +848,44 @@ class LegacyApi:
807
848
  _query_params: List[Tuple[str, str]] = []
808
849
  _header_params: Dict[str, Optional[str]] = _headers or {}
809
850
  _form_params: List[Tuple[str, str]] = []
810
- _files: Dict[str, str] = {}
851
+ _files: Dict[str, Union[str, bytes]] = {}
811
852
  _body_params: Optional[bytes] = None
812
853
 
813
854
  # process the path parameters
814
- if graph_name is not None:
815
- _path_params['graph_name'] = graph_name
855
+ if graph_id is not None:
856
+ _path_params['graph_id'] = graph_id
857
+ if type_name is not None:
858
+ _path_params['type_name'] = type_name
816
859
  # process the query parameters
860
+ if source_vertex_type is not None:
861
+
862
+ _query_params.append(('source_vertex_type', source_vertex_type))
863
+
864
+ if destination_vertex_type is not None:
865
+
866
+ _query_params.append(('destination_vertex_type', destination_vertex_type))
867
+
817
868
  # process the header parameters
818
869
  # process the form parameters
819
870
  # process the body parameter
820
- if groot_schema is not None:
821
- _body_params = groot_schema
822
871
 
823
872
 
824
873
  # set the HTTP header `Accept`
825
- _header_params['Accept'] = self.api_client.select_header_accept(
826
- [
827
- 'application/json'
828
- ]
829
- )
830
-
831
- # set the HTTP header `Content-Type`
832
- if _content_type:
833
- _header_params['Content-Type'] = _content_type
834
- else:
835
- _default_content_type = (
836
- self.api_client.select_header_content_type(
837
- [
838
- 'application/json'
839
- ]
840
- )
874
+ if 'Accept' not in _header_params:
875
+ _header_params['Accept'] = self.api_client.select_header_accept(
876
+ [
877
+ 'application/json'
878
+ ]
841
879
  )
842
- if _default_content_type is not None:
843
- _header_params['Content-Type'] = _default_content_type
880
+
844
881
 
845
882
  # authentication setting
846
883
  _auth_settings: List[str] = [
847
884
  ]
848
885
 
849
886
  return self.api_client.param_serialize(
850
- method='POST',
851
- resource_path='/api/v1/groot/graph/{graph_name}/schema',
887
+ method='DELETE',
888
+ resource_path='/api/v1/graph/{graph_id}/datasource/edge/{type_name}',
852
889
  path_params=_path_params,
853
890
  query_params=_query_params,
854
891
  header_params=_header_params,
@@ -865,8 +902,10 @@ class LegacyApi:
865
902
 
866
903
 
867
904
  @validate_call
868
- def list_groot_graph(
905
+ def unbind_vertex_datasource(
869
906
  self,
907
+ graph_id: StrictStr,
908
+ type_name: StrictStr,
870
909
  _request_timeout: Union[
871
910
  None,
872
911
  Annotated[StrictFloat, Field(gt=0)],
@@ -879,11 +918,15 @@ class LegacyApi:
879
918
  _content_type: Optional[StrictStr] = None,
880
919
  _headers: Optional[Dict[StrictStr, Any]] = None,
881
920
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
882
- ) -> List[GrootGraph]:
883
- """list_groot_graph
921
+ ) -> str:
922
+ """unbind_vertex_datasource
884
923
 
885
- list groot graph
924
+ Unbind data source on a vertex type
886
925
 
926
+ :param graph_id: (required)
927
+ :type graph_id: str
928
+ :param type_name: (required)
929
+ :type type_name: str
887
930
  :param _request_timeout: timeout setting for this request. If one
888
931
  number provided, it will be total request
889
932
  timeout. It can also be a pair (tuple) of
@@ -906,7 +949,9 @@ class LegacyApi:
906
949
  :return: Returns the result object.
907
950
  """ # noqa: E501
908
951
 
909
- _param = self._list_groot_graph_serialize(
952
+ _param = self._unbind_vertex_datasource_serialize(
953
+ graph_id=graph_id,
954
+ type_name=type_name,
910
955
  _request_auth=_request_auth,
911
956
  _content_type=_content_type,
912
957
  _headers=_headers,
@@ -914,7 +959,8 @@ class LegacyApi:
914
959
  )
915
960
 
916
961
  _response_types_map: Dict[str, Optional[str]] = {
917
- '200': "List[GrootGraph]",
962
+ '200': "str",
963
+ '500': "Error",
918
964
  }
919
965
  response_data = self.api_client.call_api(
920
966
  *_param,
@@ -928,8 +974,10 @@ class LegacyApi:
928
974
 
929
975
 
930
976
  @validate_call
931
- def list_groot_graph_with_http_info(
977
+ def unbind_vertex_datasource_with_http_info(
932
978
  self,
979
+ graph_id: StrictStr,
980
+ type_name: StrictStr,
933
981
  _request_timeout: Union[
934
982
  None,
935
983
  Annotated[StrictFloat, Field(gt=0)],
@@ -942,11 +990,15 @@ class LegacyApi:
942
990
  _content_type: Optional[StrictStr] = None,
943
991
  _headers: Optional[Dict[StrictStr, Any]] = None,
944
992
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
945
- ) -> ApiResponse[List[GrootGraph]]:
946
- """list_groot_graph
993
+ ) -> ApiResponse[str]:
994
+ """unbind_vertex_datasource
947
995
 
948
- list groot graph
996
+ Unbind data source on a vertex type
949
997
 
998
+ :param graph_id: (required)
999
+ :type graph_id: str
1000
+ :param type_name: (required)
1001
+ :type type_name: str
950
1002
  :param _request_timeout: timeout setting for this request. If one
951
1003
  number provided, it will be total request
952
1004
  timeout. It can also be a pair (tuple) of
@@ -969,7 +1021,9 @@ class LegacyApi:
969
1021
  :return: Returns the result object.
970
1022
  """ # noqa: E501
971
1023
 
972
- _param = self._list_groot_graph_serialize(
1024
+ _param = self._unbind_vertex_datasource_serialize(
1025
+ graph_id=graph_id,
1026
+ type_name=type_name,
973
1027
  _request_auth=_request_auth,
974
1028
  _content_type=_content_type,
975
1029
  _headers=_headers,
@@ -977,7 +1031,8 @@ class LegacyApi:
977
1031
  )
978
1032
 
979
1033
  _response_types_map: Dict[str, Optional[str]] = {
980
- '200': "List[GrootGraph]",
1034
+ '200': "str",
1035
+ '500': "Error",
981
1036
  }
982
1037
  response_data = self.api_client.call_api(
983
1038
  *_param,
@@ -991,8 +1046,10 @@ class LegacyApi:
991
1046
 
992
1047
 
993
1048
  @validate_call
994
- def list_groot_graph_without_preload_content(
1049
+ def unbind_vertex_datasource_without_preload_content(
995
1050
  self,
1051
+ graph_id: StrictStr,
1052
+ type_name: StrictStr,
996
1053
  _request_timeout: Union[
997
1054
  None,
998
1055
  Annotated[StrictFloat, Field(gt=0)],
@@ -1006,10 +1063,14 @@ class LegacyApi:
1006
1063
  _headers: Optional[Dict[StrictStr, Any]] = None,
1007
1064
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1008
1065
  ) -> RESTResponseType:
1009
- """list_groot_graph
1066
+ """unbind_vertex_datasource
1010
1067
 
1011
- list groot graph
1068
+ Unbind data source on a vertex type
1012
1069
 
1070
+ :param graph_id: (required)
1071
+ :type graph_id: str
1072
+ :param type_name: (required)
1073
+ :type type_name: str
1013
1074
  :param _request_timeout: timeout setting for this request. If one
1014
1075
  number provided, it will be total request
1015
1076
  timeout. It can also be a pair (tuple) of
@@ -1032,7 +1093,9 @@ class LegacyApi:
1032
1093
  :return: Returns the result object.
1033
1094
  """ # noqa: E501
1034
1095
 
1035
- _param = self._list_groot_graph_serialize(
1096
+ _param = self._unbind_vertex_datasource_serialize(
1097
+ graph_id=graph_id,
1098
+ type_name=type_name,
1036
1099
  _request_auth=_request_auth,
1037
1100
  _content_type=_content_type,
1038
1101
  _headers=_headers,
@@ -1040,7 +1103,8 @@ class LegacyApi:
1040
1103
  )
1041
1104
 
1042
1105
  _response_types_map: Dict[str, Optional[str]] = {
1043
- '200': "List[GrootGraph]",
1106
+ '200': "str",
1107
+ '500': "Error",
1044
1108
  }
1045
1109
  response_data = self.api_client.call_api(
1046
1110
  *_param,
@@ -1049,8 +1113,10 @@ class LegacyApi:
1049
1113
  return response_data.response
1050
1114
 
1051
1115
 
1052
- def _list_groot_graph_serialize(
1116
+ def _unbind_vertex_datasource_serialize(
1053
1117
  self,
1118
+ graph_id,
1119
+ type_name,
1054
1120
  _request_auth,
1055
1121
  _content_type,
1056
1122
  _headers,
@@ -1066,10 +1132,14 @@ class LegacyApi:
1066
1132
  _query_params: List[Tuple[str, str]] = []
1067
1133
  _header_params: Dict[str, Optional[str]] = _headers or {}
1068
1134
  _form_params: List[Tuple[str, str]] = []
1069
- _files: Dict[str, str] = {}
1135
+ _files: Dict[str, Union[str, bytes]] = {}
1070
1136
  _body_params: Optional[bytes] = None
1071
1137
 
1072
1138
  # process the path parameters
1139
+ if graph_id is not None:
1140
+ _path_params['graph_id'] = graph_id
1141
+ if type_name is not None:
1142
+ _path_params['type_name'] = type_name
1073
1143
  # process the query parameters
1074
1144
  # process the header parameters
1075
1145
  # process the form parameters
@@ -1077,11 +1147,12 @@ class LegacyApi:
1077
1147
 
1078
1148
 
1079
1149
  # set the HTTP header `Accept`
1080
- _header_params['Accept'] = self.api_client.select_header_accept(
1081
- [
1082
- 'application/json'
1083
- ]
1084
- )
1150
+ if 'Accept' not in _header_params:
1151
+ _header_params['Accept'] = self.api_client.select_header_accept(
1152
+ [
1153
+ 'application/json'
1154
+ ]
1155
+ )
1085
1156
 
1086
1157
 
1087
1158
  # authentication setting
@@ -1089,8 +1160,8 @@ class LegacyApi:
1089
1160
  ]
1090
1161
 
1091
1162
  return self.api_client.param_serialize(
1092
- method='GET',
1093
- resource_path='/api/v1/groot/graph',
1163
+ method='DELETE',
1164
+ resource_path='/api/v1/graph/{graph_id}/datasource/vertex/{type_name}',
1094
1165
  path_params=_path_params,
1095
1166
  query_params=_query_params,
1096
1167
  header_params=_header_params,