gsctl 0.29.0a20250114__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 +106 -0
- graphscope/flex/rest/api/__init__.py +12 -0
- graphscope/flex/rest/api/alert_api.py +2790 -0
- graphscope/flex/rest/api/data_source_api.py +1177 -0
- graphscope/flex/rest/api/deployment_api.py +1323 -0
- graphscope/flex/rest/api/graph_api.py +2813 -0
- graphscope/flex/rest/api/job_api.py +1408 -0
- graphscope/flex/rest/api/service_api.py +1316 -0
- graphscope/flex/rest/api/stored_procedure_api.py +1454 -0
- graphscope/flex/rest/api/utils_api.py +310 -0
- graphscope/flex/rest/api_client.py +789 -0
- graphscope/flex/rest/api_response.py +21 -0
- graphscope/flex/rest/configuration.py +451 -0
- graphscope/flex/rest/exceptions.py +200 -0
- graphscope/flex/rest/models/__init__.py +82 -0
- graphscope/flex/rest/models/base_edge_type.py +102 -0
- graphscope/flex/rest/models/base_edge_type_vertex_type_pair_relations_inner.py +108 -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 +105 -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/dataloading_mr_job_config.py +88 -0
- graphscope/flex/rest/models/date_type.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 +139 -0
- graphscope/flex/rest/models/get_graph_schema_response.py +106 -0
- graphscope/flex/rest/models/get_pod_log_response.py +88 -0
- graphscope/flex/rest/models/get_property_meta.py +107 -0
- 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/get_stored_proc_response.py +130 -0
- graphscope/flex/rest/models/get_vertex_type.py +110 -0
- graphscope/flex/rest/models/gs_data_type.py +152 -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 +96 -0
- graphscope/flex/rest/models/pod_status.py +108 -0
- graphscope/flex/rest/models/primitive_type.py +95 -0
- graphscope/flex/rest/models/resource_usage.py +92 -0
- graphscope/flex/rest/models/running_deployment_info.py +128 -0
- graphscope/flex/rest/models/running_deployment_status.py +124 -0
- graphscope/flex/rest/models/schema_mapping.py +106 -0
- graphscope/flex/rest/models/service_status.py +112 -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 +126 -0
- 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 +100 -0
- graphscope/flex/rest/py.typed +0 -0
- graphscope/flex/rest/rest.py +258 -0
- graphscope/gsctl/V6D_VERSION +1 -0
- graphscope/gsctl/VERSION +1 -0
- graphscope/gsctl/__init__.py +22 -0
- graphscope/gsctl/commands/__init__.py +148 -0
- graphscope/gsctl/commands/common.py +200 -0
- graphscope/gsctl/commands/dev.py +448 -0
- graphscope/gsctl/commands/insight/__init__.py +17 -0
- graphscope/gsctl/commands/insight/glob.py +234 -0
- graphscope/gsctl/commands/insight/graph.py +205 -0
- graphscope/gsctl/commands/interactive/__init__.py +17 -0
- graphscope/gsctl/commands/interactive/glob.py +280 -0
- graphscope/gsctl/commands/interactive/graph.py +259 -0
- graphscope/gsctl/config.py +221 -0
- graphscope/gsctl/gsctl.py +51 -0
- graphscope/gsctl/impl/__init__.py +64 -0
- graphscope/gsctl/impl/alert.py +135 -0
- graphscope/gsctl/impl/common.py +53 -0
- graphscope/gsctl/impl/datasource.py +80 -0
- graphscope/gsctl/impl/deployment.py +62 -0
- graphscope/gsctl/impl/graph.py +150 -0
- graphscope/gsctl/impl/job.py +63 -0
- graphscope/gsctl/impl/service.py +62 -0
- graphscope/gsctl/impl/stored_procedure.py +92 -0
- graphscope/gsctl/impl/utils.py +38 -0
- graphscope/gsctl/scripts/install_deps.sh +969 -0
- graphscope/gsctl/tests/__init__.py +17 -0
- graphscope/gsctl/tests/test_graphscope_insight.py +401 -0
- graphscope/gsctl/tests/test_interactive.py +516 -0
- graphscope/gsctl/utils.py +337 -0
- graphscope/gsctl/version.py +31 -0
- gsctl-0.29.0a20250114.dist-info/METADATA +20 -0
- gsctl-0.29.0a20250114.dist-info/RECORD +117 -0
- gsctl-0.29.0a20250114.dist-info/WHEEL +6 -0
- gsctl-0.29.0a20250114.dist-info/entry_points.txt +3 -0
- gsctl-0.29.0a20250114.dist-info/top_level.txt +1 -0
@@ -0,0 +1,310 @@
|
|
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
|
+
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, Union[str, bytes]] = {}
|
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
|
+
if 'Accept' not in _header_params:
|
271
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
272
|
+
[
|
273
|
+
'application/json'
|
274
|
+
]
|
275
|
+
)
|
276
|
+
|
277
|
+
# set the HTTP header `Content-Type`
|
278
|
+
if _content_type:
|
279
|
+
_header_params['Content-Type'] = _content_type
|
280
|
+
else:
|
281
|
+
_default_content_type = (
|
282
|
+
self.api_client.select_header_content_type(
|
283
|
+
[
|
284
|
+
'multipart/form-data'
|
285
|
+
]
|
286
|
+
)
|
287
|
+
)
|
288
|
+
if _default_content_type is not None:
|
289
|
+
_header_params['Content-Type'] = _default_content_type
|
290
|
+
|
291
|
+
# authentication setting
|
292
|
+
_auth_settings: List[str] = [
|
293
|
+
]
|
294
|
+
|
295
|
+
return self.api_client.param_serialize(
|
296
|
+
method='POST',
|
297
|
+
resource_path='/api/v1/file/uploading',
|
298
|
+
path_params=_path_params,
|
299
|
+
query_params=_query_params,
|
300
|
+
header_params=_header_params,
|
301
|
+
body=_body_params,
|
302
|
+
post_params=_form_params,
|
303
|
+
files=_files,
|
304
|
+
auth_settings=_auth_settings,
|
305
|
+
collection_formats=_collection_formats,
|
306
|
+
_host=_host,
|
307
|
+
_request_auth=_request_auth
|
308
|
+
)
|
309
|
+
|
310
|
+
|