graphscope-flex 0.27.0__5-py2.py3-none-any.whl → 0.28.0__5-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.
@@ -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/). 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)
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, StrictFloat, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Union
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class GetStorageUsageResponse(BaseModel):
27
+ """
28
+ GetStorageUsageResponse
29
+ """ # noqa: E501
30
+ storage_usage: Dict[str, Union[StrictFloat, StrictInt]]
31
+ __properties: ClassVar[List[str]] = ["storage_usage"]
32
+
33
+ model_config = {
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 GetStorageUsageResponse 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 GetStorageUsageResponse 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
+ "storage_usage": obj.get("storage_usage")
85
+ })
86
+ return _obj
87
+
88
+
@@ -32,7 +32,7 @@ class GetVertexType(BaseModel):
32
32
  type_name: StrictStr
33
33
  primary_keys: List[StrictStr]
34
34
  x_csr_params: Optional[BaseVertexTypeXCsrParams] = None
35
- type_id: StrictInt
35
+ type_id: Optional[StrictInt] = None
36
36
  properties: List[GetPropertyMeta]
37
37
  description: Optional[StrictStr] = None
38
38
  __properties: ClassVar[List[str]] = ["type_name", "primary_keys", "x_csr_params", "type_id", "properties", "description"]
@@ -0,0 +1,108 @@
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/). 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)
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, StrictInt, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PodStatus(BaseModel):
27
+ """
28
+ PodStatus
29
+ """ # noqa: E501
30
+ name: StrictStr
31
+ image: List[StrictStr]
32
+ labels: Dict[str, Any]
33
+ node: StrictStr
34
+ status: StrictStr
35
+ restart_count: StrictInt
36
+ cpu_usage: StrictInt
37
+ memory_usage: StrictInt
38
+ timestamp: Optional[StrictStr] = None
39
+ creation_time: StrictStr
40
+ component_belong_to: Optional[StrictStr] = None
41
+ __properties: ClassVar[List[str]] = ["name", "image", "labels", "node", "status", "restart_count", "cpu_usage", "memory_usage", "timestamp", "creation_time", "component_belong_to"]
42
+
43
+ model_config = {
44
+ "populate_by_name": True,
45
+ "validate_assignment": True,
46
+ "protected_namespaces": (),
47
+ }
48
+
49
+
50
+ def to_str(self) -> str:
51
+ """Returns the string representation of the model using alias"""
52
+ return pprint.pformat(self.model_dump(by_alias=True))
53
+
54
+ def to_json(self) -> str:
55
+ """Returns the JSON representation of the model using alias"""
56
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
57
+ return json.dumps(self.to_dict())
58
+
59
+ @classmethod
60
+ def from_json(cls, json_str: str) -> Optional[Self]:
61
+ """Create an instance of PodStatus from a JSON string"""
62
+ return cls.from_dict(json.loads(json_str))
63
+
64
+ def to_dict(self) -> Dict[str, Any]:
65
+ """Return the dictionary representation of the model using alias.
66
+
67
+ This has the following differences from calling pydantic's
68
+ `self.model_dump(by_alias=True)`:
69
+
70
+ * `None` is only added to the output dict for nullable fields that
71
+ were set at model initialization. Other fields with value `None`
72
+ are ignored.
73
+ """
74
+ excluded_fields: Set[str] = set([
75
+ ])
76
+
77
+ _dict = self.model_dump(
78
+ by_alias=True,
79
+ exclude=excluded_fields,
80
+ exclude_none=True,
81
+ )
82
+ return _dict
83
+
84
+ @classmethod
85
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
86
+ """Create an instance of PodStatus 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
+ "name": obj.get("name"),
95
+ "image": obj.get("image"),
96
+ "labels": obj.get("labels"),
97
+ "node": obj.get("node"),
98
+ "status": obj.get("status"),
99
+ "restart_count": obj.get("restart_count"),
100
+ "cpu_usage": obj.get("cpu_usage"),
101
+ "memory_usage": obj.get("memory_usage"),
102
+ "timestamp": obj.get("timestamp"),
103
+ "creation_time": obj.get("creation_time"),
104
+ "component_belong_to": obj.get("component_belong_to")
105
+ })
106
+ return _obj
107
+
108
+
@@ -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/). 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)
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, StrictStr
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class ResourceUsage(BaseModel):
27
+ """
28
+ ResourceUsage
29
+ """ # noqa: E501
30
+ host: StrictStr
31
+ timestamp: StrictStr
32
+ usage: StrictStr
33
+ __properties: ClassVar[List[str]] = ["host", "timestamp", "usage"]
34
+
35
+ model_config = {
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 ResourceUsage 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
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of ResourceUsage from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "host": obj.get("host"),
87
+ "timestamp": obj.get("timestamp"),
88
+ "usage": obj.get("usage")
89
+ })
90
+ return _obj
91
+
92
+
@@ -60,8 +60,8 @@ class RunningDeploymentInfo(BaseModel):
60
60
  @field_validator('storage')
61
61
  def storage_validate_enum(cls, value):
62
62
  """Validates the enum"""
63
- if value not in set(['MutableCSR']):
64
- raise ValueError("must be one of enum values ('MutableCSR')")
63
+ if value not in set(['MutableCSR', 'MutablePersistent']):
64
+ raise ValueError("must be one of enum values ('MutableCSR', 'MutablePersistent')")
65
65
  return value
66
66
 
67
67
  model_config = {
@@ -19,8 +19,9 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, StrictStr, field_validator
22
- from typing import Any, ClassVar, Dict, List
23
- from graphscope.flex.rest.models.running_deployment_status_nodes_inner import RunningDeploymentStatusNodesInner
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from graphscope.flex.rest.models.node_status import NodeStatus
24
+ from graphscope.flex.rest.models.pod_status import PodStatus
24
25
  from typing import Optional, Set
25
26
  from typing_extensions import Self
26
27
 
@@ -29,8 +30,9 @@ class RunningDeploymentStatus(BaseModel):
29
30
  RunningDeploymentStatus
30
31
  """ # noqa: E501
