graphscope-flex 0.28.0a20240919__py2.py3-none-any.whl → 0.28.0a20240921__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/models/get_graph_response.py +13 -0
- graphscope/flex/rest/models/get_stored_proc_response.py +3 -1
- graphscope/flex/rest/models/stored_procedure_meta.py +4 -2
- {graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/METADATA +1 -1
- {graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/RECORD +7 -7
- {graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/WHEEL +0 -0
- {graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/top_level.txt +0 -0
@@ -38,6 +38,7 @@ class GetGraphResponse(BaseModel):
|
|
38
38
|
schema_update_time: StrictStr
|
39
39
|
stored_procedures: Optional[List[GetStoredProcResponse]] = None
|
40
40
|
var_schema: GetGraphSchemaResponse = Field(alias="schema")
|
41
|
+
additional_properties: Dict[str, Any] = {}
|
41
42
|
__properties: ClassVar[List[str]] = ["id", "name", "description", "store_type", "creation_time", "data_update_time", "schema_update_time", "stored_procedures", "schema"]
|
42
43
|
|
43
44
|
@field_validator('store_type')
|
@@ -80,8 +81,10 @@ class GetGraphResponse(BaseModel):
|
|
80
81
|
* `None` is only added to the output dict for nullable fields that
|
81
82
|
were set at model initialization. Other fields with value `None`
|
82
83
|
are ignored.
|
84
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
83
85
|
"""
|
84
86
|
excluded_fields: Set[str] = set([
|
87
|
+
"additional_properties",
|
85
88
|
])
|
86
89
|
|
87
90
|
_dict = self.model_dump(
|
@@ -99,6 +102,11 @@ class GetGraphResponse(BaseModel):
|
|
99
102
|
# override the default output from pydantic by calling `to_dict()` of var_schema
|
100
103
|
if self.var_schema:
|
101
104
|
_dict['schema'] = self.var_schema.to_dict()
|
105
|
+
# puts key-value pairs in additional_properties in the top level
|
106
|
+
if self.additional_properties is not None:
|
107
|
+
for _key, _value in self.additional_properties.items():
|
108
|
+
_dict[_key] = _value
|
109
|
+
|
102
110
|
return _dict
|
103
111
|
|
104
112
|
@classmethod
|
@@ -121,6 +129,11 @@ class GetGraphResponse(BaseModel):
|
|
121
129
|
"stored_procedures": [GetStoredProcResponse.from_dict(_item) for _item in obj["stored_procedures"]] if obj.get("stored_procedures") is not None else None,
|
122
130
|
"schema": GetGraphSchemaResponse.from_dict(obj["schema"]) if obj.get("schema") is not None else None
|
123
131
|
})
|
132
|
+
# store additional fields in additional_properties
|
133
|
+
for _key in obj.keys():
|
134
|
+
if _key not in cls.__properties:
|
135
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
136
|
+
|
124
137
|
return _obj
|
125
138
|
|
126
139
|
|
@@ -36,9 +36,10 @@ class GetStoredProcResponse(BaseModel):
|
|
36
36
|
library: StrictStr
|
37
37
|
params: List[Parameter]
|
38
38
|
returns: List[Parameter]
|
39
|
+
option: Optional[Dict[str, Any]] = None
|
39
40
|
bound_graph: StrictStr
|
40
41
|
runnable: StrictBool
|
41
|
-
__properties: ClassVar[List[str]] = ["name", "description", "type", "query", "id", "library", "params", "returns", "bound_graph", "runnable"]
|
42
|
+
__properties: ClassVar[List[str]] = ["name", "description", "type", "query", "id", "library", "params", "returns", "option", "bound_graph", "runnable"]
|
42
43
|
|
43
44
|
@field_validator('type')
|
44
45
|
def type_validate_enum(cls, value):
|
@@ -120,6 +121,7 @@ class GetStoredProcResponse(BaseModel):
|
|
120
121
|
"library": obj.get("library"),
|
121
122
|
"params": [Parameter.from_dict(_item) for _item in obj["params"]] if obj.get("params") is not None else None,
|
122
123
|
"returns": [Parameter.from_dict(_item) for _item in obj["returns"]] if obj.get("returns") is not None else None,
|
124
|
+
"option": obj.get("option"),
|
123
125
|
"bound_graph": obj.get("bound_graph"),
|
124
126
|
"runnable": obj.get("runnable")
|
125
127
|
})
|
@@ -36,7 +36,8 @@ class StoredProcedureMeta(BaseModel):
|
|
36
36
|
library: StrictStr
|
37
37
|
params: List[Parameter]
|
38
38
|
returns: List[Parameter]
|
39
|
-
|
39
|
+
option: Optional[Dict[str, Any]] = None
|
40
|
+
__properties: ClassVar[List[str]] = ["name", "description", "type", "query", "id", "library", "params", "returns", "option"]
|
40
41
|
|
41
42
|
@field_validator('type')
|
42
43
|
def type_validate_enum(cls, value):
|
@@ -117,7 +118,8 @@ class StoredProcedureMeta(BaseModel):
|
|
117
118
|
"id": obj.get("id"),
|
118
119
|
"library": obj.get("library"),
|
119
120
|
"params": [Parameter.from_dict(_item) for _item in obj["params"]] if obj.get("params") is not None else None,
|
120
|
-
"returns": [Parameter.from_dict(_item) for _item in obj["returns"]] if obj.get("returns") is not None else None
|
121
|
+
"returns": [Parameter.from_dict(_item) for _item in obj["returns"]] if obj.get("returns") is not None else None,
|
122
|
+
"option": obj.get("option")
|
121
123
|
})
|
122
124
|
return _obj
|
123
125
|
|
{graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/RECORD
RENAMED
@@ -48,13 +48,13 @@ graphscope/flex/rest/models/get_alert_message_response.py,sha256=Cv3AySfdljOcAm2
|
|
48
48
|
graphscope/flex/rest/models/get_alert_receiver_response.py,sha256=Y4vdnG58EuF63SliOEyGaE4PMIus05PYgWfC3o1a0mo,3486
|
49
49
|
graphscope/flex/rest/models/get_alert_rule_response.py,sha256=l_1iAz2j_zQLZxt38fqxhyty6cT8b61GUkBChYVWNio,3791
|
50
50
|
graphscope/flex/rest/models/get_edge_type.py,sha256=uM1trIUNzjZTjPVVdgM84HrKUatlO_gYNz-emiZjnEU,4635
|
51
|
-
graphscope/flex/rest/models/get_graph_response.py,sha256=
|
51
|
+
graphscope/flex/rest/models/get_graph_response.py,sha256=1JwXdSyrTV5gFzTKYpn-WNr-hT2qTISt8PIRhXvXNPA,5370
|
52
52
|
graphscope/flex/rest/models/get_graph_schema_response.py,sha256=Czki53A1kgl6UU56K3AuVA6HuWEQEyaP-tBsSRdwZYc,3813
|
53
53
|
graphscope/flex/rest/models/get_pod_log_response.py,sha256=ChEvC5dMJJT9En00G0b_RQIgeg11sLS2gWgnIOWQhWA,2627
|
54
54
|
graphscope/flex/rest/models/get_property_meta.py,sha256=gIz3t4DKvCvWchSTfpzEULTDuciJQWm-dtLPzKLptC0,3770
|
55
55
|
graphscope/flex/rest/models/get_resource_usage_response.py,sha256=qdbay1sUd37Hp7E_OKnblqCh6-hZsQVmR856Fez6Gm4,3746
|
56
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
|
57
|
+
graphscope/flex/rest/models/get_stored_proc_response.py,sha256=3F4jRAgrP81yygpdXQhdN_-W70ZHCrLjYY2PRiW3gs0,4625
|
58
58
|
graphscope/flex/rest/models/get_vertex_type.py,sha256=DORL5o-7Iwxra4Sv2EgMK1kYWoHkUmJ-P5X29w8Kcl8,4075
|
59
59
|
graphscope/flex/rest/models/gs_data_type.py,sha256=zJTN7jXXA2VuUJlgLoWdznVYpP1y4PDIzJUQOWZDjeY,6096
|
60
60
|
graphscope/flex/rest/models/job_status.py,sha256=WpU_xVM1Z2hOPZWccCrlL_TOeS6fMSktpfPs-BfbdZ8,3533
|
@@ -70,7 +70,7 @@ graphscope/flex/rest/models/schema_mapping.py,sha256=RCWJbEI2Xulj6L9g4vxtvYugYLp
|
|
70
70
|
graphscope/flex/rest/models/service_status.py,sha256=aGy0rqXxk98QjcWq2P7T17H3CIoz5SqX8D3DxccPhx8,3607
|
71
71
|
graphscope/flex/rest/models/service_status_sdk_endpoints.py,sha256=_8Od6Ef5XUMt-5wXiHI4DquVfDJ2g6qr43ilHJ0dTXc,2962
|
72
72
|
graphscope/flex/rest/models/start_service_request.py,sha256=KEN52dtpVV55NLFYE2iA2G8WolUz1QYi9nw8HhPZQf4,2688
|
73
|
-
graphscope/flex/rest/models/stored_procedure_meta.py,sha256=
|
73
|
+
graphscope/flex/rest/models/stored_procedure_meta.py,sha256=3z7HRvf50IVG9y8dQLecTEpAlI2gw4_96EuOtSHDrV0,4430
|
74
74
|
graphscope/flex/rest/models/string_type.py,sha256=Ke-71FTHH3XOmMRo9UMDR8QOX2ScfRPMXZszUfgHPow,2917
|
75
75
|
graphscope/flex/rest/models/string_type_string.py,sha256=-F1aCGpz3kvuZqgJ3FUsZiXrx-i-KMSUMaeSPkMs70k,4627
|
76
76
|
graphscope/flex/rest/models/temporal_type.py,sha256=MTEK96uJx3PPESh1PA-k2CxWSlsJPsWykGbQ4UDGNm8,2959
|
@@ -80,7 +80,7 @@ graphscope/flex/rest/models/update_alert_message_status_request.py,sha256=sgQshr
|
|
80
80
|
graphscope/flex/rest/models/update_stored_proc_request.py,sha256=kugg4ir3lpWhu9lV2epP-qRujHNXRwklUP-GsqDnBsk,2689
|
81
81
|
graphscope/flex/rest/models/upload_file_response.py,sha256=-fMN6KfHporMNSSVIqbs0JvFofkDvcNIg9PXRFoGj8Y,2747
|
82
82
|
graphscope/flex/rest/models/vertex_mapping.py,sha256=v0ILNhsCqjdSoYGNP7-2XQkF0viSx1Mszd8RTWtearA,3414
|
83
|
-
graphscope_flex-0.28.
|
84
|
-
graphscope_flex-0.28.
|
85
|
-
graphscope_flex-0.28.
|
86
|
-
graphscope_flex-0.28.
|
83
|
+
graphscope_flex-0.28.0a20240921.dist-info/METADATA,sha256=54lXF2EzXDfOhhkiOwfCyS1QxcpunQ4xOc8xKuWjeHw,882
|
84
|
+
graphscope_flex-0.28.0a20240921.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
85
|
+
graphscope_flex-0.28.0a20240921.dist-info/top_level.txt,sha256=_6VvFKT8k3gGfOyNYDHGabL2O-Xzhfm87uy3kVRzWV0,11
|
86
|
+
graphscope_flex-0.28.0a20240921.dist-info/RECORD,,
|
{graphscope_flex-0.28.0a20240919.dist-info → graphscope_flex-0.28.0a20240921.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|