anyscale 0.26.5__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 (22) hide show
  1. anyscale/client/README.md +0 -19
  2. anyscale/client/openapi_client/__init__.py +0 -8
  3. anyscale/client/openapi_client/api/default_api.py +48 -1336
  4. anyscale/client/openapi_client/models/__init__.py +0 -8
  5. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +3 -30
  6. anyscale/commands/workspace_commands.py +3 -3
  7. anyscale/version.py +1 -1
  8. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/METADATA +1 -1
  9. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/RECORD +14 -22
  10. anyscale/client/openapi_client/models/cluster_config.py +0 -178
  11. anyscale/client/openapi_client/models/cluster_config_with_session_idle_timeout.py +0 -204
  12. anyscale/client/openapi_client/models/cluster_startup.py +0 -208
  13. anyscale/client/openapi_client/models/clusterconfig_response.py +0 -121
  14. anyscale/client/openapi_client/models/clusterconfigwithsessionidletimeout_response.py +0 -121
  15. anyscale/client/openapi_client/models/execute_shell_command_options.py +0 -121
  16. anyscale/client/openapi_client/models/organization_availability.py +0 -148
  17. anyscale/client/openapi_client/models/organizationavailability_response.py +0 -121
  18. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/LICENSE +0 -0
  19. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/NOTICE +0 -0
  20. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/WHEEL +0 -0
  21. {anyscale-0.26.5.dist-info → anyscale-0.26.6.dist-info}/entry_points.txt +0 -0
  22. {anyscale-0.26.5.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 = {}
@@ -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
 
@@ -19788,141 +19328,6 @@ class DefaultApi(object):
19788
19328
  _request_timeout=local_var_params.get('_request_timeout'),
19789
19329
  collection_formats=collection_formats)
19790
19330
 
19791
- def get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get(self, session_id, start_line, end_line, **kwargs): # noqa: E501
19792
- """Get Monitor Logs # noqa: E501
19793
-
19794
- This method makes a synchronous HTTP request by default. To make an
19795
- asynchronous HTTP request, please pass async_req=True
19796
- >>> thread = api.get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get(session_id, start_line, end_line, async_req=True)
19797
- >>> result = thread.get()
19798
-
19799
- :param async_req bool: execute request asynchronously
19800
- :param str session_id: (required)
19801
- :param int start_line: (required)
19802
- :param int end_line: (required)
19803
- :param str extension:
19804
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19805
- be returned without reading/decoding response
19806
- data. Default is True.
19807
- :param _request_timeout: timeout setting for this request. If one
19808
- number provided, it will be total request
19809
- timeout. It can also be a pair (tuple) of
19810
- (connection, read) timeouts.
19811
- :return: LogsoutputResponse
19812
- If the method is called asynchronously,
19813
- returns the request thread.
19814
- """
19815
- kwargs['_return_http_data_only'] = True
19816
- 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
19817
-
19818
- 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
19819
- """Get Monitor Logs # noqa: E501
19820
-
19821
- This method makes a synchronous HTTP request by default. To make an
19822
- asynchronous HTTP request, please pass async_req=True
19823
- >>> 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)
19824
- >>> result = thread.get()
19825
-
19826
- :param async_req bool: execute request asynchronously
19827
- :param str session_id: (required)
19828
- :param int start_line: (required)
19829
- :param int end_line: (required)
19830
- :param str extension:
19831
- :param _return_http_data_only: response data without head status code
19832
- and headers
19833
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19834
- be returned without reading/decoding response
19835
- data. Default is True.
19836
- :param _request_timeout: timeout setting for this request. If one
19837
- number provided, it will be total request
19838
- timeout. It can also be a pair (tuple) of
19839
- (connection, read) timeouts.
19840
- :return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
19841
- If the method is called asynchronously,
19842
- returns the request thread.
19843
- """
19844
-
19845
- local_var_params = locals()
19846
-
19847
- all_params = [
19848
- 'session_id',
19849
- 'start_line',
19850
- 'end_line',
19851
- 'extension'
19852
- ]
19853
- all_params.extend(
19854
- [
19855
- 'async_req',
19856
- '_return_http_data_only',
19857
- '_preload_content',
19858
- '_request_timeout'
19859
- ]
19860
- )
19861
-
19862
- for key, val in six.iteritems(local_var_params['kwargs']):
19863
- if key not in all_params:
19864
- raise ApiTypeError(
19865
- "Got an unexpected keyword argument '%s'"
19866
- " to method get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get" % key
19867
- )
19868
- local_var_params[key] = val
19869
- del local_var_params['kwargs']
19870
- # verify the required parameter 'session_id' is set
19871
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
19872
- local_var_params['session_id'] is None): # noqa: E501
19873
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19874
- # verify the required parameter 'start_line' is set
19875
- if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
19876
- local_var_params['start_line'] is None): # noqa: E501
19877
- raise ApiValueError("Missing the required parameter `start_line` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19878
- # verify the required parameter 'end_line' is set
19879
- if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
19880
- local_var_params['end_line'] is None): # noqa: E501
19881
- raise ApiValueError("Missing the required parameter `end_line` when calling `get_monitor_logs_api_v2_sessions_session_id_monitor_logs_get`") # noqa: E501
19882
-
19883
- collection_formats = {}
19884
-
19885
- path_params = {}
19886
- if 'session_id' in local_var_params:
19887
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
19888
-
19889
- query_params = []
19890
- if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
19891
- query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
19892
- if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
19893
- query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
19894
- if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
19895
- query_params.append(('extension', local_var_params['extension'])) # noqa: E501
19896
-
19897
- header_params = {}
19898
-
19899
- form_params = []
19900
- local_var_files = {}
19901
-
19902
- body_params = None
19903
- # HTTP header `Accept`
19904
- header_params['Accept'] = self.api_client.select_header_accept(
19905
- ['application/json']) # noqa: E501
19906
-
19907
- # Authentication setting
19908
- auth_settings = [] # noqa: E501
19909
-
19910
- return self.api_client.call_api(
19911
- '/api/v2/sessions/{session_id}/monitor_logs', 'GET',
19912
- path_params,
19913
- query_params,
19914
- header_params,
19915
- body=body_params,
19916
- post_params=form_params,
19917
- files=local_var_files,
19918
- response_type='LogsoutputResponse', # noqa: E501
19919
- auth_settings=auth_settings,
19920
- async_req=local_var_params.get('async_req'),
19921
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
19922
- _preload_content=local_var_params.get('_preload_content', True),
19923
- _request_timeout=local_var_params.get('_request_timeout'),
19924
- collection_formats=collection_formats)
19925
-
19926
19331
  def get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get(self, session_id, **kwargs): # noqa: E501
