anyscale 0.26.13__py3-none-any.whl → 0.26.15__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 (54) hide show
  1. anyscale/_private/anyscale_client/fake_anyscale_client.py +1 -1
  2. anyscale/_private/docgen/models.md +2 -2
  3. anyscale/_private/models/model_base.py +5 -2
  4. anyscale/_private/utils/progress_util.py +2 -2
  5. anyscale/_private/workload/workload_sdk.py +4 -3
  6. anyscale/anyscale-cloud-setup.yaml +4 -0
  7. anyscale/client/README.md +20 -2
  8. anyscale/client/openapi_client/__init__.py +14 -1
  9. anyscale/client/openapi_client/api/default_api.py +847 -241
  10. anyscale/client/openapi_client/models/__init__.py +14 -1
  11. anyscale/client/openapi_client/models/baseimagesenum.py +2 -4
  12. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +2 -2
  13. anyscale/client/openapi_client/models/task_exception_group_aggregate.py +175 -0
  14. anyscale/client/openapi_client/models/task_exception_group_aggregate_response.py +174 -0
  15. anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +202 -0
  16. anyscale/client/openapi_client/models/task_function_name_group_aggregate_response.py +174 -0
  17. anyscale/client/openapi_client/models/task_grouped_aggregate_metrics.py +337 -0
  18. anyscale/client/openapi_client/models/task_job_group_aggregate.py +175 -0
  19. anyscale/client/openapi_client/models/task_job_group_aggregate_response.py +174 -0
  20. anyscale/client/openapi_client/models/task_state.py +103 -0
  21. anyscale/client/openapi_client/models/task_summary.py +256 -0
  22. anyscale/client/openapi_client/models/task_table_config.py +250 -0
  23. anyscale/client/openapi_client/models/task_table_response.py +174 -0
  24. anyscale/client/openapi_client/models/task_table_row.py +491 -0
  25. anyscale/client/openapi_client/models/task_type.py +100 -0
  26. anyscale/client/openapi_client/models/tasksummary_response.py +121 -0
  27. anyscale/cloud_resource.py +1 -1
  28. anyscale/cloud_utils.py +6 -2
  29. anyscale/cluster_compute.py +4 -3
  30. anyscale/cluster_env.py +8 -5
  31. anyscale/commands/command_examples.py +22 -0
  32. anyscale/compute_config/_private/compute_config_sdk.py +1 -1
  33. anyscale/connect_utils/prepare_cluster.py +14 -4
  34. anyscale/controllers/cloud_controller.py +2 -2
  35. anyscale/controllers/cloud_functional_verification_controller.py +4 -2
  36. anyscale/controllers/service_controller.py +1 -1
  37. anyscale/project_utils.py +4 -3
  38. anyscale/sdk/anyscale_client/models/baseimagesenum.py +2 -4
  39. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +2 -2
  40. anyscale/sdk/anyscale_client/sdk.py +4 -4
  41. anyscale/utils/connect_helpers.py +16 -3
  42. anyscale/utils/runtime_env.py +3 -1
  43. anyscale/version.py +1 -1
  44. anyscale/workspace/__init__.py +10 -5
  45. anyscale/workspace/_private/workspace_sdk.py +4 -4
  46. anyscale/workspace/commands.py +1 -1
  47. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/METADATA +1 -1
  48. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/RECORD +53 -40
  49. anyscale/client/openapi_client/models/buffer_registration.py +0 -285
  50. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/LICENSE +0 -0
  51. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/NOTICE +0 -0
  52. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/WHEEL +0 -0
  53. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/entry_points.txt +0 -0
  54. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/top_level.txt +0 -0
@@ -14694,6 +14694,155 @@ class DefaultApi(object):
14694
14694
  _request_timeout=local_var_params.get('_request_timeout'),
14695
14695
  collection_formats=collection_formats)
14696
14696
 
