anyscale 0.26.14__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.
Files changed (75) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +4 -2
  2. anyscale/_private/anyscale_client/common.py +6 -4
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +16 -7
  4. anyscale/_private/docgen/__main__.py +4 -4
  5. anyscale/_private/docgen/generator.py +2 -2
  6. anyscale/_private/models/model_base.py +5 -2
  7. anyscale/_private/sdk/__init__.py +2 -2
  8. anyscale/_private/utils/progress_util.py +2 -2
  9. anyscale/_private/workload/workload_sdk.py +10 -7
  10. anyscale/aggregated_instance_usage/commands.py +6 -2
  11. anyscale/anyscale-cloud-setup.yaml +4 -0
  12. anyscale/client/README.md +8 -11
  13. anyscale/client/openapi_client/__init__.py +6 -8
  14. anyscale/client/openapi_client/api/default_api.py +292 -377
  15. anyscale/client/openapi_client/models/__init__.py +6 -8
  16. anyscale/client/openapi_client/models/alert_type.py +11 -2
  17. anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
  18. anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
  19. anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
  20. anyscale/client/openapi_client/models/metric.py +133 -3
  21. anyscale/client/openapi_client/models/ray_session.py +121 -0
  22. anyscale/client/openapi_client/models/task_exception_group_aggregate.py +28 -1
  23. anyscale/client/openapi_client/models/{taskexceptiongroupaggregate_list_response.py → task_exception_group_aggregate_response.py} +52 -25
  24. anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +28 -1
  25. anyscale/client/openapi_client/models/{taskfunctionnamegroupaggregate_list_response.py → task_function_name_group_aggregate_response.py} +52 -25
  26. anyscale/client/openapi_client/models/task_job_group_aggregate.py +28 -1
  27. anyscale/client/openapi_client/models/{taskjobgroupaggregate_list_response.py → task_job_group_aggregate_response.py} +52 -25
  28. anyscale/client/openapi_client/models/task_table_row.py +19 -19
  29. anyscale/cloud/__init__.py +2 -2
  30. anyscale/cloud/_private/cloud_sdk.py +2 -2
  31. anyscale/cloud/commands.py +9 -6
  32. anyscale/cloud_resource.py +1 -1
  33. anyscale/cloud_utils.py +11 -6
  34. anyscale/cluster_compute.py +6 -5
  35. anyscale/cluster_env.py +10 -5
  36. anyscale/commands/login_commands.py +24 -3
  37. anyscale/commands/schedule_commands.py +2 -1
  38. anyscale/compute_config/_private/compute_config_sdk.py +1 -1
  39. anyscale/compute_config/commands.py +15 -7
  40. anyscale/connect_utils/prepare_cluster.py +14 -4
  41. anyscale/controllers/cloud_controller.py +9 -9
  42. anyscale/controllers/cloud_functional_verification_controller.py +4 -2
  43. anyscale/controllers/cluster_controller.py +1 -0
  44. anyscale/controllers/job_controller.py +1 -1
  45. anyscale/controllers/service_controller.py +2 -1
  46. anyscale/image/commands.py +6 -6
  47. anyscale/job/commands.py +12 -12
  48. anyscale/organization_invitation/commands.py +11 -7
  49. anyscale/project/__init__.py +2 -2
  50. anyscale/project/_private/project_sdk.py +2 -2
  51. anyscale/project/commands.py +3 -3
  52. anyscale/project_utils.py +5 -4
  53. anyscale/resource_quota/commands.py +18 -10
  54. anyscale/schedule/commands.py +12 -8
  55. anyscale/sdk/anyscale_client/sdk.py +5 -4
  56. anyscale/service/commands.py +17 -17
  57. anyscale/service_account/commands.py +12 -10
  58. anyscale/user/commands.py +5 -3
  59. anyscale/utils/connect_helpers.py +16 -3
  60. anyscale/utils/gcp_utils.py +25 -9
  61. anyscale/utils/runtime_env.py +3 -1
  62. anyscale/version.py +1 -1
  63. anyscale/workspace/__init__.py +10 -5
  64. anyscale/workspace/_private/workspace_sdk.py +9 -7
  65. anyscale/workspace/commands.py +25 -23
  66. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/METADATA +1 -1
  67. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/RECORD +72 -74
  68. anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
  69. anyscale/client/openapi_client/models/buffer_registration.py +0 -285
  70. anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
  71. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/LICENSE +0 -0
  72. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/NOTICE +0 -0
  73. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/WHEEL +0 -0
  74. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/entry_points.txt +0 -0
  75. {anyscale-0.26.14.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
 
@@ -14600,16 +14372,146 @@ class DefaultApi(object):
14600
14372
  def get_dataset_download_url_api_v2_datasets_download_get_with_http_info(self, name, **kwargs): # noqa: E501
14601
14373
  """Get Dataset Download Url # noqa: E501
14602
14374
 
14603
- Returns a short-lived URL that can be visited to download the dataset. # noqa: E501
14375
+ Returns a short-lived URL that can be visited to download the dataset. # noqa: E501
14376
+ This method makes a synchronous HTTP request by default. To make an
14377
+ asynchronous HTTP request, please pass async_req=True
14378
+ >>> thread = api.get_dataset_download_url_api_v2_datasets_download_get_with_http_info(name, async_req=True)
14379
+ >>> result = thread.get()
14380
+
14381
+ :param async_req bool: execute request asynchronously
14382
+ :param str name: Name of the dataset to download. (required)
14383
+ :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14384
+ :param str project_id: ID of the Anyscale project that the dataset belongs to.
14385
+ :param _return_http_data_only: response data without head status code
14386
+ and headers
14387
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14388
+ be returned without reading/decoding response
14389
+ data. Default is True.
14390
+ :param _request_timeout: timeout setting for this request. If one
14391
+ number provided, it will be total request
14392
+ timeout. It can also be a pair (tuple) of
14393
+ (connection, read) timeouts.
14394
+ :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
14395
+ If the method is called asynchronously,
14396
+ returns the request thread.
14397
+ """
14398
+
14399
+ local_var_params = locals()
14400
+
14401
+ all_params = [
14402
+ 'name',
14403
+ 'version',
14404
+ 'project_id'
14405
+ ]
14406
+ all_params.extend(
14407
+ [
14408
+ 'async_req',
14409
+ '_return_http_data_only',
14410
+ '_preload_content',
14411
+ '_request_timeout'
14412
+ ]
14413
+ )
14414
+
14415
+ for key, val in six.iteritems(local_var_params['kwargs']):
14416
+ if key not in all_params:
14417
+ raise ApiTypeError(
14418
+ "Got an unexpected keyword argument '%s'"
14419
+ " to method get_dataset_download_url_api_v2_datasets_download_get" % key
14420
+ )
14421
+ local_var_params[key] = val
14422
+ del local_var_params['kwargs']
14423
+ # verify the required parameter 'name' is set
14424
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
14425
+ local_var_params['name'] is None): # noqa: E501
14426
+ raise ApiValueError("Missing the required parameter `name` when calling `get_dataset_download_url_api_v2_datasets_download_get`") # noqa: E501
14427
+
14428
+ collection_formats = {}
14429
+
14430
+ path_params = {}
14431
+
14432
+ query_params = []
14433
+ if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
14434
+ query_params.append(('name', local_var_params['name'])) # noqa: E501
14435
+ if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
14436
+ query_params.append(('version', local_var_params['version'])) # noqa: E501
14437
+ if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
14438
+ query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
14439
+
14440
+ header_params = {}
14441
+
14442
+ form_params = []
14443
+ local_var_files = {}
14444
+
14445
+ body_params = None
14446
+ # HTTP header `Accept`
14447
+ header_params['Accept'] = self.api_client.select_header_accept(
14448
+ ['application/json']) # noqa: E501
14449
+
14450
+ # Authentication setting
14451
+ auth_settings = [] # noqa: E501
14452
+
14453
+ return self.api_client.call_api(
14454
+ '/api/v2/datasets/download', 'GET',
14455
+ path_params,
14456
+ query_params,
14457
+ header_params,
14458
+ body=body_params,
14459
+ post_params=form_params,
14460
+ files=local_var_files,
14461
+ response_type='str', # noqa: E501
14462
+ auth_settings=auth_settings,
14463
+ async_req=local_var_params.get('async_req'),
14464
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14465
+ _preload_content=local_var_params.get('_preload_content', True),
14466
+ _request_timeout=local_var_params.get('_request_timeout'),
14467
+ collection_formats=collection_formats)
14468
+
14469
+ def get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(self, cluster_id, session_name, dataset_id, **kwargs): # noqa: E501
14470
+ """Get Dataset Logs Download # noqa: E501
14471
+
14472
+ Fetches logs of the dataset. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. # noqa: E501
14473
+ This method makes a synchronous HTTP request by default. To make an
14474
+ asynchronous HTTP request, please pass async_req=True
14475
+ >>> thread = api.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(cluster_id, session_name, dataset_id, async_req=True)
14476
+ >>> result = thread.get()
14477
+
14478
+ :param async_req bool: execute request asynchronously
14479
+ :param str cluster_id: (required)
14480
+ :param str session_name: (required)
14481
+ :param str dataset_id: (required)
14482
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
14483
+ :param str next_page_token: Pagination token for getting newer logs.
14484
+ :param str previous_page_token: Pagination token for getting older logs.
14485
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14486
+ be returned without reading/decoding response
14487
+ data. Default is True.
14488
+ :param _request_timeout: timeout setting for this request. If one
14489
+ number provided, it will be total request
14490
+ timeout. It can also be a pair (tuple) of
14491
+ (connection, read) timeouts.
14492
+ :return: LogdownloadresultResponse
14493
+ If the method is called asynchronously,
14494
+ returns the request thread.
14495
+ """
14496
+ kwargs['_return_http_data_only'] = True
14497
+ return self.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(cluster_id, session_name, dataset_id, **kwargs) # noqa: E501
14498
+
14499
+ def get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(self, cluster_id, session_name, dataset_id, **kwargs): # noqa: E501
14500
+ """Get Dataset Logs Download # noqa: E501
14501
+
14502
+ Fetches logs of the dataset. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. # noqa: E501
14604
14503
  This method makes a synchronous HTTP request by default. To make an
14605
14504
  asynchronous HTTP request, please pass async_req=True
14606
- >>> thread = api.get_dataset_download_url_api_v2_datasets_download_get_with_http_info(name, async_req=True)
14505
+ >>> thread = api.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get_with_http_info(cluster_id, session_name, dataset_id, async_req=True)
14607
14506
  >>> result = thread.get()
14608
14507
 
14609
14508
  :param async_req bool: execute request asynchronously
14610
- :param str name: Name of the dataset to download. (required)
14611
- :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14612
- :param str project_id: ID of the Anyscale project that the dataset belongs to.
14509
+ :param str cluster_id: (required)
14510
+ :param str session_name: (required)
14511
+ :param str dataset_id: (required)
14512
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
14513
+ :param str next_page_token: Pagination token for getting newer logs.
14514
+ :param str previous_page_token: Pagination token for getting older logs.
14613
14515
  :param _return_http_data_only: response data without head status code
14614
14516
  and headers
14615
14517
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -14619,7 +14521,7 @@ class DefaultApi(object):
14619
14521
  number provided, it will be total request
14620
14522
  timeout. It can also be a pair (tuple) of
14621
14523
  (connection, read) timeouts.
14622
- :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
14524
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
14623
14525
  If the method is called asynchronously,
14624
14526
  returns the request thread.
14625
14527
  """
