anyscale 0.26.67__py3-none-any.whl → 0.26.68__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 +20 -0
- anyscale/client/openapi_client/__init__.py +15 -0
- anyscale/client/openapi_client/api/default_api.py +656 -0
- anyscale/client/openapi_client/models/__init__.py +15 -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 +439 -0
- anyscale/client/openapi_client/models/lineage_node_type.py +100 -0
- anyscale/client/openapi_client/models/lineage_workload.py +355 -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/setup_k8s.py +460 -40
- anyscale/controllers/cloud_controller.py +10 -10
- anyscale/controllers/kubernetes_verifier.py +57 -11
- anyscale/version.py +1 -1
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/METADATA +1 -1
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/RECORD +30 -15
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/WHEEL +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.67.dist-info → anyscale-0.26.68.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
|
|
@@ -27777,6 +28137,302 @@ class DefaultApi(object):
|
|
27777
28137
|
_request_timeout=local_var_params.get('_request_timeout'),
|
27778
28138
|
collection_formats=collection_formats)
|
27779
28139
|
|
28140
|
+
def list_lineage_artifacts_api_v2_lineage_artifacts_get(self, artifact_type, **kwargs): # noqa: E501
|
28141
|
+
"""List Lineage Artifacts # noqa: E501
|
28142
|
+
|
28143
|
+
List all Anyscale tracked artifacts with filters. # noqa: E501
|
28144
|
+
This method makes a synchronous HTTP request by default. To make an
|
28145
|
+
asynchronous HTTP request, please pass async_req=True
|
28146
|
+
>>> thread = api.list_lineage_artifacts_api_v2_lineage_artifacts_get(artifact_type, async_req=True)
|
28147
|
+
>>> result = thread.get()
|
28148
|
+
|
28149
|
+
:param async_req bool: execute request asynchronously
|
28150
|
+
:param LineageArtifactType artifact_type: Lineage artifact type. (required)
|
28151
|
+
:param str cloud_id: Filter by cloud ID.
|
28152
|
+
:param LineageArtifactSortField sort_field: Sort field. Defaults to created_at.
|
28153
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
28154
|
+
:param str paging_token:
|
28155
|
+
:param int count:
|
28156
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28157
|
+
be returned without reading/decoding response
|
28158
|
+
data. Default is True.
|
28159
|
+
:param _request_timeout: timeout setting for this request. If one
|
28160
|
+
number provided, it will be total request
|
28161
|
+
timeout. It can also be a pair (tuple) of
|
28162
|
+
(connection, read) timeouts.
|
28163
|
+
:return: LineageartifactListResponse
|
28164
|
+
If the method is called asynchronously,
|
28165
|
+
returns the request thread.
|
28166
|
+
"""
|
28167
|
+
kwargs['_return_http_data_only'] = True
|
28168
|
+
return self.list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(artifact_type, **kwargs) # noqa: E501
|
28169
|
+
|
28170
|
+
def list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(self, artifact_type, **kwargs): # noqa: E501
|
28171
|
+
"""List Lineage Artifacts # noqa: E501
|
28172
|
+
|
28173
|
+
List all Anyscale tracked artifacts with filters. # noqa: E501
|
28174
|
+
This method makes a synchronous HTTP request by default. To make an
|
28175
|
+
asynchronous HTTP request, please pass async_req=True
|
28176
|
+
>>> thread = api.list_lineage_artifacts_api_v2_lineage_artifacts_get_with_http_info(artifact_type, async_req=True)
|
28177
|
+
>>> result = thread.get()
|
28178
|
+
|
28179
|
+
:param async_req bool: execute request asynchronously
|
28180
|
+
:param LineageArtifactType artifact_type: Lineage artifact type. (required)
|
28181
|
+
:param str cloud_id: Filter by cloud ID.
|
28182
|
+
:param LineageArtifactSortField sort_field: Sort field. Defaults to created_at.
|
28183
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
28184
|
+
:param str paging_token:
|
28185
|
+
:param int count:
|
28186
|
+
:param _return_http_data_only: response data without head status code
|
28187
|
+
and headers
|
28188
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28189
|
+
be returned without reading/decoding response
|
28190
|
+
data. Default is True.
|
28191
|
+
:param _request_timeout: timeout setting for this request. If one
|
28192
|
+
number provided, it will be total request
|
28193
|
+
timeout. It can also be a pair (tuple) of
|
28194
|
+
(connection, read) timeouts.
|
28195
|
+
:return: tuple(LineageartifactListResponse, status_code(int), headers(HTTPHeaderDict))
|
28196
|
+
If the method is called asynchronously,
|
28197
|
+
returns the request thread.
|
28198
|
+
"""
|
28199
|
+
|
28200
|
+
local_var_params = locals()
|
28201
|
+
|
28202
|
+
all_params = [
|
28203
|
+
'artifact_type',
|
28204
|
+
'cloud_id',
|
28205
|
+
'sort_field',
|
28206
|
+
'sort_order',
|
28207
|
+
'paging_token',
|
28208
|
+
'count'
|
28209
|
+
]
|
28210
|
+
all_params.extend(
|
28211
|
+
[
|
28212
|
+
'async_req',
|
28213
|
+
'_return_http_data_only',
|
28214
|
+
'_preload_content',
|
28215
|
+
'_request_timeout'
|
28216
|
+
]
|
28217
|
+
)
|
28218
|
+
|
28219
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28220
|
+
if key not in all_params:
|
28221
|
+
raise ApiTypeError(
|
28222
|
+
"Got an unexpected keyword argument '%s'"
|
28223
|
+
" to method list_lineage_artifacts_api_v2_lineage_artifacts_get" % key
|
28224
|
+
)
|
28225
|
+
local_var_params[key] = val
|
28226
|
+
del local_var_params['kwargs']
|
28227
|
+
# verify the required parameter 'artifact_type' is set
|
28228
|
+
if self.api_client.client_side_validation and ('artifact_type' not in local_var_params or # noqa: E501
|
28229
|
+
local_var_params['artifact_type'] is None): # noqa: E501
|
28230
|
+
raise ApiValueError("Missing the required parameter `artifact_type` when calling `list_lineage_artifacts_api_v2_lineage_artifacts_get`") # noqa: E501
|
28231
|
+
|
28232
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
28233
|
+
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
|
28234
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
28235
|
+
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
|
28236
|
+
collection_formats = {}
|
28237
|
+
|
28238
|
+
path_params = {}
|
28239
|
+
|
28240
|
+
query_params = []
|
28241
|
+
if 'artifact_type' in local_var_params and local_var_params['artifact_type'] is not None: # noqa: E501
|
28242
|
+
query_params.append(('artifact_type', local_var_params['artifact_type'])) # noqa: E501
|
28243
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
28244
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
28245
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
28246
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
28247
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
28248
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
28249
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
28250
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
28251
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
28252
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
28253
|
+
|
28254
|
+
header_params = {}
|
28255
|
+
|
28256
|
+
form_params = []
|
28257
|
+
local_var_files = {}
|
28258
|
+
|
28259
|
+
body_params = None
|
28260
|
+
# HTTP header `Accept`
|
28261
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
28262
|
+
['application/json']) # noqa: E501
|
28263
|
+
|
28264
|
+
# Authentication setting
|
28265
|
+
auth_settings = [] # noqa: E501
|
28266
|
+
|
28267
|
+
return self.api_client.call_api(
|
28268
|
+
'/api/v2/lineage/artifacts', 'GET',
|
28269
|
+
path_params,
|
28270
|
+
query_params,
|
28271
|
+
header_params,
|
28272
|
+
body=body_params,
|
28273
|
+
post_params=form_params,
|
28274
|
+
files=local_var_files,
|
28275
|
+
response_type='LineageartifactListResponse', # noqa: E501
|
28276
|
+
auth_settings=auth_settings,
|
28277
|
+
async_req=local_var_params.get('async_req'),
|
28278
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28279
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
28280
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
28281
|
+
collection_formats=collection_formats)
|
28282
|
+
|
28283
|
+
def list_lineage_workloads_api_v2_lineage_workloads_get(self, workload_type, **kwargs): # noqa: E501
|
28284
|
+
"""List Lineage Workloads # noqa: E501
|
28285
|
+
|
28286
|
+
List all Anyscale tracked workloads with filters. # noqa: E501
|
28287
|
+
This method makes a synchronous HTTP request by default. To make an
|
28288
|
+
asynchronous HTTP request, please pass async_req=True
|
28289
|
+
>>> thread = api.list_lineage_workloads_api_v2_lineage_workloads_get(workload_type, async_req=True)
|
28290
|
+
>>> result = thread.get()
|
28291
|
+
|
28292
|
+
:param async_req bool: execute request asynchronously
|
28293
|
+
:param LineageWorkloadType workload_type: Lineage workload type. (required)
|
28294
|
+
:param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
|
28295
|
+
:param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
|
28296
|
+
:param str cloud_id: Filter by cloud ID.
|
28297
|
+
:param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
|
28298
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
28299
|
+
:param str paging_token:
|
28300
|
+
:param int count:
|
28301
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28302
|
+
be returned without reading/decoding response
|
28303
|
+
data. Default is True.
|
28304
|
+
:param _request_timeout: timeout setting for this request. If one
|
28305
|
+
number provided, it will be total request
|
28306
|
+
timeout. It can also be a pair (tuple) of
|
28307
|
+
(connection, read) timeouts.
|
28308
|
+
:return: LineageworkloadListResponse
|
28309
|
+
If the method is called asynchronously,
|
28310
|
+
returns the request thread.
|
28311
|
+
"""
|
28312
|
+
kwargs['_return_http_data_only'] = True
|
28313
|
+
return self.list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(workload_type, **kwargs) # noqa: E501
|
28314
|
+
|
28315
|
+
def list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(self, workload_type, **kwargs): # noqa: E501
|
28316
|
+
"""List Lineage Workloads # noqa: E501
|
28317
|
+
|
28318
|
+
List all Anyscale tracked workloads with filters. # noqa: E501
|
28319
|
+
This method makes a synchronous HTTP request by default. To make an
|
28320
|
+
asynchronous HTTP request, please pass async_req=True
|
28321
|
+
>>> thread = api.list_lineage_workloads_api_v2_lineage_workloads_get_with_http_info(workload_type, async_req=True)
|
28322
|
+
>>> result = thread.get()
|
28323
|
+
|
28324
|
+
:param async_req bool: execute request asynchronously
|
28325
|
+
:param LineageWorkloadType workload_type: Lineage workload type. (required)
|
28326
|
+
:param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
|
28327
|
+
:param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
|
28328
|
+
:param str cloud_id: Filter by cloud ID.
|
28329
|
+
:param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
|
28330
|
+
:param SortOrder sort_order: Sort order. Defaults to descending.
|
28331
|
+
:param str paging_token:
|
28332
|
+
:param int count:
|
28333
|
+
:param _return_http_data_only: response data without head status code
|
28334
|
+
and headers
|
28335
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28336
|
+
be returned without reading/decoding response
|
28337
|
+
data. Default is True.
|
28338
|
+
:param _request_timeout: timeout setting for this request. If one
|
28339
|
+
number provided, it will be total request
|
28340
|
+
timeout. It can also be a pair (tuple) of
|
28341
|
+
(connection, read) timeouts.
|
28342
|
+
:return: tuple(LineageworkloadListResponse, status_code(int), headers(HTTPHeaderDict))
|
28343
|
+
If the method is called asynchronously,
|
28344
|
+
returns the request thread.
|
28345
|
+
"""
|
28346
|
+
|
28347
|
+
local_var_params = locals()
|
28348
|
+
|
28349
|
+
all_params = [
|
28350
|
+
'workload_type',
|
28351
|
+
'workload_id',
|
28352
|
+
'project_id',
|
28353
|
+
'cloud_id',
|
28354
|
+
'sort_field',
|
28355
|
+
'sort_order',
|
28356
|
+
'paging_token',
|
28357
|
+
'count'
|
28358
|
+
]
|
28359
|
+
all_params.extend(
|
28360
|
+
[
|
28361
|
+
'async_req',
|
28362
|
+
'_return_http_data_only',
|
28363
|
+
'_preload_content',
|
28364
|
+
'_request_timeout'
|
28365
|
+
]
|
28366
|
+
)
|
28367
|
+
|
28368
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28369
|
+
if key not in all_params:
|
28370
|
+
raise ApiTypeError(
|
28371
|
+
"Got an unexpected keyword argument '%s'"
|
28372
|
+
" to method list_lineage_workloads_api_v2_lineage_workloads_get" % key
|
28373
|
+
)
|
28374
|
+
local_var_params[key] = val
|
28375
|
+
del local_var_params['kwargs']
|
28376
|
+
# verify the required parameter 'workload_type' is set
|
28377
|
+
if self.api_client.client_side_validation and ('workload_type' not in local_var_params or # noqa: E501
|
28378
|
+
local_var_params['workload_type'] is None): # noqa: E501
|
28379
|
+
raise ApiValueError("Missing the required parameter `workload_type` when calling `list_lineage_workloads_api_v2_lineage_workloads_get`") # noqa: E501
|
28380
|
+
|
28381
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
28382
|
+
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
|
28383
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
28384
|
+
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
|
28385
|
+
collection_formats = {}
|
28386
|
+
|
28387
|
+
path_params = {}
|
28388
|
+
|
28389
|
+
query_params = []
|
28390
|
+
if 'workload_type' in local_var_params and local_var_params['workload_type'] is not None: # noqa: E501
|
28391
|
+
query_params.append(('workload_type', local_var_params['workload_type'])) # noqa: E501
|
28392
|
+
if 'workload_id' in local_var_params and local_var_params['workload_id'] is not None: # noqa: E501
|
28393
|
+
query_params.append(('workload_id', local_var_params['workload_id'])) # noqa: E501
|
28394
|
+
if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
|
28395
|
+
query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
|
28396
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
28397
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
28398
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
28399
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
28400
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
28401
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
28402
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
28403
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
28404
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
28405
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
28406
|
+
|
28407
|
+
header_params = {}
|
28408
|
+
|
28409
|
+
form_params = []
|
28410
|
+
local_var_files = {}
|
28411
|
+
|
28412
|
+
body_params = None
|
28413
|
+
# HTTP header `Accept`
|
28414
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
28415
|
+
['application/json']) # noqa: E501
|
28416
|
+
|
28417
|
+
# Authentication setting
|
28418
|
+
auth_settings = [] # noqa: E501
|
28419
|
+
|
28420
|
+
return self.api_client.call_api(
|
28421
|
+
'/api/v2/lineage/workloads', 'GET',
|
28422
|
+
path_params,
|
28423
|
+
query_params,
|
28424
|
+
header_params,
|
28425
|
+
body=body_params,
|
28426
|
+
post_params=form_params,
|
28427
|
+
files=local_var_files,
|
28428
|
+
response_type='LineageworkloadListResponse', # noqa: E501
|
28429
|
+
auth_settings=auth_settings,
|
28430
|
+
async_req=local_var_params.get('async_req'),
|
28431
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28432
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
28433
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
28434
|
+
collection_formats=collection_formats)
|
28435
|
+
|
27780
28436
|
def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(self, **kwargs): # noqa: E501
|
27781
28437
|
"""List Long Running Workloads # noqa: E501
|
27782
28438
|
|