anyscale 0.26.23__py3-none-any.whl → 0.26.24__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 (88) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/docgen/__main__.py +0 -8
  3. anyscale/_private/docgen/models.md +39 -182
  4. anyscale/_private/workload/workload_config.py +1 -1
  5. anyscale/client/README.md +2 -35
  6. anyscale/client/openapi_client/__init__.py +2 -21
  7. anyscale/client/openapi_client/api/default_api.py +275 -1868
  8. anyscale/client/openapi_client/models/__init__.py +2 -21
  9. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  10. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  11. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  12. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  13. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  14. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  15. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  16. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  18. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  20. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  21. anyscale/cluster_compute.py +4 -4
  22. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  23. anyscale/commands/cloud_commands.py +5 -4
  24. anyscale/commands/image_commands.py +2 -2
  25. anyscale/commands/job_commands.py +1 -1
  26. anyscale/commands/service_commands.py +1 -1
  27. anyscale/commands/workspace_commands_v2.py +1 -1
  28. anyscale/connect_utils/prepare_cluster.py +1 -3
  29. anyscale/controllers/cloud_controller.py +12 -6
  30. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  31. anyscale/image/commands.py +1 -1
  32. anyscale/sdk/anyscale_client/__init__.py +2 -15
  33. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  34. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  35. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  36. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  37. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  38. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  39. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  40. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  41. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  44. anyscale/version.py +1 -1
  45. anyscale/workspace/models.py +1 -1
  46. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
  47. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/RECORD +52 -84
  48. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  49. anyscale/client/openapi_client/models/billing_information.py +0 -181
  50. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  51. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  52. anyscale/client/openapi_client/models/invoice.py +0 -413
  53. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  54. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  55. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  56. anyscale/client/openapi_client/models/log_stream.py +0 -151
  57. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  58. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  59. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  60. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  61. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  62. anyscale/client/openapi_client/models/product_type.py +0 -100
  63. anyscale/client/openapi_client/models/service_usage.py +0 -353
  64. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  65. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  66. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  67. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  68. anyscale/client/openapi_client/models/write_session.py +0 -147
  69. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  70. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  71. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  72. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  73. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  74. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  75. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  76. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  77. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  78. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  79. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  80. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  81. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  82. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  84. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
  85. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
  86. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
  87. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
  88. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -6640,120 +6640,6 @@ class DefaultApi(object):
6640
6640
  _request_timeout=local_var_params.get('_request_timeout'),
6641
6641
  collection_formats=collection_formats)
6642
6642
 
6643
- def delete_application_template_api_v2_application_templates_application_template_id_delete(self, application_template_id, **kwargs): # noqa: E501
6644
- """Delete Application Template # noqa: E501
6645
-
6646
- Deletes an Application Template. Note: application_template is called app_config on the backend api. # noqa: E501
6647
- This method makes a synchronous HTTP request by default. To make an
6648
- asynchronous HTTP request, please pass async_req=True
6649
- >>> thread = api.delete_application_template_api_v2_application_templates_application_template_id_delete(application_template_id, async_req=True)
6650
- >>> result = thread.get()
6651
-
6652
- :param async_req bool: execute request asynchronously
6653
- :param str application_template_id: (required)
6654
- :param _preload_content: if False, the urllib3.HTTPResponse object will
6655
- be returned without reading/decoding response
6656
- data. Default is True.
6657
- :param _request_timeout: timeout setting for this request. If one
6658
- number provided, it will be total request
6659
- timeout. It can also be a pair (tuple) of
6660
- (connection, read) timeouts.
6661
- :return: None
6662
- If the method is called asynchronously,
6663
- returns the request thread.
6664
- """
6665
- kwargs['_return_http_data_only'] = True
6666
- return self.delete_application_template_api_v2_application_templates_application_template_id_delete_with_http_info(application_template_id, **kwargs) # noqa: E501
6667
-
6668
- def delete_application_template_api_v2_application_templates_application_template_id_delete_with_http_info(self, application_template_id, **kwargs): # noqa: E501
6669
- """Delete Application Template # noqa: E501
6670
-
6671
- Deletes an Application Template. Note: application_template is called app_config on the backend api. # noqa: E501
6672
- This method makes a synchronous HTTP request by default. To make an
6673
- asynchronous HTTP request, please pass async_req=True
6674
- >>> thread = api.delete_application_template_api_v2_application_templates_application_template_id_delete_with_http_info(application_template_id, async_req=True)
6675
- >>> result = thread.get()
6676
-
6677
- :param async_req bool: execute request asynchronously
6678
- :param str application_template_id: (required)
6679
- :param _return_http_data_only: response data without head status code
6680
- and headers
6681
- :param _preload_content: if False, the urllib3.HTTPResponse object will
6682
- be returned without reading/decoding response
6683
- data. Default is True.
6684
- :param _request_timeout: timeout setting for this request. If one
6685
- number provided, it will be total request
6686
- timeout. It can also be a pair (tuple) of
6687
- (connection, read) timeouts.
6688
- :return: None
6689
- If the method is called asynchronously,
6690
- returns the request thread.
6691
- """
6692
-
6693
- local_var_params = locals()
6694
-
6695
- all_params = [
6696
- 'application_template_id'
6697
- ]
6698
- all_params.extend(
6699
- [
6700
- 'async_req',
6701
- '_return_http_data_only',
6702
- '_preload_content',
6703
- '_request_timeout'
6704
- ]
6705
- )
6706
-
6707
- for key, val in six.iteritems(local_var_params['kwargs']):
6708
- if key not in all_params:
6709
- raise ApiTypeError(
6710
- "Got an unexpected keyword argument '%s'"
6711
- " to method delete_application_template_api_v2_application_templates_application_template_id_delete" % key
6712
- )
6713
- local_var_params[key] = val
6714
- del local_var_params['kwargs']
6715
- # verify the required parameter 'application_template_id' is set
6716
- if self.api_client.client_side_validation and ('application_template_id' not in local_var_params or # noqa: E501
6717
- local_var_params['application_template_id'] is None): # noqa: E501
6718
- raise ApiValueError("Missing the required parameter `application_template_id` when calling `delete_application_template_api_v2_application_templates_application_template_id_delete`") # noqa: E501
6719
-
6720
- collection_formats = {}
6721
-
6722
- path_params = {}
6723
- if 'application_template_id' in local_var_params:
6724
- path_params['application_template_id'] = local_var_params['application_template_id'] # noqa: E501
6725
-
6726
- query_params = []
6727
-
6728
- header_params = {}
6729
-
6730
- form_params = []
6731
- local_var_files = {}
6732
-
6733
- body_params = None
6734
- # HTTP header `Accept`
6735
- header_params['Accept'] = self.api_client.select_header_accept(
6736
- ['application/json']) # noqa: E501
6737
-
6738
- # Authentication setting
6739
- auth_settings = [] # noqa: E501
6740
-
6741
- return self.api_client.call_api(
6742
- '/api/v2/application_templates/{application_template_id}', 'DELETE',
6743
- path_params,
6744
- query_params,
6745
- header_params,
6746
- body=body_params,
6747
- post_params=form_params,
6748
- files=local_var_files,
6749
- response_type=None, # noqa: E501
6750
- auth_settings=auth_settings,
6751
- async_req=local_var_params.get('async_req'),
6752
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
6753
- _preload_content=local_var_params.get('_preload_content', True),
6754
- _request_timeout=local_var_params.get('_request_timeout'),
6755
- collection_formats=collection_formats)
6756
-
6757
6643
  def delete_cloud_api_v2_clouds_cloud_id_delete(self, cloud_id, **kwargs): # noqa: E501
6758
6644
  """Delete Cloud # noqa: E501
6759
6645
 
@@ -6989,120 +6875,6 @@ class DefaultApi(object):
6989
6875
  _request_timeout=local_var_params.get('_request_timeout'),
6990
6876
  collection_formats=collection_formats)
6991
6877
 
6992
- def delete_compute_template_api_v2_compute_templates_template_id_delete(self, template_id, **kwargs): # noqa: E501
6993
- """Delete Compute Template # noqa: E501
6994
-
6995
- Deletes a compute template. # noqa: E501
6996
- This method makes a synchronous HTTP request by default. To make an
6997
- asynchronous HTTP request, please pass async_req=True
6998
- >>> thread = api.delete_compute_template_api_v2_compute_templates_template_id_delete(template_id, async_req=True)
6999
- >>> result = thread.get()
7000
-
7001
- :param async_req bool: execute request asynchronously
7002
- :param str template_id: (required)
7003
- :param _preload_content: if False, the urllib3.HTTPResponse object will
7004
- be returned without reading/decoding response
7005
- data. Default is True.
7006
- :param _request_timeout: timeout setting for this request. If one
7007
- number provided, it will be total request
7008
- timeout. It can also be a pair (tuple) of
7009
- (connection, read) timeouts.
7010
- :return: None
7011
- If the method is called asynchronously,
7012
- returns the request thread.
7013
- """
7014
- kwargs['_return_http_data_only'] = True
7015
- return self.delete_compute_template_api_v2_compute_templates_template_id_delete_with_http_info(template_id, **kwargs) # noqa: E501
7016
-
7017
- def delete_compute_template_api_v2_compute_templates_template_id_delete_with_http_info(self, template_id, **kwargs): # noqa: E501
7018
- """Delete Compute Template # noqa: E501
7019
-
7020
- Deletes a compute template. # noqa: E501
7021
- This method makes a synchronous HTTP request by default. To make an
7022
- asynchronous HTTP request, please pass async_req=True
7023
- >>> thread = api.delete_compute_template_api_v2_compute_templates_template_id_delete_with_http_info(template_id, async_req=True)
7024
- >>> result = thread.get()
7025
-
7026
- :param async_req bool: execute request asynchronously
7027
- :param str template_id: (required)
7028
- :param _return_http_data_only: response data without head status code
7029
- and headers
7030
- :param _preload_content: if False, the urllib3.HTTPResponse object will
7031
- be returned without reading/decoding response
7032
- data. Default is True.
7033
- :param _request_timeout: timeout setting for this request. If one
7034
- number provided, it will be total request
7035
- timeout. It can also be a pair (tuple) of
7036
- (connection, read) timeouts.
7037
- :return: None
7038
- If the method is called asynchronously,
7039
- returns the request thread.
7040
- """
7041
-
7042
- local_var_params = locals()
7043
-
7044
- all_params = [
7045
- 'template_id'
7046
- ]
7047
- all_params.extend(
7048
- [
7049
- 'async_req',
7050
- '_return_http_data_only',
7051
- '_preload_content',
7052
- '_request_timeout'
7053
- ]
7054
- )
7055
-
7056
- for key, val in six.iteritems(local_var_params['kwargs']):
7057
- if key not in all_params:
7058
- raise ApiTypeError(
7059
- "Got an unexpected keyword argument '%s'"
7060
- " to method delete_compute_template_api_v2_compute_templates_template_id_delete" % key
7061
- )
7062
- local_var_params[key] = val
7063
- del local_var_params['kwargs']
7064
- # verify the required parameter 'template_id' is set
7065
- if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
7066
- local_var_params['template_id'] is None): # noqa: E501
7067
- raise ApiValueError("Missing the required parameter `template_id` when calling `delete_compute_template_api_v2_compute_templates_template_id_delete`") # noqa: E501
7068
-
7069
- collection_formats = {}
7070
-
7071
- path_params = {}
7072
- if 'template_id' in local_var_params:
7073
- path_params['template_id'] = local_var_params['template_id'] # noqa: E501
7074
-
7075
- query_params = []
7076
-
7077
- header_params = {}
7078
-
7079
- form_params = []
7080
- local_var_files = {}
7081
-
7082
- body_params = None
7083
- # HTTP header `Accept`
7084
- header_params['Accept'] = self.api_client.select_header_accept(
7085
- ['application/json']) # noqa: E501
7086
-
7087
- # Authentication setting
7088
- auth_settings = [] # noqa: E501
7089
-
7090
- return self.api_client.call_api(
7091
- '/api/v2/compute_templates/{template_id}', 'DELETE',
7092
- path_params,
7093
- query_params,
7094
- header_params,
7095
- body=body_params,
7096
- post_params=form_params,
7097
- files=local_var_files,
7098
- response_type=None, # noqa: E501
7099
- auth_settings=auth_settings,
7100
- async_req=local_var_params.get('async_req'),
7101
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
7102
- _preload_content=local_var_params.get('_preload_content', True),
7103
- _request_timeout=local_var_params.get('_request_timeout'),
7104
- collection_formats=collection_formats)
7105
-
7106
6878
  def delete_hosted_cloud_api_v2_clouds_hosted_cloud_id_delete(self, cloud_id, **kwargs): # noqa: E501
7107
6879
  """Delete Hosted Cloud # noqa: E501
7108
6880
 
@@ -8252,16 +8024,17 @@ class DefaultApi(object):
8252
8024
  _request_timeout=local_var_params.get('_request_timeout'),
8253
8025
  collection_formats=collection_formats)
8254
8026
 
8255
- def delete_session_api_v2_sessions_session_id_delete(self, session_id, **kwargs): # noqa: E501
8256
- """Delete Session # noqa: E501
8027
+ def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
8028
+ """Delete Workspace # noqa: E501
8257
8029
 
8030
+ Deletes a Workspace. # noqa: E501
8258
8031
  This method makes a synchronous HTTP request by default. To make an
8259
8032
  asynchronous HTTP request, please pass async_req=True
8260
- >>> thread = api.delete_session_api_v2_sessions_session_id_delete(session_id, async_req=True)
8033
+ >>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(workspace_id, async_req=True)
8261
8034
  >>> result = thread.get()
8262
8035
 
8263
8036
  :param async_req bool: execute request asynchronously
8264
- :param str session_id: (required)
8037
+ :param str workspace_id: ID of the Workspace to delete. (required)
8265
8038
  :param _preload_content: if False, the urllib3.HTTPResponse object will
8266
8039
  be returned without reading/decoding response
8267
8040
  data. Default is True.
@@ -8274,18 +8047,19 @@ class DefaultApi(object):
8274
8047
  returns the request thread.
