graphscope-flex 0.27.0__4-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 +97 -0
- graphscope/flex/rest/api/__init__.py +12 -0
- graphscope/flex/rest/api/alert_api.py +2780 -0
- graphscope/flex/rest/api/data_source_api.py +1173 -0
- graphscope/flex/rest/api/deployment_api.py +528 -0
- graphscope/flex/rest/api/graph_api.py +2803 -0
- graphscope/flex/rest/api/job_api.py +1356 -0
- graphscope/flex/rest/api/service_api.py +1311 -0
- graphscope/flex/rest/api/stored_procedure_api.py +1449 -0
- graphscope/flex/rest/api/utils_api.py +309 -0
- graphscope/flex/rest/api_client.py +759 -0
- graphscope/flex/rest/api_response.py +21 -0
- graphscope/flex/rest/configuration.py +437 -0
- graphscope/flex/rest/exceptions.py +200 -0
- graphscope/flex/rest/models/__init__.py +73 -0
- graphscope/flex/rest/models/base_edge_type.py +102 -0
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py +105 -0
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py +98 -0
- graphscope/flex/rest/models/base_property_meta.py +105 -0
- graphscope/flex/rest/models/base_vertex_type.py +96 -0
- graphscope/flex/rest/models/base_vertex_type_x_csr_params.py +88 -0
- graphscope/flex/rest/models/column_mapping.py +94 -0
- graphscope/flex/rest/models/column_mapping_column.py +90 -0
- graphscope/flex/rest/models/create_alert_receiver_request.py +103 -0
- graphscope/flex/rest/models/create_alert_rule_request.py +112 -0
- 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/create_graph_request.py +106 -0
- graphscope/flex/rest/models/create_graph_response.py +88 -0
- graphscope/flex/rest/models/create_graph_schema_request.py +106 -0
- graphscope/flex/rest/models/create_property_meta.py +100 -0
- graphscope/flex/rest/models/create_stored_proc_request.py +101 -0
- 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/dataloading_job_config.py +136 -0
- graphscope/flex/rest/models/dataloading_job_config_edges_inner.py +92 -0
- graphscope/flex/rest/models/dataloading_job_config_loading_config.py +104 -0
- graphscope/flex/rest/models/dataloading_job_config_loading_config_format.py +90 -0
- graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py +88 -0
- graphscope/flex/rest/models/edge_mapping.py +122 -0
- graphscope/flex/rest/models/edge_mapping_type_triplet.py +92 -0
- graphscope/flex/rest/models/error.py +90 -0
- graphscope/flex/rest/models/get_alert_message_response.py +123 -0
- graphscope/flex/rest/models/get_alert_receiver_response.py +107 -0
- graphscope/flex/rest/models/get_alert_rule_response.py +114 -0
- graphscope/flex/rest/models/get_edge_type.py +116 -0
- graphscope/flex/rest/models/get_graph_response.py +126 -0
- graphscope/flex/rest/models/get_graph_schema_response.py +106 -0
- graphscope/flex/rest/models/get_property_meta.py +102 -0
- graphscope/flex/rest/models/get_stored_proc_response.py +128 -0
- graphscope/flex/rest/models/get_vertex_type.py +110 -0
- graphscope/flex/rest/models/gs_data_type.py +138 -0
- graphscope/flex/rest/models/job_status.py +107 -0
- graphscope/flex/rest/models/long_text.py +93 -0
- graphscope/flex/rest/models/node_status.py +94 -0
- graphscope/flex/rest/models/parameter.py +94 -0
- graphscope/flex/rest/models/primitive_type.py +95 -0
- graphscope/flex/rest/models/running_deployment_info.py +128 -0
- graphscope/flex/rest/models/running_deployment_status.py +105 -0
- graphscope/flex/rest/models/running_deployment_status_nodes_inner.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +106 -0
- graphscope/flex/rest/models/service_status.py +105 -0
- graphscope/flex/rest/models/service_status_sdk_endpoints.py +94 -0
- graphscope/flex/rest/models/start_service_request.py +88 -0
- graphscope/flex/rest/models/stored_procedure_meta.py +124 -0
- graphscope/flex/rest/models/string_type.py +92 -0
- graphscope/flex/rest/models/string_type_string.py +124 -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 +88 -0
- graphscope/flex/rest/models/vertex_mapping.py +100 -0
- graphscope/flex/rest/py.typed +0 -0
- graphscope/flex/rest/rest.py +256 -0
- graphscope_flex-0.27.0.dist-info/METADATA +17 -0
- graphscope_flex-0.27.0.dist-info/RECORD +77 -0
- graphscope_flex-0.27.0.dist-info/WHEEL +6 -0
- graphscope_flex-0.27.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,309 @@
|
|
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
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
19
|
+
|
20
|
+
from pydantic import StrictBytes, StrictStr
|
21
|
+
from typing import Optional, Union
|
22
|
+
from graphscope.flex.rest.models.upload_file_response import UploadFileResponse
|
23
|
+
|
24
|
+
from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
|
25
|
+
from graphscope.flex.rest.api_response import ApiResponse
|
26
|
+
from graphscope.flex.rest.rest import RESTResponseType
|
27
|
+
|
28
|
+
|
29
|
+
class UtilsApi:
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
31
|
+
Ref: https://openapi-generator.tech
|
32
|
+
|
33
|
+
Do not edit the class manually.
|
34
|
+
"""
|
35
|
+
|
36
|
+
def __init__(self, api_client=None) -> None:
|
37
|
+
if api_client is None:
|
38
|
+
api_client = ApiClient.get_default()
|
39
|
+
self.api_client = api_client
|
40
|
+
|
41
|
+
|
42
|
+
@validate_call
|
43
|
+
def upload_file(
|
44
|
+
self,
|
45
|
+
filestorage: Optional[Union[StrictBytes, StrictStr]] = None,
|
46
|
+
_request_timeout: Union[
|
47
|
+
None,
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
49
|
+
Tuple[
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
52
|
+
]
|
53
|
+
] = None,
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
58
|
+
) -> UploadFileResponse:
|
59
|
+
"""upload_file
|
60
|
+
|
61
|
+
|
62
|
+
:param filestorage:
|
63
|
+
:type filestorage: bytearray
|
64
|
+
:param _request_timeout: timeout setting for this request. If one
|
65
|
+
number provided, it will be total request
|
66
|
+
timeout. It can also be a pair (tuple) of
|
67
|
+
(connection, read) timeouts.
|
68
|
+
:type _request_timeout: int, tuple(int, int), optional
|
69
|
+
:param _request_auth: set to override the auth_settings for an a single
|
70
|
+
request; this effectively ignores the
|
71
|
+
authentication in the spec for a single request.
|
72
|
+
:type _request_auth: dict, optional
|
73
|
+
:param _content_type: force content-type for the request.
|
74
|
+
:type _content_type: str, Optional
|
75
|
+
:param _headers: set to override the headers for a single
|
76
|
+
request; this effectively ignores the headers
|
77
|
+
in the spec for a single request.
|
78
|
+
:type _headers: dict, optional
|
79
|
+
:param _host_index: set to override the host_index for a single
|
80
|
+
request; this effectively ignores the host_index
|
81
|
+
in the spec for a single request.
|
82
|
+
:type _host_index: int, optional
|
83
|
+
:return: Returns the result object.
|
84
|
+
""" # noqa: E501
|
85
|
+
|
86
|
+
_param = self._upload_file_serialize(
|
87
|
+
filestorage=filestorage,
|
88
|
+
_request_auth=_request_auth,
|
89
|
+
_content_type=_content_type,
|
90
|
+
_headers=_headers,
|
91
|
+
_host_index=_host_index
|
92
|
+
)
|
93
|
+
|
94
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
95
|
+
'200': "UploadFileResponse",
|
96
|
+
'500': "Error",
|
97
|
+
}
|
98
|
+
response_data = self.api_client.call_api(
|
99
|
+
*_param,
|
100
|
+
_request_timeout=_request_timeout
|
101
|
+
)
|
102
|
+
response_data.read()
|
103
|
+
return self.api_client.response_deserialize(
|
104
|
+
response_data=response_data,
|
105
|
+
response_types_map=_response_types_map,
|
106
|
+
).data
|
107
|
+
|
108
|
+
|
109
|
+
@validate_call
|
110
|
+
def upload_file_with_http_info(
|
111
|
+
self,
|
112
|
+
filestorage: Optional[Union[StrictBytes, StrictStr]] = None,
|
113
|
+
_request_timeout: Union[
|
114
|
+
None,
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
116
|
+
Tuple[
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
119
|
+
]
|
120
|
+
] = None,
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
125
|
+
) -> ApiResponse[UploadFileResponse]:
|
126
|
+
"""upload_file
|
127
|
+
|
128
|
+
|
129
|
+
:param filestorage:
|
130
|
+
:type filestorage: bytearray
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
132
|
+
number provided, it will be total request
|
133
|
+
timeout. It can also be a pair (tuple) of
|
134
|
+
(connection, read) timeouts.
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
137
|
+
request; this effectively ignores the
|
138
|
+
authentication in the spec for a single request.
|
139
|
+
:type _request_auth: dict, optional
|
140
|
+
:param _content_type: force content-type for the request.
|
141
|
+
:type _content_type: str, Optional
|
142
|
+
:param _headers: set to override the headers for a single
|
143
|
+
request; this effectively ignores the headers
|
144
|
+
in the spec for a single request.
|
145
|
+
:type _headers: dict, optional
|
146
|
+
:param _host_index: set to override the host_index for a single
|
147
|
+
request; this effectively ignores the host_index
|
148
|
+
in the spec for a single request.
|
149
|
+
:type _host_index: int, optional
|
150
|
+
:return: Returns the result object.
|
151
|
+
""" # noqa: E501
|
152
|
+
|
153
|
+
_param = self._upload_file_serialize(
|
154
|
+
filestorage=filestorage,
|
155
|
+
_request_auth=_request_auth,
|
156
|
+
_content_type=_content_type,
|
157
|
+
_headers=_headers,
|
158
|
+
_host_index=_host_index
|
159
|
+
)
|
160
|
+
|
161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
162
|
+
'200': "UploadFileResponse",
|
163
|
+
'500': "Error",
|
164
|
+
}
|
165
|
+
response_data = self.api_client.call_api(
|
166
|
+
*_param,
|
167
|
+
_request_timeout=_request_timeout
|
168
|
+
)
|
169
|
+
response_data.read()
|
170
|
+
return self.api_client.response_deserialize(
|
171
|
+
response_data=response_data,
|
172
|
+
response_types_map=_response_types_map,
|
173
|
+
)
|
174
|
+
|
175
|
+
|
176
|
+
@validate_call
|
177
|
+
def upload_file_without_preload_content(
|
178
|
+
self,
|
179
|
+
filestorage: Optional[Union[StrictBytes, StrictStr]] = None,
|
180
|
+
_request_timeout: Union[
|
181
|
+
None,
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
183
|
+
Tuple[
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
186
|
+
]
|
187
|
+
] = None,
|
188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
189
|
+
_content_type: Optional[StrictStr] = None,
|
190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
192
|
+
) -> RESTResponseType:
|
193
|
+
"""upload_file
|
194
|
+
|
195
|
+
|
196
|
+
:param filestorage:
|
197
|
+
:type filestorage: bytearray
|
198
|
+
:param _request_timeout: timeout setting for this request. If one
|
199
|
+
number provided, it will be total request
|
200
|
+
timeout. It can also be a pair (tuple) of
|
201
|
+
(connection, read) timeouts.
|
202
|
+
:type _request_timeout: int, tuple(int, int), optional
|
203
|
+
:param _request_auth: set to override the auth_settings for an a single
|
204
|
+
request; this effectively ignores the
|
205
|
+
authentication in the spec for a single request.
|
206
|
+
:type _request_auth: dict, optional
|
207
|
+
:param _content_type: force content-type for the request.
|
208
|
+
:type _content_type: str, Optional
|
209
|
+
:param _headers: set to override the headers for a single
|
210
|
+
request; this effectively ignores the headers
|
211
|
+
in the spec for a single request.
|
212
|
+
:type _headers: dict, optional
|
213
|
+
:param _host_index: set to override the host_index for a single
|
214
|
+
request; this effectively ignores the host_index
|
215
|
+
in the spec for a single request.
|
216
|
+
:type _host_index: int, optional
|
217
|
+
:return: Returns the result object.
|
218
|
+
""" # noqa: E501
|
219
|
+
|
220
|
+
_param = self._upload_file_serialize(
|
221
|
+
filestorage=filestorage,
|
222
|
+
_request_auth=_request_auth,
|
223
|
+
_content_type=_content_type,
|
224
|
+
_headers=_headers,
|
225
|
+
_host_index=_host_index
|
226
|
+
)
|
227
|
+
|
228
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
229
|
+
'200': "UploadFileResponse",
|
230
|
+
'500': "Error",
|
231
|
+
}
|
232
|
+
response_data = self.api_client.call_api(
|
233
|
+
*_param,
|
234
|
+
_request_timeout=_request_timeout
|
235
|
+
)
|
236
|
+
return response_data.response
|
237
|
+
|
238
|
+
|
239
|
+
def _upload_file_serialize(
|
240
|
+
self,
|
241
|
+
filestorage,
|
242
|
+
_request_auth,
|
243
|
+
_content_type,
|
244
|
+
_headers,
|
245
|
+
_host_index,
|
246
|
+
) -> RequestSerialized:
|
247
|
+
|
248
|
+
_host = None
|
249
|
+
|
250
|
+
_collection_formats: Dict[str, str] = {
|
251
|
+
}
|
252
|
+
|
253
|
+
_path_params: Dict[str, str] = {}
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
257
|
+
_files: Dict[str, str] = {}
|
258
|
+
_body_params: Optional[bytes] = None
|
259
|
+
|
260
|
+
# process the path parameters
|
261
|
+
# process the query parameters
|
262
|
+
# process the header parameters
|
263
|
+
# process the form parameters
|
264
|
+
if filestorage is not None:
|
265
|
+
_files['filestorage'] = filestorage
|
266
|
+
# process the body parameter
|
267
|
+
|
268
|
+
|
269
|
+
# set the HTTP header `Accept`
|
270
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
271
|
+
[
|
272
|
+
'application/json'
|
273
|
+
]
|
274
|
+
)
|
275
|
+
|
276
|
+
# set the HTTP header `Content-Type`
|
277
|
+
if _content_type:
|
278
|
+
_header_params['Content-Type'] = _content_type
|
279
|
+
else:
|
280
|
+
_default_content_type = (
|
281
|
+
self.api_client.select_header_content_type(
|
282
|
+
[
|
283
|
+
'multipart/form-data'
|
284
|
+
]
|
285
|
+
)
|
286
|
+
)
|
287
|
+
if _default_content_type is not None:
|
288
|
+
_header_params['Content-Type'] = _default_content_type
|
289
|
+
|
290
|
+
# authentication setting
|
291
|
+
_auth_settings: List[str] = [
|
292
|
+
]
|
293
|
+
|
294
|
+
return self.api_client.param_serialize(
|
295
|
+
method='POST',
|
296
|
+
resource_path='/api/v1/file/uploading',
|
297
|
+
path_params=_path_params,
|
298
|
+
query_params=_query_params,
|
299
|
+
header_params=_header_params,
|
300
|
+
body=_body_params,
|
301
|
+
post_params=_form_params,
|
302
|
+
files=_files,
|
303
|
+
auth_settings=_auth_settings,
|
304
|
+
collection_formats=_collection_formats,
|
305
|
+
_host=_host,
|
306
|
+
_request_auth=_request_auth
|
307
|
+
)
|
308
|
+
|
309
|
+
|