14697
+ def get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(self, cluster_id, session_name, dataset_id, **kwargs): # noqa: E501
14698
+ """Get Dataset Logs Download # noqa: E501
14699
+
14700
+ 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
14701
+ This method makes a synchronous HTTP request by default. To make an
14702
+ asynchronous HTTP request, please pass async_req=True
14703
+ >>> thread = api.get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get(cluster_id, session_name, dataset_id, async_req=True)
14704
+ >>> result = thread.get()
14705
+
14706
+ :param async_req bool: execute request asynchronously
14707
+ :param str cluster_id: (required)
14708
+ :param str session_name: (required)
14709
+ :param str dataset_id: (required)
14710
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
14711
+ :param str next_page_token: Pagination token for getting newer logs.
14712
+ :param str previous_page_token: Pagination token for getting older logs.
14713
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14714
+ be returned without reading/decoding response
14715
+ data. Default is True.
14716
+ :param _request_timeout: timeout setting for this request. If one
14717
+ number provided, it will be total request
14718
+ timeout. It can also be a pair (tuple) of
14719
+ (connection, read) timeouts.
14720
+ :return: LogdownloadresultResponse
14721
+ If the method is called asynchronously,
14722
+ returns the request thread.
14723
+ """
14724
+ kwargs['_return_http_data_only'] = True
14725
+ 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
14726
+
14727
+ 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
14728
+ """Get Dataset Logs Download # noqa: E501
14729
+
14730
+ 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
14731
+ This method makes a synchronous HTTP request by default. To make an
14732
+ asynchronous HTTP request, please pass async_req=True
14733
+ >>> 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)
14734
+ >>> result = thread.get()
14735
+
14736
+ :param async_req bool: execute request asynchronously
14737
+ :param str cluster_id: (required)
14738
+ :param str session_name: (required)
14739
+ :param str dataset_id: (required)
14740
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
14741
+ :param str next_page_token: Pagination token for getting newer logs.
14742
+ :param str previous_page_token: Pagination token for getting older logs.
14743
+ :param _return_http_data_only: response data without head status code
14744
+ and headers
14745
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14746
+ be returned without reading/decoding response
14747
+ data. Default is True.
14748
+ :param _request_timeout: timeout setting for this request. If one
14749
+ number provided, it will be total request
14750
+ timeout. It can also be a pair (tuple) of
14751
+ (connection, read) timeouts.
14752
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
14753
+ If the method is called asynchronously,
14754
+ returns the request thread.
14755
+ """
14756
+
14757
+ local_var_params = locals()
14758
+
14759
+ all_params = [
14760
+ 'cluster_id',
14761
+ 'session_name',
14762
+ 'dataset_id',
14763
+ 'page_size',
14764
+ 'next_page_token',
14765
+ 'previous_page_token'
14766
+ ]
14767
+ all_params.extend(
14768
+ [
14769
+ 'async_req',
14770
+ '_return_http_data_only',
14771
+ '_preload_content',
14772
+ '_request_timeout'
14773
+ ]
14774
+ )
14775
+
14776
+ for key, val in six.iteritems(local_var_params['kwargs']):
14777
+ if key not in all_params:
14778
+ raise ApiTypeError(
14779
+ "Got an unexpected keyword argument '%s'"
14780
+ " to method get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get" % key
14781
+ )
14782
+ local_var_params[key] = val
14783
+ del local_var_params['kwargs']
14784
+ # verify the required parameter 'cluster_id' is set
14785
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
14786
+ local_var_params['cluster_id'] is None): # noqa: E501
14787
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14788
+ # verify the required parameter 'session_name' is set
14789
+ if self.api_client.client_side_validation and ('session_name' not in local_var_params or # noqa: E501
14790
+ local_var_params['session_name'] is None): # noqa: E501
14791
+ raise ApiValueError("Missing the required parameter `session_name` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14792
+ # verify the required parameter 'dataset_id' is set
14793
+ if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
14794
+ local_var_params['dataset_id'] is None): # noqa: E501
14795
+ raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_dataset_logs_download_api_v2_dataset_runs_dataset_logs_get`") # noqa: E501
14796
+
14797
+ if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
14798
+ 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
14799
+ collection_formats = {}
14800
+
14801
+ path_params = {}
14802
+
14803
+ query_params = []
14804
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
14805
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
14806
+ if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
14807
+ query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
14808
+ if 'dataset_id' in local_var_params and local_var_params['dataset_id'] is not None: # noqa: E501
14809
+ query_params.append(('dataset_id', local_var_params['dataset_id'])) # noqa: E501
14810
+ if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
14811
+ query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
14812
+ if 'next_page_token' in local_var_params and local_var_params['next_page_token'] is not None: # noqa: E501
14813
+ query_params.append(('next_page_token', local_var_params['next_page_token'])) # noqa: E501
14814
+ if 'previous_page_token' in local_var_params and local_var_params['previous_page_token'] is not None: # noqa: E501
14815
+ query_params.append(('previous_page_token', local_var_params['previous_page_token'])) # noqa: E501
14816
+
14817
+ header_params = {}
14818
+
14819
+ form_params = []
14820
+ local_var_files = {}
14821
+
14822
+ body_params = None
14823
+ # HTTP header `Accept`
14824
+ header_params['Accept'] = self.api_client.select_header_accept(
14825
+ ['application/json']) # noqa: E501
14826
+
14827
+ # Authentication setting
14828
+ auth_settings = [] # noqa: E501
14829
+
14830
+ return self.api_client.call_api(
14831
+ '/api/v2/dataset_runs/dataset_logs', 'GET',
14832
+ path_params,
14833
+ query_params,
14834
+ header_params,
14835
+ body=body_params,
14836
+ post_params=form_params,
14837
+ files=local_var_files,
14838
+ response_type='LogdownloadresultResponse', # noqa: E501
14839
+ auth_settings=auth_settings,
14840
+ async_req=local_var_params.get('async_req'),
14841
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14842
+ _preload_content=local_var_params.get('_preload_content', True),
14843
+ _request_timeout=local_var_params.get('_request_timeout'),
14844
+ collection_formats=collection_formats)
14845
+
14697
14846
  def get_decorated_cluster_api_v2_decorated_sessions_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
14698
14847
  """Get Decorated Cluster # noqa: E501
14699
14848
 
@@ -21390,26 +21539,626 @@ class DefaultApi(object):
21390
21539
  number provided, it will be total request
21391
21540
  timeout. It can also be a pair (tuple) of
21392
21541
  (connection, read) timeouts.
21393
- :return: SessionhistoryitemListResponse
21542
+ :return: SessionhistoryitemListResponse
21543
+ If the method is called asynchronously,
21544
+ returns the request thread.
21545
+ """
21546
+ kwargs['_return_http_data_only'] = True
21547
+ return self.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, **kwargs) # noqa: E501
21548
+
21549
+ def get_session_history_api_v2_sessions_session_id_history_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21550
+ """Get Session History # noqa: E501
21551
+
21552
+ Describe all actions applied to a particular session. # noqa: E501
21553
+ This method makes a synchronous HTTP request by default. To make an
21554
+ asynchronous HTTP request, please pass async_req=True
21555
+ >>> thread = api.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, async_req=True)
21556
+ >>> result = thread.get()
21557
+
21558
+ :param async_req bool: execute request asynchronously
21559
+ :param str session_id: (required)
21560
+ :param str paging_token:
21561
+ :param int count:
21562
+ :param _return_http_data_only: response data without head status code
21563
+ and headers
21564
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21565
+ be returned without reading/decoding response
21566
+ data. Default is True.
21567
+ :param _request_timeout: timeout setting for this request. If one
21568
+ number provided, it will be total request
21569
+ timeout. It can also be a pair (tuple) of
21570
+ (connection, read) timeouts.
21571
+ :return: tuple(SessionhistoryitemListResponse, status_code(int), headers(HTTPHeaderDict))
21572
+ If the method is called asynchronously,
21573
+ returns the request thread.
21574
+ """
21575
+
21576
+ local_var_params = locals()
21577
+
21578
+ all_params = [
21579
+ 'session_id',
21580
+ 'paging_token',
21581
+ 'count'
21582
+ ]
21583
+ all_params.extend(
21584
+ [
21585
+ 'async_req',
21586
+ '_return_http_data_only',
21587
+ '_preload_content',
21588
+ '_request_timeout'
21589
+ ]
21590
+ )
21591
+
21592
+ for key, val in six.iteritems(local_var_params['kwargs']):
21593
+ if key not in all_params:
21594
+ raise ApiTypeError(
21595
+ "Got an unexpected keyword argument '%s'"
21596
+ " to method get_session_history_api_v2_sessions_session_id_history_get" % key
21597
+ )
21598
+ local_var_params[key] = val
21599
+ del local_var_params['kwargs']
21600
+ # verify the required parameter 'session_id' is set
21601
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21602
+ local_var_params['session_id'] is None): # noqa: E501
21603
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_history_api_v2_sessions_session_id_history_get`") # noqa: E501
21604
+
21605
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
21606
+ raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value less than or equal to `50`") # noqa: E501
21607
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
21608
+ raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value greater than or equal to `0`") # noqa: E501
21609
+ collection_formats = {}
21610
+
21611
+ path_params = {}
21612
+ if 'session_id' in local_var_params:
21613
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21614
+
21615
+ query_params = []
21616
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
21617
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
21618
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
21619
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
21620
+
21621
+ header_params = {}
21622
+
21623
+ form_params = []
21624
+ local_var_files = {}
21625
+
21626
+ body_params = None
21627
+ # HTTP header `Accept`
21628
+ header_params['Accept'] = self.api_client.select_header_accept(
21629
+ ['application/json']) # noqa: E501
21630
+
21631
+ # Authentication setting
21632
+ auth_settings = [] # noqa: E501
21633
+
21634
+ return self.api_client.call_api(
21635
+ '/api/v2/sessions/{session_id}/history', 'GET',
21636
+ path_params,
21637
+ query_params,
21638
+ header_params,
21639
+ body=body_params,
21640
+ post_params=form_params,
21641
+ files=local_var_files,
21642
+ response_type='SessionhistoryitemListResponse', # noqa: E501
21643
+ auth_settings=auth_settings,
21644
+ async_req=local_var_params.get('async_req'),
21645
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21646
+ _preload_content=local_var_params.get('_preload_content', True),
21647
+ _request_timeout=local_var_params.get('_request_timeout'),
21648
+ collection_formats=collection_formats)
21649
+
21650
+ def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(self, session_id, **kwargs): # noqa: E501
21651
+ """Get Session Ssh Key # noqa: E501
21652
+
21653
+ Download SSH needed to log into a given session. # noqa: E501
21654
+ This method makes a synchronous HTTP request by default. To make an
21655
+ asynchronous HTTP request, please pass async_req=True
21656
+ >>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(session_id, async_req=True)
21657
+ >>> result = thread.get()
21658
+
21659
+ :param async_req bool: execute request asynchronously
21660
+ :param str session_id: (required)
21661
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21662
+ be returned without reading/decoding response
21663
+ data. Default is True.
21664
+ :param _request_timeout: timeout setting for this request. If one
21665
+ number provided, it will be total request
21666
+ timeout. It can also be a pair (tuple) of
21667
+ (connection, read) timeouts.
21668
+ :return: SessionsshkeyResponse
21669
+ If the method is called asynchronously,
21670
+ returns the request thread.
21671
+ """
21672
+ kwargs['_return_http_data_only'] = True
21673
+ return self.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, **kwargs) # noqa: E501
21674
+
21675
+ def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21676
+ """Get Session Ssh Key # noqa: E501
21677
+
21678
+ Download SSH needed to log into a given session. # noqa: E501
21679
+ This method makes a synchronous HTTP request by default. To make an
21680
+ asynchronous HTTP request, please pass async_req=True
21681
+ >>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, async_req=True)
21682
+ >>> result = thread.get()
21683
+
21684
+ :param async_req bool: execute request asynchronously
21685
+ :param str session_id: (required)
21686
+ :param _return_http_data_only: response data without head status code
21687
+ and headers
21688
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21689
+ be returned without reading/decoding response
21690
+ data. Default is True.
21691
+ :param _request_timeout: timeout setting for this request. If one
21692
+ number provided, it will be total request
21693
+ timeout. It can also be a pair (tuple) of
21694
+ (connection, read) timeouts.
21695
+ :return: tuple(SessionsshkeyResponse, status_code(int), headers(HTTPHeaderDict))
21696
+ If the method is called asynchronously,
21697
+ returns the request thread.
21698
+ """
21699
+
21700
+ local_var_params = locals()
21701
+
21702
+ all_params = [
21703
+ 'session_id'
21704
+ ]
21705
+ all_params.extend(
21706
+ [
21707
+ 'async_req',
21708
+ '_return_http_data_only',
21709
+ '_preload_content',
21710
+ '_request_timeout'
21711
+ ]
21712
+ )
21713
+
21714
+ for key, val in six.iteritems(local_var_params['kwargs']):
21715
+ if key not in all_params:
21716
+ raise ApiTypeError(
21717
+ "Got an unexpected keyword argument '%s'"
21718
+ " to method get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get" % key
21719
+ )
21720
+ local_var_params[key] = val
21721
+ del local_var_params['kwargs']
21722
+ # verify the required parameter 'session_id' is set
21723
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21724
+ local_var_params['session_id'] is None): # noqa: E501
21725
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get`") # noqa: E501
21726
+
21727
+ collection_formats = {}
21728
+
21729
+ path_params = {}
21730
+ if 'session_id' in local_var_params:
21731
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21732
+
21733
+ query_params = []
21734
+
21735
+ header_params = {}
21736
+
21737
+ form_params = []
21738
+ local_var_files = {}
21739
+
21740
+ body_params = None
21741
+ # HTTP header `Accept`
21742
+ header_params['Accept'] = self.api_client.select_header_accept(
21743
+ ['application/json']) # noqa: E501
21744
+
21745
+ # Authentication setting
21746
+ auth_settings = [] # noqa: E501
21747
+
21748
+ return self.api_client.call_api(
21749
+ '/api/v2/sessions/{session_id}/ssh_key', 'GET',
21750
+ path_params,
21751
+ query_params,
21752
+ header_params,
21753
+ body=body_params,
21754
+ post_params=form_params,
21755
+ files=local_var_files,
21756
+ response_type='SessionsshkeyResponse', # noqa: E501
21757
+ auth_settings=auth_settings,
21758
+ async_req=local_var_params.get('async_req'),
21759
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21760
+ _preload_content=local_var_params.get('_preload_content', True),
21761
+ _request_timeout=local_var_params.get('_request_timeout'),
21762
+ collection_formats=collection_formats)
21763
+
21764
+ def get_startup_logs_api_v2_sessions_session_id_startup_logs_get(self, session_id, start_line, end_line, **kwargs): # noqa: E501
21765
+ """Get Startup Logs # noqa: E501
21766
+
21767
+ This method makes a synchronous HTTP request by default. To make an
21768
+ asynchronous HTTP request, please pass async_req=True
21769
+ >>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get(session_id, start_line, end_line, async_req=True)
21770
+ >>> result = thread.get()
21771
+
21772
+ :param async_req bool: execute request asynchronously
21773
+ :param str session_id: (required)
21774
+ :param int start_line: (required)
21775
+ :param int end_line: (required)
21776
+ :param str extension:
21777
+ :param datetime start_time:
21778
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21779
+ be returned without reading/decoding response
21780
+ data. Default is True.
21781
+ :param _request_timeout: timeout setting for this request. If one
21782
+ number provided, it will be total request
21783
+ timeout. It can also be a pair (tuple) of
21784
+ (connection, read) timeouts.
21785
+ :return: LogsoutputResponse
21786
+ If the method is called asynchronously,
21787
+ returns the request thread.
21788
+ """
21789
+ kwargs['_return_http_data_only'] = True
21790
+ return self.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, **kwargs) # noqa: E501
21791
+
21792
+ def get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(self, session_id, start_line, end_line, **kwargs): # noqa: E501
21793
+ """Get Startup Logs # noqa: E501
21794
+
21795
+ This method makes a synchronous HTTP request by default. To make an
21796
+ asynchronous HTTP request, please pass async_req=True
21797
+ >>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, async_req=True)
21798
+ >>> result = thread.get()
21799
+
21800
+ :param async_req bool: execute request asynchronously
21801
+ :param str session_id: (required)
21802
+ :param int start_line: (required)
21803
+ :param int end_line: (required)
21804
+ :param str extension:
21805
+ :param datetime start_time:
21806
+ :param _return_http_data_only: response data without head status code
21807
+ and headers
21808
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21809
+ be returned without reading/decoding response
21810
+ data. Default is True.
21811
+ :param _request_timeout: timeout setting for this request. If one
21812
+ number provided, it will be total request
21813
+ timeout. It can also be a pair (tuple) of
21814
+ (connection, read) timeouts.
21815
+ :return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
21816
+ If the method is called asynchronously,
21817
+ returns the request thread.
21818
+ """
21819
+
21820
+ local_var_params = locals()
21821
+
21822
+ all_params = [
21823
+ 'session_id',
21824
+ 'start_line',
21825
+ 'end_line',
21826
+ 'extension',
21827
+ 'start_time'
21828
+ ]
21829
+ all_params.extend(
21830
+ [
21831
+ 'async_req',
21832
+ '_return_http_data_only',
21833
+ '_preload_content',
21834
+ '_request_timeout'
21835
+ ]
21836
+ )
21837
+
21838
+ for key, val in six.iteritems(local_var_params['kwargs']):
21839
+ if key not in all_params:
21840
+ raise ApiTypeError(
21841
+ "Got an unexpected keyword argument '%s'"
21842
+ " to method get_startup_logs_api_v2_sessions_session_id_startup_logs_get" % key
21843
+ )
21844
+ local_var_params[key] = val
21845
+ del local_var_params['kwargs']
21846
+ # verify the required parameter 'session_id' is set
21847
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21848
+ local_var_params['session_id'] is None): # noqa: E501
21849
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
21850
+ # verify the required parameter 'start_line' is set
21851
+ if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
21852
+ local_var_params['start_line'] is None): # noqa: E501
21853
+ raise ApiValueError("Missing the required parameter `start_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
21854
+ # verify the required parameter 'end_line' is set
21855
+ if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
21856
+ local_var_params['end_line'] is None): # noqa: E501
21857
+ raise ApiValueError("Missing the required parameter `end_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
21858
+
21859
+ collection_formats = {}
21860
+
21861
+ path_params = {}
21862
+ if 'session_id' in local_var_params:
21863
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21864
+
21865
+ query_params = []
21866
+ if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
21867
+ query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
21868
+ if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
21869
+ query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
21870
+ if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
21871
+ query_params.append(('extension', local_var_params['extension'])) # noqa: E501
21872
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
21873
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
21874
+
21875
+ header_params = {}
21876
+
21877
+ form_params = []
21878
+ local_var_files = {}
21879
+
21880
+ body_params = None
21881
+ # HTTP header `Accept`
21882
+ header_params['Accept'] = self.api_client.select_header_accept(
21883
+ ['application/json']) # noqa: E501
21884
+
21885
+ # Authentication setting
21886
+ auth_settings = [] # noqa: E501
21887
+
21888
+ return self.api_client.call_api(
21889
+ '/api/v2/sessions/{session_id}/startup_logs', 'GET',
21890
+ path_params,
21891
+ query_params,
21892
+ header_params,
21893
+ body=body_params,
21894
+ post_params=form_params,
21895
+ files=local_var_files,
21896
+ response_type='LogsoutputResponse', # noqa: E501
21897
+ auth_settings=auth_settings,
21898
+ async_req=local_var_params.get('async_req'),
21899
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21900
+ _preload_content=local_var_params.get('_preload_content', True),
21901
+ _request_timeout=local_var_params.get('_request_timeout'),
21902
+ collection_formats=collection_formats)
21903
+
21904
+ def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(self, session_id, **kwargs): # noqa: E501
21905
+ """Get Startup Logs Archived # noqa: E501
21906
+
21907
+ This method makes a synchronous HTTP request by default. To make an
21908
+ asynchronous HTTP request, please pass async_req=True
21909
+ >>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(session_id, async_req=True)
21910
+ >>> result = thread.get()
21911
+
21912
+ :param async_req bool: execute request asynchronously
21913
+ :param str session_id: (required)
21914
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21915
+ be returned without reading/decoding response
21916
+ data. Default is True.
21917
+ :param _request_timeout: timeout setting for this request. If one
21918
+ number provided, it will be total request
21919
+ timeout. It can also be a pair (tuple) of
21920
+ (connection, read) timeouts.
21921
+ :return: ArchivedlogsinfoResponse
21922
+ If the method is called asynchronously,
21923
+ returns the request thread.
21924
+ """
21925
+ kwargs['_return_http_data_only'] = True
21926
+ return self.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, **kwargs) # noqa: E501
21927
+
21928
+ def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21929
+ """Get Startup Logs Archived # noqa: E501
21930
+
21931
+ This method makes a synchronous HTTP request by default. To make an
21932
+ asynchronous HTTP request, please pass async_req=True
21933
+ >>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, async_req=True)
21934
+ >>> result = thread.get()
21935
+
21936
+ :param async_req bool: execute request asynchronously
21937
+ :param str session_id: (required)
21938
+ :param _return_http_data_only: response data without head status code
21939
+ and headers
21940
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21941
+ be returned without reading/decoding response
21942
+ data. Default is True.
21943
+ :param _request_timeout: timeout setting for this request. If one
21944
+ number provided, it will be total request
21945
+ timeout. It can also be a pair (tuple) of
21946
+ (connection, read) timeouts.
21947
+ :return: tuple(ArchivedlogsinfoResponse, status_code(int), headers(HTTPHeaderDict))
21948
+ If the method is called asynchronously,
21949
+ returns the request thread.
21950
+ """
21951
+
21952
+ local_var_params = locals()
21953
+
21954
+ all_params = [
21955
+ 'session_id'
21956
+ ]
21957
+ all_params.extend(
21958
+ [
21959
+ 'async_req',
21960
+ '_return_http_data_only',
21961
+ '_preload_content',
21962
+ '_request_timeout'
21963
+ ]
21964
+ )
21965
+
21966
+ for key, val in six.iteritems(local_var_params['kwargs']):
21967
+ if key not in all_params:
21968
+ raise ApiTypeError(
21969
+ "Got an unexpected keyword argument '%s'"
21970
+ " to method get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get" % key
21971
+ )
21972
+ local_var_params[key] = val
21973
+ del local_var_params['kwargs']
21974
+ # verify the required parameter 'session_id' is set
21975
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21976
+ local_var_params['session_id'] is None): # noqa: E501
21977
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get`") # noqa: E501
21978
+
21979
+ collection_formats = {}
21980
+
21981
+ path_params = {}
21982
+ if 'session_id' in local_var_params:
21983
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21984
+
21985
+ query_params = []
21986
+
21987
+ header_params = {}
21988
+
21989
+ form_params = []
21990
+ local_var_files = {}
21991
+
21992
+ body_params = None
21993
+ # HTTP header `Accept`
21994
+ header_params['Accept'] = self.api_client.select_header_accept(
21995
+ ['application/json']) # noqa: E501
21996
+
21997
+ # Authentication setting
21998
+ auth_settings = [] # noqa: E501
21999
+
22000
+ return self.api_client.call_api(
22001
+ '/api/v2/sessions/{session_id}/startup_logs_archived', 'GET',
22002
+ path_params,
22003
+ query_params,
22004
+ header_params,
22005
+ body=body_params,
22006
+ post_params=form_params,
22007
+ files=local_var_files,
22008
+ response_type='ArchivedlogsinfoResponse', # noqa: E501
22009
+ auth_settings=auth_settings,
22010
+ async_req=local_var_params.get('async_req'),
22011
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22012
+ _preload_content=local_var_params.get('_preload_content', True),
22013
+ _request_timeout=local_var_params.get('_request_timeout'),
22014
+ collection_formats=collection_formats)
22015
+
22016
+ def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(self, cluster_id, **kwargs): # noqa: E501
22017
+ """Get Task Exception Aggregates # noqa: E501
22018
+
22019
+ This method makes a synchronous HTTP request by default. To make an
22020
+ asynchronous HTTP request, please pass async_req=True
22021
+ >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(cluster_id, async_req=True)
22022
+ >>> result = thread.get()
22023
+
22024
+ :param async_req bool: execute request asynchronously
22025
+ :param str cluster_id: (required)
22026
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22027
+ be returned without reading/decoding response
22028
+ data. Default is True.
22029
+ :param _request_timeout: timeout setting for this request. If one
22030
+ number provided, it will be total request
22031
+ timeout. It can also be a pair (tuple) of
22032
+ (connection, read) timeouts.
22033
+ :return: TaskExceptionGroupAggregateResponse
22034
+ If the method is called asynchronously,
22035
+ returns the request thread.
22036
+ """
22037
+ kwargs['_return_http_data_only'] = True
22038
+ return self.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, **kwargs) # noqa: E501
22039
+
22040
+ def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
22041
+ """Get Task Exception Aggregates # noqa: E501
22042
+
22043
+ This method makes a synchronous HTTP request by default. To make an
22044
+ asynchronous HTTP request, please pass async_req=True
22045
+ >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, async_req=True)
22046
+ >>> result = thread.get()
22047
+
22048
+ :param async_req bool: execute request asynchronously
22049
+ :param str cluster_id: (required)
22050
+ :param _return_http_data_only: response data without head status code
22051
+ and headers
22052
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22053
+ be returned without reading/decoding response
22054
+ data. Default is True.
22055
+ :param _request_timeout: timeout setting for this request. If one
22056
+ number provided, it will be total request
22057
+ timeout. It can also be a pair (tuple) of
22058
+ (connection, read) timeouts.
22059
+ :return: tuple(TaskExceptionGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
22060
+ If the method is called asynchronously,
22061
+ returns the request thread.
22062
+ """
22063
+
22064
+ local_var_params = locals()
22065
+
22066
+ all_params = [
22067
+ 'cluster_id'
22068
+ ]
22069
+ all_params.extend(
22070
+ [
22071
+ 'async_req',
22072
+ '_return_http_data_only',
22073
+ '_preload_content',
22074
+ '_request_timeout'
22075
+ ]
22076
+ )
22077
+
22078
+ for key, val in six.iteritems(local_var_params['kwargs']):
22079
+ if key not in all_params:
22080
+ raise ApiTypeError(
22081
+ "Got an unexpected keyword argument '%s'"
22082
+ " to method get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get" % key
22083
+ )
22084
+ local_var_params[key] = val
22085
+ del local_var_params['kwargs']
22086
+ # verify the required parameter 'cluster_id' is set
22087
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
22088
+ local_var_params['cluster_id'] is None): # noqa: E501
22089
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get`") # noqa: E501
22090
+
22091
+ collection_formats = {}
22092
+
22093
+ path_params = {}
22094
+
22095
+ query_params = []
22096
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
22097
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
22098
+
22099
+ header_params = {}
22100
+
22101
+ form_params = []
22102
+ local_var_files = {}
22103
+
22104
+ body_params = None
22105
+ # HTTP header `Accept`
22106
+ header_params['Accept'] = self.api_client.select_header_accept(
22107
+ ['application/json']) # noqa: E501
22108
+
22109
+ # Authentication setting
22110
+ auth_settings = [] # noqa: E501
22111
+
22112
+ return self.api_client.call_api(
22113
+ '/api/v2/tasks_dashboard/aggregate_by_exception', 'GET',
22114
+ path_params,
22115
+ query_params,
22116
+ header_params,
22117
+ body=body_params,
22118
+ post_params=form_params,
22119
+ files=local_var_files,
22120
+ response_type='TaskExceptionGroupAggregateResponse', # noqa: E501
22121
+ auth_settings=auth_settings,
22122
+ async_req=local_var_params.get('async_req'),
22123
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22124
+ _preload_content=local_var_params.get('_preload_content', True),
22125
+ _request_timeout=local_var_params.get('_request_timeout'),
22126
+ collection_formats=collection_formats)
22127
+
22128
+ def get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get(self, cluster_id, **kwargs): # noqa: E501
22129
+ """Get Task Function Aggregates # noqa: E501
22130
+
22131
+ This method makes a synchronous HTTP request by default. To make an
22132
+ asynchronous HTTP request, please pass async_req=True
22133
+ >>> thread = api.get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get(cluster_id, async_req=True)
22134
+ >>> result = thread.get()
22135
+
22136
+ :param async_req bool: execute request asynchronously
22137
+ :param str cluster_id: (required)
22138
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22139
+ be returned without reading/decoding response
22140
+ data. Default is True.
22141
+ :param _request_timeout: timeout setting for this request. If one
22142
+ number provided, it will be total request
22143
+ timeout. It can also be a pair (tuple) of
22144
+ (connection, read) timeouts.
22145
+ :return: TaskFunctionNameGroupAggregateResponse
21394
22146
  If the method is called asynchronously,
21395
22147
  returns the request thread.
21396
22148
  """
