graphscope-flex 0.31.0a20250210__py2.py3-none-any.whl → 0.31.0a20250212__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 +5 -0
- graphscope/flex/rest/models/__init__.py +5 -0
- graphscope/flex/rest/models/date_type.py +13 -5
- graphscope/flex/rest/models/fixed_char.py +92 -0
- graphscope/flex/rest/models/fixed_char_char.py +88 -0
- graphscope/flex/rest/models/string_type_string.py +36 -8
- graphscope/flex/rest/models/time_stamp_type.py +13 -5
- graphscope/flex/rest/models/typed_value.py +99 -0
- graphscope/flex/rest/models/var_char.py +92 -0
- graphscope/flex/rest/models/var_char_var_char.py +88 -0
- {graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/METADATA +1 -1
- {graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/RECORD +14 -9
- {graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/WHEEL +0 -0
- {graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/top_level.txt +0 -0
graphscope/flex/rest/__init__.py
CHANGED
@@ -68,6 +68,8 @@ from graphscope.flex.rest.models.date_type import DateType
|
|
68
68
|
from graphscope.flex.rest.models.edge_mapping import EdgeMapping
|
69
69
|
from graphscope.flex.rest.models.edge_mapping_type_triplet import EdgeMappingTypeTriplet
|
70
70
|
from graphscope.flex.rest.models.error import Error
|
71
|
+
from graphscope.flex.rest.models.fixed_char import FixedChar
|
72
|
+
from graphscope.flex.rest.models.fixed_char_char import FixedCharChar
|
71
73
|
from graphscope.flex.rest.models.gs_data_type import GSDataType
|
72
74
|
from graphscope.flex.rest.models.get_alert_message_response import GetAlertMessageResponse
|
73
75
|
from graphscope.flex.rest.models.get_alert_receiver_response import GetAlertReceiverResponse
|
@@ -100,7 +102,10 @@ from graphscope.flex.rest.models.string_type_string import StringTypeString
|
|
100
102
|
from graphscope.flex.rest.models.temporal_type import TemporalType
|
101
103
|
from graphscope.flex.rest.models.temporal_type_temporal import TemporalTypeTemporal
|
102
104
|
from graphscope.flex.rest.models.time_stamp_type import TimeStampType
|
105
|
+
from graphscope.flex.rest.models.typed_value import TypedValue
|
103
106
|
from graphscope.flex.rest.models.update_alert_message_status_request import UpdateAlertMessageStatusRequest
|
104
107
|
from graphscope.flex.rest.models.update_stored_proc_request import UpdateStoredProcRequest
|
105
108
|
from graphscope.flex.rest.models.upload_file_response import UploadFileResponse
|
109
|
+
from graphscope.flex.rest.models.var_char import VarChar
|
110
|
+
from graphscope.flex.rest.models.var_char_var_char import VarCharVarChar
|
106
111
|
from graphscope.flex.rest.models.vertex_mapping import VertexMapping
|
@@ -44,6 +44,8 @@ from graphscope.flex.rest.models.date_type import DateType
|
|
44
44
|
from graphscope.flex.rest.models.edge_mapping import EdgeMapping
|
45
45
|
from graphscope.flex.rest.models.edge_mapping_type_triplet import EdgeMappingTypeTriplet
|
46
46
|
from graphscope.flex.rest.models.error import Error
|
47
|
+
from graphscope.flex.rest.models.fixed_char import FixedChar
|
48
|
+
from graphscope.flex.rest.models.fixed_char_char import FixedCharChar
|
47
49
|
from graphscope.flex.rest.models.gs_data_type import GSDataType
|
48
50
|
from graphscope.flex.rest.models.get_alert_message_response import GetAlertMessageResponse
|
49
51
|
from graphscope.flex.rest.models.get_alert_receiver_response import GetAlertReceiverResponse
|
@@ -76,7 +78,10 @@ from graphscope.flex.rest.models.string_type_string import StringTypeString
|
|
76
78
|
from graphscope.flex.rest.models.temporal_type import TemporalType
|
77
79
|
from graphscope.flex.rest.models.temporal_type_temporal import TemporalTypeTemporal
|
78
80
|
from graphscope.flex.rest.models.time_stamp_type import TimeStampType
|
81
|
+
from graphscope.flex.rest.models.typed_value import TypedValue
|
79
82
|
from graphscope.flex.rest.models.update_alert_message_status_request import UpdateAlertMessageStatusRequest
|
80
83
|
from graphscope.flex.rest.models.update_stored_proc_request import UpdateStoredProcRequest
|
81
84
|
from graphscope.flex.rest.models.upload_file_response import UploadFileResponse
|
85
|
+
from graphscope.flex.rest.models.var_char import VarChar
|
86
|
+
from graphscope.flex.rest.models.var_char_var_char import VarCharVarChar
|
82
87
|
from graphscope.flex.rest.models.vertex_mapping import VertexMapping
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
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
|
|
@@ -27,13 +27,14 @@ class DateType(BaseModel):
|
|
27
27
|
"""
|
28
28
|
DateType
|
29
29
|
""" # noqa: E501
|
30
|
-
date32: StrictStr
|
30
|
+
date32: Optional[StrictStr]
|
31
31
|
__properties: ClassVar[List[str]] = ["date32"]
|
32
32
|
|
33
33
|
model_config = ConfigDict(
|
34
34
|
populate_by_name=True,
|
35
35
|
validate_assignment=True,
|
36
36
|
protected_namespaces=(),
|
37
|
+
extra="forbid",
|
37
38
|
)
|
38
39
|
|
39
40
|
|
@@ -69,6 +70,11 @@ class DateType(BaseModel):
|
|
69
70
|
exclude=excluded_fields,
|
70
71
|
exclude_none=True,
|
71
72
|
)
|
73
|
+
# set to None if date32 (nullable) is None
|
74
|
+
# and model_fields_set contains the field
|
75
|
+
if self.date32 is None and "date32" in self.model_fields_set:
|
76
|
+
_dict['date32'] = None
|
77
|
+
|
72
78
|
return _dict
|
73
79
|
|
74
80
|
@classmethod
|
@@ -80,9 +86,11 @@ class DateType(BaseModel):
|
|
80
86
|
if not isinstance(obj, dict):
|
81
87
|
return cls.model_validate(obj)
|
82
88
|
|
89
|
+
for key in obj:
|
90
|
+
if key not in cls.__properties:
|
91
|
+
raise ValueError(f"Unexpected field {key} for DateType")
|
92
|
+
|
83
93
|
_obj = cls.model_validate({
|
84
94
|
"date32": obj.get("date32")
|
85
95
|
})
|
86
|
-
return _obj
|
87
|
-
|
88
|
-
|
96
|
+
return _obj
|
@@ -0,0 +1,92 @@
|
|
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
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from graphscope.flex.rest.models.fixed_char_char import FixedCharChar
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class FixedChar(BaseModel):
|
28
|
+
"""
|
29
|
+
FixedChar
|
30
|
+
""" # noqa: E501
|
31
|
+
char: FixedCharChar
|
32
|
+
__properties: ClassVar[List[str]] = ["char"]
|
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 FixedChar 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
|
+
# override the default output from pydantic by calling `to_dict()` of char
|
74
|
+
if self.char:
|
75
|
+
_dict['char'] = self.char.to_dict()
|
76
|
+
return _dict
|
77
|
+
|
78
|
+
@classmethod
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
80
|
+
"""Create an instance of FixedChar from a dict"""
|
81
|
+
if obj is None:
|
82
|
+
return None
|
83
|
+
|
84
|
+
if not isinstance(obj, dict):
|
85
|
+
return cls.model_validate(obj)
|
86
|
+
|
87
|
+
_obj = cls.model_validate({
|
88
|
+
"char": FixedCharChar.from_dict(obj["char"]) if obj.get("char") is not None else None
|
89
|
+
})
|
90
|
+
return _obj
|
91
|
+
|
92
|
+
|
@@ -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, StrictInt
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class FixedCharChar(BaseModel):
|
27
|
+
"""
|
28
|
+
FixedCharChar
|
29
|
+
""" # noqa: E501
|
30
|
+
fixed_length: StrictInt
|
31
|
+
__properties: ClassVar[List[str]] = ["fixed_length"]
|
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 FixedCharChar 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 FixedCharChar 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
|
+
"fixed_length": obj.get("fixed_length")
|
85
|
+
})
|
86
|
+
return _obj
|
87
|
+
|
88
|
+
|
@@ -18,12 +18,14 @@ import json
|
|
18
18
|
import pprint
|
19
19
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
20
20
|
from typing import Any, List, Optional
|
21
|
+
from graphscope.flex.rest.models.fixed_char import FixedChar
|
21
22
|
from graphscope.flex.rest.models.long_text import LongText
|
23
|
+
from graphscope.flex.rest.models.var_char import VarChar
|
22
24
|
from pydantic import StrictStr, Field
|
23
25
|
from typing import Union, List, Set, Optional, Dict
|
24
26
|
from typing_extensions import Literal, Self
|
25
27
|
|
26
|
-
STRINGTYPESTRING_ONE_OF_SCHEMAS = ["LongText"]
|
28
|
+
STRINGTYPESTRING_ONE_OF_SCHEMAS = ["FixedChar", "LongText", "VarChar"]
|
27
29
|
|
28
30
|
class StringTypeString(BaseModel):
|
29
31
|
"""
|
@@ -31,8 +33,12 @@ class StringTypeString(BaseModel):
|
|
31
33
|
"""
|
32
34
|
# data type: LongText
|
33
35
|
oneof_schema_1_validator: Optional[LongText] = None
|
34
|
-
|
35
|
-
|
36
|
+
# data type: FixedChar
|
37
|
+
oneof_schema_2_validator: Optional[FixedChar] = None
|
38
|
+
# data type: VarChar
|
39
|
+
oneof_schema_3_validator: Optional[VarChar] = None
|
40
|
+
actual_instance: Optional[Union[FixedChar, LongText, VarChar]] = None
|
41
|
+
one_of_schemas: Set[str] = { "FixedChar", "LongText", "VarChar" }
|
36
42
|
|
37
43
|
model_config = ConfigDict(
|
38
44
|
validate_assignment=True,
|
@@ -60,12 +66,22 @@ class StringTypeString(BaseModel):
|
|
60
66
|
error_messages.append(f"Error! Input type `{type(v)}` is not `LongText`")
|
61
67
|
else:
|
62
68
|
match += 1
|
69
|
+
# validate data type: FixedChar
|
70
|
+
if not isinstance(v, FixedChar):
|
71
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `FixedChar`")
|
72
|
+
else:
|
73
|
+
match += 1
|
74
|
+
# validate data type: VarChar
|
75
|
+
if not isinstance(v, VarChar):
|
76
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `VarChar`")
|
77
|
+
else:
|
78
|
+
match += 1
|
63
79
|
if match > 1:
|
64
80
|
# more than 1 match
|
65
|
-
raise ValueError("Multiple matches found when setting `actual_instance` in StringTypeString with oneOf schemas: LongText. Details: " + ", ".join(error_messages))
|
81
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in StringTypeString with oneOf schemas: FixedChar, LongText, VarChar. Details: " + ", ".join(error_messages))
|
66
82
|
elif match == 0:
|
67
83
|
# no match
|
68
|
-
raise ValueError("No match found when setting `actual_instance` in StringTypeString with oneOf schemas: LongText. Details: " + ", ".join(error_messages))
|
84
|
+
raise ValueError("No match found when setting `actual_instance` in StringTypeString with oneOf schemas: FixedChar, LongText, VarChar. Details: " + ", ".join(error_messages))
|
69
85
|
else:
|
70
86
|
return v
|
71
87
|
|
@@ -86,13 +102,25 @@ class StringTypeString(BaseModel):
|
|
86
102
|
match += 1
|
87
103
|
except (ValidationError, ValueError) as e:
|
88
104
|
error_messages.append(str(e))
|
105
|
+
# deserialize data into FixedChar
|
106
|
+
try:
|
107
|
+
instance.actual_instance = FixedChar.from_json(json_str)
|
108
|
+
match += 1
|
109
|
+
except (ValidationError, ValueError) as e:
|
110
|
+
error_messages.append(str(e))
|
111
|
+
# deserialize data into VarChar
|
112
|
+
try:
|
113
|
+
instance.actual_instance = VarChar.from_json(json_str)
|
114
|
+
match += 1
|
115
|
+
except (ValidationError, ValueError) as e:
|
116
|
+
error_messages.append(str(e))
|
89
117
|
|
90
118
|
if match > 1:
|
91
119
|
# more than 1 match
|
92
|
-
raise ValueError("Multiple matches found when deserializing the JSON string into StringTypeString with oneOf schemas: LongText. Details: " + ", ".join(error_messages))
|
120
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into StringTypeString with oneOf schemas: FixedChar, LongText, VarChar. Details: " + ", ".join(error_messages))
|
93
121
|
elif match == 0:
|
94
122
|
# no match
|
95
|
-
raise ValueError("No match found when deserializing the JSON string into StringTypeString with oneOf schemas: LongText. Details: " + ", ".join(error_messages))
|
123
|
+
raise ValueError("No match found when deserializing the JSON string into StringTypeString with oneOf schemas: FixedChar, LongText, VarChar. Details: " + ", ".join(error_messages))
|
96
124
|
else:
|
97
125
|
return instance
|
98
126
|
|
@@ -106,7 +134,7 @@ class StringTypeString(BaseModel):
|
|
106
134
|
else:
|
107
135
|
return json.dumps(self.actual_instance)
|
108
136
|
|
109
|
-
def to_dict(self) -> Optional[Union[Dict[str, Any], LongText]]:
|
137
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], FixedChar, LongText, VarChar]]:
|
110
138
|
"""Returns the dict representation of the actual instance"""
|
111
139
|
if self.actual_instance is None:
|
112
140
|
return None
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
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
|
|
@@ -27,13 +27,14 @@ class TimeStampType(BaseModel):
|
|
27
27
|
"""
|
28
28
|
TimeStampType
|
29
29
|
""" # noqa: E501
|
30
|
-
timestamp: StrictStr
|
30
|
+
timestamp: Optional[StrictStr]
|
31
31
|
__properties: ClassVar[List[str]] = ["timestamp"]
|
32
32
|
|
33
33
|
model_config = ConfigDict(
|
34
34
|
populate_by_name=True,
|
35
35
|
validate_assignment=True,
|
36
36
|
protected_namespaces=(),
|
37
|
+
extra="forbid",
|
37
38
|
)
|
38
39
|
|
39
40
|
|
@@ -69,6 +70,11 @@ class TimeStampType(BaseModel):
|
|
69
70
|
exclude=excluded_fields,
|
70
71
|
exclude_none=True,
|
71
72
|
)
|
73
|
+
# set to None if timestamp (nullable) is None
|
74
|
+
# and model_fields_set contains the field
|
75
|
+
if self.timestamp is None and "timestamp" in self.model_fields_set:
|
76
|
+
_dict['timestamp'] = None
|
77
|
+
|
72
78
|
return _dict
|
73
79
|
|
74
80
|
@classmethod
|
@@ -79,10 +85,12 @@ class TimeStampType(BaseModel):
|
|
79
85
|
|
80
86
|
if not isinstance(obj, dict):
|
81
87
|
return cls.model_validate(obj)
|
88
|
+
|
89
|
+
for key in obj:
|
90
|
+
if key not in cls.__properties:
|
91
|
+
raise ValueError(f"Key {key} is not a valid property for TimeStampType")
|
82
92
|
|
83
93
|
_obj = cls.model_validate({
|
84
94
|
"timestamp": obj.get("timestamp")
|
85
95
|
})
|
86
|
-
return _obj
|
87
|
-
|
88
|
-
|
96
|
+
return _obj
|
@@ -0,0 +1,99 @@
|
|
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
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from graphscope.flex.rest.models.gs_data_type import GSDataType
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class TypedValue(BaseModel):
|
28
|
+
"""
|
29
|
+
TypedValue
|
30
|
+
""" # noqa: E501
|
31
|
+
type: GSDataType
|
32
|
+
value: Optional[Any]
|
33
|
+
__properties: ClassVar[List[str]] = ["type", "value"]
|
34
|
+
|
35
|
+
model_config = ConfigDict(
|
36
|
+
populate_by_name=True,
|
37
|
+
validate_assignment=True,
|
38
|
+
protected_namespaces=(),
|
39
|
+
)
|
40
|
+
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
49
|
+
return json.dumps(self.to_dict())
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
53
|
+
"""Create an instance of TypedValue from a JSON string"""
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
55
|
+
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
58
|
+
|
59
|
+
This has the following differences from calling pydantic's
|
60
|
+
`self.model_dump(by_alias=True)`:
|
61
|
+
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
63
|
+
were set at model initialization. Other fields with value `None`
|
64
|
+
are ignored.
|
65
|
+
"""
|
66
|
+
excluded_fields: Set[str] = set([
|
67
|
+
])
|
68
|
+
|
69
|
+
_dict = self.model_dump(
|
70
|
+
by_alias=True,
|
71
|
+
exclude=excluded_fields,
|
72
|
+
exclude_none=True,
|
73
|
+
)
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of type
|
75
|
+
if self.type:
|
76
|
+
_dict['type'] = self.type.to_dict()
|
77
|
+
# set to None if value (nullable) is None
|
78
|
+
# and model_fields_set contains the field
|
79
|
+
if self.value is None and "value" in self.model_fields_set:
|
80
|
+
_dict['value'] = None
|
81
|
+
|
82
|
+
return _dict
|
83
|
+
|
84
|
+
@classmethod
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
86
|
+
"""Create an instance of TypedValue from a dict"""
|
87
|
+
if obj is None:
|
88
|
+
return None
|
89
|
+
|
90
|
+
if not isinstance(obj, dict):
|
91
|
+
return cls.model_validate(obj)
|
92
|
+
|
93
|
+
_obj = cls.model_validate({
|
94
|
+
"type": GSDataType.from_dict(obj["type"]) if obj.get("type") is not None else None,
|
95
|
+
"value": obj.get("value")
|
96
|
+
})
|
97
|
+
return _obj
|
98
|
+
|
99
|
+
|
@@ -0,0 +1,92 @@
|
|
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
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from graphscope.flex.rest.models.var_char_var_char import VarCharVarChar
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class VarChar(BaseModel):
|
28
|
+
"""
|
29
|
+
VarChar
|
30
|
+
""" # noqa: E501
|
31
|
+
var_char: VarCharVarChar
|
32
|
+
__properties: ClassVar[List[str]] = ["var_char"]
|
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 VarChar 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
|
+
# override the default output from pydantic by calling `to_dict()` of var_char
|
74
|
+
if self.var_char:
|
75
|
+
_dict['var_char'] = self.var_char.to_dict()
|
76
|
+
return _dict
|
77
|
+
|
78
|
+
@classmethod
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
80
|
+
"""Create an instance of VarChar from a dict"""
|
81
|
+
if obj is None:
|
82
|
+
return None
|
83
|
+
|
84
|
+
if not isinstance(obj, dict):
|
85
|
+
return cls.model_validate(obj)
|
86
|
+
|
87
|
+
_obj = cls.model_validate({
|
88
|
+
"var_char": VarCharVarChar.from_dict(obj["var_char"]) if obj.get("var_char") is not None else None
|
89
|
+
})
|
90
|
+
return _obj
|
91
|
+
|
92
|
+
|
@@ -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, StrictInt
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class VarCharVarChar(BaseModel):
|
27
|
+
"""
|
28
|
+
VarCharVarChar
|
29
|
+
""" # noqa: E501
|
30
|
+
max_length: StrictInt
|
31
|
+
__properties: ClassVar[List[str]] = ["max_length"]
|
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 VarCharVarChar 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 VarCharVarChar 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
|
+
"max_length": obj.get("max_length")
|
85
|
+
})
|
86
|
+
return _obj
|
87
|
+
|
88
|
+
|
{graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
graphscope/flex/rest/__init__.py,sha256=
|
1
|
+
graphscope/flex/rest/__init__.py,sha256=DGrUQrcLvMvJ_UJHMpQS2xDf1uvBuaTzuIOe47HCqSA,7304
|
2
2
|
graphscope/flex/rest/api_client.py,sha256=qFdq28_SBFTfsVFJ5Z4DTyTs2sadjuhPyDv8JzZcBuM,27262
|
3
3
|
graphscope/flex/rest/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
4
|
graphscope/flex/rest/configuration.py,sha256=_ZKuBejSgZ5h1thYjlrkW4Q2C4DxWBu2RBxSrCYPBY0,15202
|
@@ -14,7 +14,7 @@ graphscope/flex/rest/api/job_api.py,sha256=lsO9saRJcG8MUVnqZf4X2aPWgrDHRp0XghDz-
|
|
14
14
|
graphscope/flex/rest/api/service_api.py,sha256=TQCuEGHi6of0vNFk7PI7FqYLq6ebvr6xa4ZzLLjlBbg,49333
|
15
15
|
graphscope/flex/rest/api/stored_procedure_api.py,sha256=XBrUn2mmdMJGMAp7eTZP1FWW_7Eyl-YhbF35uURa4n8,56039
|
16
16
|
graphscope/flex/rest/api/utils_api.py,sha256=KlhSFvzC6lY7zQRpxRPYziSJJBiv1UAXGFoMeLqdALc,11567
|
17
|
-
graphscope/flex/rest/models/__init__.py,sha256=
|
17
|
+
graphscope/flex/rest/models/__init__.py,sha256=X-7YG-eDLL_c-NXnW7a1ZtbpR1Usi4atunSMAsgtsLo,6216
|
18
18
|
graphscope/flex/rest/models/base_edge_type.py,sha256=xfTQOL2pkehwGloJzyHk9K0kxdn63QVYbO7JB_XbHXQ,3791
|
19
19
|
graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py,sha256=Y73pxB8bL89kIyBs20fPTGTRM2iRrWYOzLFvmYdttxE,4005
|
20
20
|
graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py,sha256=zCg2CeAd9GRFZQFJPcsfocvp8HpUDEZpG6ySCNkBaFM,3237
|
@@ -40,10 +40,12 @@ graphscope/flex/rest/models/dataloading_job_config_loading_config.py,sha256=YK-C
|
|
40
40
|
graphscope/flex/rest/models/dataloading_job_config_loading_config_format.py,sha256=cRHS1goBrNpgOYufl7Ur7CYZmb9xrEXBg2vz3K5wDVo,2855
|
41
41
|
graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py,sha256=gEfwEHIEhh4aYZnLynNS4Lmi6-tkS4SSrMQmg1TXR6E,2748
|
42
42
|
graphscope/flex/rest/models/dataloading_mr_job_config.py,sha256=fYXKVXJCMu7Rxf-cETSXKKVaPkiuwIk3zJf4BhMhSTE,2665
|
43
|
-
graphscope/flex/rest/models/date_type.py,sha256=
|
43
|
+
graphscope/flex/rest/models/date_type.py,sha256=FGNqu3EHjIbFwYhXtqmsblPR6ueGnSDXlcr86QcoosM,2999
|
44
44
|
graphscope/flex/rest/models/edge_mapping.py,sha256=4Ceyv250mLGlBpFUPE18r5pN6831LbAlUWGVeSPyJb4,5242
|
45
45
|
graphscope/flex/rest/models/edge_mapping_type_triplet.py,sha256=YVKiywXgUjjc1eQ0yCvtWnXJ7xWyu9nLTxHqydb1RsY,2906
|
46
46
|
graphscope/flex/rest/models/error.py,sha256=g34p4t5gh_q_6sAubP9oDT74Iw75DabUJFF-R3Hrssg,2755
|
47
|
+
graphscope/flex/rest/models/fixed_char.py,sha256=tAtlE2nTL2FghKWXVQ4r0EWK8FLhhGEb-hwO2eMP6js,2883
|
48
|
+
graphscope/flex/rest/models/fixed_char_char.py,sha256=JWzg6wgWVtftaoDjqMSj_OVBZky6zd90xTRWvJvVCgY,2653
|
47
49
|
graphscope/flex/rest/models/get_alert_message_response.py,sha256=Cv3AySfdljOcAm2PWrTsgMgevEQyPfuoM7IPC44XQtA,4137
|
48
50
|
graphscope/flex/rest/models/get_alert_receiver_response.py,sha256=Y4vdnG58EuF63SliOEyGaE4PMIus05PYgWfC3o1a0mo,3486
|
49
51
|
graphscope/flex/rest/models/get_alert_rule_response.py,sha256=l_1iAz2j_zQLZxt38fqxhyty6cT8b61GUkBChYVWNio,3791
|
@@ -72,15 +74,18 @@ graphscope/flex/rest/models/service_status_sdk_endpoints.py,sha256=_8Od6Ef5XUMt-
|
|
72
74
|
graphscope/flex/rest/models/start_service_request.py,sha256=KEN52dtpVV55NLFYE2iA2G8WolUz1QYi9nw8HhPZQf4,2688
|
73
75
|
graphscope/flex/rest/models/stored_procedure_meta.py,sha256=3z7HRvf50IVG9y8dQLecTEpAlI2gw4_96EuOtSHDrV0,4430
|
74
76
|
graphscope/flex/rest/models/string_type.py,sha256=Ke-71FTHH3XOmMRo9UMDR8QOX2ScfRPMXZszUfgHPow,2917
|
75
|
-
graphscope/flex/rest/models/string_type_string.py,sha256
|
77
|
+
graphscope/flex/rest/models/string_type_string.py,sha256=HlIQrgLyBYpcwPNHC-F3OTrkz37s1WyfRQnKwu0rbC8,5957
|
76
78
|
graphscope/flex/rest/models/temporal_type.py,sha256=MTEK96uJx3PPESh1PA-k2CxWSlsJPsWykGbQ4UDGNm8,2959
|
77
79
|
graphscope/flex/rest/models/temporal_type_temporal.py,sha256=2NXLQX7jK8VSROp0rSdrpuBazgrYMp6lVI1oERM2Dlk,5410
|
78
|
-
graphscope/flex/rest/models/time_stamp_type.py,sha256=
|
80
|
+
graphscope/flex/rest/models/time_stamp_type.py,sha256=ll6MD0uJ1xQekQOFyq5iXSBQ29qooHlm-BAY413NVb4,3067
|
81
|
+
graphscope/flex/rest/models/typed_value.py,sha256=cJLc51YbpEJu2lQpe9LKOoQMRyco6GqqQoCpKoXsfSI,3161
|
79
82
|
graphscope/flex/rest/models/update_alert_message_status_request.py,sha256=sgQshrtHj_pXxur6j48c8SxiLBBTZO7d7wrgLv0MKF4,3102
|
80
83
|
graphscope/flex/rest/models/update_stored_proc_request.py,sha256=kugg4ir3lpWhu9lV2epP-qRujHNXRwklUP-GsqDnBsk,2689
|
81
84
|
graphscope/flex/rest/models/upload_file_response.py,sha256=-fMN6KfHporMNSSVIqbs0JvFofkDvcNIg9PXRFoGj8Y,2747
|
85
|
+
graphscope/flex/rest/models/var_char.py,sha256=wde5ePkkwFdHjM1Dg_rY4cnx1Zv1c3lp50SqdWTQWfU,2916
|
86
|
+
graphscope/flex/rest/models/var_char_var_char.py,sha256=tANisIVwj8a6oWl_qC9EWQN5FQql64xCcKl3nqKVCNY,2649
|
82
87
|
graphscope/flex/rest/models/vertex_mapping.py,sha256=v0ILNhsCqjdSoYGNP7-2XQkF0viSx1Mszd8RTWtearA,3414
|
83
|
-
graphscope_flex-0.31.
|
84
|
-
graphscope_flex-0.31.
|
85
|
-
graphscope_flex-0.31.
|
86
|
-
graphscope_flex-0.31.
|
88
|
+
graphscope_flex-0.31.0a20250212.dist-info/METADATA,sha256=Pf5P2g_eHPttSGerBy4D7O7TLNnZx1F_SwWI5huK9WE,882
|
89
|
+
graphscope_flex-0.31.0a20250212.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
90
|
+
graphscope_flex-0.31.0a20250212.dist-info/top_level.txt,sha256=_6VvFKT8k3gGfOyNYDHGabL2O-Xzhfm87uy3kVRzWV0,11
|
91
|
+
graphscope_flex-0.31.0a20250212.dist-info/RECORD,,
|
{graphscope_flex-0.31.0a20250210.dist-info → graphscope_flex-0.31.0a20250212.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|