anyscale 0.26.4__py3-none-any.whl → 0.26.6__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 (53) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -5
  2. anyscale/_private/docgen/__main__.py +0 -3
  3. anyscale/_private/docgen/api.md +0 -40
  4. anyscale/_private/docgen/models.md +0 -49
  5. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  6. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  7. anyscale/client/README.md +9 -27
  8. anyscale/client/openapi_client/__init__.py +7 -13
  9. anyscale/client/openapi_client/api/default_api.py +476 -1946
  10. anyscale/client/openapi_client/models/__init__.py +7 -13
  11. anyscale/client/openapi_client/models/{clusterconfigwithsessionidletimeout_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  12. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  13. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +3 -30
  14. anyscale/client/openapi_client/models/{clusterconfig_response.py → dataset_jobs.py} +22 -22
  15. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  16. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  17. anyscale/client/openapi_client/models/{organization_availability.py → metric.py} +64 -39
  18. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  19. anyscale/client/openapi_client/models/train_run.py +28 -1
  20. anyscale/cluster.py +5 -2
  21. anyscale/commands/anyscale_api/api_commands.py +0 -2
  22. anyscale/commands/workspace_commands.py +3 -3
  23. anyscale/connect_utils/start_interactive_session.py +4 -1
  24. anyscale/controllers/cluster_controller.py +15 -26
  25. anyscale/controllers/project_controller.py +1 -6
  26. anyscale/job/_private/job_sdk.py +6 -1
  27. anyscale/job/models.py +8 -0
  28. anyscale/project_utils.py +9 -20
  29. anyscale/sdk/anyscale_client/__init__.py +0 -5
  30. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  31. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/METADATA +1 -1
  34. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/RECORD +39 -51
  35. anyscale/client/openapi_client/models/anyscale_version_response.py +0 -121
  36. anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
  37. anyscale/client/openapi_client/models/cluster_config.py +0 -178
  38. anyscale/client/openapi_client/models/cluster_config_with_session_idle_timeout.py +0 -204
  39. anyscale/client/openapi_client/models/cluster_startup.py +0 -208
  40. anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
  41. anyscale/client/openapi_client/models/execute_shell_command_options.py +0 -121
  42. anyscale/client/openapi_client/models/organizationavailability_response.py +0 -121
  43. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  44. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  45. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  46. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  47. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  48. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  49. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/LICENSE +0 -0
  50. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/NOTICE +0 -0
  51. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/WHEEL +0 -0
  52. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/entry_points.txt +0 -0
  53. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/top_level.txt +0 -0
@@ -2299,111 +2299,6 @@ class DefaultApi(object):
2299
2299
  _request_timeout=local_var_params.get('_request_timeout'),
2300
2300
  collection_formats=collection_formats)
2301
2301
 
2302
- def begin_cluster_startup_api_v2_cluster_startups_post(self, **kwargs): # noqa: E501
2303
- """Begin Cluster Startup # noqa: E501
2304
-
2305
- Records a start time for a cluster startup. # noqa: E501
2306
- This method makes a synchronous HTTP request by default. To make an
2307
- asynchronous HTTP request, please pass async_req=True
2308
- >>> thread = api.begin_cluster_startup_api_v2_cluster_startups_post(async_req=True)
2309
- >>> result = thread.get()
2310
-
2311
- :param async_req bool: execute request asynchronously
2312
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2313
- be returned without reading/decoding response
2314
- data. Default is True.
2315
- :param _request_timeout: timeout setting for this request. If one
2316
- number provided, it will be total request
2317
- timeout. It can also be a pair (tuple) of
2318
- (connection, read) timeouts.
2319
- :return: ClusterStartup
2320
- If the method is called asynchronously,
2321
- returns the request thread.
2322
- """
2323
- kwargs['_return_http_data_only'] = True
2324
- return self.begin_cluster_startup_api_v2_cluster_startups_post_with_http_info(**kwargs) # noqa: E501
2325
-
2326
- def begin_cluster_startup_api_v2_cluster_startups_post_with_http_info(self, **kwargs): # noqa: E501
2327
- """Begin Cluster Startup # noqa: E501
2328
-
2329
- Records a start time for a cluster startup. # noqa: E501
2330
- This method makes a synchronous HTTP request by default. To make an
2331
- asynchronous HTTP request, please pass async_req=True
2332
- >>> thread = api.begin_cluster_startup_api_v2_cluster_startups_post_with_http_info(async_req=True)
2333
- >>> result = thread.get()
2334
-
2335
- :param async_req bool: execute request asynchronously
2336
- :param _return_http_data_only: response data without head status code
2337
- and headers
2338
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2339
- be returned without reading/decoding response
2340
- data. Default is True.
2341
- :param _request_timeout: timeout setting for this request. If one
2342
- number provided, it will be total request
2343
- timeout. It can also be a pair (tuple) of
2344
- (connection, read) timeouts.
2345
- :return: tuple(ClusterStartup, status_code(int), headers(HTTPHeaderDict))
2346
- If the method is called asynchronously,
2347
- returns the request thread.
2348
- """
2349
-
2350
- local_var_params = locals()
2351
-
2352
- all_params = [
2353
- ]
2354
- all_params.extend(
2355
- [
2356
- 'async_req',
2357
- '_return_http_data_only',
2358
- '_preload_content',
2359
- '_request_timeout'
2360
- ]
2361
- )
2362
-
2363
- for key, val in six.iteritems(local_var_params['kwargs']):
2364
- if key not in all_params:
2365
- raise ApiTypeError(
2366
- "Got an unexpected keyword argument '%s'"
2367
- " to method begin_cluster_startup_api_v2_cluster_startups_post" % key
2368
- )
2369
- local_var_params[key] = val
2370
- del local_var_params['kwargs']
2371
-
2372
- collection_formats = {}
2373
-
2374
- path_params = {}
2375
-
2376
- query_params = []
2377
-
2378
- header_params = {}
2379
-
2380
- form_params = []
2381
- local_var_files = {}
2382
-
2383
- body_params = None
2384
- # HTTP header `Accept`
2385
- header_params['Accept'] = self.api_client.select_header_accept(
2386
- ['application/json']) # noqa: E501
2387
-
2388
- # Authentication setting
2389
- auth_settings = [] # noqa: E501
2390
-
2391
- return self.api_client.call_api(
2392
- '/api/v2/cluster_startups/', 'POST',
2393
- path_params,
2394
- query_params,
2395
- header_params,
2396
- body=body_params,
2397
- post_params=form_params,
2398
- files=local_var_files,
2399
- response_type='ClusterStartup', # noqa: E501
2400
- auth_settings=auth_settings,
2401
- async_req=local_var_params.get('async_req'),
2402
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2403
- _preload_content=local_var_params.get('_preload_content', True),
2404
- _request_timeout=local_var_params.get('_request_timeout'),
2405
- collection_formats=collection_formats)
2406
-
2407
2302
  def change_password_api_v2_users_change_password_post(self, change_password_params, **kwargs): # noqa: E501
2408
2303
  """Change Password # noqa: E501
2409
2304
 
@@ -2522,120 +2417,6 @@ class DefaultApi(object):
2522
2417
  _request_timeout=local_var_params.get('_request_timeout'),
2523
2418
  collection_formats=collection_formats)
2524
2419
 
2525
- def check_availability_api_v2_organizations_check_availability_get(self, organization_name, **kwargs): # noqa: E501
2526
- """Check Availability # noqa: E501
2527
-
2528
- Deprecated because this can leak information about our customers to any unauthenticated person. # noqa: E501
2529
- This method makes a synchronous HTTP request by default. To make an
2530
- asynchronous HTTP request, please pass async_req=True
2531
- >>> thread = api.check_availability_api_v2_organizations_check_availability_get(organization_name, async_req=True)
2532
- >>> result = thread.get()
2533
-
2534
- :param async_req bool: execute request asynchronously
2535
- :param str organization_name: (required)
2536
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2537
- be returned without reading/decoding response
2538
- data. Default is True.
2539
- :param _request_timeout: timeout setting for this request. If one
2540
- number provided, it will be total request
2541
- timeout. It can also be a pair (tuple) of
2542
- (connection, read) timeouts.
2543
- :return: OrganizationavailabilityResponse
2544
- If the method is called asynchronously,
2545
- returns the request thread.
2546
- """
2547
- kwargs['_return_http_data_only'] = True
2548
- return self.check_availability_api_v2_organizations_check_availability_get_with_http_info(organization_name, **kwargs) # noqa: E501
2549
-
2550
- def check_availability_api_v2_organizations_check_availability_get_with_http_info(self, organization_name, **kwargs): # noqa: E501
2551
- """Check Availability # noqa: E501
2552
-
2553
- Deprecated because this can leak information about our customers to any unauthenticated person. # noqa: E501
2554
- This method makes a synchronous HTTP request by default. To make an
2555
- asynchronous HTTP request, please pass async_req=True
2556
- >>> thread = api.check_availability_api_v2_organizations_check_availability_get_with_http_info(organization_name, async_req=True)
2557
- >>> result = thread.get()
2558
-
2559
- :param async_req bool: execute request asynchronously
2560
- :param str organization_name: (required)
2561
- :param _return_http_data_only: response data without head status code
2562
- and headers
2563
- :param _preload_content: if False, the urllib3.HTTPResponse object will
2564
- be returned without reading/decoding response
2565
- data. Default is True.
2566
- :param _request_timeout: timeout setting for this request. If one
2567
- number provided, it will be total request
2568
- timeout. It can also be a pair (tuple) of
2569
- (connection, read) timeouts.
2570
- :return: tuple(OrganizationavailabilityResponse, status_code(int), headers(HTTPHeaderDict))
2571
- If the method is called asynchronously,
2572
- returns the request thread.
2573
- """
2574
-
2575
- local_var_params = locals()
2576
-
2577
- all_params = [
2578
- 'organization_name'
2579
- ]
2580
- all_params.extend(
2581
- [
2582
- 'async_req',
2583
- '_return_http_data_only',
2584
- '_preload_content',
2585
- '_request_timeout'
2586
- ]
2587
- )
2588
-
2589
- for key, val in six.iteritems(local_var_params['kwargs']):
2590
- if key not in all_params:
2591
- raise ApiTypeError(
2592
- "Got an unexpected keyword argument '%s'"
2593
- " to method check_availability_api_v2_organizations_check_availability_get" % key
2594
- )
2595
- local_var_params[key] = val
2596
- del local_var_params['kwargs']
2597
- # verify the required parameter 'organization_name' is set
2598
- if self.api_client.client_side_validation and ('organization_name' not in local_var_params or # noqa: E501
2599
- local_var_params['organization_name'] is None): # noqa: E501
2600
- raise ApiValueError("Missing the required parameter `organization_name` when calling `check_availability_api_v2_organizations_check_availability_get`") # noqa: E501
2601
-
2602
- collection_formats = {}
2603
-
2604
- path_params = {}
2605
-
2606
- query_params = []
2607
- if 'organization_name' in local_var_params and local_var_params['organization_name'] is not None: # noqa: E501
2608
- query_params.append(('organization_name', local_var_params['organization_name'])) # noqa: E501
2609
-
2610
- header_params = {}
2611
-
2612
- form_params = []
2613
- local_var_files = {}
2614
-
2615
- body_params = None
2616
- # HTTP header `Accept`
2617
- header_params['Accept'] = self.api_client.select_header_accept(
2618
- ['application/json']) # noqa: E501
2619
-
2620
- # Authentication setting
2621
- auth_settings = [] # noqa: E501
2622
-
2623
- return self.api_client.call_api(
2624
- '/api/v2/organizations/check_availability', 'GET',
2625
- path_params,
2626
- query_params,
2627
- header_params,
2628
- body=body_params,
2629
- post_params=form_params,
2630
- files=local_var_files,
2631
- response_type='OrganizationavailabilityResponse', # noqa: E501
2632
- auth_settings=auth_settings,
2633
- async_req=local_var_params.get('async_req'),
2634
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2635
- _preload_content=local_var_params.get('_preload_content', True),
2636
- _request_timeout=local_var_params.get('_request_timeout'),
2637
- collection_formats=collection_formats)
2638
-
2639
2420
  def check_is_feature_flag_on_api_v2_userinfo_check_is_feature_flag_on_get(self, flag_key, **kwargs): # noqa: E501
2640
2421
  """Check Is Feature Flag On # noqa: E501
2641
2422
 
@@ -10731,18 +10512,18 @@ class DefaultApi(object):
10731
10512
  _request_timeout=local_var_params.get('_request_timeout'),
10732
10513
  collection_formats=collection_formats)
10733
10514
 
10734
- def execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post(self, session_id, execute_shell_command_options, **kwargs): # noqa: E501
10735
- """Execute Shell Command # noqa: E501
10515
+ def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10516
+ """Fetch Usage Group By Cloud # noqa: E501
10736
10517
 
10737
- DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
10738
10518
  This method makes a synchronous HTTP request by default. To make an
10739
10519
  asynchronous HTTP request, please pass async_req=True
10740
- >>> thread = api.execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post(session_id, execute_shell_command_options, async_req=True)
10520
+ >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(aggregated_usage_query, async_req=True)
10741
10521
  >>> result = thread.get()
10742
10522
 
10743
10523
  :param async_req bool: execute request asynchronously
10744
- :param str session_id: (required)
10745
- :param ExecuteShellCommandOptions execute_shell_command_options: (required)
10524
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10525
+ :param str paging_token:
10526
+ :param int count:
10746
10527
  :param _preload_content: if False, the urllib3.HTTPResponse object will
10747
10528
  be returned without reading/decoding response
10748
10529
  data. Default is True.
@@ -10750,25 +10531,25 @@ class DefaultApi(object):
10750
10531
  number provided, it will be total request
10751
10532
  timeout. It can also be a pair (tuple) of
10752
10533
  (connection, read) timeouts.
10753
- :return: SessioncommandidResponse
10534
+ :return: UsagebycloudListResponse
10754
10535
  If the method is called asynchronously,
10755
10536
  returns the request thread.
10756
10537
  """
10757
10538
  kwargs['_return_http_data_only'] = True
10758
- return self.execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post_with_http_info(session_id, execute_shell_command_options, **kwargs) # noqa: E501
10539
+ return self.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10759
10540
 
10760
- def execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post_with_http_info(self, session_id, execute_shell_command_options, **kwargs): # noqa: E501
10761
- """Execute Shell Command # noqa: E501
10541
+ def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10542
+ """Fetch Usage Group By Cloud # noqa: E501
10762
10543
 
10763
- DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
10764
10544
  This method makes a synchronous HTTP request by default. To make an
10765
10545
  asynchronous HTTP request, please pass async_req=True
10766
- >>> thread = api.execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post_with_http_info(session_id, execute_shell_command_options, async_req=True)
10546
+ >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, async_req=True)
10767
10547
  >>> result = thread.get()
10768
10548
 
10769
10549
  :param async_req bool: execute request asynchronously
10770
- :param str session_id: (required)
10771
- :param ExecuteShellCommandOptions execute_shell_command_options: (required)
10550
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10551
+ :param str paging_token:
10552
+ :param int count:
10772
10553
  :param _return_http_data_only: response data without head status code
10773
10554
  and headers
10774
10555
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -10778,7 +10559,7 @@ class DefaultApi(object):
10778
10559
  number provided, it will be total request
10779
10560
  timeout. It can also be a pair (tuple) of
10780
10561
  (connection, read) timeouts.
10781
- :return: tuple(SessioncommandidResponse, status_code(int), headers(HTTPHeaderDict))
10562
+ :return: tuple(UsagebycloudListResponse, status_code(int), headers(HTTPHeaderDict))
10782
10563
  If the method is called asynchronously,
10783
10564
  returns the request thread.
10784
10565
  """
@@ -10786,8 +10567,9 @@ class DefaultApi(object):
10786
10567
  local_var_params = locals()
10787
10568
 
10788
10569
  all_params = [
10789
- 'session_id',
10790
- 'execute_shell_command_options'
10570
+ 'aggregated_usage_query',
10571
+ 'paging_token',
10572
+ 'count'
10791
10573
  ]