8275
8048
  """
8276
8049
  kwargs['_return_http_data_only'] = True
8277
- return self.delete_session_api_v2_sessions_session_id_delete_with_http_info(session_id, **kwargs) # noqa: E501
8050
+ return self.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, **kwargs) # noqa: E501
8278
8051
 
8279
- def delete_session_api_v2_sessions_session_id_delete_with_http_info(self, session_id, **kwargs): # noqa: E501
8280
- """Delete Session # noqa: E501
8052
+ def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(self, workspace_id, **kwargs): # noqa: E501
8053
+ """Delete Workspace # noqa: E501
8281
8054
 
8055
+ Deletes a Workspace. # noqa: E501
8282
8056
  This method makes a synchronous HTTP request by default. To make an
8283
8057
  asynchronous HTTP request, please pass async_req=True
8284
- >>> thread = api.delete_session_api_v2_sessions_session_id_delete_with_http_info(session_id, async_req=True)
8058
+ >>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, async_req=True)
8285
8059
  >>> result = thread.get()
8286
8060
 
8287
8061
  :param async_req bool: execute request asynchronously
8288
- :param str session_id: (required)
8062
+ :param str workspace_id: ID of the Workspace to delete. (required)
8289
8063
  :param _return_http_data_only: response data without head status code
8290
8064
  and headers
8291
8065
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -8303,7 +8077,7 @@ class DefaultApi(object):
8303
8077
  local_var_params = locals()
8304
8078
 
8305
8079
  all_params = [
8306
- 'session_id'
8080
+ 'workspace_id'
8307
8081
  ]
8308
8082
  all_params.extend(
8309
8083
  [
@@ -8318,20 +8092,20 @@ class DefaultApi(object):
8318
8092
  if key not in all_params:
8319
8093
  raise ApiTypeError(
8320
8094
  "Got an unexpected keyword argument '%s'"
8321
- " to method delete_session_api_v2_sessions_session_id_delete" % key
8095
+ " to method delete_workspace_api_v2_experimental_workspaces_workspace_id_delete" % key
8322
8096
  )
8323
8097
  local_var_params[key] = val
8324
8098
  del local_var_params['kwargs']
8325
- # verify the required parameter 'session_id' is set
8326
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
8327
- local_var_params['session_id'] is None): # noqa: E501
8328
- raise ApiValueError("Missing the required parameter `session_id` when calling `delete_session_api_v2_sessions_session_id_delete`") # noqa: E501
8099
+ # verify the required parameter 'workspace_id' is set
8100
+ if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
8101
+ local_var_params['workspace_id'] is None): # noqa: E501
8102
+ raise ApiValueError("Missing the required parameter `workspace_id` when calling `delete_workspace_api_v2_experimental_workspaces_workspace_id_delete`") # noqa: E501
8329
8103
 
8330
8104
  collection_formats = {}
8331
8105
 
8332
8106
  path_params = {}
8333
- if 'session_id' in local_var_params:
8334
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
8107
+ if 'workspace_id' in local_var_params:
8108
+ path_params['workspace_id'] = local_var_params['workspace_id'] # noqa: E501
8335
8109
 
8336
8110
  query_params = []
8337
8111
 
@@ -8349,7 +8123,7 @@ class DefaultApi(object):
8349
8123
  auth_settings = [] # noqa: E501
8350
8124
 
8351
8125
  return self.api_client.call_api(
8352
- '/api/v2/sessions/{session_id}', 'DELETE',
8126
+ '/api/v2/experimental_workspaces/{workspace_id}', 'DELETE',
8353
8127
  path_params,
8354
8128
  query_params,
8355
8129
  header_params,
@@ -8364,17 +8138,17 @@ class DefaultApi(object):
8364
8138
  _request_timeout=local_var_params.get('_request_timeout'),
8365
8139
  collection_formats=collection_formats)
8366
8140
 
8367
- def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
8368
- """Delete Workspace # noqa: E501
8141
+ def describe_machine_pool_api_v2_machine_pools_describe_post(self, describe_machine_pool_request, **kwargs): # noqa: E501
8142
+ """Describe Machine Pool # noqa: E501
8369
8143
 
8370
- Deletes a Workspace. # noqa: E501
8144
+ Describe the current state of a machine pool. # noqa: E501
8371
8145
  This method makes a synchronous HTTP request by default. To make an
8372
8146
  asynchronous HTTP request, please pass async_req=True
8373
- >>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(workspace_id, async_req=True)
8147
+ >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post(describe_machine_pool_request, async_req=True)
8374
8148
  >>> result = thread.get()
8375
8149
 
8376
8150
  :param async_req bool: execute request asynchronously
8377
- :param str workspace_id: ID of the Workspace to delete. (required)
8151
+ :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
8378
8152
  :param _preload_content: if False, the urllib3.HTTPResponse object will
8379
8153
  be returned without reading/decoding response
8380
8154
  data. Default is True.
@@ -8382,138 +8156,24 @@ class DefaultApi(object):
8382
8156
  number provided, it will be total request
8383
8157
  timeout. It can also be a pair (tuple) of
8384
8158
  (connection, read) timeouts.
8385
- :return: None
8159
+ :return: DescribemachinepoolresponseResponse
8386
8160
  If the method is called asynchronously,
8387
8161
  returns the request thread.
8388
8162
  """
8389
8163
  kwargs['_return_http_data_only'] = True
8390
- return self.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, **kwargs) # noqa: E501
8164
+ return self.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, **kwargs) # noqa: E501
8391
8165
 
8392
- def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(self, workspace_id, **kwargs): # noqa: E501
8393
- """Delete Workspace # noqa: E501
8166
+ def describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(self, describe_machine_pool_request, **kwargs): # noqa: E501
8167
+ """Describe Machine Pool # noqa: E501
8394
8168
 
8395
- Deletes a Workspace. # noqa: E501
8169
+ Describe the current state of a machine pool. # noqa: E501
8396
8170
  This method makes a synchronous HTTP request by default. To make an
8397
8171
  asynchronous HTTP request, please pass async_req=True
8398
- >>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, async_req=True)
8172
+ >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, async_req=True)
8399
8173
  >>> result = thread.get()
8400
8174
 
8401
8175
  :param async_req bool: execute request asynchronously
8402
- :param str workspace_id: ID of the Workspace to delete. (required)
8403
- :param _return_http_data_only: response data without head status code
8404
- and headers
8405
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8406
- be returned without reading/decoding response
8407
- data. Default is True.
8408
- :param _request_timeout: timeout setting for this request. If one
8409
- number provided, it will be total request
8410
- timeout. It can also be a pair (tuple) of
8411
- (connection, read) timeouts.
8412
- :return: None
8413
- If the method is called asynchronously,
8414
- returns the request thread.
8415
- """
8416
-
8417
- local_var_params = locals()
8418
-
8419
- all_params = [
8420
- 'workspace_id'
8421
- ]
8422
- all_params.extend(
8423
- [
8424
- 'async_req',
8425
- '_return_http_data_only',
8426
- '_preload_content',
8427
- '_request_timeout'
8428
- ]
8429
- )
8430
-
8431
- for key, val in six.iteritems(local_var_params['kwargs']):
8432
- if key not in all_params:
8433
- raise ApiTypeError(
8434
- "Got an unexpected keyword argument '%s'"
8435
- " to method delete_workspace_api_v2_experimental_workspaces_workspace_id_delete" % key
8436
- )
8437
- local_var_params[key] = val
8438
- del local_var_params['kwargs']
8439
- # verify the required parameter 'workspace_id' is set
8440
- if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
8441
- local_var_params['workspace_id'] is None): # noqa: E501
8442
- raise ApiValueError("Missing the required parameter `workspace_id` when calling `delete_workspace_api_v2_experimental_workspaces_workspace_id_delete`") # noqa: E501
8443
-
8444
- collection_formats = {}
8445
-
8446
- path_params = {}
8447
- if 'workspace_id' in local_var_params:
8448
- path_params['workspace_id'] = local_var_params['workspace_id'] # noqa: E501
8449
-
8450
- query_params = []
8451
-
8452
- header_params = {}
8453
-
8454
- form_params = []
8455
- local_var_files = {}
8456
-
8457
- body_params = None
8458
- # HTTP header `Accept`
8459
- header_params['Accept'] = self.api_client.select_header_accept(
8460
- ['application/json']) # noqa: E501
8461
-
8462
- # Authentication setting
8463
- auth_settings = [] # noqa: E501
8464
-
8465
- return self.api_client.call_api(
8466
- '/api/v2/experimental_workspaces/{workspace_id}', 'DELETE',
8467
- path_params,
8468
- query_params,
8469
- header_params,
8470
- body=body_params,
8471
- post_params=form_params,
8472
- files=local_var_files,
8473
- response_type=None, # noqa: E501
8474
- auth_settings=auth_settings,
8475
- async_req=local_var_params.get('async_req'),
8476
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
8477
- _preload_content=local_var_params.get('_preload_content', True),
8478
- _request_timeout=local_var_params.get('_request_timeout'),
8479
- collection_formats=collection_formats)
8480
-
8481
- def describe_machine_pool_api_v2_machine_pools_describe_post(self, describe_machine_pool_request, **kwargs): # noqa: E501
8482
- """Describe Machine Pool # noqa: E501
8483
-
8484
- Describe the current state of a machine pool. # noqa: E501
8485
- This method makes a synchronous HTTP request by default. To make an
8486
- asynchronous HTTP request, please pass async_req=True
8487
- >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post(describe_machine_pool_request, async_req=True)
8488
- >>> result = thread.get()
8489
-
8490
- :param async_req bool: execute request asynchronously
8491
- :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
8492
- :param _preload_content: if False, the urllib3.HTTPResponse object will
8493
- be returned without reading/decoding response
8494
- data. Default is True.
8495
- :param _request_timeout: timeout setting for this request. If one
8496
- number provided, it will be total request
8497
- timeout. It can also be a pair (tuple) of
8498
- (connection, read) timeouts.
8499
- :return: DescribemachinepoolresponseResponse
8500
- If the method is called asynchronously,
8501
- returns the request thread.
8502
- """
8503
- kwargs['_return_http_data_only'] = True
8504
- return self.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, **kwargs) # noqa: E501
8505
-
8506
- def describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(self, describe_machine_pool_request, **kwargs): # noqa: E501
8507
- """Describe Machine Pool # noqa: E501
8508
-
8509
- Describe the current state of a machine pool. # noqa: E501
8510
- This method makes a synchronous HTTP request by default. To make an
8511
- asynchronous HTTP request, please pass async_req=True
8512
- >>> thread = api.describe_machine_pool_api_v2_machine_pools_describe_post_with_http_info(describe_machine_pool_request, async_req=True)
8513
- >>> result = thread.get()
8514
-
8515
- :param async_req bool: execute request asynchronously
8516
- :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
8176
+ :param DescribeMachinePoolRequest describe_machine_pool_request: (required)
8517
8177
  :param _return_http_data_only: response data without head status code
8518
8178
  and headers
8519
8179
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -11321,111 +10981,6 @@ class DefaultApi(object):
11321
10981
  _request_timeout=local_var_params.get('_request_timeout'),
11322
10982
  collection_formats=collection_formats)
11323
10983
 
11324
- def get_billing_information_api_v2_organization_billing_billing_information_get(self, **kwargs): # noqa: E501
11325
- """Get Billing Information # noqa: E501
11326
-
11327
- Returns billing information for the current organization. # noqa: E501
11328
- This method makes a synchronous HTTP request by default. To make an
11329
- asynchronous HTTP request, please pass async_req=True
11330
- >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get(async_req=True)
11331
- >>> result = thread.get()
11332
-
11333
- :param async_req bool: execute request asynchronously
11334
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11335
- be returned without reading/decoding response
11336
- data. Default is True.
11337
- :param _request_timeout: timeout setting for this request. If one
11338
- number provided, it will be total request
11339
- timeout. It can also be a pair (tuple) of
11340
- (connection, read) timeouts.
11341
- :return: BillingInformation
11342
- If the method is called asynchronously,
11343
- returns the request thread.
11344
- """
11345
- kwargs['_return_http_data_only'] = True
11346
- return self.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(**kwargs) # noqa: E501
11347
-
11348
- def get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(self, **kwargs): # noqa: E501
11349
- """Get Billing Information # noqa: E501
11350
-
11351
- Returns billing information for the current organization. # noqa: E501
11352
- This method makes a synchronous HTTP request by default. To make an
11353
- asynchronous HTTP request, please pass async_req=True
11354
- >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(async_req=True)
11355
- >>> result = thread.get()
11356
-
11357
- :param async_req bool: execute request asynchronously
11358
- :param _return_http_data_only: response data without head status code
11359
- and headers
11360
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11361
- be returned without reading/decoding response
11362
- data. Default is True.
11363
- :param _request_timeout: timeout setting for this request. If one
11364
- number provided, it will be total request
11365
- timeout. It can also be a pair (tuple) of
11366
- (connection, read) timeouts.
11367
- :return: tuple(BillingInformation, status_code(int), headers(HTTPHeaderDict))
11368
- If the method is called asynchronously,
11369
- returns the request thread.
11370
- """
11371
-
11372
- local_var_params = locals()
11373
-
11374
- all_params = [
11375
- ]
11376
- all_params.extend(
11377
- [
11378
- 'async_req',
11379
- '_return_http_data_only',
11380
- '_preload_content',
11381
- '_request_timeout'
11382
- ]
11383
- )
11384
-
11385
- for key, val in six.iteritems(local_var_params['kwargs']):
11386
- if key not in all_params:
11387
- raise ApiTypeError(
11388
- "Got an unexpected keyword argument '%s'"
11389
- " to method get_billing_information_api_v2_organization_billing_billing_information_get" % key
11390
- )
11391
- local_var_params[key] = val
11392
- del local_var_params['kwargs']
11393
-
11394
- collection_formats = {}
11395
-
11396
- path_params = {}
11397
-
11398
- query_params = []
11399
-
11400
- header_params = {}
11401
-
11402
- form_params = []
11403
- local_var_files = {}
11404
-
11405
- body_params = None
11406
- # HTTP header `Accept`
11407
- header_params['Accept'] = self.api_client.select_header_accept(
11408
- ['application/json']) # noqa: E501
11409
-
11410
- # Authentication setting
11411
- auth_settings = [] # noqa: E501
11412
-
11413
- return self.api_client.call_api(
11414
- '/api/v2/organization_billing/billing_information', 'GET',
11415
- path_params,
11416
- query_params,
11417
- header_params,
11418
- body=body_params,
11419
- post_params=form_params,
11420
- files=local_var_files,
11421
- response_type='BillingInformation', # noqa: E501
11422
- auth_settings=auth_settings,
11423
- async_req=local_var_params.get('async_req'),
11424
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
11425
- _preload_content=local_var_params.get('_preload_content', True),
11426
- _request_timeout=local_var_params.get('_request_timeout'),
11427
- collection_formats=collection_formats)
11428
-
11429
10984
  def get_billing_versions_by_organization_api_v2_organization_billing_billing_versions_get(self, organization_id, **kwargs): # noqa: E501
11430
10985
  """Get Billing Versions By Organization # noqa: E501
11431
10986
 
@@ -12698,6 +12253,8 @@ class DefaultApi(object):
12698
12253
  :param datetime end_time: Filter for events that have occurred before this value
12699
12254
  :param list[ClusterEventSource] sources: Filter for events from these sources
12700
12255
  :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
12256
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
12257
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
12701
12258
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
12702
12259
  :param int count: Max number of events to fetch.
12703
12260
  :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
@@ -12731,6 +12288,8 @@ class DefaultApi(object):
12731
12288
  :param datetime end_time: Filter for events that have occurred before this value
12732
12289
  :param list[ClusterEventSource] sources: Filter for events from these sources
12733
12290
  :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
12291
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
12292
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
12734
12293
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
12735
12294
  :param int count: Max number of events to fetch.
12736
12295
  :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
@@ -12757,6 +12316,8 @@ class DefaultApi(object):
12757
12316
  'end_time',
12758
12317
  'sources',
12759
12318
  'autoscaler_resource_bundles',
12319
+ 'instance_id',
12320
+ 'instance_node_ip',
12760
12321
  'ascending_order',
12761
12322
  'count',
12762
12323
  'level',
@@ -12801,6 +12362,10 @@ class DefaultApi(object):
12801
12362
  if 'autoscaler_resource_bundles' in local_var_params and local_var_params['autoscaler_resource_bundles'] is not None: # noqa: E501
12802
12363
  query_params.append(('autoscaler_resource_bundles', local_var_params['autoscaler_resource_bundles'])) # noqa: E501
12803
12364
  collection_formats['autoscaler_resource_bundles'] = 'multi' # noqa: E501
12365
+ if 'instance_id' in local_var_params and local_var_params['instance_id'] is not None: # noqa: E501
12366
+ query_params.append(('instance_id', local_var_params['instance_id'])) # noqa: E501
12367
+ if 'instance_node_ip' in local_var_params and local_var_params['instance_node_ip'] is not None: # noqa: E501
12368
+ query_params.append(('instance_node_ip', local_var_params['instance_node_ip'])) # noqa: E501
12804
12369
  if 'ascending_order' in local_var_params and local_var_params['ascending_order'] is not None: # noqa: E501
12805
12370
  query_params.append(('ascending_order', local_var_params['ascending_order'])) # noqa: E501
12806
12371
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
@@ -14820,16 +14385,20 @@ class DefaultApi(object):
14820
14385
  _request_timeout=local_var_params.get('_request_timeout'),
14821
14386
  collection_formats=collection_formats)
14822
14387
 
14823
- def get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get(self, **kwargs): # noqa: E501
14824
- """Get Edit Payment Information Url # noqa: E501
14388
+ def get_events_api_v2_sessions_session_id_events_get(self, session_id, start_index, end_index, **kwargs): # noqa: E501
14389
+ """Get Events # noqa: E501
14825
14390
 
14826
- Returns URL to edit Chargify active payment information. # noqa: E501
14391
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14827
14392
  This method makes a synchronous HTTP request by default. To make an
14828
14393
  asynchronous HTTP request, please pass async_req=True
14829
- >>> thread = api.get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get(async_req=True)
14394
+ >>> thread = api.get_events_api_v2_sessions_session_id_events_get(session_id, start_index, end_index, async_req=True)
14830
14395
  >>> result = thread.get()
14831
14396
 
14832
14397
  :param async_req bool: execute request asynchronously
14398
+ :param str session_id: (required)
14399
+ :param int start_index: (required)
14400
+ :param int end_index: (required)
14401
+ :param datetime start_time:
14833
14402
  :param _preload_content: if False, the urllib3.HTTPResponse object will
14834
14403
  be returned without reading/decoding response
14835
14404
  data. Default is True.
@@ -14837,23 +14406,27 @@ class DefaultApi(object):
14837
14406
  number provided, it will be total request
14838
14407
  timeout. It can also be a pair (tuple) of
14839
14408
  (connection, read) timeouts.
14840
- :return: str
14409
+ :return: ClustereventsoutputResponse
14841
14410
  If the method is called asynchronously,
14842
14411
  returns the request thread.
14843
14412
  """
