graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.29.0a20240927__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/{groot_edge_type_relations_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/dataloading_job_config_vertices_inner.py +88 -0
  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/{procedure_params_inner.py → parameter.py} +20 -16
  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 +22 -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.0a20240927.dist-info/METADATA +19 -0
  82. graphscope_flex-0.29.0a20240927.dist-info/RECORD +86 -0
  83. {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20240927.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.0a20240927.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,10 +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.edge_type import EdgeType
22
- from graphscope.flex.rest.models.graph import Graph
23
- from graphscope.flex.rest.models.model_schema import ModelSchema
24
- from graphscope.flex.rest.models.vertex_type import VertexType
21
+ from typing import List, Optional
22
+ from graphscope.flex.rest.models.create_edge_type import CreateEdgeType
23
+ from graphscope.flex.rest.models.create_graph_request import CreateGraphRequest
24
+ from graphscope.flex.rest.models.create_graph_response import CreateGraphResponse
25
+ from graphscope.flex.rest.models.create_graph_schema_request import CreateGraphSchemaRequest
26
+ from graphscope.flex.rest.models.create_vertex_type import CreateVertexType
27
+ from graphscope.flex.rest.models.get_graph_response import GetGraphResponse
28
+ from graphscope.flex.rest.models.get_graph_schema_response import GetGraphSchemaResponse
25
29
 
26
30
  from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
27
31
  from graphscope.flex.rest.api_response import ApiResponse
@@ -44,8 +48,8 @@ class GraphApi:
44
48
  @validate_call
45
49
  def create_edge_type(
46
50
  self,
47
- graph_name: StrictStr,
48
- edge_type: EdgeType,
51
+ graph_id: StrictStr,
52
+ create_edge_type: Optional[CreateEdgeType] = None,
49
53
  _request_timeout: Union[
50
54
  None,
51
55
  Annotated[StrictFloat, Field(gt=0)],
@@ -63,10 +67,10 @@ class GraphApi:
63
67
 
64
68
  Create a edge type
65
69
 
66
- :param graph_name: (required)
67
- :type graph_name: str
68
- :param edge_type: (required)
69
- :type edge_type: EdgeType
70
+ :param graph_id: (required)
71
+ :type graph_id: str
72
+ :param create_edge_type:
73
+ :type create_edge_type: CreateEdgeType
70
74
  :param _request_timeout: timeout setting for this request. If one
71
75
  number provided, it will be total request
72
76
  timeout. It can also be a pair (tuple) of
@@ -90,8 +94,8 @@ class GraphApi:
90
94
  """ # noqa: E501
91
95
 
92
96
  _param = self._create_edge_type_serialize(
93
- graph_name=graph_name,
94
- edge_type=edge_type,
97
+ graph_id=graph_id,
98
+ create_edge_type=create_edge_type,
95
99
  _request_auth=_request_auth,
96
100
  _content_type=_content_type,
97
101
  _headers=_headers,
@@ -100,6 +104,8 @@ class GraphApi:
100
104
 
101
105
  _response_types_map: Dict[str, Optional[str]] = {
102
106
  '200': "str",
107
+ '400': "Error",
108
+ '500': "Error",
103
109
  }
104
110
  response_data = self.api_client.call_api(
105
111
  *_param,
@@ -115,8 +121,8 @@ class GraphApi:
115
121
  @validate_call
116
122
  def create_edge_type_with_http_info(
117
123
  self,
118
- graph_name: StrictStr,
119
- edge_type: EdgeType,
124
+ graph_id: StrictStr,
125
+ create_edge_type: Optional[CreateEdgeType] = None,
120
126
  _request_timeout: Union[
121
127
  None,
122
128
  Annotated[StrictFloat, Field(gt=0)],
@@ -134,10 +140,10 @@ class GraphApi:
134
140
 
135
141
  Create a edge type
136
142
 
137
- :param graph_name: (required)
138
- :type graph_name: str
139
- :param edge_type: (required)
140
- :type edge_type: EdgeType
143
+ :param graph_id: (required)
144
+ :type graph_id: str
145
+ :param create_edge_type:
146
+ :type create_edge_type: CreateEdgeType
141
147
  :param _request_timeout: timeout setting for this request. If one
142
148
  number provided, it will be total request
143
149
  timeout. It can also be a pair (tuple) of
@@ -161,8 +167,8 @@ class GraphApi:
161
167
  """ # noqa: E501
162
168
 
163
169
  _param = self._create_edge_type_serialize(
164
- graph_name=graph_name,
165
- edge_type=edge_type,
170
+ graph_id=graph_id,
171
+ create_edge_type=create_edge_type,
166
172
  _request_auth=_request_auth,
167
173
  _content_type=_content_type,
168
174
  _headers=_headers,
@@ -171,6 +177,8 @@ class GraphApi:
171
177
 
172
178
  _response_types_map: Dict[str, Optional[str]] = {
173
179
  '200': "str",
180
+ '400': "Error",
181
+ '500': "Error",
174
182
  }
175
183
  response_data = self.api_client.call_api(
176
184
  *_param,
@@ -186,8 +194,8 @@ class GraphApi:
186
194
  @validate_call
187
195
  def create_edge_type_without_preload_content(
188
196
  self,
189
- graph_name: StrictStr,
190
- edge_type: EdgeType,
197
+ graph_id: StrictStr,
198
+ create_edge_type: Optional[CreateEdgeType] = None,
191
199
  _request_timeout: Union[
192
200
  None,
193
201
  Annotated[StrictFloat, Field(gt=0)],
@@ -205,10 +213,10 @@ class GraphApi:
205
213
 
206
214
  Create a edge type
207
215
 
208
- :param graph_name: (required)
209
- :type graph_name: str
210
- :param edge_type: (required)
211
- :type edge_type: EdgeType
216
+ :param graph_id: (required)
217
+ :type graph_id: str
218
+ :param create_edge_type:
219
+ :type create_edge_type: CreateEdgeType
212
220
  :param _request_timeout: timeout setting for this request. If one
213
221
  number provided, it will be total request
214
222
  timeout. It can also be a pair (tuple) of
@@ -232,8 +240,8 @@ class GraphApi:
232
240
  """ # noqa: E501
233
241
 
234
242
  _param = self._create_edge_type_serialize(
235
- graph_name=graph_name,
236
- edge_type=edge_type,
243
+ graph_id=graph_id,
244
+ create_edge_type=create_edge_type,
237
245
  _request_auth=_request_auth,
238
246
  _content_type=_content_type,
239
247
  _headers=_headers,
@@ -242,6 +250,8 @@ class GraphApi:
242
250
 
243
251
  _response_types_map: Dict[str, Optional[str]] = {
244
252
  '200': "str",
253
+ '400': "Error",
254
+ '500': "Error",
245
255
  }
246
256
  response_data = self.api_client.call_api(
247
257
  *_param,
@@ -252,8 +262,8 @@ class GraphApi:
252
262
 
253
263
  def _create_edge_type_serialize(
254
264
  self,
255
- graph_name,
256
- edge_type,
265
+ graph_id,
266
+ create_edge_type,
257
267
  _request_auth,
258
268
  _content_type,
259
269
  _headers,
@@ -269,26 +279,27 @@ class GraphApi:
269
279
  _query_params: List[Tuple[str, str]] = []
270
280
  _header_params: Dict[str, Optional[str]] = _headers or {}
271
281
  _form_params: List[Tuple[str, str]] = []
272
- _files: Dict[str, str] = {}
282
+ _files: Dict[str, Union[str, bytes]] = {}
273
283
  _body_params: Optional[bytes] = None
274
284
 
275
285
  # process the path parameters
276
- if graph_name is not None:
277
- _path_params['graph_name'] = graph_name
286
+ if graph_id is not None:
287
+ _path_params['graph_id'] = graph_id
278
288
  # process the query parameters
279
289
  # process the header parameters
280
290
  # process the form parameters
281
291
  # process the body parameter
282
- if edge_type is not None:
283
- _body_params = edge_type
292
+ if create_edge_type is not None:
293
+ _body_params = create_edge_type
284
294
 
285
295
 
286
296
  # set the HTTP header `Accept`
287
- _header_params['Accept'] = self.api_client.select_header_accept(
288
- [
289
- 'application/json'
290
- ]
291
- )
297
+ if 'Accept' not in _header_params:
298
+ _header_params['Accept'] = self.api_client.select_header_accept(
299
+ [
300
+ 'application/json'
301
+ ]
302
+ )
292
303
 
293
304
  # set the HTTP header `Content-Type`
294
305
  if _content_type:
@@ -310,7 +321,7 @@ class GraphApi:
310
321
 
311
322
  return self.api_client.param_serialize(
312
323
  method='POST',
313
- resource_path='/api/v1/graph/{graph_name}/schema/edge_type',
324
+ resource_path='/api/v1/graph/{graph_id}/schema/edge',
314
325
  path_params=_path_params,
315
326
  query_params=_query_params,
316
327
  header_params=_header_params,
@@ -329,7 +340,7 @@ class GraphApi:
329
340
  @validate_call
330
341
  def create_graph(
331
342
  self,
332
- graph: Graph,
343
+ create_graph_request: CreateGraphRequest,
333
344
  _request_timeout: Union[
334
345
  None,
335
346
  Annotated[StrictFloat, Field(gt=0)],
@@ -342,13 +353,13 @@ class GraphApi:
342
353
  _content_type: Optional[StrictStr] = None,
343
354
  _headers: Optional[Dict[StrictStr, Any]] = None,
344
355
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
345
- ) -> str:
356
+ ) -> CreateGraphResponse:
346
357
  """create_graph
347
358
 
348
359
  Create a new graph
349
360
 
350
- :param graph: (required)
351
- :type graph: Graph
361
+ :param create_graph_request: (required)
362
+ :type create_graph_request: CreateGraphRequest
352
363
  :param _request_timeout: timeout setting for this request. If one
353
364
  number provided, it will be total request
354
365
  timeout. It can also be a pair (tuple) of
@@ -372,7 +383,7 @@ class GraphApi:
372
383
  """ # noqa: E501
373
384
 
374
385
  _param = self._create_graph_serialize(
375
- graph=graph,
386
+ create_graph_request=create_graph_request,
376
387
  _request_auth=_request_auth,
377
388
  _content_type=_content_type,
378
389
  _headers=_headers,
@@ -380,7 +391,9 @@ class GraphApi:
380
391
  )
381
392
 
382
393
  _response_types_map: Dict[str, Optional[str]] = {
383
- '200': "str",
394
+ '200': "CreateGraphResponse",
395
+ '400': "Error",
396
+ '500': "Error",
384
397
  }
385
398
  response_data = self.api_client.call_api(
386
399
  *_param,
@@ -396,7 +409,7 @@ class GraphApi:
396
409
  @validate_call
397
410
  def create_graph_with_http_info(
398
411
  self,
399
- graph: Graph,
412
+ create_graph_request: CreateGraphRequest,
400
413
  _request_timeout: Union[
401
414
  None,
402
415
  Annotated[StrictFloat, Field(gt=0)],
@@ -409,13 +422,13 @@ class GraphApi:
409
422
  _content_type: Optional[StrictStr] = None,
410
423
  _headers: Optional[Dict[StrictStr, Any]] = None,
411
424
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
412
- ) -> ApiResponse[str]:
425
+ ) -> ApiResponse[CreateGraphResponse]:
413
426
  """create_graph
414
427
 
415
428
  Create a new graph
416
429
 
417
- :param graph: (required)
418
- :type graph: Graph
430
+ :param create_graph_request: (required)
431
+ :type create_graph_request: CreateGraphRequest
419
432
  :param _request_timeout: timeout setting for this request. If one
420
433
  number provided, it will be total request
421
434
  timeout. It can also be a pair (tuple) of
@@ -439,7 +452,7 @@ class GraphApi:
439
452
  """ # noqa: E501
440
453
 
441
454
  _param = self._create_graph_serialize(
442
- graph=graph,
455
+ create_graph_request=create_graph_request,
443
456
  _request_auth=_request_auth,
444
457
  _content_type=_content_type,
445
458
  _headers=_headers,
@@ -447,7 +460,9 @@ class GraphApi:
447
460
  )
448
461
 
449
462
  _response_types_map: Dict[str, Optional[str]] = {
450
- '200': "str",
463
+ '200': "CreateGraphResponse",
464
+ '400': "Error",
465
+ '500': "Error",
451
466
  }
452
467
  response_data = self.api_client.call_api(
453
468
  *_param,
@@ -463,7 +478,7 @@ class GraphApi:
463
478
  @validate_call
464
479
  def create_graph_without_preload_content(
465
480
  self,
466
- graph: Graph,
481
+ create_graph_request: CreateGraphRequest,
467
482
  _request_timeout: Union[
468
483
  None,
469
484
  Annotated[StrictFloat, Field(gt=0)],
@@ -481,8 +496,8 @@ class GraphApi:
481
496
 
482
497
  Create a new graph
483
498
 
484
- :param graph: (required)
485
- :type graph: Graph
499
+ :param create_graph_request: (required)
500
+ :type create_graph_request: CreateGraphRequest
486
501
  :param _request_timeout: timeout setting for this request. If one
487
502
  number provided, it will be total request
488
503
  timeout. It can also be a pair (tuple) of
@@ -506,7 +521,7 @@ class GraphApi:
506
521
  """ # noqa: E501
507
522
 
508
523
  _param = self._create_graph_serialize(
509
- graph=graph,
524
+ create_graph_request=create_graph_request,
510
525
  _request_auth=_request_auth,
511
526
  _content_type=_content_type,
512
527
  _headers=_headers,
@@ -514,7 +529,9 @@ class GraphApi:
514
529
  )
515
530
 
516
531
  _response_types_map: Dict[str, Optional[str]] = {
517
- '200': "str",
532
+ '200': "CreateGraphResponse",
533
+ '400': "Error",
534
+ '500': "Error",
518
535
  }
519
536
  response_data = self.api_client.call_api(
520
537
  *_param,
@@ -525,7 +542,7 @@ class GraphApi:
525
542
 
526
543
  def _create_graph_serialize(
527
544
  self,
528
- graph,
545
+ create_graph_request,
529
546
  _request_auth,
530
547
  _content_type,
531
548
  _headers,
@@ -541,7 +558,7 @@ class GraphApi:
541
558
  _query_params: List[Tuple[str, str]] = []
542
559
  _header_params: Dict[str, Optional[str]] = _headers or {}
543
560
  _form_params: List[Tuple[str, str]] = []
544
- _files: Dict[str, str] = {}
561
+ _files: Dict[str, Union[str, bytes]] = {}
545
562
  _body_params: Optional[bytes] = None
546
563
 
547
564
  # process the path parameters
@@ -549,16 +566,17 @@ class GraphApi:
549
566
  # process the header parameters
550
567
  # process the form parameters
551
568
  # process the body parameter
552
- if graph is not None:
553
- _body_params = graph
569
+ if create_graph_request is not None:
570
+ _body_params = create_graph_request
554
571
 
555
572
 
556
573
  # set the HTTP header `Accept`
557
- _header_params['Accept'] = self.api_client.select_header_accept(
558
- [
559
- 'application/json'
560
- ]
561
- )
574
+ if 'Accept' not in _header_params:
575
+ _header_params['Accept'] = self.api_client.select_header_accept(
576
+ [
577
+ 'application/json'
578
+ ]
579
+ )
562
580
 
563
581
  # set the HTTP header `Content-Type`
564
582
  if _content_type:
@@ -599,8 +617,8 @@ class GraphApi:
599
617
  @validate_call
600
618
  def create_vertex_type(
601
619
  self,
602
- graph_name: StrictStr,
603
- vertex_type: VertexType,
620
+ graph_id: StrictStr,
621
+ create_vertex_type: CreateVertexType,
604
622
  _request_timeout: Union[
605
623
  None,
606
624
  Annotated[StrictFloat, Field(gt=0)],
@@ -618,10 +636,10 @@ class GraphApi:
618
636
 
619
637
  Create a vertex type
620
638
 
621
- :param graph_name: (required)
622
- :type graph_name: str
623
- :param vertex_type: (required)
624
- :type vertex_type: VertexType
639
+ :param graph_id: (required)
640
+ :type graph_id: str
641
+ :param create_vertex_type: (required)
642
+ :type create_vertex_type: CreateVertexType
625
643
  :param _request_timeout: timeout setting for this request. If one
626
644
  number provided, it will be total request
627
645
  timeout. It can also be a pair (tuple) of
@@ -645,8 +663,8 @@ class GraphApi:
645
663
  """ # noqa: E501
646
664
 
647
665
  _param = self._create_vertex_type_serialize(
648
- graph_name=graph_name,
649
- vertex_type=vertex_type,
666
+ graph_id=graph_id,
667
+ create_vertex_type=create_vertex_type,
650
668
  _request_auth=_request_auth,
651
669
  _content_type=_content_type,
652
670
  _headers=_headers,
@@ -655,6 +673,8 @@ class GraphApi:
655
673
 
656
674
  _response_types_map: Dict[str, Optional[str]] = {
657
675
  '200': "str",
676
+ '400': "Error",
677
+ '500': "Error",
658
678
  }
659
679
  response_data = self.api_client.call_api(
660
680
  *_param,
@@ -670,8 +690,8 @@ class GraphApi:
670
690
  @validate_call
671
691
  def create_vertex_type_with_http_info(
672
692
  self,
673
- graph_name: StrictStr,
674
- vertex_type: VertexType,
693
+ graph_id: StrictStr,
694
+ create_vertex_type: CreateVertexType,
675
695
  _request_timeout: Union[
676
696
  None,
677
697
  Annotated[StrictFloat, Field(gt=0)],
@@ -689,10 +709,10 @@ class GraphApi:
689
709
 
690
710
  Create a vertex type
691
711
 
692
- :param graph_name: (required)
693
- :type graph_name: str
694
- :param vertex_type: (required)
695
- :type vertex_type: VertexType
712
+ :param graph_id: (required)
713
+ :type graph_id: str
714
+ :param create_vertex_type: (required)
715
+ :type create_vertex_type: CreateVertexType
696
716
  :param _request_timeout: timeout setting for this request. If one
697
717
  number provided, it will be total request
698
718
  timeout. It can also be a pair (tuple) of
@@ -716,8 +736,8 @@ class GraphApi:
716
736
  """ # noqa: E501
717
737
 
718
738
  _param = self._create_vertex_type_serialize(
719
- graph_name=graph_name,
720
- vertex_type=vertex_type,
739
+ graph_id=graph_id,
740
+ create_vertex_type=create_vertex_type,
721
741
  _request_auth=_request_auth,
722
742
  _content_type=_content_type,
723
743
  _headers=_headers,
@@ -726,6 +746,8 @@ class GraphApi:
726
746
 
727
747
  _response_types_map: Dict[str, Optional[str]] = {
728
748
  '200': "str",
749
+ '400': "Error",
750
+ '500': "Error",
729
751
  }
730
752
  response_data = self.api_client.call_api(
731
753
  *_param,
@@ -741,8 +763,8 @@ class GraphApi:
741
763
  @validate_call
742
764
  def create_vertex_type_without_preload_content(
743
765
  self,
744
- graph_name: StrictStr,
745
- vertex_type: VertexType,
766
+ graph_id: StrictStr,
767
+ create_vertex_type: CreateVertexType,
746
768
  _request_timeout: Union[
747
769
  None,
748
770
  Annotated[StrictFloat, Field(gt=0)],
@@ -760,10 +782,10 @@ class GraphApi:
760
782
 
761
783
  Create a vertex type
762
784
 
763
- :param graph_name: (required)
764
- :type graph_name: str
765
- :param vertex_type: (required)
766
- :type vertex_type: VertexType
785
+ :param graph_id: (required)
786
+ :type graph_id: str
787
+ :param create_vertex_type: (required)
788
+ :type create_vertex_type: CreateVertexType
767
789
  :param _request_timeout: timeout setting for this request. If one
768
790
  number provided, it will be total request
769
791
  timeout. It can also be a pair (tuple) of
@@ -787,8 +809,8 @@ class GraphApi:
787
809
  """ # noqa: E501
788
810
 
789
811
  _param = self._create_vertex_type_serialize(
790
- graph_name=graph_name,
791
- vertex_type=vertex_type,
812
+ graph_id=graph_id,
813
+ create_vertex_type=create_vertex_type,
792
814
  _request_auth=_request_auth,
793
815
  _content_type=_content_type,
794
816
  _headers=_headers,
@@ -797,6 +819,8 @@ class GraphApi:
797
819
 
798
820
  _response_types_map: Dict[str, Optional[str]] = {
799
821
  '200': "str",
822
+ '400': "Error",
823
+ '500': "Error",
800
824
  }
801
825
  response_data = self.api_client.call_api(
802
826
  *_param,
@@ -807,8 +831,8 @@ class GraphApi:
807
831
 
808
832
  def _create_vertex_type_serialize(
809
833
  self,
810
- graph_name,
811
- vertex_type,
834
+ graph_id,
835
+ create_vertex_type,
812
836
  _request_auth,
813
837
  _content_type,
814
838
  _headers,
@@ -824,26 +848,27 @@ class GraphApi:
824
848
  _query_params: List[Tuple[str, str]] = []
825
849
  _header_params: Dict[str, Optional[str]] = _headers or {}
826
850
  _form_params: List[Tuple[str, str]] = []
827
- _files: Dict[str, str] = {}
851
+ _files: Dict[str, Union[str, bytes]] = {}
828
852
  _body_params: Optional[bytes] = None
829
853
 
830
854
  # process the path parameters
831
- if graph_name is not None:
832
- _path_params['graph_name'] = graph_name
855
+ if graph_id is not None:
856
+ _path_params['graph_id'] = graph_id
833
857
  # process the query parameters
834
858
  # process the header parameters
835
859
  # process the form parameters
836
860
  # process the body parameter
837
- if vertex_type is not None:
838
- _body_params = vertex_type
861
+ if create_vertex_type is not None:
862
+ _body_params = create_vertex_type
839
863
 
840
864
 
841
865
  # set the HTTP header `Accept`
842
- _header_params['Accept'] = self.api_client.select_header_accept(
843
- [
844
- 'application/json'
845
- ]
846
- )
866
+ if 'Accept' not in _header_params:
867
+ _header_params['Accept'] = self.api_client.select_header_accept(
868
+ [
869
+ 'application/json'
870
+ ]
871
+ )
847
872
 
848
873
  # set the HTTP header `Content-Type`
849
874
  if _content_type:
@@ -865,7 +890,7 @@ class GraphApi:
865
890
 
866
891
  return self.api_client.param_serialize(
867
892
  method='POST',
868
- resource_path='/api/v1/graph/{graph_name}/schema/vertex_type',
893
+ resource_path='/api/v1/graph/{graph_id}/schema/vertex',
869
894
  path_params=_path_params,
870
895
  query_params=_query_params,
871
896
  header_params=_header_params,
@@ -882,9 +907,9 @@ class GraphApi:
882
907
 
883
908
 
884
909
  @validate_call
885
- def delete_edge_type(
910
+ def delete_edge_type_by_name(
886
911
  self,
887
- graph_name: StrictStr,
912
+ graph_id: StrictStr,
888
913
  type_name: StrictStr,
889
914
  source_vertex_type: StrictStr,
890
915
  destination_vertex_type: StrictStr,
@@ -901,12 +926,12 @@ class GraphApi:
901
926
  _headers: Optional[Dict[StrictStr, Any]] = None,
902
927
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
903
928
  ) -> str:
904
- """delete_edge_type
929
+ """delete_edge_type_by_name
905
930
 
906
- Delete a edge type by name
931
+ Delete edge type by name
907
932
 
908
- :param graph_name: (required)
909
- :type graph_name: str
933
+ :param graph_id: (required)
934
+ :type graph_id: str
910
935
  :param type_name: (required)
911
936
  :type type_name: str
912
937
  :param source_vertex_type: (required)
@@ -935,8 +960,8 @@ class GraphApi:
935
960
  :return: Returns the result object.
936
961
  """ # noqa: E501
937
962
 
938
- _param = self._delete_edge_type_serialize(
939
- graph_name=graph_name,
963
+ _param = self._delete_edge_type_by_name_serialize(
964
+ graph_id=graph_id,
940
965
  type_name=type_name,
941
966
  source_vertex_type=source_vertex_type,
942
967
  destination_vertex_type=destination_vertex_type,
@@ -948,6 +973,7 @@ class GraphApi:
948
973
 
949
974
  _response_types_map: Dict[str, Optional[str]] = {
950
975
  '200': "str",
976
+ '500': "Error",
951
977
  }
952
978
  response_data = self.api_client.call_api(
953
979
  *_param,
@@ -961,9 +987,9 @@ class GraphApi:
961
987
 
962
988
 
963
989
  @validate_call
964
- def delete_edge_type_with_http_info(
990
+ def delete_edge_type_by_name_with_http_info(
965
991
  self,
966
- graph_name: StrictStr,
992
+ graph_id: StrictStr,
967
993
  type_name: StrictStr,
968
994
  source_vertex_type: StrictStr,
969
995
  destination_vertex_type: StrictStr,
@@ -980,12 +1006,12 @@ class GraphApi:
980
1006
  _headers: Optional[Dict[StrictStr, Any]] = None,
981
1007
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
982
1008
  ) -> ApiResponse[str]:
983
- """delete_edge_type
1009
+ """delete_edge_type_by_name
984
1010
 
985
- Delete a edge type by name
1011
+ Delete edge type by name
986
1012
 
987
- :param graph_name: (required)
988
- :type graph_name: str
1013
+ :param graph_id: (required)
1014
+ :type graph_id: str
989
1015
  :param type_name: (required)
990
1016
  :type type_name: str
991
1017
  :param source_vertex_type: (required)
@@ -1014,8 +1040,8 @@ class GraphApi:
1014
1040
  :return: Returns the result object.
1015
1041
  """ # noqa: E501
1016
1042
 
1017
- _param = self._delete_edge_type_serialize(
1018
- graph_name=graph_name,
1043
+ _param = self._delete_edge_type_by_name_serialize(
1044
+ graph_id=graph_id,
1019
1045
  type_name=type_name,
1020
1046
  source_vertex_type=source_vertex_type,
1021
1047
  destination_vertex_type=destination_vertex_type,
@@ -1027,6 +1053,7 @@ class GraphApi:
1027
1053
 
1028
1054
  _response_types_map: Dict[str, Optional[str]] = {
1029
1055
  '200': "str",
1056
+ '500': "Error",
1030
1057
  }
1031
1058
  response_data = self.api_client.call_api(
1032
1059
  *_param,
@@ -1040,9 +1067,9 @@ class GraphApi:
1040
1067
 
1041
1068
 
1042
1069
  @validate_call
1043
- def delete_edge_type_without_preload_content(
1070
+ def delete_edge_type_by_name_without_preload_content(
1044
1071
  self,
1045
- graph_name: StrictStr,
1072
+ graph_id: StrictStr,
1046
1073
  type_name: StrictStr,
1047
1074
  source_vertex_type: StrictStr,
1048
1075
  destination_vertex_type: StrictStr,
@@ -1059,12 +1086,12 @@ class GraphApi:
1059
1086
  _headers: Optional[Dict[StrictStr, Any]] = None,
1060
1087
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1061
1088
  ) -> RESTResponseType:
1062
- """delete_edge_type
1089
+ """delete_edge_type_by_name
1063
1090
 
1064
- Delete a edge type by name
1091
+ Delete edge type by name
1065
1092
 
1066
- :param graph_name: (required)
1067
- :type graph_name: str
1093
+ :param graph_id: (required)
1094
+ :type graph_id: str
1068
1095
  :param type_name: (required)
1069
1096
  :type type_name: str
1070
1097
  :param source_vertex_type: (required)
@@ -1093,8 +1120,8 @@ class GraphApi:
1093
1120
  :return: Returns the result object.
1094
1121
  """ # noqa: E501
1095
1122
 
1096
- _param = self._delete_edge_type_serialize(
1097
- graph_name=graph_name,
1123
+ _param = self._delete_edge_type_by_name_serialize(
1124
+ graph_id=graph_id,
1098
1125
  type_name=type_name,
1099
1126
  source_vertex_type=source_vertex_type,
1100
1127
  destination_vertex_type=destination_vertex_type,
@@ -1106,6 +1133,7 @@ class GraphApi:
1106
1133
 
1107
1134
  _response_types_map: Dict[str, Optional[str]] = {
1108
1135
  '200': "str",
1136
+ '500': "Error",
1109
1137
  }
1110
1138
  response_data = self.api_client.call_api(
1111
1139
  *_param,
@@ -1114,9 +1142,9 @@ class GraphApi:
1114
1142
  return response_data.response
1115
1143
 
1116
1144
 
1117
- def _delete_edge_type_serialize(
1145
+ def _delete_edge_type_by_name_serialize(
1118
1146
  self,
1119
- graph_name,
1147
+ graph_id,
1120
1148
  type_name,
1121
1149
  source_vertex_type,
1122
1150
  destination_vertex_type,
@@ -1135,12 +1163,12 @@ class GraphApi:
1135
1163
  _query_params: List[Tuple[str, str]] = []
1136
1164
  _header_params: Dict[str, Optional[str]] = _headers or {}
1137
1165
  _form_params: List[Tuple[str, str]] = []
1138
- _files: Dict[str, str] = {}
1166
+ _files: Dict[str, Union[str, bytes]] = {}
1139
1167
  _body_params: Optional[bytes] = None
1140
1168
 
1141
1169
  # process the path parameters
1142
- if graph_name is not None:
1143
- _path_params['graph_name'] = graph_name
1170
+ if graph_id is not None:
1171
+ _path_params['graph_id'] = graph_id
1144
1172
  if type_name is not None:
1145
1173
  _path_params['type_name'] = type_name
1146
1174
  # process the query parameters
@@ -1158,11 +1186,12 @@ class GraphApi:
1158
1186
 
1159
1187
 
1160
1188
  # set the HTTP header `Accept`
1161
- _header_params['Accept'] = self.api_client.select_header_accept(
1162
- [
1163
- 'application/json'
1164
- ]
1165
- )
1189
+ if 'Accept' not in _header_params:
1190
+ _header_params['Accept'] = self.api_client.select_header_accept(
1191
+ [
1192
+ 'application/json'
1193
+ ]
1194
+ )
1166
1195
 
1167
1196
 
1168
1197
  # authentication setting
@@ -1171,7 +1200,7 @@ class GraphApi:
1171
1200
 
1172
1201
  return self.api_client.param_serialize(
1173
1202
  method='DELETE',
1174
- resource_path='/api/v1/graph/{graph_name}/schema/edge_edge/{type_name}',
1203
+ resource_path='/api/v1/graph/{graph_id}/schema/edge/{type_name}',
1175
1204
  path_params=_path_params,
1176
1205
  query_params=_query_params,
1177
1206
  header_params=_header_params,
@@ -1188,9 +1217,9 @@ class GraphApi:
1188
1217
 
1189
1218
 
1190
1219
  @validate_call
1191
- def delete_graph(
1220
+ def delete_graph_by_id(
1192
1221
  self,
1193
- graph_name: StrictStr,
1222
+ graph_id: StrictStr,
1194
1223
  _request_timeout: Union[
1195
1224
  None,
1196
1225
  Annotated[StrictFloat, Field(gt=0)],
@@ -1204,12 +1233,12 @@ class GraphApi:
1204
1233
  _headers: Optional[Dict[StrictStr, Any]] = None,
1205
1234
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1206
1235
  ) -> str:
1207
- """delete_graph
1236
+ """delete_graph_by_id
1208
1237
 
1209
- Delete a graph by name
1238
+ Delete graph by ID
1210
1239
 
1211
- :param graph_name: (required)
1212
- :type graph_name: str
1240
+ :param graph_id: (required)
1241
+ :type graph_id: str
1213
1242
  :param _request_timeout: timeout setting for this request. If one
1214
1243
  number provided, it will be total request
1215
1244
  timeout. It can also be a pair (tuple) of
@@ -1232,8 +1261,8 @@ class GraphApi:
1232
1261
  :return: Returns the result object.
1233
1262
  """ # noqa: E501
1234
1263
 
1235
- _param = self._delete_graph_serialize(
1236
- graph_name=graph_name,
1264
+ _param = self._delete_graph_by_id_serialize(
1265
+ graph_id=graph_id,
1237
1266
  _request_auth=_request_auth,
1238
1267
  _content_type=_content_type,
1239
1268
  _headers=_headers,
@@ -1242,6 +1271,7 @@ class GraphApi:
1242
1271
 
1243
1272
  _response_types_map: Dict[str, Optional[str]] = {
1244
1273
  '200': "str",
1274
+ '500': "Error",
1245
1275
  }
1246
1276
  response_data = self.api_client.call_api(
1247
1277
  *_param,
@@ -1255,9 +1285,9 @@ class GraphApi:
1255
1285
 
1256
1286
 
1257
1287
  @validate_call
1258
- def delete_graph_with_http_info(
1288
+ def delete_graph_by_id_with_http_info(
1259
1289
  self,
1260
- graph_name: StrictStr,
1290
+ graph_id: StrictStr,
1261
1291
  _request_timeout: Union[
1262
1292
  None,
1263
1293
  Annotated[StrictFloat, Field(gt=0)],
@@ -1271,12 +1301,12 @@ class GraphApi:
1271
1301
  _headers: Optional[Dict[StrictStr, Any]] = None,
1272
1302
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1273
1303
  ) -> ApiResponse[str]:
1274
- """delete_graph
1304
+ """delete_graph_by_id
1275
1305
 
1276
- Delete a graph by name
1306
+ Delete graph by ID
1277
1307
 
1278
- :param graph_name: (required)
1279
- :type graph_name: str
1308
+ :param graph_id: (required)
1309
+ :type graph_id: str
1280
1310
  :param _request_timeout: timeout setting for this request. If one
1281
1311
  number provided, it will be total request
1282
1312
  timeout. It can also be a pair (tuple) of
@@ -1299,8 +1329,8 @@ class GraphApi:
1299
1329
  :return: Returns the result object.
1300
1330
  """ # noqa: E501
1301
1331
 
1302
- _param = self._delete_graph_serialize(
1303
- graph_name=graph_name,
1332
+ _param = self._delete_graph_by_id_serialize(
1333
+ graph_id=graph_id,
1304
1334
  _request_auth=_request_auth,
1305
1335
  _content_type=_content_type,
1306
1336
  _headers=_headers,
@@ -1309,6 +1339,7 @@ class GraphApi:
1309
1339
 
1310
1340
  _response_types_map: Dict[str, Optional[str]] = {
1311
1341
  '200': "str",
1342
+ '500': "Error",
1312
1343
  }
1313
1344
  response_data = self.api_client.call_api(
1314
1345
  *_param,
@@ -1322,9 +1353,9 @@ class GraphApi:
1322
1353
 
1323
1354
 
1324
1355
  @validate_call
1325
- def delete_graph_without_preload_content(
1356
+ def delete_graph_by_id_without_preload_content(
1326
1357
  self,
1327
- graph_name: StrictStr,
1358
+ graph_id: StrictStr,
1328
1359
  _request_timeout: Union[
1329
1360
  None,
1330
1361
  Annotated[StrictFloat, Field(gt=0)],
@@ -1338,12 +1369,12 @@ class GraphApi:
1338
1369
  _headers: Optional[Dict[StrictStr, Any]] = None,
1339
1370
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1340
1371
  ) -> RESTResponseType:
1341
- """delete_graph
1372
+ """delete_graph_by_id
1342
1373
 
1343
- Delete a graph by name
1374
+ Delete graph by ID
1344
1375
 
1345
- :param graph_name: (required)
1346
- :type graph_name: str
1376
+ :param graph_id: (required)
1377
+ :type graph_id: str
1347
1378
  :param _request_timeout: timeout setting for this request. If one
1348
1379
  number provided, it will be total request
1349
1380
  timeout. It can also be a pair (tuple) of
@@ -1366,8 +1397,8 @@ class GraphApi:
1366
1397
  :return: Returns the result object.
1367
1398
  """ # noqa: E501
1368
1399
 
1369
- _param = self._delete_graph_serialize(
1370
- graph_name=graph_name,
1400
+ _param = self._delete_graph_by_id_serialize(
1401
+ graph_id=graph_id,
1371
1402
  _request_auth=_request_auth,
1372
1403
  _content_type=_content_type,
1373
1404
  _headers=_headers,
@@ -1376,6 +1407,7 @@ class GraphApi:
1376
1407
 
1377
1408
  _response_types_map: Dict[str, Optional[str]] = {
1378
1409
  '200': "str",
1410
+ '500': "Error",
1379
1411
  }
1380
1412
  response_data = self.api_client.call_api(
1381
1413
  *_param,
@@ -1384,9 +1416,9 @@ class GraphApi:
1384
1416
  return response_data.response
1385
1417
 
1386
1418
 
1387
- def _delete_graph_serialize(
1419
+ def _delete_graph_by_id_serialize(
1388
1420
  self,
1389
- graph_name,
1421
+ graph_id,
1390
1422
  _request_auth,
1391
1423
  _content_type,
1392
1424
  _headers,
@@ -1402,12 +1434,12 @@ class GraphApi:
1402
1434
  _query_params: List[Tuple[str, str]] = []
1403
1435
  _header_params: Dict[str, Optional[str]] = _headers or {}
1404
1436
  _form_params: List[Tuple[str, str]] = []
1405
- _files: Dict[str, str] = {}
1437
+ _files: Dict[str, Union[str, bytes]] = {}
1406
1438
  _body_params: Optional[bytes] = None
1407
1439
 
1408
1440
  # process the path parameters
1409
- if graph_name is not None:
1410
- _path_params['graph_name'] = graph_name
1441
+ if graph_id is not None:
1442
+ _path_params['graph_id'] = graph_id
1411
1443
  # process the query parameters
1412
1444
  # process the header parameters
1413
1445
  # process the form parameters
@@ -1415,11 +1447,12 @@ class GraphApi:
1415
1447
 
1416
1448
 
1417
1449
  # set the HTTP header `Accept`
1418
- _header_params['Accept'] = self.api_client.select_header_accept(
1419
- [
1420
- 'application/json'
1421
- ]
1422
- )
1450
+ if 'Accept' not in _header_params:
1451
+ _header_params['Accept'] = self.api_client.select_header_accept(
1452
+ [
1453
+ 'application/json'
1454
+ ]
1455
+ )
1423
1456
 
1424
1457
 
1425
1458
  # authentication setting
@@ -1428,7 +1461,7 @@ class GraphApi:
1428
1461
 
1429
1462
  return self.api_client.param_serialize(
1430
1463
  method='DELETE',
1431
- resource_path='/api/v1/graph/{graph_name}',
1464
+ resource_path='/api/v1/graph/{graph_id}',
1432
1465
  path_params=_path_params,
1433
1466
  query_params=_query_params,
1434
1467
  header_params=_header_params,
@@ -1445,9 +1478,9 @@ class GraphApi:
1445
1478
 
1446
1479
 
1447
1480
  @validate_call
1448
- def delete_vertex_type(
1481
+ def delete_vertex_type_by_name(
1449
1482
  self,
1450
- graph_name: StrictStr,
1483
+ graph_id: StrictStr,
1451
1484
  type_name: StrictStr,
1452
1485
  _request_timeout: Union[
1453
1486
  None,
@@ -1462,12 +1495,12 @@ class GraphApi:
1462
1495
  _headers: Optional[Dict[StrictStr, Any]] = None,
1463
1496
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1464
1497
  ) -> str:
1465
- """delete_vertex_type
1498
+ """delete_vertex_type_by_name
1466
1499
 
1467
- Delete a vertex type by name
1500
+ Delete vertex type by name
1468
1501
 
1469
- :param graph_name: (required)
1470
- :type graph_name: str
1502
+ :param graph_id: (required)
1503
+ :type graph_id: str
1471
1504
  :param type_name: (required)
1472
1505
  :type type_name: str
1473
1506
  :param _request_timeout: timeout setting for this request. If one
@@ -1492,8 +1525,8 @@ class GraphApi:
1492
1525
  :return: Returns the result object.
1493
1526
  """ # noqa: E501
1494
1527
 
1495
- _param = self._delete_vertex_type_serialize(
1496
- graph_name=graph_name,
1528
+ _param = self._delete_vertex_type_by_name_serialize(
1529
+ graph_id=graph_id,
1497
1530
  type_name=type_name,
1498
1531
  _request_auth=_request_auth,
1499
1532
  _content_type=_content_type,
@@ -1503,6 +1536,7 @@ class GraphApi:
1503
1536
 
1504
1537
  _response_types_map: Dict[str, Optional[str]] = {
1505
1538
  '200': "str",
1539
+ '500': "Error",
1506
1540
  }
1507
1541
  response_data = self.api_client.call_api(
1508
1542
  *_param,
@@ -1516,9 +1550,9 @@ class GraphApi:
1516
1550
 
1517
1551
 
1518
1552
  @validate_call
1519
- def delete_vertex_type_with_http_info(
1553
+ def delete_vertex_type_by_name_with_http_info(
1520
1554
  self,
1521
- graph_name: StrictStr,
1555
+ graph_id: StrictStr,
1522
1556
  type_name: StrictStr,
1523
1557
  _request_timeout: Union[
1524
1558
  None,
@@ -1533,12 +1567,12 @@ class GraphApi:
1533
1567
  _headers: Optional[Dict[StrictStr, Any]] = None,
1534
1568
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1535
1569
  ) -> ApiResponse[str]:
1536
- """delete_vertex_type
1570
+ """delete_vertex_type_by_name
1537
1571
 
1538
- Delete a vertex type by name
1572
+ Delete vertex type by name
1539
1573
 
1540
- :param graph_name: (required)
1541
- :type graph_name: str
1574
+ :param graph_id: (required)
1575
+ :type graph_id: str
1542
1576
  :param type_name: (required)
1543
1577
  :type type_name: str
1544
1578
  :param _request_timeout: timeout setting for this request. If one
@@ -1563,8 +1597,8 @@ class GraphApi:
1563
1597
  :return: Returns the result object.
1564
1598
  """ # noqa: E501
1565
1599
 
1566
- _param = self._delete_vertex_type_serialize(
1567
- graph_name=graph_name,
1600
+ _param = self._delete_vertex_type_by_name_serialize(
1601
+ graph_id=graph_id,
1568
1602
  type_name=type_name,
1569
1603
  _request_auth=_request_auth,
1570
1604
  _content_type=_content_type,
@@ -1574,6 +1608,7 @@ class GraphApi:
1574
1608
 
1575
1609
  _response_types_map: Dict[str, Optional[str]] = {
1576
1610
  '200': "str",
1611
+ '500': "Error",
1577
1612
  }
1578
1613
  response_data = self.api_client.call_api(
1579
1614
  *_param,
@@ -1587,9 +1622,9 @@ class GraphApi:
1587
1622
 
1588
1623
 
1589
1624
  @validate_call
1590
- def delete_vertex_type_without_preload_content(
1625
+ def delete_vertex_type_by_name_without_preload_content(
1591
1626
  self,
1592
- graph_name: StrictStr,
1627
+ graph_id: StrictStr,
1593
1628
  type_name: StrictStr,
1594
1629
  _request_timeout: Union[
1595
1630
  None,
@@ -1604,12 +1639,12 @@ class GraphApi:
1604
1639
  _headers: Optional[Dict[StrictStr, Any]] = None,
1605
1640
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1606
1641
  ) -> RESTResponseType:
1607
- """delete_vertex_type
1642
+ """delete_vertex_type_by_name
1608
1643
 
1609
- Delete a vertex type by name
1644
+ Delete vertex type by name
1610
1645
 
1611
- :param graph_name: (required)
1612
- :type graph_name: str
1646
+ :param graph_id: (required)
1647
+ :type graph_id: str
1613
1648
  :param type_name: (required)
1614
1649
  :type type_name: str
1615
1650
  :param _request_timeout: timeout setting for this request. If one
@@ -1634,8 +1669,8 @@ class GraphApi:
1634
1669
  :return: Returns the result object.
1635
1670
  """ # noqa: E501
1636
1671
 
1637
- _param = self._delete_vertex_type_serialize(
1638
- graph_name=graph_name,
1672
+ _param = self._delete_vertex_type_by_name_serialize(
1673
+ graph_id=graph_id,
1639
1674
  type_name=type_name,
1640
1675
  _request_auth=_request_auth,
1641
1676
  _content_type=_content_type,
@@ -1645,6 +1680,7 @@ class GraphApi:
1645
1680
 
1646
1681
  _response_types_map: Dict[str, Optional[str]] = {
1647
1682
  '200': "str",
1683
+ '500': "Error",
1648
1684
  }
1649
1685
  response_data = self.api_client.call_api(
1650
1686
  *_param,
@@ -1653,9 +1689,9 @@ class GraphApi:
1653
1689
  return response_data.response
1654
1690
 
1655
1691
 
1656
- def _delete_vertex_type_serialize(
1692
+ def _delete_vertex_type_by_name_serialize(
1657
1693
  self,
1658
- graph_name,
1694
+ graph_id,
1659
1695
  type_name,
1660
1696
  _request_auth,
1661
1697
  _content_type,
@@ -1672,12 +1708,12 @@ class GraphApi:
1672
1708
  _query_params: List[Tuple[str, str]] = []
1673
1709
  _header_params: Dict[str, Optional[str]] = _headers or {}
1674
1710
  _form_params: List[Tuple[str, str]] = []
1675
- _files: Dict[str, str] = {}
1711
+ _files: Dict[str, Union[str, bytes]] = {}
1676
1712
  _body_params: Optional[bytes] = None
1677
1713
 
1678
1714
  # process the path parameters
1679
- if graph_name is not None:
1680
- _path_params['graph_name'] = graph_name
1715
+ if graph_id is not None:
1716
+ _path_params['graph_id'] = graph_id
1681
1717
  if type_name is not None:
1682
1718
  _path_params['type_name'] = type_name
1683
1719
  # process the query parameters
@@ -1687,11 +1723,12 @@ class GraphApi:
1687
1723
 
1688
1724
 
1689
1725
  # set the HTTP header `Accept`
1690
- _header_params['Accept'] = self.api_client.select_header_accept(
1691
- [
1692
- 'application/json'
1693
- ]
1694
- )
1726
+ if 'Accept' not in _header_params:
1727
+ _header_params['Accept'] = self.api_client.select_header_accept(
1728
+ [
1729
+ 'application/json'
1730
+ ]
1731
+ )
1695
1732
 
1696
1733
 
1697
1734
  # authentication setting
@@ -1700,7 +1737,7 @@ class GraphApi:
1700
1737
 
1701
1738
  return self.api_client.param_serialize(
1702
1739
  method='DELETE',
1703
- resource_path='/api/v1/graph/{graph_name}/schema/vertex_type/{type_name}',
1740
+ resource_path='/api/v1/graph/{graph_id}/schema/vertex/{type_name}',
1704
1741
  path_params=_path_params,
1705
1742
  query_params=_query_params,
1706
1743
  header_params=_header_params,
@@ -1717,9 +1754,9 @@ class GraphApi:
1717
1754
 
1718
1755
 
1719
1756
  @validate_call
1720
- def get_schema(
1757
+ def get_graph_by_id(
1721
1758
  self,
1722
- graph_name: StrictStr,
1759
+ graph_id: StrictStr,
1723
1760
  _request_timeout: Union[
1724
1761
  None,
1725
1762
  Annotated[StrictFloat, Field(gt=0)],
@@ -1732,13 +1769,13 @@ class GraphApi:
1732
1769
  _content_type: Optional[StrictStr] = None,
1733
1770
  _headers: Optional[Dict[StrictStr, Any]] = None,
1734
1771
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1735
- ) -> ModelSchema:
1736
- """get_schema
1772
+ ) -> GetGraphResponse:
1773
+ """get_graph_by_id
1737
1774
 
1738
- Get graph schema by name
1775
+ Get graph by ID
1739
1776
 
1740
- :param graph_name: (required)
1741
- :type graph_name: str
1777
+ :param graph_id: (required)
1778
+ :type graph_id: str
1742
1779
  :param _request_timeout: timeout setting for this request. If one
1743
1780
  number provided, it will be total request
1744
1781
  timeout. It can also be a pair (tuple) of
@@ -1761,8 +1798,8 @@ class GraphApi:
1761
1798
  :return: Returns the result object.
1762
1799
  """ # noqa: E501
1763
1800
 
1764
- _param = self._get_schema_serialize(
1765
- graph_name=graph_name,
1801
+ _param = self._get_graph_by_id_serialize(
1802
+ graph_id=graph_id,
1766
1803
  _request_auth=_request_auth,
1767
1804
  _content_type=_content_type,
1768
1805
  _headers=_headers,
@@ -1770,7 +1807,8 @@ class GraphApi:
1770
1807
  )
1771
1808
 
1772
1809
  _response_types_map: Dict[str, Optional[str]] = {
1773
- '200': "ModelSchema",
1810
+ '200': "GetGraphResponse",
1811
+ '500': "Error",
1774
1812
  }
1775
1813
  response_data = self.api_client.call_api(
1776
1814
  *_param,
@@ -1784,9 +1822,9 @@ class GraphApi:
1784
1822
 
1785
1823
 
1786
1824
  @validate_call
1787
- def get_schema_with_http_info(
1825
+ def get_graph_by_id_with_http_info(
1788
1826
  self,
1789
- graph_name: StrictStr,
1827
+ graph_id: StrictStr,
1790
1828
  _request_timeout: Union[
1791
1829
  None,
1792
1830
  Annotated[StrictFloat, Field(gt=0)],
@@ -1799,13 +1837,13 @@ class GraphApi:
1799
1837
  _content_type: Optional[StrictStr] = None,
1800
1838
  _headers: Optional[Dict[StrictStr, Any]] = None,
1801
1839
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1802
- ) -> ApiResponse[ModelSchema]:
1803
- """get_schema
1840
+ ) -> ApiResponse[GetGraphResponse]:
1841
+ """get_graph_by_id
1804
1842
 
1805
- Get graph schema by name
1843
+ Get graph by ID
1806
1844
 
1807
- :param graph_name: (required)
1808
- :type graph_name: str
1845
+ :param graph_id: (required)
1846
+ :type graph_id: str
1809
1847
  :param _request_timeout: timeout setting for this request. If one
1810
1848
  number provided, it will be total request
1811
1849
  timeout. It can also be a pair (tuple) of
@@ -1828,8 +1866,8 @@ class GraphApi:
1828
1866
  :return: Returns the result object.
1829
1867
  """ # noqa: E501
1830
1868
 
1831
- _param = self._get_schema_serialize(
1832
- graph_name=graph_name,
1869
+ _param = self._get_graph_by_id_serialize(
1870
+ graph_id=graph_id,
1833
1871
  _request_auth=_request_auth,
1834
1872
  _content_type=_content_type,
1835
1873
  _headers=_headers,
@@ -1837,7 +1875,8 @@ class GraphApi:
1837
1875
  )
1838
1876
 
1839
1877
  _response_types_map: Dict[str, Optional[str]] = {
1840
- '200': "ModelSchema",
1878
+ '200': "GetGraphResponse",
1879
+ '500': "Error",
1841
1880
  }
1842
1881
  response_data = self.api_client.call_api(
1843
1882
  *_param,
@@ -1851,9 +1890,9 @@ class GraphApi:
1851
1890
 
1852
1891
 
1853
1892
  @validate_call
1854
- def get_schema_without_preload_content(
1893
+ def get_graph_by_id_without_preload_content(
1855
1894
  self,
1856
- graph_name: StrictStr,
1895
+ graph_id: StrictStr,
1857
1896
  _request_timeout: Union[
1858
1897
  None,
1859
1898
  Annotated[StrictFloat, Field(gt=0)],
@@ -1867,12 +1906,12 @@ class GraphApi:
1867
1906
  _headers: Optional[Dict[StrictStr, Any]] = None,
1868
1907
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1869
1908
  ) -> RESTResponseType:
1870
- """get_schema
1909
+ """get_graph_by_id
1871
1910
 
1872
- Get graph schema by name
1911
+ Get graph by ID
1873
1912
 
1874
- :param graph_name: (required)
1875
- :type graph_name: str
1913
+ :param graph_id: (required)
1914
+ :type graph_id: str
1876
1915
  :param _request_timeout: timeout setting for this request. If one
1877
1916
  number provided, it will be total request
1878
1917
  timeout. It can also be a pair (tuple) of
@@ -1895,8 +1934,8 @@ class GraphApi:
1895
1934
  :return: Returns the result object.
1896
1935
  """ # noqa: E501
1897
1936
 
1898
- _param = self._get_schema_serialize(
1899
- graph_name=graph_name,
1937
+ _param = self._get_graph_by_id_serialize(
1938
+ graph_id=graph_id,
1900
1939
  _request_auth=_request_auth,
1901
1940
  _content_type=_content_type,
1902
1941
  _headers=_headers,
@@ -1904,7 +1943,8 @@ class GraphApi:
1904
1943
  )
1905
1944
 
1906
1945
  _response_types_map: Dict[str, Optional[str]] = {
1907
- '200': "ModelSchema",
1946
+ '200': "GetGraphResponse",
1947
+ '500': "Error",
1908
1948
  }
1909
1949
  response_data = self.api_client.call_api(
1910
1950
  *_param,
@@ -1913,9 +1953,9 @@ class GraphApi:
1913
1953
  return response_data.response
1914
1954
 
1915
1955
 
1916
- def _get_schema_serialize(
1956
+ def _get_graph_by_id_serialize(
1917
1957
  self,
1918
- graph_name,
1958
+ graph_id,
1919
1959
  _request_auth,
1920
1960
  _content_type,
1921
1961
  _headers,
@@ -1931,12 +1971,12 @@ class GraphApi:
1931
1971
  _query_params: List[Tuple[str, str]] = []
1932
1972
  _header_params: Dict[str, Optional[str]] = _headers or {}
1933
1973
  _form_params: List[Tuple[str, str]] = []
1934
- _files: Dict[str, str] = {}
1974
+ _files: Dict[str, Union[str, bytes]] = {}
1935
1975
  _body_params: Optional[bytes] = None
1936
1976
 
1937
1977
  # process the path parameters
1938
- if graph_name is not None:
1939
- _path_params['graph_name'] = graph_name
1978
+ if graph_id is not None:
1979
+ _path_params['graph_id'] = graph_id
1940
1980
  # process the query parameters
1941
1981
  # process the header parameters
1942
1982
  # process the form parameters
@@ -1944,11 +1984,273 @@ class GraphApi:
1944
1984
 
1945
1985
 
1946
1986
  # set the HTTP header `Accept`
1947
- _header_params['Accept'] = self.api_client.select_header_accept(
1948
- [
1949
- 'application/json'
1987
+ if 'Accept' not in _header_params:
1988
+ _header_params['Accept'] = self.api_client.select_header_accept(
1989
+ [
1990
+ 'application/json'
1991
+ ]
1992
+ )
1993
+
1994
+
1995
+ # authentication setting
1996
+ _auth_settings: List[str] = [
1997
+ ]
1998
+
1999
+ return self.api_client.param_serialize(
2000
+ method='GET',
2001
+ resource_path='/api/v1/graph/{graph_id}',
2002
+ path_params=_path_params,
2003
+ query_params=_query_params,
2004
+ header_params=_header_params,
2005
+ body=_body_params,
2006
+ post_params=_form_params,
2007
+ files=_files,
2008
+ auth_settings=_auth_settings,
2009
+ collection_formats=_collection_formats,
2010
+ _host=_host,
2011
+ _request_auth=_request_auth
2012
+ )
2013
+
2014
+
2015
+
2016
+
2017
+ @validate_call
2018
+ def get_schema_by_id(
2019
+ self,
2020
+ graph_id: StrictStr,
2021
+ _request_timeout: Union[
2022
+ None,
2023
+ Annotated[StrictFloat, Field(gt=0)],
2024
+ Tuple[
2025
+ Annotated[StrictFloat, Field(gt=0)],
2026
+ Annotated[StrictFloat, Field(gt=0)]
2027
+ ]
2028
+ ] = None,
2029
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2030
+ _content_type: Optional[StrictStr] = None,
2031
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2032
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2033
+ ) -> GetGraphSchemaResponse:
2034
+ """get_schema_by_id
2035
+
2036
+ Get graph schema by ID
2037
+
2038
+ :param graph_id: (required)
2039
+ :type graph_id: str
2040
+ :param _request_timeout: timeout setting for this request. If one
2041
+ number provided, it will be total request
2042
+ timeout. It can also be a pair (tuple) of
2043
+ (connection, read) timeouts.
2044
+ :type _request_timeout: int, tuple(int, int), optional
2045
+ :param _request_auth: set to override the auth_settings for an a single
2046
+ request; this effectively ignores the
2047
+ authentication in the spec for a single request.
2048
+ :type _request_auth: dict, optional
2049
+ :param _content_type: force content-type for the request.
2050
+ :type _content_type: str, Optional
2051
+ :param _headers: set to override the headers for a single
2052
+ request; this effectively ignores the headers
2053
+ in the spec for a single request.
2054
+ :type _headers: dict, optional
2055
+ :param _host_index: set to override the host_index for a single
2056
+ request; this effectively ignores the host_index
2057
+ in the spec for a single request.
2058
+ :type _host_index: int, optional
2059
+ :return: Returns the result object.
2060
+ """ # noqa: E501
2061
+
2062
+ _param = self._get_schema_by_id_serialize(
2063
+ graph_id=graph_id,
2064
+ _request_auth=_request_auth,
2065
+ _content_type=_content_type,
2066
+ _headers=_headers,
2067
+ _host_index=_host_index
2068
+ )
2069
+
2070
+ _response_types_map: Dict[str, Optional[str]] = {
2071
+ '200': "GetGraphSchemaResponse",
2072
+ '500': "Error",
2073
+ }
2074
+ response_data = self.api_client.call_api(
2075
+ *_param,
2076
+ _request_timeout=_request_timeout
2077
+ )
2078
+ response_data.read()
2079
+ return self.api_client.response_deserialize(
2080
+ response_data=response_data,
2081
+ response_types_map=_response_types_map,
2082
+ ).data
2083
+
2084
+
2085
+ @validate_call
2086
+ def get_schema_by_id_with_http_info(
2087
+ self,
2088
+ graph_id: StrictStr,
2089
+ _request_timeout: Union[
2090
+ None,
2091
+ Annotated[StrictFloat, Field(gt=0)],
2092
+ Tuple[
2093
+ Annotated[StrictFloat, Field(gt=0)],
2094
+ Annotated[StrictFloat, Field(gt=0)]
2095
+ ]
2096
+ ] = None,
2097
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2098
+ _content_type: Optional[StrictStr] = None,
2099
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2100
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2101
+ ) -> ApiResponse[GetGraphSchemaResponse]:
2102
+ """get_schema_by_id
2103
+
2104
+ Get graph schema by ID
2105
+
2106
+ :param graph_id: (required)
2107
+ :type graph_id: str
2108
+ :param _request_timeout: timeout setting for this request. If one
2109
+ number provided, it will be total request
2110
+ timeout. It can also be a pair (tuple) of
2111
+ (connection, read) timeouts.
2112
+ :type _request_timeout: int, tuple(int, int), optional
2113
+ :param _request_auth: set to override the auth_settings for an a single
2114
+ request; this effectively ignores the
2115
+ authentication in the spec for a single request.
2116
+ :type _request_auth: dict, optional
2117
+ :param _content_type: force content-type for the request.
2118
+ :type _content_type: str, Optional
2119
+ :param _headers: set to override the headers for a single
2120
+ request; this effectively ignores the headers
2121
+ in the spec for a single request.
2122
+ :type _headers: dict, optional
2123
+ :param _host_index: set to override the host_index for a single
2124
+ request; this effectively ignores the host_index
2125
+ in the spec for a single request.
2126
+ :type _host_index: int, optional
2127
+ :return: Returns the result object.
2128
+ """ # noqa: E501
2129
+
2130
+ _param = self._get_schema_by_id_serialize(
2131
+ graph_id=graph_id,
2132
+ _request_auth=_request_auth,
2133
+ _content_type=_content_type,
2134
+ _headers=_headers,
2135
+ _host_index=_host_index
2136
+ )
2137
+
2138
+ _response_types_map: Dict[str, Optional[str]] = {
2139
+ '200': "GetGraphSchemaResponse",
2140
+ '500': "Error",
2141
+ }
2142
+ response_data = self.api_client.call_api(
2143
+ *_param,
2144
+ _request_timeout=_request_timeout
2145
+ )
2146
+ response_data.read()
2147
+ return self.api_client.response_deserialize(
2148
+ response_data=response_data,
2149
+ response_types_map=_response_types_map,
2150
+ )
2151
+
2152
+
2153
+ @validate_call
2154
+ def get_schema_by_id_without_preload_content(
2155
+ self,
2156
+ graph_id: StrictStr,
2157
+ _request_timeout: Union[
2158
+ None,
2159
+ Annotated[StrictFloat, Field(gt=0)],
2160
+ Tuple[
2161
+ Annotated[StrictFloat, Field(gt=0)],
2162
+ Annotated[StrictFloat, Field(gt=0)]
1950
2163
  ]
2164
+ ] = None,
2165
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2166
+ _content_type: Optional[StrictStr] = None,
2167
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2168
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2169
+ ) -> RESTResponseType:
2170
+ """get_schema_by_id
2171
+
2172
+ Get graph schema by ID
2173
+
2174
+ :param graph_id: (required)
2175
+ :type graph_id: str
2176
+ :param _request_timeout: timeout setting for this request. If one
2177
+ number provided, it will be total request
2178
+ timeout. It can also be a pair (tuple) of
2179
+ (connection, read) timeouts.
2180
+ :type _request_timeout: int, tuple(int, int), optional
2181
+ :param _request_auth: set to override the auth_settings for an a single
2182
+ request; this effectively ignores the
2183
+ authentication in the spec for a single request.
2184
+ :type _request_auth: dict, optional
2185
+ :param _content_type: force content-type for the request.
2186
+ :type _content_type: str, Optional
2187
+ :param _headers: set to override the headers for a single
2188
+ request; this effectively ignores the headers
2189
+ in the spec for a single request.
2190
+ :type _headers: dict, optional
2191
+ :param _host_index: set to override the host_index for a single
2192
+ request; this effectively ignores the host_index
2193
+ in the spec for a single request.
2194
+ :type _host_index: int, optional
2195
+ :return: Returns the result object.
2196
+ """ # noqa: E501
2197
+
2198
+ _param = self._get_schema_by_id_serialize(
2199
+ graph_id=graph_id,
2200
+ _request_auth=_request_auth,
2201
+ _content_type=_content_type,
2202
+ _headers=_headers,
2203
+ _host_index=_host_index
2204
+ )
2205
+
2206
+ _response_types_map: Dict[str, Optional[str]] = {
2207
+ '200': "GetGraphSchemaResponse",
2208
+ '500': "Error",
2209
+ }
2210
+ response_data = self.api_client.call_api(
2211
+ *_param,
2212
+ _request_timeout=_request_timeout
1951
2213
  )
2214
+ return response_data.response
2215
+
2216
+
2217
+ def _get_schema_by_id_serialize(
2218
+ self,
2219
+ graph_id,
2220
+ _request_auth,
2221
+ _content_type,
2222
+ _headers,
2223
+ _host_index,
2224
+ ) -> RequestSerialized:
2225
+
2226
+ _host = None
2227
+
2228
+ _collection_formats: Dict[str, str] = {
2229
+ }
2230
+
2231
+ _path_params: Dict[str, str] = {}
2232
+ _query_params: List[Tuple[str, str]] = []
2233
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2234
+ _form_params: List[Tuple[str, str]] = []
2235
+ _files: Dict[str, Union[str, bytes]] = {}
2236
+ _body_params: Optional[bytes] = None
2237
+
2238
+ # process the path parameters
2239
+ if graph_id is not None:
2240
+ _path_params['graph_id'] = graph_id
2241
+ # process the query parameters
2242
+ # process the header parameters
2243
+ # process the form parameters
2244
+ # process the body parameter
2245
+
2246
+
2247
+ # set the HTTP header `Accept`
2248
+ if 'Accept' not in _header_params:
2249
+ _header_params['Accept'] = self.api_client.select_header_accept(
2250
+ [
2251
+ 'application/json'
2252
+ ]
2253
+ )
1952
2254
 
1953
2255
 
1954
2256
  # authentication setting
@@ -1957,7 +2259,299 @@ class GraphApi:
1957
2259
 
1958
2260
  return self.api_client.param_serialize(
1959
2261
  method='GET',
1960
- resource_path='/api/v1/graph/{graph_name}/schema',
2262
+ resource_path='/api/v1/graph/{graph_id}/schema',
2263
+ path_params=_path_params,
2264
+ query_params=_query_params,
2265
+ header_params=_header_params,
2266
+ body=_body_params,
2267
+ post_params=_form_params,
2268
+ files=_files,
2269
+ auth_settings=_auth_settings,
2270
+ collection_formats=_collection_formats,
2271
+ _host=_host,
2272
+ _request_auth=_request_auth
2273
+ )
2274
+
2275
+
2276
+
2277
+
2278
+ @validate_call
2279
+ def import_schema_by_id(
2280
+ self,
2281
+ graph_id: StrictStr,
2282
+ create_graph_schema_request: CreateGraphSchemaRequest,
2283
+ _request_timeout: Union[
2284
+ None,
2285
+ Annotated[StrictFloat, Field(gt=0)],
2286
+ Tuple[
2287
+ Annotated[StrictFloat, Field(gt=0)],
2288
+ Annotated[StrictFloat, Field(gt=0)]
2289
+ ]
2290
+ ] = None,
2291
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2292
+ _content_type: Optional[StrictStr] = None,
2293
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2294
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2295
+ ) -> str:
2296
+ """import_schema_by_id
2297
+
2298
+ Import graph schema
2299
+
2300
+ :param graph_id: (required)
2301
+ :type graph_id: str
2302
+ :param create_graph_schema_request: (required)
2303
+ :type create_graph_schema_request: CreateGraphSchemaRequest
2304
+ :param _request_timeout: timeout setting for this request. If one
2305
+ number provided, it will be total request
2306
+ timeout. It can also be a pair (tuple) of
2307
+ (connection, read) timeouts.
2308
+ :type _request_timeout: int, tuple(int, int), optional
2309
+ :param _request_auth: set to override the auth_settings for an a single
2310
+ request; this effectively ignores the
2311
+ authentication in the spec for a single request.
2312
+ :type _request_auth: dict, optional
2313
+ :param _content_type: force content-type for the request.
2314
+ :type _content_type: str, Optional
2315
+ :param _headers: set to override the headers for a single
2316
+ request; this effectively ignores the headers
2317
+ in the spec for a single request.
2318
+ :type _headers: dict, optional
2319
+ :param _host_index: set to override the host_index for a single
2320
+ request; this effectively ignores the host_index
2321
+ in the spec for a single request.
2322
+ :type _host_index: int, optional
2323
+ :return: Returns the result object.
2324
+ """ # noqa: E501
2325
+
2326
+ _param = self._import_schema_by_id_serialize(
2327
+ graph_id=graph_id,
2328
+ create_graph_schema_request=create_graph_schema_request,
2329
+ _request_auth=_request_auth,
2330
+ _content_type=_content_type,
2331
+ _headers=_headers,
2332
+ _host_index=_host_index
2333
+ )
2334
+
2335
+ _response_types_map: Dict[str, Optional[str]] = {
2336
+ '200': "str",
2337
+ '400': "Error",
2338
+ '500': "Error",
2339
+ }
2340
+ response_data = self.api_client.call_api(
2341
+ *_param,
2342
+ _request_timeout=_request_timeout
2343
+ )
2344
+ response_data.read()
2345
+ return self.api_client.response_deserialize(
2346
+ response_data=response_data,
2347
+ response_types_map=_response_types_map,
2348
+ ).data
2349
+
2350
+
2351
+ @validate_call
2352
+ def import_schema_by_id_with_http_info(
2353
+ self,
2354
+ graph_id: StrictStr,
2355
+ create_graph_schema_request: CreateGraphSchemaRequest,
2356
+ _request_timeout: Union[
2357
+ None,
2358
+ Annotated[StrictFloat, Field(gt=0)],
2359
+ Tuple[
2360
+ Annotated[StrictFloat, Field(gt=0)],
2361
+ Annotated[StrictFloat, Field(gt=0)]
2362
+ ]
2363
+ ] = None,
2364
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2365
+ _content_type: Optional[StrictStr] = None,
2366
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2367
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2368
+ ) -> ApiResponse[str]:
2369
+ """import_schema_by_id
2370
+
2371
+ Import graph schema
2372
+
2373
+ :param graph_id: (required)
2374
+ :type graph_id: str
2375
+ :param create_graph_schema_request: (required)
2376
+ :type create_graph_schema_request: CreateGraphSchemaRequest
2377
+ :param _request_timeout: timeout setting for this request. If one
2378
+ number provided, it will be total request
2379
+ timeout. It can also be a pair (tuple) of
2380
+ (connection, read) timeouts.
2381
+ :type _request_timeout: int, tuple(int, int), optional
2382
+ :param _request_auth: set to override the auth_settings for an a single
2383
+ request; this effectively ignores the
2384
+ authentication in the spec for a single request.
2385
+ :type _request_auth: dict, optional
2386
+ :param _content_type: force content-type for the request.
2387
+ :type _content_type: str, Optional
2388
+ :param _headers: set to override the headers for a single
2389
+ request; this effectively ignores the headers
2390
+ in the spec for a single request.
2391
+ :type _headers: dict, optional
2392
+ :param _host_index: set to override the host_index for a single
2393
+ request; this effectively ignores the host_index
2394
+ in the spec for a single request.
2395
+ :type _host_index: int, optional
2396
+ :return: Returns the result object.
2397
+ """ # noqa: E501
2398
+
2399
+ _param = self._import_schema_by_id_serialize(
2400
+ graph_id=graph_id,
2401
+ create_graph_schema_request=create_graph_schema_request,
2402
+ _request_auth=_request_auth,
2403
+ _content_type=_content_type,
2404
+ _headers=_headers,
2405
+ _host_index=_host_index
2406
+ )
2407
+
2408
+ _response_types_map: Dict[str, Optional[str]] = {
2409
+ '200': "str",
2410
+ '400': "Error",
2411
+ '500': "Error",
2412
+ }
2413
+ response_data = self.api_client.call_api(
2414
+ *_param,
2415
+ _request_timeout=_request_timeout
2416
+ )
2417
+ response_data.read()
2418
+ return self.api_client.response_deserialize(
2419
+ response_data=response_data,
2420
+ response_types_map=_response_types_map,
2421
+ )
2422
+
2423
+
2424
+ @validate_call
2425
+ def import_schema_by_id_without_preload_content(
2426
+ self,
2427
+ graph_id: StrictStr,
2428
+ create_graph_schema_request: CreateGraphSchemaRequest,
2429
+ _request_timeout: Union[
2430
+ None,
2431
+ Annotated[StrictFloat, Field(gt=0)],
2432
+ Tuple[
2433
+ Annotated[StrictFloat, Field(gt=0)],
2434
+ Annotated[StrictFloat, Field(gt=0)]
2435
+ ]
2436
+ ] = None,
2437
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2438
+ _content_type: Optional[StrictStr] = None,
2439
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2440
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2441
+ ) -> RESTResponseType:
2442
+ """import_schema_by_id
2443
+
2444
+ Import graph schema
2445
+
2446
+ :param graph_id: (required)
2447
+ :type graph_id: str
2448
+ :param create_graph_schema_request: (required)
2449
+ :type create_graph_schema_request: CreateGraphSchemaRequest
2450
+ :param _request_timeout: timeout setting for this request. If one
2451
+ number provided, it will be total request
2452
+ timeout. It can also be a pair (tuple) of
2453
+ (connection, read) timeouts.
2454
+ :type _request_timeout: int, tuple(int, int), optional
2455
+ :param _request_auth: set to override the auth_settings for an a single
2456
+ request; this effectively ignores the
2457
+ authentication in the spec for a single request.
2458
+ :type _request_auth: dict, optional
2459
+ :param _content_type: force content-type for the request.
2460
+ :type _content_type: str, Optional
2461
+ :param _headers: set to override the headers for a single
2462
+ request; this effectively ignores the headers
2463
+ in the spec for a single request.
2464
+ :type _headers: dict, optional
2465
+ :param _host_index: set to override the host_index for a single
2466
+ request; this effectively ignores the host_index
2467
+ in the spec for a single request.
2468
+ :type _host_index: int, optional
2469
+ :return: Returns the result object.
2470
+ """ # noqa: E501
2471
+
2472
+ _param = self._import_schema_by_id_serialize(
2473
+ graph_id=graph_id,
2474
+ create_graph_schema_request=create_graph_schema_request,
2475
+ _request_auth=_request_auth,
2476
+ _content_type=_content_type,
2477
+ _headers=_headers,
2478
+ _host_index=_host_index
2479
+ )
2480
+
2481
+ _response_types_map: Dict[str, Optional[str]] = {
2482
+ '200': "str",
2483
+ '400': "Error",
2484
+ '500': "Error",
2485
+ }
2486
+ response_data = self.api_client.call_api(
2487
+ *_param,
2488
+ _request_timeout=_request_timeout
2489
+ )
2490
+ return response_data.response
2491
+
2492
+
2493
+ def _import_schema_by_id_serialize(
2494
+ self,
2495
+ graph_id,
2496
+ create_graph_schema_request,
2497
+ _request_auth,
2498
+ _content_type,
2499
+ _headers,
2500
+ _host_index,
2501
+ ) -> RequestSerialized:
2502
+
2503
+ _host = None
2504
+
2505
+ _collection_formats: Dict[str, str] = {
2506
+ }
2507
+
2508
+ _path_params: Dict[str, str] = {}
2509
+ _query_params: List[Tuple[str, str]] = []
2510
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2511
+ _form_params: List[Tuple[str, str]] = []
2512
+ _files: Dict[str, Union[str, bytes]] = {}
2513
+ _body_params: Optional[bytes] = None
2514
+
2515
+ # process the path parameters
2516
+ if graph_id is not None:
2517
+ _path_params['graph_id'] = graph_id
2518
+ # process the query parameters
2519
+ # process the header parameters
2520
+ # process the form parameters
2521
+ # process the body parameter
2522
+ if create_graph_schema_request is not None:
2523
+ _body_params = create_graph_schema_request
2524
+
2525
+
2526
+ # set the HTTP header `Accept`
2527
+ if 'Accept' not in _header_params:
2528
+ _header_params['Accept'] = self.api_client.select_header_accept(
2529
+ [
2530
+ 'application/json'
2531
+ ]
2532
+ )
2533
+
2534
+ # set the HTTP header `Content-Type`
2535
+ if _content_type:
2536
+ _header_params['Content-Type'] = _content_type
2537
+ else:
2538
+ _default_content_type = (
2539
+ self.api_client.select_header_content_type(
2540
+ [
2541
+ 'application/json'
2542
+ ]
2543
+ )
2544
+ )
2545
+ if _default_content_type is not None:
2546
+ _header_params['Content-Type'] = _default_content_type
2547
+
2548
+ # authentication setting
2549
+ _auth_settings: List[str] = [
2550
+ ]
2551
+
2552
+ return self.api_client.param_serialize(
2553
+ method='POST',
2554
+ resource_path='/api/v1/graph/{graph_id}/schema',
1961
2555
  path_params=_path_params,
1962
2556
  query_params=_query_params,
1963
2557
  header_params=_header_params,
@@ -1988,7 +2582,7 @@ class GraphApi:
1988
2582
  _content_type: Optional[StrictStr] = None,
1989
2583
  _headers: Optional[Dict[StrictStr, Any]] = None,
1990
2584
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1991
- ) -> List[Graph]:
2585
+ ) -> List[GetGraphResponse]:
1992
2586
  """list_graphs
1993
2587
 
1994
2588
  List all graphs
@@ -2023,7 +2617,8 @@ class GraphApi:
2023
2617
  )
2024
2618
 
2025
2619
  _response_types_map: Dict[str, Optional[str]] = {
2026
- '200': "List[Graph]",
2620
+ '200': "List[GetGraphResponse]",
2621
+ '500': "Error",
2027
2622
  }
2028
2623
  response_data = self.api_client.call_api(
2029
2624
  *_param,
@@ -2051,7 +2646,7 @@ class GraphApi:
2051
2646
  _content_type: Optional[StrictStr] = None,
2052
2647
  _headers: Optional[Dict[StrictStr, Any]] = None,
2053
2648
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2054
- ) -> ApiResponse[List[Graph]]:
2649
+ ) -> ApiResponse[List[GetGraphResponse]]:
2055
2650
  """list_graphs
2056
2651
 
2057
2652
  List all graphs
@@ -2086,7 +2681,8 @@ class GraphApi:
2086
2681
  )
2087
2682
 
2088
2683
  _response_types_map: Dict[str, Optional[str]] = {
2089
- '200': "List[Graph]",
2684
+ '200': "List[GetGraphResponse]",
2685
+ '500': "Error",
2090
2686
  }
2091
2687
  response_data = self.api_client.call_api(
2092
2688
  *_param,
@@ -2149,7 +2745,8 @@ class GraphApi:
2149
2745
  )
2150
2746
 
2151
2747
  _response_types_map: Dict[str, Optional[str]] = {
2152
- '200': "List[Graph]",
2748
+ '200': "List[GetGraphResponse]",
2749
+ '500': "Error",
2153
2750
  }
2154
2751
  response_data = self.api_client.call_api(
2155
2752
  *_param,
@@ -2175,7 +2772,7 @@ class GraphApi:
2175
2772
  _query_params: List[Tuple[str, str]] = []
2176
2773
  _header_params: Dict[str, Optional[str]] = _headers or {}
2177
2774
  _form_params: List[Tuple[str, str]] = []
2178
- _files: Dict[str, str] = {}
2775
+ _files: Dict[str, Union[str, bytes]] = {}
2179
2776
  _body_params: Optional[bytes] = None
2180
2777
 
2181
2778
  # process the path parameters
@@ -2186,11 +2783,12 @@ class GraphApi:
2186
2783
 
2187
2784
 
2188
2785
  # set the HTTP header `Accept`
2189
- _header_params['Accept'] = self.api_client.select_header_accept(
2190
- [
2191
- 'application/json'
2192
- ]
2193
- )
2786
+ if 'Accept' not in _header_params:
2787
+ _header_params['Accept'] = self.api_client.select_header_accept(
2788
+ [
2789
+ 'application/json'
2790
+ ]
2791
+ )
2194
2792
 
2195
2793
 
2196
2794
  # authentication setting