@@ -14627,9 +14529,12 @@ class DefaultApi(object):
14627
14529
  local_var_params = locals()
14628
14530
 
14629
14531
  all_params = [
14630
- 'name',
14631
- 'version',
14632
- 'project_id'
14532
+ 'cluster_id',
14533
+ 'session_name',
14534
+ 'dataset_id',
14535
+ 'page_size',
14536
+ 'next_page_token',
14537
+ 'previous_page_token'
14633
14538
  ]
14634
14539
  all_params.extend(
14635
14540
  [
@@ -14644,26 +14549,42 @@ class DefaultApi(object):
14644
14549
  if key not in all_params:
14645
14550
  raise ApiTypeError(
14646
14551
  "Got an unexpected keyword argument '%s'"
14647
- " to method get_dataset_download_url_api_v2_datasets_download_get" % key
14552
+ " to method get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get" % key
14648
14553
  )
14649
14554
  local_var_params[key] = val
14650
14555
  del local_var_params['kwargs']
14651
- # verify the required parameter 'name' is set
14652
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
14653
- local_var_params['name'] is None): # noqa: E501
14654
- raise ApiValueError("Missing the required parameter `name` when calling `get_dataset_download_url_api_v2_datasets_download_get`") # noqa: E501
14556
+ # verify the required parameter 'cluster_id' is set
14557
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
14558
+ local_var_params['cluster_id'] is None): # noqa: E501
14559
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14560
+ # verify the required parameter 'session_name' is set
14561
+ if self.api_client.client_side_validation and ('session_name' not in local_var_params or # noqa: E501
14562
+ local_var_params['session_name'] is None): # noqa: E501
14563
+ raise ApiValueError("Missing the required parameter `session_name` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14564
+ # verify the required parameter 'dataset_id' is set
14565
+ if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
14566
+ local_var_params['dataset_id'] is None): # noqa: E501
14567
+ raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14655
14568
 