14844
14413
  kwargs['_return_http_data_only'] = True
14845
- return self.get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get_with_http_info(**kwargs) # noqa: E501
14414
+ return self.get_events_api_v2_sessions_session_id_events_get_with_http_info(session_id, start_index, end_index, **kwargs) # noqa: E501
14846
14415
 
14847
- def get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get_with_http_info(self, **kwargs): # noqa: E501
14848
- """Get Edit Payment Information Url # noqa: E501
14416
+ def get_events_api_v2_sessions_session_id_events_get_with_http_info(self, session_id, start_index, end_index, **kwargs): # noqa: E501
14417
+ """Get Events # noqa: E501
14849
14418
 
14850
- Returns URL to edit Chargify active payment information. # noqa: E501
14419
+ Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14851
14420
  This method makes a synchronous HTTP request by default. To make an
14852
14421
  asynchronous HTTP request, please pass async_req=True
14853
- >>> thread = api.get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get_with_http_info(async_req=True)
14422
+ >>> thread = api.get_events_api_v2_sessions_session_id_events_get_with_http_info(session_id, start_index, end_index, async_req=True)
14854
14423
  >>> result = thread.get()
14855
14424
 
14856
14425
  :param async_req bool: execute request asynchronously
14426
+ :param str session_id: (required)
14427
+ :param int start_index: (required)
14428
+ :param int end_index: (required)
14429
+ :param datetime start_time:
14857
14430
  :param _return_http_data_only: response data without head status code
14858
14431
  and headers
14859
14432
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -14863,7 +14436,7 @@ class DefaultApi(object):
14863
14436
  number provided, it will be total request
14864
14437
  timeout. It can also be a pair (tuple) of
14865
14438
  (connection, read) timeouts.
14866
- :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
14439
+ :return: tuple(ClustereventsoutputResponse, status_code(int), headers(HTTPHeaderDict))
14867
14440
  If the method is called asynchronously,
14868
14441
  returns the request thread.
14869
14442
  """
@@ -14871,6 +14444,10 @@ class DefaultApi(object):
14871
14444
  local_var_params = locals()
14872
14445
 
14873
14446
  all_params = [
14447
+ 'session_id',
14448
+ 'start_index',
14449
+ 'end_index',
14450
+ 'start_time'
14874
14451
  ]
14875
14452
  all_params.extend(
14876
14453
  [
@@ -14885,16 +14462,38 @@ class DefaultApi(object):
14885
14462
  if key not in all_params:
14886
14463
  raise ApiTypeError(
14887
14464
  "Got an unexpected keyword argument '%s'"
14888
- " to method get_edit_payment_information_url_api_v2_organization_billing_edit_payment_information_url_get" % key
14465
+ " to method get_events_api_v2_sessions_session_id_events_get" % key
14889
14466
  )
14890
14467
  local_var_params[key] = val
14891
14468
  del local_var_params['kwargs']
14469
+ # verify the required parameter 'session_id' is set
14470
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
14471
+ local_var_params['session_id'] is None): # noqa: E501
14472
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
14473
+ # verify the required parameter 'start_index' is set
14474
+ if self.api_client.client_side_validation and ('start_index' not in local_var_params or # noqa: E501
14475
+ local_var_params['start_index'] is None): # noqa: E501
14476
+ raise ApiValueError("Missing the required parameter `start_index` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
14477
+ # verify the required parameter 'end_index' is set
14478
+ if self.api_client.client_side_validation and ('end_index' not in local_var_params or # noqa: E501
14479
+ local_var_params['end_index'] is None): # noqa: E501
14480
+ raise ApiValueError("Missing the required parameter `end_index` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
14892
14481
 
14482
+ if self.api_client.client_side_validation and 'start_index' in local_var_params and local_var_params['start_index'] < 0: # noqa: E501
14483
+ raise ApiValueError("Invalid value for parameter `start_index` when calling `get_events_api_v2_sessions_session_id_events_get`, must be a value greater than or equal to `0`") # noqa: E501
14893
14484
  collection_formats = {}
14894
14485
 
14895
14486
  path_params = {}
14487
+ if 'session_id' in local_var_params:
14488
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
14896
14489
 
14897
14490
  query_params = []
14491
+ if 'start_index' in local_var_params and local_var_params['start_index'] is not None: # noqa: E501
14492
+ query_params.append(('start_index', local_var_params['start_index'])) # noqa: E501
14493
+ if 'end_index' in local_var_params and local_var_params['end_index'] is not None: # noqa: E501
14494
+ query_params.append(('end_index', local_var_params['end_index'])) # noqa: E501
14495
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
14496
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
14898
14497
 
14899
14498
  header_params = {}
14900
14499
 
@@ -14910,153 +14509,14 @@ class DefaultApi(object):
14910
14509
  auth_settings = [] # noqa: E501
14911
14510
 
14912
14511
  return self.api_client.call_api(
14913
- '/api/v2/organization_billing/edit_payment_information_url', 'GET',
14512
+ '/api/v2/sessions/{session_id}/events', 'GET',
14914
14513
  path_params,
14915
14514
  query_params,
14916
14515
  header_params,
14917
14516
  body=body_params,
14918
14517
  post_params=form_params,
14919
14518
  files=local_var_files,
14920
- response_type='str', # noqa: E501
14921
- auth_settings=auth_settings,
14922
- async_req=local_var_params.get('async_req'),
14923
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14924
- _preload_content=local_var_params.get('_preload_content', True),
14925
- _request_timeout=local_var_params.get('_request_timeout'),
14926
- collection_formats=collection_formats)
14927
-
14928
- def get_events_api_v2_sessions_session_id_events_get(self, session_id, start_index, end_index, **kwargs): # noqa: E501
14929
- """Get Events # noqa: E501
14930
-
14931
- Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14932
- This method makes a synchronous HTTP request by default. To make an
14933
- asynchronous HTTP request, please pass async_req=True
14934
- >>> thread = api.get_events_api_v2_sessions_session_id_events_get(session_id, start_index, end_index, async_req=True)
14935
- >>> result = thread.get()
14936
-
14937
- :param async_req bool: execute request asynchronously
14938
- :param str session_id: (required)
14939
- :param int start_index: (required)
14940
- :param int end_index: (required)
14941
- :param datetime start_time:
14942
- :param _preload_content: if False, the urllib3.HTTPResponse object will
14943
- be returned without reading/decoding response
14944
- data. Default is True.
14945
- :param _request_timeout: timeout setting for this request. If one
14946
- number provided, it will be total request
14947
- timeout. It can also be a pair (tuple) of
14948
- (connection, read) timeouts.
14949
- :return: ClustereventsoutputResponse
14950
- If the method is called asynchronously,
14951
- returns the request thread.
14952
- """
14953
- kwargs['_return_http_data_only'] = True
14954
- return self.get_events_api_v2_sessions_session_id_events_get_with_http_info(session_id, start_index, end_index, **kwargs) # noqa: E501
14955
-
14956
- def get_events_api_v2_sessions_session_id_events_get_with_http_info(self, session_id, start_index, end_index, **kwargs): # noqa: E501
14957
- """Get Events # noqa: E501
14958
-
14959
- Return events for this cluster. There are multiple endpoints to return events. This endpoint is for the dataplane to fetch events to power the oss ray dashboard. The /cluster_events endpoint is used by the UI to fetch events to power general debugging UI features like train dashboard. Finally, there are events endpoints for each workload type (workspaces, jobs, services). Those endpoints have some additional logic to stitch together cluster events with workload-specific events. # noqa: E501
14960
- This method makes a synchronous HTTP request by default. To make an
14961
- asynchronous HTTP request, please pass async_req=True
14962
- >>> thread = api.get_events_api_v2_sessions_session_id_events_get_with_http_info(session_id, start_index, end_index, async_req=True)
14963
- >>> result = thread.get()
14964
-
14965
- :param async_req bool: execute request asynchronously
14966
- :param str session_id: (required)
14967
- :param int start_index: (required)
14968
- :param int end_index: (required)
14969
- :param datetime start_time:
14970
- :param _return_http_data_only: response data without head status code
14971
- and headers
14972
- :param _preload_content: if False, the urllib3.HTTPResponse object will
14973
- be returned without reading/decoding response
14974
- data. Default is True.
14975
- :param _request_timeout: timeout setting for this request. If one
14976
- number provided, it will be total request
14977
- timeout. It can also be a pair (tuple) of
14978
- (connection, read) timeouts.
14979
- :return: tuple(ClustereventsoutputResponse, status_code(int), headers(HTTPHeaderDict))
14980
- If the method is called asynchronously,
14981
- returns the request thread.
14982
- """
14983
-
14984
- local_var_params = locals()
14985
-
14986
- all_params = [
14987
- 'session_id',
14988
- 'start_index',
14989
- 'end_index',
14990
- 'start_time'
14991
- ]
14992
- all_params.extend(
14993
- [
14994
- 'async_req',
14995
- '_return_http_data_only',
14996
- '_preload_content',
14997
- '_request_timeout'
14998
- ]
14999
- )
15000
-
15001
- for key, val in six.iteritems(local_var_params['kwargs']):
15002
- if key not in all_params:
15003
- raise ApiTypeError(
15004
- "Got an unexpected keyword argument '%s'"
15005
- " to method get_events_api_v2_sessions_session_id_events_get" % key
15006
- )
15007
- local_var_params[key] = val
15008
- del local_var_params['kwargs']
15009
- # verify the required parameter 'session_id' is set
15010
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
15011
- local_var_params['session_id'] is None): # noqa: E501
15012
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
15013
- # verify the required parameter 'start_index' is set
15014
- if self.api_client.client_side_validation and ('start_index' not in local_var_params or # noqa: E501
15015
- local_var_params['start_index'] is None): # noqa: E501
15016
- raise ApiValueError("Missing the required parameter `start_index` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
15017
- # verify the required parameter 'end_index' is set
15018
- if self.api_client.client_side_validation and ('end_index' not in local_var_params or # noqa: E501
15019
- local_var_params['end_index'] is None): # noqa: E501
15020
- raise ApiValueError("Missing the required parameter `end_index` when calling `get_events_api_v2_sessions_session_id_events_get`") # noqa: E501
15021
-
15022
- if self.api_client.client_side_validation and 'start_index' in local_var_params and local_var_params['start_index'] < 0: # noqa: E501
15023
- raise ApiValueError("Invalid value for parameter `start_index` when calling `get_events_api_v2_sessions_session_id_events_get`, must be a value greater than or equal to `0`") # noqa: E501
15024
- collection_formats = {}
15025
-
15026
- path_params = {}
15027
- if 'session_id' in local_var_params:
15028
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
15029
-
15030
- query_params = []
15031
- if 'start_index' in local_var_params and local_var_params['start_index'] is not None: # noqa: E501
15032
- query_params.append(('start_index', local_var_params['start_index'])) # noqa: E501
15033
- if 'end_index' in local_var_params and local_var_params['end_index'] is not None: # noqa: E501
15034
- query_params.append(('end_index', local_var_params['end_index'])) # noqa: E501
15035
- if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
15036
- query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
15037
-
15038
- header_params = {}
15039
-
15040
- form_params = []
15041
- local_var_files = {}
15042
-
15043
- body_params = None
15044
- # HTTP header `Accept`
15045
- header_params['Accept'] = self.api_client.select_header_accept(
15046
- ['application/json']) # noqa: E501
15047
-
15048
- # Authentication setting
15049
- auth_settings = [] # noqa: E501
15050
-
15051
- return self.api_client.call_api(
15052
- '/api/v2/sessions/{session_id}/events', 'GET',
15053
- path_params,
15054
- query_params,
15055
- header_params,
15056
- body=body_params,
15057
- post_params=form_params,
15058
- files=local_var_files,
15059
- response_type='ClustereventsoutputResponse', # noqa: E501
14519
+ response_type='ClustereventsoutputResponse', # noqa: E501
15060
14520
  auth_settings=auth_settings,
15061
14521
  async_req=local_var_params.get('async_req'),
15062
14522
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -15402,120 +14862,6 @@ class DefaultApi(object):
15402
14862
  _request_timeout=local_var_params.get('_request_timeout'),
15403
14863
  collection_formats=collection_formats)
15404
14864
 
15405
- def get_job_api_v2_decorated_unified_jobs_job_id_get(self, job_id, **kwargs): # noqa: E501
15406
- """Get Job # noqa: E501
15407
-
15408
- Retrieve a job. # noqa: E501
15409
- This method makes a synchronous HTTP request by default. To make an
15410
- asynchronous HTTP request, please pass async_req=True
15411
- >>> thread = api.get_job_api_v2_decorated_unified_jobs_job_id_get(job_id, async_req=True)
15412
- >>> result = thread.get()
15413
-
15414
- :param async_req bool: execute request asynchronously
15415
- :param str job_id: The ID of the job. (required)
15416
- :param _preload_content: if False, the urllib3.HTTPResponse object will
15417
- be returned without reading/decoding response
15418
- data. Default is True.
15419
- :param _request_timeout: timeout setting for this request. If one
15420
- number provided, it will be total request
15421
- timeout. It can also be a pair (tuple) of
15422
- (connection, read) timeouts.
15423
- :return: DecoratedunifiedjobResponse
15424
- If the method is called asynchronously,
15425
- returns the request thread.
15426
- """
15427
- kwargs['_return_http_data_only'] = True
15428
- return self.get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
15429
-
15430
- def get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
15431
- """Get Job # noqa: E501
15432
-
15433
- Retrieve a job. # noqa: E501
15434
- This method makes a synchronous HTTP request by default. To make an
15435
- asynchronous HTTP request, please pass async_req=True
15436
- >>> thread = api.get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(job_id, async_req=True)
15437
- >>> result = thread.get()
15438
-
15439
- :param async_req bool: execute request asynchronously
15440
- :param str job_id: The ID of the job. (required)
15441
- :param _return_http_data_only: response data without head status code
15442
- and headers
15443
- :param _preload_content: if False, the urllib3.HTTPResponse object will
15444
- be returned without reading/decoding response
15445
- data. Default is True.
15446
- :param _request_timeout: timeout setting for this request. If one
15447
- number provided, it will be total request
15448
- timeout. It can also be a pair (tuple) of
15449
- (connection, read) timeouts.
15450
- :return: tuple(DecoratedunifiedjobResponse, status_code(int), headers(HTTPHeaderDict))
15451
- If the method is called asynchronously,
15452
- returns the request thread.
15453
- """
15454
-
15455
- local_var_params = locals()
15456
-
15457
- all_params = [
15458
- 'job_id'
15459
- ]
15460
- all_params.extend(
15461
- [
15462
- 'async_req',
15463
- '_return_http_data_only',
15464
- '_preload_content',
15465
- '_request_timeout'
15466
- ]
15467
- )
15468
-
15469
- for key, val in six.iteritems(local_var_params['kwargs']):
15470
- if key not in all_params:
15471
- raise ApiTypeError(
15472
- "Got an unexpected keyword argument '%s'"
15473
- " to method get_job_api_v2_decorated_unified_jobs_job_id_get" % key
15474
- )
15475
- local_var_params[key] = val
15476
- del local_var_params['kwargs']
15477
- # verify the required parameter 'job_id' is set
15478
- if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
15479
- local_var_params['job_id'] is None): # noqa: E501
15480
- raise ApiValueError("Missing the required parameter `job_id` when calling `get_job_api_v2_decorated_unified_jobs_job_id_get`") # noqa: E501
15481
-
15482
- collection_formats = {}
15483
-
15484
- path_params = {}
15485
- if 'job_id' in local_var_params:
15486
- path_params['job_id'] = local_var_params['job_id'] # noqa: E501
15487
-
15488
- query_params = []
15489
-
15490
- header_params = {}
15491
-
15492
- form_params = []
15493
- local_var_files = {}
15494
-
15495
- body_params = None
15496
- # HTTP header `Accept`
15497
- header_params['Accept'] = self.api_client.select_header_accept(
15498
- ['application/json']) # noqa: E501
15499
-
15500
- # Authentication setting
15501
- auth_settings = [] # noqa: E501
15502
-
15503
- return self.api_client.call_api(
15504
- '/api/v2/decorated_unified_jobs/{job_id}', 'GET',
15505
- path_params,
15506
- query_params,
15507
- header_params,
15508
- body=body_params,
15509
- post_params=form_params,
15510
- files=local_var_files,
15511
- response_type='DecoratedunifiedjobResponse', # noqa: E501
15512
- auth_settings=auth_settings,
15513
- async_req=local_var_params.get('async_req'),
15514
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
15515
- _preload_content=local_var_params.get('_preload_content', True),
15516
- _request_timeout=local_var_params.get('_request_timeout'),
15517
- collection_formats=collection_formats)
15518
-
15519
14865
  def get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get(self, production_job_id, **kwargs): # noqa: E501
15520
14866
  """Get Job Events # noqa: E501