31
32
  cluster_type: StrictStr
32
- nodes: List[RunningDeploymentStatusNodesInner]
33
- __properties: ClassVar[List[str]] = ["cluster_type", "nodes"]
33
+ nodes: Optional[List[NodeStatus]] = None
34
+ pods: Optional[Dict[str, List[PodStatus]]] = None
35
+ __properties: ClassVar[List[str]] = ["cluster_type", "nodes", "pods"]
34
36
 
35
37
  @field_validator('cluster_type')
36
38
  def cluster_type_validate_enum(cls, value):
@@ -85,6 +87,15 @@ class RunningDeploymentStatus(BaseModel):
85
87
  if _item:
86
88
  _items.append(_item.to_dict())
87
89
  _dict['nodes'] = _items
90
+ # override the default output from pydantic by calling `to_dict()` of each value in pods (dict of array)
91
+ _field_dict_of_array = {}
92
+ if self.pods:
93
+ for _key in self.pods:
94
+ if self.pods[_key] is not None:
95
+ _field_dict_of_array[_key] = [
96
+ _item.to_dict() for _item in self.pods[_key]
97
+ ]
98
+ _dict['pods'] = _field_dict_of_array
88
99
  return _dict
89
100
 
90
101
  @classmethod
@@ -98,7 +109,15 @@ class RunningDeploymentStatus(BaseModel):
98
109
 