10792
10574
  all_params.extend(
10793
10575
  [
@@ -10802,26 +10584,28 @@ class DefaultApi(object):
10802
10584
  if key not in all_params:
10803
10585
  raise ApiTypeError(
10804
10586
  "Got an unexpected keyword argument '%s'"
10805
- " to method execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post" % key
10587
+ " to method fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post" % key
10806
10588
  )
10807
10589
  local_var_params[key] = val
10808
10590
  del local_var_params['kwargs']
10809
- # verify the required parameter 'session_id' is set
10810
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
10811
- local_var_params['session_id'] is None): # noqa: E501
10812
- raise ApiValueError("Missing the required parameter `session_id` when calling `execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post`") # noqa: E501
10813
- # verify the required parameter 'execute_shell_command_options' is set
10814
- if self.api_client.client_side_validation and ('execute_shell_command_options' not in local_var_params or # noqa: E501
10815
- local_var_params['execute_shell_command_options'] is None): # noqa: E501
10816
- raise ApiValueError("Missing the required parameter `execute_shell_command_options` when calling `execute_shell_command_api_v2_sessions_session_id_execute_shell_command_post`") # noqa: E501
10591
+ # verify the required parameter 'aggregated_usage_query' is set
10592
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10593
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10594
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
10817
10595
 
10596
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
10597
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `50`") # noqa: E501
10598
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
10599
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value greater than or equal to `0`") # noqa: E501
10818
10600
  collection_formats = {}
10819
10601
 
10820
10602
  path_params = {}
10821
- if 'session_id' in local_var_params:
10822
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
10823
10603
 
10824
10604
  query_params = []
10605
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
10606
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
10607
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
10608
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
10825
10609
 
10826
10610
  header_params = {}
10827
10611
 
@@ -10829,8 +10613,8 @@ class DefaultApi(object):
10829
10613
  local_var_files = {}
10830
10614
 
10831
10615
  body_params = None
10832
- if 'execute_shell_command_options' in local_var_params:
10833
- body_params = local_var_params['execute_shell_command_options']
10616
+ if 'aggregated_usage_query' in local_var_params:
10617
+ body_params = local_var_params['aggregated_usage_query']
10834
10618
  # HTTP header `Accept`
10835
10619
  header_params['Accept'] = self.api_client.select_header_accept(
10836
10620
  ['application/json']) # noqa: E501
@@ -10843,14 +10627,14 @@ class DefaultApi(object):
10843
10627
  auth_settings = [] # noqa: E501
10844
10628
 
10845
10629
  return self.api_client.call_api(
10846
- '/api/v2/sessions/{session_id}/execute_shell_command', 'POST',
10630
+ '/api/v2/aggregated_instance_usage/cloud', 'POST',
10847
10631
  path_params,
10848
10632
  query_params,
10849
10633
  header_params,
10850
10634
  body=body_params,
10851
10635
  post_params=form_params,
10852
10636
  files=local_var_files,
10853
- response_type='SessioncommandidResponse', # noqa: E501
10637
+ response_type='UsagebycloudListResponse', # noqa: E501
10854
10638
  auth_settings=auth_settings,
10855
10639
  async_req=local_var_params.get('async_req'),
10856
10640
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -10858,12 +10642,12 @@ class DefaultApi(object):
10858
10642
  _request_timeout=local_var_params.get('_request_timeout'),
10859
10643
  collection_formats=collection_formats)
10860
10644
 
10861
- def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10862
- """Fetch Usage Group By Cloud # noqa: E501
10645
+ def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10646
+ """Fetch Usage Group By Cluster # noqa: E501
10863
10647
 
10864
10648
  This method makes a synchronous HTTP request by default. To make an
10865
10649
  asynchronous HTTP request, please pass async_req=True
10866
- >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(aggregated_usage_query, async_req=True)
10650
+ >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(aggregated_usage_query, async_req=True)
10867
10651
  >>> result = thread.get()
10868
10652
 
10869
10653
  :param async_req bool: execute request asynchronously
@@ -10877,19 +10661,19 @@ class DefaultApi(object):
10877
10661
  number provided, it will be total request
10878
10662
  timeout. It can also be a pair (tuple) of
10879
10663
  (connection, read) timeouts.
10880
- :return: UsagebycloudListResponse
10664
+ :return: UsagebyclusterListResponse
10881
10665
  If the method is called asynchronously,
10882
10666
  returns the request thread.
10883
10667
  """
10884
10668
  kwargs['_return_http_data_only'] = True
10885
- return self.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10669
+ return self.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10886
10670
 
10887
- def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10888
- """Fetch Usage Group By Cloud # noqa: E501
10671
+ def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10672
+ """Fetch Usage Group By Cluster # noqa: E501
10889
10673
 
10890
10674
  This method makes a synchronous HTTP request by default. To make an
10891
10675
  asynchronous HTTP request, please pass async_req=True
10892
- >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, async_req=True)
10676
+ >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, async_req=True)
10893
10677
  >>> result = thread.get()
10894
10678
 
10895
10679
  :param async_req bool: execute request asynchronously
@@ -10905,7 +10689,7 @@ class DefaultApi(object):
10905
10689
  number provided, it will be total request
10906
10690
  timeout. It can also be a pair (tuple) of
10907
10691
  (connection, read) timeouts.
10908
- :return: tuple(UsagebycloudListResponse, status_code(int), headers(HTTPHeaderDict))
10692
+ :return: tuple(UsagebyclusterListResponse, status_code(int), headers(HTTPHeaderDict))
10909
10693
  If the method is called asynchronously,
10910
10694
  returns the request thread.
10911
10695
  """
@@ -10930,149 +10714,19 @@ class DefaultApi(object):
10930
10714
  if key not in all_params:
10931
10715
  raise ApiTypeError(
10932
10716
  "Got an unexpected keyword argument '%s'"
10933
- " to method fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post" % key
10717
+ " to method fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post" % key
10934
10718
  )
10935
10719
  local_var_params[key] = val
10936
10720
  del local_var_params['kwargs']
10937
10721
  # verify the required parameter 'aggregated_usage_query' is set
10938
10722
  if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10939
10723
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
10940
- raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
10724
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
10941
10725
 
10942
10726
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
10943
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `50`") # noqa: E501
10727
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `50`") # noqa: E501
10944
10728
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
10945
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value greater than or equal to `0`") # noqa: E501
10946
- collection_formats = {}
10947
-
10948
- path_params = {}
10949
-
10950
- query_params = []
10951
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
10952
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
10953
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
10954
- query_params.append(('count', local_var_params['count'])) # noqa: E501
10955
-
10956
- header_params = {}
10957
-
10958
- form_params = []
10959
- local_var_files = {}
10960
-
10961
- body_params = None
10962
- if 'aggregated_usage_query' in local_var_params:
10963
- body_params = local_var_params['aggregated_usage_query']
10964
- # HTTP header `Accept`
10965
- header_params['Accept'] = self.api_client.select_header_accept(
10966
- ['application/json']) # noqa: E501
10967
-
10968
- # HTTP header `Content-Type`
10969
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10970
- ['application/json']) # noqa: E501
10971
-
10972
- # Authentication setting
10973
- auth_settings = [] # noqa: E501
10974
-
10975
- return self.api_client.call_api(
10976
- '/api/v2/aggregated_instance_usage/cloud', 'POST',
10977
- path_params,
10978
- query_params,
10979
- header_params,
10980
- body=body_params,
10981
- post_params=form_params,
10982
- files=local_var_files,
10983
- response_type='UsagebycloudListResponse', # noqa: E501
10984
- auth_settings=auth_settings,
10985
- async_req=local_var_params.get('async_req'),
10986
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10987
- _preload_content=local_var_params.get('_preload_content', True),
10988
- _request_timeout=local_var_params.get('_request_timeout'),
10989
- collection_formats=collection_formats)
10990
-
10991
- def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10992
- """Fetch Usage Group By Cluster # noqa: E501
10993
-
10994
- This method makes a synchronous HTTP request by default. To make an
10995
- asynchronous HTTP request, please pass async_req=True
10996
- >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(aggregated_usage_query, async_req=True)
10997
- >>> result = thread.get()
10998
-
10999
- :param async_req bool: execute request asynchronously
11000
- :param AggregatedUsageQuery aggregated_usage_query: (required)
11001
- :param str paging_token:
11002
- :param int count:
11003
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11004
- be returned without reading/decoding response
11005
- data. Default is True.
11006
- :param _request_timeout: timeout setting for this request. If one
11007
- number provided, it will be total request
11008
- timeout. It can also be a pair (tuple) of
11009
- (connection, read) timeouts.
11010
- :return: UsagebyclusterListResponse
11011
- If the method is called asynchronously,
11012
- returns the request thread.
11013
- """
11014
- kwargs['_return_http_data_only'] = True
11015
- return self.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
11016
-
11017
- def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
11018
- """Fetch Usage Group By Cluster # noqa: E501
11019
-
11020
- This method makes a synchronous HTTP request by default. To make an
11021
- asynchronous HTTP request, please pass async_req=True
11022
- >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, async_req=True)
11023
- >>> result = thread.get()
11024
-
11025
- :param async_req bool: execute request asynchronously
11026
- :param AggregatedUsageQuery aggregated_usage_query: (required)
11027
- :param str paging_token:
11028
- :param int count:
11029
- :param _return_http_data_only: response data without head status code
11030
- and headers
11031
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11032
- be returned without reading/decoding response
11033
- data. Default is True.
11034
- :param _request_timeout: timeout setting for this request. If one
11035
- number provided, it will be total request
11036
- timeout. It can also be a pair (tuple) of
11037
- (connection, read) timeouts.
11038
- :return: tuple(UsagebyclusterListResponse, status_code(int), headers(HTTPHeaderDict))
11039
- If the method is called asynchronously,
11040
- returns the request thread.
11041
- """
11042
-
11043
- local_var_params = locals()
11044
-
11045
- all_params = [
11046
- 'aggregated_usage_query',
11047
- 'paging_token',
11048
- 'count'
11049
- ]
11050
- all_params.extend(
11051
- [
11052
- 'async_req',
11053
- '_return_http_data_only',
11054
- '_preload_content',
11055
- '_request_timeout'
11056
- ]
11057
- )
11058
-
11059
- for key, val in six.iteritems(local_var_params['kwargs']):
11060
- if key not in all_params:
11061
- raise ApiTypeError(
11062
- "Got an unexpected keyword argument '%s'"
11063
- " to method fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post" % key
11064
- )
11065
- local_var_params[key] = val
11066
- del local_var_params['kwargs']
11067
- # verify the required parameter 'aggregated_usage_query' is set
11068
- if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
11069
- local_var_params['aggregated_usage_query'] is None): # noqa: E501
11070
- raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
11071
-
11072
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
11073
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `50`") # noqa: E501
11074
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
11075
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value greater than or equal to `0`") # noqa: E501
10729
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value greater than or equal to `0`") # noqa: E501
11076
10730
  collection_formats = {}
11077
10731
 
11078
10732
  path_params = {}
@@ -11644,7 +11298,7 @@ class DefaultApi(object):
11644
11298
  number provided, it will be total request
11645
11299
  timeout. It can also be a pair (tuple) of
11646
11300
  (connection, read) timeouts.
11647
- :return: DatasetResponse
11301
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
11648
11302
  If the method is called asynchronously,
11649
11303
  returns the request thread.
11650
11304
  """
@@ -11673,7 +11327,7 @@ class DefaultApi(object):
11673
11327
  number provided, it will be total request
11674
11328
  timeout. It can also be a pair (tuple) of
11675
11329
  (connection, read) timeouts.
11676
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
11330
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
11677
11331
  If the method is called asynchronously,
11678
11332
  returns the request thread.
11679
11333
  """
@@ -11740,7 +11394,7 @@ class DefaultApi(object):
11740
11394
  body=body_params,
11741
11395
  post_params=form_params,
11742
11396
  files=local_var_files,
11743
- response_type='DatasetResponse', # noqa: E501
11397
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
11744
11398
  auth_settings=auth_settings,
11745
11399
  async_req=local_var_params.get('async_req'),
11746
11400
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -11991,120 +11645,6 @@ class DefaultApi(object):
11991
11645
  _request_timeout=local_var_params.get('_request_timeout'),
11992
11646
  collection_formats=collection_formats)
11993
11647
 
11994
- def find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get(self, public_identifier, **kwargs): # noqa: E501
11995
- """Find With Public Identifier # noqa: E501
11996
-
11997
- Deprecated because this can leak information about our customers to any unauthenticated person. # noqa: E501
11998
- This method makes a synchronous HTTP request by default. To make an
11999
- asynchronous HTTP request, please pass async_req=True
12000
- >>> thread = api.find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get(public_identifier, async_req=True)
12001
- >>> result = thread.get()
12002
-
12003
- :param async_req bool: execute request asynchronously
12004
- :param str public_identifier: (required)
12005
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12006
- be returned without reading/decoding response
12007
- data. Default is True.
12008
- :param _request_timeout: timeout setting for this request. If one
12009
- number provided, it will be total request
12010
- timeout. It can also be a pair (tuple) of
12011
- (connection, read) timeouts.
12012
- :return: OrganizationResponse
12013
- If the method is called asynchronously,
12014
- returns the request thread.
12015
- """
12016
- kwargs['_return_http_data_only'] = True
12017
- return self.find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get_with_http_info(public_identifier, **kwargs) # noqa: E501
12018
-
12019
- def find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get_with_http_info(self, public_identifier, **kwargs): # noqa: E501
12020
- """Find With Public Identifier # noqa: E501
12021
-
12022
- Deprecated because this can leak information about our customers to any unauthenticated person. # noqa: E501
12023
- This method makes a synchronous HTTP request by default. To make an
12024
- asynchronous HTTP request, please pass async_req=True
12025
- >>> thread = api.find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get_with_http_info(public_identifier, async_req=True)
12026
- >>> result = thread.get()
12027
-
12028
- :param async_req bool: execute request asynchronously
12029
- :param str public_identifier: (required)
12030
- :param _return_http_data_only: response data without head status code
12031
- and headers
12032
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12033
- be returned without reading/decoding response
12034
- data. Default is True.
12035
- :param _request_timeout: timeout setting for this request. If one
12036
- number provided, it will be total request
12037
- timeout. It can also be a pair (tuple) of
12038
- (connection, read) timeouts.
12039
- :return: tuple(OrganizationResponse, status_code(int), headers(HTTPHeaderDict))
12040
- If the method is called asynchronously,
12041
- returns the request thread.
12042
- """
12043
-
12044
- local_var_params = locals()
12045
-
12046
- all_params = [
12047
- 'public_identifier'
12048
- ]
12049
- all_params.extend(
12050
- [
12051
- 'async_req',
12052
- '_return_http_data_only',
12053
- '_preload_content',
12054
- '_request_timeout'
12055
- ]
12056
- )
12057
-
12058
- for key, val in six.iteritems(local_var_params['kwargs']):
12059
- if key not in all_params:
12060
- raise ApiTypeError(
12061
- "Got an unexpected keyword argument '%s'"
12062
- " to method find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get" % key
12063
- )
12064
- local_var_params[key] = val
12065
- del local_var_params['kwargs']
12066
- # verify the required parameter 'public_identifier' is set
12067
- if self.api_client.client_side_validation and ('public_identifier' not in local_var_params or # noqa: E501
12068
- local_var_params['public_identifier'] is None): # noqa: E501
12069
- raise ApiValueError("Missing the required parameter `public_identifier` when calling `find_with_public_identifier_api_v2_organizations_find_with_public_identifier_get`") # noqa: E501
12070
-
12071
- collection_formats = {}
12072
-
12073
- path_params = {}
12074
-
12075
- query_params = []
12076
- if 'public_identifier' in local_var_params and local_var_params['public_identifier'] is not None: # noqa: E501
12077
- query_params.append(('public_identifier', local_var_params['public_identifier'])) # noqa: E501
12078
-
12079
- header_params = {}
12080
-
12081
- form_params = []
12082
- local_var_files = {}
12083
-
12084
- body_params = None
12085
- # HTTP header `Accept`
12086
- header_params['Accept'] = self.api_client.select_header_accept(
12087
- ['application/json']) # noqa: E501
12088
-
12089
- # Authentication setting
12090
- auth_settings = [] # noqa: E501
12091
-
12092
- return self.api_client.call_api(
12093
- '/api/v2/organizations/find_with_public_identifier', 'GET',
12094
- path_params,
12095
- query_params,
12096
- header_params,
12097
- body=body_params,
12098
- post_params=form_params,
12099
- files=local_var_files,
12100
- response_type='OrganizationResponse', # noqa: E501
12101
- auth_settings=auth_settings,
12102
- async_req=local_var_params.get('async_req'),
12103
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
12104
- _preload_content=local_var_params.get('_preload_content', True),
12105
- _request_timeout=local_var_params.get('_request_timeout'),
12106
- collection_formats=collection_formats)
12107
-
12108
11648
  def find_with_user_api_v2_organizations_find_with_user_get(self, user_email, **kwargs): # noqa: E501
12109
11649
  """Find With User # noqa: E501
12110
11650
 
@@ -12920,109 +12460,6 @@ class DefaultApi(object):
12920
12460
  _request_timeout=local_var_params.get('_request_timeout'),
12921
12461
  collection_formats=collection_formats)
12922
12462
 
12923
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get(self, **kwargs): # noqa: E501
12924
- """Get Anyscale Version # noqa: E501
12925
-
12926
- This method makes a synchronous HTTP request by default. To make an
12927
- asynchronous HTTP request, please pass async_req=True
12928
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get(async_req=True)
12929
- >>> result = thread.get()
12930
-
12931
- :param async_req bool: execute request asynchronously
12932
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12933
- be returned without reading/decoding response
12934
- data. Default is True.
12935
- :param _request_timeout: timeout setting for this request. If one
12936
- number provided, it will be total request
12937
- timeout. It can also be a pair (tuple) of
12938
- (connection, read) timeouts.
12939
- :return: AnyscaleversionresponseResponse
12940
- If the method is called asynchronously,
12941
- returns the request thread.
12942
- """
12943
- kwargs['_return_http_data_only'] = True
12944
- return self.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(**kwargs) # noqa: E501
12945
-
12946
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(self, **kwargs): # noqa: E501
12947
- """Get Anyscale Version # noqa: E501
12948
-
12949
- This method makes a synchronous HTTP request by default. To make an
12950
- asynchronous HTTP request, please pass async_req=True
12951
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(async_req=True)
12952
- >>> result = thread.get()
12953
-
12954
- :param async_req bool: execute request asynchronously
12955
- :param _return_http_data_only: response data without head status code
12956
- and headers
12957
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12958
- be returned without reading/decoding response
12959
- data. Default is True.
12960
- :param _request_timeout: timeout setting for this request. If one
12961
- number provided, it will be total request
12962
- timeout. It can also be a pair (tuple) of
12963
- (connection, read) timeouts.
12964
- :return: tuple(AnyscaleversionresponseResponse, status_code(int), headers(HTTPHeaderDict))
12965
- If the method is called asynchronously,
12966
- returns the request thread.
12967
- """
12968
-
12969
- local_var_params = locals()
12970
-
12971
- all_params = [
12972
- ]
12973
- all_params.extend(
12974
- [
12975
- 'async_req',
12976
- '_return_http_data_only',
12977
- '_preload_content',
12978
- '_request_timeout'
12979
- ]
12980
- )
12981
-
12982
- for key, val in six.iteritems(local_var_params['kwargs']):
12983
- if key not in all_params:
12984
- raise ApiTypeError(
12985
- "Got an unexpected keyword argument '%s'"
12986
- " to method get_anyscale_version_api_v2_userinfo_anyscale_version_get" % key
12987
- )
12988
- local_var_params[key] = val
12989
- del local_var_params['kwargs']
12990
-
12991
- collection_formats = {}
12992
-
12993
- path_params = {}
12994
-
12995
- query_params = []
12996
-
12997
- header_params = {}
12998
-
12999
- form_params = []
13000
- local_var_files = {}
13001
-
13002
- body_params = None
13003
- # HTTP header `Accept`
13004
- header_params['Accept'] = self.api_client.select_header_accept(
13005
- ['application/json']) # noqa: E501
13006
-
13007
- # Authentication setting
13008
- auth_settings = [] # noqa: E501
13009
-
13010
- return self.api_client.call_api(
13011
- '/api/v2/userinfo/anyscale_version', 'GET',
13012
- path_params,
13013
- query_params,
13014
- header_params,
13015
- body=body_params,
13016
- post_params=form_params,
13017
- files=local_var_files,
13018
- response_type='AnyscaleversionresponseResponse', # noqa: E501
13019
- auth_settings=auth_settings,
13020
- async_req=local_var_params.get('async_req'),
13021
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13022
- _preload_content=local_var_params.get('_preload_content', True),
13023
- _request_timeout=local_var_params.get('_request_timeout'),
13024
- collection_formats=collection_formats)
13025
-
13026
12463
  def get_application_template_api_v2_application_templates_application_template_id_get(self, application_template_id, **kwargs): # noqa: E501
13027
12464
  """Get Application Template # noqa: E501