15521
14867
 
@@ -15806,16 +15152,17 @@ class DefaultApi(object):
15806
15152
  _request_timeout=local_var_params.get('_request_timeout'),
15807
15153
  collection_formats=collection_formats)
15808
15154
 
15809
- def get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get(self, job_id, **kwargs): # noqa: E501
15810
- """Get Job Logs Stream # noqa: E501
15155
+ def get_job_queue_api_v2_job_queues_job_queue_id_get(self, job_queue_id, **kwargs): # noqa: E501
15156
+ """Get Job Queue # noqa: E501
15811
15157
 
15158
+ Retrieves a job queue. # noqa: E501
15812
15159
  This method makes a synchronous HTTP request by default. To make an
15813
15160
  asynchronous HTTP request, please pass async_req=True
15814
- >>> thread = api.get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get(job_id, async_req=True)
15161
+ >>> thread = api.get_job_queue_api_v2_job_queues_job_queue_id_get(job_queue_id, async_req=True)
15815
15162
  >>> result = thread.get()
15816
15163
 
15817
15164
  :param async_req bool: execute request asynchronously
15818
- :param str job_id: (required)
15165
+ :param str job_queue_id: (required)
15819
15166
  :param _preload_content: if False, the urllib3.HTTPResponse object will
15820
15167
  be returned without reading/decoding response
15821
15168
  data. Default is True.
@@ -15823,23 +15170,24 @@ class DefaultApi(object):
15823
15170
  number provided, it will be total request
15824
15171
  timeout. It can also be a pair (tuple) of
15825
15172
  (connection, read) timeouts.
15826
- :return: LogstreamResponse
15173
+ :return: DecoratedjobqueueResponse
15827
15174
  If the method is called asynchronously,
15828
15175
  returns the request thread.
15829
15176
  """
15830
15177
  kwargs['_return_http_data_only'] = True
15831
- return self.get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
15178
+ return self.get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(job_queue_id, **kwargs) # noqa: E501
15832
15179
 
15833
- def get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
15834
- """Get Job Logs Stream # noqa: E501
15180
+ def get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(self, job_queue_id, **kwargs): # noqa: E501
15181
+ """Get Job Queue # noqa: E501
15835
15182
 
15183
+ Retrieves a job queue. # noqa: E501
15836
15184
  This method makes a synchronous HTTP request by default. To make an
15837
15185
  asynchronous HTTP request, please pass async_req=True
15838
- >>> thread = api.get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get_with_http_info(job_id, async_req=True)
15186
+ >>> thread = api.get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(job_queue_id, async_req=True)
15839
15187
  >>> result = thread.get()
15840
15188
 
15841
15189
  :param async_req bool: execute request asynchronously
15842
- :param str job_id: (required)
15190
+ :param str job_queue_id: (required)
15843
15191
  :param _return_http_data_only: response data without head status code
15844
15192
  and headers
15845
15193
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -15849,7 +15197,7 @@ class DefaultApi(object):
15849
15197
  number provided, it will be total request
15850
15198
  timeout. It can also be a pair (tuple) of
15851
15199
  (connection, read) timeouts.
15852
- :return: tuple(LogstreamResponse, status_code(int), headers(HTTPHeaderDict))
15200
+ :return: tuple(DecoratedjobqueueResponse, status_code(int), headers(HTTPHeaderDict))
15853
15201
  If the method is called asynchronously,
15854
15202
  returns the request thread.
15855
15203
  """
@@ -15857,7 +15205,7 @@ class DefaultApi(object):
15857
15205
  local_var_params = locals()
15858
15206
 
15859
15207
  all_params = [
15860
- 'job_id'
15208
+ 'job_queue_id'
15861
15209
  ]
15862
15210
  all_params.extend(
15863
15211
  [
@@ -15872,121 +15220,7 @@ class DefaultApi(object):
15872
15220
  if key not in all_params:
15873
15221
  raise ApiTypeError(
15874
15222
  "Got an unexpected keyword argument '%s'"
15875
- " to method get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get" % key
15876
- )
15877
- local_var_params[key] = val
15878
- del local_var_params['kwargs']
15879
- # verify the required parameter 'job_id' is set
15880
- if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
15881
- local_var_params['job_id'] is None): # noqa: E501
15882
- raise ApiValueError("Missing the required parameter `job_id` when calling `get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get`") # noqa: E501
15883
-
15884
- collection_formats = {}
15885
-
15886
- path_params = {}
15887
- if 'job_id' in local_var_params:
15888
- path_params['job_id'] = local_var_params['job_id'] # noqa: E501
15889
-
15890
- query_params = []
15891
-
15892
- header_params = {}
15893
-
15894
- form_params = []
15895
- local_var_files = {}
15896
-
15897
- body_params = None
15898
- # HTTP header `Accept`
15899
- header_params['Accept'] = self.api_client.select_header_accept(
15900
- ['application/json']) # noqa: E501
15901
-
15902
- # Authentication setting
15903
- auth_settings = [] # noqa: E501
15904
-
15905
- return self.api_client.call_api(
15906
- '/api/v2/logs/job_logs_stream/{job_id}', 'GET',
15907
- path_params,
15908
- query_params,
15909
- header_params,
15910
- body=body_params,
15911
- post_params=form_params,
15912
- files=local_var_files,
15913
- response_type='LogstreamResponse', # noqa: E501
15914
- auth_settings=auth_settings,
15915
- async_req=local_var_params.get('async_req'),
15916
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
15917
- _preload_content=local_var_params.get('_preload_content', True),
15918
- _request_timeout=local_var_params.get('_request_timeout'),
15919
- collection_formats=collection_formats)
15920
-
15921
- def get_job_queue_api_v2_job_queues_job_queue_id_get(self, job_queue_id, **kwargs): # noqa: E501
15922
- """Get Job Queue # noqa: E501
15923
-
15924
- Retrieves a job queue. # noqa: E501
15925
- This method makes a synchronous HTTP request by default. To make an
15926
- asynchronous HTTP request, please pass async_req=True
15927
- >>> thread = api.get_job_queue_api_v2_job_queues_job_queue_id_get(job_queue_id, async_req=True)
15928
- >>> result = thread.get()
15929
-
15930
- :param async_req bool: execute request asynchronously
15931
- :param str job_queue_id: (required)
15932
- :param _preload_content: if False, the urllib3.HTTPResponse object will
15933
- be returned without reading/decoding response
15934
- data. Default is True.
15935
- :param _request_timeout: timeout setting for this request. If one
15936
- number provided, it will be total request
15937
- timeout. It can also be a pair (tuple) of
15938
- (connection, read) timeouts.
15939
- :return: DecoratedjobqueueResponse
15940
- If the method is called asynchronously,
15941
- returns the request thread.
15942
- """
15943
- kwargs['_return_http_data_only'] = True
15944
- return self.get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(job_queue_id, **kwargs) # noqa: E501
15945
-
15946
- def get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(self, job_queue_id, **kwargs): # noqa: E501
15947
- """Get Job Queue # noqa: E501
15948
-
15949
- Retrieves a job queue. # noqa: E501
15950
- This method makes a synchronous HTTP request by default. To make an
15951
- asynchronous HTTP request, please pass async_req=True
15952
- >>> thread = api.get_job_queue_api_v2_job_queues_job_queue_id_get_with_http_info(job_queue_id, async_req=True)
15953
- >>> result = thread.get()
15954
-
15955
- :param async_req bool: execute request asynchronously
15956
- :param str job_queue_id: (required)
15957
- :param _return_http_data_only: response data without head status code
15958
- and headers
15959
- :param _preload_content: if False, the urllib3.HTTPResponse object will
15960
- be returned without reading/decoding response
15961
- data. Default is True.
15962
- :param _request_timeout: timeout setting for this request. If one
15963
- number provided, it will be total request
15964
- timeout. It can also be a pair (tuple) of
15965
- (connection, read) timeouts.
15966
- :return: tuple(DecoratedjobqueueResponse, status_code(int), headers(HTTPHeaderDict))
15967
- If the method is called asynchronously,
15968
- returns the request thread.
15969
- """
15970
-
15971
- local_var_params = locals()
15972
-
15973
- all_params = [
15974
- 'job_queue_id'
15975
- ]
15976
- all_params.extend(
15977
- [
15978
- 'async_req',
15979
- '_return_http_data_only',
15980
- '_preload_content',
15981
- '_request_timeout'
15982
- ]
15983
- )
15984
-
15985
- for key, val in six.iteritems(local_var_params['kwargs']):
15986
- if key not in all_params:
15987
- raise ApiTypeError(
15988
- "Got an unexpected keyword argument '%s'"
15989
- " to method get_job_queue_api_v2_job_queues_job_queue_id_get" % key
15223
+ " to method get_job_queue_api_v2_job_queues_job_queue_id_get" % key
15990
15224
  )
15991
15225
  local_var_params[key] = val
15992
15226
  del local_var_params['kwargs']
@@ -17760,116 +16994,6 @@ class DefaultApi(object):
17760
16994
  _request_timeout=local_var_params.get('_request_timeout'),
17761
16995
  collection_formats=collection_formats)
17762
16996
 
17763
- def get_recent_projects_api_v2_recent_activity_projects_get(self, **kwargs): # noqa: E501
17764
- """Get Recent Projects # noqa: E501
17765
-
17766
- Retrieves recently used projects for the current logged in user # noqa: E501
17767
- This method makes a synchronous HTTP request by default. To make an
17768
- asynchronous HTTP request, please pass async_req=True
17769
- >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get(async_req=True)
17770
- >>> result = thread.get()
17771
-
17772
- :param async_req bool: execute request asynchronously
17773
- :param int count: the number of recent activity elements to fetch
17774
- :param _preload_content: if False, the urllib3.HTTPResponse object will
17775
- be returned without reading/decoding response
17776
- data. Default is True.
17777
- :param _request_timeout: timeout setting for this request. If one
17778
- number provided, it will be total request
17779
- timeout. It can also be a pair (tuple) of
17780
- (connection, read) timeouts.
17781
- :return: MiniprojectListResponse
17782
- If the method is called asynchronously,
17783
- returns the request thread.
17784
- """
17785
- kwargs['_return_http_data_only'] = True
17786
- return self.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(**kwargs) # noqa: E501
17787
-
17788
- def get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(self, **kwargs): # noqa: E501
17789
- """Get Recent Projects # noqa: E501
17790
-
17791
- Retrieves recently used projects for the current logged in user # noqa: E501
17792
- This method makes a synchronous HTTP request by default. To make an
17793
- asynchronous HTTP request, please pass async_req=True
17794
- >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(async_req=True)
17795
- >>> result = thread.get()
17796
-
17797
- :param async_req bool: execute request asynchronously
17798
- :param int count: the number of recent activity elements to fetch
17799
- :param _return_http_data_only: response data without head status code
17800
- and headers
17801
- :param _preload_content: if False, the urllib3.HTTPResponse object will
17802
- be returned without reading/decoding response
17803
- data. Default is True.
17804
- :param _request_timeout: timeout setting for this request. If one
17805
- number provided, it will be total request
17806
- timeout. It can also be a pair (tuple) of
17807
- (connection, read) timeouts.
17808
- :return: tuple(MiniprojectListResponse, status_code(int), headers(HTTPHeaderDict))
17809
- If the method is called asynchronously,
17810
- returns the request thread.
17811
- """
17812
-
17813
- local_var_params = locals()
17814
-
17815
- all_params = [
17816
- 'count'
17817
- ]
17818
- all_params.extend(
17819
- [
17820
- 'async_req',
17821
- '_return_http_data_only',
17822
- '_preload_content',
17823
- '_request_timeout'
17824
- ]
17825
- )
17826
-
17827
- for key, val in six.iteritems(local_var_params['kwargs']):
17828
- if key not in all_params:
17829
- raise ApiTypeError(
17830
- "Got an unexpected keyword argument '%s'"
17831
- " to method get_recent_projects_api_v2_recent_activity_projects_get" % key
17832
- )
17833
- local_var_params[key] = val
17834
- del local_var_params['kwargs']
17835
-
17836
- collection_formats = {}
17837
-
17838
- path_params = {}
17839
-
17840
- query_params = []
17841
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
17842
- query_params.append(('count', local_var_params['count'])) # noqa: E501
17843
-
17844
- header_params = {}
17845
-
17846
- form_params = []
17847
- local_var_files = {}
17848
-
17849
- body_params = None
17850
- # HTTP header `Accept`
17851
- header_params['Accept'] = self.api_client.select_header_accept(
17852
- ['application/json']) # noqa: E501
17853
-
17854
- # Authentication setting
17855
- auth_settings = [] # noqa: E501
17856
-
17857
- return self.api_client.call_api(
17858
- '/api/v2/recent_activity/projects', 'GET',
17859
- path_params,
17860
- query_params,
17861
- header_params,
17862
- body=body_params,
17863
- post_params=form_params,
17864
- files=local_var_files,
17865
- response_type='MiniprojectListResponse', # noqa: E501
17866
- auth_settings=auth_settings,
17867
- async_req=local_var_params.get('async_req'),
17868
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
17869
- _preload_content=local_var_params.get('_preload_content', True),
17870
- _request_timeout=local_var_params.get('_request_timeout'),
17871
- collection_formats=collection_formats)
17872
-
17873
16997
  def get_regions_and_zones_api_v2_aws_info_regions_and_zones_get(self, **kwargs): # noqa: E501
17874
16998
  """Get Regions And Zones # noqa: E501
17875
16999
 
@@ -20490,16 +19614,17 @@ class DefaultApi(object):
20490
19614
  _request_timeout=local_var_params.get('_request_timeout'),
20491
19615
  collection_formats=collection_formats)
20492
19616
 
20493
- def get_templatized_cluster_environments_api_v2_application_templates_templatized_get(self, **kwargs): # noqa: E501
20494
- """Get Templatized Cluster Environments # noqa: E501
19617
+ def get_total_usage_api_v2_aggregated_instance_usage_get(self, start_date, end_date, **kwargs): # noqa: E501
19618
+ """Get Total Usage # noqa: E501
20495
19619
 
20496
- Returns all templatized cluster environments. # noqa: E501
20497
19620
  This method makes a synchronous HTTP request by default. To make an
20498
19621
  asynchronous HTTP request, please pass async_req=True
20499
- >>> thread = api.get_templatized_cluster_environments_api_v2_application_templates_templatized_get(async_req=True)
19622
+ >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get(start_date, end_date, async_req=True)
20500
19623
  >>> result = thread.get()
20501
19624
 
20502
19625
  :param async_req bool: execute request asynchronously
19626
+ :param date start_date: (required)
19627
+ :param date end_date: (required)
20503
19628
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20504
19629
  be returned without reading/decoding response
20505
19630
  data. Default is True.
@@ -20507,23 +19632,24 @@ class DefaultApi(object):
20507
19632
  number provided, it will be total request
20508
19633
  timeout. It can also be a pair (tuple) of
20509
19634
  (connection, read) timeouts.
20510
- :return: TemplatizeddecoratedapplicationtemplatesResponse
19635
+ :return: AggregatedusageResponse
20511
19636
  If the method is called asynchronously,
20512
19637
  returns the request thread.
20513
19638
  """