99
110
  _obj = cls.model_validate({
100
111
  "cluster_type": obj.get("cluster_type"),
101
- "nodes": [RunningDeploymentStatusNodesInner.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None
112
+ "nodes": [NodeStatus.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
113
+ "pods": dict(
114
+ (_k,
115
+ [PodStatus.from_dict(_item) for _item in _v]
116
+ if _v is not None
117
+ else None
118
+ )
119
+ for _k, _v in obj.get("pods", {}).items()
120
+ )
102
121
  })
103
122
  return _obj
104
123
 
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, StrictStr
22
- from typing import Any, ClassVar, Dict, List
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
25
25
  from typing_extensions import Self
@@ -30,7 +30,7 @@ class VertexMapping(BaseModel):
30
30
  """ # noqa: E501
31
31
  type_name: StrictStr
32
32
  inputs: List[StrictStr]
33
- column_mappings: List[ColumnMapping]
33
+ column_mappings: Optional[List[ColumnMapping]] = None
34
34
  __properties: ClassVar[List[str]] = ["type_name", "inputs", "column_mappings"]
35
35
 
36
36
  model_config = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: graphscope-flex
3
- Version: 0.27.0
3
+ Version: 0.28.0
4
4
  Summary: GraphScope FLEX HTTP SERVICE API
5
5
  Home-page:
6
6
  Author: GraphScope
@@ -1,4 +1,4 @@
1
- graphscope/flex/rest/__init__.py,sha256=4feD7TP4JCJbrT4TBx1cAsGY88CX8j3tASWvSMt7lfg,6532
1
+ graphscope/flex/rest/__init__.py,sha256=TOw2cmMe8yeqa0eJndYx-Hf4dml2mbIhKxuaZQKQLYA,6902
2
2
  graphscope/flex/rest/api_client.py,sha256=tdpBLaT8Wbf04dnvQYCSzLCkDvdmc1zbY0JCnWBcHIQ,26182
3
3
  graphscope/flex/rest/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
4
  graphscope/flex/rest/configuration.py,sha256=zAYUqk1_WWevFAo2u8undnYu-aCCz0PLPQwM2i01xj8,14825
@@ -8,15 +8,15 @@ graphscope/flex/rest/rest.py,sha256=jeBUH2zaMh2CgVsaIRiJbBKwq6WL0wdpiBJQ6d9LS5I,
8
8
  graphscope/flex/rest/api/__init__.py,sha256=1Pr4pEIgZpc8u3gBkpU586OKwiSD69eXm5t2DBbqLjE,538
9
9
  graphscope/flex/rest/api/alert_api.py,sha256=iTAwnk5qwTX_V4QDjoA5vmKCXZroWmj1L1SklE2vXdg,106902
10
10
  graphscope/flex/rest/api/data_source_api.py,sha256=ZUD5sGR6wAcvUGy4khSg3umqVmWikbW5bvGS5V0U2ak,43959
11
- graphscope/flex/rest/api/deployment_api.py,sha256=wpWZod3gnOLLsutOV2tRu4EJyITsfsrts2UVEnBpOaE,20044
11
+ graphscope/flex/rest/api/deployment_api.py,sha256=jJeAQRHkYf97n1ABkuwq7VXsWs6GA1TupKrxPdwK3Zg,50000
12
12
  graphscope/flex/rest/api/graph_api.py,sha256=YoJBdE2Yh3l5m78huIrr4Iue1u3VYXiLxCod3BczG_w,105166
13
- graphscope/flex/rest/api/job_api.py,sha256=CJHshdY-c-96R7vX8xpukXblhv-Sv8HbGxJHhCMwjHc,50764
13
+ graphscope/flex/rest/api/job_api.py,sha256=SQ91pGUkvdTrVFqx3tjXgNbzPmMt_82n8CBVyrp4rlU,52944
14
14
  graphscope/flex/rest/api/service_api.py,sha256=gNA5DGAOABezo5EGNcEH2nBNRQx-jsrm9PLWRkMPMmc,49144
15
15
  graphscope/flex/rest/api/stored_procedure_api.py,sha256=MGcyRuoean3rQ4Cdair6XSYPV0VOASmAsshTsvd6eV0,55850
16
16
  graphscope/flex/rest/api/utils_api.py,sha256=LsQT0xZww4Xi2fOnUnph2hKO1_vq5vE98KlBv2uBYwQ,11692
17
- graphscope/flex/rest/models/__init__.py,sha256=KTDDXyioQ9Bj5TKKtFd3AHL66P0zXeZ4VKvNW-oLFM4,5444
17
+ graphscope/flex/rest/models/__init__.py,sha256=bNSSyFgglRrlEmgPLfSHWh_eEFWa_75Sj2n28T5d8EQ,5814
18
18
  graphscope/flex/rest/models/base_edge_type.py,sha256=KAILFagXqSt02T5fWjFQvh5wrUPnEOhoCNGzj4dxpAg,3899
19
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py,sha256=FFRWFSzoqOdbi_tQrP0Lx0HtAs2-84wgWtmRxPLf0fY,4125
19
+ graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py,sha256=y_-lEsvGhUev0d5uVN0rBq-8yvz4tGzQdXuvQ5gVnRY,4194
20
20
  graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py,sha256=BSgNxWdrdS1blxII5_fLgkmMDawaGEULf79W1ki5T3M,3426
21
21
  graphscope/flex/rest/models/base_property_meta.py,sha256=9x74P01-eA1mKYGorDMjr4QPT9rHJMwGQqu6gTwibAY,3859
22
22
  graphscope/flex/rest/models/base_vertex_type.py,sha256=8MJzJvOfXppr95PxgLXuriGlqqcbMJr9HXewVBzmpO4,3437
@@ -26,7 +26,7 @@ graphscope/flex/rest/models/column_mapping_column.py,sha256=rHHHfXR8jCC9WFyqWw18
26
26
  graphscope/flex/rest/models/create_alert_receiver_request.py,sha256=gxN8qgwDSXtbVj6RtfJnGr_NUJcvCMlm2X00AxHBA70,3480
27
27
  graphscope/flex/rest/models/create_alert_rule_request.py,sha256=u63mmcikxEAWVSQ4cbBfioygRCab54_dP2h7jas6zik,3931
28
28
  graphscope/flex/rest/models/create_dataloading_job_response.py,sha256=8pX22Si5X2Qq35KAwKdQeFET-KWrrsjI17uZV2HmoiE,2878
29
- graphscope/flex/rest/models/create_edge_type.py,sha256=MOhPoSOoHwmuWVprqxyRKf4U1iQnbTKscZ5pMvfI5EI,4612
29
+ graphscope/flex/rest/models/create_edge_type.py,sha256=afCCqKxZArAPvJ2Gm0cH0QIMtTop6N6fdwWUxb4TBVk,4629
30
30
  graphscope/flex/rest/models/create_graph_request.py,sha256=ubt6njE_O8CMurDVJKNdPOBKpuGgpZ3fX6PnIw6JJbc,4151
31
31
  graphscope/flex/rest/models/create_graph_response.py,sha256=7IbMjMEgbSNgKEOtVnasM_S7p9uZxHdTc4qtt4Ze-BE,2850
32
32
  graphscope/flex/rest/models/create_graph_schema_request.py,sha256=2FfrrPPHS0mXeprmh1Z3G9zfwJ-SIHYps-hU8Ljda_o,3962
@@ -39,27 +39,32 @@ graphscope/flex/rest/models/dataloading_job_config_edges_inner.py,sha256=WmRdrIh
39
39
  graphscope/flex/rest/models/dataloading_job_config_loading_config.py,sha256=lslDvNzN1Uvrm6BkL8UBKq-md8O-bd4uRC5VAI60R3U,3793
40
40
  graphscope/flex/rest/models/dataloading_job_config_loading_config_format.py,sha256=NhB7ofmHmKuUn8COn1LA91JYatfE-wE_wgISJ49V5kg,3044
41
41
  graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py,sha256=ZovUnekKd7_u-0OZviWkxL5AK9mQ2g65z9Qzgz8f_VM,2937
42
- graphscope/flex/rest/models/edge_mapping.py,sha256=7fTI95CQiNrGTethZdIpE9SpaTC-hXL-pLZ31G80FI8,5196
42
+ graphscope/flex/rest/models/dataloading_mr_job_config.py,sha256=LFQMCIm_GkFviRA7KUzXcxfNbWZF6t8PWZHCmBSILOI,2854
43
+ graphscope/flex/rest/models/edge_mapping.py,sha256=nZVDcP2BXnxDQsDsij_OisWEHRWoHqK1GPGVczo2K-s,5230
43
44
  graphscope/flex/rest/models/edge_mapping_type_triplet.py,sha256=LXkyd4j0-IVizwKddFRH4Chm0oW62n3Me-XCrVnYi8Q,3095
44
45
  graphscope/flex/rest/models/error.py,sha256=O55OpEGtNUTJjZWWDwuAOa93LxMZ5I2fKkGtAz1-G0Q,2944
45
46
  graphscope/flex/rest/models/get_alert_message_response.py,sha256=JMB4AaDLQERlZFveZ5h5oeGZ_RwMpvOTWoAKdvgdmuM,4326
46
47
  graphscope/flex/rest/models/get_alert_receiver_response.py,sha256=vDgJIKtb3mMxrmLvgRnWSO-8HeaNCD-sk4VnfSoegHQ,3675
47
48
  graphscope/flex/rest/models/get_alert_rule_response.py,sha256=xtDKtJp_Hi4vAHot9TIslaNvgyMMkLAiZhU2qKBHHXg,3980
48
- graphscope/flex/rest/models/get_edge_type.py,sha256=drR6UCCn-x38qC4azJj5W84IqE4YgaJP518ZaNSoH9E,4693
49
+ graphscope/flex/rest/models/get_edge_type.py,sha256=9yCqv7O6_xWXTsqG_lipyQvruoGd4BgB3BCjdBBKl9E,4710
49
50
  graphscope/flex/rest/models/get_graph_response.py,sha256=D9GVMP67CPRvORRUZ_2UW4tsSH6Sbu6iK4_oOC1FbQU,4910
50
51
  graphscope/flex/rest/models/get_graph_schema_response.py,sha256=TDBUXTNjB9DSagELjkx5OVIkyJAu7ToDbrsmUeDjjdE,3930
52
+ graphscope/flex/rest/models/get_pod_log_response.py,sha256=LPGTS8F_5DV20iEicp4EuImBkm5mqNZp_5SG9xqJTjE,2816
51
53
  graphscope/flex/rest/models/get_property_meta.py,sha256=c7uF5i3-HfRfrXf_iDvucnRBdtm7cxG4qIu4sYTK1EM,3735
54
+ graphscope/flex/rest/models/get_resource_usage_response.py,sha256=BIK8gqOJq9NmD1jRuDZYU_JSdMfTV7-uRItjPJ8AX5w,3866
55
+ graphscope/flex/rest/models/get_storage_usage_response.py,sha256=oQR3xaIVNJTQq2kaITmhedQinoPE-bwPB_wT-FjX5Tg,2937
52
56
  graphscope/flex/rest/models/get_stored_proc_response.py,sha256=7yUVdyCwR5dOlb73xEm0zNj2Ku5mg8-oYJAeAPkme5w,4674
53
- graphscope/flex/rest/models/get_vertex_type.py,sha256=1ZWWQUi9jNAyUQ3nM-wrZVT_zhJoosYcE_Egyde7R0A,4214
57
+ graphscope/flex/rest/models/get_vertex_type.py,sha256=2LLyD-iOZPcBc1njETZ67YkNNz_mHbRcUabm3lwMD7s,4231
54
58
  graphscope/flex/rest/models/gs_data_type.py,sha256=Ub7Gjol9QkfMBTi5CO41JuGOWPjpZbIEUOQox_pjlAE,5565
55
59
  graphscope/flex/rest/models/job_status.py,sha256=rCvPwMzBlTAOWLSEy2_1hZeBGA8InjU4t3UyN3k7y-M,3722
56
60
  graphscope/flex/rest/models/long_text.py,sha256=HavB7lnHVBl4cmoewWfEG18pU-fFWBVboWs0Pa8KhJM,3049
57
61
  graphscope/flex/rest/models/node_status.py,sha256=Q0AKffSSDEs5EP8SS2szkKFxf2IWvlbnI_7qxPCge9Q,3160
58
62
  graphscope/flex/rest/models/parameter.py,sha256=FTdfZ3UypqDAVW36AZERENW3n9BE95sVhkigRii7gzQ,3136
63
+ graphscope/flex/rest/models/pod_status.py,sha256=liSU_KLcOD5Dhd8lUTSat80GFFsodpqCpKa92Rd2JRo,3734
59
64
  graphscope/flex/rest/models/primitive_type.py,sha256=dToiwWWbQyGsYNT3_VoSAZEDrWl84aCkLdzs7Hewnvg,3334
60
- graphscope/flex/rest/models/running_deployment_info.py,sha256=Uy7pOH2Z1gstzYdZpOa1-Xgl5-9MNXWY1x34N8EPKzc,4479
61
- graphscope/flex/rest/models/running_deployment_status.py,sha256=tHNyOht64F-Mxv_OprJt_3u0iAO2_0By-UoDeh2sAmg,3788
62
- graphscope/flex/rest/models/running_deployment_status_nodes_inner.py,sha256=_k1AbjCHGjxQ3DkQ6wAH4ez7eJ2v_VZaTnTY5TXD1-U,4999
65
+ graphscope/flex/rest/models/resource_usage.py,sha256=d_yg6cgvdWIajwJ6wy9NGZHZIFuIUWAoKFbBSQHCe4U,2964
66
+ graphscope/flex/rest/models/running_deployment_info.py,sha256=I09Ty0hXNHVw6fclik-tsl1yUkKZ1lgb1yjmeNSYEmg,4521
67
+ graphscope/flex/rest/models/running_deployment_status.py,sha256=CPKBJUkPBdknIsqQ2nvQpOlbxWw0mFVyHYOGiTuYMZI,4569
63
68
  graphscope/flex/rest/models/schema_mapping.py,sha256=tZWkkU35y-UMOGJzc7qxVjaBV1tcH10mbQmkg4Zs04E,3946
64
69
  graphscope/flex/rest/models/service_status.py,sha256=SjIUbWpVR0_k6uiPIzkSW6Kq8XrTRzGLFet3RKRRuEo,3796
65
70
  graphscope/flex/rest/models/service_status_sdk_endpoints.py,sha256=O5W8a7Foc3etrHv-WHQ2iIFAEVqJLce1D74wQ0r282E,3151
@@ -70,8 +75,8 @@ graphscope/flex/rest/models/string_type_string.py,sha256=SjCziWETwRz9tTUWw0pWf6X
70
75
  graphscope/flex/rest/models/update_alert_message_status_request.py,sha256=0mD2QWIXm7WllYHytsYNVY2cWRKlun_LfuVMqpIoMrg,3291
71
76
  graphscope/flex/rest/models/update_stored_proc_request.py,sha256=jI6p-Bo9f6xlOHtechZEns1FkG608fetoGybieOBmmw,2878
72
77
  graphscope/flex/rest/models/upload_file_response.py,sha256=gopVaKnZxGb1A-M7NpB2Ey3T1x7ljGT5Oj0V8wympu4,2936
73
- graphscope/flex/rest/models/vertex_mapping.py,sha256=5jyb3rm7rjKMLjb3RTDPM9j7Rx5X3N1BERyaYKd7v58,3528
74
- graphscope_flex-0.27.0.dist-info/METADATA,sha256=tHPsjLhgeIQ-nj2YNm_Vn-W271DvvpdNGp1DoM2PKBU,855
75
- graphscope_flex-0.27.0.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
76
- graphscope_flex-0.27.0.dist-info/top_level.txt,sha256=_6VvFKT8k3gGfOyNYDHGabL2O-Xzhfm87uy3kVRzWV0,11
77
- graphscope_flex-0.27.0.dist-info/RECORD,,
78
+ graphscope/flex/rest/models/vertex_mapping.py,sha256=ATeObRFvsFyLT_5B3Hp5G4SN2fybTOkDVblLDAcT8KA,3555
79
+ graphscope_flex-0.28.0.dist-info/METADATA,sha256=JCBHZzC9LEQT-55Q8gT9t_TQinS10A-7jQqtM8ZFOJo,855
80
+ graphscope_flex-0.28.0.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
81
+ graphscope_flex-0.28.0.dist-info/top_level.txt,sha256=_6VvFKT8k3gGfOyNYDHGabL2O-Xzhfm87uy3kVRzWV0,11
82
+ graphscope_flex-0.28.0.dist-info/RECORD,,
@@ -1,124 +0,0 @@
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/). 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)
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 json
18
- import pprint
19
- from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator
20
- from typing import Any, List, Optional
21
- from graphscope.flex.rest.models.node_status import NodeStatus
22
- from pydantic import StrictStr, Field
23
- from typing import Union, List, Optional, Dict
24
- from typing_extensions import Literal, Self
25
-
26
- RUNNINGDEPLOYMENTSTATUSNODESINNER_ONE_OF_SCHEMAS = ["NodeStatus"]
27
-
28
- class RunningDeploymentStatusNodesInner(BaseModel):
29
- """
30
- RunningDeploymentStatusNodesInner
31
- """
32
- # data type: NodeStatus
33
- oneof_schema_1_validator: Optional[NodeStatus] = None
34
- actual_instance: Optional[Union[NodeStatus]] = None
35
- one_of_schemas: List[str] = Field(default=Literal["NodeStatus"])
36
-
37
- model_config = {
38
- "validate_assignment": True,
39
- "protected_namespaces": (),
40
- }
41
-
42
-
43
- def __init__(self, *args, **kwargs) -> None:
44
- if args:
45
- if len(args) > 1:
46
- raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
47
- if kwargs:
48
- raise ValueError("If a position argument is used, keyword arguments cannot be used.")
49
- super().__init__(actual_instance=args[0])
50
- else:
51
- super().__init__(**kwargs)
52
-
53
- @field_validator('actual_instance')
54
- def actual_instance_must_validate_oneof(cls, v):
55
- instance = RunningDeploymentStatusNodesInner.model_construct()
56
- error_messages = []
57
- match = 0
58
- # validate data type: NodeStatus
59
- if not isinstance(v, NodeStatus):
60
- error_messages.append(f"Error! Input type `{type(v)}` is not `NodeStatus`")
61
- else:
62
- match += 1
63
- if match > 1:
64
- # more than 1 match
65
- raise ValueError("Multiple matches found when setting `actual_instance` in RunningDeploymentStatusNodesInner with oneOf schemas: NodeStatus. Details: " + ", ".join(error_messages))
66
- elif match == 0:
67
- # no match
68
- raise ValueError("No match found when setting `actual_instance` in RunningDeploymentStatusNodesInner with oneOf schemas: NodeStatus. Details: " + ", ".join(error_messages))
69
- else:
70
- return v
71
-
72
- @classmethod
73
- def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
74
- return cls.from_json(json.dumps(obj))
75
-
76
- @classmethod
77
- def from_json(cls, json_str: str) -> Self:
78
- """Returns the object represented by the json string"""
79
- instance = cls.model_construct()
80
- error_messages = []
81
- match = 0
82
-
83
- # deserialize data into NodeStatus
84
- try:
85
- instance.actual_instance = NodeStatus.from_json(json_str)
86
- match += 1
87
- except (ValidationError, ValueError) as e:
88
- error_messages.append(str(e))
89
-
90
- if match > 1:
91
- # more than 1 match
92
- raise ValueError("Multiple matches found when deserializing the JSON string into RunningDeploymentStatusNodesInner with oneOf schemas: NodeStatus. Details: " + ", ".join(error_messages))
93
- elif match == 0:
94
- # no match
95
- raise ValueError("No match found when deserializing the JSON string into RunningDeploymentStatusNodesInner with oneOf schemas: NodeStatus. Details: " + ", ".join(error_messages))
96
- else:
97
- return instance
98
-
99
- def to_json(self) -> str:
100
- """Returns the JSON representation of the actual instance"""
101
- if self.actual_instance is None:
102
- return "null"
103
-
104
- if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
105
- return self.actual_instance.to_json()
106
- else:
107
- return json.dumps(self.actual_instance)
108
-
109
- def to_dict(self) -> Optional[Union[Dict[str, Any], NodeStatus]]:
110
- """Returns the dict representation of the actual instance"""
111
- if self.actual_instance is None:
112
- return None
113
-
114
- if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
115
- return self.actual_instance.to_dict()
116
- else:
117
- # primitive type
118
- return self.actual_instance
119
-
120
- def to_str(self) -> str:
121
- """Returns the string representation of the actual instance"""
122
- return pprint.pformat(self.model_dump())
123
-
124
-