21397
22149
  kwargs['_return_http_data_only'] = True
21398
- return self.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, **kwargs) # noqa: E501
22150
+ return self.get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get_with_http_info(cluster_id, **kwargs) # noqa: E501
21399
22151
 
21400
- def get_session_history_api_v2_sessions_session_id_history_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21401
- """Get Session History # noqa: E501
22152
+ def get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
22153
+ """Get Task Function Aggregates # noqa: E501
21402
22154
 
21403
- Describe all actions applied to a particular session. # noqa: E501
21404
22155
  This method makes a synchronous HTTP request by default. To make an
21405
22156
  asynchronous HTTP request, please pass async_req=True
21406
- >>> thread = api.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, async_req=True)
22157
+ >>> thread = api.get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get_with_http_info(cluster_id, async_req=True)
21407
22158
  >>> result = thread.get()
21408
22159
 
21409
22160
  :param async_req bool: execute request asynchronously
21410
- :param str session_id: (required)
21411
- :param str paging_token:
21412
- :param int count:
22161
+ :param str cluster_id: (required)
21413
22162
  :param _return_http_data_only: response data without head status code
21414
22163
  and headers
21415
22164
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21419,7 +22168,7 @@ class DefaultApi(object):
21419
22168
  number provided, it will be total request
21420
22169
  timeout. It can also be a pair (tuple) of