20514
19639
  kwargs['_return_http_data_only'] = True
20515
- return self.get_templatized_cluster_environments_api_v2_application_templates_templatized_get_with_http_info(**kwargs) # noqa: E501
19640
+ return self.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, **kwargs) # noqa: E501
20516
19641
 
20517
- def get_templatized_cluster_environments_api_v2_application_templates_templatized_get_with_http_info(self, **kwargs): # noqa: E501
20518
- """Get Templatized Cluster Environments # noqa: E501
19642
+ def get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(self, start_date, end_date, **kwargs): # noqa: E501
19643
+ """Get Total Usage # noqa: E501
20519
19644
 
20520
- Returns all templatized cluster environments. # noqa: E501
20521
19645
  This method makes a synchronous HTTP request by default. To make an
20522
19646
  asynchronous HTTP request, please pass async_req=True
20523
- >>> thread = api.get_templatized_cluster_environments_api_v2_application_templates_templatized_get_with_http_info(async_req=True)
19647
+ >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, async_req=True)
20524
19648
  >>> result = thread.get()
20525
19649
 
20526
19650
  :param async_req bool: execute request asynchronously
19651
+ :param date start_date: (required)
19652
+ :param date end_date: (required)
20527
19653
  :param _return_http_data_only: response data without head status code
20528
19654
  and headers
20529
19655
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20533,7 +19659,7 @@ class DefaultApi(object):
20533
19659
  number provided, it will be total request
20534
19660
  timeout. It can also be a pair (tuple) of
20535
19661
  (connection, read) timeouts.
20536
- :return: tuple(TemplatizeddecoratedapplicationtemplatesResponse, status_code(int), headers(HTTPHeaderDict))
19662
+ :return: tuple(AggregatedusageResponse, status_code(int), headers(HTTPHeaderDict))
20537
19663
  If the method is called asynchronously,
20538
19664
  returns the request thread.
20539
19665
  """
@@ -20541,6 +19667,8 @@ class DefaultApi(object):
20541
19667
  local_var_params = locals()
20542
19668
 
20543
19669
  all_params = [
19670
+ 'start_date',
19671
+ 'end_date'
20544
19672
  ]
20545
19673
  all_params.extend(
20546
19674
  [
@@ -20555,16 +19683,28 @@ class DefaultApi(object):
20555
19683
  if key not in all_params:
20556
19684
  raise ApiTypeError(
20557
19685
  "Got an unexpected keyword argument '%s'"
20558
- " to method get_templatized_cluster_environments_api_v2_application_templates_templatized_get" % key
19686
+ " to method get_total_usage_api_v2_aggregated_instance_usage_get" % key
20559
19687
  )
20560
19688
  local_var_params[key] = val
20561
19689
  del local_var_params['kwargs']
19690
+ # verify the required parameter 'start_date' is set
19691
+ if self.api_client.client_side_validation and ('start_date' not in local_var_params or # noqa: E501
19692
+ local_var_params['start_date'] is None): # noqa: E501
19693
+ raise ApiValueError("Missing the required parameter `start_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
19694
+ # verify the required parameter 'end_date' is set
19695
+ if self.api_client.client_side_validation and ('end_date' not in local_var_params or # noqa: E501
19696
+ local_var_params['end_date'] is None): # noqa: E501
19697
+ raise ApiValueError("Missing the required parameter `end_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
20562
19698
 
20563
19699
  collection_formats = {}
20564
19700
 
20565
19701
  path_params = {}
20566
19702
 
20567
19703
  query_params = []
19704
+ if 'start_date' in local_var_params and local_var_params['start_date'] is not None: # noqa: E501
19705
+ query_params.append(('start_date', local_var_params['start_date'])) # noqa: E501
19706
+ if 'end_date' in local_var_params and local_var_params['end_date'] is not None: # noqa: E501
19707
+ query_params.append(('end_date', local_var_params['end_date'])) # noqa: E501
20568
19708
 
20569
19709
  header_params = {}
20570
19710
 
@@ -20580,14 +19720,14 @@ class DefaultApi(object):
20580
19720
  auth_settings = [] # noqa: E501
20581
19721
 
20582
19722
  return self.api_client.call_api(
20583
- '/api/v2/application_templates/templatized/', 'GET',
19723
+ '/api/v2/aggregated_instance_usage/', 'GET',
20584
19724
  path_params,
20585
19725
  query_params,
20586
19726
  header_params,
20587
19727
  body=body_params,
20588
19728
  post_params=form_params,
20589
19729
  files=local_var_files,
20590
- response_type='TemplatizeddecoratedapplicationtemplatesResponse', # noqa: E501
19730
+ response_type='AggregatedusageResponse', # noqa: E501
20591
19731
  auth_settings=auth_settings,
20592
19732
  async_req=local_var_params.get('async_req'),
20593
19733
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20595,17 +19735,21 @@ class DefaultApi(object):
20595
19735
  _request_timeout=local_var_params.get('_request_timeout'),
20596
19736
  collection_formats=collection_formats)
20597
19737
 
20598
- def get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get(self, cloud_id, **kwargs): # noqa: E501
20599
- """Get Templatized Compute Configs # noqa: E501
19738
+ def get_train_logs_download_api_v2_train_runs_logs_get(self, cluster_id, log_id, **kwargs): # noqa: E501
19739
+ """Get Train Logs Download # noqa: E501
20600
19740
 
20601
- Returns all templatized compute configurations for this cloud. # noqa: E501
19741
+ Fetches the serve controller logs of the cluster. 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
20602
19742
  This method makes a synchronous HTTP request by default. To make an
20603
19743
  asynchronous HTTP request, please pass async_req=True
20604
- >>> thread = api.get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get(cloud_id, async_req=True)
19744
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get(cluster_id, log_id, async_req=True)
20605
19745
  >>> result = thread.get()
20606
19746
 
20607
19747
  :param async_req bool: execute request asynchronously
20608
- :param str cloud_id: (required)
19748
+ :param str cluster_id: (required)
19749
+ :param str log_id: (required)
19750
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
19751
+ :param str next_page_token: Pagination token for getting newer logs.
19752
+ :param str previous_page_token: Pagination token for getting older logs.
20609
19753
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20610
19754
  be returned without reading/decoding response
20611
19755
  data. Default is True.
@@ -20613,259 +19757,20 @@ class DefaultApi(object):
20613
19757
  number provided, it will be total request
20614
19758
  timeout. It can also be a pair (tuple) of
20615
19759
  (connection, read) timeouts.
20616
- :return: TemplatizedcomputeconfigsResponse
19760
+ :return: LogdownloadresultResponse
20617
19761
  If the method is called asynchronously,
20618
19762
  returns the request thread.
20619
19763
  """
20620
19764
  kwargs['_return_http_data_only'] = True
20621
- return self.get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get_with_http_info(cloud_id, **kwargs) # noqa: E501
19765
+ return self.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, **kwargs) # noqa: E501
20622
19766
 
20623
- def get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
20624
- """Get Templatized Compute Configs # noqa: E501
19767
+ def get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(self, cluster_id, log_id, **kwargs): # noqa: E501
19768
+ """Get Train Logs Download # noqa: E501
20625
19769
 
20626
- Returns all templatized compute configurations for this cloud. # noqa: E501
19770
+ Fetches the serve controller logs of the cluster. 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
20627
19771
  This method makes a synchronous HTTP request by default. To make an
20628
19772
  asynchronous HTTP request, please pass async_req=True
20629
- >>> thread = api.get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get_with_http_info(cloud_id, async_req=True)
20630
- >>> result = thread.get()
20631
-
20632
- :param async_req bool: execute request asynchronously
20633
- :param str cloud_id: (required)
20634
- :param _return_http_data_only: response data without head status code
20635
- and headers
20636
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20637
- be returned without reading/decoding response
20638
- data. Default is True.
20639
- :param _request_timeout: timeout setting for this request. If one
20640
- number provided, it will be total request
20641
- timeout. It can also be a pair (tuple) of
20642
- (connection, read) timeouts.
20643
- :return: tuple(TemplatizedcomputeconfigsResponse, status_code(int), headers(HTTPHeaderDict))
20644
- If the method is called asynchronously,
20645
- returns the request thread.
20646
- """
20647
-
20648
- local_var_params = locals()
20649
-
20650
- all_params = [
20651
- 'cloud_id'
20652
- ]
20653
- all_params.extend(
20654
- [
20655
- 'async_req',
20656
- '_return_http_data_only',
20657
- '_preload_content',
20658
- '_request_timeout'
20659
- ]
20660
- )
20661
-
20662
- for key, val in six.iteritems(local_var_params['kwargs']):
20663
- if key not in all_params:
20664
- raise ApiTypeError(
20665
- "Got an unexpected keyword argument '%s'"
20666
- " to method get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get" % key
20667
- )
20668
- local_var_params[key] = val
20669
- del local_var_params['kwargs']
20670
- # verify the required parameter 'cloud_id' is set
20671
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
20672
- local_var_params['cloud_id'] is None): # noqa: E501
20673
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_templatized_compute_configs_api_v2_compute_templates_templatized_cloud_id_get`") # noqa: E501
20674
-
20675
- collection_formats = {}
20676
-
20677
- path_params = {}
20678
- if 'cloud_id' in local_var_params:
20679
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
20680
-
20681
- query_params = []
20682
-
20683
- header_params = {}
20684
-
20685
- form_params = []
20686
- local_var_files = {}
20687
-
20688
- body_params = None
20689
- # HTTP header `Accept`
20690
- header_params['Accept'] = self.api_client.select_header_accept(
20691
- ['application/json']) # noqa: E501
20692
-
20693
- # Authentication setting
20694
- auth_settings = [] # noqa: E501
20695
-
20696
- return self.api_client.call_api(
20697
- '/api/v2/compute_templates/templatized/{cloud_id}', 'GET',
20698
- path_params,
20699
- query_params,
20700
- header_params,
20701
- body=body_params,
20702
- post_params=form_params,
20703
- files=local_var_files,
20704
- response_type='TemplatizedcomputeconfigsResponse', # noqa: E501
20705
- auth_settings=auth_settings,
20706
- async_req=local_var_params.get('async_req'),
20707
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20708
- _preload_content=local_var_params.get('_preload_content', True),
20709
- _request_timeout=local_var_params.get('_request_timeout'),
20710
- collection_formats=collection_formats)
20711
-
20712
- def get_total_usage_api_v2_aggregated_instance_usage_get(self, start_date, end_date, **kwargs): # noqa: E501
20713
- """Get Total Usage # noqa: E501
20714
-
20715
- This method makes a synchronous HTTP request by default. To make an
20716
- asynchronous HTTP request, please pass async_req=True
20717
- >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get(start_date, end_date, async_req=True)
20718
- >>> result = thread.get()
20719
-
20720
- :param async_req bool: execute request asynchronously
20721
- :param date start_date: (required)
20722
- :param date end_date: (required)
20723
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20724
- be returned without reading/decoding response
20725
- data. Default is True.
20726
- :param _request_timeout: timeout setting for this request. If one
20727
- number provided, it will be total request
20728
- timeout. It can also be a pair (tuple) of
20729
- (connection, read) timeouts.
20730
- :return: AggregatedusageResponse
20731
- If the method is called asynchronously,
20732
- returns the request thread.
20733
- """
20734
- kwargs['_return_http_data_only'] = True
20735
- return self.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, **kwargs) # noqa: E501
20736
-
20737
- def get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(self, start_date, end_date, **kwargs): # noqa: E501
20738
- """Get Total Usage # noqa: E501
20739
-
20740
- This method makes a synchronous HTTP request by default. To make an
20741
- asynchronous HTTP request, please pass async_req=True
20742
- >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, async_req=True)
20743
- >>> result = thread.get()
20744
-
20745
- :param async_req bool: execute request asynchronously
20746
- :param date start_date: (required)
20747
- :param date end_date: (required)
20748
- :param _return_http_data_only: response data without head status code
20749
- and headers
20750
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20751
- be returned without reading/decoding response
20752
- data. Default is True.
20753
- :param _request_timeout: timeout setting for this request. If one
20754
- number provided, it will be total request
20755
- timeout. It can also be a pair (tuple) of
20756
- (connection, read) timeouts.
20757
- :return: tuple(AggregatedusageResponse, status_code(int), headers(HTTPHeaderDict))
20758
- If the method is called asynchronously,
20759
- returns the request thread.
20760
- """
20761
-
20762
- local_var_params = locals()
20763
-
20764
- all_params = [
20765
- 'start_date',
20766
- 'end_date'
20767
- ]
20768
- all_params.extend(
20769
- [
20770
- 'async_req',
20771
- '_return_http_data_only',
20772
- '_preload_content',
20773
- '_request_timeout'
20774
- ]
20775
- )
20776
-
20777
- for key, val in six.iteritems(local_var_params['kwargs']):
20778
- if key not in all_params:
20779
- raise ApiTypeError(
20780
- "Got an unexpected keyword argument '%s'"
20781
- " to method get_total_usage_api_v2_aggregated_instance_usage_get" % key
20782
- )
20783
- local_var_params[key] = val
20784
- del local_var_params['kwargs']
20785
- # verify the required parameter 'start_date' is set
20786
- if self.api_client.client_side_validation and ('start_date' not in local_var_params or # noqa: E501
20787
- local_var_params['start_date'] is None): # noqa: E501
20788
- raise ApiValueError("Missing the required parameter `start_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
20789
- # verify the required parameter 'end_date' is set
20790
- if self.api_client.client_side_validation and ('end_date' not in local_var_params or # noqa: E501
20791
- local_var_params['end_date'] is None): # noqa: E501
20792
- raise ApiValueError("Missing the required parameter `end_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
20793
-
20794
- collection_formats = {}
20795
-
20796
- path_params = {}
20797
-
20798
- query_params = []
20799
- if 'start_date' in local_var_params and local_var_params['start_date'] is not None: # noqa: E501
20800
- query_params.append(('start_date', local_var_params['start_date'])) # noqa: E501
20801
- if 'end_date' in local_var_params and local_var_params['end_date'] is not None: # noqa: E501
20802
- query_params.append(('end_date', local_var_params['end_date'])) # noqa: E501
20803
-
20804
- header_params = {}
20805
-
20806
- form_params = []
20807
- local_var_files = {}
20808
-
20809
- body_params = None
20810
- # HTTP header `Accept`
20811
- header_params['Accept'] = self.api_client.select_header_accept(
20812
- ['application/json']) # noqa: E501
20813
-
20814
- # Authentication setting
20815
- auth_settings = [] # noqa: E501
20816
-
20817
- return self.api_client.call_api(
20818
- '/api/v2/aggregated_instance_usage/', 'GET',
20819
- path_params,
20820
- query_params,
20821
- header_params,
20822
- body=body_params,
20823
- post_params=form_params,
20824
- files=local_var_files,
20825
- response_type='AggregatedusageResponse', # noqa: E501
20826
- auth_settings=auth_settings,
20827
- async_req=local_var_params.get('async_req'),
20828
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20829
- _preload_content=local_var_params.get('_preload_content', True),
20830
- _request_timeout=local_var_params.get('_request_timeout'),
20831
- collection_formats=collection_formats)
20832
-
20833
- def get_train_logs_download_api_v2_train_runs_logs_get(self, cluster_id, log_id, **kwargs): # noqa: E501
20834
- """Get Train Logs Download # noqa: E501
20835
-
20836
- Fetches the serve controller logs of the cluster. 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
20837
- This method makes a synchronous HTTP request by default. To make an
20838
- asynchronous HTTP request, please pass async_req=True
20839
- >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get(cluster_id, log_id, async_req=True)
20840
- >>> result = thread.get()
20841
-
20842
- :param async_req bool: execute request asynchronously
20843
- :param str cluster_id: (required)
20844
- :param str log_id: (required)
20845
- :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
20846
- :param str next_page_token: Pagination token for getting newer logs.
20847
- :param str previous_page_token: Pagination token for getting older logs.
20848
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20849
- be returned without reading/decoding response
20850
- data. Default is True.
20851
- :param _request_timeout: timeout setting for this request. If one
20852
- number provided, it will be total request
20853
- timeout. It can also be a pair (tuple) of
20854
- (connection, read) timeouts.
20855
- :return: LogdownloadresultResponse
20856
- If the method is called asynchronously,
20857
- returns the request thread.
20858
- """
20859
- kwargs['_return_http_data_only'] = True
20860
- return self.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, **kwargs) # noqa: E501
20861
-
20862
- def get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(self, cluster_id, log_id, **kwargs): # noqa: E501
20863
- """Get Train Logs Download # noqa: E501
20864
-
20865
- Fetches the serve controller logs of the cluster. 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
20866
- This method makes a synchronous HTTP request by default. To make an
20867
- asynchronous HTTP request, please pass async_req=True
20868
- >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, async_req=True)
19773
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, async_req=True)
20869
19774
  >>> result = thread.get()