13028
12465
 
@@ -14883,6 +14320,118 @@ class DefaultApi(object):
14883
14320
  _request_timeout=local_var_params.get('_request_timeout'),
14884
14321
  collection_formats=collection_formats)
14885
14322
 
14323
+ def get_dashboard_api_v2_dataset_runs_get(self, cluster_id, **kwargs): # noqa: E501
14324
+ """Get Dashboard # noqa: E501
14325
+
14326
+ This method makes a synchronous HTTP request by default. To make an
14327
+ asynchronous HTTP request, please pass async_req=True
14328
+ >>> thread = api.get_dashboard_api_v2_dataset_runs_get(cluster_id, async_req=True)
14329
+ >>> result = thread.get()
14330
+
14331
+ :param async_req bool: execute request asynchronously
14332
+ :param str cluster_id: (required)
14333
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14334
+ be returned without reading/decoding response
14335
+ data. Default is True.
14336
+ :param _request_timeout: timeout setting for this request. If one
14337
+ number provided, it will be total request
14338
+ timeout. It can also be a pair (tuple) of
14339
+ (connection, read) timeouts.
14340
+ :return: BackendServerApiProductModelsDatasetRunsDatasetResponse
14341
+ If the method is called asynchronously,
14342
+ returns the request thread.
14343
+ """
14344
+ kwargs['_return_http_data_only'] = True
14345
+ return self.get_dashboard_api_v2_dataset_runs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
14346
+
14347
+ def get_dashboard_api_v2_dataset_runs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
14348
+ """Get Dashboard # noqa: E501
14349
+
14350
+ This method makes a synchronous HTTP request by default. To make an
14351
+ asynchronous HTTP request, please pass async_req=True
14352
+ >>> thread = api.get_dashboard_api_v2_dataset_runs_get_with_http_info(cluster_id, async_req=True)
14353
+ >>> result = thread.get()
14354
+
14355
+ :param async_req bool: execute request asynchronously
14356
+ :param str cluster_id: (required)
14357
+ :param _return_http_data_only: response data without head status code
14358
+ and headers
14359
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14360
+ be returned without reading/decoding response
14361
+ data. Default is True.
14362
+ :param _request_timeout: timeout setting for this request. If one
14363
+ number provided, it will be total request
14364
+ timeout. It can also be a pair (tuple) of
14365
+ (connection, read) timeouts.
14366
+ :return: tuple(BackendServerApiProductModelsDatasetRunsDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14367
+ If the method is called asynchronously,
14368
+ returns the request thread.
14369
+ """
14370
+
14371
+ local_var_params = locals()
14372
+
14373
+ all_params = [
14374
+ 'cluster_id'
14375
+ ]
14376
+ all_params.extend(
14377
+ [
14378
+ 'async_req',
14379
+ '_return_http_data_only',
14380
+ '_preload_content',
14381
+ '_request_timeout'
14382
+ ]
14383
+ )
14384
+
14385
+ for key, val in six.iteritems(local_var_params['kwargs']):
14386
+ if key not in all_params:
14387
+ raise ApiTypeError(
14388
+ "Got an unexpected keyword argument '%s'"
14389
+ " to method get_dashboard_api_v2_dataset_runs_get" % key
14390
+ )
14391
+ local_var_params[key] = val
14392
+ del local_var_params['kwargs']
14393
+ # verify the required parameter 'cluster_id' is set
14394
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
14395
+ local_var_params['cluster_id'] is None): # noqa: E501
14396
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_dashboard_api_v2_dataset_runs_get`") # noqa: E501
14397
+
14398
+ collection_formats = {}
14399
+
14400
+ path_params = {}
14401
+
14402
+ query_params = []
14403
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
14404
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
14405
+
14406
+ header_params = {}
14407
+
14408
+ form_params = []
14409
+ local_var_files = {}
14410
+
14411
+ body_params = None
14412
+ # HTTP header `Accept`
14413
+ header_params['Accept'] = self.api_client.select_header_accept(
14414
+ ['application/json']) # noqa: E501
14415
+
14416
+ # Authentication setting
14417
+ auth_settings = [] # noqa: E501
14418
+
14419
+ return self.api_client.call_api(
14420
+ '/api/v2/dataset_runs/', 'GET',
14421
+ path_params,
14422
+ query_params,
14423
+ header_params,
14424
+ body=body_params,
14425
+ post_params=form_params,
14426
+ files=local_var_files,
14427
+ response_type='BackendServerApiProductModelsDatasetRunsDatasetResponse', # noqa: E501
14428
+ auth_settings=auth_settings,
14429
+ async_req=local_var_params.get('async_req'),
14430
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14431
+ _preload_content=local_var_params.get('_preload_content', True),
14432
+ _request_timeout=local_var_params.get('_request_timeout'),
14433
+ collection_formats=collection_formats)
14434
+
14886
14435
  def get_dataset_api_v2_datasets_dataset_id_get(self, dataset_id, **kwargs): # noqa: E501
14887
14436
  """Get Dataset # noqa: E501
14888
14437
 
@@ -14901,7 +14450,7 @@ class DefaultApi(object):
14901
14450
  number provided, it will be total request
14902
14451
  timeout. It can also be a pair (tuple) of
14903
14452
  (connection, read) timeouts.
14904
- :return: DatasetResponse
14453
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
14905
14454
  If the method is called asynchronously,
14906
14455
  returns the request thread.
14907
14456
  """
@@ -14928,7 +14477,7 @@ class DefaultApi(object):
14928
14477
  number provided, it will be total request
14929
14478
  timeout. It can also be a pair (tuple) of
14930
14479
  (connection, read) timeouts.
14931
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
14480
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14932
14481
  If the method is called asynchronously,
14933
14482
  returns the request thread.
14934
14483
  """
@@ -14989,7 +14538,7 @@ class DefaultApi(object):
14989
14538
  body=body_params,
14990
14539
  post_params=form_params,
14991
14540
  files=local_var_files,
14992
- response_type='DatasetResponse', # noqa: E501
14541
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
14993
14542
  auth_settings=auth_settings,
14994
14543
  async_req=local_var_params.get('async_req'),
14995
14544
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -18757,6 +18306,118 @@ class DefaultApi(object):
18757
18306
  _request_timeout=local_var_params.get('_request_timeout'),
18758
18307
  collection_formats=collection_formats)
18759
18308
 
18309
+ def get_jobs_api_v2_dataset_runs_jobs_get(self, cluster_id, **kwargs): # noqa: E501
18310
+ """Get Jobs # noqa: E501
18311
+
18312
+ This method makes a synchronous HTTP request by default. To make an
18313
+ asynchronous HTTP request, please pass async_req=True
18314
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get(cluster_id, async_req=True)
18315
+ >>> result = thread.get()
18316
+
18317
+ :param async_req bool: execute request asynchronously
18318
+ :param str cluster_id: (required)
18319
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18320
+ be returned without reading/decoding response
18321
+ data. Default is True.
18322
+ :param _request_timeout: timeout setting for this request. If one
18323
+ number provided, it will be total request
18324
+ timeout. It can also be a pair (tuple) of
18325
+ (connection, read) timeouts.
18326
+ :return: DatasetJobs
18327
+ If the method is called asynchronously,
18328
+ returns the request thread.
18329
+ """
18330
+ kwargs['_return_http_data_only'] = True
18331
+ return self.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
18332
+
18333
+ def get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
18334
+ """Get Jobs # noqa: E501
18335
+
18336
+ This method makes a synchronous HTTP request by default. To make an
18337
+ asynchronous HTTP request, please pass async_req=True
18338
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, async_req=True)
18339
+ >>> result = thread.get()
18340
+
18341
+ :param async_req bool: execute request asynchronously
18342
+ :param str cluster_id: (required)
18343
+ :param _return_http_data_only: response data without head status code
18344
+ and headers
18345
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18346
+ be returned without reading/decoding response
18347
+ data. Default is True.
18348
+ :param _request_timeout: timeout setting for this request. If one
18349
+ number provided, it will be total request
18350
+ timeout. It can also be a pair (tuple) of
18351
+ (connection, read) timeouts.
18352
+ :return: tuple(DatasetJobs, status_code(int), headers(HTTPHeaderDict))
18353
+ If the method is called asynchronously,
18354
+ returns the request thread.
18355
+ """
18356
+
18357
+ local_var_params = locals()
18358
+
18359
+ all_params = [
18360
+ 'cluster_id'
18361
+ ]
18362
+ all_params.extend(
18363
+ [
18364
+ 'async_req',
18365
+ '_return_http_data_only',
18366
+ '_preload_content',
18367
+ '_request_timeout'
18368
+ ]
18369
+ )
18370
+
18371
+ for key, val in six.iteritems(local_var_params['kwargs']):
18372
+ if key not in all_params:
18373
+ raise ApiTypeError(
18374
+ "Got an unexpected keyword argument '%s'"
18375
+ " to method get_jobs_api_v2_dataset_runs_jobs_get" % key
18376
+ )
18377
+ local_var_params[key] = val
18378
+ del local_var_params['kwargs']
18379
+ # verify the required parameter 'cluster_id' is set
18380
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
18381
+ local_var_params['cluster_id'] is None): # noqa: E501
18382
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_jobs_api_v2_dataset_runs_jobs_get`") # noqa: E501
18383
+
18384
+ collection_formats = {}
18385
+
18386
+ path_params = {}
18387
+
18388
+ query_params = []
18389
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
18390
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
18391
+
18392
+ header_params = {}
18393
+
18394
+ form_params = []
18395
+ local_var_files = {}
18396
+
18397
+ body_params = None
18398
+ # HTTP header `Accept`
18399
+ header_params['Accept'] = self.api_client.select_header_accept(
18400
+ ['application/json']) # noqa: E501
18401
+
18402
+ # Authentication setting
18403
+ auth_settings = [] # noqa: E501
18404
+
18405
+ return self.api_client.call_api(
18406
+ '/api/v2/dataset_runs/jobs', 'GET',
18407
+ path_params,
18408
+ query_params,
18409
+ header_params,
18410
+ body=body_params,
18411
+ post_params=form_params,
18412
+ files=local_var_files,
18413
+ response_type='DatasetJobs', # noqa: E501
18414
+ auth_settings=auth_settings,
18415
+ async_req=local_var_params.get('async_req'),
18416
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
18417
+ _preload_content=local_var_params.get('_preload_content', True),
18418
+ _request_timeout=local_var_params.get('_request_timeout'),
18419
+ collection_formats=collection_formats)
18420
+
18760
18421
  def get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post(self, cloud_id, **kwargs): # noqa: E501
18761
18422
  """Get Lb Resource # noqa: E501
18762
18423
 
@@ -19667,141 +19328,6 @@ class DefaultApi(object):
19667
19328
  _request_timeout=local_var_params.get('_request_timeout'),
19668
19329
  collection_formats=collection_formats)
19669
19330
 
19670
- def get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get(self, session_id, start_line, end_line, **kwargs): # noqa: E501
19671
- """Get Monitor Logs # noqa: E501
19672
-
19673
- This method makes a synchronous HTTP request by default. To make an
19674
- asynchronous HTTP request, please pass async_req=True
19675
- >>> thread = api.get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get(session_id, start_line, end_line, async_req=True)
19676
- >>> result = thread.get()
19677
-
19678
- :param async_req bool: execute request asynchronously
19679
- :param str session_id: (required)
19680
- :param int start_line: (required)
19681
- :param int end_line: (required)
19682
- :param str extension:
19683
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19684
- be returned without reading/decoding response
19685
- data. Default is True.
19686
- :param _request_timeout: timeout setting for this request. If one
19687
- number provided, it will be total request
19688
- timeout. It can also be a pair (tuple) of
19689
- (connection, read) timeouts.
19690
- :return: LogsoutputResponse
19691
- If the method is called asynchronously,
19692
- returns the request thread.
19693
- """
19694
- kwargs['_return_http_data_only'] = True
19695
- return self.get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get_with_http_info(session_id, start_line, end_line, **kwargs) # noqa: E501
19696
-
19697
- def get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get_with_http_info(self, session_id, start_line, end_line, **kwargs): # noqa: E501
19698
- """Get Monitor Logs # noqa: E501
19699
-
19700
- This method makes a synchronous HTTP request by default. To make an
19701
- asynchronous HTTP request, please pass async_req=True
19702
- >>> thread = api.get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get_with_http_info(session_id, start_line, end_line, async_req=True)
19703
- >>> result = thread.get()
19704
-
19705
- :param async_req bool: execute request asynchronously
19706
- :param str session_id: (required)
19707
- :param int start_line: (required)
19708
- :param int end_line: (required)
19709
- :param str extension:
19710
- :param _return_http_data_only: response data without head status code
19711
- and headers
19712
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19713
- be returned without reading/decoding response
19714
- data. Default is True.
19715
- :param _request_timeout: timeout setting for this request. If one
19716
- number provided, it will be total request
19717
- timeout. It can also be a pair (tuple) of
19718
- (connection, read) timeouts.
19719
- :return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
19720
- If the method is called asynchronously,
19721
- returns the request thread.
19722
- """
19723
-
19724
- local_var_params = locals()
19725
-
19726
- all_params = [
19727
- 'session_id',
19728
- 'start_line',
19729
- 'end_line',
19730
- 'extension'
19731
- ]
19732
- all_params.extend(
19733
- [
19734
- 'async_req',
19735
- '_return_http_data_only',
19736
- '_preload_content',
19737
- '_request_timeout'
19738
- ]
19739
- )
19740
-
19741
- for key, val in six.iteritems(local_var_params['kwargs']):
19742
- if key not in all_params:
19743
- raise ApiTypeError(
19744
- "Got an unexpected keyword argument '%s'"
19745
- " to method get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get" % key
19746
- )
19747
- local_var_params[key] = val
19748
- del local_var_params['kwargs']
19749
- # verify the required parameter 'session_id' is set
19750
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
19751
- local_var_params['session_id'] is None): # noqa: E501
19752
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19753
- # verify the required parameter 'start_line' is set
19754
- if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
19755
- local_var_params['start_line'] is None): # noqa: E501
19756
- raise ApiValueError("Missing the required parameter `start_line` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19757
- # verify the required parameter 'end_line' is set
19758
- if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
19759
- local_var_params['end_line'] is None): # noqa: E501
19760
- raise ApiValueError("Missing the required parameter `end_line` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19761
-
19762
- collection_formats = {}
19763
-
19764
- path_params = {}
19765
- if 'session_id' in local_var_params:
19766
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
19767
-
19768
- query_params = []
19769
- if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
19770
- query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
19771
- if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
19772
- query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
19773
- if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
19774
- query_params.append(('extension', local_var_params['extension'])) # noqa: E501
19775
-
19776
- header_params = {}
19777
-
19778
- form_params = []
19779
- local_var_files = {}
19780
-
19781
- body_params = None
19782
- # HTTP header `Accept`
19783
- header_params['Accept'] = self.api_client.select_header_accept(
19784
- ['application/json']) # noqa: E501
19785
-
19786
- # Authentication setting
19787
- auth_settings = [] # noqa: E501
19788
-
19789
- return self.api_client.call_api(
19790
- '/api/v2/sessions/{session_id}/monitor_logs', 'GET',
19791
- path_params,
19792
- query_params,
19793
- header_params,
19794
- body=body_params,
19795
- post_params=form_params,
19796
- files=local_var_files,
19797
- response_type='LogsoutputResponse', # noqa: E501
19798
- auth_settings=auth_settings,
19799
- async_req=local_var_params.get('async_req'),
19800
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
19801
- _preload_content=local_var_params.get('_preload_content', True),
19802
- _request_timeout=local_var_params.get('_request_timeout'),
19803
- collection_formats=collection_formats)
19804
-
19805
19331
  def get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get(self, session_id, **kwargs): # noqa: E501
19806
19332
  """Get Monitor Logs Archived # noqa: E501