14569
+ if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
14570
+ raise ApiValueError("Invalid value for parameter `page_size` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`, must be a value less than or equal to `1000`") # noqa: E501
14656
14571
  collection_formats = {}
14657
14572
 
14658
14573
  path_params = {}
14659
14574
 
14660
14575
  query_params = []
14661
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
14662
- query_params.append(('name', local_var_params['name'])) # noqa: E501
14663
- if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
14664
- query_params.append(('version', local_var_params['version'])) # noqa: E501
14665
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
14666
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
14576
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
14577
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
14578
+ if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
14579
+ query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
14580
+ if 'dataset_id' in local_var_params and local_var_params['dataset_id'] is not None: # noqa: E501
14581
+ query_params.append(('dataset_id', local_var_params['dataset_id'])) # noqa: E501
14582
+ if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
14583
+ query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
14584
+ if 'next_page_token' in local_var_params and local_var_params['next_page_token'] is not None: # noqa: E501
14585
+ query_params.append(('next_page_token', local_var_params['next_page_token'])) # noqa: E501
14586
+ if 'previous_page_token' in local_var_params and local_var_params['previous_page_token'] is not None: # noqa: E501
14587
+ query_params.append(('previous_page_token', local_var_params['previous_page_token'])) # noqa: E501
14667
14588
 