20870
19775
 
20871
19776
  :param async_req bool: execute request asynchronously
@@ -25810,13 +24715,13 @@ class DefaultApi(object):
25810
24715
  _request_timeout=local_var_params.get('_request_timeout'),
25811
24716
  collection_formats=collection_formats)
25812
24717
 
25813
- def list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get(self, project_id, **kwargs): # noqa: E501
25814
- """List Organization Project Collaborators # noqa: E501
24718
+ def list_project_collaborators_api_v2_projects_project_id_collaborators_users_get(self, project_id, **kwargs): # noqa: E501
24719
+ """List Project Collaborators # noqa: E501
25815
24720
 
25816
- Get a list of all organization with permission for a given project # noqa: E501
24721
+ Get a list of all collaborators for a given project # noqa: E501
25817
24722
  This method makes a synchronous HTTP request by default. To make an
25818
24723
  asynchronous HTTP request, please pass async_req=True
25819
- >>> thread = api.list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get(project_id, async_req=True)
24724
+ >>> thread = api.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get(project_id, async_req=True)
25820
24725
  >>> result = thread.get()
25821
24726
 
25822
24727
  :param async_req bool: execute request asynchronously
@@ -25830,20 +24735,20 @@ class DefaultApi(object):
25830
24735
  number provided, it will be total request
25831
24736
  timeout. It can also be a pair (tuple) of
25832
24737
  (connection, read) timeouts.
25833
- :return: OrganizationprojectcollaboratorListResponse
24738
+ :return: ProjectcollaboratorListResponse
25834
24739
  If the method is called asynchronously,
25835
24740
  returns the request thread.
25836
24741
  """
25837
24742
  kwargs['_return_http_data_only'] = True
25838
- return self.list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get_with_http_info(project_id, **kwargs) # noqa: E501
24743
+ return self.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(project_id, **kwargs) # noqa: E501
25839
24744
 
25840
- def list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get_with_http_info(self, project_id, **kwargs): # noqa: E501
25841
- """List Organization Project Collaborators # noqa: E501
24745
+ def list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(self, project_id, **kwargs): # noqa: E501
24746
+ """List Project Collaborators # noqa: E501
25842
24747
 
25843
- Get a list of all organization with permission for a given project # noqa: E501
24748
+ Get a list of all collaborators for a given project # noqa: E501
25844
24749
  This method makes a synchronous HTTP request by default. To make an
25845
24750
  asynchronous HTTP request, please pass async_req=True
25846
- >>> thread = api.list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get_with_http_info(project_id, async_req=True)
24751
+ >>> thread = api.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(project_id, async_req=True)
25847
24752
  >>> result = thread.get()
25848
24753
 
25849
24754
  :param async_req bool: execute request asynchronously
@@ -25859,7 +24764,7 @@ class DefaultApi(object):
25859
24764
  number provided, it will be total request
25860
24765
  timeout. It can also be a pair (tuple) of
25861
24766
  (connection, read) timeouts.
25862
- :return: tuple(OrganizationprojectcollaboratorListResponse, status_code(int), headers(HTTPHeaderDict))
24767
+ :return: tuple(ProjectcollaboratorListResponse, status_code(int), headers(HTTPHeaderDict))
25863
24768
  If the method is called asynchronously,
25864
24769
  returns the request thread.
25865
24770
  """
@@ -25884,19 +24789,19 @@ class DefaultApi(object):
25884
24789
  if key not in all_params:
25885
24790
  raise ApiTypeError(
25886
24791
  "Got an unexpected keyword argument '%s'"
25887
- " to method list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get" % key
24792
+ " to method list_project_collaborators_api_v2_projects_project_id_collaborators_users_get" % key
25888
24793
  )
25889
24794
  local_var_params[key] = val
25890
24795
  del local_var_params['kwargs']
25891
24796
  # verify the required parameter 'project_id' is set
25892
24797
  if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
25893
24798
  local_var_params['project_id'] is None): # noqa: E501
25894
- raise ApiValueError("Missing the required parameter `project_id` when calling `list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get`") # noqa: E501
24799
+ raise ApiValueError("Missing the required parameter `project_id` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`") # noqa: E501
25895
24800
 
25896
24801
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
25897
- raise ApiValueError("Invalid value for parameter `count` when calling `list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get`, must be a value less than or equal to `50`") # noqa: E501
24802
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`, must be a value less than or equal to `50`") # noqa: E501
25898
24803
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
25899
- raise ApiValueError("Invalid value for parameter `count` when calling `list_organization_project_collaborators_api_v2_projects_project_id_collaborators_organizations_get`, must be a value greater than or equal to `0`") # noqa: E501
24804
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`, must be a value greater than or equal to `0`") # noqa: E501
25900
24805
  collection_formats = {}
25901
24806
 
25902
24807
  path_params = {}
@@ -25923,14 +24828,14 @@ class DefaultApi(object):
25923
24828
  auth_settings = [] # noqa: E501
25924
24829
 
25925
24830
  return self.api_client.call_api(
25926
- '/api/v2/projects/{project_id}/collaborators/organizations', 'GET',
24831
+ '/api/v2/projects/{project_id}/collaborators/users', 'GET',
25927
24832
  path_params,
25928
24833
  query_params,
25929
24834
  header_params,
25930
24835
  body=body_params,
25931
24836
  post_params=form_params,
25932
24837
  files=local_var_files,
25933
- response_type='OrganizationprojectcollaboratorListResponse', # noqa: E501
24838
+ response_type='ProjectcollaboratorListResponse', # noqa: E501
25934
24839
  auth_settings=auth_settings,
25935
24840
  async_req=local_var_params.get('async_req'),
25936
24841
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -25938,140 +24843,12 @@ class DefaultApi(object):
25938
24843
  _request_timeout=local_var_params.get('_request_timeout'),
25939
24844
  collection_formats=collection_formats)
25940
24845
 
25941
- def list_project_collaborators_api_v2_projects_project_id_collaborators_users_get(self, project_id, **kwargs): # noqa: E501
25942
- """List Project Collaborators # noqa: E501
24846
+ def list_projects_api_v2_projects_get(self, **kwargs): # noqa: E501
24847
+ """List Projects # noqa: E501
25943
24848
 
25944
- Get a list of all collaborators for a given project # noqa: E501
25945
24849
  This method makes a synchronous HTTP request by default. To make an
25946
24850
  asynchronous HTTP request, please pass async_req=True
25947
- >>> thread = api.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get(project_id, async_req=True)
25948
- >>> result = thread.get()
25949
-
25950
- :param async_req bool: execute request asynchronously
25951
- :param str project_id: (required)
25952
- :param str paging_token:
25953
- :param int count:
25954
- :param _preload_content: if False, the urllib3.HTTPResponse object will
25955
- be returned without reading/decoding response
25956
- data. Default is True.
25957
- :param _request_timeout: timeout setting for this request. If one
25958
- number provided, it will be total request
25959
- timeout. It can also be a pair (tuple) of
25960
- (connection, read) timeouts.
25961
- :return: ProjectcollaboratorListResponse
25962
- If the method is called asynchronously,
25963
- returns the request thread.
25964
- """
25965
- kwargs['_return_http_data_only'] = True
25966
- return self.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(project_id, **kwargs) # noqa: E501
25967
-
25968
- def list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(self, project_id, **kwargs): # noqa: E501
25969
- """List Project Collaborators # noqa: E501
25970
-
25971
- Get a list of all collaborators for a given project # noqa: E501
25972
- This method makes a synchronous HTTP request by default. To make an
25973
- asynchronous HTTP request, please pass async_req=True
25974
- >>> thread = api.list_project_collaborators_api_v2_projects_project_id_collaborators_users_get_with_http_info(project_id, async_req=True)
25975
- >>> result = thread.get()
25976
-
25977
- :param async_req bool: execute request asynchronously
25978
- :param str project_id: (required)
25979
- :param str paging_token:
25980
- :param int count:
25981
- :param _return_http_data_only: response data without head status code
25982
- and headers
25983
- :param _preload_content: if False, the urllib3.HTTPResponse object will
25984
- be returned without reading/decoding response
25985
- data. Default is True.
25986
- :param _request_timeout: timeout setting for this request. If one
25987
- number provided, it will be total request
25988
- timeout. It can also be a pair (tuple) of
25989
- (connection, read) timeouts.
25990
- :return: tuple(ProjectcollaboratorListResponse, status_code(int), headers(HTTPHeaderDict))
25991
- If the method is called asynchronously,
25992
- returns the request thread.
25993
- """
25994
-
25995
- local_var_params = locals()
25996
-
25997
- all_params = [
25998
- 'project_id',
25999
- 'paging_token',
26000
- 'count'
26001
- ]
26002
- all_params.extend(
26003
- [
26004
- 'async_req',
26005
- '_return_http_data_only',
26006
- '_preload_content',
26007
- '_request_timeout'
26008
- ]
26009
- )
26010
-
26011
- for key, val in six.iteritems(local_var_params['kwargs']):
26012
- if key not in all_params:
26013
- raise ApiTypeError(
26014
- "Got an unexpected keyword argument '%s'"
26015
- " to method list_project_collaborators_api_v2_projects_project_id_collaborators_users_get" % key
26016
- )
26017
- local_var_params[key] = val
26018
- del local_var_params['kwargs']
26019
- # verify the required parameter 'project_id' is set
26020
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
26021
- local_var_params['project_id'] is None): # noqa: E501
26022
- raise ApiValueError("Missing the required parameter `project_id` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`") # noqa: E501
26023
-
26024
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
26025
- raise ApiValueError("Invalid value for parameter `count` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`, must be a value less than or equal to `50`") # noqa: E501
26026
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
26027
- raise ApiValueError("Invalid value for parameter `count` when calling `list_project_collaborators_api_v2_projects_project_id_collaborators_users_get`, must be a value greater than or equal to `0`") # noqa: E501
26028
- collection_formats = {}
26029
-
26030
- path_params = {}
26031
- if 'project_id' in local_var_params:
26032
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
26033
-
26034
- query_params = []
26035
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
26036
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
26037
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
26038
- query_params.append(('count', local_var_params['count'])) # noqa: E501
26039
-
26040
- header_params = {}
26041
-
26042
- form_params = []
26043
- local_var_files = {}
26044
-
26045
- body_params = None
26046
- # HTTP header `Accept`
26047
- header_params['Accept'] = self.api_client.select_header_accept(
26048
- ['application/json']) # noqa: E501
26049
-
26050
- # Authentication setting
26051
- auth_settings = [] # noqa: E501
26052
-
26053
- return self.api_client.call_api(
26054
- '/api/v2/projects/{project_id}/collaborators/users', 'GET',
26055
- path_params,
26056
- query_params,
26057
- header_params,
26058
- body=body_params,
26059
- post_params=form_params,
26060
- files=local_var_files,
26061
- response_type='ProjectcollaboratorListResponse', # noqa: E501
26062
- auth_settings=auth_settings,
26063
- async_req=local_var_params.get('async_req'),
26064
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
26065
- _preload_content=local_var_params.get('_preload_content', True),
26066
- _request_timeout=local_var_params.get('_request_timeout'),
26067
- collection_formats=collection_formats)
26068
-
26069
- def list_projects_api_v2_projects_get(self, **kwargs): # noqa: E501
26070
- """List Projects # noqa: E501
26071
-
26072
- This method makes a synchronous HTTP request by default. To make an
26073
- asynchronous HTTP request, please pass async_req=True
26074
- >>> thread = api.list_projects_api_v2_projects_get(async_req=True)
24851
+ >>> thread = api.list_projects_api_v2_projects_get(async_req=True)
26075
24852
  >>> result = thread.get()
26076
24853
 
26077
24854
  :param async_req bool: execute request asynchronously
@@ -26858,297 +25635,21 @@ class DefaultApi(object):
26858
25635
 
26859
25636
  body_params = None
26860
25637
  # HTTP header `Accept`