21421
22170
  (connection, read) timeouts.
21422
- :return: tuple(SessionhistoryitemListResponse, status_code(int), headers(HTTPHeaderDict))
22171
+ :return: tuple(TaskFunctionNameGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
21423
22172
  If the method is called asynchronously,
21424
22173
  returns the request thread.
21425
22174
  """
@@ -21427,9 +22176,7 @@ class DefaultApi(object):
21427
22176
  local_var_params = locals()
21428
22177
 
21429
22178
  all_params = [
21430
- 'session_id',
21431
- 'paging_token',
21432
- 'count'
22179
+ 'cluster_id'
21433
22180
  ]
21434
22181
  all_params.extend(
21435
22182
  [
@@ -21444,30 +22191,22 @@ class DefaultApi(object):
21444
22191
  if key not in all_params:
21445
22192
  raise ApiTypeError(
21446
22193
  "Got an unexpected keyword argument '%s'"
21447
- " to method get_session_history_api_v2_sessions_session_id_history_get" % key
22194
+ " to method get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get" % key
21448
22195
  )
21449
22196
  local_var_params[key] = val
21450
22197
  del local_var_params['kwargs']
21451
- # verify the required parameter 'session_id' is set
21452
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21453
- local_var_params['session_id'] is None): # noqa: E501
21454
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_history_api_v2_sessions_session_id_history_get`") # noqa: E501
22198
+ # verify the required parameter 'cluster_id' is set
22199
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
22200
+ local_var_params['cluster_id'] is None): # noqa: E501
22201
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_function_aggregates_api_v2_tasks_dashboard_aggregate_by_function_get`") # noqa: E501
21455
22202
 
21456
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
21457
- raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value less than or equal to `50`") # noqa: E501
21458
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
21459
- raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value greater than or equal to `0`") # noqa: E501
21460
22203
  collection_formats = {}
21461
22204
 
21462
22205
  path_params = {}
21463
- if 'session_id' in local_var_params:
21464
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21465
22206
 
21466
22207
  query_params = []
21467
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
21468
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
21469
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
21470
- query_params.append(('count', local_var_params['count'])) # noqa: E501
22208
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
22209
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
21471
22210
 
21472
22211
  header_params = {}
21473
22212
 
@@ -21483,14 +22222,14 @@ class DefaultApi(object):
21483
22222
  auth_settings = [] # noqa: E501
21484
22223
 
21485
22224
  return self.api_client.call_api(
21486
- '/api/v2/sessions/{session_id}/history', 'GET',
22225
+ '/api/v2/tasks_dashboard/aggregate_by_function', 'GET',
21487
22226
  path_params,
21488
22227
  query_params,
21489
22228
  header_params,
21490
22229
  body=body_params,
21491
22230
  post_params=form_params,
21492
22231
  files=local_var_files,
21493
- response_type='SessionhistoryitemListResponse', # noqa: E501
22232
+ response_type='TaskFunctionNameGroupAggregateResponse', # noqa: E501
21494
22233
  auth_settings=auth_settings,
21495
22234
  async_req=local_var_params.get('async_req'),
21496
22235
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21498,17 +22237,16 @@ class DefaultApi(object):
21498
22237
  _request_timeout=local_var_params.get('_request_timeout'),
21499
22238
  collection_formats=collection_formats)
21500
22239
 
21501
- def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(self, session_id, **kwargs): # noqa: E501
21502
- """Get Session Ssh Key # noqa: E501
22240
+ def get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get(self, cluster_id, **kwargs): # noqa: E501
22241
+ """Get Task Job Aggregates # noqa: E501
21503
22242
 
21504
- Download SSH needed to log into a given session. # noqa: E501
21505
22243
  This method makes a synchronous HTTP request by default. To make an
21506
22244
  asynchronous HTTP request, please pass async_req=True
21507
- >>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(session_id, async_req=True)
22245
+ >>> thread = api.get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get(cluster_id, async_req=True)
21508
22246
  >>> result = thread.get()
21509
22247
 
21510
22248
  :param async_req bool: execute request asynchronously
21511
- :param str session_id: (required)
22249
+ :param str cluster_id: (required)
21512
22250
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21513
22251
  be returned without reading/decoding response
21514
22252
  data. Default is True.
@@ -21516,24 +22254,23 @@ class DefaultApi(object):
21516
22254
  number provided, it will be total request
21517
22255
  timeout. It can also be a pair (tuple) of
21518
22256
  (connection, read) timeouts.
21519
- :return: SessionsshkeyResponse
22257
+ :return: TaskJobGroupAggregateResponse
21520
22258
  If the method is called asynchronously,
21521
22259
  returns the request thread.
21522
22260
  """
21523
22261
  kwargs['_return_http_data_only'] = True
21524
- return self.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, **kwargs) # noqa: E501
22262
+ return self.get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get_with_http_info(cluster_id, **kwargs) # noqa: E501
21525
22263
 