14668
14589
  header_params = {}
14669
14590
 
@@ -14679,14 +14600,14 @@ class DefaultApi(object):
14679
14600
  auth_settings = [] # noqa: E501
14680
14601
 
14681
14602
  return self.api_client.call_api(
14682
- '/api/v2/datasets/download', 'GET',
14603
+ '/api/v2/dataset_runs/dataset_logs', 'GET',
14683
14604
  path_params,
14684
14605
  query_params,
14685
14606
  header_params,
14686
14607
  body=body_params,
14687
14608
  post_params=form_params,
14688
14609
  files=local_var_files,
14689
- response_type='str', # noqa: E501
14610
+ response_type='LogdownloadresultResponse', # noqa: E501
14690
14611
  auth_settings=auth_settings,
14691
14612
  async_req=local_var_params.get('async_req'),
14692
14613
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21881,7 +21802,7 @@ class DefaultApi(object):
21881
21802
  number provided, it will be total request
21882
21803
  timeout. It can also be a pair (tuple) of
21883
21804
  (connection, read) timeouts.
21884
- :return: TaskexceptiongroupaggregateListResponse
21805
+ :return: TaskExceptionGroupAggregateResponse
21885
21806
  If the method is called asynchronously,
21886
21807
  returns the request thread.
21887
21808
  """
@@ -21907,7 +21828,7 @@ class DefaultApi(object):
21907
21828
  number provided, it will be total request
21908
21829
  timeout. It can also be a pair (tuple) of
21909
21830
  (connection, read) timeouts.
21910
- :return: tuple(TaskexceptiongroupaggregateListResponse, status_code(int), headers(HTTPHeaderDict))
21831
+ :return: tuple(TaskExceptionGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
21911
21832
  If the method is called asynchronously,
21912
21833
  returns the request thread.
21913
21834
  """
@@ -21968,7 +21889,7 @@ class DefaultApi(object):
21968
21889
  body=body_params,
21969
21890
  post_params=form_params,
21970
21891
  files=local_var_files,
21971
- response_type='TaskexceptiongroupaggregateListResponse', # noqa: E501
21892
+ response_type='TaskExceptionGroupAggregateResponse', # noqa: E501
21972
21893
  auth_settings=auth_settings,
21973
21894
  async_req=local_var_params.get('async_req'),
21974
21895
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21993,7 +21914,7 @@ class DefaultApi(object):
21993
21914
  number provided, it will be total request
21994
21915
  timeout. It can also be a pair (tuple) of
21995
21916
  (connection, read) timeouts.
21996
- :return: TaskfunctionnamegroupaggregateListResponse
21917
+ :return: TaskFunctionNameGroupAggregateResponse
21997
21918
  If the method is called asynchronously,
21998
21919
  returns the request thread.
21999
21920
  """
@@ -22019,7 +21940,7 @@ class DefaultApi(object):
22019
21940
  number provided, it will be total request
22020
21941
  timeout. It can also be a pair (tuple) of
22021
21942
  (connection, read) timeouts.
22022
- :return: tuple(TaskfunctionnamegroupaggregateListResponse, status_code(int), headers(HTTPHeaderDict))
21943
+ :return: tuple(TaskFunctionNameGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
22023
21944
  If the method is called asynchronously,
22024
21945
  returns the request thread.
22025
21946
  """
@@ -22080,7 +22001,7 @@ class DefaultApi(object):
22080
22001
  body=body_params,
22081
22002
  post_params=form_params,
22082
22003
  files=local_var_files,
22083
- response_type='TaskfunctionnamegroupaggregateListResponse', # noqa: E501
22004
+ response_type='TaskFunctionNameGroupAggregateResponse', # noqa: E501
22084
22005
  auth_settings=auth_settings,
22085
22006
  async_req=local_var_params.get('async_req'),
22086
22007
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -22105,7 +22026,7 @@ class DefaultApi(object):
22105
22026
  number provided, it will be total request
22106
22027
  timeout. It can also be a pair (tuple) of
22107
22028
  (connection, read) timeouts.
22108
- :return: TaskjobgroupaggregateListResponse
22029
+ :return: TaskJobGroupAggregateResponse
22109
22030
  If the method is called asynchronously,
22110
22031
  returns the request thread.
22111
22032
  """
@@ -22131,7 +22052,7 @@ class DefaultApi(object):
22131
22052
  number provided, it will be total request
22132
22053
  timeout. It can also be a pair (tuple) of
22133
22054
  (connection, read) timeouts.
22134
- :return: tuple(TaskjobgroupaggregateListResponse, status_code(int), headers(HTTPHeaderDict))
22055
+ :return: tuple(TaskJobGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
22135
22056
  If the method is called asynchronously,
22136
22057
  returns the request thread.
22137
22058
  """
@@ -22192,7 +22113,7 @@ class DefaultApi(object):
22192
22113
  body=body_params,
22193
22114
  post_params=form_params,
22194
22115
  files=local_var_files,
22195
- response_type='TaskjobgroupaggregateListResponse', # noqa: E501
22116
+ response_type='TaskJobGroupAggregateResponse', # noqa: E501
22196
22117
  auth_settings=auth_settings,
22197
22118
  async_req=local_var_params.get('async_req'),
22198
22119
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -28247,6 +28168,118 @@ class DefaultApi(object):
28247
28168
  _request_timeout=local_var_params.get('_request_timeout'),
28248
28169
  collection_formats=collection_formats)