26861
- header_params['Accept'] = self.api_client.select_header_accept(
26862
- ['application/json']) # noqa: E501
26863
-
26864
- # Authentication setting
26865
- auth_settings = [] # noqa: E501
26866
-
26867
- return self.api_client.call_api(
26868
- '/api/v2/experimental_workspaces/templates', 'GET',
26869
- path_params,
26870
- query_params,
26871
- header_params,
26872
- body=body_params,
26873
- post_params=form_params,
26874
- files=local_var_files,
26875
- response_type='WorkspacetemplateListResponse', # noqa: E501
26876
- auth_settings=auth_settings,
26877
- async_req=local_var_params.get('async_req'),
26878
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
26879
- _preload_content=local_var_params.get('_preload_content', True),
26880
- _request_timeout=local_var_params.get('_request_timeout'),
26881
- collection_formats=collection_formats)
26882
-
26883
- def list_workspaces_api_v2_experimental_workspaces_get(self, **kwargs): # noqa: E501
26884
- """List Workspaces # noqa: E501
26885
-
26886
- Lists all Workspace the user has access to # noqa: E501
26887
- This method makes a synchronous HTTP request by default. To make an
26888
- asynchronous HTTP request, please pass async_req=True
26889
- >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get(async_req=True)
26890
- >>> result = thread.get()
26891
-
26892
- :param async_req bool: execute request asynchronously
26893
- :param str name: Search for workspace with a name that equals the provided value
26894
- :param str name_contains: Search for workspace with a name that contains the provided value
26895
- :param str creator_id: List workspaces created by a given user
26896
- :param str project_id: Search for workspace with project_id
26897
- :param str cloud_id: Search for workspace with cloud_id
26898
- :param list[SessionState] state_filter: A list of session states to filter by
26899
- :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
26900
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
26901
- :param str paging_token:
26902
- :param int count:
26903
- :param _preload_content: if False, the urllib3.HTTPResponse object will
26904
- be returned without reading/decoding response
26905
- data. Default is True.
26906
- :param _request_timeout: timeout setting for this request. If one
26907
- number provided, it will be total request
26908
- timeout. It can also be a pair (tuple) of
26909
- (connection, read) timeouts.
26910
- :return: ExperimentalworkspaceListResponse
26911
- If the method is called asynchronously,
26912
- returns the request thread.
26913
- """
26914
- kwargs['_return_http_data_only'] = True
26915
- return self.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(**kwargs) # noqa: E501
26916
-
26917
- def list_workspaces_api_v2_experimental_workspaces_get_with_http_info(self, **kwargs): # noqa: E501
26918
- """List Workspaces # noqa: E501
26919
-
26920
- Lists all Workspace the user has access to # noqa: E501
26921
- This method makes a synchronous HTTP request by default. To make an
26922
- asynchronous HTTP request, please pass async_req=True
26923
- >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(async_req=True)
26924
- >>> result = thread.get()
26925
-
26926
- :param async_req bool: execute request asynchronously
26927
- :param str name: Search for workspace with a name that equals the provided value
26928
- :param str name_contains: Search for workspace with a name that contains the provided value
26929
- :param str creator_id: List workspaces created by a given user
26930
- :param str project_id: Search for workspace with project_id
26931
- :param str cloud_id: Search for workspace with cloud_id
26932
- :param list[SessionState] state_filter: A list of session states to filter by
26933
- :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
26934
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
26935
- :param str paging_token:
26936
- :param int count:
26937
- :param _return_http_data_only: response data without head status code
26938
- and headers
26939
- :param _preload_content: if False, the urllib3.HTTPResponse object will
26940
- be returned without reading/decoding response
26941
- data. Default is True.
26942
- :param _request_timeout: timeout setting for this request. If one
26943
- number provided, it will be total request
26944
- timeout. It can also be a pair (tuple) of
26945
- (connection, read) timeouts.
26946
- :return: tuple(ExperimentalworkspaceListResponse, status_code(int), headers(HTTPHeaderDict))
26947
- If the method is called asynchronously,
26948
- returns the request thread.
26949
- """
26950
-
26951
- local_var_params = locals()
26952
-
26953
- all_params = [
26954
- 'name',
26955
- 'name_contains',
26956
- 'creator_id',
26957
- 'project_id',
26958
- 'cloud_id',
26959
- 'state_filter',
26960
- 'sort_field',
26961
- 'sort_order',
26962
- 'paging_token',
26963
- 'count'
26964
- ]
26965
- all_params.extend(
26966
- [
26967
- 'async_req',
26968
- '_return_http_data_only',
26969
- '_preload_content',
26970
- '_request_timeout'
26971
- ]
26972
- )
26973
-
26974
- for key, val in six.iteritems(local_var_params['kwargs']):
26975
- if key not in all_params:
26976
- raise ApiTypeError(
26977
- "Got an unexpected keyword argument '%s'"
26978
- " to method list_workspaces_api_v2_experimental_workspaces_get" % key
26979
- )
26980
- local_var_params[key] = val
26981
- del local_var_params['kwargs']
26982
-
26983
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
26984
- raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value less than or equal to `50`") # noqa: E501
26985
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
26986
- raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value greater than or equal to `0`") # noqa: E501
26987
- collection_formats = {}
26988
-
26989
- path_params = {}
26990
-
26991
- query_params = []
26992
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
26993
- query_params.append(('name', local_var_params['name'])) # noqa: E501
26994
- if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
26995
- query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
26996
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
26997
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
26998
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
26999
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
27000
- if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
27001
- query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
27002
- if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
27003
- query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
27004
- collection_formats['state_filter'] = 'multi' # noqa: E501
27005
- if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
27006
- query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
27007
- if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
27008
- query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
27009
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
27010
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
27011
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
27012
- query_params.append(('count', local_var_params['count'])) # noqa: E501
27013
-
27014
- header_params = {}
27015
-
27016
- form_params = []
27017
- local_var_files = {}
27018
-
27019
- body_params = None
27020
- # HTTP header `Accept`
27021
- header_params['Accept'] = self.api_client.select_header_accept(
27022
- ['application/json']) # noqa: E501
27023
-
27024
- # Authentication setting
27025
- auth_settings = [] # noqa: E501
27026
-
27027
- return self.api_client.call_api(
27028
- '/api/v2/experimental_workspaces/', 'GET',
27029
- path_params,
27030
- query_params,
27031
- header_params,
27032
- body=body_params,
27033
- post_params=form_params,
27034
- files=local_var_files,
27035
- response_type='ExperimentalworkspaceListResponse', # noqa: E501
27036
- auth_settings=auth_settings,
27037
- async_req=local_var_params.get('async_req'),
27038
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
27039
- _preload_content=local_var_params.get('_preload_content', True),
27040
- _request_timeout=local_var_params.get('_request_timeout'),
27041
- collection_formats=collection_formats)
27042
-
27043
- def login_user_api_v2_users_login_post(self, login_user_params, **kwargs): # noqa: E501
27044
- """Login User # noqa: E501
27045
-
27046
- This method makes a synchronous HTTP request by default. To make an
27047
- asynchronous HTTP request, please pass async_req=True
27048
- >>> thread = api.login_user_api_v2_users_login_post(login_user_params, async_req=True)
27049
- >>> result = thread.get()
27050
-
27051
- :param async_req bool: execute request asynchronously
27052
- :param LoginUserParams login_user_params: (required)
27053
- :param _preload_content: if False, the urllib3.HTTPResponse object will
27054
- be returned without reading/decoding response
27055
- data. Default is True.
27056
- :param _request_timeout: timeout setting for this request. If one
27057
- number provided, it will be total request
27058
- timeout. It can also be a pair (tuple) of
27059
- (connection, read) timeouts.
27060
- :return: None
27061
- If the method is called asynchronously,
27062
- returns the request thread.
27063
- """
27064
- kwargs['_return_http_data_only'] = True
27065
- return self.login_user_api_v2_users_login_post_with_http_info(login_user_params, **kwargs) # noqa: E501
27066
-
27067
- def login_user_api_v2_users_login_post_with_http_info(self, login_user_params, **kwargs): # noqa: E501
27068
- """Login User # noqa: E501
27069
-
27070
- This method makes a synchronous HTTP request by default. To make an
27071
- asynchronous HTTP request, please pass async_req=True
27072
- >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
27073
- >>> result = thread.get()
27074
-
27075
- :param async_req bool: execute request asynchronously
27076
- :param LoginUserParams login_user_params: (required)
27077
- :param _return_http_data_only: response data without head status code
27078
- and headers
27079
- :param _preload_content: if False, the urllib3.HTTPResponse object will
27080
- be returned without reading/decoding response
27081
- data. Default is True.
27082
- :param _request_timeout: timeout setting for this request. If one
27083
- number provided, it will be total request
27084
- timeout. It can also be a pair (tuple) of
27085
- (connection, read) timeouts.
27086
- :return: None
27087
- If the method is called asynchronously,
27088
- returns the request thread.
27089
- """
27090
-
27091
- local_var_params = locals()
27092
-
27093
- all_params = [
27094
- 'login_user_params'
27095
- ]
27096
- all_params.extend(
27097
- [
27098
- 'async_req',
27099
- '_return_http_data_only',
27100
- '_preload_content',
27101
- '_request_timeout'
27102
- ]
27103
- )
27104
-
27105
- for key, val in six.iteritems(local_var_params['kwargs']):
27106
- if key not in all_params:
27107
- raise ApiTypeError(
27108
- "Got an unexpected keyword argument '%s'"
27109
- " to method login_user_api_v2_users_login_post" % key
27110
- )
27111
- local_var_params[key] = val
27112
- del local_var_params['kwargs']
27113
- # verify the required parameter 'login_user_params' is set
27114
- if self.api_client.client_side_validation and ('login_user_params' not in local_var_params or # noqa: E501
27115
- local_var_params['login_user_params'] is None): # noqa: E501
27116
- raise ApiValueError("Missing the required parameter `login_user_params` when calling `login_user_api_v2_users_login_post`") # noqa: E501
27117
-
27118
- collection_formats = {}
27119
-
27120
- path_params = {}
27121
-
27122
- query_params = []
27123
-
27124
- header_params = {}
27125
-
27126
- form_params = []
27127
- local_var_files = {}
27128
-
27129
- body_params = None
27130
- if 'login_user_params' in local_var_params:
27131
- body_params = local_var_params['login_user_params']
27132
- # HTTP header `Accept`
27133
- header_params['Accept'] = self.api_client.select_header_accept(
27134
- ['application/json']) # noqa: E501
27135
-
27136
- # HTTP header `Content-Type`
27137
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
25638
+ header_params['Accept'] = self.api_client.select_header_accept(
27138
25639
  ['application/json']) # noqa: E501
27139
25640
 
27140
25641
  # Authentication setting
27141
25642
  auth_settings = [] # noqa: E501
27142
25643
 
27143
25644
  return self.api_client.call_api(
27144
- '/api/v2/users/login', 'POST',
25645
+ '/api/v2/experimental_workspaces/templates', 'GET',
27145
25646
  path_params,
27146
25647
  query_params,
27147
25648
  header_params,
27148
25649
  body=body_params,
27149
25650
  post_params=form_params,
27150
25651
  files=local_var_files,
27151
- response_type=None, # noqa: E501
25652
+ response_type='WorkspacetemplateListResponse', # noqa: E501
27152
25653
  auth_settings=auth_settings,
27153
25654
  async_req=local_var_params.get('async_req'),
27154
25655
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -27156,16 +25657,26 @@ class DefaultApi(object):
27156
25657
  _request_timeout=local_var_params.get('_request_timeout'),
27157
25658
  collection_formats=collection_formats)
27158
25659
 
27159
- def logout_user_api_v2_users_logout_post(self, **kwargs): # noqa: E501
27160
- """Logout User # noqa: E501
25660
+ def list_workspaces_api_v2_experimental_workspaces_get(self, **kwargs): # noqa: E501
25661
+ """List Workspaces # noqa: E501
27161
25662
 
27162
- Log a user out. # noqa: E501
25663
+ Lists all Workspace the user has access to # noqa: E501
27163
25664
  This method makes a synchronous HTTP request by default. To make an
27164
25665
  asynchronous HTTP request, please pass async_req=True
27165
- >>> thread = api.logout_user_api_v2_users_logout_post(async_req=True)
25666
+ >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get(async_req=True)
27166
25667
  >>> result = thread.get()
27167
25668
 
27168
25669
  :param async_req bool: execute request asynchronously
25670
+ :param str name: Search for workspace with a name that equals the provided value
25671
+ :param str name_contains: Search for workspace with a name that contains the provided value
25672
+ :param str creator_id: List workspaces created by a given user
25673
+ :param str project_id: Search for workspace with project_id
25674
+ :param str cloud_id: Search for workspace with cloud_id
25675
+ :param list[SessionState] state_filter: A list of session states to filter by
25676
+ :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
25677
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
25678
+ :param str paging_token:
25679
+ :param int count:
27169
25680
  :param _preload_content: if False, the urllib3.HTTPResponse object will
27170
25681
  be returned without reading/decoding response
27171
25682
  data. Default is True.
@@ -27173,23 +25684,33 @@ class DefaultApi(object):
27173
25684
  number provided, it will be total request
27174
25685
  timeout. It can also be a pair (tuple) of
27175
25686
  (connection, read) timeouts.
27176
- :return: None
25687
+ :return: ExperimentalworkspaceListResponse
27177
25688
  If the method is called asynchronously,
27178
25689
  returns the request thread.
27179
25690
  """
27180
25691
  kwargs['_return_http_data_only'] = True
27181
- return self.logout_user_api_v2_users_logout_post_with_http_info(**kwargs) # noqa: E501
25692
+ return self.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(**kwargs) # noqa: E501
27182
25693
 
27183
- def logout_user_api_v2_users_logout_post_with_http_info(self, **kwargs): # noqa: E501
27184
- """Logout User # noqa: E501
25694
+ def list_workspaces_api_v2_experimental_workspaces_get_with_http_info(self, **kwargs): # noqa: E501
25695
+ """List Workspaces # noqa: E501
27185
25696
 
27186
- Log a user out. # noqa: E501
25697
+ Lists all Workspace the user has access to # noqa: E501
27187
25698
  This method makes a synchronous HTTP request by default. To make an
27188
25699
  asynchronous HTTP request, please pass async_req=True
27189
- >>> thread = api.logout_user_api_v2_users_logout_post_with_http_info(async_req=True)
25700
+ >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(async_req=True)
27190
25701
  >>> result = thread.get()
27191
25702
 
27192
25703
  :param async_req bool: execute request asynchronously
25704
+ :param str name: Search for workspace with a name that equals the provided value
25705
+ :param str name_contains: Search for workspace with a name that contains the provided value
25706
+ :param str creator_id: List workspaces created by a given user
25707
+ :param str project_id: Search for workspace with project_id
25708
+ :param str cloud_id: Search for workspace with cloud_id
25709
+ :param list[SessionState] state_filter: A list of session states to filter by
25710
+ :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
25711
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
25712
+ :param str paging_token:
25713
+ :param int count:
27193
25714
  :param _return_http_data_only: response data without head status code
27194
25715
  and headers
27195
25716
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -27199,7 +25720,7 @@ class DefaultApi(object):
27199
25720
  number provided, it will be total request
27200
25721
  timeout. It can also be a pair (tuple) of
27201
25722
  (connection, read) timeouts.
27202
- :return: None
25723
+ :return: tuple(ExperimentalworkspaceListResponse, status_code(int), headers(HTTPHeaderDict))
27203
25724
  If the method is called asynchronously,
27204
25725
  returns the request thread.
27205
25726
  """
@@ -27207,6 +25728,16 @@ class DefaultApi(object):
27207
25728
  local_var_params = locals()
27208
25729
 
27209
25730
  all_params = [
25731
+ 'name',
25732
+ 'name_contains',
25733
+ 'creator_id',
25734
+ 'project_id',
25735
+ 'cloud_id',
25736
+ 'state_filter',
25737
+ 'sort_field',
25738
+ 'sort_order',
25739
+ 'paging_token',
25740
+ 'count'
27210
25741
  ]