19807
19333
 
@@ -20031,18 +19557,16 @@ class DefaultApi(object):
20031
19557
  _request_timeout=local_var_params.get('_request_timeout'),
20032
19558
  collection_formats=collection_formats)
20033
19559
 
20034
- def get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get(self, session_id, **kwargs): # noqa: E501
20035
- """Get Monitor Logs Stream # noqa: E501
19560
+ def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
19561
+ """Get Organization Metronome Usage Alerts # noqa: E501
20036
19562
 
19563
+ Return the current status of alerts regarding organization's usage # noqa: E501
20037
19564
  This method makes a synchronous HTTP request by default. To make an
20038
19565
  asynchronous HTTP request, please pass async_req=True
20039
- >>> thread = api.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get(session_id, async_req=True)
19566
+ >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(async_req=True)
20040
19567
  >>> result = thread.get()
20041
19568
 
20042
19569
  :param async_req bool: execute request asynchronously
20043
- :param str session_id: (required)
20044
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
20045
- :param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
20046
19570
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20047
19571
  be returned without reading/decoding response
20048
19572
  data. Default is True.
@@ -20050,25 +19574,23 @@ class DefaultApi(object):
20050
19574
  number provided, it will be total request
20051
19575
  timeout. It can also be a pair (tuple) of
20052
19576
  (connection, read) timeouts.
20053
- :return: LogstreamResponse
19577
+ :return: OrganizationusagealertListResponse
20054
19578
  If the method is called asynchronously,
20055
19579
  returns the request thread.
20056
19580
  """
20057
19581
  kwargs['_return_http_data_only'] = True
20058
- return self.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
19582
+ return self.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(**kwargs) # noqa: E501
20059
19583
 
20060
- def get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
20061
- """Get Monitor Logs Stream # noqa: E501
19584
+ def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(self, **kwargs): # noqa: E501
19585
+ """Get Organization Metronome Usage Alerts # noqa: E501
20062
19586
 
19587
+ Return the current status of alerts regarding organization's usage # noqa: E501
20063
19588
  This method makes a synchronous HTTP request by default. To make an
20064
19589
  asynchronous HTTP request, please pass async_req=True
20065
- >>> thread = api.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(session_id, async_req=True)
19590
+ >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(async_req=True)
20066
19591
  >>> result = thread.get()
20067
19592
 
20068
19593
  :param async_req bool: execute request asynchronously
20069
- :param str session_id: (required)
20070
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
20071
- :param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
20072
19594
  :param _return_http_data_only: response data without head status code
20073
19595
  and headers
20074
19596
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20078,7 +19600,7 @@ class DefaultApi(object):
20078
19600
  number provided, it will be total request
20079
19601
  timeout. It can also be a pair (tuple) of
20080
19602
  (connection, read) timeouts.
20081
- :return: tuple(LogstreamResponse, status_code(int), headers(HTTPHeaderDict))
19603
+ :return: tuple(OrganizationusagealertListResponse, status_code(int), headers(HTTPHeaderDict))
20082
19604
  If the method is called asynchronously,
20083
19605
  returns the request thread.
20084
19606
  """
@@ -20086,9 +19608,6 @@ class DefaultApi(object):
20086
19608
  local_var_params = locals()
20087
19609
 
20088
19610
  all_params = [
20089
- 'session_id',
20090
- 'lines',
20091
- 'extension'
20092
19611
  ]