21526
- def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21527
- """Get Session Ssh Key # noqa: E501
22264
+ def get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
22265
+ """Get Task Job Aggregates # noqa: E501
21528
22266
 
21529
- Download SSH needed to log into a given session. # noqa: E501
21530
22267
  This method makes a synchronous HTTP request by default. To make an
21531
22268
  asynchronous HTTP request, please pass async_req=True
21532
- >>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, async_req=True)
22269
+ >>> thread = api.get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get_with_http_info(cluster_id, async_req=True)
21533
22270
  >>> result = thread.get()
21534
22271
 
21535
22272
  :param async_req bool: execute request asynchronously
21536
- :param str session_id: (required)
22273
+ :param str cluster_id: (required)
21537
22274
  :param _return_http_data_only: response data without head status code
21538
22275
  and headers
21539
22276
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21543,7 +22280,7 @@ class DefaultApi(object):
21543
22280
  number provided, it will be total request
21544
22281
  timeout. It can also be a pair (tuple) of
21545
22282
  (connection, read) timeouts.
21546
- :return: tuple(SessionsshkeyResponse, status_code(int), headers(HTTPHeaderDict))
22283
+ :return: tuple(TaskJobGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
21547
22284
  If the method is called asynchronously,
21548
22285
  returns the request thread.
21549
22286
  """
@@ -21551,7 +22288,7 @@ class DefaultApi(object):
21551
22288
  local_var_params = locals()
21552
22289
 
21553
22290
  all_params = [
21554
- 'session_id'
22291
+ 'cluster_id'
21555
22292
  ]
21556
22293
  all_params.extend(
21557
22294
  [
@@ -21566,22 +22303,22 @@ class DefaultApi(object):
21566
22303
  if key not in all_params:
21567
22304
  raise ApiTypeError(
21568
22305
  "Got an unexpected keyword argument '%s'"
21569
- " to method get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get" % key
22306
+ " to method get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get" % key
21570
22307
  )
21571
22308
  local_var_params[key] = val
21572
22309
  del local_var_params['kwargs']
21573
- # verify the required parameter 'session_id' is set
21574
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21575
- local_var_params['session_id'] is None): # noqa: E501
21576
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get`") # noqa: E501
22310
+ # verify the required parameter 'cluster_id' is set
22311
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
22312
+ local_var_params['cluster_id'] is None): # noqa: E501
22313
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_job_aggregates_api_v2_tasks_dashboard_aggregate_by_job_get`") # noqa: E501
21577
22314
 
21578
22315
  collection_formats = {}
21579
22316
 
21580
22317
  path_params = {}
21581
- if 'session_id' in local_var_params:
21582
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21583
22318
 
21584
22319
  query_params = []
22320
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
22321
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
21585
22322
 
21586
22323
  header_params = {}
21587
22324
 
@@ -21597,14 +22334,14 @@ class DefaultApi(object):
21597
22334
  auth_settings = [] # noqa: E501
21598
22335
 
21599
22336
  return self.api_client.call_api(
21600
- '/api/v2/sessions/{session_id}/ssh_key', 'GET',
22337
+ '/api/v2/tasks_dashboard/aggregate_by_job', 'GET',
21601
22338
  path_params,
21602
22339
  query_params,
21603
22340
  header_params,
21604
22341
  body=body_params,
21605
22342
  post_params=form_params,
21606
22343
  files=local_var_files,
21607
- response_type='SessionsshkeyResponse', # noqa: E501
22344
+ response_type='TaskJobGroupAggregateResponse', # noqa: E501
21608
22345
  auth_settings=auth_settings,
21609
22346
  async_req=local_var_params.get('async_req'),
21610
22347
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21612,20 +22349,16 @@ class DefaultApi(object):
21612
22349
  _request_timeout=local_var_params.get('_request_timeout'),
21613
22350
  collection_formats=collection_formats)
21614
22351
 
21615
- def get_startup_logs_api_v2_sessions_session_id_startup_logs_get(self, session_id, start_line, end_line, **kwargs): # noqa: E501
21616
- """Get Startup Logs # noqa: E501
22352
+ def get_task_summary_api_v2_tasks_dashboard_summary_get(self, cluster_id, **kwargs): # noqa: E501
22353
+ """Get Task Summary # noqa: E501
21617
22354
 
21618
22355
  This method makes a synchronous HTTP request by default. To make an
21619
22356
  asynchronous HTTP request, please pass async_req=True
21620
- >>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get(session_id, start_line, end_line, async_req=True)
22357
+ >>> thread = api.get_task_summary_api_v2_tasks_dashboard_summary_get(cluster_id, async_req=True)
21621
22358
  >>> result = thread.get()
21622
22359
 
21623
22360
  :param async_req bool: execute request asynchronously
21624
- :param str session_id: (required)
21625
- :param int start_line: (required)
21626
- :param int end_line: (required)
21627
- :param str extension:
21628
- :param datetime start_time:
22361
+ :param str cluster_id: (required)
21629
22362
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21630
22363
  be returned without reading/decoding response
21631
22364
  data. Default is True.
@@ -21633,27 +22366,23 @@ class DefaultApi(object):
21633
22366
  number provided, it will be total request
21634
22367
  timeout. It can also be a pair (tuple) of
21635
22368
  (connection, read) timeouts.
21636
- :return: LogsoutputResponse
22369
+ :return: TasksummaryResponse
21637
22370
  If the method is called asynchronously,
21638
22371
  returns the request thread.
21639
22372
  """
21640
22373
  kwargs['_return_http_data_only'] = True
21641
- return self.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, **kwargs) # noqa: E501
22374
+ return self.get_task_summary_api_v2_tasks_dashboard_summary_get_with_http_info(cluster_id, **kwargs) # noqa: E501
21642
22375
 