27211
25742
  all_params.extend(
27212
25743
  [
@@ -27221,16 +25752,41 @@ class DefaultApi(object):
27221
25752
  if key not in all_params:
27222
25753
  raise ApiTypeError(
27223
25754
  "Got an unexpected keyword argument '%s'"
27224
- " to method logout_user_api_v2_users_logout_post" % key
25755
+ " to method list_workspaces_api_v2_experimental_workspaces_get" % key
27225
25756
  )
27226
25757
  local_var_params[key] = val
27227
25758
  del local_var_params['kwargs']
27228
25759
 
25760
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
25761
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value less than or equal to `50`") # noqa: E501
25762
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
25763
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value greater than or equal to `0`") # noqa: E501
27229
25764
  collection_formats = {}
27230
25765
 
27231
25766
  path_params = {}
27232
25767
 
27233
25768
  query_params = []
25769
+ if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
25770
+ query_params.append(('name', local_var_params['name'])) # noqa: E501
25771
+ if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
25772
+ query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
25773
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
25774
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
25775
+ if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
25776
+ query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
25777
+ if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
25778
+ query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
25779
+ if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
25780
+ query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
25781
+ collection_formats['state_filter'] = 'multi' # noqa: E501
25782
+ if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
25783
+ query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
25784
+ if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
25785
+ query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
25786
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
25787
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
25788
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
25789
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
27234
25790
 
27235
25791
  header_params = {}
27236
25792
 
@@ -27238,18 +25794,22 @@ class DefaultApi(object):
27238
25794
  local_var_files = {}
27239
25795
 
27240
25796
  body_params = None
25797
+ # HTTP header `Accept`
25798
+ header_params['Accept'] = self.api_client.select_header_accept(
25799
+ ['application/json']) # noqa: E501
25800
+
27241
25801
  # Authentication setting
27242
25802
  auth_settings = [] # noqa: E501
27243
25803
 
27244
25804
  return self.api_client.call_api(
27245
- '/api/v2/users/logout', 'POST',
25805
+ '/api/v2/experimental_workspaces/', 'GET',
27246
25806
  path_params,
27247
25807
  query_params,
27248
25808
  header_params,
27249
25809
  body=body_params,
27250
25810
  post_params=form_params,
27251
25811
  files=local_var_files,
27252
- response_type=None, # noqa: E501
25812
+ response_type='ExperimentalworkspaceListResponse', # noqa: E501
27253
25813
  auth_settings=auth_settings,
27254
25814
  async_req=local_var_params.get('async_req'),
27255
25815
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -27257,18 +25817,16 @@ class DefaultApi(object):
27257
25817
  _request_timeout=local_var_params.get('_request_timeout'),
27258
25818
  collection_formats=collection_formats)
27259
25819
 
27260
- def patch_project_api_v2_projects_project_id_patch(self, project_id, json_patch_operation, **kwargs): # noqa: E501
27261
- """Patch Project # noqa: E501
25820
+ def login_user_api_v2_users_login_post(self, login_user_params, **kwargs): # noqa: E501
25821
+ """Login User # noqa: E501
27262
25822
 
27263
- Updates a Project. Only the description field can be modified. # noqa: E501
27264
25823
  This method makes a synchronous HTTP request by default. To make an
27265
25824
  asynchronous HTTP request, please pass async_req=True
27266
- >>> thread = api.patch_project_api_v2_projects_project_id_patch(project_id, json_patch_operation, async_req=True)
25825
+ >>> thread = api.login_user_api_v2_users_login_post(login_user_params, async_req=True)
27267
25826
  >>> result = thread.get()
27268
25827
 
27269
25828
  :param async_req bool: execute request asynchronously
27270
- :param str project_id: (required)
27271
- :param list[JsonPatchOperation] json_patch_operation: (required)
25829
+ :param LoginUserParams login_user_params: (required)
27272
25830
  :param _preload_content: if False, the urllib3.HTTPResponse object will
27273
25831
  be returned without reading/decoding response
27274
25832
  data. Default is True.
@@ -27281,20 +25839,18 @@ class DefaultApi(object):
27281
25839
  returns the request thread.
27282
25840
  """
27283
25841
  kwargs['_return_http_data_only'] = True
27284
- return self.patch_project_api_v2_projects_project_id_patch_with_http_info(project_id, json_patch_operation, **kwargs) # noqa: E501
25842
+ return self.login_user_api_v2_users_login_post_with_http_info(login_user_params, **kwargs) # noqa: E501
27285
25843
 
27286
- def patch_project_api_v2_projects_project_id_patch_with_http_info(self, project_id, json_patch_operation, **kwargs): # noqa: E501
27287
- """Patch Project # noqa: E501
25844
+ def login_user_api_v2_users_login_post_with_http_info(self, login_user_params, **kwargs): # noqa: E501
25845
+ """Login User # noqa: E501
27288
25846
 
27289
- Updates a Project. Only the description field can be modified. # noqa: E501
27290
25847
  This method makes a synchronous HTTP request by default. To make an
27291
25848
  asynchronous HTTP request, please pass async_req=True
27292
- >>> thread = api.patch_project_api_v2_projects_project_id_patch_with_http_info(project_id, json_patch_operation, async_req=True)
25849
+ >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
27293
25850
  >>> result = thread.get()
27294
25851
 
27295
25852
  :param async_req bool: execute request asynchronously
27296
- :param str project_id: (required)
27297
- :param list[JsonPatchOperation] json_patch_operation: (required)
25853
+ :param LoginUserParams login_user_params: (required)
27298
25854
  :param _return_http_data_only: response data without head status code
27299
25855
  and headers
27300
25856
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -27312,8 +25868,7 @@ class DefaultApi(object):
27312
25868
  local_var_params = locals()
27313
25869
 
27314
25870
  all_params = [
27315
- 'project_id',
27316
- 'json_patch_operation'
25871
+ 'login_user_params'
27317
25872
  ]
27318
25873
  all_params.extend(
27319
25874
  [
@@ -27328,24 +25883,18 @@ class DefaultApi(object):
27328
25883
  if key not in all_params:
27329
25884
  raise ApiTypeError(
27330
25885
  "Got an unexpected keyword argument '%s'"
27331
- " to method patch_project_api_v2_projects_project_id_patch" % key
25886
+ " to method login_user_api_v2_users_login_post" % key
27332
25887
  )
27333
25888
  local_var_params[key] = val
27334
25889
  del local_var_params['kwargs']
27335
- # verify the required parameter 'project_id' is set
27336
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
27337
- local_var_params['project_id'] is None): # noqa: E501
27338
- raise ApiValueError("Missing the required parameter `project_id` when calling `patch_project_api_v2_projects_project_id_patch`") # noqa: E501
27339
- # verify the required parameter 'json_patch_operation' is set
27340
- if self.api_client.client_side_validation and ('json_patch_operation' not in local_var_params or # noqa: E501
27341
- local_var_params['json_patch_operation'] is None): # noqa: E501
27342
- raise ApiValueError("Missing the required parameter `json_patch_operation` when calling `patch_project_api_v2_projects_project_id_patch`") # noqa: E501
25890
+ # verify the required parameter 'login_user_params' is set
25891
+ if self.api_client.client_side_validation and ('login_user_params' not in local_var_params or # noqa: E501
25892
+ local_var_params['login_user_params'] is None): # noqa: E501
25893
+ raise ApiValueError("Missing the required parameter `login_user_params` when calling `login_user_api_v2_users_login_post`") # noqa: E501
27343
25894
 
27344
25895
  collection_formats = {}
27345
25896
 
27346
25897
  path_params = {}
27347
- if 'project_id' in local_var_params:
27348
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
27349
25898
 
27350
25899
  query_params = []
27351
25900
 
@@ -27355,8 +25904,8 @@ class DefaultApi(object):
27355
25904
  local_var_files = {}
27356
25905
 
27357
25906
  body_params = None
27358
- if 'json_patch_operation' in local_var_params:
27359
- body_params = local_var_params['json_patch_operation']
25907
+ if 'login_user_params' in local_var_params:
25908
+ body_params = local_var_params['login_user_params']
27360
25909
  # HTTP header `Accept`
27361
25910
  header_params['Accept'] = self.api_client.select_header_accept(
27362
25911
  ['application/json']) # noqa: E501
@@ -27369,7 +25918,7 @@ class DefaultApi(object):
27369
25918
  auth_settings = [] # noqa: E501
27370
25919
 
27371
25920
  return self.api_client.call_api(
27372
- '/api/v2/projects/{project_id}', 'PATCH',
25921
+ '/api/v2/users/login', 'POST',
27373
25922
  path_params,
27374
25923
  query_params,
27375
25924
  header_params,
@@ -27384,17 +25933,16 @@ class DefaultApi(object):
27384
25933
  _request_timeout=local_var_params.get('_request_timeout'),
27385
25934
  collection_formats=collection_formats)
27386
25935
 
27387
- def patch_session_api_v2_sessions_session_id_patch(self, session_id, json_patch_operation, **kwargs): # noqa: E501
27388
- """Patch Session # noqa: E501
25936
+ def logout_user_api_v2_users_logout_post(self, **kwargs): # noqa: E501
25937
+ """Logout User # noqa: E501
27389
25938
 
25939
+ Log a user out. # noqa: E501
27390
25940
  This method makes a synchronous HTTP request by default. To make an
27391
25941
  asynchronous HTTP request, please pass async_req=True
27392
- >>> thread = api.patch_session_api_v2_sessions_session_id_patch(session_id, json_patch_operation, async_req=True)
25942
+ >>> thread = api.logout_user_api_v2_users_logout_post(async_req=True)
27393
25943
  >>> result = thread.get()
27394
25944
 
27395
25945
  :param async_req bool: execute request asynchronously
27396
- :param str session_id: (required)
27397
- :param list[JsonPatchOperation] json_patch_operation: (required)
27398
25946
  :param _preload_content: if False, the urllib3.HTTPResponse object will
27399
25947
  be returned without reading/decoding response
27400
25948
  data. Default is True.
@@ -27407,19 +25955,18 @@ class DefaultApi(object):
27407
25955
  returns the request thread.
27408
25956
  """
27409
25957
  kwargs['_return_http_data_only'] = True
27410
- return self.patch_session_api_v2_sessions_session_id_patch_with_http_info(session_id, json_patch_operation, **kwargs) # noqa: E501
25958
+ return self.logout_user_api_v2_users_logout_post_with_http_info(**kwargs) # noqa: E501
27411
25959
 
27412
- def patch_session_api_v2_sessions_session_id_patch_with_http_info(self, session_id, json_patch_operation, **kwargs): # noqa: E501
27413
- """Patch Session # noqa: E501
25960
+ def logout_user_api_v2_users_logout_post_with_http_info(self, **kwargs): # noqa: E501
25961
+ """Logout User # noqa: E501
27414
25962
 
25963
+ Log a user out. # noqa: E501
27415
25964
  This method makes a synchronous HTTP request by default. To make an
27416
25965
  asynchronous HTTP request, please pass async_req=True
27417
- >>> thread = api.patch_session_api_v2_sessions_session_id_patch_with_http_info(session_id, json_patch_operation, async_req=True)
25966
+ >>> thread = api.logout_user_api_v2_users_logout_post_with_http_info(async_req=True)
27418
25967
  >>> result = thread.get()
27419
25968
 
27420
25969
  :param async_req bool: execute request asynchronously
27421
- :param str session_id: (required)
27422
- :param list[JsonPatchOperation] json_patch_operation: (required)
27423
25970
  :param _return_http_data_only: response data without head status code
27424
25971
  and headers
27425
25972
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -27437,8 +25984,6 @@ class DefaultApi(object):
27437
25984
  local_var_params = locals()
27438
25985
 
27439
25986
  all_params = [
27440
- 'session_id',
27441
- 'json_patch_operation'
27442
25987
  ]
27443
25988
  all_params.extend(
27444
25989
  [
@@ -27453,24 +25998,14 @@ class DefaultApi(object):
27453
25998
  if key not in all_params:
27454
25999
  raise ApiTypeError(
27455
26000
  "Got an unexpected keyword argument '%s'"
27456
- " to method patch_session_api_v2_sessions_session_id_patch" % key
26001
+ " to method logout_user_api_v2_users_logout_post" % key
27457
26002
  )
27458
26003
  local_var_params[key] = val
27459
26004
  del local_var_params['kwargs']
27460
- # verify the required parameter 'session_id' is set
27461
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
27462
- local_var_params['session_id'] is None): # noqa: E501
27463
- raise ApiValueError("Missing the required parameter `session_id` when calling `patch_session_api_v2_sessions_session_id_patch`") # noqa: E501
27464
- # verify the required parameter 'json_patch_operation' is set
27465
- if self.api_client.client_side_validation and ('json_patch_operation' not in local_var_params or # noqa: E501
27466
- local_var_params['json_patch_operation'] is None): # noqa: E501
27467
- raise ApiValueError("Missing the required parameter `json_patch_operation` when calling `patch_session_api_v2_sessions_session_id_patch`") # noqa: E501
27468
26005
 
27469
26006
  collection_formats = {}
27470
26007
 
27471
26008
  path_params = {}
27472
- if 'session_id' in local_var_params:
27473
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
27474
26009
 
27475
26010
  query_params = []
27476
26011
 
@@ -27480,21 +26015,11 @@ class DefaultApi(object):
27480
26015
  local_var_files = {}
27481
26016
 
27482
26017
  body_params = None
27483
- if 'json_patch_operation' in local_var_params:
27484
- body_params = local_var_params['json_patch_operation']
27485
- # HTTP header `Accept`
27486
- header_params['Accept'] = self.api_client.select_header_accept(
27487
- ['application/json']) # noqa: E501
27488
-
27489
- # HTTP header `Content-Type`
27490
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
27491
- ['application/json']) # noqa: E501
27492
-
27493
26018
  # Authentication setting
27494
26019
  auth_settings = [] # noqa: E501
27495
26020
 
27496
26021
  return self.api_client.call_api(
27497
- '/api/v2/sessions/{session_id}', 'PATCH',
26022
+ '/api/v2/users/logout', 'POST',
27498
26023
  path_params,
27499
26024
  query_params,
27500
26025
  header_params,
@@ -31214,124 +29739,6 @@ class DefaultApi(object):
31214
29739
  _request_timeout=local_var_params.get('_request_timeout'),
31215
29740
  collection_formats=collection_formats)
31216
29741
 
31217
- def search_invoices_api_v2_organization_billing_invoices_post(self, invoices_query, **kwargs): # noqa: E501
31218
- """Search Invoices # noqa: E501
31219
-
31220
- List invoices for current organization. # noqa: E501
31221
- This method makes a synchronous HTTP request by default. To make an
31222
- asynchronous HTTP request, please pass async_req=True
31223
- >>> thread = api.search_invoices_api_v2_organization_billing_invoices_post(invoices_query, async_req=True)
31224
- >>> result = thread.get()
31225
-
31226
- :param async_req bool: execute request asynchronously
31227
- :param InvoicesQuery invoices_query: (required)
31228
- :param _preload_content: if False, the urllib3.HTTPResponse object will
31229
- be returned without reading/decoding response
31230
- data. Default is True.
31231
- :param _request_timeout: timeout setting for this request. If one
31232
- number provided, it will be total request
31233
- timeout. It can also be a pair (tuple) of
31234
- (connection, read) timeouts.
31235
- :return: InvoiceListResponse
31236
- If the method is called asynchronously,
31237
- returns the request thread.
31238
- """
31239
- kwargs['_return_http_data_only'] = True
31240
- return self.search_invoices_api_v2_organization_billing_invoices_post_with_http_info(invoices_query, **kwargs) # noqa: E501
31241
-
31242
- def search_invoices_api_v2_organization_billing_invoices_post_with_http_info(self, invoices_query, **kwargs): # noqa: E501
31243
- """Search Invoices # noqa: E501
31244
-
31245
- List invoices for current organization. # noqa: E501
31246
- This method makes a synchronous HTTP request by default. To make an
31247
- asynchronous HTTP request, please pass async_req=True
31248
- >>> thread = api.search_invoices_api_v2_organization_billing_invoices_post_with_http_info(invoices_query, async_req=True)
31249
- >>> result = thread.get()
31250
-
31251
- :param async_req bool: execute request asynchronously
31252
- :param InvoicesQuery invoices_query: (required)
31253
- :param _return_http_data_only: response data without head status code
31254
- and headers
31255
- :param _preload_content: if False, the urllib3.HTTPResponse object will
31256
- be returned without reading/decoding response
31257
- data. Default is True.
31258
- :param _request_timeout: timeout setting for this request. If one
31259
- number provided, it will be total request
31260
- timeout. It can also be a pair (tuple) of
31261
- (connection, read) timeouts.
31262
- :return: tuple(InvoiceListResponse, status_code(int), headers(HTTPHeaderDict))
31263
- If the method is called asynchronously,
31264
- returns the request thread.
31265
- """
31266
-
31267
- local_var_params = locals()
31268
-
31269
- all_params = [
31270
- 'invoices_query'
31271
- ]
31272
- all_params.extend(
31273
- [
31274
- 'async_req',
31275
- '_return_http_data_only',
31276
- '_preload_content',
31277
- '_request_timeout'
31278
- ]
31279
- )
31280
-
31281
- for key, val in six.iteritems(local_var_params['kwargs']):
31282
- if key not in all_params:
31283
- raise ApiTypeError(
31284
- "Got an unexpected keyword argument '%s'"
31285
- " to method search_invoices_api_v2_organization_billing_invoices_post" % key
31286
- )
31287
- local_var_params[key] = val
31288
- del local_var_params['kwargs']
31289
- # verify the required parameter 'invoices_query' is set
31290
- if self.api_client.client_side_validation and ('invoices_query' not in local_var_params or # noqa: E501
31291
- local_var_params['invoices_query'] is None): # noqa: E501
31292
- raise ApiValueError("Missing the required parameter `invoices_query` when calling `search_invoices_api_v2_organization_billing_invoices_post`") # noqa: E501
31293
-
31294
- collection_formats = {}
31295
-
31296
- path_params = {}
31297
-
31298
- query_params = []
31299
-
31300
- header_params = {}
31301
-
31302
- form_params = []
31303
- local_var_files = {}
31304
-
31305
- body_params = None
31306
- if 'invoices_query' in local_var_params:
31307
- body_params = local_var_params['invoices_query']
31308
- # HTTP header `Accept`
31309
- header_params['Accept'] = self.api_client.select_header_accept(
31310
- ['application/json']) # noqa: E501
31311
-
31312
- # HTTP header `Content-Type`
31313
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
31314
- ['application/json']) # noqa: E501
31315
-
31316
- # Authentication setting
31317
- auth_settings = [] # noqa: E501
31318
-
31319
- return self.api_client.call_api(
31320
- '/api/v2/organization_billing/invoices', 'POST',
31321
- path_params,
31322
- query_params,
31323
- header_params,
31324
- body=body_params,
31325
- post_params=form_params,
31326
- files=local_var_files,
31327
- response_type='InvoiceListResponse', # noqa: E501
31328
- auth_settings=auth_settings,
31329
- async_req=local_var_params.get('async_req'),
31330
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
31331
- _preload_content=local_var_params.get('_preload_content', True),
31332
- _request_timeout=local_var_params.get('_request_timeout'),
31333
- collection_formats=collection_formats)
31334
-
31335
29742
  def search_resource_notifications_api_v2_resource_notifications_search_post(self, list_resource_notifications_query, **kwargs): # noqa: E501
31336
29743
  """Search Resource Notifications # noqa: E501
31337
29744