20093
19612
  all_params.extend(
20094
19613
  [
@@ -20103,26 +19622,16 @@ class DefaultApi(object):
20103
19622
  if key not in all_params:
20104
19623
  raise ApiTypeError(
20105
19624
  "Got an unexpected keyword argument '%s'"
20106
- " to method get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get" % key
19625
+ " to method get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get" % key
20107
19626
  )
20108
19627
  local_var_params[key] = val
20109
19628
  del local_var_params['kwargs']
20110
- # verify the required parameter 'session_id' is set
20111
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
20112
- local_var_params['session_id'] is None): # noqa: E501
20113
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get`") # noqa: E501
20114
19629
 
20115
19630
  collection_formats = {}
20116
19631
 
20117
19632
  path_params = {}
20118
- if 'session_id' in local_var_params:
20119
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
20120
19633
 
20121
19634
  query_params = []
20122
- if 'lines' in local_var_params and local_var_params['lines'] is not None: # noqa: E501
20123
- query_params.append(('lines', local_var_params['lines'])) # noqa: E501
20124
- if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
20125
- query_params.append(('extension', local_var_params['extension'])) # noqa: E501
20126
19635
 
20127
19636
  header_params = {}
20128
19637
 
@@ -20138,14 +19647,14 @@ class DefaultApi(object):
20138
19647
  auth_settings = [] # noqa: E501
20139
19648
 
20140
19649
  return self.api_client.call_api(
20141
- '/api/v2/logs/monitor_logs_stream/{session_id}', 'GET',
19650
+ '/api/v2/organization_billing/alerts', 'GET',
20142
19651
  path_params,
20143
19652
  query_params,
20144
19653
  header_params,
20145
19654
  body=body_params,
20146
19655
  post_params=form_params,
20147
19656
  files=local_var_files,
20148
- response_type='LogstreamResponse', # noqa: E501
19657
+ response_type='OrganizationusagealertListResponse', # noqa: E501
20149
19658
  auth_settings=auth_settings,
20150
19659
  async_req=local_var_params.get('async_req'),
20151
19660
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20153,16 +19662,17 @@ class DefaultApi(object):
20153
19662
  _request_timeout=local_var_params.get('_request_timeout'),
20154
19663
  collection_formats=collection_formats)
20155
19664
 
20156
- def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
20157
- """Get Organization Metronome Usage Alerts # noqa: E501
19665
+ def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(self, session_id, **kwargs): # noqa: E501
19666
+ """Get Ping External Services # noqa: E501
20158
19667
 
20159
- Return the current status of alerts regarding organization's usage # noqa: E501
19668
+ Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
20160
19669
  This method makes a synchronous HTTP request by default. To make an
20161
19670
  asynchronous HTTP request, please pass async_req=True
20162
- >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(async_req=True)
19671
+ >>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(session_id, async_req=True)
20163
19672
  >>> result = thread.get()
20164
19673
 
20165
19674
  :param async_req bool: execute request asynchronously
19675
+ :param str session_id: (required)
20166
19676
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20167
19677
  be returned without reading/decoding response
20168
19678
  data. Default is True.
@@ -20170,23 +19680,24 @@ class DefaultApi(object):
20170
19680
  number provided, it will be total request
20171
19681
  timeout. It can also be a pair (tuple) of
20172
19682
  (connection, read) timeouts.
20173
- :return: OrganizationusagealertListResponse
19683
+ :return: ExternalservicestatusresponseResponse
20174
19684
  If the method is called asynchronously,
20175
19685
  returns the request thread.
20176
19686
  """
20177
19687
  kwargs['_return_http_data_only'] = True
20178
- return self.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(**kwargs) # noqa: E501
19688
+ return self.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, **kwargs) # noqa: E501
20179
19689
 
20180
- def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(self, **kwargs): # noqa: E501
20181
- """Get Organization Metronome Usage Alerts # noqa: E501
19690
+ def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(self, session_id, **kwargs): # noqa: E501
19691
+ """Get Ping External Services # noqa: E501
20182
19692
 
20183
- Return the current status of alerts regarding organization's usage # noqa: E501
19693
+ Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
20184
19694
  This method makes a synchronous HTTP request by default. To make an
20185
19695
  asynchronous HTTP request, please pass async_req=True
20186
- >>> thread = api.get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get_with_http_info(async_req=True)
19696
+ >>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, async_req=True)
20187
19697
  >>> result = thread.get()
20188
19698
 
20189
19699
  :param async_req bool: execute request asynchronously
19700
+ :param str session_id: (required)
20190
19701
  :param _return_http_data_only: response data without head status code
20191
19702
  and headers
20192
19703
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20196,7 +19707,7 @@ class DefaultApi(object):
20196
19707
  number provided, it will be total request
20197
19708
  timeout. It can also be a pair (tuple) of
20198
19709
  (connection, read) timeouts.
20199
- :return: tuple(OrganizationusagealertListResponse, status_code(int), headers(HTTPHeaderDict))
19710
+ :return: tuple(ExternalservicestatusresponseResponse, status_code(int), headers(HTTPHeaderDict))
20200
19711
  If the method is called asynchronously,
20201
19712
  returns the request thread.
20202
19713
  """
@@ -20204,6 +19715,7 @@ class DefaultApi(object):
20204
19715
  local_var_params = locals()
20205
19716
 
20206
19717
  all_params = [
19718
+ 'session_id'
20207
19719
  ]
20208
19720
  all_params.extend(
20209
19721
  [
@@ -20218,14 +19730,20 @@ class DefaultApi(object):
20218
19730
  if key not in all_params:
20219
19731
  raise ApiTypeError(
20220
19732
  "Got an unexpected keyword argument '%s'"
20221
- " to method get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get" % key
19733
+ " to method get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get" % key
20222
19734
  )
20223
19735
  local_var_params[key] = val
20224
19736
  del local_var_params['kwargs']
19737
+ # verify the required parameter 'session_id' is set
19738
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
19739
+ local_var_params['session_id'] is None): # noqa: E501
19740
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get`") # noqa: E501
20225
19741
 
20226
19742
  collection_formats = {}
20227
19743
 
20228
19744
  path_params = {}
19745
+ if 'session_id' in local_var_params:
19746
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
20229
19747
 
20230
19748
  query_params = []
20231
19749
 
@@ -20243,14 +19761,14 @@ class DefaultApi(object):
20243
19761
  auth_settings = [] # noqa: E501
20244
19762
 
20245
19763
  return self.api_client.call_api(
20246
- '/api/v2/organization_billing/alerts', 'GET',
19764
+ '/api/v2/sessions/{session_id}/ping_external_services', 'GET',
20247
19765
  path_params,
20248
19766
  query_params,
20249
19767
  header_params,
20250
19768
  body=body_params,
20251
19769
  post_params=form_params,
20252
19770
  files=local_var_files,
20253
- response_type='OrganizationusagealertListResponse', # noqa: E501
19771
+ response_type='ExternalservicestatusresponseResponse', # noqa: E501
20254
19772
  auth_settings=auth_settings,
20255
19773
  async_req=local_var_params.get('async_req'),
20256
19774
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20258,17 +19776,16 @@ class DefaultApi(object):
20258
19776
  _request_timeout=local_var_params.get('_request_timeout'),
20259
19777
  collection_formats=collection_formats)
20260
19778
 
20261
- def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(self, session_id, **kwargs): # noqa: E501
20262
- """Get Ping External Services # noqa: E501
19779
+ def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
19780
+ """Get Project # noqa: E501
20263
19781
 
20264
- Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
20265
19782
  This method makes a synchronous HTTP request by default. To make an
20266
19783
  asynchronous HTTP request, please pass async_req=True
20267
- >>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(session_id, async_req=True)
19784
+ >>> thread = api.get_project_api_v2_projects_project_id_get(project_id, async_req=True)
20268
19785
  >>> result = thread.get()
20269
19786
 
20270
19787
  :param async_req bool: execute request asynchronously
20271
- :param str session_id: (required)
19788
+ :param str project_id: (required)
20272
19789
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20273
19790
  be returned without reading/decoding response
20274
19791
  data. Default is True.
@@ -20276,24 +19793,23 @@ class DefaultApi(object):
20276
19793
  number provided, it will be total request
20277
19794
  timeout. It can also be a pair (tuple) of
20278
19795
  (connection, read) timeouts.
20279
- :return: ExternalservicestatusresponseResponse
19796
+ :return: ProjectResponse
20280
19797
  If the method is called asynchronously,
20281
19798
  returns the request thread.
20282
19799
  """
20283
19800
  kwargs['_return_http_data_only'] = True
20284
- return self.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, **kwargs) # noqa: E501
19801
+ return self.get_project_api_v2_projects_project_id_get_with_http_info(project_id, **kwargs) # noqa: E501
20285
19802
 
20286
- def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(self, session_id, **kwargs): # noqa: E501
20287
- """Get Ping External Services # noqa: E501
19803
+ def get_project_api_v2_projects_project_id_get_with_http_info(self, project_id, **kwargs): # noqa: E501
19804
+ """Get Project # noqa: E501
20288
19805
 
20289
- Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
20290
19806
  This method makes a synchronous HTTP request by default. To make an
20291
19807
  asynchronous HTTP request, please pass async_req=True
20292
- >>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, async_req=True)
19808
+ >>> thread = api.get_project_api_v2_projects_project_id_get_with_http_info(project_id, async_req=True)
20293
19809
  >>> result = thread.get()
20294
19810
 
20295
19811
  :param async_req bool: execute request asynchronously
20296
- :param str session_id: (required)
19812
+ :param str project_id: (required)
20297
19813
  :param _return_http_data_only: response data without head status code
20298
19814
  and headers
20299
19815
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20303,7 +19819,7 @@ class DefaultApi(object):
20303
19819
  number provided, it will be total request
20304
19820
  timeout. It can also be a pair (tuple) of
20305
19821
  (connection, read) timeouts.
20306
- :return: tuple(ExternalservicestatusresponseResponse, status_code(int), headers(HTTPHeaderDict))
19822
+ :return: tuple(ProjectResponse, status_code(int), headers(HTTPHeaderDict))
20307
19823
  If the method is called asynchronously,
20308
19824
  returns the request thread.
20309
19825
  """
@@ -20311,7 +19827,7 @@ class DefaultApi(object):
20311
19827
  local_var_params = locals()
20312
19828
 
20313
19829
  all_params = [
20314
- 'session_id'
19830
+ 'project_id'
20315
19831
  ]
20316
19832
  all_params.extend(
20317
19833
  [
@@ -20326,20 +19842,20 @@ class DefaultApi(object):
20326
19842
  if key not in all_params:
20327
19843
  raise ApiTypeError(
20328
19844
  "Got an unexpected keyword argument '%s'"
20329
- " to method get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get" % key
19845
+ " to method get_project_api_v2_projects_project_id_get" % key
20330
19846
  )
20331
19847
  local_var_params[key] = val
20332
19848
  del local_var_params['kwargs']
20333
- # verify the required parameter 'session_id' is set
20334
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
20335
- local_var_params['session_id'] is None): # noqa: E501
20336
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get`") # noqa: E501
19849
+ # verify the required parameter 'project_id' is set
19850
+ if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
19851
+ local_var_params['project_id'] is None): # noqa: E501
19852
+ raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_api_v2_projects_project_id_get`") # noqa: E501
20337
19853
 
20338
19854
  collection_formats = {}
20339
19855
 
20340
19856
  path_params = {}
20341
- if 'session_id' in local_var_params:
20342
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
19857
+ if 'project_id' in local_var_params:
19858
+ path_params['project_id'] = local_var_params['project_id'] # noqa: E501
20343
19859
 
20344
19860
  query_params = []
20345
19861
 
@@ -20357,14 +19873,14 @@ class DefaultApi(object):
20357
19873
  auth_settings = [] # noqa: E501
20358
19874
 
20359
19875
  return self.api_client.call_api(
20360
- '/api/v2/sessions/{session_id}/ping_external_services', 'GET',
19876
+ '/api/v2/projects/{project_id}', 'GET',
20361
19877
  path_params,
20362
19878
  query_params,
20363
19879
  header_params,
20364
19880
  body=body_params,
20365
19881
  post_params=form_params,
20366
19882
  files=local_var_files,
20367
- response_type='ExternalservicestatusresponseResponse', # noqa: E501
19883
+ response_type='ProjectResponse', # noqa: E501
20368
19884
  auth_settings=auth_settings,
20369
19885
  async_req=local_var_params.get('async_req'),
20370
19886
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20372,12 +19888,12 @@ class DefaultApi(object):
20372
19888
  _request_timeout=local_var_params.get('_request_timeout'),
20373
19889
  collection_formats=collection_formats)
20374
19890
 
20375
- def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
20376
- """Get Project # noqa: E501
19891
+ def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(self, project_id, **kwargs): # noqa: E501
19892
+ """Get Project Default Session Name # noqa: E501
20377
19893
 
20378
19894
  This method makes a synchronous HTTP request by default. To make an
20379
19895
  asynchronous HTTP request, please pass async_req=True
20380
- >>> thread = api.get_project_api_v2_projects_project_id_get(project_id, async_req=True)
19896
+ >>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(project_id, async_req=True)
20381
19897
  >>> result = thread.get()
20382
19898
 
20383
19899
  :param async_req bool: execute request asynchronously
@@ -20389,19 +19905,19 @@ class DefaultApi(object):
20389
19905
  number provided, it will be total request
20390
19906
  timeout. It can also be a pair (tuple) of
20391
19907
  (connection, read) timeouts.
20392
- :return: ProjectResponse
19908
+ :return: ProjectdefaultsessionnameResponse
20393
19909
  If the method is called asynchronously,
20394
19910
  returns the request thread.
20395
19911
  """
20396
19912
  kwargs['_return_http_data_only'] = True
20397
- return self.get_project_api_v2_projects_project_id_get_with_http_info(project_id, **kwargs) # noqa: E501
19913
+ return self.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, **kwargs) # noqa: E501
20398
19914
 
20399
- def get_project_api_v2_projects_project_id_get_with_http_info(self, project_id, **kwargs): # noqa: E501
20400
- """Get Project # noqa: E501
19915
+ def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(self, project_id, **kwargs): # noqa: E501
19916
+ """Get Project Default Session Name # noqa: E501
20401
19917
 
20402
19918
  This method makes a synchronous HTTP request by default. To make an
20403
19919
  asynchronous HTTP request, please pass async_req=True
20404
- >>> thread = api.get_project_api_v2_projects_project_id_get_with_http_info(project_id, async_req=True)
19920
+ >>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, async_req=True)
20405
19921
  >>> result = thread.get()
20406
19922
 
20407
19923
  :param async_req bool: execute request asynchronously
@@ -20415,7 +19931,7 @@ class DefaultApi(object):
20415
19931
  number provided, it will be total request
20416
19932
  timeout. It can also be a pair (tuple) of
20417
19933
  (connection, read) timeouts.
20418
- :return: tuple(ProjectResponse, status_code(int), headers(HTTPHeaderDict))
19934
+ :return: tuple(ProjectdefaultsessionnameResponse, status_code(int), headers(HTTPHeaderDict))
20419
19935
  If the method is called asynchronously,
20420
19936
  returns the request thread.
20421
19937
  """
@@ -20438,14 +19954,14 @@ class DefaultApi(object):
20438
19954
  if key not in all_params:
20439
19955
  raise ApiTypeError(
20440
19956
  "Got an unexpected keyword argument '%s'"
20441
- " to method get_project_api_v2_projects_project_id_get" % key
19957
+ " to method get_project_default_session_name_api_v2_projects_project_id_default_session_name_get" % key
20442
19958
  )
20443
19959
  local_var_params[key] = val
20444
19960
  del local_var_params['kwargs']
20445
19961
  # verify the required parameter 'project_id' is set
20446
19962
  if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
20447
19963
  local_var_params['project_id'] is None): # noqa: E501
20448
- raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_api_v2_projects_project_id_get`") # noqa: E501
19964
+ raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_default_session_name_api_v2_projects_project_id_default_session_name_get`") # noqa: E501
20449
19965
 
20450
19966
  collection_formats = {}
20451
19967
 
@@ -20469,14 +19985,14 @@ class DefaultApi(object):
20469
19985
  auth_settings = [] # noqa: E501
20470
19986
 
20471
19987
  return self.api_client.call_api(
20472
- '/api/v2/projects/{project_id}', 'GET',
19988
+ '/api/v2/projects/{project_id}/default_session_name', 'GET',
20473
19989
  path_params,
20474
19990
  query_params,
20475
19991
  header_params,
20476
19992
  body=body_params,
20477
19993
  post_params=form_params,
20478
19994
  files=local_var_files,
20479
- response_type='ProjectResponse', # noqa: E501
19995
+ response_type='ProjectdefaultsessionnameResponse', # noqa: E501
20480
19996
  auth_settings=auth_settings,
20481
19997
  async_req=local_var_params.get('async_req'),
20482
19998
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20484,16 +20000,16 @@ class DefaultApi(object):
20484
20000
  _request_timeout=local_var_params.get('_request_timeout'),
20485
20001
  collection_formats=collection_formats)
20486
20002
 
20487
- def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(self, project_id, **kwargs): # noqa: E501
20488
- """Get Project Default Session Name # noqa: E501
20003
+ def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
20004
+ """Get Public Identifier # noqa: E501
20489
20005
 
20490
20006
  This method makes a synchronous HTTP request by default. To make an
20491
20007
  asynchronous HTTP request, please pass async_req=True
20492
- >>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(project_id, async_req=True)
20008
+ >>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get(organization_name, async_req=True)
20493
20009
  >>> result = thread.get()
20494
20010
 
20495
20011
  :param async_req bool: execute request asynchronously
20496
- :param str project_id: (required)
20012
+ :param str organization_name: (required)
20497
20013
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20498
20014
  be returned without reading/decoding response
20499
20015
  data. Default is True.
@@ -20501,23 +20017,23 @@ class DefaultApi(object):
20501
20017
  number provided, it will be total request
20502
20018
  timeout. It can also be a pair (tuple) of
20503
20019
  (connection, read) timeouts.
20504
- :return: ProjectdefaultsessionnameResponse
20020
+ :return: OrganizationpublicidentifierResponse
20505
20021
  If the method is called asynchronously,
20506
20022
  returns the request thread.
20507
20023
  """
20508
20024
  kwargs['_return_http_data_only'] = True
20509
- return self.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, **kwargs) # noqa: E501
20025
+ return self.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, **kwargs) # noqa: E501
20510
20026
 
20511
- def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(self, project_id, **kwargs): # noqa: E501
20512
- """Get Project Default Session Name # noqa: E501
20027
+ def get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(self, organization_name, **kwargs): # noqa: E501
20028
+ """Get Public Identifier # noqa: E501
20513
20029
 
20514
20030
  This method makes a synchronous HTTP request by default. To make an
20515
20031
  asynchronous HTTP request, please pass async_req=True
20516
- >>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, async_req=True)
20032
+ >>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, async_req=True)
20517
20033
  >>> result = thread.get()
20518
20034
 
20519
20035
  :param async_req bool: execute request asynchronously
20520
- :param str project_id: (required)
20036
+ :param str organization_name: (required)
20521
20037
  :param _return_http_data_only: response data without head status code
20522
20038
  and headers
20523
20039
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20527,7 +20043,7 @@ class DefaultApi(object):
20527
20043
  number provided, it will be total request
20528
20044
  timeout. It can also be a pair (tuple) of
20529
20045
  (connection, read) timeouts.
20530
- :return: tuple(ProjectdefaultsessionnameResponse, status_code(int), headers(HTTPHeaderDict))
20046
+ :return: tuple(OrganizationpublicidentifierResponse, status_code(int), headers(HTTPHeaderDict))
20531
20047
  If the method is called asynchronously,
20532
20048
  returns the request thread.
20533
20049
  """
@@ -20535,7 +20051,7 @@ class DefaultApi(object):
20535
20051
  local_var_params = locals()
20536
20052
 
20537
20053
  all_params = [
20538
- 'project_id'
20054
+ 'organization_name'
20539
20055
  ]
20540
20056
  all_params.extend(
20541
20057
  [
@@ -20550,22 +20066,22 @@ class DefaultApi(object):
20550
20066
  if key not in all_params:
20551
20067
  raise ApiTypeError(
20552
20068
  "Got an unexpected keyword argument '%s'"
20553
- " to method get_project_default_session_name_api_v2_projects_project_id_default_session_name_get" % key
20069
+ " to method get_public_identifier_api_v2_organizations_public_identifier_get" % key
20554
20070
  )
20555
20071
  local_var_params[key] = val
20556
20072
  del local_var_params['kwargs']
20557
- # verify the required parameter 'project_id' is set
20558
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
20559
- local_var_params['project_id'] is None): # noqa: E501
20560
- raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_default_session_name_api_v2_projects_project_id_default_session_name_get`") # noqa: E501
20073
+ # verify the required parameter 'organization_name' is set
20074
+ if self.api_client.client_side_validation and ('organization_name' not in local_var_params or # noqa: E501
20075
+ local_var_params['organization_name'] is None): # noqa: E501
20076
+ raise ApiValueError("Missing the required parameter `organization_name` when calling `get_public_identifier_api_v2_organizations_public_identifier_get`") # noqa: E501
20561
20077
 
20562
20078
  collection_formats = {}
20563
20079
 
20564
20080
  path_params = {}
20565
- if 'project_id' in local_var_params:
20566
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
20567
20081
 
20568
20082
  query_params = []
20083
+ if 'organization_name' in local_var_params and local_var_params['organization_name'] is not None: # noqa: E501
20084
+ query_params.append(('organization_name', local_var_params['organization_name'])) # noqa: E501
20569
20085
 
20570
20086
  header_params = {}
20571
20087
 
@@ -20581,14 +20097,14 @@ class DefaultApi(object):
20581
20097
  auth_settings = [] # noqa: E501
20582
20098
 
20583
20099
  return self.api_client.call_api(
20584
- '/api/v2/projects/{project_id}/default_session_name', 'GET',
20100
+ '/api/v2/organizations/public_identifier', 'GET',
20585
20101
  path_params,
20586
20102
  query_params,
20587
20103
  header_params,
20588
20104
  body=body_params,
20589
20105
  post_params=form_params,
20590
20106
  files=local_var_files,
20591
- response_type='ProjectdefaultsessionnameResponse', # noqa: E501
20107
+ response_type='OrganizationpublicidentifierResponse', # noqa: E501
20592
20108
  auth_settings=auth_settings,
20593
20109
  async_req=local_var_params.get('async_req'),
20594
20110
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20596,17 +20112,17 @@ class DefaultApi(object):
20596
20112
  _request_timeout=local_var_params.get('_request_timeout'),
20597
20113
  collection_formats=collection_formats)
20598
20114
 
20599
- def get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get(self, project_id, **kwargs): # noqa: E501
20600
- """Get Project Latest Cluster Config # noqa: E501
20115
+ def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(self, **kwargs): # noqa: E501
20116
+ """Get Recent Cluster Compute Configs # noqa: E501
20601
20117
 
20602
- Returns the cluster_config saved at the project level. # noqa: E501
20118
+ Retrieves recently used cluster compute configs for the current logged in user # noqa: E501
20603
20119
  This method makes a synchronous HTTP request by default. To make an
20604
20120
  asynchronous HTTP request, please pass async_req=True
20605
- >>> thread = api.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get(project_id, async_req=True)
20121
+ >>> thread = api.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(async_req=True)
20606
20122
  >>> result = thread.get()
20607
20123
 
20608
20124
  :param async_req bool: execute request asynchronously
20609
- :param str project_id: (required)
20125
+ :param int count: the number of recent activity elements to fetch
20610
20126
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20611
20127
  be returned without reading/decoding response
20612
20128
  data. Default is True.
@@ -20614,24 +20130,24 @@ class DefaultApi(object):
20614
20130
  number provided, it will be total request
20615
20131
  timeout. It can also be a pair (tuple) of
20616
20132
  (connection, read) timeouts.
20617
- :return: ClusterconfigResponse
20133
+ :return: MinicomputetemplateListResponse
20618
20134
  If the method is called asynchronously,
20619
20135
  returns the request thread.
20620
20136
  """
20621
20137
  kwargs['_return_http_data_only'] = True
20622
- return self.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(project_id, **kwargs) # noqa: E501
20138
+ return self.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(**kwargs) # noqa: E501
20623
20139
 
20624
- def get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(self, project_id, **kwargs): # noqa: E501
20625
- """Get Project Latest Cluster Config # noqa: E501
20140
+ def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(self, **kwargs): # noqa: E501
20141
+ """Get Recent Cluster Compute Configs # noqa: E501
20626
20142
 
20627
- Returns the cluster_config saved at the project level. # noqa: E501
20143
+ Retrieves recently used cluster compute configs for the current logged in user # noqa: E501
20628
20144
  This method makes a synchronous HTTP request by default. To make an
20629
20145
  asynchronous HTTP request, please pass async_req=True
20630
- >>> thread = api.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(project_id, async_req=True)
20146
+ >>> thread = api.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(async_req=True)
20631
20147
  >>> result = thread.get()
20632
20148
 
20633
20149
  :param async_req bool: execute request asynchronously
20634
- :param str project_id: (required)
20150
+ :param int count: the number of recent activity elements to fetch
20635
20151
  :param _return_http_data_only: response data without head status code
20636
20152
  and headers
20637
20153
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20641,7 +20157,7 @@ class DefaultApi(object):
20641
20157
  number provided, it will be total request
20642
20158
  timeout. It can also be a pair (tuple) of
20643
20159
  (connection, read) timeouts.
20644
- :return: tuple(ClusterconfigResponse, status_code(int), headers(HTTPHeaderDict))
20160
+ :return: tuple(MinicomputetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
20645
20161
  If the method is called asynchronously,
20646
20162
  returns the request thread.
20647
20163
  """
@@ -20649,7 +20165,7 @@ class DefaultApi(object):
20649
20165
  local_var_params = locals()
20650
20166
 
20651
20167
  all_params = [
20652
- 'project_id'
20168
+ 'count'
20653
20169
  ]
20654
20170
  all_params.extend(
20655
20171
  [
@@ -20664,22 +20180,18 @@ class DefaultApi(object):
20664
20180
  if key not in all_params:
20665
20181
  raise ApiTypeError(
20666
20182
  "Got an unexpected keyword argument '%s'"
20667
- " to method get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get" % key
20183
+ " to method get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get" % key
20668
20184
  )
20669
20185
  local_var_params[key] = val
20670
20186
  del local_var_params['kwargs']
20671
- # verify the required parameter 'project_id' is set
20672
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
20673
- local_var_params['project_id'] is None): # noqa: E501
20674
- raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get`") # noqa: E501
20675
20187
 
20676
20188
  collection_formats = {}
20677
20189
 
20678
20190
  path_params = {}
20679
- if 'project_id' in local_var_params:
20680
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
20681
20191
 
20682
20192
  query_params = []
20193
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
20194
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
20683
20195
 
20684
20196
  header_params = {}
20685
20197
 
@@ -20695,14 +20207,14 @@ class DefaultApi(object):
20695
20207
  auth_settings = [] # noqa: E501
20696
20208
 
20697
20209
  return self.api_client.call_api(
20698
- '/api/v2/projects/{project_id}/latest_cluster_config', 'GET',
20210
+ '/api/v2/recent_activity/cluster_compute_configs', 'GET',
20699
20211
  path_params,
20700
20212
  query_params,
20701
20213
  header_params,
20702
20214
  body=body_params,
20703
20215
  post_params=form_params,
20704
20216
  files=local_var_files,
20705
- response_type='ClusterconfigResponse', # noqa: E501
20217
+ response_type='MinicomputetemplateListResponse', # noqa: E501
20706
20218
  auth_settings=auth_settings,
20707
20219
  async_req=local_var_params.get('async_req'),
20708
20220
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20710,16 +20222,17 @@ class DefaultApi(object):
20710
20222
  _request_timeout=local_var_params.get('_request_timeout'),
20711
20223
  collection_formats=collection_formats)
20712
20224
 
20713
- def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
20714
- """Get Public Identifier # noqa: E501
20225
+ def get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get(self, **kwargs): # noqa: E501
20226
+ """Get Recent Cluster Environments # noqa: E501
20715
20227
 
20228
+ Retrieves recently used cluster environment for the current logged in user # noqa: E501
20716
20229
  This method makes a synchronous HTTP request by default. To make an
20717
20230
  asynchronous HTTP request, please pass async_req=True
20718
- >>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get(organization_name, async_req=True)
20231
+ >>> thread = api.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get(async_req=True)
20719
20232
  >>> result = thread.get()
20720
20233
 
20721
20234
  :param async_req bool: execute request asynchronously
20722
- :param str organization_name: (required)
20235
+ :param int count: the number of recent activity elements to fetch
20723
20236
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20724
20237
  be returned without reading/decoding response
20725
20238
  data. Default is True.
@@ -20727,23 +20240,24 @@ class DefaultApi(object):
20727
20240
  number provided, it will be total request
20728
20241
  timeout. It can also be a pair (tuple) of
20729
20242
  (connection, read) timeouts.
20730
- :return: OrganizationpublicidentifierResponse
20243
+ :return: MinibuildListResponse
20731
20244
  If the method is called asynchronously,
20732
20245
  returns the request thread.
20733
20246
  """
20734
20247
  kwargs['_return_http_data_only'] = True
20735
- return self.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, **kwargs) # noqa: E501
20248
+ return self.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(**kwargs) # noqa: E501
20736
20249
 
20737
- def get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(self, organization_name, **kwargs): # noqa: E501
20738
- """Get Public Identifier # noqa: E501
20250
+ def get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(self, **kwargs): # noqa: E501
20251
+ """Get Recent Cluster Environments # noqa: E501
20739
20252
 
20253
+ Retrieves recently used cluster environment for the current logged in user # noqa: E501
20740
20254
  This method makes a synchronous HTTP request by default. To make an
20741
20255
  asynchronous HTTP request, please pass async_req=True
20742
- >>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, async_req=True)
20256
+ >>> thread = api.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(async_req=True)
20743
20257
  >>> result = thread.get()
20744
20258
 
20745
20259
  :param async_req bool: execute request asynchronously
20746
- :param str organization_name: (required)
20260
+ :param int count: the number of recent activity elements to fetch
20747
20261
  :param _return_http_data_only: response data without head status code
20748
20262
  and headers
20749
20263
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20753,7 +20267,7 @@ class DefaultApi(object):
20753
20267
  number provided, it will be total request
20754
20268
  timeout. It can also be a pair (tuple) of
20755
20269
  (connection, read) timeouts.
20756
- :return: tuple(OrganizationpublicidentifierResponse, status_code(int), headers(HTTPHeaderDict))
20270
+ :return: tuple(MinibuildListResponse, status_code(int), headers(HTTPHeaderDict))
20757
20271
  If the method is called asynchronously,
20758
20272
  returns the request thread.
20759
20273
  """
@@ -20761,7 +20275,7 @@ class DefaultApi(object):
20761
20275
  local_var_params = locals()
20762
20276
 
20763
20277
  all_params = [
20764
- 'organization_name'
20278
+ 'count'
20765
20279
  ]
20766
20280
  all_params.extend(
20767
20281
  [
@@ -20776,22 +20290,18 @@ class DefaultApi(object):
20776
20290
  if key not in all_params:
20777
20291
  raise ApiTypeError(
20778
20292
  "Got an unexpected keyword argument '%s'"
20779
- " to method get_public_identifier_api_v2_organizations_public_identifier_get" % key
20293
+ " to method get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get" % key
20780
20294
  )
20781
20295
  local_var_params[key] = val
20782
20296
  del local_var_params['kwargs']
20783
- # verify the required parameter 'organization_name' is set
20784
- if self.api_client.client_side_validation and ('organization_name' not in local_var_params or # noqa: E501
20785
- local_var_params['organization_name'] is None): # noqa: E501
20786
- raise ApiValueError("Missing the required parameter `organization_name` when calling `get_public_identifier_api_v2_organizations_public_identifier_get`") # noqa: E501
20787
20297
 
20788
20298
  collection_formats = {}
20789
20299
 
20790
20300
  path_params = {}
20791
20301
 
20792
20302
  query_params = []
20793
- if 'organization_name' in local_var_params and local_var_params['organization_name'] is not None: # noqa: E501
20794
- query_params.append(('organization_name', local_var_params['organization_name'])) # noqa: E501
20303
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
20304
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
20795
20305
 
20796
20306
  header_params = {}
20797
20307
 
@@ -20807,14 +20317,14 @@ class DefaultApi(object):
20807
20317
  auth_settings = [] # noqa: E501
20808
20318
 
20809
20319
  return self.api_client.call_api(
20810
- '/api/v2/organizations/public_identifier', 'GET',
20320
+ '/api/v2/recent_activity/cluster_environment_builds', 'GET',
20811
20321
  path_params,
20812
20322
  query_params,
20813
20323
  header_params,
20814
20324
  body=body_params,
20815
20325
  post_params=form_params,
20816
20326
  files=local_var_files,
20817
- response_type='OrganizationpublicidentifierResponse', # noqa: E501
20327
+ response_type='MinibuildListResponse', # noqa: E501
20818
20328
  auth_settings=auth_settings,
20819
20329
  async_req=local_var_params.get('async_req'),
20820
20330
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20822,13 +20332,13 @@ class DefaultApi(object):
20822
20332
  _request_timeout=local_var_params.get('_request_timeout'),
20823
20333
  collection_formats=collection_formats)
20824
20334
 
20825
- def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(self, **kwargs): # noqa: E501
20826
- """Get Recent Cluster Compute Configs # noqa: E501
20335
+ def get_recent_projects_api_v2_recent_activity_projects_get(self, **kwargs): # noqa: E501
20336
+ """Get Recent Projects # noqa: E501
20827
20337
 
20828
- Retrieves recently used cluster compute configs for the current logged in user # noqa: E501
20338
+ Retrieves recently used projects for the current logged in user # noqa: E501
20829
20339
  This method makes a synchronous HTTP request by default. To make an
20830
20340
  asynchronous HTTP request, please pass async_req=True
20831
- >>> thread = api.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(async_req=True)
20341
+ >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get(async_req=True)
20832
20342
  >>> result = thread.get()
20833
20343
 
20834
20344
  :param async_req bool: execute request asynchronously
@@ -20840,20 +20350,20 @@ class DefaultApi(object):
20840
20350
  number provided, it will be total request
20841
20351
  timeout. It can also be a pair (tuple) of
20842
20352
  (connection, read) timeouts.
20843
- :return: MinicomputetemplateListResponse
20353
+ :return: MiniprojectListResponse
20844
20354
  If the method is called asynchronously,
20845
20355
  returns the request thread.
20846
20356
  """
20847
20357
  kwargs['_return_http_data_only'] = True
20848
- return self.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(**kwargs) # noqa: E501
20358
+ return self.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(**kwargs) # noqa: E501
20849
20359
 
20850
- def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(self, **kwargs): # noqa: E501
20851
- """Get Recent Cluster Compute Configs # noqa: E501
20360
+ def get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(self, **kwargs): # noqa: E501
20361
+ """Get Recent Projects # noqa: E501
20852
20362
 
20853
- Retrieves recently used cluster compute configs for the current logged in user # noqa: E501
20363
+ Retrieves recently used projects for the current logged in user # noqa: E501
20854
20364
  This method makes a synchronous HTTP request by default. To make an
20855
20365
  asynchronous HTTP request, please pass async_req=True
20856
- >>> thread = api.get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get_with_http_info(async_req=True)
20366
+ >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(async_req=True)
20857
20367
  >>> result = thread.get()
20858
20368
 
20859
20369
  :param async_req bool: execute request asynchronously
@@ -20867,227 +20377,7 @@ class DefaultApi(object):
20867
20377
  number provided, it will be total request
20868
20378
  timeout. It can also be a pair (tuple) of
20869
20379
  (connection, read) timeouts.
20870
- :return: tuple(MinicomputetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
20871
- If the method is called asynchronously,
20872
- returns the request thread.
20873
- """
20874
-
20875
- local_var_params = locals()
20876
-
20877
- all_params = [
20878
- 'count'
20879
- ]
20880
- all_params.extend(
20881
- [
20882
- 'async_req',
20883
- '_return_http_data_only',
20884
- '_preload_content',
20885
- '_request_timeout'
20886
- ]
20887
- )
20888
-
20889
- for key, val in six.iteritems(local_var_params['kwargs']):
20890
- if key not in all_params:
20891
- raise ApiTypeError(
20892
- "Got an unexpected keyword argument '%s'"
20893
- " to method get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get" % key
20894
- )
20895
- local_var_params[key] = val
20896
- del local_var_params['kwargs']
20897
-
20898
- collection_formats = {}
20899
-
20900
- path_params = {}
20901
-
20902
- query_params = []
20903
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
20904
- query_params.append(('count', local_var_params['count'])) # noqa: E501
20905
-
20906
- header_params = {}
20907
-
20908
- form_params = []
20909
- local_var_files = {}
20910
-
20911
- body_params = None
20912
- # HTTP header `Accept`
20913
- header_params['Accept'] = self.api_client.select_header_accept(
20914
- ['application/json']) # noqa: E501
20915
-
20916
- # Authentication setting
20917
- auth_settings = [] # noqa: E501
20918
-
20919
- return self.api_client.call_api(
20920
- '/api/v2/recent_activity/cluster_compute_configs', 'GET',
20921
- path_params,
20922
- query_params,
20923
- header_params,
20924
- body=body_params,
20925
- post_params=form_params,
20926
- files=local_var_files,
20927
- response_type='MinicomputetemplateListResponse', # noqa: E501
20928
- auth_settings=auth_settings,
20929
- async_req=local_var_params.get('async_req'),
20930
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20931
- _preload_content=local_var_params.get('_preload_content', True),
20932
- _request_timeout=local_var_params.get('_request_timeout'),
20933
- collection_formats=collection_formats)
20934
-
20935
- def get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get(self, **kwargs): # noqa: E501
20936
- """Get Recent Cluster Environments # noqa: E501
20937
-
20938
- Retrieves recently used cluster environment for the current logged in user # noqa: E501
20939
- This method makes a synchronous HTTP request by default. To make an
20940
- asynchronous HTTP request, please pass async_req=True
20941
- >>> thread = api.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get(async_req=True)
20942
- >>> result = thread.get()
20943
-
20944
- :param async_req bool: execute request asynchronously
20945
- :param int count: the number of recent activity elements to fetch
20946
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20947
- be returned without reading/decoding response
20948
- data. Default is True.
20949
- :param _request_timeout: timeout setting for this request. If one
20950
- number provided, it will be total request
20951
- timeout. It can also be a pair (tuple) of
20952
- (connection, read) timeouts.
20953
- :return: MinibuildListResponse
20954
- If the method is called asynchronously,
20955
- returns the request thread.
20956
- """
20957
- kwargs['_return_http_data_only'] = True
20958
- return self.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(**kwargs) # noqa: E501
20959
-
20960
- def get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(self, **kwargs): # noqa: E501
20961
- """Get Recent Cluster Environments # noqa: E501
20962
-
20963
- Retrieves recently used cluster environment for the current logged in user # noqa: E501
20964
- This method makes a synchronous HTTP request by default. To make an
20965
- asynchronous HTTP request, please pass async_req=True
20966
- >>> thread = api.get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get_with_http_info(async_req=True)
20967
- >>> result = thread.get()
20968
-
20969
- :param async_req bool: execute request asynchronously
20970
- :param int count: the number of recent activity elements to fetch
20971
- :param _return_http_data_only: response data without head status code
20972
- and headers
20973
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20974
- be returned without reading/decoding response
20975
- data. Default is True.
20976
- :param _request_timeout: timeout setting for this request. If one
20977
- number provided, it will be total request
20978
- timeout. It can also be a pair (tuple) of
20979
- (connection, read) timeouts.
20980
- :return: tuple(MinibuildListResponse, status_code(int), headers(HTTPHeaderDict))
20981
- If the method is called asynchronously,
20982
- returns the request thread.
20983
- """
20984
-
20985
- local_var_params = locals()
20986
-
20987
- all_params = [
20988
- 'count'
20989
- ]
20990
- all_params.extend(
20991
- [
20992
- 'async_req',
20993
- '_return_http_data_only',
20994
- '_preload_content',
20995
- '_request_timeout'
20996
- ]
20997
- )
20998
-
20999
- for key, val in six.iteritems(local_var_params['kwargs']):
21000
- if key not in all_params:
21001
- raise ApiTypeError(
21002
- "Got an unexpected keyword argument '%s'"
21003
- " to method get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get" % key
21004
- )
21005
- local_var_params[key] = val
21006
- del local_var_params['kwargs']
21007
-
21008
- collection_formats = {}
21009
-
21010
- path_params = {}
21011
-
21012
- query_params = []
21013
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
21014
- query_params.append(('count', local_var_params['count'])) # noqa: E501
21015
-
21016
- header_params = {}
21017
-
21018
- form_params = []
21019
- local_var_files = {}
21020
-
21021
- body_params = None
21022
- # HTTP header `Accept`
21023
- header_params['Accept'] = self.api_client.select_header_accept(
21024
- ['application/json']) # noqa: E501
21025
-
21026
- # Authentication setting
21027
- auth_settings = [] # noqa: E501
21028
-
21029
- return self.api_client.call_api(
21030
- '/api/v2/recent_activity/cluster_environment_builds', 'GET',
21031
- path_params,
21032
- query_params,
21033
- header_params,
21034
- body=body_params,
21035
- post_params=form_params,
21036
- files=local_var_files,
21037
- response_type='MinibuildListResponse', # noqa: E501
21038
- auth_settings=auth_settings,
21039
- async_req=local_var_params.get('async_req'),
21040
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21041
- _preload_content=local_var_params.get('_preload_content', True),
21042
- _request_timeout=local_var_params.get('_request_timeout'),
21043
- collection_formats=collection_formats)
21044
-
21045
- def get_recent_projects_api_v2_recent_activity_projects_get(self, **kwargs): # noqa: E501
21046
- """Get Recent Projects # noqa: E501
21047
-
21048
- Retrieves recently used projects for the current logged in user # noqa: E501
21049
- This method makes a synchronous HTTP request by default. To make an
21050
- asynchronous HTTP request, please pass async_req=True
21051
- >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get(async_req=True)
21052
- >>> result = thread.get()
21053
-
21054
- :param async_req bool: execute request asynchronously
21055
- :param int count: the number of recent activity elements to fetch
21056
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21057
- be returned without reading/decoding response
21058
- data. Default is True.
21059
- :param _request_timeout: timeout setting for this request. If one
21060
- number provided, it will be total request
21061
- timeout. It can also be a pair (tuple) of
21062
- (connection, read) timeouts.
21063
- :return: MiniprojectListResponse
21064
- If the method is called asynchronously,
21065
- returns the request thread.
21066
- """
21067
- kwargs['_return_http_data_only'] = True
21068
- return self.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(**kwargs) # noqa: E501
21069
-
21070
- def get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(self, **kwargs): # noqa: E501
21071
- """Get Recent Projects # noqa: E501
21072
-
21073
- Retrieves recently used projects for the current logged in user # noqa: E501
21074
- This method makes a synchronous HTTP request by default. To make an
21075
- asynchronous HTTP request, please pass async_req=True
21076
- >>> thread = api.get_recent_projects_api_v2_recent_activity_projects_get_with_http_info(async_req=True)
21077
- >>> result = thread.get()
21078
-
21079
- :param async_req bool: execute request asynchronously
21080
- :param int count: the number of recent activity elements to fetch
21081
- :param _return_http_data_only: response data without head status code
21082
- and headers
21083
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21084
- be returned without reading/decoding response
21085
- data. Default is True.
21086
- :param _request_timeout: timeout setting for this request. If one
21087
- number provided, it will be total request
21088
- timeout. It can also be a pair (tuple) of
21089
- (connection, read) timeouts.
21090
- :return: tuple(MiniprojectListResponse, status_code(int), headers(HTTPHeaderDict))
20380
+ :return: tuple(MiniprojectListResponse, status_code(int), headers(HTTPHeaderDict))
21091
20381
  If the method is called asynchronously,
21092
20382
  returns the request thread.
21093
20383
  """
@@ -21820,123 +21110,6 @@ class DefaultApi(object):
21820
21110
  _request_timeout=local_var_params.get('_request_timeout'),
21821
21111
  collection_formats=collection_formats)
21822
21112
 
21823
- def get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get(self, session_id, **kwargs): # noqa: E501
21824
- """Get Runtime Env Logs Stream # noqa: E501
21825
-
21826
- This method makes a synchronous HTTP request by default. To make an
21827
- asynchronous HTTP request, please pass async_req=True
21828
- >>> thread = api.get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get(session_id, async_req=True)
21829
- >>> result = thread.get()
21830
-
21831
- :param async_req bool: execute request asynchronously
21832
- :param str session_id: (required)
21833
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
21834
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21835
- be returned without reading/decoding response
21836
- data. Default is True.
21837
- :param _request_timeout: timeout setting for this request. If one
21838
- number provided, it will be total request
21839
- timeout. It can also be a pair (tuple) of
21840
- (connection, read) timeouts.
21841
- :return: LogstreamResponse
21842
- If the method is called asynchronously,
21843
- returns the request thread.
21844
- """
21845
- kwargs['_return_http_data_only'] = True
21846
- return self.get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
21847
-
21848
- def get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21849
- """Get Runtime Env Logs Stream # noqa: E501
21850
-
21851
- This method makes a synchronous HTTP request by default. To make an
21852
- asynchronous HTTP request, please pass async_req=True
21853
- >>> thread = api.get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get_with_http_info(session_id, async_req=True)
21854
- >>> result = thread.get()
21855
-
21856
- :param async_req bool: execute request asynchronously
21857
- :param str session_id: (required)
21858
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
21859
- :param _return_http_data_only: response data without head status code
21860
- and headers
21861
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21862
- be returned without reading/decoding response
21863
- data. Default is True.
21864
- :param _request_timeout: timeout setting for this request. If one
21865
- number provided, it will be total request
21866
- timeout. It can also be a pair (tuple) of
21867
- (connection, read) timeouts.
21868
- :return: tuple(LogstreamResponse, status_code(int), headers(HTTPHeaderDict))
21869
- If the method is called asynchronously,
21870
- returns the request thread.
21871
- """
21872
-
21873
- local_var_params = locals()
21874
-
21875
- all_params = [
21876
- 'session_id',
21877
- 'lines'
21878
- ]
21879
- all_params.extend(
21880
- [
21881
- 'async_req',
21882
- '_return_http_data_only',
21883
- '_preload_content',
21884
- '_request_timeout'
21885
- ]
21886
- )
21887
-
21888
- for key, val in six.iteritems(local_var_params['kwargs']):
21889
- if key not in all_params:
21890
- raise ApiTypeError(
21891
- "Got an unexpected keyword argument '%s'"
21892
- " to method get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get" % key
21893
- )
21894
- local_var_params[key] = val
21895
- del local_var_params['kwargs']
21896
- # verify the required parameter 'session_id' is set
21897
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21898
- local_var_params['session_id'] is None): # noqa: E501
21899
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get`") # noqa: E501
21900
-
21901
- collection_formats = {}
21902
-
21903
- path_params = {}
21904
- if 'session_id' in local_var_params:
21905
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21906
-
21907
- query_params = []
21908
- if 'lines' in local_var_params and local_var_params['lines'] is not None: # noqa: E501
21909
- query_params.append(('lines', local_var_params['lines'])) # noqa: E501
21910
-
21911
- header_params = {}
21912
-
21913
- form_params = []
21914
- local_var_files = {}
21915
-
21916
- body_params = None
21917
- # HTTP header `Accept`
21918
- header_params['Accept'] = self.api_client.select_header_accept(
21919
- ['application/json']) # noqa: E501
21920
-
21921
- # Authentication setting
21922
- auth_settings = [] # noqa: E501
21923
-
21924
- return self.api_client.call_api(
21925
- '/api/v2/logs/runtime_env_logs_stream/{session_id}', 'GET',
21926
- path_params,
21927
- query_params,
21928
- header_params,
21929
- body=body_params,
21930
- post_params=form_params,
21931
- files=local_var_files,
21932
- response_type='LogstreamResponse', # noqa: E501
21933
- auth_settings=auth_settings,
21934
- async_req=local_var_params.get('async_req'),
21935
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21936
- _preload_content=local_var_params.get('_preload_content', True),
21937
- _request_timeout=local_var_params.get('_request_timeout'),
21938
- collection_formats=collection_formats)
21939
-
21940
21113
  def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
21941
21114
  """Get Serve Logs Download # noqa: E501
21942
21115
 
@@ -22695,230 +21868,6 @@ class DefaultApi(object):
22695
21868
  _request_timeout=local_var_params.get('_request_timeout'),
22696
21869
  collection_formats=collection_formats)
22697
21870
 
22698
- def get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get(self, session_id, **kwargs): # noqa: E501
22699
- """Get Session Cluster Config # noqa: E501
22700
-
22701
- This method makes a synchronous HTTP request by default. To make an
22702
- asynchronous HTTP request, please pass async_req=True
22703
- >>> thread = api.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get(session_id, async_req=True)
22704
- >>> result = thread.get()
22705
-
22706
- :param async_req bool: execute request asynchronously
22707
- :param str session_id: (required)
22708
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22709
- be returned without reading/decoding response
22710
- data. Default is True.
22711
- :param _request_timeout: timeout setting for this request. If one
22712
- number provided, it will be total request
22713
- timeout. It can also be a pair (tuple) of
22714
- (connection, read) timeouts.
22715
- :return: ClusterconfigResponse
22716
- If the method is called asynchronously,
22717
- returns the request thread.
22718
- """
22719
- kwargs['_return_http_data_only'] = True
22720
- return self.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(session_id, **kwargs) # noqa: E501
22721
-
22722
- def get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(self, session_id, **kwargs): # noqa: E501
22723
- """Get Session Cluster Config # noqa: E501
22724
-
22725
- This method makes a synchronous HTTP request by default. To make an
22726
- asynchronous HTTP request, please pass async_req=True
22727
- >>> thread = api.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(session_id, async_req=True)
22728
- >>> result = thread.get()
22729
-
22730
- :param async_req bool: execute request asynchronously
22731
- :param str session_id: (required)
22732
- :param _return_http_data_only: response data without head status code
22733
- and headers
22734
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22735
- be returned without reading/decoding response
22736
- data. Default is True.
22737
- :param _request_timeout: timeout setting for this request. If one
22738
- number provided, it will be total request
22739
- timeout. It can also be a pair (tuple) of
22740
- (connection, read) timeouts.
22741
- :return: tuple(ClusterconfigResponse, status_code(int), headers(HTTPHeaderDict))
22742
- If the method is called asynchronously,
22743
- returns the request thread.
22744
- """
22745
-
22746
- local_var_params = locals()
22747
-
22748
- all_params = [
22749
- 'session_id'
22750
- ]
22751
- all_params.extend(
22752
- [
22753
- 'async_req',
22754
- '_return_http_data_only',
22755
- '_preload_content',
22756
- '_request_timeout'
22757
- ]
22758
- )
22759
-
22760
- for key, val in six.iteritems(local_var_params['kwargs']):
22761
- if key not in all_params:
22762
- raise ApiTypeError(
22763
- "Got an unexpected keyword argument '%s'"
22764
- " to method get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get" % key
22765
- )
22766
- local_var_params[key] = val
22767
- del local_var_params['kwargs']
22768
- # verify the required parameter 'session_id' is set
22769
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
22770
- local_var_params['session_id'] is None): # noqa: E501
22771
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get`") # noqa: E501
22772
-
22773
- collection_formats = {}
22774
-
22775
- path_params = {}
22776
- if 'session_id' in local_var_params:
22777
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
22778
-
22779
- query_params = []
22780
-
22781
- header_params = {}
22782
-
22783
- form_params = []
22784
- local_var_files = {}
22785
-
22786
- body_params = None
22787
- # HTTP header `Accept`
22788
- header_params['Accept'] = self.api_client.select_header_accept(
22789
- ['application/json']) # noqa: E501
22790
-
22791
- # Authentication setting
22792
- auth_settings = [] # noqa: E501
22793
-
22794
- return self.api_client.call_api(
22795
- '/api/v2/sessions/{session_id}/cluster_config', 'GET',
22796
- path_params,
22797
- query_params,
22798
- header_params,
22799
- body=body_params,
22800
- post_params=form_params,
22801
- files=local_var_files,
22802
- response_type='ClusterconfigResponse', # noqa: E501
22803
- auth_settings=auth_settings,
22804
- async_req=local_var_params.get('async_req'),
22805
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22806
- _preload_content=local_var_params.get('_preload_content', True),
22807
- _request_timeout=local_var_params.get('_request_timeout'),
22808
- collection_formats=collection_formats)
22809
-
22810
- def get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get(self, session_id, **kwargs): # noqa: E501
22811
- """Get Session Cluster Config With Session Idle Timeout # noqa: E501
22812
-
22813
- This method makes a synchronous HTTP request by default. To make an
22814
- asynchronous HTTP request, please pass async_req=True
22815
- >>> thread = api.get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get(session_id, async_req=True)
22816
- >>> result = thread.get()
22817
-
22818
- :param async_req bool: execute request asynchronously
22819
- :param str session_id: (required)
22820
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22821
- be returned without reading/decoding response
22822
- data. Default is True.
22823
- :param _request_timeout: timeout setting for this request. If one
22824
- number provided, it will be total request
22825
- timeout. It can also be a pair (tuple) of
22826
- (connection, read) timeouts.
22827
- :return: ClusterconfigwithsessionidletimeoutResponse
22828
- If the method is called asynchronously,
22829
- returns the request thread.
22830
- """
22831
- kwargs['_return_http_data_only'] = True
22832
- return self.get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get_with_http_info(session_id, **kwargs) # noqa: E501
22833
-
22834
- def get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get_with_http_info(self, session_id, **kwargs): # noqa: E501
22835
- """Get Session Cluster Config With Session Idle Timeout # noqa: E501
22836
-
22837
- This method makes a synchronous HTTP request by default. To make an
22838
- asynchronous HTTP request, please pass async_req=True
22839
- >>> thread = api.get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get_with_http_info(session_id, async_req=True)
22840
- >>> result = thread.get()
22841
-
22842
- :param async_req bool: execute request asynchronously
22843
- :param str session_id: (required)
22844
- :param _return_http_data_only: response data without head status code
22845
- and headers
22846
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22847
- be returned without reading/decoding response
22848
- data. Default is True.
22849
- :param _request_timeout: timeout setting for this request. If one
22850
- number provided, it will be total request
22851
- timeout. It can also be a pair (tuple) of
22852
- (connection, read) timeouts.
22853
- :return: tuple(ClusterconfigwithsessionidletimeoutResponse, status_code(int), headers(HTTPHeaderDict))
22854
- If the method is called asynchronously,
22855
- returns the request thread.
22856
- """
22857
-
22858
- local_var_params = locals()
22859
-
22860
- all_params = [
22861
- 'session_id'
22862
- ]
22863
- all_params.extend(
22864
- [
22865
- 'async_req',
22866
- '_return_http_data_only',
22867
- '_preload_content',
22868
- '_request_timeout'
22869
- ]
22870
- )
22871
-
22872
- for key, val in six.iteritems(local_var_params['kwargs']):
22873
- if key not in all_params:
22874
- raise ApiTypeError(
22875
- "Got an unexpected keyword argument '%s'"
22876
- " to method get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get" % key
22877
- )
22878
- local_var_params[key] = val
22879
- del local_var_params['kwargs']
22880
- # verify the required parameter 'session_id' is set
22881
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
22882
- local_var_params['session_id'] is None): # noqa: E501
22883
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get`") # noqa: E501
22884
-
22885
- collection_formats = {}
22886
-
22887
- path_params = {}
22888
- if 'session_id' in local_var_params:
22889
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
22890
-
22891
- query_params = []
22892
-
22893
- header_params = {}
22894
-
22895
- form_params = []
22896
- local_var_files = {}
22897
-
22898
- body_params = None
22899
- # HTTP header `Accept`
22900
- header_params['Accept'] = self.api_client.select_header_accept(
22901
- ['application/json']) # noqa: E501
22902
-
22903
- # Authentication setting
22904
- auth_settings = [] # noqa: E501
22905
-
22906
- return self.api_client.call_api(
22907
- '/api/v2/sessions/{session_id}/cluster_config_with_session_idle_timeout', 'GET',
22908
- path_params,
22909
- query_params,
22910
- header_params,
22911
- body=body_params,
22912
- post_params=form_params,
22913
- files=local_var_files,
22914
- response_type='ClusterconfigwithsessionidletimeoutResponse', # noqa: E501
22915
- auth_settings=auth_settings,
22916
- async_req=local_var_params.get('async_req'),
22917
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22918
- _preload_content=local_var_params.get('_preload_content', True),
22919
- _request_timeout=local_var_params.get('_request_timeout'),
22920
- collection_formats=collection_formats)
22921
-
22922
21871
  def get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get(self, session_id, session_command_id, **kwargs): # noqa: E501
22923
21872
  """Get Session Command Logs Download # noqa: E501
22924
21873
 
@@ -27940,187 +26889,14 @@ class DefaultApi(object):
27940
26889
  auth_settings = [] # noqa: E501
27941
26890
 
27942
26891
  return self.api_client.call_api(
27943
- '/api/v2/decorated_job_submissions/', 'GET',
27944
- path_params,
27945
- query_params,
27946
- header_params,
27947
- body=body_params,
27948
- post_params=form_params,
27949
- files=local_var_files,
27950
- response_type='DecoratedjobsubmissionListResponse', # noqa: E501
27951
- auth_settings=auth_settings,
27952
- async_req=local_var_params.get('async_req'),
27953
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
27954
- _preload_content=local_var_params.get('_preload_content', True),
27955
- _request_timeout=local_var_params.get('_request_timeout'),
27956
- collection_formats=collection_formats)
27957
-
27958
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get(self, **kwargs): # noqa: E501
27959
- """List Decorated Jobs # noqa: E501
27960
-
27961
- This method makes a synchronous HTTP request by default. To make an
27962
- asynchronous HTTP request, please pass async_req=True
27963
- >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get(async_req=True)
27964
- >>> result = thread.get()
27965
-
27966
- :param async_req bool: execute request asynchronously
27967
- :param str project_id: project_id to filter by
27968
- :param str workspace_id: workspace_id to filter by
27969
- :param str name: name to filter by
27970
- :param list[HaJobStates] state_filter: A list of session states to filter by
27971
- :param HaJobType type_filter: The job type to filter by
27972
- :param str creator_id: filter by creator id
27973
- :param str source_cron_job_id: filter by cron_job_id id
27974
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
27975
- :param str cloud_id: cloud_id to filter by
27976
- :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27977
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
27978
- :param str paging_token:
27979
- :param int count:
27980
- :param _preload_content: if False, the urllib3.HTTPResponse object will
27981
- be returned without reading/decoding response
27982
- data. Default is True.
27983
- :param _request_timeout: timeout setting for this request. If one
27984
- number provided, it will be total request
27985
- timeout. It can also be a pair (tuple) of
27986
- (connection, read) timeouts.
27987
- :return: DecoratedproductionjobListResponse
27988
- If the method is called asynchronously,
27989
- returns the request thread.
27990
- """
27991
- kwargs['_return_http_data_only'] = True
27992
- return self.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(**kwargs) # noqa: E501
27993
-
27994
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(self, **kwargs): # noqa: E501
27995
- """List Decorated Jobs # noqa: E501
27996
-
27997
- This method makes a synchronous HTTP request by default. To make an
27998
- asynchronous HTTP request, please pass async_req=True
27999
- >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(async_req=True)
28000
- >>> result = thread.get()
28001
-
28002
- :param async_req bool: execute request asynchronously
28003
- :param str project_id: project_id to filter by
28004
- :param str workspace_id: workspace_id to filter by
28005
- :param str name: name to filter by
28006
- :param list[HaJobStates] state_filter: A list of session states to filter by
28007
- :param HaJobType type_filter: The job type to filter by
28008
- :param str creator_id: filter by creator id
28009
- :param str source_cron_job_id: filter by cron_job_id id
28010
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28011
- :param str cloud_id: cloud_id to filter by
28012
- :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28013
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28014
- :param str paging_token:
28015
- :param int count:
28016
- :param _return_http_data_only: response data without head status code
28017
- and headers
28018
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28019
- be returned without reading/decoding response
28020
- data. Default is True.
28021
- :param _request_timeout: timeout setting for this request. If one
28022
- number provided, it will be total request
28023
- timeout. It can also be a pair (tuple) of
28024
- (connection, read) timeouts.
28025
- :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
28026
- If the method is called asynchronously,
28027
- returns the request thread.
28028
- """
28029
-
28030
- local_var_params = locals()
28031
-
28032
- all_params = [
28033
- 'project_id',
28034
- 'workspace_id',
28035
- 'name',
28036
- 'state_filter',
28037
- 'type_filter',
28038
- 'creator_id',
28039
- 'source_cron_job_id',
28040
- 'archive_status',
28041
- 'cloud_id',
28042
- 'sort_field',
28043
- 'sort_order',
28044
- 'paging_token',
28045
- 'count'
28046
- ]
28047
- all_params.extend(
28048
- [
28049
- 'async_req',
28050
- '_return_http_data_only',
28051
- '_preload_content',
28052
- '_request_timeout'
28053
- ]
28054
- )
28055
-
28056
- for key, val in six.iteritems(local_var_params['kwargs']):
28057
- if key not in all_params:
28058
- raise ApiTypeError(
28059
- "Got an unexpected keyword argument '%s'"
28060
- " to method list_decorated_jobs_api_v2_decorated_ha_jobs_get" % key
28061
- )
28062
- local_var_params[key] = val
28063
- del local_var_params['kwargs']
28064
-
28065
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28066
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `1000`") # noqa: E501
28067
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28068
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28069
- collection_formats = {}
28070
-
28071
- path_params = {}
28072
-
28073
- query_params = []
28074
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28075
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28076
- if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28077
- query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28078
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28079
- query_params.append(('name', local_var_params['name'])) # noqa: E501
28080
- if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28081
- query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28082
- collection_formats['state_filter'] = 'multi' # noqa: E501
28083
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28084
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28085
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28086
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28087
- if 'source_cron_job_id' in local_var_params and local_var_params['source_cron_job_id'] is not None: # noqa: E501
28088
- query_params.append(('source_cron_job_id', local_var_params['source_cron_job_id'])) # noqa: E501
28089
- if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
28090
- query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
28091
- if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
28092
- query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
28093
- if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28094
- query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28095
- if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
28096
- query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28097
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28098
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28099
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
28100
- query_params.append(('count', local_var_params['count'])) # noqa: E501
28101
-
28102
- header_params = {}
28103
-
28104
- form_params = []
28105
- local_var_files = {}
28106
-
28107
- body_params = None
28108
- # HTTP header `Accept`
28109
- header_params['Accept'] = self.api_client.select_header_accept(
28110
- ['application/json']) # noqa: E501
28111
-
28112
- # Authentication setting
28113
- auth_settings = [] # noqa: E501
28114
-
28115
- return self.api_client.call_api(
28116
- '/api/v2/decorated_ha_jobs/', 'GET',
26892
+ '/api/v2/decorated_job_submissions/', 'GET',
28117
26893
  path_params,
28118
26894
  query_params,
28119
26895
  header_params,
28120
26896
  body=body_params,
28121
26897
  post_params=form_params,
28122
26898
  files=local_var_files,
28123
- response_type='DecoratedproductionjobListResponse', # noqa: E501
26899
+ response_type='DecoratedjobsubmissionListResponse', # noqa: E501
28124
26900
  auth_settings=auth_settings,
28125
26901
  async_req=local_var_params.get('async_req'),
28126
26902
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -28128,27 +26904,26 @@ class DefaultApi(object):
28128
26904
  _request_timeout=local_var_params.get('_request_timeout'),
28129
26905
  collection_formats=collection_formats)
28130
26906
 
28131
- def list_decorated_jobs_api_v2_decorated_jobs_get(self, **kwargs): # noqa: E501
26907
+ def list_decorated_jobs_api_v2_decorated_ha_jobs_get(self, **kwargs): # noqa: E501
28132
26908
  """List Decorated Jobs # noqa: E501
28133
26909
 
28134
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28135
26910
  This method makes a synchronous HTTP request by default. To make an
28136
26911
  asynchronous HTTP request, please pass async_req=True
28137
- >>> thread = api.list_decorated_jobs_api_v2_decorated_jobs_get(async_req=True)
26912
+ >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get(async_req=True)
28138
26913
  >>> result = thread.get()
28139
26914
 
28140
26915
  :param async_req bool: execute request asynchronously
28141
26916
  :param str project_id: project_id to filter by
28142
- :param str runtime_env_id: runtime_env_id to filter by
28143
- :param str cluster_id: cluster_id to filter by
28144
- :param str creator_id: creator_id to filter by
26917
+ :param str workspace_id: workspace_id to filter by
28145
26918
  :param str name: name to filter by
28146
- :param str ha_job_id: ha_job_id to filter by
28147
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28148
- :param list[JobRunType] type_filter: Filter Jobs by their type. Their type is determined by their usage within the product e.g. Interactive sessions, job runs
28149
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28150
- :param str order: 'asc' for ascending, 'desc' for descending
28151
- :param bool include_child_jobs: Whether to include child jobs
26919
+ :param list[HaJobStates] state_filter: A list of session states to filter by
26920
+ :param HaJobType type_filter: The job type to filter by
26921
+ :param str creator_id: filter by creator id
26922
+ :param str source_cron_job_id: filter by cron_job_id id
26923
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
26924
+ :param str cloud_id: cloud_id to filter by
26925
+ :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
26926
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28152
26927
  :param str paging_token:
28153
26928
  :param int count:
28154
26929
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -28158,34 +26933,33 @@ class DefaultApi(object):
28158
26933
  number provided, it will be total request
28159
26934
  timeout. It can also be a pair (tuple) of
28160
26935
  (connection, read) timeouts.
28161
- :return: DecoratedjobListResponse
26936
+ :return: DecoratedproductionjobListResponse
28162
26937
  If the method is called asynchronously,
28163
26938
  returns the request thread.
28164
26939
  """
28165
26940
  kwargs['_return_http_data_only'] = True
28166
- return self.list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(**kwargs) # noqa: E501
26941
+ return self.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(**kwargs) # noqa: E501
28167
26942
 
28168
- def list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(self, **kwargs): # noqa: E501
26943
+ def list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(self, **kwargs): # noqa: E501
28169
26944
  """List Decorated Jobs # noqa: E501
28170
26945
 
28171
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28172
26946
  This method makes a synchronous HTTP request by default. To make an
28173
26947
  asynchronous HTTP request, please pass async_req=True
28174
- >>> thread = api.list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(async_req=True)
26948
+ >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(async_req=True)
28175
26949
  >>> result = thread.get()
28176
26950
 
28177
26951
  :param async_req bool: execute request asynchronously
28178
26952
  :param str project_id: project_id to filter by
28179
- :param str runtime_env_id: runtime_env_id to filter by
28180
- :param str cluster_id: cluster_id to filter by
28181
- :param str creator_id: creator_id to filter by
26953
+ :param str workspace_id: workspace_id to filter by
28182
26954
  :param str name: name to filter by
28183
- :param str ha_job_id: ha_job_id to filter by
28184
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28185
- :param list[JobRunType] type_filter: Filter Jobs by their type. Their type is determined by their usage within the product e.g. Interactive sessions, job runs
28186
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28187
- :param str order: 'asc' for ascending, 'desc' for descending
28188
- :param bool include_child_jobs: Whether to include child jobs
26955
+ :param list[HaJobStates] state_filter: A list of session states to filter by
26956
+ :param HaJobType type_filter: The job type to filter by
26957
+ :param str creator_id: filter by creator id
26958
+ :param str source_cron_job_id: filter by cron_job_id id
26959
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
26960
+ :param str cloud_id: cloud_id to filter by
26961
+ :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
26962
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28189
26963
  :param str paging_token:
28190
26964
  :param int count:
28191
26965
  :param _return_http_data_only: response data without head status code
@@ -28197,7 +26971,7 @@ class DefaultApi(object):
28197
26971
  number provided, it will be total request
28198
26972
  timeout. It can also be a pair (tuple) of
28199
26973
  (connection, read) timeouts.
28200
- :return: tuple(DecoratedjobListResponse, status_code(int), headers(HTTPHeaderDict))
26974
+ :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
28201
26975
  If the method is called asynchronously,
28202
26976
  returns the request thread.
28203
26977
  """
@@ -28206,16 +26980,16 @@ class DefaultApi(object):
28206
26980
 
28207
26981
  all_params = [
28208
26982
  'project_id',
28209
- 'runtime_env_id',
28210
- 'cluster_id',
28211
- 'creator_id',
26983
+ 'workspace_id',
28212
26984
  'name',
28213
- 'ha_job_id',
28214
- 'show_ray_client_runs_only',
28215
- 'type_filter',
28216
26985
  'state_filter',
28217
- 'order',
28218
- 'include_child_jobs',
26986
+ 'type_filter',
26987
+ 'creator_id',
26988
+ 'source_cron_job_id',
26989
+ 'archive_status',
26990
+ 'cloud_id',
26991
+ 'sort_field',
26992
+ 'sort_order',
28219
26993
  'paging_token',
28220
26994
  'count'
28221
26995
  ]
@@ -28232,15 +27006,15 @@ class DefaultApi(object):
28232
27006
  if key not in all_params:
28233
27007
  raise ApiTypeError(
28234
27008
  "Got an unexpected keyword argument '%s'"
28235
- " to method list_decorated_jobs_api_v2_decorated_jobs_get" % key
27009
+ " to method list_decorated_jobs_api_v2_decorated_ha_jobs_get" % key
28236
27010
  )
28237
27011
  local_var_params[key] = val
28238
27012
  del local_var_params['kwargs']
28239
27013
 
28240
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28241
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_jobs_get`, must be a value less than or equal to `50`") # noqa: E501
27014
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
27015
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `1000`") # noqa: E501
28242
27016
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28243
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
27017
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28244
27018
  collection_formats = {}
28245
27019
 
28246
27020
  path_params = {}
@@ -28248,28 +27022,27 @@ class DefaultApi(object):
28248
27022
  query_params = []
28249
27023
  if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28250
27024
  query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28251
- if 'runtime_env_id' in local_var_params and local_var_params['runtime_env_id'] is not None: # noqa: E501
28252
- query_params.append(('runtime_env_id', local_var_params['runtime_env_id'])) # noqa: E501
28253
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28254
- query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28255
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28256
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
27025
+ if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
27026
+ query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28257
27027
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28258
27028
  query_params.append(('name', local_var_params['name'])) # noqa: E501
28259
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28260
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28261
- if 'show_ray_client_runs_only' in local_var_params and local_var_params['show_ray_client_runs_only'] is not None: # noqa: E501
28262
- query_params.append(('show_ray_client_runs_only', local_var_params['show_ray_client_runs_only'])) # noqa: E501
28263
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28264
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28265
- collection_formats['type_filter'] = 'multi' # noqa: E501
28266
27029
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28267
27030
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28268
27031
  collection_formats['state_filter'] = 'multi' # noqa: E501
28269
- if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501
28270
- query_params.append(('order', local_var_params['order'])) # noqa: E501
28271
- if 'include_child_jobs' in local_var_params and local_var_params['include_child_jobs'] is not None: # noqa: E501
28272
- query_params.append(('include_child_jobs', local_var_params['include_child_jobs'])) # noqa: E501
27032
+ if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
27033
+ query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
27034
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
27035
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
27036
+ if 'source_cron_job_id' in local_var_params and local_var_params['source_cron_job_id'] is not None: # noqa: E501
27037
+ query_params.append(('source_cron_job_id', local_var_params['source_cron_job_id'])) # noqa: E501
27038
+ if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
27039
+ query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
27040
+ if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
27041
+ query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
27042
+ if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
27043
+ query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
27044
+ if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
27045
+ query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28273
27046
  if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28274
27047
  query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28275
27048
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
@@ -28289,14 +27062,14 @@ class DefaultApi(object):
28289
27062
  auth_settings = [] # noqa: E501
28290
27063
 
28291
27064
  return self.api_client.call_api(
28292
- '/api/v2/decorated_jobs/', 'GET',
27065
+ '/api/v2/decorated_ha_jobs/', 'GET',
28293
27066
  path_params,
28294
27067
  query_params,
28295
27068
  header_params,
28296
27069
  body=body_params,
28297
27070
  post_params=form_params,
28298
27071
  files=local_var_files,
28299
- response_type='DecoratedjobListResponse', # noqa: E501
27072
+ response_type='DecoratedproductionjobListResponse', # noqa: E501
28300
27073
  auth_settings=auth_settings,
28301
27074
  async_req=local_var_params.get('async_req'),
28302
27075
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -36286,133 +35059,6 @@ class DefaultApi(object):
36286
35059
  _request_timeout=local_var_params.get('_request_timeout'),
36287
35060
  collection_formats=collection_formats)
36288
35061
 
36289
- def setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post(self, session_id, setup_initialize_session_options, **kwargs): # noqa: E501
36290
- """Setup And Initialize Session # noqa: E501
36291
-
36292
- Updates the cluster when `anyscale up` is called. This should be called when /start_empty_session returns second_update_required as True, and after the file mounts are synced with rsync from the CLI. This endpoint runs the initialization/setup commands on the head node of the cluster, and then updates the file mounts and workers in ~/ray_bootstrap_config.yaml. File mounts are added to ~/ray_bootstrap_config.yaml as the last step so files from the product server are not synced to the user cluster. # noqa: E501
36293
- This method makes a synchronous HTTP request by default. To make an
36294
- asynchronous HTTP request, please pass async_req=True
36295
- >>> thread = api.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post(session_id, setup_initialize_session_options, async_req=True)
36296
- >>> result = thread.get()
36297
-
36298
- :param async_req bool: execute request asynchronously
36299
- :param str session_id: (required)
36300
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36301
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36302
- be returned without reading/decoding response
36303
- data. Default is True.
36304
- :param _request_timeout: timeout setting for this request. If one
36305
- number provided, it will be total request
36306
- timeout. It can also be a pair (tuple) of
36307
- (connection, read) timeouts.
36308
- :return: None
36309
- If the method is called asynchronously,
36310
- returns the request thread.
36311
- """
36312
- kwargs['_return_http_data_only'] = True
36313
- return self.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(session_id, setup_initialize_session_options, **kwargs) # noqa: E501
36314
-
36315
- def setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(self, session_id, setup_initialize_session_options, **kwargs): # noqa: E501
36316
- """Setup And Initialize Session # noqa: E501
36317
-
36318
- Updates the cluster when `anyscale up` is called. This should be called when /start_empty_session returns second_update_required as True, and after the file mounts are synced with rsync from the CLI. This endpoint runs the initialization/setup commands on the head node of the cluster, and then updates the file mounts and workers in ~/ray_bootstrap_config.yaml. File mounts are added to ~/ray_bootstrap_config.yaml as the last step so files from the product server are not synced to the user cluster. # noqa: E501
36319
- This method makes a synchronous HTTP request by default. To make an
36320
- asynchronous HTTP request, please pass async_req=True
36321
- >>> thread = api.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(session_id, setup_initialize_session_options, async_req=True)
36322
- >>> result = thread.get()
36323
-
36324
- :param async_req bool: execute request asynchronously
36325
- :param str session_id: (required)
36326
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36327
- :param _return_http_data_only: response data without head status code
36328
- and headers
36329
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36330
- be returned without reading/decoding response
36331
- data. Default is True.
36332
- :param _request_timeout: timeout setting for this request. If one
36333
- number provided, it will be total request
36334
- timeout. It can also be a pair (tuple) of
36335
- (connection, read) timeouts.
36336
- :return: None
36337
- If the method is called asynchronously,
36338
- returns the request thread.
36339
- """
36340
-
36341
- local_var_params = locals()
36342
-
36343
- all_params = [
36344
- 'session_id',
36345
- 'setup_initialize_session_options'
36346
- ]
36347
- all_params.extend(
36348
- [
36349
- 'async_req',
36350
- '_return_http_data_only',
36351
- '_preload_content',
36352
- '_request_timeout'
36353
- ]
36354
- )
36355
-
36356
- for key, val in six.iteritems(local_var_params['kwargs']):
36357
- if key not in all_params:
36358
- raise ApiTypeError(
36359
- "Got an unexpected keyword argument '%s'"
36360
- " to method setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post" % key
36361
- )
36362
- local_var_params[key] = val
36363
- del local_var_params['kwargs']
36364
- # verify the required parameter 'session_id' is set
36365
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
36366
- local_var_params['session_id'] is None): # noqa: E501
36367
- raise ApiValueError("Missing the required parameter `session_id` when calling `setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post`") # noqa: E501
36368
- # verify the required parameter 'setup_initialize_session_options' is set
36369
- if self.api_client.client_side_validation and ('setup_initialize_session_options' not in local_var_params or # noqa: E501
36370
- local_var_params['setup_initialize_session_options'] is None): # noqa: E501
36371
- raise ApiValueError("Missing the required parameter `setup_initialize_session_options` when calling `setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post`") # noqa: E501
36372
-
36373
- collection_formats = {}
36374
-
36375
- path_params = {}
36376
- if 'session_id' in local_var_params:
36377
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
36378
-
36379
- query_params = []
36380
-
36381
- header_params = {}
36382
-
36383
- form_params = []
36384
- local_var_files = {}
36385
-
36386
- body_params = None
36387
- if 'setup_initialize_session_options' in local_var_params:
36388
- body_params = local_var_params['setup_initialize_session_options']
36389
- # HTTP header `Accept`
36390
- header_params['Accept'] = self.api_client.select_header_accept(
36391
- ['application/json']) # noqa: E501
36392
-
36393
- # HTTP header `Content-Type`
36394
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
36395
- ['application/json']) # noqa: E501
36396
-
36397
- # Authentication setting
36398
- auth_settings = [] # noqa: E501
36399
-
36400
- return self.api_client.call_api(
36401
- '/api/v2/sessions/{session_id}/setup_and_initialize_session', 'POST',
36402
- path_params,
36403
- query_params,
36404
- header_params,
36405
- body=body_params,
36406
- post_params=form_params,
36407
- files=local_var_files,
36408
- response_type=None, # noqa: E501
36409
- auth_settings=auth_settings,
36410
- async_req=local_var_params.get('async_req'),
36411
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36412
- _preload_content=local_var_params.get('_preload_content', True),
36413
- _request_timeout=local_var_params.get('_request_timeout'),
36414
- collection_formats=collection_formats)
36415
-
36416
35062
  def show_one_time_password_source_api_v2_users_show_otp_source_post(self, otp, **kwargs): # noqa: E501
