graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.29.0a20250115__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- graphscope/flex/rest/__init__.py +59 -44
- graphscope/flex/rest/api/__init__.py +2 -4
- graphscope/flex/rest/api/alert_api.py +721 -394
- graphscope/flex/rest/api/{legacy_api.py → data_source_api.py} +260 -189
- graphscope/flex/rest/api/deployment_api.py +388 -138
- graphscope/flex/rest/api/graph_api.py +858 -260
- graphscope/flex/rest/api/job_api.py +286 -203
- graphscope/flex/rest/api/service_api.py +320 -39
- graphscope/flex/rest/api/{procedure_api.py → stored_procedure_api.py} +296 -237
- graphscope/flex/rest/api/utils_api.py +18 -13
- graphscope/flex/rest/api_client.py +60 -30
- graphscope/flex/rest/configuration.py +19 -5
- graphscope/flex/rest/exceptions.py +2 -2
- graphscope/flex/rest/models/__init__.py +57 -40
- graphscope/flex/rest/models/{vertex_type.py → base_edge_type.py} +25 -25
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner.py → base_edge_type_vertex_type_pair_relations_inner.py} +17 -17
- graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner_x_csr_params.py → base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py} +11 -11
- graphscope/flex/rest/models/{model_property.py → base_property_meta.py} +28 -19
- graphscope/flex/rest/models/base_vertex_type.py +96 -0
- graphscope/flex/rest/models/{procedure_params_inner.py → base_vertex_type_x_csr_params.py} +15 -17
- graphscope/flex/rest/models/column_mapping.py +13 -13
- graphscope/flex/rest/models/{edge_mapping_source_vertex_mappings_inner_column.py → column_mapping_column.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config_data_source.py → create_alert_receiver_request.py} +29 -24
- graphscope/flex/rest/models/{alert_rule.py → create_alert_rule_request.py} +19 -25
- graphscope/flex/rest/models/create_dataloading_job_response.py +88 -0
- graphscope/flex/rest/models/create_edge_type.py +114 -0
- graphscope/flex/rest/models/{graph.py → create_graph_request.py} +27 -33
- graphscope/flex/rest/models/create_graph_response.py +88 -0
- graphscope/flex/rest/models/{model_schema.py → create_graph_schema_request.py} +25 -25
- graphscope/flex/rest/models/{groot_vertex_type.py → create_property_meta.py} +32 -25
- graphscope/flex/rest/models/{graph_stored_procedures.py → create_stored_proc_request.py} +26 -23
- graphscope/flex/rest/models/create_stored_proc_response.py +88 -0
- graphscope/flex/rest/models/create_vertex_type.py +108 -0
- graphscope/flex/rest/models/{groot_dataloading_job_config.py → dataloading_job_config.py} +45 -21
- graphscope/flex/rest/models/{groot_dataloading_job_config_edges_inner.py → dataloading_job_config_edges_inner.py} +12 -12
- graphscope/flex/rest/models/{schema_mapping_loading_config.py → dataloading_job_config_loading_config.py} +16 -22
- graphscope/flex/rest/models/{schema_mapping_loading_config_format.py → dataloading_job_config_loading_config_format.py} +12 -12
- graphscope/flex/rest/models/{groot_edge_type_relations_inner.py → dataloading_job_config_vertices_inner.py} +15 -17
- graphscope/flex/rest/models/dataloading_mr_job_config.py +88 -0
- graphscope/flex/rest/models/date_type.py +88 -0
- graphscope/flex/rest/models/edge_mapping.py +23 -25
- graphscope/flex/rest/models/edge_mapping_type_triplet.py +12 -12
- graphscope/flex/rest/models/error.py +90 -0
- graphscope/flex/rest/models/{alert_message.py → get_alert_message_response.py} +23 -32
- graphscope/flex/rest/models/{alert_receiver.py → get_alert_receiver_response.py} +22 -25
- graphscope/flex/rest/models/{connection_status.py → get_alert_rule_response.py} +37 -33
- graphscope/flex/rest/models/{edge_type.py → get_edge_type.py} +33 -27
- graphscope/flex/rest/models/get_graph_response.py +139 -0
- graphscope/flex/rest/models/{groot_schema.py → get_graph_schema_response.py} +32 -32
- graphscope/flex/rest/models/get_pod_log_response.py +88 -0
- graphscope/flex/rest/models/{edge_mapping_destination_vertex_mappings_inner.py → get_property_meta.py} +34 -19
- graphscope/flex/rest/models/get_resource_usage_response.py +105 -0
- graphscope/flex/rest/models/get_storage_usage_response.py +88 -0
- graphscope/flex/rest/models/{procedure.py → get_stored_proc_response.py} +37 -36
- graphscope/flex/rest/models/{groot_edge_type.py → get_vertex_type.py} +33 -31
- graphscope/flex/rest/models/gs_data_type.py +152 -0
- graphscope/flex/rest/models/job_status.py +14 -17
- graphscope/flex/rest/models/{connection.py → long_text.py} +20 -15
- graphscope/flex/rest/models/node_status.py +15 -15
- graphscope/flex/rest/models/parameter.py +96 -0
- graphscope/flex/rest/models/{deployment_info_graphs_info_value.py → pod_status.py} +34 -20
- graphscope/flex/rest/models/{property_property_type.py → primitive_type.py} +16 -19
- graphscope/flex/rest/models/resource_usage.py +92 -0
- graphscope/flex/rest/models/{deployment_info.py → running_deployment_info.py} +42 -45
- graphscope/flex/rest/models/running_deployment_status.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +18 -26
- graphscope/flex/rest/models/service_status.py +29 -13
- graphscope/flex/rest/models/service_status_sdk_endpoints.py +8 -8
- graphscope/flex/rest/models/start_service_request.py +11 -11
- graphscope/flex/rest/models/{groot_graph.py → stored_procedure_meta.py} +46 -36
- graphscope/flex/rest/models/string_type.py +92 -0
- graphscope/flex/rest/models/string_type_string.py +124 -0
- graphscope/flex/rest/models/temporal_type.py +92 -0
- graphscope/flex/rest/models/temporal_type_temporal.py +138 -0
- graphscope/flex/rest/models/time_stamp_type.py +88 -0
- graphscope/flex/rest/models/update_alert_message_status_request.py +97 -0
- graphscope/flex/rest/models/update_stored_proc_request.py +88 -0
- graphscope/flex/rest/models/upload_file_response.py +90 -0
- graphscope/flex/rest/models/vertex_mapping.py +13 -13
- graphscope/flex/rest/rest.py +4 -2
- graphscope_flex-0.29.0a20250115.dist-info/METADATA +19 -0
- graphscope_flex-0.29.0a20250115.dist-info/RECORD +86 -0
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250115.dist-info}/WHEEL +1 -1
- graphscope/flex/rest/api/connection_api.py +0 -550
- graphscope/flex/rest/api/datasource_api.py +0 -2308
- graphscope/flex/rest/models/data_source.py +0 -106
- graphscope/flex/rest/models/deployment_status.py +0 -108
- graphscope/flex/rest/models/edge_data_source.py +0 -112
- graphscope/flex/rest/models/edge_mapping_source_vertex_mappings_inner.py +0 -92
- graphscope/flex/rest/models/groot_graph_gremlin_interface.py +0 -94
- graphscope/flex/rest/models/groot_property.py +0 -104
- graphscope/flex/rest/models/update_alert_messages_request.py +0 -110
- graphscope/flex/rest/models/vertex_data_source.py +0 -104
- graphscope_flex-0.27.0.dist-info/METADATA +0 -17
- graphscope_flex-0.27.0.dist-info/RECORD +0 -71
- {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.29.0a20250115.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
|
|
3
3
|
"""
|
4
4
|
GraphScope FLEX HTTP SERVICE API
|
5
5
|
|
6
|
-
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
6
|
+
This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: graphscope@alibaba-inc.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -18,20 +18,20 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, StrictStr, field_validator
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
-
from graphscope.flex.rest.models.
|
23
|
+
from graphscope.flex.rest.models.base_edge_type_vertex_type_pair_relations_inner_x_csr_params import BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams
|
24
24
|
from typing import Optional, Set
|
25
25
|
from typing_extensions import Self
|
26
26
|
|
27
|
-
class
|
27
|
+
class BaseEdgeTypeVertexTypePairRelationsInner(BaseModel):
|
28
28
|
"""
|
29
|
-
|
29
|
+
BaseEdgeTypeVertexTypePairRelationsInner
|
30
30
|
""" # noqa: E501
|
31
|
-
source_vertex:
|
32
|
-
destination_vertex:
|
31
|
+
source_vertex: StrictStr
|
32
|
+
destination_vertex: StrictStr
|
33
33
|
relation: Optional[StrictStr] = None
|
34
|
-
x_csr_params: Optional[
|
34
|
+
x_csr_params: Optional[BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams] = None
|
35
35
|
__properties: ClassVar[List[str]] = ["source_vertex", "destination_vertex", "relation", "x_csr_params"]
|
36
36
|
|
37
37
|
@field_validator('relation')
|
@@ -44,11 +44,11 @@ class EdgeTypeVertexTypePairRelationsInner(BaseModel):
|
|
44
44
|
raise ValueError("must be one of enum values ('MANY_TO_MANY', 'ONE_TO_MANY', 'MANY_TO_ONE', 'ONE_TO_ONE')")
|
45
45
|
return value
|
46
46
|
|
47
|
-
model_config =
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
model_config = ConfigDict(
|
48
|
+
populate_by_name=True,
|
49
|
+
validate_assignment=True,
|
50
|
+
protected_namespaces=(),
|
51
|
+
)
|
52
52
|
|
53
53
|
|
54
54
|
def to_str(self) -> str:
|
@@ -62,7 +62,7 @@ class EdgeTypeVertexTypePairRelationsInner(BaseModel):
|
|
62
62
|
|
63
63
|
@classmethod
|
64
64
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
65
|
-
"""Create an instance of
|
65
|
+
"""Create an instance of BaseEdgeTypeVertexTypePairRelationsInner from a JSON string"""
|
66
66
|
return cls.from_dict(json.loads(json_str))
|
67
67
|
|
68
68
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -90,7 +90,7 @@ class EdgeTypeVertexTypePairRelationsInner(BaseModel):
|
|
90
90
|
|
91
91
|
@classmethod
|
92
92
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
93
|
-
"""Create an instance of
|
93
|
+
"""Create an instance of BaseEdgeTypeVertexTypePairRelationsInner from a dict"""
|
94
94
|
if obj is None:
|
95
95
|
return None
|
96
96
|
|
@@ -101,7 +101,7 @@ class EdgeTypeVertexTypePairRelationsInner(BaseModel):
|
|
101
101
|
"source_vertex": obj.get("source_vertex"),
|
102
102
|
"destination_vertex": obj.get("destination_vertex"),
|
103
103
|
"relation": obj.get("relation"),
|
104
|
-
"x_csr_params":
|
104
|
+
"x_csr_params": BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams.from_dict(obj["x_csr_params"]) if obj.get("x_csr_params") is not None else None
|
105
105
|
})
|
106
106
|
return _obj
|
107
107
|
|
@@ -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,12 +18,12 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, StrictStr, field_validator
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from typing import Optional, Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
|
-
class
|
26
|
+
class BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams(BaseModel):
|
27
27
|
"""
|
28
28
|
Used for storage optimization
|
29
29
|
""" # noqa: E501
|
@@ -40,11 +40,11 @@ class EdgeTypeVertexTypePairRelationsInnerXCsrParams(BaseModel):
|
|
40
40
|
raise ValueError("must be one of enum values ('ONLY_IN', 'ONLY_OUT', 'BOTH_OUT_IN')")
|
41
41
|
return value
|
42
42
|
|
43
|
-
model_config =
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
model_config = ConfigDict(
|
44
|
+
populate_by_name=True,
|
45
|
+
validate_assignment=True,
|
46
|
+
protected_namespaces=(),
|
47
|
+
)
|
48
48
|
|
49
49
|
|
50
50
|
def to_str(self) -> str:
|
@@ -58,7 +58,7 @@ class EdgeTypeVertexTypePairRelationsInnerXCsrParams(BaseModel):
|
|
58
58
|
|
59
59
|
@classmethod
|
60
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
61
|
-
"""Create an instance of
|
61
|
+
"""Create an instance of BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams from a JSON string"""
|
62
62
|
return cls.from_dict(json.loads(json_str))
|
63
63
|
|
64
64
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -83,7 +83,7 @@ class EdgeTypeVertexTypePairRelationsInnerXCsrParams(BaseModel):
|
|
83
83
|
|
84
84
|
@classmethod
|
85
85
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
86
|
-
"""Create an instance of
|
86
|
+
"""Create an instance of BaseEdgeTypeVertexTypePairRelationsInnerXCsrParams from a dict"""
|
87
87
|
if obj is None:
|
88
88
|
return None
|
89
89
|
|
@@ -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,26 +18,28 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel,
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
-
from graphscope.flex.rest.models.
|
23
|
+
from graphscope.flex.rest.models.gs_data_type import GSDataType
|
24
24
|
from typing import Optional, Set
|
25
25
|
from typing_extensions import Self
|
26
26
|
|
27
|
-
class
|
27
|
+
class BasePropertyMeta(BaseModel):
|
28
28
|
"""
|
29
|
-
|
29
|
+
BasePropertyMeta
|
30
30
|
""" # noqa: E501
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
property_name: StrictStr
|
32
|
+
property_type: GSDataType
|
33
|
+
nullable: Optional[StrictBool] = None
|
34
|
+
default_value: Optional[Any] = None
|
35
|
+
description: Optional[StrictStr] = None
|
36
|
+
__properties: ClassVar[List[str]] = ["property_name", "property_type", "nullable", "default_value", "description"]
|
35
37
|
|
36
|
-
model_config =
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
model_config = ConfigDict(
|
39
|
+
populate_by_name=True,
|
40
|
+
validate_assignment=True,
|
41
|
+
protected_namespaces=(),
|
42
|
+
)
|
41
43
|
|
42
44
|
|
43
45
|
def to_str(self) -> str:
|
@@ -51,7 +53,7 @@ class ModelProperty(BaseModel):
|
|
51
53
|
|
52
54
|
@classmethod
|
53
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
54
|
-
"""Create an instance of
|
56
|
+
"""Create an instance of BasePropertyMeta from a JSON string"""
|
55
57
|
return cls.from_dict(json.loads(json_str))
|
56
58
|
|
57
59
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -75,11 +77,16 @@ class ModelProperty(BaseModel):
|
|
75
77
|
# override the default output from pydantic by calling `to_dict()` of property_type
|
76
78
|
if self.property_type:
|
77
79
|
_dict['property_type'] = self.property_type.to_dict()
|
80
|
+
# set to None if default_value (nullable) is None
|
81
|
+
# and model_fields_set contains the field
|
82
|
+
if self.default_value is None and "default_value" in self.model_fields_set:
|
83
|
+
_dict['default_value'] = None
|
84
|
+
|
78
85
|
return _dict
|
79
86
|
|
80
87
|
@classmethod
|
81
88
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
82
|
-
"""Create an instance of
|
89
|
+
"""Create an instance of BasePropertyMeta from a dict"""
|
83
90
|
if obj is None:
|
84
91
|
return None
|
85
92
|
|
@@ -87,9 +94,11 @@ class ModelProperty(BaseModel):
|
|
87
94
|
return cls.model_validate(obj)
|
88
95
|
|
89
96
|
_obj = cls.model_validate({
|
90
|
-
"property_id": obj.get("property_id"),
|
91
97
|
"property_name": obj.get("property_name"),
|
92
|
-
"property_type":
|
98
|
+
"property_type": GSDataType.from_dict(obj["property_type"]) if obj.get("property_type") is not None else None,
|
99
|
+
"nullable": obj.get("nullable"),
|
100
|
+
"default_value": obj.get("default_value"),
|
101
|
+
"description": obj.get("description")
|
93
102
|
})
|
94
103
|
return _obj
|
95
104
|
|
@@ -0,0 +1,96 @@
|
|
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, Optional
|
23
|
+
from graphscope.flex.rest.models.base_vertex_type_x_csr_params import BaseVertexTypeXCsrParams
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class BaseVertexType(BaseModel):
|
28
|
+
"""
|
29
|
+
BaseVertexType
|
30
|
+
""" # noqa: E501
|
31
|
+
type_name: StrictStr
|
32
|
+
primary_keys: List[StrictStr]
|
33
|
+
x_csr_params: Optional[BaseVertexTypeXCsrParams] = None
|
34
|
+
__properties: ClassVar[List[str]] = ["type_name", "primary_keys", "x_csr_params"]
|
35
|
+
|
36
|
+
model_config = ConfigDict(
|
37
|
+
populate_by_name=True,
|
38
|
+
validate_assignment=True,
|
39
|
+
protected_namespaces=(),
|
40
|
+
)
|
41
|
+
|
42
|
+
|
43
|
+
def to_str(self) -> str:
|
44
|
+
"""Returns the string representation of the model using alias"""
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
46
|
+
|
47
|
+
def to_json(self) -> str:
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
54
|
+
"""Create an instance of BaseVertexType from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
59
|
+
|
60
|
+
This has the following differences from calling pydantic's
|
61
|
+
`self.model_dump(by_alias=True)`:
|
62
|
+
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
64
|
+
were set at model initialization. Other fields with value `None`
|
65
|
+
are ignored.
|
66
|
+
"""
|
67
|
+
excluded_fields: Set[str] = set([
|
68
|
+
])
|
69
|
+
|
70
|
+
_dict = self.model_dump(
|
71
|
+
by_alias=True,
|
72
|
+
exclude=excluded_fields,
|
73
|
+
exclude_none=True,
|
74
|
+
)
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of x_csr_params
|
76
|
+
if self.x_csr_params:
|
77
|
+
_dict['x_csr_params'] = self.x_csr_params.to_dict()
|
78
|
+
return _dict
|
79
|
+
|
80
|
+
@classmethod
|
81
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
82
|
+
"""Create an instance of BaseVertexType from a dict"""
|
83
|
+
if obj is None:
|
84
|
+
return None
|
85
|
+
|
86
|
+
if not isinstance(obj, dict):
|
87
|
+
return cls.model_validate(obj)
|
88
|
+
|
89
|
+
_obj = cls.model_validate({
|
90
|
+
"type_name": obj.get("type_name"),
|
91
|
+
"primary_keys": obj.get("primary_keys"),
|
92
|
+
"x_csr_params": BaseVertexTypeXCsrParams.from_dict(obj["x_csr_params"]) if obj.get("x_csr_params") is not None else None
|
93
|
+
})
|
94
|
+
return _obj
|
95
|
+
|
96
|
+
|
@@ -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,24 +18,23 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel,
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from typing import Optional, Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
|
-
class
|
26
|
+
class BaseVertexTypeXCsrParams(BaseModel):
|
27
27
|
"""
|
28
|
-
|
28
|
+
Used for storage optimization
|
29
29
|
""" # noqa: E501
|
30
|
-
|
31
|
-
|
32
|
-
__properties: ClassVar[List[str]] = ["name", "type"]
|
30
|
+
max_vertex_num: Optional[StrictInt] = None
|
31
|
+
__properties: ClassVar[List[str]] = ["max_vertex_num"]
|
33
32
|
|
34
|
-
model_config =
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
model_config = ConfigDict(
|
34
|
+
populate_by_name=True,
|
35
|
+
validate_assignment=True,
|
36
|
+
protected_namespaces=(),
|
37
|
+
)
|
39
38
|
|
40
39
|
|
41
40
|
def to_str(self) -> str:
|
@@ -49,7 +48,7 @@ class ProcedureParamsInner(BaseModel):
|
|
49
48
|
|
50
49
|
@classmethod
|
51
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
-
"""Create an instance of
|
51
|
+
"""Create an instance of BaseVertexTypeXCsrParams from a JSON string"""
|
53
52
|
return cls.from_dict(json.loads(json_str))
|
54
53
|
|
55
54
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -74,7 +73,7 @@ class ProcedureParamsInner(BaseModel):
|
|
74
73
|
|
75
74
|
@classmethod
|
76
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
77
|
-
"""Create an instance of
|
76
|
+
"""Create an instance of BaseVertexTypeXCsrParams from a dict"""
|
78
77
|
if obj is None:
|
79
78
|
return None
|
80
79
|
|
@@ -82,8 +81,7 @@ class ProcedureParamsInner(BaseModel):
|
|
82
81
|
return cls.model_validate(obj)
|
83
82
|
|
84
83
|
_obj = cls.model_validate({
|
85
|
-
"
|
86
|
-
"type": obj.get("type")
|
84
|
+
"max_vertex_num": obj.get("max_vertex_num")
|
87
85
|
})
|
88
86
|
return _obj
|
89
87
|
|
@@ -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,9 +18,9 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, Field, StrictStr
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
23
|
-
from graphscope.flex.rest.models.
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from graphscope.flex.rest.models.column_mapping_column import ColumnMappingColumn
|
24
24
|
from typing import Optional, Set
|
25
25
|
from typing_extensions import Self
|
26
26
|
|
@@ -28,15 +28,15 @@ class ColumnMapping(BaseModel):
|
|
28
28
|
"""
|
29
29
|
ColumnMapping
|
30
30
|
""" # noqa: E501
|
31
|
-
column:
|
32
|
-
var_property:
|
31
|
+
column: ColumnMappingColumn
|
32
|
+
var_property: StrictStr = Field(description="must align with the schema", alias="property")
|
33
33
|
__properties: ClassVar[List[str]] = ["column", "property"]
|
34
34
|
|
35
|
-
model_config =
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
model_config = ConfigDict(
|
36
|
+
populate_by_name=True,
|
37
|
+
validate_assignment=True,
|
38
|
+
protected_namespaces=(),
|
39
|
+
)
|
40
40
|
|
41
41
|
|
42
42
|
def to_str(self) -> str:
|
@@ -86,7 +86,7 @@ class ColumnMapping(BaseModel):
|
|
86
86
|
return cls.model_validate(obj)
|
87
87
|
|
88
88
|
_obj = cls.model_validate({
|
89
|
-
"column":
|
89
|
+
"column": ColumnMappingColumn.from_dict(obj["column"]) if obj.get("column") is not None else None,
|
90
90
|
"property": obj.get("property")
|
91
91
|
})
|
92
92
|
return _obj
|
@@ -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,24 +18,24 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, StrictInt, StrictStr
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from typing import Optional, Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
|
-
class
|
26
|
+
class ColumnMappingColumn(BaseModel):
|
27
27
|
"""
|
28
|
-
|
28
|
+
ColumnMappingColumn
|
29
29
|
""" # noqa: E501
|
30
30
|
index: Optional[StrictInt] = None
|
31
31
|
name: Optional[StrictStr] = None
|
32
32
|
__properties: ClassVar[List[str]] = ["index", "name"]
|
33
33
|
|
34
|
-
model_config =
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
model_config = ConfigDict(
|
35
|
+
populate_by_name=True,
|
36
|
+
validate_assignment=True,
|
37
|
+
protected_namespaces=(),
|
38
|
+
)
|
39
39
|
|
40
40
|
|
41
41
|
def to_str(self) -> str:
|
@@ -49,7 +49,7 @@ class EdgeMappingSourceVertexMappingsInnerColumn(BaseModel):
|
|
49
49
|
|
50
50
|
@classmethod
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
-
"""Create an instance of
|
52
|
+
"""Create an instance of ColumnMappingColumn from a JSON string"""
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
54
54
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -74,7 +74,7 @@ class EdgeMappingSourceVertexMappingsInnerColumn(BaseModel):
|
|
74
74
|
|
75
75
|
@classmethod
|
76
76
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
77
|
-
"""Create an instance of
|
77
|
+
"""Create an instance of ColumnMappingColumn from a dict"""
|
78
78
|
if obj is None:
|
79
79
|
return None
|
80
80
|
|
@@ -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,33 +18,34 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, StrictStr, field_validator
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
23
|
from typing import Optional, Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
|
-
class
|
26
|
+
class CreateAlertReceiverRequest(BaseModel):
|
27
27
|
"""
|
28
|
-
|
28
|
+
CreateAlertReceiverRequest
|
29
29
|
""" # noqa: E501
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
type: StrictStr
|
31
|
+
webhook_url: StrictStr
|
32
|
+
at_user_ids: List[StrictStr]
|
33
|
+
is_at_all: StrictBool
|
34
|
+
enable: StrictBool
|
35
|
+
__properties: ClassVar[List[str]] = ["type", "webhook_url", "at_user_ids", "is_at_all", "enable"]
|
36
|
+
|
37
|
+
@field_validator('type')
|
38
|
+
def type_validate_enum(cls, value):
|
35
39
|
"""Validates the enum"""
|
36
|
-
if value
|
37
|
-
|
38
|
-
|
39
|
-
if value not in set(['file']):
|
40
|
-
raise ValueError("must be one of enum values ('file')")
|
40
|
+
if value not in set(['webhook']):
|
41
|
+
raise ValueError("must be one of enum values ('webhook')")
|
41
42
|
return value
|
42
43
|
|
43
|
-
model_config =
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
model_config = ConfigDict(
|
45
|
+
populate_by_name=True,
|
46
|
+
validate_assignment=True,
|
47
|
+
protected_namespaces=(),
|
48
|
+
)
|
48
49
|
|
49
50
|
|
50
51
|
def to_str(self) -> str:
|
@@ -58,7 +59,7 @@ class SchemaMappingLoadingConfigDataSource(BaseModel):
|
|
58
59
|
|
59
60
|
@classmethod
|
60
61
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
61
|
-
"""Create an instance of
|
62
|
+
"""Create an instance of CreateAlertReceiverRequest from a JSON string"""
|
62
63
|
return cls.from_dict(json.loads(json_str))
|
63
64
|
|
64
65
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -83,7 +84,7 @@ class SchemaMappingLoadingConfigDataSource(BaseModel):
|
|
83
84
|
|
84
85
|
@classmethod
|
85
86
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
86
|
-
"""Create an instance of
|
87
|
+
"""Create an instance of CreateAlertReceiverRequest from a dict"""
|
87
88
|
if obj is None:
|
88
89
|
return None
|
89
90
|
|
@@ -91,7 +92,11 @@ class SchemaMappingLoadingConfigDataSource(BaseModel):
|
|
91
92
|
return cls.model_validate(obj)
|
92
93
|
|
93
94
|
_obj = cls.model_validate({
|
94
|
-
"
|
95
|
+
"type": obj.get("type"),
|
96
|
+
"webhook_url": obj.get("webhook_url"),
|
97
|
+
"at_user_ids": obj.get("at_user_ids"),
|
98
|
+
"is_at_all": obj.get("is_at_all"),
|
99
|
+
"enable": obj.get("enable")
|
95
100
|
})
|
96
101
|
return _obj
|
97
102
|
|