21643
- def get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(self, session_id, start_line, end_line, **kwargs): # noqa: E501
21644
- """Get Startup Logs # noqa: E501
22376
+ def get_task_summary_api_v2_tasks_dashboard_summary_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
22377
+ """Get Task Summary # noqa: E501
21645
22378
 
21646
22379
  This method makes a synchronous HTTP request by default. To make an
21647
22380
  asynchronous HTTP request, please pass async_req=True
21648
- >>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, async_req=True)
22381
+ >>> thread = api.get_task_summary_api_v2_tasks_dashboard_summary_get_with_http_info(cluster_id, async_req=True)
21649
22382
  >>> result = thread.get()
21650
22383
 
21651
22384
  :param async_req bool: execute request asynchronously
21652
- :param str session_id: (required)
21653
- :param int start_line: (required)
21654
- :param int end_line: (required)
21655
- :param str extension:
21656
- :param datetime start_time:
22385
+ :param str cluster_id: (required)
21657
22386
  :param _return_http_data_only: response data without head status code
21658
22387
  and headers
21659
22388
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21663,7 +22392,7 @@ class DefaultApi(object):
21663
22392
  number provided, it will be total request
21664
22393
  timeout. It can also be a pair (tuple) of
21665
22394
  (connection, read) timeouts.
21666
- :return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
22395
+ :return: tuple(TasksummaryResponse, status_code(int), headers(HTTPHeaderDict))
21667
22396
  If the method is called asynchronously,
