anyscale 0.26.67__py3-none-any.whl → 0.26.69__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.
- anyscale/client/README.md +22 -0
- anyscale/client/openapi_client/__init__.py +16 -0
- anyscale/client/openapi_client/api/default_api.py +801 -19
- anyscale/client/openapi_client/models/__init__.py +16 -0
- anyscale/client/openapi_client/models/clusterdashboardnode_response.py +121 -0
- anyscale/client/openapi_client/models/lineage_artifact.py +383 -0
- anyscale/client/openapi_client/models/lineage_artifact_sort_field.py +101 -0
- anyscale/client/openapi_client/models/lineage_artifact_type.py +100 -0
- anyscale/client/openapi_client/models/lineage_direction.py +101 -0
- anyscale/client/openapi_client/models/lineage_graph.py +179 -0
- anyscale/client/openapi_client/models/lineage_graph_node.py +467 -0
- anyscale/client/openapi_client/models/lineage_node_type.py +100 -0
- anyscale/client/openapi_client/models/lineage_workload.py +383 -0
- anyscale/client/openapi_client/models/lineage_workload_sort_field.py +101 -0
- anyscale/client/openapi_client/models/lineage_workload_type.py +101 -0
- anyscale/client/openapi_client/models/lineageartifact_list_response.py +147 -0
- anyscale/client/openapi_client/models/lineageartifact_response.py +121 -0
- anyscale/client/openapi_client/models/lineagegraph_response.py +121 -0
- anyscale/client/openapi_client/models/lineageworkload_list_response.py +147 -0
- anyscale/client/openapi_client/models/lineageworkload_response.py +121 -0
- anyscale/commands/cloud_commands.py +15 -9
- anyscale/commands/command_examples.py +53 -0
- anyscale/commands/setup_k8s.py +521 -50
- anyscale/controllers/cloud_controller.py +13 -12
- anyscale/controllers/kubernetes_verifier.py +57 -11
- anyscale/version.py +1 -1
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/METADATA +1 -1
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/RECORD +33 -17
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/WHEEL +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.69.dist-info}/top_level.txt +0 -0
|
@@ -17077,6 +17077,366 @@ class DefaultApi(object):
|
|
|
17077
17077
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
17078
17078
|
collection_formats=collection_formats)
|
|
17079
17079
|
|
|
17080
|
+
def get_lineage_api_v2_lineage_get(self, node_id, node_type, direction, **kwargs): # noqa: E501
|
|
17081
|
+
"""Get Lineage # noqa: E501
|
|
17082
|
+
|
|
17083
|
+
Get lineage graph for a node (1-level deep only). # noqa: E501
|
|
17084
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17085
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17086
|
+
>>> thread = api.get_lineage_api_v2_lineage_get(node_id, node_type, direction, async_req=True)
|
|
17087
|
+
>>> result = thread.get()
|
|
17088
|
+
|
|
17089
|
+
:param async_req bool: execute request asynchronously
|
|
17090
|
+
:param str node_id: ID of the lineage node (required)
|
|
17091
|
+
:param LineageNodeType node_type: Type of node (ARTIFACT, WORKLOAD) (required)
|
|
17092
|
+
:param LineageDirection direction: Lineage direction (IN, OUT, BIDIR) (required)
|
|
17093
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17094
|
+
be returned without reading/decoding response
|
|
17095
|
+
data. Default is True.
|
|
17096
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17097
|
+
number provided, it will be total request
|
|
17098
|
+
timeout. It can also be a pair (tuple) of
|
|
17099
|
+
(connection, read) timeouts.
|
|
17100
|
+
:return: LineagegraphResponse
|
|
17101
|
+
If the method is called asynchronously,
|
|
17102
|
+
returns the request thread.
|
|
17103
|
+
"""
|
|
17104
|
+
kwargs['_return_http_data_only'] = True
|
|
17105
|
+
return self.get_lineage_api_v2_lineage_get_with_http_info(node_id, node_type, direction, **kwargs) # noqa: E501
|
|
17106
|
+
|
|
17107
|
+
def get_lineage_api_v2_lineage_get_with_http_info(self, node_id, node_type, direction, **kwargs): # noqa: E501
|
|
17108
|
+
"""Get Lineage # noqa: E501
|
|
17109
|
+
|
|
17110
|
+
Get lineage graph for a node (1-level deep only). # noqa: E501
|
|
17111
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17112
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17113
|
+
>>> thread = api.get_lineage_api_v2_lineage_get_with_http_info(node_id, node_type, direction, async_req=True)
|
|
17114
|
+
>>> result = thread.get()
|
|
17115
|
+
|
|
17116
|
+
:param async_req bool: execute request asynchronously
|
|
17117
|
+
:param str node_id: ID of the lineage node (required)
|
|
17118
|
+
:param LineageNodeType node_type: Type of node (ARTIFACT, WORKLOAD) (required)
|
|
17119
|
+
:param LineageDirection direction: Lineage direction (IN, OUT, BIDIR) (required)
|
|
17120
|
+
:param _return_http_data_only: response data without head status code
|
|
17121
|
+
and headers
|
|
17122
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17123
|
+
be returned without reading/decoding response
|
|
17124
|
+
data. Default is True.
|
|
17125
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17126
|
+
number provided, it will be total request
|
|
17127
|
+
timeout. It can also be a pair (tuple) of
|
|
17128
|
+
(connection, read) timeouts.
|
|
17129
|
+
:return: tuple(LineagegraphResponse, status_code(int), headers(HTTPHeaderDict))
|
|
17130
|
+
If the method is called asynchronously,
|
|
17131
|
+
returns the request thread.
|
|
17132
|
+
"""
|
|
17133
|
+
|
|
17134
|
+
local_var_params = locals()
|
|
17135
|
+
|
|
17136
|
+
all_params = [
|
|
17137
|
+
'node_id',
|
|
17138
|
+
'node_type',
|
|
17139
|
+
'direction'
|
|
17140
|
+
]
|
|
17141
|
+
all_params.extend(
|
|
17142
|
+
[
|
|
17143
|
+
'async_req',
|
|
17144
|
+
'_return_http_data_only',
|
|
17145
|
+
'_preload_content',
|
|
17146
|
+
'_request_timeout'
|
|
17147
|
+
]
|
|
17148
|
+
)
|
|
17149
|
+
|
|
17150
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
17151
|
+
if key not in all_params:
|
|
17152
|
+
raise ApiTypeError(
|
|
17153
|
+
"Got an unexpected keyword argument '%s'"
|
|
17154
|
+
" to method get_lineage_api_v2_lineage_get" % key
|
|
17155
|
+
)
|
|
17156
|
+
local_var_params[key] = val
|
|
17157
|
+
del local_var_params['kwargs']
|
|
17158
|
+
# verify the required parameter 'node_id' is set
|
|
17159
|
+
if self.api_client.client_side_validation and ('node_id' not in local_var_params or # noqa: E501
|
|
17160
|
+
local_var_params['node_id'] is None): # noqa: E501
|
|
17161
|
+
raise ApiValueError("Missing the required parameter `node_id` when calling `get_lineage_api_v2_lineage_get`") # noqa: E501
|
|
17162
|
+
# verify the required parameter 'node_type' is set
|
|
17163
|
+
if self.api_client.client_side_validation and ('node_type' not in local_var_params or # noqa: E501
|
|
17164
|
+
local_var_params['node_type'] is None): # noqa: E501
|
|
17165
|
+
raise ApiValueError("Missing the required parameter `node_type` when calling `get_lineage_api_v2_lineage_get`") # noqa: E501
|
|
17166
|
+
# verify the required parameter 'direction' is set
|
|
17167
|
+
if self.api_client.client_side_validation and ('direction' not in local_var_params or # noqa: E501
|
|
17168
|
+
local_var_params['direction'] is None): # noqa: E501
|
|
17169
|
+
raise ApiValueError("Missing the required parameter `direction` when calling `get_lineage_api_v2_lineage_get`") # noqa: E501
|
|
17170
|
+
|
|
17171
|
+
collection_formats = {}
|
|
17172
|
+
|
|
17173
|
+
path_params = {}
|
|
17174
|
+
|
|
17175
|
+
query_params = []
|
|
17176
|
+
if 'node_id' in local_var_params and local_var_params['node_id'] is not None: # noqa: E501
|
|
17177
|
+
query_params.append(('node_id', local_var_params['node_id'])) # noqa: E501
|
|
17178
|
+
if 'node_type' in local_var_params and local_var_params['node_type'] is not None: # noqa: E501
|
|
17179
|
+
query_params.append(('node_type', local_var_params['node_type'])) # noqa: E501
|
|
17180
|
+
if 'direction' in local_var_params and local_var_params['direction'] is not None: # noqa: E501
|
|
17181
|
+
query_params.append(('direction', local_var_params['direction'])) # noqa: E501
|
|
17182
|
+
|
|
17183
|
+
header_params = {}
|
|
17184
|
+
|
|
17185
|
+
form_params = []
|
|
17186
|
+
local_var_files = {}
|
|
17187
|
+
|
|
17188
|
+
body_params = None
|
|
17189
|
+
# HTTP header `Accept`
|
|
17190
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
17191
|
+
['application/json']) # noqa: E501
|
|
17192
|
+
|
|
17193
|
+
# Authentication setting
|
|
17194
|
+
auth_settings = [] # noqa: E501
|
|
17195
|
+
|
|
17196
|
+
return self.api_client.call_api(
|
|
17197
|
+
'/api/v2/lineage/', 'GET',
|
|
17198
|
+
path_params,
|
|
17199
|
+
query_params,
|
|
17200
|
+
header_params,
|
|
17201
|
+
body=body_params,
|
|
17202
|
+
post_params=form_params,
|
|
17203
|
+
files=local_var_files,
|
|
17204
|
+
response_type='LineagegraphResponse', # noqa: E501
|
|
17205
|
+
auth_settings=auth_settings,
|
|
17206
|
+
async_req=local_var_params.get('async_req'),
|
|
17207
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
17208
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
17209
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
17210
|
+
collection_formats=collection_formats)
|
|
17211
|
+
|
|
17212
|
+
def get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get(self, artifact_id, **kwargs): # noqa: E501
|
|
17213
|
+
"""Get Lineage Artifact # noqa: E501
|
|
17214
|
+
|
|
17215
|
+
Get details of an Anyscale tracked artifact. # noqa: E501
|
|
17216
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17217
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17218
|
+
>>> thread = api.get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get(artifact_id, async_req=True)
|
|
17219
|
+
>>> result = thread.get()
|
|
17220
|
+
|
|
17221
|
+
:param async_req bool: execute request asynchronously
|
|
17222
|
+
:param str artifact_id: (required)
|
|
17223
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17224
|
+
be returned without reading/decoding response
|
|
17225
|
+
data. Default is True.
|
|
17226
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17227
|
+
number provided, it will be total request
|
|
17228
|
+
timeout. It can also be a pair (tuple) of
|
|
17229
|
+
(connection, read) timeouts.
|
|
17230
|
+
:return: LineageartifactResponse
|
|
17231
|
+
If the method is called asynchronously,
|
|
17232
|
+
returns the request thread.
|
|
17233
|
+
"""
|
|
17234
|
+
kwargs['_return_http_data_only'] = True
|
|
17235
|
+
return self.get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get_with_http_info(artifact_id, **kwargs) # noqa: E501
|
|
17236
|
+
|
|
17237
|
+
def get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get_with_http_info(self, artifact_id, **kwargs): # noqa: E501
|
|
17238
|
+
"""Get Lineage Artifact # noqa: E501
|
|
17239
|
+
|
|
17240
|
+
Get details of an Anyscale tracked artifact. # noqa: E501
|
|
17241
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17242
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17243
|
+
>>> thread = api.get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get_with_http_info(artifact_id, async_req=True)
|
|
17244
|
+
>>> result = thread.get()
|
|
17245
|
+
|
|
17246
|
+
:param async_req bool: execute request asynchronously
|
|
17247
|
+
:param str artifact_id: (required)
|
|
17248
|
+
:param _return_http_data_only: response data without head status code
|
|
17249
|
+
and headers
|
|
17250
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17251
|
+
be returned without reading/decoding response
|
|
17252
|
+
data. Default is True.
|
|
17253
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17254
|
+
number provided, it will be total request
|
|
17255
|
+
timeout. It can also be a pair (tuple) of
|
|
17256
|
+
(connection, read) timeouts.
|
|
17257
|
+
:return: tuple(LineageartifactResponse, status_code(int), headers(HTTPHeaderDict))
|
|
17258
|
+
If the method is called asynchronously,
|
|
17259
|
+
returns the request thread.
|
|
17260
|
+
"""
|
|
17261
|
+
|
|
17262
|
+
local_var_params = locals()
|
|
17263
|
+
|
|
17264
|
+
all_params = [
|
|
17265
|
+
'artifact_id'
|
|
17266
|
+
]
|
|
17267
|
+
all_params.extend(
|
|
17268
|
+
[
|
|
17269
|
+
'async_req',
|
|
17270
|
+
'_return_http_data_only',
|
|
17271
|
+
'_preload_content',
|
|
17272
|
+
'_request_timeout'
|
|
17273
|
+
]
|
|
17274
|
+
)
|
|
17275
|
+
|
|
17276
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
17277
|
+
if key not in all_params:
|
|
17278
|
+
raise ApiTypeError(
|
|
17279
|
+
"Got an unexpected keyword argument '%s'"
|
|
17280
|
+
" to method get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get" % key
|
|
17281
|
+
)
|
|
17282
|
+
local_var_params[key] = val
|
|
17283
|
+
del local_var_params['kwargs']
|
|
17284
|
+
# verify the required parameter 'artifact_id' is set
|
|
17285
|
+
if self.api_client.client_side_validation and ('artifact_id' not in local_var_params or # noqa: E501
|
|
17286
|
+
local_var_params['artifact_id'] is None): # noqa: E501
|
|
17287
|
+
raise ApiValueError("Missing the required parameter `artifact_id` when calling `get_lineage_artifact_api_v2_lineage_artifacts_artifact_id_get`") # noqa: E501
|
|
17288
|
+
|
|
17289
|
+
collection_formats = {}
|
|
17290
|
+
|
|
17291
|
+
path_params = {}
|
|
17292
|
+
if 'artifact_id' in local_var_params:
|
|
17293
|
+
path_params['artifact_id'] = local_var_params['artifact_id'] # noqa: E501
|
|
17294
|
+
|
|
17295
|
+
query_params = []
|
|
17296
|
+
|
|
17297
|
+
header_params = {}
|
|
17298
|
+
|
|
17299
|
+
form_params = []
|
|
17300
|
+
local_var_files = {}
|
|
17301
|
+
|
|
17302
|
+
body_params = None
|
|
17303
|
+
# HTTP header `Accept`
|
|
17304
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
17305
|
+
['application/json']) # noqa: E501
|
|
17306
|
+
|
|
17307
|
+
# Authentication setting
|
|
17308
|
+
auth_settings = [] # noqa: E501
|
|
17309
|
+
|
|
17310
|
+
return self.api_client.call_api(
|
|
17311
|
+
'/api/v2/lineage/artifacts/{artifact_id}', 'GET',
|
|
17312
|
+
path_params,
|
|
17313
|
+
query_params,
|
|
17314
|
+
header_params,
|
|
17315
|
+
body=body_params,
|
|
17316
|
+
post_params=form_params,
|
|
17317
|
+
files=local_var_files,
|
|
17318
|
+
response_type='LineageartifactResponse', # noqa: E501
|
|
17319
|
+
auth_settings=auth_settings,
|
|
17320
|
+
async_req=local_var_params.get('async_req'),
|
|
17321
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
17322
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
17323
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
17324
|
+
collection_formats=collection_formats)
|
|
17325
|
+
|
|
17326
|
+
def get_lineage_workload_api_v2_lineage_workloads_workload_id_get(self, workload_id, **kwargs): # noqa: E501
|
|
17327
|
+
"""Get Lineage Workload # noqa: E501
|
|
17328
|
+
|
|
17329
|
+
Get details of an Anyscale tracked workload. # noqa: E501
|
|
17330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17332
|
+
>>> thread = api.get_lineage_workload_api_v2_lineage_workloads_workload_id_get(workload_id, async_req=True)
|
|
17333
|
+
>>> result = thread.get()
|
|
17334
|
+
|
|
17335
|
+
:param async_req bool: execute request asynchronously
|
|
17336
|
+
:param str workload_id: (required)
|
|
17337
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17338
|
+
be returned without reading/decoding response
|
|
17339
|
+
data. Default is True.
|
|
17340
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17341
|
+
number provided, it will be total request
|
|
17342
|
+
timeout. It can also be a pair (tuple) of
|
|
17343
|
+
(connection, read) timeouts.
|
|
17344
|
+
:return: LineageworkloadResponse
|
|
17345
|
+
If the method is called asynchronously,
|
|
17346
|
+
returns the request thread.
|
|
17347
|
+
"""
|
|
17348
|
+
kwargs['_return_http_data_only'] = True
|
|
17349
|
+
return self.get_lineage_workload_api_v2_lineage_workloads_workload_id_get_with_http_info(workload_id, **kwargs) # noqa: E501
|
|
17350
|
+
|
|
17351
|
+
def get_lineage_workload_api_v2_lineage_workloads_workload_id_get_with_http_info(self, workload_id, **kwargs): # noqa: E501
|
|
17352
|
+
"""Get Lineage Workload # noqa: E501
|
|
17353
|
+
|
|
17354
|
+
Get details of an Anyscale tracked workload. # noqa: E501
|
|
17355
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
17356
|
+
asynchronous HTTP request, please pass async_req=True
|
|
17357
|
+
>>> thread = api.get_lineage_workload_api_v2_lineage_workloads_workload_id_get_with_http_info(workload_id, async_req=True)
|
|
17358
|
+
>>> result = thread.get()
|
|
17359
|
+
|
|
17360
|
+
:param async_req bool: execute request asynchronously
|
|
17361
|
+
:param str workload_id: (required)
|
|
17362
|
+
:param _return_http_data_only: response data without head status code
|
|
17363
|
+
and headers
|
|
17364
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
17365
|
+
be returned without reading/decoding response
|
|
17366
|
+
data. Default is True.
|
|
17367
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
17368
|
+
number provided, it will be total request
|
|
17369
|
+
timeout. It can also be a pair (tuple) of
|
|
17370
|
+
(connection, read) timeouts.
|
|
17371
|
+
:return: tuple(LineageworkloadResponse, status_code(int), headers(HTTPHeaderDict))
|
|
17372
|
+
If the method is called asynchronously,
|
|
17373
|
+
returns the request thread.
|
|
17374
|
+
"""
|
|
17375
|
+
|
|
17376
|
+
local_var_params = locals()
|
|
17377
|
+
|
|
17378
|
+
all_params = [
|
|
17379
|
+
'workload_id'
|
|
17380
|
+
]
|
|
17381
|
+
all_params.extend(
|
|
17382
|
+
[
|
|
17383
|
+
'async_req',
|
|
17384
|
+
'_return_http_data_only',
|
|
17385
|
+
'_preload_content',
|
|
17386
|
+
'_request_timeout'
|
|
17387
|
+
]
|
|
17388
|
+
)
|
|
17389
|
+
|
|
17390
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
17391
|
+
if key not in all_params:
|
|
17392
|
+
raise ApiTypeError(
|
|
17393
|
+
"Got an unexpected keyword argument '%s'"
|
|
17394
|
+
" to method get_lineage_workload_api_v2_lineage_workloads_workload_id_get" % key
|
|
17395
|
+
)
|
|
17396
|
+
local_var_params[key] = val
|
|
17397
|
+
del local_var_params['kwargs']
|
|
17398
|
+
# verify the required parameter 'workload_id' is set
|
|
17399
|
+
if self.api_client.client_side_validation and ('workload_id' not in local_var_params or # noqa: E501
|
|
17400
|
+
local_var_params['workload_id'] is None): # noqa: E501
|
|
17401
|
+
raise ApiValueError("Missing the required parameter `workload_id` when calling `get_lineage_workload_api_v2_lineage_workloads_workload_id_get`") # noqa: E501
|
|
17402
|
+
|
|
17403
|
+
collection_formats = {}
|
|
17404
|
+
|
|
17405
|
+
path_params = {}
|
|
17406
|
+
if 'workload_id' in local_var_params:
|
|
17407
|
+
path_params['workload_id'] = local_var_params['workload_id'] # noqa: E501
|
|
17408
|
+
|
|
17409
|
+
query_params = []
|
|
17410
|
+
|
|
17411
|
+
header_params = {}
|
|
17412
|
+
|
|
17413
|
+
form_params = []
|
|
17414
|
+
local_var_files = {}
|
|
17415
|
+
|
|
17416
|
+
body_params = None
|
|
17417
|
+
# HTTP header `Accept`
|
|
17418
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
17419
|
+
['application/json']) # noqa: E501
|
|
17420
|
+
|
|
17421
|
+
# Authentication setting
|
|
17422
|
+
auth_settings = [] # noqa: E501
|
|
17423
|
+
|
|
17424
|
+
return self.api_client.call_api(
|
|
17425
|
+
'/api/v2/lineage/workloads/{workload_id}', 'GET',
|
|
17426
|
+
path_params,
|
|
17427
|
+
query_params,
|
|
17428
|
+
header_params,
|
|
17429
|
+
body=body_params,
|
|
17430
|
+
post_params=form_params,
|
|
17431
|
+
files=local_var_files,
|
|
17432
|
+
response_type='LineageworkloadResponse', # noqa: E501
|
|
17433
|
+
auth_settings=auth_settings,
|
|
17434
|
+
async_req=local_var_params.get('async_req'),
|
|
17435
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
17436
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
17437
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
17438
|
+
collection_formats=collection_formats)
|
|
17439
|
+
|
|
17080
17440
|
def get_log_files_api_v2_logs_get_log_files_post(self, **kwargs): # noqa: E501
|
|
17081
17441
|
"""Get Log Files # noqa: E501
|
|
17082
17442
|
|
|
@@ -18026,7 +18386,122 @@ class DefaultApi(object):
|
|
|
18026
18386
|
>>> result = thread.get()
|
|
18027
18387
|
|
|
18028
18388
|
:param async_req bool: execute request asynchronously
|
|
18029
|
-
:param str job_id: (required)
|
|
18389
|
+
:param str job_id: (required)
|
|
18390
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
18391
|
+
be returned without reading/decoding response
|
|
18392
|
+
data. Default is True.
|
|
18393
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
18394
|
+
number provided, it will be total request
|
|
18395
|
+
timeout. It can also be a pair (tuple) of
|
|
18396
|
+
(connection, read) timeouts.
|
|
18397
|
+
:return: FinetunedmodelResponse
|
|
18398
|
+
If the method is called asynchronously,
|
|
18399
|
+
returns the request thread.
|
|
18400
|
+
"""
|
|
18401
|
+
kwargs['_return_http_data_only'] = True
|
|
18402
|
+
return self.get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
|
|
18403
|
+
|
|
18404
|
+
def get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
18405
|
+
"""Get Model By Job Id # noqa: E501
|
|
18406
|
+
|
|
18407
|
+
Retrieves a model from the model registry by job id # noqa: E501
|
|
18408
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
18409
|
+
asynchronous HTTP request, please pass async_req=True
|
|
18410
|
+
>>> thread = api.get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get_with_http_info(job_id, async_req=True)
|
|
18411
|
+
>>> result = thread.get()
|
|
18412
|
+
|
|
18413
|
+
:param async_req bool: execute request asynchronously
|
|
18414
|
+
:param str job_id: (required)
|
|
18415
|
+
:param _return_http_data_only: response data without head status code
|
|
18416
|
+
and headers
|
|
18417
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
18418
|
+
be returned without reading/decoding response
|
|
18419
|
+
data. Default is True.
|
|
18420
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
18421
|
+
number provided, it will be total request
|
|
18422
|
+
timeout. It can also be a pair (tuple) of
|
|
18423
|
+
(connection, read) timeouts.
|
|
18424
|
+
:return: tuple(FinetunedmodelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
18425
|
+
If the method is called asynchronously,
|
|
18426
|
+
returns the request thread.
|
|
18427
|
+
"""
|
|
18428
|
+
|
|
18429
|
+
local_var_params = locals()
|
|
18430
|
+
|
|
18431
|
+
all_params = [
|
|
18432
|
+
'job_id'
|
|
18433
|
+
]
|
|
18434
|
+
all_params.extend(
|
|
18435
|
+
[
|
|
18436
|
+
'async_req',
|
|
18437
|
+
'_return_http_data_only',
|
|
18438
|
+
'_preload_content',
|
|
18439
|
+
'_request_timeout'
|
|
18440
|
+
]
|
|
18441
|
+
)
|
|
18442
|
+
|
|
18443
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
18444
|
+
if key not in all_params:
|
|
18445
|
+
raise ApiTypeError(
|
|
18446
|
+
"Got an unexpected keyword argument '%s'"
|
|
18447
|
+
" to method get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get" % key
|
|
18448
|
+
)
|
|
18449
|
+
local_var_params[key] = val
|
|
18450
|
+
del local_var_params['kwargs']
|
|
18451
|
+
# verify the required parameter 'job_id' is set
|
|
18452
|
+
if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
|
|
18453
|
+
local_var_params['job_id'] is None): # noqa: E501
|
|
18454
|
+
raise ApiValueError("Missing the required parameter `job_id` when calling `get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get`") # noqa: E501
|
|
18455
|
+
|
|
18456
|
+
collection_formats = {}
|
|
18457
|
+
|
|
18458
|
+
path_params = {}
|
|
18459
|
+
if 'job_id' in local_var_params:
|
|
18460
|
+
path_params['job_id'] = local_var_params['job_id'] # noqa: E501
|
|
18461
|
+
|
|
18462
|
+
query_params = []
|
|
18463
|
+
|
|
18464
|
+
header_params = {}
|
|
18465
|
+
|
|
18466
|
+
form_params = []
|
|
18467
|
+
local_var_files = {}
|
|
18468
|
+
|
|
18469
|
+
body_params = None
|
|
18470
|
+
# HTTP header `Accept`
|
|
18471
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
18472
|
+
['application/json']) # noqa: E501
|
|
18473
|
+
|
|
18474
|
+
# Authentication setting
|
|
18475
|
+
auth_settings = [] # noqa: E501
|
|
18476
|
+
|
|
18477
|
+
return self.api_client.call_api(
|
|
18478
|
+
'/api/v2/llm/models/get_by_job_id/{job_id}', 'GET',
|
|
18479
|
+
path_params,
|
|
18480
|
+
query_params,
|
|
18481
|
+
header_params,
|
|
18482
|
+
body=body_params,
|
|
18483
|
+
post_params=form_params,
|
|
18484
|
+
files=local_var_files,
|
|
18485
|
+
response_type='FinetunedmodelResponse', # noqa: E501
|
|
18486
|
+
auth_settings=auth_settings,
|
|
18487
|
+
async_req=local_var_params.get('async_req'),
|
|
18488
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
18489
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
18490
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
18491
|
+
collection_formats=collection_formats)
|
|
18492
|
+
|
|
18493
|
+
def get_node_api_v2_cluster_dashboard_node_id_get(self, node_id, cluster_id, **kwargs): # noqa: E501
|
|
18494
|
+
"""Get Node # noqa: E501
|
|
18495
|
+
|
|
18496
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
18497
|
+
asynchronous HTTP request, please pass async_req=True
|
|
18498
|
+
>>> thread = api.get_node_api_v2_cluster_dashboard_node_id_get(node_id, cluster_id, async_req=True)
|
|
18499
|
+
>>> result = thread.get()
|
|
18500
|
+
|
|
18501
|
+
:param async_req bool: execute request asynchronously
|
|
18502
|
+
:param str node_id: (required)
|
|
18503
|
+
:param str cluster_id: (required)
|
|
18504
|
+
:param str session_name: The name of the session to the node belongs to.
|
|
18030
18505
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
18031
18506
|
be returned without reading/decoding response
|
|
18032
18507
|
data. Default is True.
|
|
@@ -18034,24 +18509,25 @@ class DefaultApi(object):
|
|
|
18034
18509
|
number provided, it will be total request
|
|
18035
18510
|
timeout. It can also be a pair (tuple) of
|
|
18036
18511
|
(connection, read) timeouts.
|
|
18037
|
-
:return:
|
|
18512
|
+
:return: ClusterdashboardnodeResponse
|
|
18038
18513
|
If the method is called asynchronously,
|
|
18039
18514
|
returns the request thread.
|
|
18040
18515
|
"""
|
|
18041
18516
|
kwargs['_return_http_data_only'] = True
|
|
18042
|
-
return self.
|
|
18517
|
+
return self.get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(node_id, cluster_id, **kwargs) # noqa: E501
|
|
18043
18518
|
|
|
18044
|
-
def
|
|
18045
|
-
"""Get
|
|
18519
|
+
def get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(self, node_id, cluster_id, **kwargs): # noqa: E501
|
|
18520
|
+
"""Get Node # noqa: E501
|
|
18046
18521
|
|
|
18047
|
-
Retrieves a model from the model registry by job id # noqa: E501
|
|
18048
18522
|
This method makes a synchronous HTTP request by default. To make an
|
|
18049
18523
|
asynchronous HTTP request, please pass async_req=True
|
|
18050
|
-
>>> thread = api.
|
|
18524
|
+
>>> thread = api.get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(node_id, cluster_id, async_req=True)
|
|
18051
18525
|
>>> result = thread.get()
|
|
18052
18526
|
|
|
18053
18527
|
:param async_req bool: execute request asynchronously
|
|
18054
|
-
:param str
|
|
18528
|
+
:param str node_id: (required)
|
|
18529
|
+
:param str cluster_id: (required)
|
|
18530
|
+
:param str session_name: The name of the session to the node belongs to.
|
|
18055
18531
|
:param _return_http_data_only: response data without head status code
|
|
18056
18532
|
and headers
|
|
18057
18533
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -18061,7 +18537,7 @@ class DefaultApi(object):
|
|
|
18061
18537
|
number provided, it will be total request
|
|
18062
18538
|
timeout. It can also be a pair (tuple) of
|
|
18063
18539
|
(connection, read) timeouts.
|
|
18064
|
-
:return: tuple(
|
|
18540
|
+
:return: tuple(ClusterdashboardnodeResponse, status_code(int), headers(HTTPHeaderDict))
|
|
18065
18541
|
If the method is called asynchronously,
|
|
18066
18542
|
returns the request thread.
|
|
18067
18543
|
"""
|
|
@@ -18069,7 +18545,9 @@ class DefaultApi(object):
|
|
|
18069
18545
|
local_var_params = locals()
|
|
18070
18546
|
|
|
18071
18547
|
all_params = [
|
|
18072
|
-
'
|
|
18548
|
+
'node_id',
|
|
18549
|
+
'cluster_id',
|
|
18550
|
+
'session_name'
|
|
18073
18551
|
]
|
|
18074
18552
|
all_params.extend(
|
|
18075
18553
|
[
|
|
@@ -18084,22 +18562,30 @@ class DefaultApi(object):
|
|
|
18084
18562
|
if key not in all_params:
|
|
18085
18563
|
raise ApiTypeError(
|
|
18086
18564
|
"Got an unexpected keyword argument '%s'"
|
|
18087
|
-
" to method
|
|
18565
|
+
" to method get_node_api_v2_cluster_dashboard_node_id_get" % key
|
|
18088
18566
|
)
|
|
18089
18567
|
local_var_params[key] = val
|
|
18090
18568
|
del local_var_params['kwargs']
|
|
18091
|
-
# verify the required parameter '
|
|
18092
|
-
if self.api_client.client_side_validation and ('
|
|
18093
|
-
local_var_params['
|
|
18094
|
-
raise ApiValueError("Missing the required parameter `
|
|
18569
|
+
# verify the required parameter 'node_id' is set
|
|
18570
|
+
if self.api_client.client_side_validation and ('node_id' not in local_var_params or # noqa: E501
|
|
18571
|
+
local_var_params['node_id'] is None): # noqa: E501
|
|
18572
|
+
raise ApiValueError("Missing the required parameter `node_id` when calling `get_node_api_v2_cluster_dashboard_node_id_get`") # noqa: E501
|
|
18573
|
+
# verify the required parameter 'cluster_id' is set
|
|
18574
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
|
18575
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
|
18576
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_node_api_v2_cluster_dashboard_node_id_get`") # noqa: E501
|
|
18095
18577
|
|
|
18096
18578
|
collection_formats = {}
|
|
18097
18579
|
|
|
18098
18580
|
path_params = {}
|
|
18099
|
-
if '
|
|
18100
|
-
path_params['
|
|
18581
|
+
if 'node_id' in local_var_params:
|
|
18582
|
+
path_params['node_id'] = local_var_params['node_id'] # noqa: E501
|
|
18101
18583
|
|
|
18102
18584
|
query_params = []
|
|
18585
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
|
18586
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
|
18587
|
+
if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
|
|
18588
|
+
query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
|
|
18103
18589
|
|
|
18104
18590
|
header_params = {}
|
|
18105
18591
|
|
|
@@ -18115,14 +18601,14 @@ class DefaultApi(object):
|
|
|
18115
18601
|
auth_settings = [] # noqa: E501
|
|
18116
18602
|
|
|
18117
18603
|
return self.api_client.call_api(
|
|
18118
|
-
'/api/v2/
|
|
18604
|
+
'/api/v2/cluster_dashboard/{node_id}', 'GET',
|
|
18119
18605
|
path_params,
|
|
18120
18606
|
query_params,
|
|
18121
18607
|
header_params,
|
|
18122
18608
|
body=body_params,
|
|
18123
18609
|
post_params=form_params,
|
|
18124
18610
|
files=local_var_files,
|
|
18125
|
-
response_type='
|
|
18611
|
+
response_type='ClusterdashboardnodeResponse', # noqa: E501
|
|
18126
18612
|
auth_settings=auth_settings,
|
|
18127
18613
|
async_req=local_var_params.get('async_req'),
|
|
18128
18614
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
@@ -27777,6 +28263,302 @@ class DefaultApi(object):
|
|
|
27777
28263
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
27778
28264
|
collection_formats=collection_formats)
|
|
27779
28265
|
|
|
28266
|
+
def list_lineage_artifacts_api_v2_lineage_artifacts_get(self, artifact_type, **kwargs): # noqa: E501
|
|
28267
|
+
"""List Lineage Artifacts # noqa: E501
|
|
28268
|
+
|
|
28269
|
+
List all Anyscale tracked artifacts with filters. # noqa: E501
|
|
28270
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
28271
|
+
asynchronous HTTP request, please pass async_req=True
|
|
28272
|
+
>>> thread = api.list_lineage_artifacts_api_v2_lineage_artifacts_get(artifact_type, async_req=True)
|
|
28273
|
+
>>> result = thread.get()
|
|
28274
|
+
|
|
28275
|
+
:param async_req bool: execute request asynchronously
|
|
28276
|
+
:param LineageArtifactType artifact_type: Lineage artifact type. (required)
|
|
28277
|
+
:param str cloud_id: Filter by cloud ID.
|
|
28278
|
+
:param LineageArtifactSortField sort_field: Sort field. Defaults to created_at.
|
|
28279
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
|
28280
|
+
:param str paging_token:
|
|
28281
|
+
:param int count:
|
|
28282
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
28283
|
+
be returned without reading/decoding response
|
|
28284
|
+
data. Default is True.
|
|
28285
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
28286
|
+
number provided, it will be total request
|
|
28287
|
+
timeout. It can also be a pair (tuple) of
|
|
28288
|
+
(connection, read) timeouts.
|
|
28289
|
+
:return: LineageartifactListResponse
|
|
28290
|
+
If the method is called asynchronously,
|
|
28291
|
+
returns the request thread.
|
|
28292
|
+
"""
|
|
28293
|
+
kwargs['_return_http_data_only'] = True
|
|
28294
|
+
return self.list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(artifact_type, **kwargs) # noqa: E501
|
|
28295
|
+
|
|
28296
|
+
def list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(self, artifact_type, **kwargs): # noqa: E501
|
|
28297
|
+
"""List Lineage Artifacts # noqa: E501
|
|
28298
|
+
|
|
28299
|
+
List all Anyscale tracked artifacts with filters. # noqa: E501
|
|
28300
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
28301
|
+
asynchronous HTTP request, please pass async_req=True
|
|
28302
|
+
>>> thread = api.list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(artifact_type, async_req=True)
|
|
28303
|
+
>>> result = thread.get()
|
|
28304
|
+
|
|
28305
|
+
:param async_req bool: execute request asynchronously
|
|
28306
|
+
:param LineageArtifactType artifact_type: Lineage artifact type. (required)
|
|
28307
|
+
:param str cloud_id: Filter by cloud ID.
|
|
28308
|
+
:param LineageArtifactSortField sort_field: Sort field. Defaults to created_at.
|
|
28309
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
|
28310
|
+
:param str paging_token:
|
|
28311
|
+
:param int count:
|
|
28312
|
+
:param _return_http_data_only: response data without head status code
|
|
28313
|
+
and headers
|
|
28314
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
28315
|
+
be returned without reading/decoding response
|
|
28316
|
+
data. Default is True.
|
|
28317
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
28318
|
+
number provided, it will be total request
|
|
28319
|
+
timeout. It can also be a pair (tuple) of
|
|
28320
|
+
(connection, read) timeouts.
|
|
28321
|
+
:return: tuple(LineageartifactListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
28322
|
+
If the method is called asynchronously,
|
|
28323
|
+
returns the request thread.
|
|
28324
|
+
"""
|
|
28325
|
+
|
|
28326
|
+
local_var_params = locals()
|
|
28327
|
+
|
|
28328
|
+
all_params = [
|
|
28329
|
+
'artifact_type',
|
|
28330
|
+
'cloud_id',
|
|
28331
|
+
'sort_field',
|
|
28332
|
+
'sort_order',
|
|
28333
|
+
'paging_token',
|
|
28334
|
+
'count'
|
|
28335
|
+
]
|
|
28336
|
+
all_params.extend(
|
|
28337
|
+
[
|
|
28338
|
+
'async_req',
|
|
28339
|
+
'_return_http_data_only',
|
|
28340
|
+
'_preload_content',
|
|
28341
|
+
'_request_timeout'
|
|
28342
|
+
]
|
|
28343
|
+
)
|
|
28344
|
+
|
|
28345
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
28346
|
+
if key not in all_params:
|
|
28347
|
+
raise ApiTypeError(
|
|
28348
|
+
"Got an unexpected keyword argument '%s'"
|
|
28349
|
+
" to method list_lineage_artifacts_api_v2_lineage_artifacts_get" % key
|
|
28350
|
+
)
|
|
28351
|
+
local_var_params[key] = val
|
|
28352
|
+
del local_var_params['kwargs']
|
|
28353
|
+
# verify the required parameter 'artifact_type' is set
|
|
28354
|
+
if self.api_client.client_side_validation and ('artifact_type' not in local_var_params or # noqa: E501
|
|
28355
|
+
local_var_params['artifact_type'] is None): # noqa: E501
|
|
28356
|
+
raise ApiValueError("Missing the required parameter `artifact_type` when calling `list_lineage_artifacts_api_v2_lineage_artifacts_get`") # noqa: E501
|
|
28357
|
+
|
|
28358
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
28359
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_lineage_artifacts_api_v2_lineage_artifacts_get`, must be a value less than or equal to `50`") # noqa: E501
|
|
28360
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
28361
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_lineage_artifacts_api_v2_lineage_artifacts_get`, must be a value greater than or equal to `0`") # noqa: E501
|
|
28362
|
+
collection_formats = {}
|
|
28363
|
+
|
|
28364
|
+
path_params = {}
|
|
28365
|
+
|
|
28366
|
+
query_params = []
|
|
28367
|
+
if 'artifact_type' in local_var_params and local_var_params['artifact_type'] is not None: # noqa: E501
|
|
28368
|
+
query_params.append(('artifact_type', local_var_params['artifact_type'])) # noqa: E501
|
|
28369
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
|
28370
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
|
28371
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
|
28372
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
|
28373
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
|
28374
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
|
28375
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
28376
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
28377
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
28378
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
28379
|
+
|
|
28380
|
+
header_params = {}
|
|
28381
|
+
|
|
28382
|
+
form_params = []
|
|
28383
|
+
local_var_files = {}
|
|
28384
|
+
|
|
28385
|
+
body_params = None
|
|
28386
|
+
# HTTP header `Accept`
|
|
28387
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
28388
|
+
['application/json']) # noqa: E501
|
|
28389
|
+
|
|
28390
|
+
# Authentication setting
|
|
28391
|
+
auth_settings = [] # noqa: E501
|
|
28392
|
+
|
|
28393
|
+
return self.api_client.call_api(
|
|
28394
|
+
'/api/v2/lineage/artifacts', 'GET',
|
|
28395
|
+
path_params,
|
|
28396
|
+
query_params,
|
|
28397
|
+
header_params,
|
|
28398
|
+
body=body_params,
|
|
28399
|
+
post_params=form_params,
|
|
28400
|
+
files=local_var_files,
|
|
28401
|
+
response_type='LineageartifactListResponse', # noqa: E501
|
|
28402
|
+
auth_settings=auth_settings,
|
|
28403
|
+
async_req=local_var_params.get('async_req'),
|
|
28404
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
28405
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
28406
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
28407
|
+
collection_formats=collection_formats)
|
|
28408
|
+
|
|
28409
|
+
def list_lineage_workloads_api_v2_lineage_workloads_get(self, workload_type, **kwargs): # noqa: E501
|
|
28410
|
+
"""List Lineage Workloads # noqa: E501
|
|
28411
|
+
|
|
28412
|
+
List all Anyscale tracked workloads with filters. # noqa: E501
|
|
28413
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
28414
|
+
asynchronous HTTP request, please pass async_req=True
|
|
28415
|
+
>>> thread = api.list_lineage_workloads_api_v2_lineage_workloads_get(workload_type, async_req=True)
|
|
28416
|
+
>>> result = thread.get()
|
|
28417
|
+
|
|
28418
|
+
:param async_req bool: execute request asynchronously
|
|
28419
|
+
:param LineageWorkloadType workload_type: Lineage workload type. (required)
|
|
28420
|
+
:param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
|
|
28421
|
+
:param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
|
|
28422
|
+
:param str cloud_id: Filter by cloud ID.
|
|
28423
|
+
:param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
|
|
28424
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
|
28425
|
+
:param str paging_token:
|
|
28426
|
+
:param int count:
|
|
28427
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
28428
|
+
be returned without reading/decoding response
|
|
28429
|
+
data. Default is True.
|
|
28430
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
28431
|
+
number provided, it will be total request
|
|
28432
|
+
timeout. It can also be a pair (tuple) of
|
|
28433
|
+
(connection, read) timeouts.
|
|
28434
|
+
:return: LineageworkloadListResponse
|
|
28435
|
+
If the method is called asynchronously,
|
|
28436
|
+
returns the request thread.
|
|
28437
|
+
"""
|
|
28438
|
+
kwargs['_return_http_data_only'] = True
|
|
28439
|
+
return self.list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(workload_type, **kwargs) # noqa: E501
|
|
28440
|
+
|
|
28441
|
+
def list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(self, workload_type, **kwargs): # noqa: E501
|
|
28442
|
+
"""List Lineage Workloads # noqa: E501
|
|
28443
|
+
|
|
28444
|
+
List all Anyscale tracked workloads with filters. # noqa: E501
|
|
28445
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
28446
|
+
asynchronous HTTP request, please pass async_req=True
|
|
28447
|
+
>>> thread = api.list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(workload_type, async_req=True)
|
|
28448
|
+
>>> result = thread.get()
|
|
28449
|
+
|
|
28450
|
+
:param async_req bool: execute request asynchronously
|
|
28451
|
+
:param LineageWorkloadType workload_type: Lineage workload type. (required)
|
|
28452
|
+
:param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
|
|
28453
|
+
:param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
|
|
28454
|
+
:param str cloud_id: Filter by cloud ID.
|
|
28455
|
+
:param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
|
|
28456
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
|
28457
|
+
:param str paging_token:
|
|
28458
|
+
:param int count:
|
|
28459
|
+
:param _return_http_data_only: response data without head status code
|
|
28460
|
+
and headers
|
|
28461
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
28462
|
+
be returned without reading/decoding response
|
|
28463
|
+
data. Default is True.
|
|
28464
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
28465
|
+
number provided, it will be total request
|
|
28466
|
+
timeout. It can also be a pair (tuple) of
|
|
28467
|
+
(connection, read) timeouts.
|
|
28468
|
+
:return: tuple(LineageworkloadListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
28469
|
+
If the method is called asynchronously,
|
|
28470
|
+
returns the request thread.
|
|
28471
|
+
"""
|
|
28472
|
+
|
|
28473
|
+
local_var_params = locals()
|
|
28474
|
+
|
|
28475
|
+
all_params = [
|
|
28476
|
+
'workload_type',
|
|
28477
|
+
'workload_id',
|
|
28478
|
+
'project_id',
|
|
28479
|
+
'cloud_id',
|
|
28480
|
+
'sort_field',
|
|
28481
|
+
'sort_order',
|
|
28482
|
+
'paging_token',
|
|
28483
|
+
'count'
|
|
28484
|
+
]
|
|
28485
|
+
all_params.extend(
|
|
28486
|
+
[
|
|
28487
|
+
'async_req',
|
|
28488
|
+
'_return_http_data_only',
|
|
28489
|
+
'_preload_content',
|
|
28490
|
+
'_request_timeout'
|
|
28491
|
+
]
|
|
28492
|
+
)
|
|
28493
|
+
|
|
28494
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
28495
|
+
if key not in all_params:
|
|
28496
|
+
raise ApiTypeError(
|
|
28497
|
+
"Got an unexpected keyword argument '%s'"
|
|
28498
|
+
" to method list_lineage_workloads_api_v2_lineage_workloads_get" % key
|
|
28499
|
+
)
|
|
28500
|
+
local_var_params[key] = val
|
|
28501
|
+
del local_var_params['kwargs']
|
|
28502
|
+
# verify the required parameter 'workload_type' is set
|
|
28503
|
+
if self.api_client.client_side_validation and ('workload_type' not in local_var_params or # noqa: E501
|
|
28504
|
+
local_var_params['workload_type'] is None): # noqa: E501
|
|
28505
|
+
raise ApiValueError("Missing the required parameter `workload_type` when calling `list_lineage_workloads_api_v2_lineage_workloads_get`") # noqa: E501
|
|
28506
|
+
|
|
28507
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
|
28508
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_lineage_workloads_api_v2_lineage_workloads_get`, must be a value less than or equal to `50`") # noqa: E501
|
|
28509
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
|
28510
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_lineage_workloads_api_v2_lineage_workloads_get`, must be a value greater than or equal to `0`") # noqa: E501
|
|
28511
|
+
collection_formats = {}
|
|
28512
|
+
|
|
28513
|
+
path_params = {}
|
|
28514
|
+
|
|
28515
|
+
query_params = []
|
|
28516
|
+
if 'workload_type' in local_var_params and local_var_params['workload_type'] is not None: # noqa: E501
|
|
28517
|
+
query_params.append(('workload_type', local_var_params['workload_type'])) # noqa: E501
|
|
28518
|
+
if 'workload_id' in local_var_params and local_var_params['workload_id'] is not None: # noqa: E501
|
|
28519
|
+
query_params.append(('workload_id', local_var_params['workload_id'])) # noqa: E501
|
|
28520
|
+
if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
|
|
28521
|
+
query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
|
|
28522
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
|
28523
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
|
28524
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
|
28525
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
|
28526
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
|
28527
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
|
28528
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
28529
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
28530
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
28531
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
28532
|
+
|
|
28533
|
+
header_params = {}
|
|
28534
|
+
|
|
28535
|
+
form_params = []
|
|
28536
|
+
local_var_files = {}
|
|
28537
|
+
|
|
28538
|
+
body_params = None
|
|
28539
|
+
# HTTP header `Accept`
|
|
28540
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
28541
|
+
['application/json']) # noqa: E501
|
|
28542
|
+
|
|
28543
|
+
# Authentication setting
|
|
28544
|
+
auth_settings = [] # noqa: E501
|
|
28545
|
+
|
|
28546
|
+
return self.api_client.call_api(
|
|
28547
|
+
'/api/v2/lineage/workloads', 'GET',
|
|
28548
|
+
path_params,
|
|
28549
|
+
query_params,
|
|
28550
|
+
header_params,
|
|
28551
|
+
body=body_params,
|
|
28552
|
+
post_params=form_params,
|
|
28553
|
+
files=local_var_files,
|
|
28554
|
+
response_type='LineageworkloadListResponse', # noqa: E501
|
|
28555
|
+
auth_settings=auth_settings,
|
|
28556
|
+
async_req=local_var_params.get('async_req'),
|
|
28557
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
28558
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
28559
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
28560
|
+
collection_formats=collection_formats)
|
|
28561
|
+
|
|
27780
28562
|
def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(self, **kwargs): # noqa: E501
|
|
27781
28563
|
"""List Long Running Workloads # noqa: E501
|
|
27782
28564
|
|