19927
19332
  """Get Monitor Logs Archived # noqa: E501
19928
19333
 
@@ -20152,128 +19557,6 @@ class DefaultApi(object):
20152
19557
  _request_timeout=local_var_params.get('_request_timeout'),
20153
19558
  collection_formats=collection_formats)
20154
19559
 
20155
- def get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get(self, session_id, **kwargs): # noqa: E501
20156
- """Get Monitor Logs Stream # noqa: E501
20157
-
20158
- This method makes a synchronous HTTP request by default. To make an
20159
- asynchronous HTTP request, please pass async_req=True
20160
- >>> thread = api.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get(session_id, async_req=True)
20161
- >>> result = thread.get()
20162
-
20163
- :param async_req bool: execute request asynchronously
20164
- :param str session_id: (required)
20165
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
20166
- :param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
20167
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20168
- be returned without reading/decoding response
20169
- data. Default is True.
20170
- :param _request_timeout: timeout setting for this request. If one
20171
- number provided, it will be total request
20172
- timeout. It can also be a pair (tuple) of
20173
- (connection, read) timeouts.
20174
- :return: LogstreamResponse
20175
- If the method is called asynchronously,
20176
- returns the request thread.
20177
- """
20178
- kwargs['_return_http_data_only'] = True
20179
- return self.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
20180
-
20181
- def get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
20182
- """Get Monitor Logs Stream # noqa: E501
20183
-
20184
- This method makes a synchronous HTTP request by default. To make an
20185
- asynchronous HTTP request, please pass async_req=True
20186
- >>> thread = api.get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get_with_http_info(session_id, async_req=True)
20187
- >>> result = thread.get()
20188
-
20189
- :param async_req bool: execute request asynchronously
20190
- :param str session_id: (required)
20191
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
20192
- :param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
20193
- :param _return_http_data_only: response data without head status code
20194
- and headers
20195
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20196
- be returned without reading/decoding response
20197
- data. Default is True.
20198
- :param _request_timeout: timeout setting for this request. If one
20199
- number provided, it will be total request
20200
- timeout. It can also be a pair (tuple) of
20201
- (connection, read) timeouts.
20202
- :return: tuple(LogstreamResponse, status_code(int), headers(HTTPHeaderDict))
20203
- If the method is called asynchronously,
20204
- returns the request thread.
20205
- """
20206
-
20207
- local_var_params = locals()
20208
-
20209
- all_params = [
20210
- 'session_id',
20211
- 'lines',
20212
- 'extension'
20213
- ]
20214
- all_params.extend(
20215
- [
20216
- 'async_req',
20217
- '_return_http_data_only',
20218
- '_preload_content',
20219
- '_request_timeout'
20220
- ]
20221
- )
20222
-
20223
- for key, val in six.iteritems(local_var_params['kwargs']):
20224
- if key not in all_params:
20225
- raise ApiTypeError(
20226
- "Got an unexpected keyword argument '%s'"
20227
- " to method get_monitor_logs_stream_api_v2_logs_monitor_logs_stream_session_id_get" % key
20228
- )
20229
- local_var_params[key] = val
20230
- del local_var_params['kwargs']
20231
- # verify the required parameter 'session_id' is set
20232
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
20233
- local_var_params['session_id'] is None): # noqa: E501
20234
- 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
20235
-
20236
- collection_formats = {}
20237
-
20238
- path_params = {}
20239
- if 'session_id' in local_var_params:
20240
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
20241
-
20242
- query_params = []
20243
- if 'lines' in local_var_params and local_var_params['lines'] is not None: # noqa: E501
20244
- query_params.append(('lines', local_var_params['lines'])) # noqa: E501
20245
- if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
20246
- query_params.append(('extension', local_var_params['extension'])) # noqa: E501
20247
-
20248
- header_params = {}
20249
-
20250
- form_params = []
20251
- local_var_files = {}
20252
-
20253
- body_params = None
20254
- # HTTP header `Accept`
20255
- header_params['Accept'] = self.api_client.select_header_accept(
20256
- ['application/json']) # noqa: E501
20257
-
20258
- # Authentication setting
20259
- auth_settings = [] # noqa: E501
20260
-
20261
- return self.api_client.call_api(
20262
- '/api/v2/logs/monitor_logs_stream/{session_id}', 'GET',
20263
- path_params,
20264
- query_params,
20265
- header_params,
20266
- body=body_params,
20267
- post_params=form_params,
20268
- files=local_var_files,
20269
- response_type='LogstreamResponse', # noqa: E501
20270
- auth_settings=auth_settings,
20271
- async_req=local_var_params.get('async_req'),
20272
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20273
- _preload_content=local_var_params.get('_preload_content', True),
20274
- _request_timeout=local_var_params.get('_request_timeout'),
20275
- collection_formats=collection_formats)
20276
-
20277
19560
  def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
20278
19561
  """Get Organization Metronome Usage Alerts # noqa: E501