21668
22397
  returns the request thread.
21669
22398
  """
@@ -21671,11 +22400,7 @@ class DefaultApi(object):
21671
22400
  local_var_params = locals()
21672
22401
 
21673
22402
  all_params = [
21674
- 'session_id',
21675
- 'start_line',
21676
- 'end_line',
21677
- 'extension',
21678
- 'start_time'
22403
+ 'cluster_id'
21679
22404
  ]
21680
22405
  all_params.extend(
21681
22406
  [
@@ -21690,38 +22415,22 @@ class DefaultApi(object):
21690
22415
  if key not in all_params:
21691
22416
  raise ApiTypeError(
21692
22417
  "Got an unexpected keyword argument '%s'"
21693
- " to method get_startup_logs_api_v2_sessions_session_id_startup_logs_get" % key
22418
+ " to method get_task_summary_api_v2_tasks_dashboard_summary_get" % key
21694
22419
  )
21695
22420
  local_var_params[key] = val
21696
22421
  del local_var_params['kwargs']
21697
- # verify the required parameter 'session_id' is set
21698
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21699
- local_var_params['session_id'] is None): # noqa: E501
21700
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
21701
- # verify the required parameter 'start_line' is set
21702
- if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
21703
- local_var_params['start_line'] is None): # noqa: E501
21704
- raise ApiValueError("Missing the required parameter `start_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
21705
- # verify the required parameter 'end_line' is set
21706
- if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
21707
- local_var_params['end_line'] is None): # noqa: E501
21708
- raise ApiValueError("Missing the required parameter `end_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
22422
+ # verify the required parameter 'cluster_id' is set
22423
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
22424
+ local_var_params['cluster_id'] is None): # noqa: E501
22425
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_summary_api_v2_tasks_dashboard_summary_get`") # noqa: E501
21709
22426
 
21710
22427
  collection_formats = {}
21711
22428
 
21712
22429
  path_params = {}
21713
- if 'session_id' in local_var_params:
21714
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21715
22430
 
21716
22431
  query_params = []
21717
- if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
21718
- query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
21719
- if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
21720
- query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
21721
- if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
21722
- query_params.append(('extension', local_var_params['extension'])) # noqa: E501
21723
- if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
21724
- query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
22432
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
22433
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
21725
22434
 
21726
22435
  header_params = {}
21727
22436
 
@@ -21737,14 +22446,14 @@ class DefaultApi(object):
21737
22446
  auth_settings = [] # noqa: E501
21738
22447
 
21739
22448
  return self.api_client.call_api(
21740
- '/api/v2/sessions/{session_id}/startup_logs', 'GET',
22449
+ '/api/v2/tasks_dashboard/summary', 'GET',
21741
22450
  path_params,
21742
22451
  query_params,
21743
22452
  header_params,
21744
22453
  body=body_params,
21745
22454
  post_params=form_params,
21746
22455
  files=local_var_files,
21747
- response_type='LogsoutputResponse', # noqa: E501
22456
+ response_type='TasksummaryResponse', # noqa: E501
21748
22457
  auth_settings=auth_settings,
21749
22458
  async_req=local_var_params.get('async_req'),
21750
22459
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21752,16 +22461,18 @@ class DefaultApi(object):
21752
22461
  _request_timeout=local_var_params.get('_request_timeout'),
21753
22462
  collection_formats=collection_formats)
21754
22463
 
21755
- def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(self, session_id, **kwargs): # noqa: E501
21756
- """Get Startup Logs Archived # noqa: E501
22464
+ def get_task_table_api_v2_tasks_dashboard_table_get(self, cluster_id, task_table_config, **kwargs): # noqa: E501
22465
+ """Get Task Table # noqa: E501
21757
22466
 
22467
+ Paging tokens are integers that represent the page number. # noqa: E501
21758
22468
  This method makes a synchronous HTTP request by default. To make an
21759
22469
  asynchronous HTTP request, please pass async_req=True
21760
- >>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(session_id, async_req=True)
22470
+ >>> thread = api.get_task_table_api_v2_tasks_dashboard_table_get(cluster_id, task_table_config, async_req=True)
21761
22471
  >>> result = thread.get()
21762
22472
 
21763
22473
  :param async_req bool: execute request asynchronously
21764
- :param str session_id: (required)
22474
+ :param str cluster_id: (required)
22475
+ :param TaskTableConfig task_table_config: (required)
21765
22476
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21766
22477
  be returned without reading/decoding response
21767
22478
  data. Default is True.
@@ -21769,23 +22480,25 @@ class DefaultApi(object):
21769
22480
  number provided, it will be total request
21770
22481
  timeout. It can also be a pair (tuple) of
21771
22482
  (connection, read) timeouts.
21772
- :return: ArchivedlogsinfoResponse
22483
+ :return: TaskTableResponse
21773
22484
  If the method is called asynchronously,
21774
22485
  returns the request thread.
21775
22486
  """
21776
22487
  kwargs['_return_http_data_only'] = True
21777
- return self.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, **kwargs) # noqa: E501
22488
+ return self.get_task_table_api_v2_tasks_dashboard_table_get_with_http_info(cluster_id, task_table_config, **kwargs) # noqa: E501
21778
22489
 
21779
- def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21780
- """Get Startup Logs Archived # noqa: E501
22490
+ def get_task_table_api_v2_tasks_dashboard_table_get_with_http_info(self, cluster_id, task_table_config, **kwargs): # noqa: E501
22491
+ """Get Task Table # noqa: E501
21781
22492
 
22493
+ Paging tokens are integers that represent the page number. # noqa: E501
21782
22494
  This method makes a synchronous HTTP request by default. To make an
21783
22495
  asynchronous HTTP request, please pass async_req=True
21784
- >>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, async_req=True)
22496
+ >>> thread = api.get_task_table_api_v2_tasks_dashboard_table_get_with_http_info(cluster_id, task_table_config, async_req=True)
21785
22497
  >>> result = thread.get()
21786
22498
 
21787
22499
  :param async_req bool: execute request asynchronously
21788
- :param str session_id: (required)
22500
+ :param str cluster_id: (required)
22501
+ :param TaskTableConfig task_table_config: (required)
21789
22502
  :param _return_http_data_only: response data without head status code
21790
22503
  and headers
21791
22504
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21795,7 +22508,7 @@ class DefaultApi(object):
21795
22508
  number provided, it will be total request
21796
22509
  timeout. It can also be a pair (tuple) of
21797
22510
  (connection, read) timeouts.
21798
- :return: tuple(ArchivedlogsinfoResponse, status_code(int), headers(HTTPHeaderDict))
22511
+ :return: tuple(TaskTableResponse, status_code(int), headers(HTTPHeaderDict))
21799
22512
  If the method is called asynchronously,
21800
22513
  returns the request thread.