28249
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
+
28250
28283
  def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
28251
28284
  """List Services # noqa: E501
28252
28285
 
@@ -31209,124 +31242,6 @@ class DefaultApi(object):
31209
31242
  _request_timeout=local_var_params.get('_request_timeout'),
31210
31243
  collection_formats=collection_formats)
31211
31244
 
31212
- def register_buffer_api_v2_anyscaled_register_buffer_post(self, buffer_registration, **kwargs): # noqa: E501
31213
- """Register Buffer # noqa: E501
31214
-
31215
- Register a node to receive a per-buffer token. # noqa: E501
31216
- This method makes a synchronous HTTP request by default. To make an
31217
- asynchronous HTTP request, please pass async_req=True
31218
- >>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post(buffer_registration, async_req=True)
31219
- >>> result = thread.get()
31220
-
31221
- :param async_req bool: execute request asynchronously
31222
- :param BufferRegistration buffer_registration: (required)
31223
- :param _preload_content: if False, the urllib3.HTTPResponse object will
31224
- be returned without reading/decoding response
31225
- data. Default is True.
31226
- :param _request_timeout: timeout setting for this request. If one
31227
- number provided, it will be total request
31228
- timeout. It can also be a pair (tuple) of
31229
- (connection, read) timeouts.
31230
- :return: AnyscaledcredentialresponseResponse
31231
- If the method is called asynchronously,
31232
- returns the request thread.
31233
- """
31234
- kwargs['_return_http_data_only'] = True
31235
- return self.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, **kwargs) # noqa: E501
31236
-
31237
- def register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(self, buffer_registration, **kwargs): # noqa: E501
31238
- """Register Buffer # noqa: E501
31239
-
31240
- Register a node to receive a per-buffer token. # noqa: E501
31241
- This method makes a synchronous HTTP request by default. To make an
31242
- asynchronous HTTP request, please pass async_req=True
31243
- >>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, async_req=True)
31244
- >>> result = thread.get()
31245
-
31246
- :param async_req bool: execute request asynchronously
31247
- :param BufferRegistration buffer_registration: (required)
31248
- :param _return_http_data_only: response data without head status code
31249
- and headers
31250
- :param _preload_content: if False, the urllib3.HTTPResponse object will
31251
- be returned without reading/decoding response
31252
- data. Default is True.
31253
- :param _request_timeout: timeout setting for this request. If one
31254
- number provided, it will be total request
31255
- timeout. It can also be a pair (tuple) of
31256
- (connection, read) timeouts.
31257
- :return: tuple(AnyscaledcredentialresponseResponse, status_code(int), headers(HTTPHeaderDict))
31258
- If the method is called asynchronously,
31259
- returns the request thread.
31260
- """
31261
-
31262
- local_var_params = locals()
31263
-
31264
- all_params = [
31265
- 'buffer_registration'
31266
- ]
31267
- all_params.extend(
31268
- [
31269
- 'async_req',
31270
- '_return_http_data_only',
31271
- '_preload_content',
31272
- '_request_timeout'
31273
- ]
31274
- )
31275
-
31276
- for key, val in six.iteritems(local_var_params['kwargs']):
31277
- if key not in all_params:
31278
- raise ApiTypeError(
31279
- "Got an unexpected keyword argument '%s'"
31280
- " to method register_buffer_api_v2_anyscaled_register_buffer_post" % key
31281
- )
31282
- local_var_params[key] = val
31283
- del local_var_params['kwargs']
31284
- # verify the required parameter 'buffer_registration' is set
31285
- if self.api_client.client_side_validation and ('buffer_registration' not in local_var_params or # noqa: E501
31286
- local_var_params['buffer_registration'] is None): # noqa: E501
31287
- raise ApiValueError("Missing the required parameter `buffer_registration` when calling `register_buffer_api_v2_anyscaled_register_buffer_post`") # noqa: E501
31288
-
31289
- collection_formats = {}
31290
-
31291
- path_params = {}
31292
-
31293
- query_params = []
31294
-
31295
- header_params = {}
31296
-
31297
- form_params = []
31298
- local_var_files = {}
31299
-
31300
- body_params = None
31301
- if 'buffer_registration' in local_var_params:
31302
- body_params = local_var_params['buffer_registration']
31303
- # HTTP header `Accept`
31304
- header_params['Accept'] = self.api_client.select_header_accept(
31305
- ['application/json']) # noqa: E501
31306
-
31307
- # HTTP header `Content-Type`
31308
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
31309
- ['application/json']) # noqa: E501
31310
-
31311
- # Authentication setting
31312
- auth_settings = [] # noqa: E501
31313
-
31314
- return self.api_client.call_api(
31315
- '/api/v2/anyscaled/register_buffer', 'POST',
31316
- path_params,
31317
- query_params,
31318
- header_params,
31319
- body=body_params,
31320
- post_params=form_params,
31321
- files=local_var_files,
31322
- response_type='AnyscaledcredentialresponseResponse', # noqa: E501
31323
- auth_settings=auth_settings,
31324
- async_req=local_var_params.get('async_req'),
31325
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
31326
- _preload_content=local_var_params.get('_preload_content', True),
31327
- _request_timeout=local_var_params.get('_request_timeout'),
31328
- collection_formats=collection_formats)
31329
-
31330
31245
  def register_build_api_v2_anyscaled_register_build_post(self, build_registration, **kwargs): # noqa: E501
31331
31246
  """Register Build # noqa: E501
31332
31247