20279
19562
 
@@ -20717,120 +20000,6 @@ class DefaultApi(object):
20717
20000
  _request_timeout=local_var_params.get('_request_timeout'),
20718
20001
  collection_formats=collection_formats)
20719
20002
 
20720
- def get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get(self, project_id, **kwargs): # noqa: E501
20721
- """Get Project Latest Cluster Config # noqa: E501
20722
-
20723
- Returns the cluster_config saved at the project level. # noqa: E501
20724
- This method makes a synchronous HTTP request by default. To make an
20725
- asynchronous HTTP request, please pass async_req=True
20726
- >>> thread = api.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get(project_id, async_req=True)
20727
- >>> result = thread.get()
20728
-
20729
- :param async_req bool: execute request asynchronously
20730
- :param str project_id: (required)
20731
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20732
- be returned without reading/decoding response
20733
- data. Default is True.
20734
- :param _request_timeout: timeout setting for this request. If one
20735
- number provided, it will be total request
20736
- timeout. It can also be a pair (tuple) of
20737
- (connection, read) timeouts.
20738
- :return: ClusterconfigResponse
20739
- If the method is called asynchronously,
20740
- returns the request thread.
20741
- """
20742
- kwargs['_return_http_data_only'] = True
20743
- return self.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(project_id, **kwargs) # noqa: E501
20744
-
20745
- def get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(self, project_id, **kwargs): # noqa: E501
20746
- """Get Project Latest Cluster Config # noqa: E501
20747
-
20748
- Returns the cluster_config saved at the project level. # noqa: E501
20749
- This method makes a synchronous HTTP request by default. To make an
20750
- asynchronous HTTP request, please pass async_req=True
20751
- >>> thread = api.get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get_with_http_info(project_id, async_req=True)
20752
- >>> result = thread.get()
20753
-
20754
- :param async_req bool: execute request asynchronously
20755
- :param str project_id: (required)
20756
- :param _return_http_data_only: response data without head status code
20757
- and headers
20758
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20759
- be returned without reading/decoding response
20760
- data. Default is True.
20761
- :param _request_timeout: timeout setting for this request. If one
20762
- number provided, it will be total request
20763
- timeout. It can also be a pair (tuple) of
20764
- (connection, read) timeouts.
20765
- :return: tuple(ClusterconfigResponse, status_code(int), headers(HTTPHeaderDict))
20766
- If the method is called asynchronously,
20767
- returns the request thread.
20768
- """
20769
-
20770
- local_var_params = locals()
20771
-
20772
- all_params = [
20773
- 'project_id'
20774
- ]
20775
- all_params.extend(
20776
- [
20777
- 'async_req',
20778
- '_return_http_data_only',
20779
- '_preload_content',
20780
- '_request_timeout'
20781
- ]
20782
- )
20783
-
20784
- for key, val in six.iteritems(local_var_params['kwargs']):
20785
- if key not in all_params:
20786
- raise ApiTypeError(
20787
- "Got an unexpected keyword argument '%s'"
20788
- " to method get_project_latest_cluster_config_api_v2_projects_project_id_latest_cluster_config_get" % key
20789
- )
20790
- local_var_params[key] = val
20791
- del local_var_params['kwargs']
20792
- # verify the required parameter 'project_id' is set
20793
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
20794
- local_var_params['project_id'] is None): # noqa: E501
20795
- 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
20796
-
20797
- collection_formats = {}
20798
-
20799
- path_params = {}
20800
- if 'project_id' in local_var_params:
20801
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
20802
-
20803
- query_params = []
20804
-
20805
- header_params = {}
20806
-
20807
- form_params = []
20808
- local_var_files = {}
20809
-
20810
- body_params = None
20811
- # HTTP header `Accept`
20812
- header_params['Accept'] = self.api_client.select_header_accept(
20813
- ['application/json']) # noqa: E501
20814
-
20815
- # Authentication setting
20816
- auth_settings = [] # noqa: E501
20817
-
20818
- return self.api_client.call_api(
20819
- '/api/v2/projects/{project_id}/latest_cluster_config', 'GET',
20820
- path_params,
20821
- query_params,
20822
- header_params,
20823
- body=body_params,
20824
- post_params=form_params,
20825
- files=local_var_files,
20826
- response_type='ClusterconfigResponse', # noqa: E501
20827
- auth_settings=auth_settings,
20828
- async_req=local_var_params.get('async_req'),
20829
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20830
- _preload_content=local_var_params.get('_preload_content', True),
20831
- _request_timeout=local_var_params.get('_request_timeout'),
20832
- collection_formats=collection_formats)
20833
-
20834
20003
  def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