21801
22514
  """
@@ -21803,7 +22516,8 @@ class DefaultApi(object):
21803
22516
  local_var_params = locals()
21804
22517
 
21805
22518
  all_params = [
21806
- 'session_id'
22519
+ 'cluster_id',
22520
+ 'task_table_config'
21807
22521
  ]
21808
22522
  all_params.extend(
21809
22523
  [
@@ -21818,22 +22532,26 @@ class DefaultApi(object):
21818
22532
  if key not in all_params:
21819
22533
  raise ApiTypeError(
21820
22534
  "Got an unexpected keyword argument '%s'"
21821
- " to method get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get" % key
22535
+ " to method get_task_table_api_v2_tasks_dashboard_table_get" % key
21822
22536
  )
21823
22537
  local_var_params[key] = val
21824
22538
  del local_var_params['kwargs']
21825
- # verify the required parameter 'session_id' is set
21826
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21827
- local_var_params['session_id'] is None): # noqa: E501
21828
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get`") # noqa: E501
22539
+ # verify the required parameter 'cluster_id' is set
22540
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
22541
+ local_var_params['cluster_id'] is None): # noqa: E501
22542
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_table_api_v2_tasks_dashboard_table_get`") # noqa: E501
22543
+ # verify the required parameter 'task_table_config' is set
22544
+ if self.api_client.client_side_validation and ('task_table_config' not in local_var_params or # noqa: E501
22545
+ local_var_params['task_table_config'] is None): # noqa: E501
22546
+ raise ApiValueError("Missing the required parameter `task_table_config` when calling `get_task_table_api_v2_tasks_dashboard_table_get`") # noqa: E501
21829
22547
 
21830
22548
  collection_formats = {}
21831
22549
 
21832
22550
  path_params = {}
21833
- if 'session_id' in local_var_params:
21834
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21835
22551
 
21836
22552
  query_params = []
22553
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
22554
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
21837
22555
 
21838
22556
  header_params = {}
21839
22557
 
@@ -21841,22 +22559,28 @@ class DefaultApi(object):
21841
22559
  local_var_files = {}
21842
22560
 
21843
22561
  body_params = None
22562
+ if 'task_table_config' in local_var_params:
22563
+ body_params = local_var_params['task_table_config']
21844
22564
  # HTTP header `Accept`
21845
22565
  header_params['Accept'] = self.api_client.select_header_accept(
21846
22566
  ['application/json']) # noqa: E501
21847
22567
 
22568
+ # HTTP header `Content-Type`
22569
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
22570
+ ['application/json']) # noqa: E501
22571
+
21848
22572
  # Authentication setting
21849
22573
  auth_settings = [] # noqa: E501
21850
22574
 
21851
22575
  return self.api_client.call_api(
21852
- '/api/v2/sessions/{session_id}/startup_logs_archived', 'GET',
22576
+ '/api/v2/tasks_dashboard/table', 'GET',
21853
22577
  path_params,
21854
22578
  query_params,
21855
22579
  header_params,
21856
22580
  body=body_params,
21857
22581
  post_params=form_params,
21858
22582
  files=local_var_files,
21859
- response_type='ArchivedlogsinfoResponse', # noqa: E501
22583
+ response_type='TaskTableResponse', # noqa: E501
21860
22584
  auth_settings=auth_settings,
21861
22585
  async_req=local_var_params.get('async_req'),
21862
22586
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -30634,124 +31358,6 @@ class DefaultApi(object):
30634
31358
  _request_timeout=local_var_params.get('_request_timeout'),
30635
31359
  collection_formats=collection_formats)
30636
31360
 
30637
- def register_buffer_api_v2_anyscaled_register_buffer_post(self, buffer_registration, **kwargs): # noqa: E501
30638
- """Register Buffer # noqa: E501
30639
-
30640
- Register a node to receive a per-buffer token. # noqa: E501
30641
- This method makes a synchronous HTTP request by default. To make an
30642
- asynchronous HTTP request, please pass async_req=True
30643
- >>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post(buffer_registration, async_req=True)
30644
- >>> result = thread.get()
30645
-
30646
- :param async_req bool: execute request asynchronously
30647
- :param BufferRegistration buffer_registration: (required)
30648
- :param _preload_content: if False, the urllib3.HTTPResponse object will
30649
- be returned without reading/decoding response
30650
- data. Default is True.
30651
- :param _request_timeout: timeout setting for this request. If one
30652
- number provided, it will be total request
30653
- timeout. It can also be a pair (tuple) of
30654
- (connection, read) timeouts.
30655
- :return: AnyscaledcredentialresponseResponse
30656
- If the method is called asynchronously,
30657
- returns the request thread.
30658
- """
30659
- kwargs['_return_http_data_only'] = True
30660
- return self.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, **kwargs) # noqa: E501
30661
-
30662
- def register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(self, buffer_registration, **kwargs): # noqa: E501
30663
- """Register Buffer # noqa: E501
30664
-
30665
- Register a node to receive a per-buffer token. # noqa: E501
30666
- This method makes a synchronous HTTP request by default. To make an
30667
- asynchronous HTTP request, please pass async_req=True
30668
- >>> thread = api.register_buffer_api_v2_anyscaled_register_buffer_post_with_http_info(buffer_registration, async_req=True)
30669
- >>> result = thread.get()
30670
-
30671
- :param async_req bool: execute request asynchronously
30672
- :param BufferRegistration buffer_registration: (required)
30673
- :param _return_http_data_only: response data without head status code
30674
- and headers
30675
- :param _preload_content: if False, the urllib3.HTTPResponse object will
30676
- be returned without reading/decoding response
30677
- data. Default is True.
30678
- :param _request_timeout: timeout setting for this request. If one
30679
- number provided, it will be total request
30680
- timeout. It can also be a pair (tuple) of
30681
- (connection, read) timeouts.
30682
- :return: tuple(AnyscaledcredentialresponseResponse, status_code(int), headers(HTTPHeaderDict))
30683
- If the method is called asynchronously,
30684
- returns the request thread.
30685
- """
30686
-
30687
- local_var_params = locals()
30688
-
30689
- all_params = [
30690
- 'buffer_registration'
30691
- ]
30692
- all_params.extend(
30693
- [
30694
- 'async_req',
30695
- '_return_http_data_only',
30696
- '_preload_content',
30697
- '_request_timeout'
30698
- ]
30699
- )
30700
-
30701
- for key, val in six.iteritems(local_var_params['kwargs']):
30702
- if key not in all_params:
30703
- raise ApiTypeError(
30704
- "Got an unexpected keyword argument '%s'"
30705
- " to method register_buffer_api_v2_anyscaled_register_buffer_post" % key
30706
- )
30707
- local_var_params[key] = val
30708
- del local_var_params['kwargs']
30709
- # verify the required parameter 'buffer_registration' is set
30710
- if self.api_client.client_side_validation and ('buffer_registration' not in local_var_params or # noqa: E501
30711
- local_var_params['buffer_registration'] is None): # noqa: E501
30712
- raise ApiValueError("Missing the required parameter `buffer_registration` when calling `register_buffer_api_v2_anyscaled_register_buffer_post`") # noqa: E501
30713
-
30714
- collection_formats = {}
30715
-
30716
- path_params = {}
30717
-
30718
- query_params = []
30719
-
30720
- header_params = {}
30721
-
30722
- form_params = []
30723
- local_var_files = {}
30724
-
30725
- body_params = None
30726
- if 'buffer_registration' in local_var_params:
30727
- body_params = local_var_params['buffer_registration']
30728
- # HTTP header `Accept`
30729
- header_params['Accept'] = self.api_client.select_header_accept(
30730
- ['application/json']) # noqa: E501
30731
-
30732
- # HTTP header `Content-Type`
30733
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
30734
- ['application/json']) # noqa: E501
30735
-
30736
- # Authentication setting
30737
- auth_settings = [] # noqa: E501
30738
-
30739
- return self.api_client.call_api(
30740
- '/api/v2/anyscaled/register_buffer', 'POST',
30741
- path_params,
30742
- query_params,
30743
- header_params,
30744
- body=body_params,
30745
- post_params=form_params,
30746
- files=local_var_files,
30747
- response_type='AnyscaledcredentialresponseResponse', # noqa: E501
30748
- auth_settings=auth_settings,
30749
- async_req=local_var_params.get('async_req'),
30750
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
30751
- _preload_content=local_var_params.get('_preload_content', True),
30752
- _request_timeout=local_var_params.get('_request_timeout'),
30753
- collection_formats=collection_formats)
30754
-
30755
31361
  def register_build_api_v2_anyscaled_register_build_post(self, build_registration, **kwargs): # noqa: E501
30756
31362
  """Register Build # noqa: E501
30757
31363