anyscale 0.26.15__py3-none-any.whl → 0.26.16__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/_private/anyscale_client/anyscale_client.py +4 -2
- anyscale/_private/anyscale_client/common.py +6 -4
- anyscale/_private/anyscale_client/fake_anyscale_client.py +15 -6
- anyscale/_private/docgen/__main__.py +4 -4
- anyscale/_private/docgen/generator.py +2 -2
- anyscale/_private/sdk/__init__.py +2 -2
- anyscale/_private/workload/workload_sdk.py +6 -4
- anyscale/aggregated_instance_usage/commands.py +6 -2
- anyscale/client/README.md +4 -6
- anyscale/client/openapi_client/__init__.py +3 -4
- anyscale/client/openapi_client/api/default_api.py +112 -228
- anyscale/client/openapi_client/models/__init__.py +3 -4
- anyscale/client/openapi_client/models/alert_type.py +11 -2
- anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
- anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
- anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/metric.py +133 -3
- anyscale/client/openapi_client/models/ray_session.py +121 -0
- anyscale/cloud/__init__.py +2 -2
- anyscale/cloud/_private/cloud_sdk.py +2 -2
- anyscale/cloud/commands.py +9 -6
- anyscale/cloud_utils.py +5 -4
- anyscale/cluster_compute.py +2 -2
- anyscale/cluster_env.py +2 -0
- anyscale/commands/login_commands.py +24 -3
- anyscale/commands/schedule_commands.py +2 -1
- anyscale/compute_config/commands.py +15 -7
- anyscale/controllers/cloud_controller.py +7 -7
- anyscale/controllers/cluster_controller.py +1 -0
- anyscale/controllers/job_controller.py +1 -1
- anyscale/controllers/service_controller.py +1 -0
- anyscale/image/commands.py +6 -6
- anyscale/job/commands.py +12 -12
- anyscale/organization_invitation/commands.py +11 -7
- anyscale/project/__init__.py +2 -2
- anyscale/project/_private/project_sdk.py +2 -2
- anyscale/project/commands.py +3 -3
- anyscale/project_utils.py +1 -1
- anyscale/resource_quota/commands.py +18 -10
- anyscale/schedule/commands.py +12 -8
- anyscale/sdk/anyscale_client/sdk.py +1 -0
- anyscale/service/commands.py +17 -17
- anyscale/service_account/commands.py +12 -10
- anyscale/user/commands.py +5 -3
- anyscale/utils/gcp_utils.py +25 -9
- anyscale/version.py +1 -1
- anyscale/workspace/__init__.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +5 -3
- anyscale/workspace/commands.py +26 -24
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/METADATA +1 -1
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/RECORD +56 -57
- anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
- anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/LICENSE +0 -0
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/NOTICE +0 -0
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/WHEEL +0 -0
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.15.dist-info → anyscale-0.26.16.dist-info}/top_level.txt +0 -0
@@ -11545,122 +11545,6 @@ class DefaultApi(object):
|
|
11545
11545
|
_request_timeout=local_var_params.get('_request_timeout'),
|
11546
11546
|
collection_formats=collection_formats)
|
11547
11547
|
|
11548
|
-
def fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post(self, finish_ft_job_request_v2, **kwargs): # noqa: E501
|
11549
|
-
"""Fine Tuning Job Callback V2 # noqa: E501
|
11550
|
-
|
11551
|
-
This method makes a synchronous HTTP request by default. To make an
|
11552
|
-
asynchronous HTTP request, please pass async_req=True
|
11553
|
-
>>> thread = api.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post(finish_ft_job_request_v2, async_req=True)
|
11554
|
-
>>> result = thread.get()
|
11555
|
-
|
11556
|
-
:param async_req bool: execute request asynchronously
|
11557
|
-
:param FinishFTJobRequestV2 finish_ft_job_request_v2: (required)
|
11558
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
11559
|
-
be returned without reading/decoding response
|
11560
|
-
data. Default is True.
|
11561
|
-
:param _request_timeout: timeout setting for this request. If one
|
11562
|
-
number provided, it will be total request
|
11563
|
-
timeout. It can also be a pair (tuple) of
|
11564
|
-
(connection, read) timeouts.
|
11565
|
-
:return: None
|
11566
|
-
If the method is called asynchronously,
|
11567
|
-
returns the request thread.
|
11568
|
-
"""
|
11569
|
-
kwargs['_return_http_data_only'] = True
|
11570
|
-
return self.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(finish_ft_job_request_v2, **kwargs) # noqa: E501
|
11571
|
-
|
11572
|
-
def fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(self, finish_ft_job_request_v2, **kwargs): # noqa: E501
|
11573
|
-
"""Fine Tuning Job Callback V2 # noqa: E501
|
11574
|
-
|
11575
|
-
This method makes a synchronous HTTP request by default. To make an
|
11576
|
-
asynchronous HTTP request, please pass async_req=True
|
11577
|
-
>>> thread = api.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(finish_ft_job_request_v2, async_req=True)
|
11578
|
-
>>> result = thread.get()
|
11579
|
-
|
11580
|
-
:param async_req bool: execute request asynchronously
|
11581
|
-
:param FinishFTJobRequestV2 finish_ft_job_request_v2: (required)
|
11582
|
-
:param _return_http_data_only: response data without head status code
|
11583
|
-
and headers
|
11584
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
11585
|
-
be returned without reading/decoding response
|
11586
|
-
data. Default is True.
|
11587
|
-
:param _request_timeout: timeout setting for this request. If one
|
11588
|
-
number provided, it will be total request
|
11589
|
-
timeout. It can also be a pair (tuple) of
|
11590
|
-
(connection, read) timeouts.
|
11591
|
-
:return: None
|
11592
|
-
If the method is called asynchronously,
|
11593
|
-
returns the request thread.
|
11594
|
-
"""
|
11595
|
-
|
11596
|
-
local_var_params = locals()
|
11597
|
-
|
11598
|
-
all_params = [
|
11599
|
-
'finish_ft_job_request_v2'
|
11600
|
-
]
|
11601
|
-
all_params.extend(
|
11602
|
-
[
|
11603
|
-
'async_req',
|
11604
|
-
'_return_http_data_only',
|
11605
|
-
'_preload_content',
|
11606
|
-
'_request_timeout'
|
11607
|
-
]
|
11608
|
-
)
|
11609
|
-
|
11610
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
11611
|
-
if key not in all_params:
|
11612
|
-
raise ApiTypeError(
|
11613
|
-
"Got an unexpected keyword argument '%s'"
|
11614
|
-
" to method fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post" % key
|
11615
|
-
)
|
11616
|
-
local_var_params[key] = val
|
11617
|
-
del local_var_params['kwargs']
|
11618
|
-
# verify the required parameter 'finish_ft_job_request_v2' is set
|
11619
|
-
if self.api_client.client_side_validation and ('finish_ft_job_request_v2' not in local_var_params or # noqa: E501
|
11620
|
-
local_var_params['finish_ft_job_request_v2'] is None): # noqa: E501
|
11621
|
-
raise ApiValueError("Missing the required parameter `finish_ft_job_request_v2` when calling `fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post`") # noqa: E501
|
11622
|
-
|
11623
|
-
collection_formats = {}
|
11624
|
-
|
11625
|
-
path_params = {}
|
11626
|
-
|
11627
|
-
query_params = []
|
11628
|
-
|
11629
|
-
header_params = {}
|
11630
|
-
|
11631
|
-
form_params = []
|
11632
|
-
local_var_files = {}
|
11633
|
-
|
11634
|
-
body_params = None
|
11635
|
-
if 'finish_ft_job_request_v2' in local_var_params:
|
11636
|
-
body_params = local_var_params['finish_ft_job_request_v2']
|
11637
|
-
# HTTP header `Accept`
|
11638
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
11639
|
-
['application/json']) # noqa: E501
|
11640
|
-
|
11641
|
-
# HTTP header `Content-Type`
|
11642
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
11643
|
-
['application/json']) # noqa: E501
|
11644
|
-
|
11645
|
-
# Authentication setting
|
11646
|
-
auth_settings = [] # noqa: E501
|
11647
|
-
|
11648
|
-
return self.api_client.call_api(
|
11649
|
-
'/api/v2/fine_tuning_v2/jobs/internal/finish', 'POST',
|
11650
|
-
path_params,
|
11651
|
-
query_params,
|
11652
|
-
header_params,
|
11653
|
-
body=body_params,
|
11654
|
-
post_params=form_params,
|
11655
|
-
files=local_var_files,
|
11656
|
-
response_type=None, # noqa: E501
|
11657
|
-
auth_settings=auth_settings,
|
11658
|
-
async_req=local_var_params.get('async_req'),
|
11659
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
11660
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
11661
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
11662
|
-
collection_formats=collection_formats)
|
11663
|
-
|
11664
11548
|
def finish_session_command_api_v2_session_commands_session_command_id_finish_post(self, session_command_id, session_command_finish_options, **kwargs): # noqa: E501
|
11665
11549
|
"""Finish Session Command # noqa: E501
|
11666
11550
|
|
@@ -13768,118 +13652,6 @@ class DefaultApi(object):
|
|
13768
13652
|
_request_timeout=local_var_params.get('_request_timeout'),
|
13769
13653
|
collection_formats=collection_formats)
|
13770
13654
|
|
13771
|
-
def get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get(self, session_id, **kwargs): # noqa: E501
|
13772
|
-
"""Get Cluster Product Autoscaler Flag # noqa: E501
|
13773
|
-
|
13774
|
-
This method makes a synchronous HTTP request by default. To make an
|
13775
|
-
asynchronous HTTP request, please pass async_req=True
|
13776
|
-
>>> thread = api.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get(session_id, async_req=True)
|
13777
|
-
>>> result = thread.get()
|
13778
|
-
|
13779
|
-
:param async_req bool: execute request asynchronously
|
13780
|
-
:param str session_id: (required)
|
13781
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13782
|
-
be returned without reading/decoding response
|
13783
|
-
data. Default is True.
|
13784
|
-
:param _request_timeout: timeout setting for this request. If one
|
13785
|
-
number provided, it will be total request
|
13786
|
-
timeout. It can also be a pair (tuple) of
|
13787
|
-
(connection, read) timeouts.
|
13788
|
-
:return: ProductautoscalerflagResponse
|
13789
|
-
If the method is called asynchronously,
|
13790
|
-
returns the request thread.
|
13791
|
-
"""
|
13792
|
-
kwargs['_return_http_data_only'] = True
|
13793
|
-
return self.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
|
13794
|
-
|
13795
|
-
def get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
13796
|
-
"""Get Cluster Product Autoscaler Flag # noqa: E501
|
13797
|
-
|
13798
|
-
This method makes a synchronous HTTP request by default. To make an
|
13799
|
-
asynchronous HTTP request, please pass async_req=True
|
13800
|
-
>>> thread = api.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(session_id, async_req=True)
|
13801
|
-
>>> result = thread.get()
|
13802
|
-
|
13803
|
-
:param async_req bool: execute request asynchronously
|
13804
|
-
:param str session_id: (required)
|
13805
|
-
:param _return_http_data_only: response data without head status code
|
13806
|
-
and headers
|
13807
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
13808
|
-
be returned without reading/decoding response
|
13809
|
-
data. Default is True.
|
13810
|
-
:param _request_timeout: timeout setting for this request. If one
|
13811
|
-
number provided, it will be total request
|
13812
|
-
timeout. It can also be a pair (tuple) of
|
13813
|
-
(connection, read) timeouts.
|
13814
|
-
:return: tuple(ProductautoscalerflagResponse, status_code(int), headers(HTTPHeaderDict))
|
13815
|
-
If the method is called asynchronously,
|
13816
|
-
returns the request thread.
|
13817
|
-
"""
|
13818
|
-
|
13819
|
-
local_var_params = locals()
|
13820
|
-
|
13821
|
-
all_params = [
|
13822
|
-
'session_id'
|
13823
|
-
]
|
13824
|
-
all_params.extend(
|
13825
|
-
[
|
13826
|
-
'async_req',
|
13827
|
-
'_return_http_data_only',
|
13828
|
-
'_preload_content',
|
13829
|
-
'_request_timeout'
|
13830
|
-
]
|
13831
|
-
)
|
13832
|
-
|
13833
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
13834
|
-
if key not in all_params:
|
13835
|
-
raise ApiTypeError(
|
13836
|
-
"Got an unexpected keyword argument '%s'"
|
13837
|
-
" to method get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get" % key
|
13838
|
-
)
|
13839
|
-
local_var_params[key] = val
|
13840
|
-
del local_var_params['kwargs']
|
13841
|
-
# verify the required parameter 'session_id' is set
|
13842
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
13843
|
-
local_var_params['session_id'] is None): # noqa: E501
|
13844
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get`") # noqa: E501
|
13845
|
-
|
13846
|
-
collection_formats = {}
|
13847
|
-
|
13848
|
-
path_params = {}
|
13849
|
-
if 'session_id' in local_var_params:
|
13850
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
13851
|
-
|
13852
|
-
query_params = []
|
13853
|
-
|
13854
|
-
header_params = {}
|
13855
|
-
|
13856
|
-
form_params = []
|
13857
|
-
local_var_files = {}
|
13858
|
-
|
13859
|
-
body_params = None
|
13860
|
-
# HTTP header `Accept`
|
13861
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
13862
|
-
['application/json']) # noqa: E501
|
13863
|
-
|
13864
|
-
# Authentication setting
|
13865
|
-
auth_settings = [] # noqa: E501
|
13866
|
-
|
13867
|
-
return self.api_client.call_api(
|
13868
|
-
'/api/v2/logs/cluster_product_autoscaler_flag/{session_id}', 'GET',
|
13869
|
-
path_params,
|
13870
|
-
query_params,
|
13871
|
-
header_params,
|
13872
|
-
body=body_params,
|
13873
|
-
post_params=form_params,
|
13874
|
-
files=local_var_files,
|
13875
|
-
response_type='ProductautoscalerflagResponse', # noqa: E501
|
13876
|
-
auth_settings=auth_settings,
|
13877
|
-
async_req=local_var_params.get('async_req'),
|
13878
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
13879
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
13880
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
13881
|
-
collection_formats=collection_formats)
|
13882
|
-
|
13883
13655
|
def get_compute_template_api_v2_compute_templates_template_id_get(self, template_id, **kwargs): # noqa: E501
|
13884
13656
|
"""Get Compute Template # noqa: E501
|
13885
13657
|
|
@@ -28396,6 +28168,118 @@ class DefaultApi(object):
|
|
28396
28168
|
_request_timeout=local_var_params.get('_request_timeout'),
|
28397
28169
|
collection_formats=collection_formats)
|
28398
28170
|
|
28171
|
+
def list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get(self, cluster_id, **kwargs): # noqa: E501
|
28172
|
+
"""List Ray Sessions # noqa: E501
|
28173
|
+
|
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_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get(cluster_id, async_req=True)
|
28177
|
+
>>> result = thread.get()
|
28178
|
+
|
28179
|
+
:param async_req bool: execute request asynchronously
|
28180
|
+
:param str cluster_id: (required)
|
28181
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28182
|
+
be returned without reading/decoding response
|
28183
|
+
data. Default is True.
|
28184
|
+
:param _request_timeout: timeout setting for this request. If one
|
28185
|
+
number provided, it will be total request
|
28186
|
+
timeout. It can also be a pair (tuple) of
|
28187
|
+
(connection, read) timeouts.
|
28188
|
+
:return: ListraysessionsresponseResponse
|
28189
|
+
If the method is called asynchronously,
|
28190
|
+
returns the request thread.
|
28191
|
+
"""
|
28192
|
+
kwargs['_return_http_data_only'] = True
|
28193
|
+
return self.list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
28194
|
+
|
28195
|
+
def list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
28196
|
+
"""List Ray Sessions # noqa: E501
|
28197
|
+
|
28198
|
+
This method makes a synchronous HTTP request by default. To make an
|
28199
|
+
asynchronous HTTP request, please pass async_req=True
|
28200
|
+
>>> thread = api.list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(cluster_id, async_req=True)
|
28201
|
+
>>> result = thread.get()
|
28202
|
+
|
28203
|
+
:param async_req bool: execute request asynchronously
|
28204
|
+
:param str cluster_id: (required)
|
28205
|
+
:param _return_http_data_only: response data without head status code
|
28206
|
+
and headers
|
28207
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28208
|
+
be returned without reading/decoding response
|
28209
|
+
data. Default is True.
|
28210
|
+
:param _request_timeout: timeout setting for this request. If one
|
28211
|
+
number provided, it will be total request
|
28212
|
+
timeout. It can also be a pair (tuple) of
|
28213
|
+
(connection, read) timeouts.
|
28214
|
+
:return: tuple(ListraysessionsresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
28215
|
+
If the method is called asynchronously,
|
28216
|
+
returns the request thread.
|
28217
|
+
"""
|
28218
|
+
|
28219
|
+
local_var_params = locals()
|
28220
|
+
|
28221
|
+
all_params = [
|
28222
|
+
'cluster_id'
|
28223
|
+
]
|
28224
|
+
all_params.extend(
|
28225
|
+
[
|
28226
|
+
'async_req',
|
28227
|
+
'_return_http_data_only',
|
28228
|
+
'_preload_content',
|
28229
|
+
'_request_timeout'
|
28230
|
+
]
|
28231
|
+
)
|
28232
|
+
|
28233
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28234
|
+
if key not in all_params:
|
28235
|
+
raise ApiTypeError(
|
28236
|
+
"Got an unexpected keyword argument '%s'"
|
28237
|
+
" to method list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get" % key
|
28238
|
+
)
|
28239
|
+
local_var_params[key] = val
|
28240
|
+
del local_var_params['kwargs']
|
28241
|
+
# verify the required parameter 'cluster_id' is set
|
28242
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
28243
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
28244
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get`") # noqa: E501
|
28245
|
+
|
28246
|
+
collection_formats = {}
|
28247
|
+
|
28248
|
+
path_params = {}
|
28249
|
+
|
28250
|
+
query_params = []
|
28251
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
28252
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # 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/tasks_dashboard/list_ray_sessions', '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='ListraysessionsresponseResponse', # 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
|
+
|
28399
28283
|
def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
|
28400
28284
|
"""List Services # noqa: E501
|
28401
28285
|
|
@@ -47,7 +47,6 @@ from openapi_client.models.archived_logs_info import ArchivedLogsInfo
|
|
47
47
|
from openapi_client.models.archivedlogsinfo_response import ArchivedlogsinfoResponse
|
48
48
|
from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
|
49
49
|
from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
|
50
|
-
from openapi_client.models.aviary_model_config_v2 import AviaryModelConfigV2
|
51
50
|
from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
|
52
51
|
from openapi_client.models.aws_region_info import AwsRegionInfo
|
53
52
|
from openapi_client.models.awsregionandzones_response import AwsregionandzonesResponse
|
@@ -282,7 +281,6 @@ from openapi_client.models.fine_tune_type import FineTuneType
|
|
282
281
|
from openapi_client.models.fine_tuned_model import FineTunedModel
|
283
282
|
from openapi_client.models.finetunedmodel_list_response import FinetunedmodelListResponse
|
284
283
|
from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
|
285
|
-
from openapi_client.models.finish_ft_job_request_v2 import FinishFTJobRequestV2
|
286
284
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
287
285
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
288
286
|
from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
@@ -330,11 +328,13 @@ from openapi_client.models.lb_resource import LBResource
|
|
330
328
|
from openapi_client.models.lbresource_response import LbresourceResponse
|
331
329
|
from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
|
332
330
|
from openapi_client.models.list_machines_response import ListMachinesResponse
|
331
|
+
from openapi_client.models.list_ray_sessions_response import ListRaySessionsResponse
|
333
332
|
from openapi_client.models.list_resource_notifications_query import ListResourceNotificationsQuery
|
334
333
|
from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQuery
|
335
334
|
from openapi_client.models.list_response_metadata import ListResponseMetadata
|
336
335
|
from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
|
337
336
|
from openapi_client.models.listmachinesresponse_response import ListmachinesresponseResponse
|
337
|
+
from openapi_client.models.listraysessionsresponse_response import ListraysessionsresponseResponse
|
338
338
|
from openapi_client.models.log_download_config import LogDownloadConfig
|
339
339
|
from openapi_client.models.log_download_request import LogDownloadRequest
|
340
340
|
from openapi_client.models.log_download_result import LogDownloadResult
|
@@ -419,9 +419,7 @@ from openapi_client.models.organizationusagealert_list_response import Organizat
|
|
419
419
|
from openapi_client.models.page_query import PageQuery
|
420
420
|
from openapi_client.models.pause_schedule import PauseSchedule
|
421
421
|
from openapi_client.models.permission_level import PermissionLevel
|
422
|
-
from openapi_client.models.product_autoscaler_flag import ProductAutoscalerFlag
|
423
422
|
from openapi_client.models.product_type import ProductType
|
424
|
-
from openapi_client.models.productautoscalerflag_response import ProductautoscalerflagResponse
|
425
423
|
from openapi_client.models.production_job import ProductionJob
|
426
424
|
from openapi_client.models.production_job_config import ProductionJobConfig
|
427
425
|
from openapi_client.models.production_job_event import ProductionJobEvent
|
@@ -445,6 +443,7 @@ from openapi_client.models.python_modules import PythonModules
|
|
445
443
|
from openapi_client.models.quota import Quota
|
446
444
|
from openapi_client.models.ray_gcs_external_storage_config import RayGCSExternalStorageConfig
|
447
445
|
from openapi_client.models.ray_runtime_env_config import RayRuntimeEnvConfig
|
446
|
+
from openapi_client.models.ray_session import RaySession
|
448
447
|
from openapi_client.models.read_billing_version import ReadBillingVersion
|
449
448
|
from openapi_client.models.readbillingversion_list_response import ReadbillingversionListResponse
|
450
449
|
from openapi_client.models.replica_details import ReplicaDetails
|
@@ -33,8 +33,17 @@ class AlertType(object):
|
|
33
33
|
LOW_REMAINING_DAYS_IN_PLAN_REACHED = "low_remaining_days_in_plan_reached"
|
34
34
|
LOW_REMAINING_CREDIT_PERCENTAGE_REACHED = "low_remaining_credit_percentage_reached"
|
35
35
|
USAGE_THRESHOLD_REACHED = "usage_threshold_reached"
|
36
|
-
|
37
|
-
|
36
|
+
LOW_REMAINING_COMMIT_BALANCE_REACHED = "low_remaining_commit_balance_reached"
|
37
|
+
LOW_REMAINING_COMMIT_PERCENTAGE_REACHED = "low_remaining_commit_percentage_reached"
|
38
|
+
LOW_REMAINING_DAYS_FOR_COMMIT_SEGMENT_REACHED = "low_remaining_days_for_commit_segment_reached"
|
39
|
+
LOW_REMAINING_CONTRACT_CREDIT_BALANCE_REACHED = "low_remaining_contract_credit_balance_reached"
|
40
|
+
LOW_REMAINING_CONTRACT_CREDIT_PERCENTAGE_REACHED = "low_remaining_contract_credit_percentage_reached"
|
41
|
+
LOW_REMAINING_DAYS_FOR_CONTRACT_CREDIT_SEGMENT_REACHED = "low_remaining_days_for_contract_credit_segment_reached"
|
42
|
+
LOW_REMAINING_CONTRACT_CREDIT_AND_COMMIT_BALANCE_REACHED = "low_remaining_contract_credit_and_commit_balance_reached"
|
43
|
+
MONTHLY_INVOICE_TOTAL_SPEND_THRESHOLD_REACHED = "monthly_invoice_total_spend_threshold_reached"
|
44
|
+
INVOICE_TOTAL_REACHED = "invoice_total_reached"
|
45
|
+
|
46
|
+
allowable_values = [LOW_CREDIT_BALANCE_REACHED, SPEND_THRESHOLD_REACHED, LOW_REMAINING_DAYS_IN_PLAN_REACHED, LOW_REMAINING_CREDIT_PERCENTAGE_REACHED, USAGE_THRESHOLD_REACHED, LOW_REMAINING_COMMIT_BALANCE_REACHED, LOW_REMAINING_COMMIT_PERCENTAGE_REACHED, LOW_REMAINING_DAYS_FOR_COMMIT_SEGMENT_REACHED, LOW_REMAINING_CONTRACT_CREDIT_BALANCE_REACHED, LOW_REMAINING_CONTRACT_CREDIT_PERCENTAGE_REACHED, LOW_REMAINING_DAYS_FOR_CONTRACT_CREDIT_SEGMENT_REACHED, LOW_REMAINING_CONTRACT_CREDIT_AND_COMMIT_BALANCE_REACHED, MONTHLY_INVOICE_TOTAL_SPEND_THRESHOLD_REACHED, INVOICE_TOTAL_REACHED] # noqa: E501
|
38
47
|
|
39
48
|
"""
|
40
49
|
Attributes:
|
@@ -39,8 +39,7 @@ class CreateJobQueueRequests(object):
|
|
39
39
|
'cluster_environment_build_id': 'str',
|
40
40
|
'max_concurrency': 'int',
|
41
41
|
'idle_timeout_sec': 'int',
|
42
|
-
'project_id': 'str'
|
43
|
-
'cloud_id': 'str'
|
42
|
+
'project_id': 'str'
|
44
43
|
}
|
45
44
|
|
46
45
|
attribute_map = {
|
@@ -50,11 +49,10 @@ class CreateJobQueueRequests(object):
|
|
50
49
|
'cluster_environment_build_id': 'cluster_environment_build_id',
|
51
50
|
'max_concurrency': 'max_concurrency',
|
52
51
|
'idle_timeout_sec': 'idle_timeout_sec',
|
53
|
-
'project_id': 'project_id'
|
54
|
-
'cloud_id': 'cloud_id'
|
52
|
+
'project_id': 'project_id'
|
55
53
|
}
|
56
54
|
|
57
|
-
def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, project_id=None,
|
55
|
+
def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, project_id=None, local_vars_configuration=None): # noqa: E501
|
58
56
|
"""CreateJobQueueRequests - a model defined in OpenAPI""" # noqa: E501
|
59
57
|
if local_vars_configuration is None:
|
60
58
|
local_vars_configuration = Configuration()
|
@@ -67,7 +65,6 @@ class CreateJobQueueRequests(object):
|
|
67
65
|
self._max_concurrency = None
|
68
66
|
self._idle_timeout_sec = None
|
69
67
|
self._project_id = None
|
70
|
-
self._cloud_id = None
|
71
68
|
self.discriminator = None
|
72
69
|
|
73
70
|
if job_queue_name is not None:
|
@@ -80,7 +77,6 @@ class CreateJobQueueRequests(object):
|
|
80
77
|
self.max_concurrency = max_concurrency
|
81
78
|
self.idle_timeout_sec = idle_timeout_sec
|
82
79
|
self.project_id = project_id
|
83
|
-
self.cloud_id = cloud_id
|
84
80
|
|
85
81
|
@property
|
86
82
|
def job_queue_name(self):
|
@@ -251,31 +247,6 @@ class CreateJobQueueRequests(object):
|
|
251
247
|
|
252
248
|
self._project_id = project_id
|
253
249
|
|
254
|
-
@property
|
255
|
-
def cloud_id(self):
|
256
|
-
"""Gets the cloud_id of this CreateJobQueueRequests. # noqa: E501
|
257
|
-
|
258
|
-
The cloud id to which the job queue belongs to. # noqa: E501
|
259
|
-
|
260
|
-
:return: The cloud_id of this CreateJobQueueRequests. # noqa: E501
|
261
|
-
:rtype: str
|
262
|
-
"""
|
263
|
-
return self._cloud_id
|
264
|
-
|
265
|
-
@cloud_id.setter
|
266
|
-
def cloud_id(self, cloud_id):
|
267
|
-
"""Sets the cloud_id of this CreateJobQueueRequests.
|
268
|
-
|
269
|
-
The cloud id to which the job queue belongs to. # noqa: E501
|
270
|
-
|
271
|
-
:param cloud_id: The cloud_id of this CreateJobQueueRequests. # noqa: E501
|
272
|
-
:type: str
|
273
|
-
"""
|
274
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
275
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
276
|
-
|
277
|
-
self._cloud_id = cloud_id
|
278
|
-
|
279
250
|
def to_dict(self):
|
280
251
|
"""Returns the model properties as a dict"""
|
281
252
|
result = {}
|
anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py}
RENAMED
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class ListRaySessionsResponse(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,47 +33,46 @@ class ProductAutoscalerFlag(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
36
|
+
'results': 'list[RaySession]'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
40
|
-
'
|
40
|
+
'results': 'results'
|
41
41
|
}
|
42
42
|
|
43
|
-
def __init__(self,
|
44
|
-
"""
|
43
|
+
def __init__(self, results=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""ListRaySessionsResponse - a model defined in OpenAPI""" # noqa: E501
|
45
45
|
if local_vars_configuration is None:
|
46
46
|
local_vars_configuration = Configuration()
|
47
47
|
self.local_vars_configuration = local_vars_configuration
|
48
48
|
|
49
|
-
self.
|
49
|
+
self._results = None
|
50
50
|
self.discriminator = None
|
51
51
|
|
52
|
-
|
53
|
-
self.enable_product_autoscaler = enable_product_autoscaler
|
52
|
+
self.results = results
|
54
53
|
|
55
54
|
@property
|
56
|
-
def
|
57
|
-
"""Gets the
|
55
|
+
def results(self):
|
56
|
+
"""Gets the results of this ListRaySessionsResponse. # noqa: E501
|
58
57
|
|
59
|
-
Product autoscaler flag. # noqa: E501
|
60
58
|
|
61
|
-
:return: The
|
62
|
-
:rtype:
|
59
|
+
:return: The results of this ListRaySessionsResponse. # noqa: E501
|
60
|
+
:rtype: list[RaySession]
|
63
61
|
"""
|
64
|
-
return self.
|
62
|
+
return self._results
|
65
63
|
|
66
|
-
@
|
67
|
-
def
|
68
|
-
"""Sets the
|
64
|
+
@results.setter
|
65
|
+
def results(self, results):
|
66
|
+
"""Sets the results of this ListRaySessionsResponse.
|
69
67
|
|
70
|
-
Product autoscaler flag. # noqa: E501
|
71
68
|
|
72
|
-
:param
|
73
|
-
:type:
|
69
|
+
:param results: The results of this ListRaySessionsResponse. # noqa: E501
|
70
|
+
:type: list[RaySession]
|
74
71
|
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
75
74
|
|
76
|
-
self.
|
75
|
+
self._results = results
|
77
76
|
|
78
77
|
def to_dict(self):
|
79
78
|
"""Returns the model properties as a dict"""
|
@@ -109,14 +108,14 @@ class ProductAutoscalerFlag(object):
|
|
109
108
|
|
110
109
|
def __eq__(self, other):
|
111
110
|
"""Returns true if both objects are equal"""
|
112
|
-
if not isinstance(other,
|
111
|
+
if not isinstance(other, ListRaySessionsResponse):
|
113
112
|
return False
|
114
113
|
|
115
114
|
return self.to_dict() == other.to_dict()
|
116
115
|
|
117
116
|
def __ne__(self, other):
|
118
117
|
"""Returns true if both objects are not equal"""
|
119
|
-
if not isinstance(other,
|
118
|
+
if not isinstance(other, ListRaySessionsResponse):
|
120
119
|
return True
|
121
120
|
|
122
121
|
return self.to_dict() != other.to_dict()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class ListraysessionsresponseResponse(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,7 +33,7 @@ class ProductautoscalerflagResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'result': '
|
36
|
+
'result': 'ListRaySessionsResponse'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
@@ -41,7 +41,7 @@ class ProductautoscalerflagResponse(object):
|
|
41
41
|
}
|
42
42
|
|
43
43
|
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""
|
44
|
+
"""ListraysessionsresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
45
45
|
if local_vars_configuration is None:
|
46
46
|
local_vars_configuration = Configuration()
|
47
47
|
self.local_vars_configuration = local_vars_configuration
|
@@ -53,21 +53,21 @@ class ProductautoscalerflagResponse(object):
|
|
53
53
|
|
54
54
|
@property
|
55
55
|
def result(self):
|
56
|
-
"""Gets the result of this
|
56
|
+
"""Gets the result of this ListraysessionsresponseResponse. # noqa: E501
|
57
57
|
|
58
58
|
|
59
|
-
:return: The result of this
|
60
|
-
:rtype:
|
59
|
+
:return: The result of this ListraysessionsresponseResponse. # noqa: E501
|
60
|
+
:rtype: ListRaySessionsResponse
|
61
61
|
"""
|
62
62
|
return self._result
|
63
63
|
|
64
64
|
@result.setter
|
65
65
|
def result(self, result):
|
66
|
-
"""Sets the result of this
|
66
|
+
"""Sets the result of this ListraysessionsresponseResponse.
|
67
67
|
|
68
68
|
|
69
|
-
:param result: The result of this
|
70
|
-
:type:
|
69
|
+
:param result: The result of this ListraysessionsresponseResponse. # noqa: E501
|
70
|
+
:type: ListRaySessionsResponse
|
71
71
|
"""
|
72
72
|
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
73
|
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
@@ -108,14 +108,14 @@ class ProductautoscalerflagResponse(object):
|
|
108
108
|
|
109
109
|
def __eq__(self, other):
|
110
110
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
111
|
+
if not isinstance(other, ListraysessionsresponseResponse):
|
112
112
|
return False
|
113
113
|
|
114
114
|
return self.to_dict() == other.to_dict()
|
115
115
|
|
116
116
|
def __ne__(self, other):
|
117
117
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
118
|
+
if not isinstance(other, ListraysessionsresponseResponse):
|
119
119
|
return True
|
120
120
|
|
121
121
|
return self.to_dict() != other.to_dict()
|