graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.28.0a20240920__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.
- graphscope/flex/rest/__init__.py +59 -44
- graphscope/flex/rest/api/__init__.py +2 -4
- graphscope/flex/rest/api/alert_api.py +721 -394
- graphscope/flex/rest/api/{legacy_api.py → data_source_api.py} +260 -189
- graphscope/flex/rest/api/deployment_api.py +388 -138
- graphscope/flex/rest/api/graph_api.py +858 -260
- graphscope/flex/rest/api/job_api.py +286 -203
- graphscope/flex/rest/api/service_api.py +320 -39
- graphscope/flex/rest/api/{procedure_api.py → stored_procedure_api.py} +296 -237
- graphscope/flex/rest/api/utils_api.py +18 -13
- graphscope/flex/rest/api_client.py +60 -30
- graphscope/flex/rest/configuration.py +19 -5
- graphscope/flex/rest/exceptions.py +2 -2
- graphscope/flex/rest/models/__init__.py +57 -40
- graphscope/flex/rest/models/{vertex_type.py → base_edge_type.py} +25 -25
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner.py → base_edge_type_vertex_type_pair_relations_inner.py} +17 -17
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner_x_csr_params.py → base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py} +11 -11
- graphscope/flex/rest/models/{model_property.py → base_property_meta.py} +28 -19
- graphscope/flex/rest/models/base_vertex_type.py +96 -0
- graphscope/flex/rest/models/{groot_edge_type_relations_inner.py → base_vertex_type_x_csr_params.py} +15 -17
- graphscope/flex/rest/models/column_mapping.py +13 -13
- graphscope/flex/rest/models/{edge_mapping_source_vertex_mappings_inner_column.py → column_mapping_column.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config_data_source.py → create_alert_receiver_request.py} +29 -24
- graphscope/flex/rest/models/{alert_rule.py → create_alert_rule_request.py} +19 -25
- graphscope/flex/rest/models/create_dataloading_job_response.py +88 -0
- graphscope/flex/rest/models/create_edge_type.py +114 -0
- graphscope/flex/rest/models/{graph.py → create_graph_request.py} +27 -33
- graphscope/flex/rest/models/create_graph_response.py +88 -0
- graphscope/flex/rest/models/{model_schema.py → create_graph_schema_request.py} +25 -25
- graphscope/flex/rest/models/{groot_vertex_type.py → create_property_meta.py} +32 -25
- graphscope/flex/rest/models/{graph_stored_procedures.py → create_stored_proc_request.py} +26 -23
- graphscope/flex/rest/models/create_stored_proc_response.py +88 -0
- graphscope/flex/rest/models/create_vertex_type.py +108 -0
- graphscope/flex/rest/models/{groot_dataloading_job_config.py → dataloading_job_config.py} +45 -21
- graphscope/flex/rest/models/{groot_dataloading_job_config_edges_inner.py → dataloading_job_config_edges_inner.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config.py → dataloading_job_config_loading_config.py} +16 -22
- graphscope/flex/rest/models/{schema_mapping_loading_config_format.py → dataloading_job_config_loading_config_format.py} +12 -12
- graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py +88 -0
- graphscope/flex/rest/models/dataloading_mr_job_config.py +88 -0
- graphscope/flex/rest/models/date_type.py +88 -0
- graphscope/flex/rest/models/edge_mapping.py +23 -25
- graphscope/flex/rest/models/edge_mapping_type_triplet.py +12 -12
- graphscope/flex/rest/models/error.py +90 -0
- graphscope/flex/rest/models/{alert_message.py → get_alert_message_response.py} +23 -32
- graphscope/flex/rest/models/{alert_receiver.py → get_alert_receiver_response.py} +22 -25
- graphscope/flex/rest/models/{connection_status.py → get_alert_rule_response.py} +37 -33
- graphscope/flex/rest/models/{edge_type.py → get_edge_type.py} +33 -27
- graphscope/flex/rest/models/get_graph_response.py +139 -0
- graphscope/flex/rest/models/{groot_schema.py → get_graph_schema_response.py} +32 -32
- graphscope/flex/rest/models/get_pod_log_response.py +88 -0
- graphscope/flex/rest/models/{edge_mapping_destination_vertex_mappings_inner.py → get_property_meta.py} +34 -19
- graphscope/flex/rest/models/get_resource_usage_response.py +105 -0
- graphscope/flex/rest/models/get_storage_usage_response.py +88 -0
- graphscope/flex/rest/models/{procedure.py → get_stored_proc_response.py} +37 -36
- graphscope/flex/rest/models/{groot_edge_type.py → get_vertex_type.py} +33 -31
- graphscope/flex/rest/models/gs_data_type.py +152 -0
- graphscope/flex/rest/models/job_status.py +14 -17
- graphscope/flex/rest/models/{connection.py → long_text.py} +20 -15
- graphscope/flex/rest/models/node_status.py +15 -15
- graphscope/flex/rest/models/{procedure_params_inner.py → parameter.py} +20 -16
- graphscope/flex/rest/models/{deployment_info_graphs_info_value.py → pod_status.py} +34 -20
- graphscope/flex/rest/models/{property_property_type.py → primitive_type.py} +16 -19
- graphscope/flex/rest/models/resource_usage.py +92 -0
- graphscope/flex/rest/models/{deployment_info.py → running_deployment_info.py} +42 -45
- graphscope/flex/rest/models/running_deployment_status.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +18 -26
- graphscope/flex/rest/models/service_status.py +22 -13
- graphscope/flex/rest/models/service_status_sdk_endpoints.py +8 -8
- graphscope/flex/rest/models/start_service_request.py +11 -11
- graphscope/flex/rest/models/{groot_graph.py → stored_procedure_meta.py} +46 -36
- graphscope/flex/rest/models/string_type.py +92 -0
- graphscope/flex/rest/models/string_type_string.py +124 -0
- graphscope/flex/rest/models/temporal_type.py +92 -0
- graphscope/flex/rest/models/temporal_type_temporal.py +138 -0
- graphscope/flex/rest/models/time_stamp_type.py +88 -0
- graphscope/flex/rest/models/update_alert_message_status_request.py +97 -0
- graphscope/flex/rest/models/update_stored_proc_request.py +88 -0
- graphscope/flex/rest/models/upload_file_response.py +90 -0
- graphscope/flex/rest/models/vertex_mapping.py +13 -13
- graphscope/flex/rest/rest.py +4 -2
- graphscope_flex-0.28.0a20240920.dist-info/METADATA +19 -0
- graphscope_flex-0.28.0a20240920.dist-info/RECORD +86 -0
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.28.0a20240920.dist-info}/WHEEL +1 -1
- graphscope/flex/rest/api/connection_api.py +0 -550
- graphscope/flex/rest/api/datasource_api.py +0 -2308
- graphscope/flex/rest/models/data_source.py +0 -106
- graphscope/flex/rest/models/deployment_status.py +0 -108
- graphscope/flex/rest/models/edge_data_source.py +0 -112
- graphscope/flex/rest/models/edge_mapping_source_vertex_mappings_inner.py +0 -92
- graphscope/flex/rest/models/groot_graph_gremlin_interface.py +0 -94
- graphscope/flex/rest/models/groot_property.py +0 -104
- graphscope/flex/rest/models/update_alert_messages_request.py +0 -110
- graphscope/flex/rest/models/vertex_data_source.py +0 -104
- graphscope_flex-0.27.0.dist-info/METADATA +0 -17
- graphscope_flex-0.27.0.dist-info/RECORD +0 -71
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.28.0a20240920.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
GraphScope FLEX HTTP SERVICE API
|
5
|
+
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: graphscope@alibaba-inc.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class TimeStampType(BaseModel):
|
27
|
+
"""
|
28
|
+
TimeStampType
|
29
|
+
""" # noqa: E501
|
30
|
+
timestamp: StrictStr
|
31
|
+
__properties: ClassVar[List[str]] = ["timestamp"]
|
32
|
+
|
33
|
+
model_config = ConfigDict(
|
34
|
+
populate_by_name=True,
|
35
|
+
validate_assignment=True,
|
36
|
+
protected_namespaces=(),
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
51
|
+
"""Create an instance of TimeStampType from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
56
|
+
|
57
|
+
This has the following differences from calling pydantic's
|
58
|
+
`self.model_dump(by_alias=True)`:
|
59
|
+
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
61
|
+
were set at model initialization. Other fields with value `None`
|
62
|
+
are ignored.
|
63
|
+
"""
|
64
|
+
excluded_fields: Set[str] = set([
|
65
|
+
])
|
66
|
+
|
67
|
+
_dict = self.model_dump(
|
68
|
+
by_alias=True,
|
69
|
+
exclude=excluded_fields,
|
70
|
+
exclude_none=True,
|
71
|
+
)
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
76
|
+
"""Create an instance of TimeStampType from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return cls.model_validate(obj)
|
82
|
+
|
83
|
+
_obj = cls.model_validate({
|
84
|
+
"timestamp": obj.get("timestamp")
|
85
|
+
})
|
86
|
+
return _obj
|
87
|
+
|
88
|
+
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
GraphScope FLEX HTTP SERVICE API
|
5
|
+
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: graphscope@alibaba-inc.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class UpdateAlertMessageStatusRequest(BaseModel):
|
27
|
+
"""
|
28
|
+
UpdateAlertMessageStatusRequest
|
29
|
+
""" # noqa: E501
|
30
|
+
message_ids: List[StrictStr]
|
31
|
+
status: StrictStr
|
32
|
+
__properties: ClassVar[List[str]] = ["message_ids", "status"]
|
33
|
+
|
34
|
+
@field_validator('status')
|
35
|
+
def status_validate_enum(cls, value):
|
36
|
+
"""Validates the enum"""
|
37
|
+
if value not in set(['unsolved', 'solved', 'dealing']):
|
38
|
+
raise ValueError("must be one of enum values ('unsolved', 'solved', 'dealing')")
|
39
|
+
return value
|
40
|
+
|
41
|
+
model_config = ConfigDict(
|
42
|
+
populate_by_name=True,
|
43
|
+
validate_assignment=True,
|
44
|
+
protected_namespaces=(),
|
45
|
+
)
|
46
|
+
|
47
|
+
|
48
|
+
def to_str(self) -> str:
|
49
|
+
"""Returns the string representation of the model using alias"""
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
51
|
+
|
52
|
+
def to_json(self) -> str:
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
55
|
+
return json.dumps(self.to_dict())
|
56
|
+
|
57
|
+
@classmethod
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
59
|
+
"""Create an instance of UpdateAlertMessageStatusRequest from a JSON string"""
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
61
|
+
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
64
|
+
|
65
|
+
This has the following differences from calling pydantic's
|
66
|
+
`self.model_dump(by_alias=True)`:
|
67
|
+
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
69
|
+
were set at model initialization. Other fields with value `None`
|
70
|
+
are ignored.
|
71
|
+
"""
|
72
|
+
excluded_fields: Set[str] = set([
|
73
|
+
])
|
74
|
+
|
75
|
+
_dict = self.model_dump(
|
76
|
+
by_alias=True,
|
77
|
+
exclude=excluded_fields,
|
78
|
+
exclude_none=True,
|
79
|
+
)
|
80
|
+
return _dict
|
81
|
+
|
82
|
+
@classmethod
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
84
|
+
"""Create an instance of UpdateAlertMessageStatusRequest from a dict"""
|
85
|
+
if obj is None:
|
86
|
+
return None
|
87
|
+
|
88
|
+
if not isinstance(obj, dict):
|
89
|
+
return cls.model_validate(obj)
|
90
|
+
|
91
|
+
_obj = cls.model_validate({
|
92
|
+
"message_ids": obj.get("message_ids"),
|
93
|
+
"status": obj.get("status")
|
94
|
+
})
|
95
|
+
return _obj
|
96
|
+
|
97
|
+
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
GraphScope FLEX HTTP SERVICE API
|
5
|
+
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: graphscope@alibaba-inc.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class UpdateStoredProcRequest(BaseModel):
|
27
|
+
"""
|
28
|
+
UpdateStoredProcRequest
|
29
|
+
""" # noqa: E501
|
30
|
+
description: StrictStr
|
31
|
+
__properties: ClassVar[List[str]] = ["description"]
|
32
|
+
|
33
|
+
model_config = ConfigDict(
|
34
|
+
populate_by_name=True,
|
35
|
+
validate_assignment=True,
|
36
|
+
protected_namespaces=(),
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
51
|
+
"""Create an instance of UpdateStoredProcRequest from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
56
|
+
|
57
|
+
This has the following differences from calling pydantic's
|
58
|
+
`self.model_dump(by_alias=True)`:
|
59
|
+
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
61
|
+
were set at model initialization. Other fields with value `None`
|
62
|
+
are ignored.
|
63
|
+
"""
|
64
|
+
excluded_fields: Set[str] = set([
|
65
|
+
])
|
66
|
+
|
67
|
+
_dict = self.model_dump(
|
68
|
+
by_alias=True,
|
69
|
+
exclude=excluded_fields,
|
70
|
+
exclude_none=True,
|
71
|
+
)
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
76
|
+
"""Create an instance of UpdateStoredProcRequest from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return cls.model_validate(obj)
|
82
|
+
|
83
|
+
_obj = cls.model_validate({
|
84
|
+
"description": obj.get("description")
|
85
|
+
})
|
86
|
+
return _obj
|
87
|
+
|
88
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
GraphScope FLEX HTTP SERVICE API
|
5
|
+
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: graphscope@alibaba-inc.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class UploadFileResponse(BaseModel):
|
27
|
+
"""
|
28
|
+
UploadFileResponse
|
29
|
+
""" # noqa: E501
|
30
|
+
file_path: StrictStr
|
31
|
+
metadata: Dict[str, Any]
|
32
|
+
__properties: ClassVar[List[str]] = ["file_path", "metadata"]
|
33
|
+
|
34
|
+
model_config = ConfigDict(
|
35
|
+
populate_by_name=True,
|
36
|
+
validate_assignment=True,
|
37
|
+
protected_namespaces=(),
|
38
|
+
)
|
39
|
+
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
+
"""Create an instance of UploadFileResponse from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
57
|
+
|
58
|
+
This has the following differences from calling pydantic's
|
59
|
+
`self.model_dump(by_alias=True)`:
|
60
|
+
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
62
|
+
were set at model initialization. Other fields with value `None`
|
63
|
+
are ignored.
|
64
|
+
"""
|
65
|
+
excluded_fields: Set[str] = set([
|
66
|
+
])
|
67
|
+
|
68
|
+
_dict = self.model_dump(
|
69
|
+
by_alias=True,
|
70
|
+
exclude=excluded_fields,
|
71
|
+
exclude_none=True,
|
72
|
+
)
|
73
|
+
return _dict
|
74
|
+
|
75
|
+
@classmethod
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
77
|
+
"""Create an instance of UploadFileResponse from a dict"""
|
78
|
+
if obj is None:
|
79
|
+
return None
|
80
|
+
|
81
|
+
if not isinstance(obj, dict):
|
82
|
+
return cls.model_validate(obj)
|
83
|
+
|
84
|
+
_obj = cls.model_validate({
|
85
|
+
"file_path": obj.get("file_path"),
|
86
|
+
"metadata": obj.get("metadata")
|
87
|
+
})
|
88
|
+
return _obj
|
89
|
+
|
90
|
+
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
GraphScope FLEX HTTP SERVICE API
|
5
5
|
|
6
|
-
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: graphscope@alibaba-inc.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, StrictStr
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from graphscope.flex.rest.models.column_mapping import ColumnMapping
|
24
24
|
from typing import Optional, Set
|
@@ -28,16 +28,16 @@ class VertexMapping(BaseModel):
|
|
28
28
|
"""
|
29
29
|
VertexMapping
|
30
30
|
""" # noqa: E501
|
31
|
-
type_name:
|
32
|
-
inputs:
|
31
|
+
type_name: StrictStr
|
32
|
+
inputs: List[StrictStr]
|
33
33
|
column_mappings: Optional[List[ColumnMapping]] = None
|
34
34
|
__properties: ClassVar[List[str]] = ["type_name", "inputs", "column_mappings"]
|
35
35
|
|
36
|
-
model_config =
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
model_config = ConfigDict(
|
37
|
+
populate_by_name=True,
|
38
|
+
validate_assignment=True,
|
39
|
+
protected_namespaces=(),
|
40
|
+
)
|
41
41
|
|
42
42
|
|
43
43
|
def to_str(self) -> str:
|
@@ -75,9 +75,9 @@ class VertexMapping(BaseModel):
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of each item in column_mappings (list)
|
76
76
|
_items = []
|
77
77
|
if self.column_mappings:
|
78
|
-
for
|
79
|
-
if
|
80
|
-
_items.append(
|
78
|
+
for _item_column_mappings in self.column_mappings:
|
79
|
+
if _item_column_mappings:
|
80
|
+
_items.append(_item_column_mappings.to_dict())
|
81
81
|
_dict['column_mappings'] = _items
|
82
82
|
return _dict
|
83
83
|
|
graphscope/flex/rest/rest.py
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
GraphScope FLEX HTTP SERVICE API
|
5
5
|
|
6
|
-
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: graphscope@alibaba-inc.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -203,6 +203,8 @@ class RESTClientObject:
|
|
203
203
|
# Content-Type which generated by urllib3 will be
|
204
204
|
# overwritten.
|
205
205
|
del headers['Content-Type']
|
206
|
+
# Ensures that dict objects are serialized
|
207
|
+
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
|
206
208
|
r = self.pool_manager.request(
|
207
209
|
method,
|
208
210
|
url,
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: graphscope-flex
|
3
|
+
Version: 0.28.0a20240920
|
4
|
+
Summary: GraphScope FLEX HTTP SERVICE API
|
5
|
+
Home-page: UNKNOWN
|
6
|
+
Author: GraphScope
|
7
|
+
Author-email: graphscope@alibaba-inc.com
|
8
|
+
License: Apache 2.0
|
9
|
+
Keywords: OpenAPI,OpenAPI-Generator,GraphScope FLEX HTTP SERVICE API
|
10
|
+
Platform: UNKNOWN
|
11
|
+
Description-Content-Type: text/markdown
|
12
|
+
Requires-Dist: pydantic (>=2)
|
13
|
+
Requires-Dist: python-dateutil
|
14
|
+
Requires-Dist: typing-extensions (>=4.7.1)
|
15
|
+
Requires-Dist: urllib3 (<2.1.0,>=1.25.3)
|
16
|
+
|
17
|
+
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)
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
graphscope/flex/rest/__init__.py,sha256=uB8IK6tJ6_8oKXUWN3HLWJyGWMTDpw0M4tac4gp45u0,6980
|
2
|
+
graphscope/flex/rest/api_client.py,sha256=qFdq28_SBFTfsVFJ5Z4DTyTs2sadjuhPyDv8JzZcBuM,27262
|
3
|
+
graphscope/flex/rest/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
|
+
graphscope/flex/rest/configuration.py,sha256=_ZKuBejSgZ5h1thYjlrkW4Q2C4DxWBu2RBxSrCYPBY0,15202
|
5
|
+
graphscope/flex/rest/exceptions.py,sha256=Q4HnUVb5hgCnv3Hf04prlDA16mgGtl2P3jjv3fTLfp0,6125
|
6
|
+
graphscope/flex/rest/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
+
graphscope/flex/rest/rest.py,sha256=rv_LvYBWgekOZ_eqRgxu4X1qsqBfspNZHFK5p4Fa_54,9567
|
8
|
+
graphscope/flex/rest/api/__init__.py,sha256=1Pr4pEIgZpc8u3gBkpU586OKwiSD69eXm5t2DBbqLjE,538
|
9
|
+
graphscope/flex/rest/api/alert_api.py,sha256=4w3dk97Tv9fKgCWL5ic7qtgBrXUpCEcLmm_20Gqa10U,107476
|
10
|
+
graphscope/flex/rest/api/data_source_api.py,sha256=vJMmHOCGGLsNdlO6fbwTuwdsmOmghxcwVHKkeDv3Mkg,44065
|
11
|
+
graphscope/flex/rest/api/deployment_api.py,sha256=gKqQDZkuj15vz-t_VkTRlZh3vLQ9eY7zmjoPGOFAcH4,50183
|
12
|
+
graphscope/flex/rest/api/graph_api.py,sha256=hfPar1_YLAVxm6-lFJO_qSKe8lH9I2C-Dqbaim9YFGA,105740
|
13
|
+
graphscope/flex/rest/api/job_api.py,sha256=lsO9saRJcG8MUVnqZf4X2aPWgrDHRp0XghDz-pvyAGs,53133
|
14
|
+
graphscope/flex/rest/api/service_api.py,sha256=TQCuEGHi6of0vNFk7PI7FqYLq6ebvr6xa4ZzLLjlBbg,49333
|
15
|
+
graphscope/flex/rest/api/stored_procedure_api.py,sha256=XBrUn2mmdMJGMAp7eTZP1FWW_7Eyl-YhbF35uURa4n8,56039
|
16
|
+
graphscope/flex/rest/api/utils_api.py,sha256=KlhSFvzC6lY7zQRpxRPYziSJJBiv1UAXGFoMeLqdALc,11567
|
17
|
+
graphscope/flex/rest/models/__init__.py,sha256=LHYfVDcGKqiiU_NegtUs3-EAs_8n001KIE2NRIKdMUM,5892
|
18
|
+
graphscope/flex/rest/models/base_edge_type.py,sha256=xfTQOL2pkehwGloJzyHk9K0kxdn63QVYbO7JB_XbHXQ,3791
|
19
|
+
graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py,sha256=Y73pxB8bL89kIyBs20fPTGTRM2iRrWYOzLFvmYdttxE,4005
|
20
|
+
graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py,sha256=zCg2CeAd9GRFZQFJPcsfocvp8HpUDEZpG6ySCNkBaFM,3237
|
21
|
+
graphscope/flex/rest/models/base_property_meta.py,sha256=vXj6-aPiw8jM5cf_gc4h8VOjBODpsbPIVtmSiOIaW84,3670
|
22
|
+
graphscope/flex/rest/models/base_vertex_type.py,sha256=2qG-tBORAT_bj4wnn8nVMD6_SFZM0h4gk_BEiMcYM-I,3248
|
23
|
+
graphscope/flex/rest/models/base_vertex_type_x_csr_params.py,sha256=lI6-svDybC7cidLhdiB2FaGzPzzXGDV38CMfs0f7Ni8,2737
|
24
|
+
graphscope/flex/rest/models/column_mapping.py,sha256=LCL3F5BteM_iGSXpyfc0SvWsXQFWdKoNt5y0f4azUW8,3112
|
25
|
+
graphscope/flex/rest/models/column_mapping_column.py,sha256=ZRdhvWF5CMOSd1ld2vGd5LeGL0Qxaar4useA6AFvTpA,2769
|
26
|
+
graphscope/flex/rest/models/create_alert_receiver_request.py,sha256=DSUf5W9Jsx_ebnanvnuvThqHE_BE2vG0CPZnLrBe6Wk,3291
|
27
|
+
graphscope/flex/rest/models/create_alert_rule_request.py,sha256=wYDDQF01UcPV6sFTh4Y76TLgv_vr4iFf2UIbtRRXIzM,3742
|
28
|
+
graphscope/flex/rest/models/create_dataloading_job_response.py,sha256=eZw0S98207k2UC61yXVG5t6UWFFTnHgPHyrsn7_-m1c,2689
|
29
|
+
graphscope/flex/rest/models/create_edge_type.py,sha256=g1KPaXSExy4XDJUTvxxpIv2yAp35Ep6gYXJqunMMUNk,4554
|
30
|
+
graphscope/flex/rest/models/create_graph_request.py,sha256=g6y8wmYj5aQxZ0gpbJvh86bMyemsROHVmyMbexfhFQc,4016
|
31
|
+
graphscope/flex/rest/models/create_graph_response.py,sha256=SfcSLuhgITzbHyou7OoZYlTqbnPD1AmEoUlWdXN8yHs,2661
|
32
|
+
graphscope/flex/rest/models/create_graph_schema_request.py,sha256=enP-VDsxQy32KUf49STDfJTF8O4yGlKyiWBvsn4eqzM,3845
|
33
|
+
graphscope/flex/rest/models/create_property_meta.py,sha256=3owIeBuV0haPvZrPO_vt8_ZoUVISua4oR3ZjLgfFKgg,3678
|
34
|
+
graphscope/flex/rest/models/create_stored_proc_request.py,sha256=DNoDrq7FzIubvAgwwB8RW-4_dA2REMv9LG17kzOY-js,3181
|
35
|
+
graphscope/flex/rest/models/create_stored_proc_response.py,sha256=_wEYpuwGrhH7LL5Ei_nI46FmleNwzo8f92oA58BYiMc,2725
|
36
|
+
graphscope/flex/rest/models/create_vertex_type.py,sha256=36CYb0bQG-l7OFUqmomhBSGDgGsZAauyH9DfTp1IJ3g,3994
|
37
|
+
graphscope/flex/rest/models/dataloading_job_config.py,sha256=_nPFxbgfPlDIlOM6flOJ3UCxcsck2nL-jog903J_lVo,5419
|
38
|
+
graphscope/flex/rest/models/dataloading_job_config_edges_inner.py,sha256=cfrsIU5NHQ9P9u-9D5oskltJ4s4Mq5diveQJXbRtYfs,2992
|
39
|
+
graphscope/flex/rest/models/dataloading_job_config_loading_config.py,sha256=YK-CrWdFSFegZtQYmeixLAkVW1emw9r1b8kYMu0OptQ,3604
|
40
|
+
graphscope/flex/rest/models/dataloading_job_config_loading_config_format.py,sha256=cRHS1goBrNpgOYufl7Ur7CYZmb9xrEXBg2vz3K5wDVo,2855
|
41
|
+
graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py,sha256=gEfwEHIEhh4aYZnLynNS4Lmi6-tkS4SSrMQmg1TXR6E,2748
|
42
|
+
graphscope/flex/rest/models/dataloading_mr_job_config.py,sha256=fYXKVXJCMu7Rxf-cETSXKKVaPkiuwIk3zJf4BhMhSTE,2665
|
43
|
+
graphscope/flex/rest/models/date_type.py,sha256=8j9akUQgHmvuMSxF-pgVDF6eqGVJZm7Z6c8rCPa6hzI,2609
|
44
|
+
graphscope/flex/rest/models/edge_mapping.py,sha256=4Ceyv250mLGlBpFUPE18r5pN6831LbAlUWGVeSPyJb4,5242
|
45
|
+
graphscope/flex/rest/models/edge_mapping_type_triplet.py,sha256=YVKiywXgUjjc1eQ0yCvtWnXJ7xWyu9nLTxHqydb1RsY,2906
|
46
|
+
graphscope/flex/rest/models/error.py,sha256=g34p4t5gh_q_6sAubP9oDT74Iw75DabUJFF-R3Hrssg,2755
|
47
|
+
graphscope/flex/rest/models/get_alert_message_response.py,sha256=Cv3AySfdljOcAm2PWrTsgMgevEQyPfuoM7IPC44XQtA,4137
|
48
|
+
graphscope/flex/rest/models/get_alert_receiver_response.py,sha256=Y4vdnG58EuF63SliOEyGaE4PMIus05PYgWfC3o1a0mo,3486
|
49
|
+
graphscope/flex/rest/models/get_alert_rule_response.py,sha256=l_1iAz2j_zQLZxt38fqxhyty6cT8b61GUkBChYVWNio,3791
|
50
|
+
graphscope/flex/rest/models/get_edge_type.py,sha256=uM1trIUNzjZTjPVVdgM84HrKUatlO_gYNz-emiZjnEU,4635
|
51
|
+
graphscope/flex/rest/models/get_graph_response.py,sha256=1JwXdSyrTV5gFzTKYpn-WNr-hT2qTISt8PIRhXvXNPA,5370
|
52
|
+
graphscope/flex/rest/models/get_graph_schema_response.py,sha256=Czki53A1kgl6UU56K3AuVA6HuWEQEyaP-tBsSRdwZYc,3813
|
53
|
+
graphscope/flex/rest/models/get_pod_log_response.py,sha256=ChEvC5dMJJT9En00G0b_RQIgeg11sLS2gWgnIOWQhWA,2627
|
54
|
+
graphscope/flex/rest/models/get_property_meta.py,sha256=gIz3t4DKvCvWchSTfpzEULTDuciJQWm-dtLPzKLptC0,3770
|
55
|
+
graphscope/flex/rest/models/get_resource_usage_response.py,sha256=qdbay1sUd37Hp7E_OKnblqCh6-hZsQVmR856Fez6Gm4,3746
|
56
|
+
graphscope/flex/rest/models/get_storage_usage_response.py,sha256=as1gPHIVgwRI0ulEQowJgGH8T0V5SJtyR_XOeKwFfc0,2748
|
57
|
+
graphscope/flex/rest/models/get_stored_proc_response.py,sha256=3F4jRAgrP81yygpdXQhdN_-W70ZHCrLjYY2PRiW3gs0,4625
|
58
|
+
graphscope/flex/rest/models/get_vertex_type.py,sha256=DORL5o-7Iwxra4Sv2EgMK1kYWoHkUmJ-P5X29w8Kcl8,4075
|
59
|
+
graphscope/flex/rest/models/gs_data_type.py,sha256=zJTN7jXXA2VuUJlgLoWdznVYpP1y4PDIzJUQOWZDjeY,6096
|
60
|
+
graphscope/flex/rest/models/job_status.py,sha256=WpU_xVM1Z2hOPZWccCrlL_TOeS6fMSktpfPs-BfbdZ8,3533
|
61
|
+
graphscope/flex/rest/models/long_text.py,sha256=YRJfsN24WuZneJO_jTyrAN9ngg9cQVif-0geyKgctSU,2860
|
62
|
+
graphscope/flex/rest/models/node_status.py,sha256=dp6o_ipwJFQ-5NOY3VaI2AJaGfheDX-ToHe2OIF1m-Q,2971
|
63
|
+
graphscope/flex/rest/models/parameter.py,sha256=ef3f3SrpEMYsPNpb3L00CMvYA2Jb3UTv1LUFFyZ5ngs,2947
|
64
|
+
graphscope/flex/rest/models/pod_status.py,sha256=ZozN_gDRncNTfjeHkJvpw9aZqwoDkPCVYoOJrGRyQCA,3545
|
65
|
+
graphscope/flex/rest/models/primitive_type.py,sha256=lMYTvPdWdxPmMUHb0Ww58DTEuKjvoKjOqxwADxdovXs,3145
|
66
|
+
graphscope/flex/rest/models/resource_usage.py,sha256=NSLJoQZqLsc_v51fdTqNHm9ha9DPm-F05GCsen2-2WA,2775
|
67
|
+
graphscope/flex/rest/models/running_deployment_info.py,sha256=uuZrUZsiEqEMrrYn4DSLx3IYLVgWBz_ZV_nRT5Q2pdM,4332
|
68
|
+
graphscope/flex/rest/models/running_deployment_status.py,sha256=oSeuCNJs6gt7KqwoNS46PBD-tDZrJDJNGc1Yxri7SDI,4418
|
69
|
+
graphscope/flex/rest/models/schema_mapping.py,sha256=RCWJbEI2Xulj6L9g4vxtvYugYLpOIr9H55jduCGru30,3847
|
70
|
+
graphscope/flex/rest/models/service_status.py,sha256=aGy0rqXxk98QjcWq2P7T17H3CIoz5SqX8D3DxccPhx8,3607
|
71
|
+
graphscope/flex/rest/models/service_status_sdk_endpoints.py,sha256=_8Od6Ef5XUMt-5wXiHI4DquVfDJ2g6qr43ilHJ0dTXc,2962
|
72
|
+
graphscope/flex/rest/models/start_service_request.py,sha256=KEN52dtpVV55NLFYE2iA2G8WolUz1QYi9nw8HhPZQf4,2688
|
73
|
+
graphscope/flex/rest/models/stored_procedure_meta.py,sha256=3z7HRvf50IVG9y8dQLecTEpAlI2gw4_96EuOtSHDrV0,4430
|
74
|
+
graphscope/flex/rest/models/string_type.py,sha256=Ke-71FTHH3XOmMRo9UMDR8QOX2ScfRPMXZszUfgHPow,2917
|
75
|
+
graphscope/flex/rest/models/string_type_string.py,sha256=-F1aCGpz3kvuZqgJ3FUsZiXrx-i-KMSUMaeSPkMs70k,4627
|
76
|
+
graphscope/flex/rest/models/temporal_type.py,sha256=MTEK96uJx3PPESh1PA-k2CxWSlsJPsWykGbQ4UDGNm8,2959
|
77
|
+
graphscope/flex/rest/models/temporal_type_temporal.py,sha256=2NXLQX7jK8VSROp0rSdrpuBazgrYMp6lVI1oERM2Dlk,5410
|
78
|
+
graphscope/flex/rest/models/time_stamp_type.py,sha256=yHHMi6osQ7fMEi3b6YaAEgcr_6x2Lg3fe5mAFgTmaiI,2641
|
79
|
+
graphscope/flex/rest/models/update_alert_message_status_request.py,sha256=sgQshrtHj_pXxur6j48c8SxiLBBTZO7d7wrgLv0MKF4,3102
|
80
|
+
graphscope/flex/rest/models/update_stored_proc_request.py,sha256=kugg4ir3lpWhu9lV2epP-qRujHNXRwklUP-GsqDnBsk,2689
|
81
|
+
graphscope/flex/rest/models/upload_file_response.py,sha256=-fMN6KfHporMNSSVIqbs0JvFofkDvcNIg9PXRFoGj8Y,2747
|
82
|
+
graphscope/flex/rest/models/vertex_mapping.py,sha256=v0ILNhsCqjdSoYGNP7-2XQkF0viSx1Mszd8RTWtearA,3414
|
83
|
+
graphscope_flex-0.28.0a20240920.dist-info/METADATA,sha256=QKFzVvK9N_aqoUr8Y2IoWiz1hyMSTER6JYgLIfsGHjQ,882
|
84
|
+
graphscope_flex-0.28.0a20240920.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
85
|
+
graphscope_flex-0.28.0a20240920.dist-info/top_level.txt,sha256=_6VvFKT8k3gGfOyNYDHGabL2O-Xzhfm87uy3kVRzWV0,11
|
86
|
+
graphscope_flex-0.28.0a20240920.dist-info/RECORD,,
|