36417
35063
  """Show One Time Password Source # noqa: E501
36418
35064
 
@@ -40353,122 +38999,6 @@ class DefaultApi(object):
40353
38999
  _request_timeout=local_var_params.get('_request_timeout'),
40354
39000
  collection_formats=collection_formats)
40355
39001
 
40356
- def validate_cluster_api_v2_sessions_validate_cluster_post(self, body, **kwargs): # noqa: E501
40357
- """Validate Cluster # noqa: E501
40358
-
40359
- This method makes a synchronous HTTP request by default. To make an
40360
- asynchronous HTTP request, please pass async_req=True
40361
- >>> thread = api.validate_cluster_api_v2_sessions_validate_cluster_post(body, async_req=True)
40362
- >>> result = thread.get()
40363
-
40364
- :param async_req bool: execute request asynchronously
40365
- :param object body: (required)
40366
- :param _preload_content: if False, the urllib3.HTTPResponse object will
40367
- be returned without reading/decoding response
40368
- data. Default is True.
40369
- :param _request_timeout: timeout setting for this request. If one
40370
- number provided, it will be total request
40371
- timeout. It can also be a pair (tuple) of
40372
- (connection, read) timeouts.
40373
- :return: None
40374
- If the method is called asynchronously,
40375
- returns the request thread.
40376
- """
40377
- kwargs['_return_http_data_only'] = True
40378
- return self.validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(body, **kwargs) # noqa: E501
40379
-
40380
- def validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(self, body, **kwargs): # noqa: E501
40381
- """Validate Cluster # noqa: E501
40382
-
40383
- This method makes a synchronous HTTP request by default. To make an
40384
- asynchronous HTTP request, please pass async_req=True
40385
- >>> thread = api.validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(body, async_req=True)
40386
- >>> result = thread.get()
40387
-
40388
- :param async_req bool: execute request asynchronously
40389
- :param object body: (required)
40390
- :param _return_http_data_only: response data without head status code
40391
- and headers
40392
- :param _preload_content: if False, the urllib3.HTTPResponse object will
40393
- be returned without reading/decoding response
40394
- data. Default is True.
40395
- :param _request_timeout: timeout setting for this request. If one
40396
- number provided, it will be total request
40397
- timeout. It can also be a pair (tuple) of
40398
- (connection, read) timeouts.
40399
- :return: None
40400
- If the method is called asynchronously,
40401
- returns the request thread.
40402
- """
40403
-
40404
- local_var_params = locals()
40405
-
40406
- all_params = [
40407
- 'body'
40408
- ]
40409
- all_params.extend(
40410
- [
40411
- 'async_req',
40412
- '_return_http_data_only',
40413
- '_preload_content',
40414
- '_request_timeout'
40415
- ]
40416
- )
40417
-
40418
- for key, val in six.iteritems(local_var_params['kwargs']):
40419
- if key not in all_params:
40420
- raise ApiTypeError(
40421
- "Got an unexpected keyword argument '%s'"
40422
- " to method validate_cluster_api_v2_sessions_validate_cluster_post" % key
40423
- )
40424
- local_var_params[key] = val
40425
- del local_var_params['kwargs']
40426
- # verify the required parameter 'body' is set
40427
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
40428
- local_var_params['body'] is None): # noqa: E501
40429
- raise ApiValueError("Missing the required parameter `body` when calling `validate_cluster_api_v2_sessions_validate_cluster_post`") # noqa: E501
40430
-
40431
- collection_formats = {}
40432
-
40433
- path_params = {}
40434
-
40435
- query_params = []
40436
-
40437
- header_params = {}
40438
-
40439
- form_params = []
40440
- local_var_files = {}
40441
-
40442
- body_params = None
40443
- if 'body' in local_var_params:
40444
- body_params = local_var_params['body']
40445
- # HTTP header `Accept`
40446
- header_params['Accept'] = self.api_client.select_header_accept(
40447
- ['application/json']) # noqa: E501
40448
-
40449
- # HTTP header `Content-Type`
40450
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
40451
- ['application/json']) # noqa: E501
40452
-
40453
- # Authentication setting
40454
- auth_settings = [] # noqa: E501
40455
-
40456
- return self.api_client.call_api(
40457
- '/api/v2/sessions/validate_cluster', 'POST',
40458
- path_params,
40459
- query_params,
40460
- header_params,
40461
- body=body_params,
40462
- post_params=form_params,
40463
- files=local_var_files,
40464
- response_type=None, # noqa: E501
40465
- auth_settings=auth_settings,
40466
- async_req=local_var_params.get('async_req'),
40467
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
40468
- _preload_content=local_var_params.get('_preload_content', True),
40469
- _request_timeout=local_var_params.get('_request_timeout'),
40470
- collection_formats=collection_formats)
40471
-
40472
39002
  def validate_invite_code_api_v2_users_validate_invite_code_invite_code_post(self, invite_code, **kwargs): # noqa: E501
40473
39003
  """Validate Invite Code # noqa: E501
40474
39004