graphscope-flex 0.27.0__py2.py3-none-any.whl → 0.28.0a20240920__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.
Files changed (96) hide show
  1. graphscope/flex/rest/__init__.py +59 -44
  2. graphscope/flex/rest/api/__init__.py +2 -4
  3. graphscope/flex/rest/api/alert_api.py +721 -394
  4. graphscope/flex/rest/api/{legacy_api.py → data_source_api.py} +260 -189
  5. graphscope/flex/rest/api/deployment_api.py +388 -138
  6. graphscope/flex/rest/api/graph_api.py +858 -260
  7. graphscope/flex/rest/api/job_api.py +286 -203
  8. graphscope/flex/rest/api/service_api.py +320 -39
  9. graphscope/flex/rest/api/{procedure_api.py → stored_procedure_api.py} +296 -237
  10. graphscope/flex/rest/api/utils_api.py +18 -13
  11. graphscope/flex/rest/api_client.py +60 -30
  12. graphscope/flex/rest/configuration.py +19 -5
  13. graphscope/flex/rest/exceptions.py +2 -2
  14. graphscope/flex/rest/models/__init__.py +57 -40
  15. graphscope/flex/rest/models/{vertex_type.py → base_edge_type.py} +25 -25
  16. graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner.py → base_edge_type_vertex_type_pair_relations_inner.py} +17 -17
  17. graphscope/flex/rest/models/{edge_type_vertex_type_pair_relations_inner_x_csr_params.py → base_edge_type_vertex_type_pair_relations_inner_x_csr_params.py} +11 -11
  18. graphscope/flex/rest/models/{model_property.py → base_property_meta.py} +28 -19
  19. graphscope/flex/rest/models/base_vertex_type.py +96 -0
  20. graphscope/flex/rest/models/{groot_edge_type_relations_inner.py → base_vertex_type_x_csr_params.py} +15 -17
  21. graphscope/flex/rest/models/column_mapping.py +13 -13
  22. graphscope/flex/rest/models/{edge_mapping_source_vertex_mappings_inner_column.py → column_mapping_column.py} +12 -12
  23. graphscope/flex/rest/models/{schema_mapping_loading_config_data_source.py → create_alert_receiver_request.py} +29 -24
  24. graphscope/flex/rest/models/{alert_rule.py → create_alert_rule_request.py} +19 -25
  25. graphscope/flex/rest/models/create_dataloading_job_response.py +88 -0
  26. graphscope/flex/rest/models/create_edge_type.py +114 -0
  27. graphscope/flex/rest/models/{graph.py → create_graph_request.py} +27 -33
  28. graphscope/flex/rest/models/create_graph_response.py +88 -0
  29. graphscope/flex/rest/models/{model_schema.py → create_graph_schema_request.py} +25 -25
  30. graphscope/flex/rest/models/{groot_vertex_type.py → create_property_meta.py} +32 -25
  31. graphscope/flex/rest/models/{graph_stored_procedures.py → create_stored_proc_request.py} +26 -23
  32. graphscope/flex/rest/models/create_stored_proc_response.py +88 -0
  33. graphscope/flex/rest/models/create_vertex_type.py +108 -0
  34. graphscope/flex/rest/models/{groot_dataloading_job_config.py → dataloading_job_config.py} +45 -21
  35. graphscope/flex/rest/models/{groot_dataloading_job_config_edges_inner.py → dataloading_job_config_edges_inner.py} +12 -12
  36. graphscope/flex/rest/models/{schema_mapping_loading_config.py → dataloading_job_config_loading_config.py} +16 -22
  37. graphscope/flex/rest/models/{schema_mapping_loading_config_format.py → dataloading_job_config_loading_config_format.py} +12 -12
  38. graphscope/flex/rest/models/dataloading_job_config_vertices_inner.py +88 -0
  39. graphscope/flex/rest/models/dataloading_mr_job_config.py +88 -0
  40. graphscope/flex/rest/models/date_type.py +88 -0
  41. graphscope/flex/rest/models/edge_mapping.py +23 -25
  42. graphscope/flex/rest/models/edge_mapping_type_triplet.py +12 -12
  43. graphscope/flex/rest/models/error.py +90 -0
  44. graphscope/flex/rest/models/{alert_message.py → get_alert_message_response.py} +23 -32
  45. graphscope/flex/rest/models/{alert_receiver.py → get_alert_receiver_response.py} +22 -25
  46. graphscope/flex/rest/models/{connection_status.py → get_alert_rule_response.py} +37 -33
  47. graphscope/flex/rest/models/{edge_type.py → get_edge_type.py} +33 -27
  48. graphscope/flex/rest/models/get_graph_response.py +139 -0
  49. graphscope/flex/rest/models/{groot_schema.py → get_graph_schema_response.py} +32 -32
  50. graphscope/flex/rest/models/get_pod_log_response.py +88 -0
  51. graphscope/flex/rest/models/{edge_mapping_destination_vertex_mappings_inner.py → get_property_meta.py} +34 -19
  52. graphscope/flex/rest/models/get_resource_usage_response.py +105 -0
  53. graphscope/flex/rest/models/get_storage_usage_response.py +88 -0
  54. graphscope/flex/rest/models/{procedure.py → get_stored_proc_response.py} +37 -36
  55. graphscope/flex/rest/models/{groot_edge_type.py → get_vertex_type.py} +33 -31
  56. graphscope/flex/rest/models/gs_data_type.py +152 -0
  57. graphscope/flex/rest/models/job_status.py +14 -17
  58. graphscope/flex/rest/models/{connection.py → long_text.py} +20 -15
  59. graphscope/flex/rest/models/node_status.py +15 -15
  60. graphscope/flex/rest/models/{procedure_params_inner.py → parameter.py} +20 -16
  61. graphscope/flex/rest/models/{deployment_info_graphs_info_value.py → pod_status.py} +34 -20
  62. graphscope/flex/rest/models/{property_property_type.py → primitive_type.py} +16 -19
  63. graphscope/flex/rest/models/resource_usage.py +92 -0
  64. graphscope/flex/rest/models/{deployment_info.py → running_deployment_info.py} +42 -45
  65. graphscope/flex/rest/models/running_deployment_status.py +124 -0
  66. graphscope/flex/rest/models/schema_mapping.py +18 -26
  67. graphscope/flex/rest/models/service_status.py +22 -13
  68. graphscope/flex/rest/models/service_status_sdk_endpoints.py +8 -8
  69. graphscope/flex/rest/models/start_service_request.py +11 -11
  70. graphscope/flex/rest/models/{groot_graph.py → stored_procedure_meta.py} +46 -36
  71. graphscope/flex/rest/models/string_type.py +92 -0
  72. graphscope/flex/rest/models/string_type_string.py +124 -0
  73. graphscope/flex/rest/models/temporal_type.py +92 -0
  74. graphscope/flex/rest/models/temporal_type_temporal.py +138 -0
  75. graphscope/flex/rest/models/time_stamp_type.py +88 -0
  76. graphscope/flex/rest/models/update_alert_message_status_request.py +97 -0
  77. graphscope/flex/rest/models/update_stored_proc_request.py +88 -0
  78. graphscope/flex/rest/models/upload_file_response.py +90 -0
  79. graphscope/flex/rest/models/vertex_mapping.py +13 -13
  80. graphscope/flex/rest/rest.py +4 -2
  81. graphscope_flex-0.28.0a20240920.dist-info/METADATA +19 -0
  82. graphscope_flex-0.28.0a20240920.dist-info/RECORD +86 -0
  83. {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.28.0a20240920.dist-info}/WHEEL +1 -1
  84. graphscope/flex/rest/api/connection_api.py +0 -550
  85. graphscope/flex/rest/api/datasource_api.py +0 -2308
  86. graphscope/flex/rest/models/data_source.py +0 -106
  87. graphscope/flex/rest/models/deployment_status.py +0 -108
  88. graphscope/flex/rest/models/edge_data_source.py +0 -112
  89. graphscope/flex/rest/models/edge_mapping_source_vertex_mappings_inner.py +0 -92
  90. graphscope/flex/rest/models/groot_graph_gremlin_interface.py +0 -94
  91. graphscope/flex/rest/models/groot_property.py +0 -104
  92. graphscope/flex/rest/models/update_alert_messages_request.py +0 -110
  93. graphscope/flex/rest/models/vertex_data_source.py +0 -104
  94. graphscope_flex-0.27.0.dist-info/METADATA +0 -17
  95. graphscope_flex-0.27.0.dist-info/RECORD +0 -71
  96. {graphscope_flex-0.27.0.dist-info → graphscope_flex-0.28.0a20240920.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
3
3
  """
4
4
  GraphScope FLEX HTTP SERVICE API
5
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)
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
7
 
8
- The version of the OpenAPI document: 0.9.1
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Contact: graphscope@alibaba-inc.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -17,10 +17,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import StrictInt, StrictStr
21
- from graphscope.flex.rest.models.deployment_info import DeploymentInfo
22
- from graphscope.flex.rest.models.deployment_status import DeploymentStatus
23
- from graphscope.flex.rest.models.node_status import NodeStatus
20
+ from pydantic import StrictBool, StrictStr
21
+ from graphscope.flex.rest.models.get_pod_log_response import GetPodLogResponse
22
+ from graphscope.flex.rest.models.get_resource_usage_response import GetResourceUsageResponse
23
+ from graphscope.flex.rest.models.get_storage_usage_response import GetStorageUsageResponse
24
+ from graphscope.flex.rest.models.running_deployment_info import RunningDeploymentInfo
25
+ from graphscope.flex.rest.models.running_deployment_status import RunningDeploymentStatus
24
26
 
25
27
  from graphscope.flex.rest.api_client import ApiClient, RequestSerialized
26
28
  from graphscope.flex.rest.api_response import ApiResponse
@@ -41,12 +43,257 @@ class DeploymentApi:
41
43
 
42
44
 
43
45
  @validate_call
44
- def fetch_log(
46
+ def get_deployment_info(
47
+ self,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> RunningDeploymentInfo:
61
+ """get_deployment_info
62
+
63
+ Deployment information
64
+
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._get_deployment_info_serialize(
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': "RunningDeploymentInfo",
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 get_deployment_info_with_http_info(
111
+ self,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[RunningDeploymentInfo]:
125
+ """get_deployment_info
126
+
127
+ Deployment information
128
+
129
+ :param _request_timeout: timeout setting for this request. If one
130
+ number provided, it will be total request
131
+ timeout. It can also be a pair (tuple) of
132
+ (connection, read) timeouts.
133
+ :type _request_timeout: int, tuple(int, int), optional
134
+ :param _request_auth: set to override the auth_settings for an a single
135
+ request; this effectively ignores the
136
+ authentication in the spec for a single request.
137
+ :type _request_auth: dict, optional
138
+ :param _content_type: force content-type for the request.
139
+ :type _content_type: str, Optional
140
+ :param _headers: set to override the headers for a single
141
+ request; this effectively ignores the headers
142
+ in the spec for a single request.
143
+ :type _headers: dict, optional
144
+ :param _host_index: set to override the host_index for a single
145
+ request; this effectively ignores the host_index
146
+ in the spec for a single request.
147
+ :type _host_index: int, optional
148
+ :return: Returns the result object.
149
+ """ # noqa: E501
150
+
151
+ _param = self._get_deployment_info_serialize(
152
+ _request_auth=_request_auth,
153
+ _content_type=_content_type,
154
+ _headers=_headers,
155
+ _host_index=_host_index
156
+ )
157
+
158
+ _response_types_map: Dict[str, Optional[str]] = {
159
+ '200': "RunningDeploymentInfo",
160
+ '500': "Error",
161
+ }
162
+ response_data = self.api_client.call_api(
163
+ *_param,
164
+ _request_timeout=_request_timeout
165
+ )
166
+ response_data.read()
167
+ return self.api_client.response_deserialize(
168
+ response_data=response_data,
169
+ response_types_map=_response_types_map,
170
+ )
171
+
172
+
173
+ @validate_call
174
+ def get_deployment_info_without_preload_content(
175
+ self,
176
+ _request_timeout: Union[
177
+ None,
178
+ Annotated[StrictFloat, Field(gt=0)],
179
+ Tuple[
180
+ Annotated[StrictFloat, Field(gt=0)],
181
+ Annotated[StrictFloat, Field(gt=0)]
182
+ ]
183
+ ] = None,
184
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
185
+ _content_type: Optional[StrictStr] = None,
186
+ _headers: Optional[Dict[StrictStr, Any]] = None,
187
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
188
+ ) -> RESTResponseType:
189
+ """get_deployment_info
190
+
191
+ Deployment information
192
+
193
+ :param _request_timeout: timeout setting for this request. If one
194
+ number provided, it will be total request
195
+ timeout. It can also be a pair (tuple) of
196
+ (connection, read) timeouts.
197
+ :type _request_timeout: int, tuple(int, int), optional
198
+ :param _request_auth: set to override the auth_settings for an a single
199
+ request; this effectively ignores the
200
+ authentication in the spec for a single request.
201
+ :type _request_auth: dict, optional
202
+ :param _content_type: force content-type for the request.
203
+ :type _content_type: str, Optional
204
+ :param _headers: set to override the headers for a single
205
+ request; this effectively ignores the headers
206
+ in the spec for a single request.
207
+ :type _headers: dict, optional
208
+ :param _host_index: set to override the host_index for a single
209
+ request; this effectively ignores the host_index
210
+ in the spec for a single request.
211
+ :type _host_index: int, optional
212
+ :return: Returns the result object.
213
+ """ # noqa: E501
214
+
215
+ _param = self._get_deployment_info_serialize(
216
+ _request_auth=_request_auth,
217
+ _content_type=_content_type,
218
+ _headers=_headers,
219
+ _host_index=_host_index
220
+ )
221
+
222
+ _response_types_map: Dict[str, Optional[str]] = {
223
+ '200': "RunningDeploymentInfo",
224
+ '500': "Error",
225
+ }
226
+ response_data = self.api_client.call_api(
227
+ *_param,
228
+ _request_timeout=_request_timeout
229
+ )
230
+ return response_data.response
231
+
232
+
233
+ def _get_deployment_info_serialize(
234
+ self,
235
+ _request_auth,
236
+ _content_type,
237
+ _headers,
238
+ _host_index,
239
+ ) -> RequestSerialized:
240
+
241
+ _host = None
242
+
243
+ _collection_formats: Dict[str, str] = {
244
+ }
245
+
246
+ _path_params: Dict[str, str] = {}
247
+ _query_params: List[Tuple[str, str]] = []
248
+ _header_params: Dict[str, Optional[str]] = _headers or {}
249
+ _form_params: List[Tuple[str, str]] = []
250
+ _files: Dict[str, Union[str, bytes]] = {}
251
+ _body_params: Optional[bytes] = None
252
+
253
+ # process the path parameters
254
+ # process the query parameters
255
+ # process the header parameters
256
+ # process the form parameters
257
+ # process the body parameter
258
+
259
+
260
+ # set the HTTP header `Accept`
261
+ if 'Accept' not in _header_params:
262
+ _header_params['Accept'] = self.api_client.select_header_accept(
263
+ [
264
+ 'application/json'
265
+ ]
266
+ )
267
+
268
+
269
+ # authentication setting
270
+ _auth_settings: List[str] = [
271
+ ]
272
+
273
+ return self.api_client.param_serialize(
274
+ method='GET',
275
+ resource_path='/api/v1/deployment',
276
+ path_params=_path_params,
277
+ query_params=_query_params,
278
+ header_params=_header_params,
279
+ body=_body_params,
280
+ post_params=_form_params,
281
+ files=_files,
282
+ auth_settings=_auth_settings,
283
+ collection_formats=_collection_formats,
284
+ _host=_host,
285
+ _request_auth=_request_auth
286
+ )
287
+
288
+
289
+
290
+
291
+ @validate_call
292
+ def get_deployment_pod_log(
45
293
  self,
46
- component: StrictStr,
47
294
  pod_name: StrictStr,
48
- container_name: StrictStr,
49
- since_seconds: StrictInt,
295
+ component: StrictStr,
296
+ from_cache: StrictBool,
50
297
  _request_timeout: Union[
51
298
  None,
52
299
  Annotated[StrictFloat, Field(gt=0)],
@@ -59,18 +306,17 @@ class DeploymentApi:
59
306
  _content_type: Optional[StrictStr] = None,
60
307
  _headers: Optional[Dict[StrictStr, Any]] = None,
61
308
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
- ) -> List[DeploymentStatus]:
63
- """fetch_log
309
+ ) -> GetPodLogResponse:
310
+ """get_deployment_pod_log
64
311
 
312
+ [Deprecated] Get kubernetes pod's log
65
313
 
66
- :param component: (required)
67
- :type component: str
68
314
  :param pod_name: (required)
69
315
  :type pod_name: str
70
- :param container_name: (required)
71
- :type container_name: str
72
- :param since_seconds: (required)
73
- :type since_seconds: int
316
+ :param component: (required)
317
+ :type component: str
318
+ :param from_cache: (required)
319
+ :type from_cache: bool
74
320
  :param _request_timeout: timeout setting for this request. If one
75
321
  number provided, it will be total request
76
322
  timeout. It can also be a pair (tuple) of
@@ -93,11 +339,10 @@ class DeploymentApi:
93
339
  :return: Returns the result object.
94
340
  """ # noqa: E501
95
341
 
96
- _param = self._fetch_log_serialize(
97
- component=component,
342
+ _param = self._get_deployment_pod_log_serialize(
98
343
  pod_name=pod_name,
99
- container_name=container_name,
100
- since_seconds=since_seconds,
344
+ component=component,
345
+ from_cache=from_cache,
101
346
  _request_auth=_request_auth,
102
347
  _content_type=_content_type,
103
348
  _headers=_headers,
@@ -105,7 +350,8 @@ class DeploymentApi:
105
350
  )
106
351
 
107
352
  _response_types_map: Dict[str, Optional[str]] = {
108
- '200': "List[DeploymentStatus]",
353
+ '200': "GetPodLogResponse",
354
+ '500': "Error",
109
355
  }
110
356
  response_data = self.api_client.call_api(
111
357
  *_param,
@@ -119,12 +365,11 @@ class DeploymentApi:
119
365
 
120
366
 
121
367
  @validate_call
122
- def fetch_log_with_http_info(
368
+ def get_deployment_pod_log_with_http_info(
123
369
  self,
124
- component: StrictStr,
125
370
  pod_name: StrictStr,
126
- container_name: StrictStr,
127
- since_seconds: StrictInt,
371
+ component: StrictStr,
372
+ from_cache: StrictBool,
128
373
  _request_timeout: Union[
129
374
  None,
130
375
  Annotated[StrictFloat, Field(gt=0)],
@@ -137,18 +382,17 @@ class DeploymentApi:
137
382
  _content_type: Optional[StrictStr] = None,
138
383
  _headers: Optional[Dict[StrictStr, Any]] = None,
139
384
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
140
- ) -> ApiResponse[List[DeploymentStatus]]:
141
- """fetch_log
385
+ ) -> ApiResponse[GetPodLogResponse]:
386
+ """get_deployment_pod_log
142
387
 
388
+ [Deprecated] Get kubernetes pod's log
143
389
 
144
- :param component: (required)
145
- :type component: str
146
390
  :param pod_name: (required)
147
391
  :type pod_name: str
148
- :param container_name: (required)
149
- :type container_name: str
150
- :param since_seconds: (required)
151
- :type since_seconds: int
392
+ :param component: (required)
393
+ :type component: str
394
+ :param from_cache: (required)
395
+ :type from_cache: bool
152
396
  :param _request_timeout: timeout setting for this request. If one
153
397
  number provided, it will be total request
154
398
  timeout. It can also be a pair (tuple) of
@@ -171,11 +415,10 @@ class DeploymentApi:
171
415
  :return: Returns the result object.
172
416
  """ # noqa: E501
173
417
 
174
- _param = self._fetch_log_serialize(
175
- component=component,
418
+ _param = self._get_deployment_pod_log_serialize(
176
419
  pod_name=pod_name,
177
- container_name=container_name,
178
- since_seconds=since_seconds,
420
+ component=component,
421
+ from_cache=from_cache,
179
422
  _request_auth=_request_auth,
180
423
  _content_type=_content_type,
181
424
  _headers=_headers,
@@ -183,7 +426,8 @@ class DeploymentApi:
183
426
  )
184
427
 
185
428
  _response_types_map: Dict[str, Optional[str]] = {
186
- '200': "List[DeploymentStatus]",
429
+ '200': "GetPodLogResponse",
430
+ '500': "Error",
187
431
  }
188
432
  response_data = self.api_client.call_api(
189
433
  *_param,
@@ -197,12 +441,11 @@ class DeploymentApi:
197
441
 
198
442
 
199
443
  @validate_call
200
- def fetch_log_without_preload_content(
444
+ def get_deployment_pod_log_without_preload_content(
201
445
  self,
202
- component: StrictStr,
203
446
  pod_name: StrictStr,
204
- container_name: StrictStr,
205
- since_seconds: StrictInt,
447
+ component: StrictStr,
448
+ from_cache: StrictBool,
206
449
  _request_timeout: Union[
207
450
  None,
208
451
  Annotated[StrictFloat, Field(gt=0)],
@@ -216,17 +459,16 @@ class DeploymentApi:
216
459
  _headers: Optional[Dict[StrictStr, Any]] = None,
217
460
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
218
461
  ) -> RESTResponseType:
219
- """fetch_log
462
+ """get_deployment_pod_log
220
463
 
464
+ [Deprecated] Get kubernetes pod's log
221
465
 
222
- :param component: (required)
223
- :type component: str
224
466
  :param pod_name: (required)
225
467
  :type pod_name: str
226
- :param container_name: (required)
227
- :type container_name: str
228
- :param since_seconds: (required)
229
- :type since_seconds: int
468
+ :param component: (required)
469
+ :type component: str
470
+ :param from_cache: (required)
471
+ :type from_cache: bool
230
472
  :param _request_timeout: timeout setting for this request. If one
231
473
  number provided, it will be total request
232
474
  timeout. It can also be a pair (tuple) of
@@ -249,11 +491,10 @@ class DeploymentApi:
249
491
  :return: Returns the result object.
250
492
  """ # noqa: E501
251
493
 
252
- _param = self._fetch_log_serialize(
253
- component=component,
494
+ _param = self._get_deployment_pod_log_serialize(
254
495
  pod_name=pod_name,
255
- container_name=container_name,
256
- since_seconds=since_seconds,
496
+ component=component,
497
+ from_cache=from_cache,
257
498
  _request_auth=_request_auth,
258
499
  _content_type=_content_type,
259
500
  _headers=_headers,
@@ -261,7 +502,8 @@ class DeploymentApi:
261
502
  )
262
503
 
263
504
  _response_types_map: Dict[str, Optional[str]] = {
264
- '200': "List[DeploymentStatus]",
505
+ '200': "GetPodLogResponse",
506
+ '500': "Error",
265
507
  }
266
508
  response_data = self.api_client.call_api(
267
509
  *_param,
@@ -270,12 +512,11 @@ class DeploymentApi:
270
512
  return response_data.response
271
513
 
272
514
 
273
- def _fetch_log_serialize(
515
+ def _get_deployment_pod_log_serialize(
274
516
  self,
275
- component,
276
517
  pod_name,
277
- container_name,
278
- since_seconds,
518
+ component,
519
+ from_cache,
279
520
  _request_auth,
280
521
  _content_type,
281
522
  _headers,
@@ -291,26 +532,22 @@ class DeploymentApi:
291
532
  _query_params: List[Tuple[str, str]] = []
292
533
  _header_params: Dict[str, Optional[str]] = _headers or {}
293
534
  _form_params: List[Tuple[str, str]] = []
294
- _files: Dict[str, str] = {}
535
+ _files: Dict[str, Union[str, bytes]] = {}
295
536
  _body_params: Optional[bytes] = None
296
537
 
297
538
  # process the path parameters
298
539
  # process the query parameters
299
- if component is not None:
300
-
301
- _query_params.append(('component', component))
302
-
303
540
  if pod_name is not None:
304
541
 
305
542
  _query_params.append(('pod_name', pod_name))
306
543
 
307
- if container_name is not None:
544
+ if component is not None:
308
545
 
309
- _query_params.append(('container_name', container_name))
546
+ _query_params.append(('component', component))
310
547
 
311
- if since_seconds is not None:
548
+ if from_cache is not None:
312
549
 
313
- _query_params.append(('since_seconds', since_seconds))
550
+ _query_params.append(('from_cache', from_cache))
314
551
 
315
552
  # process the header parameters
316
553
  # process the form parameters
@@ -318,11 +555,12 @@ class DeploymentApi:
318
555
 
319
556
 
320
557
  # set the HTTP header `Accept`
321
- _header_params['Accept'] = self.api_client.select_header_accept(
322
- [
323
- 'application/json'
324
- ]
325
- )
558
+ if 'Accept' not in _header_params:
559
+ _header_params['Accept'] = self.api_client.select_header_accept(
560
+ [
561
+ 'application/json'
562
+ ]
563
+ )
326
564
 
327
565
 
328
566
  # authentication setting
@@ -348,7 +586,7 @@ class DeploymentApi:
348
586
 
349
587
 
350
588
  @validate_call
351
- def get_deployment_info(
589
+ def get_deployment_resource_usage(
352
590
  self,
353
591
  _request_timeout: Union[
354
592
  None,
@@ -362,10 +600,10 @@ class DeploymentApi:
362
600
  _content_type: Optional[StrictStr] = None,
363
601
  _headers: Optional[Dict[StrictStr, Any]] = None,
364
602
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
365
- ) -> DeploymentInfo:
366
- """get_deployment_info
603
+ ) -> GetResourceUsageResponse:
604
+ """get_deployment_resource_usage
367
605
 
368
- Get deployment's meta info
606
+ [Deprecated] Get resource usage(cpu/memory) of cluster
369
607
 
370
608
  :param _request_timeout: timeout setting for this request. If one
371
609
  number provided, it will be total request
@@ -389,7 +627,7 @@ class DeploymentApi:
389
627
  :return: Returns the result object.
390
628
  """ # noqa: E501
391
629
 
392
- _param = self._get_deployment_info_serialize(
630
+ _param = self._get_deployment_resource_usage_serialize(
393
631
  _request_auth=_request_auth,
394
632
  _content_type=_content_type,
395
633
  _headers=_headers,
@@ -397,7 +635,8 @@ class DeploymentApi:
397
635
  )
398
636
 
399
637
  _response_types_map: Dict[str, Optional[str]] = {
400
- '200': "DeploymentInfo",
638
+ '200': "GetResourceUsageResponse",
639
+ '500': "Error",
401
640
  }
402
641
  response_data = self.api_client.call_api(
403
642
  *_param,
@@ -411,7 +650,7 @@ class DeploymentApi:
411
650
 
412
651
 
413
652
  @validate_call
414
- def get_deployment_info_with_http_info(
653
+ def get_deployment_resource_usage_with_http_info(
415
654
  self,
416
655
  _request_timeout: Union[
417
656
  None,
@@ -425,10 +664,10 @@ class DeploymentApi:
425
664
  _content_type: Optional[StrictStr] = None,
426
665
  _headers: Optional[Dict[StrictStr, Any]] = None,
427
666
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
428
- ) -> ApiResponse[DeploymentInfo]:
429
- """get_deployment_info
667
+ ) -> ApiResponse[GetResourceUsageResponse]:
668
+ """get_deployment_resource_usage
430
669
 
431
- Get deployment's meta info
670
+ [Deprecated] Get resource usage(cpu/memory) of cluster
432
671
 
433
672
  :param _request_timeout: timeout setting for this request. If one
434
673
  number provided, it will be total request
@@ -452,7 +691,7 @@ class DeploymentApi:
452
691
  :return: Returns the result object.
453
692
  """ # noqa: E501
454
693
 
455
- _param = self._get_deployment_info_serialize(
694
+ _param = self._get_deployment_resource_usage_serialize(
456
695
  _request_auth=_request_auth,
457
696
  _content_type=_content_type,
458
697
  _headers=_headers,
@@ -460,7 +699,8 @@ class DeploymentApi:
460
699
  )
461
700
 
462
701
  _response_types_map: Dict[str, Optional[str]] = {
463
- '200': "DeploymentInfo",
702
+ '200': "GetResourceUsageResponse",
703
+ '500': "Error",
464
704
  }
465
705
  response_data = self.api_client.call_api(
466
706
  *_param,
@@ -474,7 +714,7 @@ class DeploymentApi:
474
714
 
475
715
 
476
716
  @validate_call
477
- def get_deployment_info_without_preload_content(
717
+ def get_deployment_resource_usage_without_preload_content(
478
718
  self,
479
719
  _request_timeout: Union[
480
720
  None,
@@ -489,9 +729,9 @@ class DeploymentApi:
489
729
  _headers: Optional[Dict[StrictStr, Any]] = None,
490
730
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
491
731
  ) -> RESTResponseType:
492
- """get_deployment_info
732
+ """get_deployment_resource_usage
493
733
 
494
- Get deployment's meta info
734
+ [Deprecated] Get resource usage(cpu/memory) of cluster
495
735
 
496
736
  :param _request_timeout: timeout setting for this request. If one
497
737
  number provided, it will be total request
@@ -515,7 +755,7 @@ class DeploymentApi:
515
755
  :return: Returns the result object.
516
756
  """ # noqa: E501
517
757
 
518
- _param = self._get_deployment_info_serialize(
758
+ _param = self._get_deployment_resource_usage_serialize(
519
759
  _request_auth=_request_auth,
520
760
  _content_type=_content_type,
521
761
  _headers=_headers,
@@ -523,7 +763,8 @@ class DeploymentApi:
523
763
  )
524
764
 
525
765
  _response_types_map: Dict[str, Optional[str]] = {
526
- '200': "DeploymentInfo",
766
+ '200': "GetResourceUsageResponse",
767
+ '500': "Error",
527
768
  }
528
769
  response_data = self.api_client.call_api(
529
770
  *_param,
@@ -532,7 +773,7 @@ class DeploymentApi:
532
773
  return response_data.response
533
774
 
534
775
 
535
- def _get_deployment_info_serialize(
776
+ def _get_deployment_resource_usage_serialize(
536
777
  self,
537
778
  _request_auth,
538
779
  _content_type,
@@ -549,7 +790,7 @@ class DeploymentApi:
549
790
  _query_params: List[Tuple[str, str]] = []
550
791
  _header_params: Dict[str, Optional[str]] = _headers or {}
551
792
  _form_params: List[Tuple[str, str]] = []
552
- _files: Dict[str, str] = {}
793
+ _files: Dict[str, Union[str, bytes]] = {}
553
794
  _body_params: Optional[bytes] = None
554
795
 
555
796
  # process the path parameters
@@ -560,11 +801,12 @@ class DeploymentApi:
560
801
 
561
802
 
562
803
  # set the HTTP header `Accept`
563
- _header_params['Accept'] = self.api_client.select_header_accept(
564
- [
565
- 'application/json'
566
- ]
567
- )
804
+ if 'Accept' not in _header_params:
805
+ _header_params['Accept'] = self.api_client.select_header_accept(
806
+ [
807
+ 'application/json'
808
+ ]
809
+ )
568
810
 
569
811
 
570
812
  # authentication setting
@@ -573,7 +815,7 @@ class DeploymentApi:
573
815
 
574
816
  return self.api_client.param_serialize(
575
817
  method='GET',
576
- resource_path='/api/v1/deployment/info',
818
+ resource_path='/api/v1/deployment/resource/usage',
577
819
  path_params=_path_params,
578
820
  query_params=_query_params,
579
821
  header_params=_header_params,
@@ -604,10 +846,10 @@ class DeploymentApi:
604
846
  _content_type: Optional[StrictStr] = None,
605
847
  _headers: Optional[Dict[StrictStr, Any]] = None,
606
848
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
607
- ) -> List[DeploymentStatus]:
849
+ ) -> RunningDeploymentStatus:
608
850
  """get_deployment_status
609
851
 
610
- Get deployment's status (k8s only)
852
+ Get deployment status of cluster
611
853
 
612
854
  :param _request_timeout: timeout setting for this request. If one
613
855
  number provided, it will be total request
@@ -639,7 +881,8 @@ class DeploymentApi:
639
881
  )
640
882
 
641
883
  _response_types_map: Dict[str, Optional[str]] = {
642
- '200': "List[DeploymentStatus]",
884
+ '200': "RunningDeploymentStatus",
885
+ '500': "Error",
643
886
  }
644
887
  response_data = self.api_client.call_api(
645
888
  *_param,
@@ -667,10 +910,10 @@ class DeploymentApi:
667
910
  _content_type: Optional[StrictStr] = None,
668
911
  _headers: Optional[Dict[StrictStr, Any]] = None,
669
912
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
- ) -> ApiResponse[List[DeploymentStatus]]:
913
+ ) -> ApiResponse[RunningDeploymentStatus]:
671
914
  """get_deployment_status
672
915
 
673
- Get deployment's status (k8s only)
916
+ Get deployment status of cluster
674
917
 
675
918
  :param _request_timeout: timeout setting for this request. If one
676
919
  number provided, it will be total request
@@ -702,7 +945,8 @@ class DeploymentApi:
702
945
  )
703
946
 
704
947
  _response_types_map: Dict[str, Optional[str]] = {
705
- '200': "List[DeploymentStatus]",
948
+ '200': "RunningDeploymentStatus",
949
+ '500': "Error",
706
950
  }
707
951
  response_data = self.api_client.call_api(
708
952
  *_param,
@@ -733,7 +977,7 @@ class DeploymentApi:
733
977
  ) -> RESTResponseType:
734
978
  """get_deployment_status
735
979
 
736
- Get deployment's status (k8s only)
980
+ Get deployment status of cluster
737
981
 
738
982
  :param _request_timeout: timeout setting for this request. If one
739
983
  number provided, it will be total request
@@ -765,7 +1009,8 @@ class DeploymentApi:
765
1009
  )
766
1010
 
767
1011
  _response_types_map: Dict[str, Optional[str]] = {
768
- '200': "List[DeploymentStatus]",
1012
+ '200': "RunningDeploymentStatus",
1013
+ '500': "Error",
769
1014
  }
770
1015
  response_data = self.api_client.call_api(
771
1016
  *_param,
@@ -791,7 +1036,7 @@ class DeploymentApi:
791
1036
  _query_params: List[Tuple[str, str]] = []
792
1037
  _header_params: Dict[str, Optional[str]] = _headers or {}
793
1038
  _form_params: List[Tuple[str, str]] = []
794
- _files: Dict[str, str] = {}
1039
+ _files: Dict[str, Union[str, bytes]] = {}
795
1040
  _body_params: Optional[bytes] = None
796
1041
 
797
1042
  # process the path parameters
@@ -802,11 +1047,12 @@ class DeploymentApi:
802
1047
 
803
1048
 
804
1049
  # set the HTTP header `Accept`
805
- _header_params['Accept'] = self.api_client.select_header_accept(
806
- [
807
- 'application/json'
808
- ]
809
- )
1050
+ if 'Accept' not in _header_params:
1051
+ _header_params['Accept'] = self.api_client.select_header_accept(
1052
+ [
1053
+ 'application/json'
1054
+ ]
1055
+ )
810
1056
 
811
1057
 
812
1058
  # authentication setting
@@ -832,7 +1078,7 @@ class DeploymentApi:
832
1078
 
833
1079
 
834
1080
  @validate_call
835
- def get_node_status(
1081
+ def get_storage_usage(
836
1082
  self,
837
1083
  _request_timeout: Union[
838
1084
  None,
@@ -846,10 +1092,10 @@ class DeploymentApi:
846
1092
  _content_type: Optional[StrictStr] = None,
847
1093
  _headers: Optional[Dict[StrictStr, Any]] = None,
848
1094
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
849
- ) -> List[NodeStatus]:
850
- """get_node_status
1095
+ ) -> GetStorageUsageResponse:
1096
+ """get_storage_usage
851
1097
 
852
- Get node status (cpu/memory/disk, local only)
1098
+ [Deprecated] Get storage usage of Groot
853
1099
 
854
1100
  :param _request_timeout: timeout setting for this request. If one
855
1101
  number provided, it will be total request
@@ -873,7 +1119,7 @@ class DeploymentApi:
873
1119
  :return: Returns the result object.
874
1120
  """ # noqa: E501
875
1121
 
876
- _param = self._get_node_status_serialize(
1122
+ _param = self._get_storage_usage_serialize(
877
1123
  _request_auth=_request_auth,
878
1124
  _content_type=_content_type,
879
1125
  _headers=_headers,
@@ -881,7 +1127,8 @@ class DeploymentApi:
881
1127
  )
882
1128
 
883
1129
  _response_types_map: Dict[str, Optional[str]] = {
884
- '200': "List[NodeStatus]",
1130
+ '200': "GetStorageUsageResponse",
1131
+ '500': "Error",
885
1132
  }
886
1133
  response_data = self.api_client.call_api(
887
1134
  *_param,
@@ -895,7 +1142,7 @@ class DeploymentApi:
895
1142
 
896
1143
 
897
1144
  @validate_call
898
- def get_node_status_with_http_info(
1145
+ def get_storage_usage_with_http_info(
899
1146
  self,
900
1147
  _request_timeout: Union[
901
1148
  None,
@@ -909,10 +1156,10 @@ class DeploymentApi:
909
1156
  _content_type: Optional[StrictStr] = None,
910
1157
  _headers: Optional[Dict[StrictStr, Any]] = None,
911
1158
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
912
- ) -> ApiResponse[List[NodeStatus]]:
913
- """get_node_status
1159
+ ) -> ApiResponse[GetStorageUsageResponse]:
1160
+ """get_storage_usage
914
1161
 
915
- Get node status (cpu/memory/disk, local only)
1162
+ [Deprecated] Get storage usage of Groot
916
1163
 
917
1164
  :param _request_timeout: timeout setting for this request. If one
918
1165
  number provided, it will be total request
@@ -936,7 +1183,7 @@ class DeploymentApi:
936
1183
  :return: Returns the result object.
937
1184
  """ # noqa: E501
938
1185
 
939
- _param = self._get_node_status_serialize(
1186
+ _param = self._get_storage_usage_serialize(
940
1187
  _request_auth=_request_auth,
941
1188
  _content_type=_content_type,
942
1189
  _headers=_headers,
@@ -944,7 +1191,8 @@ class DeploymentApi:
944
1191
  )
945
1192
 
946
1193
  _response_types_map: Dict[str, Optional[str]] = {
947
- '200': "List[NodeStatus]",
1194
+ '200': "GetStorageUsageResponse",
1195
+ '500': "Error",
948
1196
  }
949
1197
  response_data = self.api_client.call_api(
950
1198
  *_param,
@@ -958,7 +1206,7 @@ class DeploymentApi:
958
1206
 
959
1207
 
960
1208
  @validate_call
961
- def get_node_status_without_preload_content(
1209
+ def get_storage_usage_without_preload_content(
962
1210
  self,
963
1211
  _request_timeout: Union[
964
1212
  None,
@@ -973,9 +1221,9 @@ class DeploymentApi:
973
1221
  _headers: Optional[Dict[StrictStr, Any]] = None,
974
1222
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
975
1223
  ) -> RESTResponseType:
976
- """get_node_status
1224
+ """get_storage_usage
977
1225
 
978
- Get node status (cpu/memory/disk, local only)
1226
+ [Deprecated] Get storage usage of Groot
979
1227
 
980
1228
  :param _request_timeout: timeout setting for this request. If one
981
1229
  number provided, it will be total request
@@ -999,7 +1247,7 @@ class DeploymentApi:
999
1247
  :return: Returns the result object.
1000
1248
  """ # noqa: E501
1001
1249
 
1002
- _param = self._get_node_status_serialize(
1250
+ _param = self._get_storage_usage_serialize(
1003
1251
  _request_auth=_request_auth,
1004
1252
  _content_type=_content_type,
1005
1253
  _headers=_headers,
@@ -1007,7 +1255,8 @@ class DeploymentApi:
1007
1255
  )
1008
1256
 
1009
1257
  _response_types_map: Dict[str, Optional[str]] = {
1010
- '200': "List[NodeStatus]",
1258
+ '200': "GetStorageUsageResponse",
1259
+ '500': "Error",
1011
1260
  }
1012
1261
  response_data = self.api_client.call_api(
1013
1262
  *_param,
@@ -1016,7 +1265,7 @@ class DeploymentApi:
1016
1265
  return response_data.response
1017
1266
 
1018
1267
 
1019
- def _get_node_status_serialize(
1268
+ def _get_storage_usage_serialize(
1020
1269
  self,
1021
1270
  _request_auth,
1022
1271
  _content_type,
@@ -1033,7 +1282,7 @@ class DeploymentApi:
1033
1282
  _query_params: List[Tuple[str, str]] = []
1034
1283
  _header_params: Dict[str, Optional[str]] = _headers or {}
1035
1284
  _form_params: List[Tuple[str, str]] = []
1036
- _files: Dict[str, str] = {}
1285
+ _files: Dict[str, Union[str, bytes]] = {}
1037
1286
  _body_params: Optional[bytes] = None
1038
1287
 
1039
1288
  # process the path parameters
@@ -1044,11 +1293,12 @@ class DeploymentApi:
1044
1293
 
1045
1294
 
1046
1295
  # set the HTTP header `Accept`
1047
- _header_params['Accept'] = self.api_client.select_header_accept(
1048
- [
1049
- 'application/json'
1050
- ]
1051
- )
1296
+ if 'Accept' not in _header_params:
1297
+ _header_params['Accept'] = self.api_client.select_header_accept(
1298
+ [
1299
+ 'application/json'
1300
+ ]
1301
+ )
1052
1302
 
1053
1303
 
1054
1304
  # authentication setting
@@ -1057,7 +1307,7 @@ class DeploymentApi:
1057
1307
 
1058
1308
  return self.api_client.param_serialize(
1059
1309
  method='GET',
1060
- resource_path='/api/v1/node/status',
1310
+ resource_path='/api/v1/deployment/storage/usage',
1061
1311
  path_params=_path_params,
1062
1312
  query_params=_query_params,
1063
1313
  header_params=_header_params,