20835
20004
  """Get Public Identifier # noqa: E501
20836
20005
 
@@ -21941,123 +21110,6 @@ class DefaultApi(object):
21941
21110
  _request_timeout=local_var_params.get('_request_timeout'),
21942
21111
  collection_formats=collection_formats)
21943
21112
 
21944
- def get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get(self, session_id, **kwargs): # noqa: E501
21945
- """Get Runtime Env Logs Stream # noqa: E501
21946
-
21947
- This method makes a synchronous HTTP request by default. To make an
21948
- asynchronous HTTP request, please pass async_req=True
21949
- >>> thread = api.get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get(session_id, async_req=True)
21950
- >>> result = thread.get()
21951
-
21952
- :param async_req bool: execute request asynchronously
21953
- :param str session_id: (required)
21954
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
21955
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21956
- be returned without reading/decoding response
21957
- data. Default is True.
21958
- :param _request_timeout: timeout setting for this request. If one
21959
- number provided, it will be total request
21960
- timeout. It can also be a pair (tuple) of
21961
- (connection, read) timeouts.
21962
- :return: LogstreamResponse
21963
- If the method is called asynchronously,
21964
- returns the request thread.
21965
- """
21966
- kwargs['_return_http_data_only'] = True
21967
- 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
21968
-
21969
- 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
21970
- """Get Runtime Env Logs Stream # noqa: E501
21971
-
21972
- This method makes a synchronous HTTP request by default. To make an
21973
- asynchronous HTTP request, please pass async_req=True
21974
- >>> 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)
21975
- >>> result = thread.get()
21976
-
21977
- :param async_req bool: execute request asynchronously
21978
- :param str session_id: (required)
21979
- :param int lines: Number of lines to return. Defaults to 1000. Set to -1 to return all lines.
21980
- :param _return_http_data_only: response data without head status code
21981
- and headers
21982
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21983
- be returned without reading/decoding response
21984
- data. Default is True.
21985
- :param _request_timeout: timeout setting for this request. If one
21986
- number provided, it will be total request
21987
- timeout. It can also be a pair (tuple) of
21988
- (connection, read) timeouts.
21989
- :return: tuple(LogstreamResponse, status_code(int), headers(HTTPHeaderDict))
21990
- If the method is called asynchronously,
21991
- returns the request thread.
21992
- """
21993
-
21994
- local_var_params = locals()
21995
-
21996
- all_params = [
21997
- 'session_id',
21998
- 'lines'
21999
- ]
22000
- all_params.extend(
22001
- [
22002
- 'async_req',
22003
- '_return_http_data_only',
22004
- '_preload_content',
22005
- '_request_timeout'
22006
- ]
22007
- )
22008
-
22009
- for key, val in six.iteritems(local_var_params['kwargs']):
22010
- if key not in all_params:
22011
- raise ApiTypeError(
22012
- "Got an unexpected keyword argument '%s'"
22013
- " to method get_runtime_env_logs_stream_api_v2_logs_runtime_env_logs_stream_session_id_get" % key
22014
- )
22015
- local_var_params[key] = val
22016
- del local_var_params['kwargs']
22017
- # verify the required parameter 'session_id' is set
22018
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
22019
- local_var_params['session_id'] is None): # noqa: E501
22020
- 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
22021
-
22022
- collection_formats = {}
22023
-
22024
- path_params = {}
22025
- if 'session_id' in local_var_params:
22026
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
22027
-
22028
- query_params = []
22029
- if 'lines' in local_var_params and local_var_params['lines'] is not None: # noqa: E501
22030
- query_params.append(('lines', local_var_params['lines'])) # noqa: E501
22031
-
22032
- header_params = {}
22033
-
22034
- form_params = []
22035
- local_var_files = {}
22036
-
22037
- body_params = None
22038
- # HTTP header `Accept`
22039
- header_params['Accept'] = self.api_client.select_header_accept(
22040
- ['application/json']) # noqa: E501
22041
-
22042
- # Authentication setting
22043
- auth_settings = [] # noqa: E501
22044
-
22045
- return self.api_client.call_api(
22046
- '/api/v2/logs/runtime_env_logs_stream/{session_id}', 'GET',
22047
- path_params,
22048
- query_params,
22049
- header_params,
22050
- body=body_params,
22051
- post_params=form_params,
22052
- files=local_var_files,
22053
- response_type='LogstreamResponse', # noqa: E501
22054
- auth_settings=auth_settings,
22055
- async_req=local_var_params.get('async_req'),
22056
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22057
- _preload_content=local_var_params.get('_preload_content', True),
22058
- _request_timeout=local_var_params.get('_request_timeout'),
22059
- collection_formats=collection_formats)
22060
-
22061
21113
  def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
22062
21114
  """Get Serve Logs Download # noqa: E501
22063
21115
 
@@ -22816,230 +21868,6 @@ class DefaultApi(object):
22816
21868
  _request_timeout=local_var_params.get('_request_timeout'),
22817
21869
  collection_formats=collection_formats)
22818
21870
 
22819
- def get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get(self, session_id, **kwargs): # noqa: E501
22820
- """Get Session Cluster Config # noqa: E501
22821
-
22822
- This method makes a synchronous HTTP request by default. To make an
22823
- asynchronous HTTP request, please pass async_req=True
22824
- >>> thread = api.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get(session_id, async_req=True)
22825
- >>> result = thread.get()
22826
-
22827
- :param async_req bool: execute request asynchronously
22828
- :param str session_id: (required)
22829
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22830
- be returned without reading/decoding response
22831
- data. Default is True.
22832
- :param _request_timeout: timeout setting for this request. If one
22833
- number provided, it will be total request
22834
- timeout. It can also be a pair (tuple) of
22835
- (connection, read) timeouts.
22836
- :return: ClusterconfigResponse
22837
- If the method is called asynchronously,
22838
- returns the request thread.
22839
- """
22840
- kwargs['_return_http_data_only'] = True
22841
- return self.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(session_id, **kwargs) # noqa: E501
22842
-
22843
- def get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(self, session_id, **kwargs): # noqa: E501
22844
- """Get Session Cluster Config # noqa: E501
22845
-
22846
- This method makes a synchronous HTTP request by default. To make an
22847
- asynchronous HTTP request, please pass async_req=True
22848
- >>> thread = api.get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get_with_http_info(session_id, async_req=True)
22849
- >>> result = thread.get()
22850
-
22851
- :param async_req bool: execute request asynchronously
22852
- :param str session_id: (required)
22853
- :param _return_http_data_only: response data without head status code
22854
- and headers
22855
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22856
- be returned without reading/decoding response
22857
- data. Default is True.
22858
- :param _request_timeout: timeout setting for this request. If one
22859
- number provided, it will be total request
22860
- timeout. It can also be a pair (tuple) of
22861
- (connection, read) timeouts.
22862
- :return: tuple(ClusterconfigResponse, status_code(int), headers(HTTPHeaderDict))
22863
- If the method is called asynchronously,
22864
- returns the request thread.
22865
- """
22866
-
22867
- local_var_params = locals()
22868
-
22869
- all_params = [
22870
- 'session_id'
22871
- ]
22872
- all_params.extend(
22873
- [
22874
- 'async_req',
22875
- '_return_http_data_only',
22876
- '_preload_content',
22877
- '_request_timeout'
22878
- ]
22879
- )
22880
-
22881
- for key, val in six.iteritems(local_var_params['kwargs']):
22882
- if key not in all_params:
22883
- raise ApiTypeError(
22884
- "Got an unexpected keyword argument '%s'"
22885
- " to method get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get" % key
22886
- )
22887
- local_var_params[key] = val
22888
- del local_var_params['kwargs']
22889
- # verify the required parameter 'session_id' is set
22890
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
22891
- local_var_params['session_id'] is None): # noqa: E501
22892
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_cluster_config_api_v2_sessions_session_id_cluster_config_get`") # noqa: E501
22893
-
22894
- collection_formats = {}
22895
-
22896
- path_params = {}
22897
- if 'session_id' in local_var_params:
22898
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
22899
-
22900
- query_params = []
22901
-
22902
- header_params = {}
22903
-
22904
- form_params = []
22905
- local_var_files = {}
22906
-
22907
- body_params = None
22908
- # HTTP header `Accept`
22909
- header_params['Accept'] = self.api_client.select_header_accept(
22910
- ['application/json']) # noqa: E501
22911
-
22912
- # Authentication setting
22913
- auth_settings = [] # noqa: E501
22914
-
22915
- return self.api_client.call_api(
22916
- '/api/v2/sessions/{session_id}/cluster_config', 'GET',
22917
- path_params,
22918
- query_params,
22919
- header_params,
22920
- body=body_params,
22921
- post_params=form_params,
22922
- files=local_var_files,
22923
- response_type='ClusterconfigResponse', # noqa: E501
22924
- auth_settings=auth_settings,
22925
- async_req=local_var_params.get('async_req'),
22926
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22927
- _preload_content=local_var_params.get('_preload_content', True),
22928
- _request_timeout=local_var_params.get('_request_timeout'),
22929
- collection_formats=collection_formats)
22930
-
22931
- 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
22932
- """Get Session Cluster Config With Session Idle Timeout # noqa: E501
22933
-
22934
- This method makes a synchronous HTTP request by default. To make an
22935
- asynchronous HTTP request, please pass async_req=True
22936
- >>> 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)
22937
- >>> result = thread.get()
22938
-
22939
- :param async_req bool: execute request asynchronously
22940
- :param str session_id: (required)
22941
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22942
- be returned without reading/decoding response
22943
- data. Default is True.
22944
- :param _request_timeout: timeout setting for this request. If one
22945
- number provided, it will be total request
22946
- timeout. It can also be a pair (tuple) of
22947
- (connection, read) timeouts.
22948
- :return: ClusterconfigwithsessionidletimeoutResponse
22949
- If the method is called asynchronously,
22950
- returns the request thread.
22951
- """
22952
- kwargs['_return_http_data_only'] = True
22953
- 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
22954
-
22955
- 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
22956
- """Get Session Cluster Config With Session Idle Timeout # noqa: E501
22957
-
22958
- This method makes a synchronous HTTP request by default. To make an
22959
- asynchronous HTTP request, please pass async_req=True
22960
- >>> 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)
22961
- >>> result = thread.get()
22962
-
22963
- :param async_req bool: execute request asynchronously
22964
- :param str session_id: (required)
22965
- :param _return_http_data_only: response data without head status code
22966
- and headers
22967
- :param _preload_content: if False, the urllib3.HTTPResponse object will
22968
- be returned without reading/decoding response
22969
- data. Default is True.
22970
- :param _request_timeout: timeout setting for this request. If one
22971
- number provided, it will be total request
22972
- timeout. It can also be a pair (tuple) of
22973
- (connection, read) timeouts.
22974
- :return: tuple(ClusterconfigwithsessionidletimeoutResponse, status_code(int), headers(HTTPHeaderDict))
22975
- If the method is called asynchronously,
22976
- returns the request thread.
22977
- """
22978
-
22979
- local_var_params = locals()
22980
-
22981
- all_params = [
22982
- 'session_id'
22983
- ]
22984
- all_params.extend(
22985
- [
22986
- 'async_req',
22987
- '_return_http_data_only',
22988
- '_preload_content',
22989
- '_request_timeout'
22990
- ]
22991
- )
22992
-
22993
- for key, val in six.iteritems(local_var_params['kwargs']):
22994
- if key not in all_params:
22995
- raise ApiTypeError(
22996
- "Got an unexpected keyword argument '%s'"
22997
- " to method get_session_cluster_config_with_session_idle_timeout_api_v2_sessions_session_id_cluster_config_with_session_idle_timeout_get" % key
22998
- )
22999
- local_var_params[key] = val
23000
- del local_var_params['kwargs']
23001
- # verify the required parameter 'session_id' is set
23002
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
23003
- local_var_params['session_id'] is None): # noqa: E501
23004
- 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
23005
-
23006
- collection_formats = {}
23007
-
23008
- path_params = {}
23009
- if 'session_id' in local_var_params:
23010
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
23011
-
23012
- query_params = []
23013
-
23014
- header_params = {}
23015
-
23016
- form_params = []
23017
- local_var_files = {}
23018
-
23019
- body_params = None
23020
- # HTTP header `Accept`
23021
- header_params['Accept'] = self.api_client.select_header_accept(
23022
- ['application/json']) # noqa: E501
23023
-
23024
- # Authentication setting
23025
- auth_settings = [] # noqa: E501
23026
-
23027
- return self.api_client.call_api(
23028
- '/api/v2/sessions/{session_id}/cluster_config_with_session_idle_timeout', 'GET',
23029
- path_params,
23030
- query_params,
23031
- header_params,
23032
- body=body_params,
23033
- post_params=form_params,
23034
- files=local_var_files,
23035
- response_type='ClusterconfigwithsessionidletimeoutResponse', # noqa: E501
23036
- auth_settings=auth_settings,
23037
- async_req=local_var_params.get('async_req'),
23038
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
23039
- _preload_content=local_var_params.get('_preload_content', True),
23040
- _request_timeout=local_var_params.get('_request_timeout'),
23041
- collection_formats=collection_formats)
23042
-
23043
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
23044
21872
  """Get Session Command Logs Download # noqa: E501
23045
21873
 
@@ -40171,122 +38999,6 @@ class DefaultApi(object):
40171
38999
  _request_timeout=local_var_params.get('_request_timeout'),
40172
39000
  collection_formats=collection_formats)
40173
39001
 
40174
- def validate_cluster_api_v2_sessions_validate_cluster_post(self, body, **kwargs): # noqa: E501
40175
- """Validate Cluster # noqa: E501
40176
-
40177
- This method makes a synchronous HTTP request by default. To make an
40178
- asynchronous HTTP request, please pass async_req=True
40179
- >>> thread = api.validate_cluster_api_v2_sessions_validate_cluster_post(body, async_req=True)
40180
- >>> result = thread.get()
40181
-
40182
- :param async_req bool: execute request asynchronously
40183
- :param object body: (required)
40184
- :param _preload_content: if False, the urllib3.HTTPResponse object will
40185
- be returned without reading/decoding response
40186
- data. Default is True.
40187
- :param _request_timeout: timeout setting for this request. If one
40188
- number provided, it will be total request
40189
- timeout. It can also be a pair (tuple) of
40190
- (connection, read) timeouts.
40191
- :return: None
40192
- If the method is called asynchronously,
40193
- returns the request thread.
40194
- """
40195
- kwargs['_return_http_data_only'] = True
40196
- return self.validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(body, **kwargs) # noqa: E501
40197
-
40198
- def validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(self, body, **kwargs): # noqa: E501
40199
- """Validate Cluster # noqa: E501
40200
-
40201
- This method makes a synchronous HTTP request by default. To make an
40202
- asynchronous HTTP request, please pass async_req=True
40203
- >>> thread = api.validate_cluster_api_v2_sessions_validate_cluster_post_with_http_info(body, async_req=True)
40204
- >>> result = thread.get()
40205
-
40206
- :param async_req bool: execute request asynchronously
40207
- :param object body: (required)
40208
- :param _return_http_data_only: response data without head status code
40209
- and headers
40210
- :param _preload_content: if False, the urllib3.HTTPResponse object will
40211
- be returned without reading/decoding response
40212
- data. Default is True.
40213
- :param _request_timeout: timeout setting for this request. If one
40214
- number provided, it will be total request
40215
- timeout. It can also be a pair (tuple) of
40216
- (connection, read) timeouts.
40217
- :return: None
40218
- If the method is called asynchronously,
40219
- returns the request thread.
40220
- """
40221
-
40222
- local_var_params = locals()
40223
-
40224
- all_params = [
40225
- 'body'
40226
- ]
40227
- all_params.extend(
40228
- [
40229
- 'async_req',
40230
- '_return_http_data_only',
40231
- '_preload_content',
40232
- '_request_timeout'
40233
- ]
40234
- )
40235
-
40236
- for key, val in six.iteritems(local_var_params['kwargs']):
40237
- if key not in all_params:
40238
- raise ApiTypeError(
40239
- "Got an unexpected keyword argument '%s'"
40240
- " to method validate_cluster_api_v2_sessions_validate_cluster_post" % key
40241
- )
40242
- local_var_params[key] = val
40243
- del local_var_params['kwargs']
40244
- # verify the required parameter 'body' is set
40245
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
40246
- local_var_params['body'] is None): # noqa: E501
40247
- raise ApiValueError("Missing the required parameter `body` when calling `validate_cluster_api_v2_sessions_validate_cluster_post`") # noqa: E501
40248
-
40249
- collection_formats = {}
40250
-
40251
- path_params = {}
40252
-
40253
- query_params = []
40254
-
40255
- header_params = {}
40256
-
40257
- form_params = []
40258
- local_var_files = {}
40259
-
40260
- body_params = None
40261
- if 'body' in local_var_params:
40262
- body_params = local_var_params['body']
40263
- # HTTP header `Accept`
40264
- header_params['Accept'] = self.api_client.select_header_accept(
40265
- ['application/json']) # noqa: E501
40266
-
40267
- # HTTP header `Content-Type`
40268
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
40269
- ['application/json']) # noqa: E501
40270
-
40271
- # Authentication setting
40272
- auth_settings = [] # noqa: E501
40273
-
40274
- return self.api_client.call_api(
40275
- '/api/v2/sessions/validate_cluster', 'POST',
40276
- path_params,
40277
- query_params,
40278
- header_params,
40279
- body=body_params,
40280
- post_params=form_params,
40281
- files=local_var_files,
40282
- response_type=None, # noqa: E501
40283
- auth_settings=auth_settings,
40284
- async_req=local_var_params.get('async_req'),
40285
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
40286
- _preload_content=local_var_params.get('_preload_content', True),
40287
- _request_timeout=local_var_params.get('_request_timeout'),
40288
- collection_formats=collection_formats)
40289
-
40290
39002
  def validate_invite_code_api_v2_users_validate_invite_code_invite_code_post(self, invite_code, **kwargs): # noqa: E501
40291
39003
  """Validate Invite Code # noqa: E501
40292
39004