anyscale 0.26.51__py3-none-any.whl → 0.26.53__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. anyscale/_private/anyscale_client/README.md +1 -1
  2. anyscale/_private/anyscale_client/anyscale_client.py +178 -46
  3. anyscale/_private/anyscale_client/common.py +61 -2
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +145 -8
  5. anyscale/_private/docgen/__main__.py +42 -31
  6. anyscale/_private/docgen/generator.py +63 -28
  7. anyscale/_private/docgen/models.md +4 -2
  8. anyscale/_private/sdk/__init__.py +124 -1
  9. anyscale/_private/workload/workload_config.py +4 -6
  10. anyscale/_private/workload/workload_sdk.py +105 -12
  11. anyscale/client/README.md +13 -11
  12. anyscale/client/openapi_client/__init__.py +3 -3
  13. anyscale/client/openapi_client/api/default_api.py +512 -316
  14. anyscale/client/openapi_client/models/__init__.py +3 -3
  15. anyscale/client/openapi_client/models/aws_config.py +2 -2
  16. anyscale/client/openapi_client/models/baseimagesenum.py +158 -1
  17. anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
  18. anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
  19. anyscale/client/openapi_client/models/cloud_resource.py +59 -3
  20. anyscale/client/openapi_client/models/cloud_resource_gcp.py +59 -3
  21. anyscale/client/openapi_client/models/create_cloud_resource.py +59 -3
  22. anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +59 -3
  23. anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
  24. anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
  25. anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
  26. anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
  27. anyscale/client/openapi_client/models/file_storage.py +4 -4
  28. anyscale/client/openapi_client/models/gcp_config.py +2 -2
  29. anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
  30. anyscale/client/openapi_client/models/object_storage.py +4 -4
  31. anyscale/client/openapi_client/models/ray_runtime_env_config.py +57 -1
  32. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  33. anyscale/client/openapi_client/models/resource_notification.py +29 -1
  34. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +155 -1
  35. anyscale/client/openapi_client/models/workload_info.py +31 -3
  36. anyscale/client/openapi_client/models/workload_state_info.py +29 -1
  37. anyscale/cloud/models.py +40 -43
  38. anyscale/commands/cloud_commands.py +93 -88
  39. anyscale/commands/command_examples.py +37 -49
  40. anyscale/commands/exec_commands.py +12 -1
  41. anyscale/commands/list_commands.py +42 -12
  42. anyscale/commands/project_commands.py +399 -115
  43. anyscale/commands/schedule_commands.py +22 -11
  44. anyscale/commands/service_commands.py +11 -6
  45. anyscale/commands/util.py +94 -1
  46. anyscale/commands/workspace_commands.py +92 -38
  47. anyscale/compute_config/__init__.py +1 -1
  48. anyscale/compute_config/_private/compute_config_sdk.py +8 -11
  49. anyscale/compute_config/commands.py +3 -3
  50. anyscale/compute_config/models.py +30 -30
  51. anyscale/controllers/cloud_controller.py +361 -360
  52. anyscale/controllers/kubernetes_verifier.py +1 -1
  53. anyscale/job/_private/job_sdk.py +41 -23
  54. anyscale/job/models.py +1 -1
  55. anyscale/project/__init__.py +101 -1
  56. anyscale/project/_private/project_sdk.py +90 -2
  57. anyscale/project/commands.py +188 -1
  58. anyscale/project/models.py +198 -2
  59. anyscale/sdk/anyscale_client/models/baseimagesenum.py +158 -1
  60. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +57 -1
  61. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +155 -1
  62. anyscale/service/_private/service_sdk.py +2 -1
  63. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  64. anyscale/util.py +3 -0
  65. anyscale/utils/runtime_env.py +3 -1
  66. anyscale/version.py +1 -1
  67. anyscale/workspace/commands.py +114 -23
  68. anyscale/workspace/models.py +3 -5
  69. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/METADATA +1 -1
  70. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/RECORD +75 -75
  71. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/WHEEL +0 -0
  72. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/entry_points.txt +0 -0
  73. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/LICENSE +0 -0
  74. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/NOTICE +0 -0
  75. {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/top_level.txt +0 -0
@@ -36,12 +36,12 @@ class DefaultApi(object):
36
36
  api_client = ApiClient()
37
37
  self.api_client = api_client
38
38
 
39
- def add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
40
- """Add Cloud Deployment # noqa: E501
39
+ def add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
40
+ """Add Cloud Resource # noqa: E501
41
41
 
42
42
  This method makes a synchronous HTTP request by default. To make an
43
43
  asynchronous HTTP request, please pass async_req=True
44
- >>> thread = api.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put(cloud_id, cloud_deployment, async_req=True)
44
+ >>> thread = api.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put(cloud_id, cloud_deployment, async_req=True)
45
45
  >>> result = thread.get()
46
46
 
47
47
  :param async_req bool: execute request asynchronously
@@ -59,14 +59,14 @@ class DefaultApi(object):
59
59
  returns the request thread.
60
60
  """
61
61
  kwargs['_return_http_data_only'] = True
62
- return self.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
62
+ return self.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
63
63
 
64
- def add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
65
- """Add Cloud Deployment # noqa: E501
64
+ def add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
65
+ """Add Cloud Resource # noqa: E501
66
66
 
67
67
  This method makes a synchronous HTTP request by default. To make an
68
68
  asynchronous HTTP request, please pass async_req=True
69
- >>> thread = api.add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
69
+ >>> thread = api.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
70
70
  >>> result = thread.get()
71
71
 
72
72
  :param async_req bool: execute request asynchronously
@@ -105,18 +105,18 @@ class DefaultApi(object):
105
105
  if key not in all_params:
106
106
  raise ApiTypeError(
107
107
  "Got an unexpected keyword argument '%s'"
108
- " to method add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put" % key
108
+ " to method add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put" % key
109
109
  )
110
110
  local_var_params[key] = val
111
111
  del local_var_params['kwargs']
112
112
  # verify the required parameter 'cloud_id' is set
113
113
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
114
114
  local_var_params['cloud_id'] is None): # noqa: E501
115
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put`") # noqa: E501
115
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put`") # noqa: E501
116
116
  # verify the required parameter 'cloud_deployment' is set
117
117
  if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
118
118
  local_var_params['cloud_deployment'] is None): # noqa: E501
119
- raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `add_cloud_deployment_api_v2_clouds_cloud_id_add_deployment_put`") # noqa: E501
119
+ raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put`") # noqa: E501
120
120
 
121
121
  collection_formats = {}
122
122
 
@@ -146,7 +146,7 @@ class DefaultApi(object):
146
146
  auth_settings = [] # noqa: E501
147
147
 
148
148
  return self.api_client.call_api(
149
- '/api/v2/clouds/{cloud_id}/add_deployment', 'PUT',
149
+ '/api/v2/clouds/{cloud_id}/add_resource', 'PUT',
150
150
  path_params,
151
151
  query_params,
152
152
  header_params,
@@ -8563,6 +8563,7 @@ class DefaultApi(object):
8563
8563
  :param async_req bool: execute request asynchronously
8564
8564
  :param str cloud_id: (required)
8565
8565
  :param SystemWorkloadName workload_name: (required)
8566
+ :param str cloud_resource_id:
8566
8567
  :param bool start_cluster:
8567
8568
  :param _preload_content: if False, the urllib3.HTTPResponse object will
8568
8569
  be returned without reading/decoding response
@@ -8590,6 +8591,7 @@ class DefaultApi(object):
8590
8591
  :param async_req bool: execute request asynchronously
8591
8592
  :param str cloud_id: (required)
8592
8593
  :param SystemWorkloadName workload_name: (required)
8594
+ :param str cloud_resource_id:
8593
8595
  :param bool start_cluster:
8594
8596
  :param _return_http_data_only: response data without head status code
8595
8597
  and headers
@@ -8610,6 +8612,7 @@ class DefaultApi(object):
8610
8612
  all_params = [
8611
8613
  'cloud_id',
8612
8614
  'workload_name',
8615
+ 'cloud_resource_id',
8613
8616
  'start_cluster'
8614
8617
  ]
8615
8618
  all_params.extend(
@@ -8647,6 +8650,8 @@ class DefaultApi(object):
8647
8650
  query_params = []
8648
8651
  if 'workload_name' in local_var_params and local_var_params['workload_name'] is not None: # noqa: E501
8649
8652
  query_params.append(('workload_name', local_var_params['workload_name'])) # noqa: E501
8653
+ if 'cloud_resource_id' in local_var_params and local_var_params['cloud_resource_id'] is not None: # noqa: E501
8654
+ query_params.append(('cloud_resource_id', local_var_params['cloud_resource_id'])) # noqa: E501
8650
8655
  if 'start_cluster' in local_var_params and local_var_params['start_cluster'] is not None: # noqa: E501
8651
8656
  query_params.append(('start_cluster', local_var_params['start_cluster'])) # noqa: E501
8652
8657
 
@@ -11730,12 +11735,12 @@ class DefaultApi(object):
11730
11735
  _request_timeout=local_var_params.get('_request_timeout'),
11731
11736
  collection_formats=collection_formats)
11732
11737
 
11733
- def get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11734
- """Get Cloud Deployment # noqa: E501
11738
+ def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11739
+ """Get Cloud Deployment Config # noqa: E501
11735
11740
 
11736
11741
  This method makes a synchronous HTTP request by default. To make an
11737
11742
  asynchronous HTTP request, please pass async_req=True
11738
- >>> thread = api.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get(cloud_id, cloud_deployment_id, async_req=True)
11743
+ >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(cloud_id, cloud_deployment_id, async_req=True)
11739
11744
  >>> result = thread.get()
11740
11745
 
11741
11746
  :param async_req bool: execute request asynchronously
@@ -11748,19 +11753,19 @@ class DefaultApi(object):
11748
11753
  number provided, it will be total request
11749
11754
  timeout. It can also be a pair (tuple) of
11750
11755
  (connection, read) timeouts.
11751
- :return: DecoratedclouddeploymentResponse
11756
+ :return: ClouddeploymentconfigResponse
11752
11757
  If the method is called asynchronously,
11753
11758
  returns the request thread.
11754
11759
  """
11755
11760
  kwargs['_return_http_data_only'] = True
11756
- return self.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
11761
+ return self.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
11757
11762
 
11758
- def get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11759
- """Get Cloud Deployment # noqa: E501
11763
+ def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11764
+ """Get Cloud Deployment Config # noqa: E501
11760
11765
 
11761
11766
  This method makes a synchronous HTTP request by default. To make an
11762
11767
  asynchronous HTTP request, please pass async_req=True
11763
- >>> thread = api.get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
11768
+ >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
11764
11769
  >>> result = thread.get()
11765
11770
 
11766
11771
  :param async_req bool: execute request asynchronously
@@ -11775,7 +11780,7 @@ class DefaultApi(object):
11775
11780
  number provided, it will be total request
11776
11781
  timeout. It can also be a pair (tuple) of
11777
11782
  (connection, read) timeouts.
11778
- :return: tuple(DecoratedclouddeploymentResponse, status_code(int), headers(HTTPHeaderDict))
11783
+ :return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
11779
11784
  If the method is called asynchronously,
11780
11785
  returns the request thread.
11781
11786
  """
@@ -11799,28 +11804,28 @@ class DefaultApi(object):
11799
11804
  if key not in all_params:
11800
11805
  raise ApiTypeError(
11801
11806
  "Got an unexpected keyword argument '%s'"
11802
- " to method get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get" % key
11807
+ " to method get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get" % key
11803
11808
  )
11804
11809
  local_var_params[key] = val
11805
11810
  del local_var_params['kwargs']
11806
11811
  # verify the required parameter 'cloud_id' is set
11807
11812
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
11808
11813
  local_var_params['cloud_id'] is None): # noqa: E501
11809
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get`") # noqa: E501
11814
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
11810
11815
  # verify the required parameter 'cloud_deployment_id' is set
11811
11816
  if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
11812
11817
  local_var_params['cloud_deployment_id'] is None): # noqa: E501
11813
- raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_api_v2_clouds_cloud_id_deployment_get`") # noqa: E501
11818
+ raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
11814
11819
 
11815
11820
  collection_formats = {}
11816
11821
 
11817
11822
  path_params = {}
11818
11823
  if 'cloud_id' in local_var_params:
11819
11824
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
11825
+ if 'cloud_deployment_id' in local_var_params:
11826
+ path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
11820
11827
 
11821
11828
  query_params = []
11822
- if 'cloud_deployment_id' in local_var_params and local_var_params['cloud_deployment_id'] is not None: # noqa: E501
11823
- query_params.append(('cloud_deployment_id', local_var_params['cloud_deployment_id'])) # noqa: E501
11824
11829
 
11825
11830
  header_params = {}
11826
11831
 
@@ -11836,14 +11841,14 @@ class DefaultApi(object):
11836
11841
  auth_settings = [] # noqa: E501
11837
11842
 
11838
11843
  return self.api_client.call_api(
11839
- '/api/v2/clouds/{cloud_id}/deployment', 'GET',
11844
+ '/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'GET',
11840
11845
  path_params,
11841
11846
  query_params,
11842
11847
  header_params,
11843
11848
  body=body_params,
11844
11849
  post_params=form_params,
11845
11850
  files=local_var_files,
11846
- response_type='DecoratedclouddeploymentResponse', # noqa: E501
11851
+ response_type='ClouddeploymentconfigResponse', # noqa: E501
11847
11852
  auth_settings=auth_settings,
11848
11853
  async_req=local_var_params.get('async_req'),
11849
11854
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -11851,17 +11856,16 @@ class DefaultApi(object):
11851
11856
  _request_timeout=local_var_params.get('_request_timeout'),
11852
11857
  collection_formats=collection_formats)
11853
11858
 
11854
- def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11855
- """Get Cloud Deployment Config # noqa: E501
11859
+ def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(self, cloud_id, **kwargs): # noqa: E501
11860
+ """Get Cloud Deployments # noqa: E501
11856
11861
 
11857
11862
  This method makes a synchronous HTTP request by default. To make an
11858
11863
  asynchronous HTTP request, please pass async_req=True
11859
- >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(cloud_id, cloud_deployment_id, async_req=True)
11864
+ >>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(cloud_id, async_req=True)
11860
11865
  >>> result = thread.get()
11861
11866
 
11862
11867
  :param async_req bool: execute request asynchronously
11863
11868
  :param str cloud_id: (required)
11864
- :param str cloud_deployment_id: (required)
11865
11869
  :param _preload_content: if False, the urllib3.HTTPResponse object will
11866
11870
  be returned without reading/decoding response
11867
11871
  data. Default is True.
@@ -11869,24 +11873,23 @@ class DefaultApi(object):
11869
11873
  number provided, it will be total request
11870
11874
  timeout. It can also be a pair (tuple) of
11871
11875
  (connection, read) timeouts.
11872
- :return: ClouddeploymentconfigResponse
11876
+ :return: DecoratedcloudresourceListResponse
11873
11877
  If the method is called asynchronously,
11874
11878
  returns the request thread.
11875
11879
  """
11876
11880
  kwargs['_return_http_data_only'] = True
11877
- return self.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
11881
+ return self.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, **kwargs) # noqa: E501
11878
11882
 
11879
- def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
11880
- """Get Cloud Deployment Config # noqa: E501
11883
+ def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
11884
+ """Get Cloud Deployments # noqa: E501
11881
11885
 
11882
11886
  This method makes a synchronous HTTP request by default. To make an
11883
11887
  asynchronous HTTP request, please pass async_req=True
11884
- >>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
11888
+ >>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, async_req=True)
11885
11889
  >>> result = thread.get()
11886
11890
 
11887
11891
  :param async_req bool: execute request asynchronously
11888
11892
  :param str cloud_id: (required)
11889
- :param str cloud_deployment_id: (required)
11890
11893
  :param _return_http_data_only: response data without head status code
11891
11894
  and headers
11892
11895
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -11896,7 +11899,7 @@ class DefaultApi(object):
11896
11899
  number provided, it will be total request
11897
11900
  timeout. It can also be a pair (tuple) of
11898
11901
  (connection, read) timeouts.
11899
- :return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
11902
+ :return: tuple(DecoratedcloudresourceListResponse, status_code(int), headers(HTTPHeaderDict))
11900
11903
  If the method is called asynchronously,
11901
11904
  returns the request thread.
11902
11905
  """
@@ -11904,8 +11907,7 @@ class DefaultApi(object):
11904
11907
  local_var_params = locals()
11905
11908
 
11906
11909
  all_params = [
11907
- 'cloud_id',
11908
- 'cloud_deployment_id'
11910
+ 'cloud_id'
11909
11911
  ]
11910
11912
  all_params.extend(
11911
11913
  [
@@ -11920,26 +11922,20 @@ class DefaultApi(object):
11920
11922
  if key not in all_params:
11921
11923
  raise ApiTypeError(
11922
11924
  "Got an unexpected keyword argument '%s'"
11923
- " to method get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get" % key
11925
+ " to method get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get" % key
11924
11926
  )
11925
11927
  local_var_params[key] = val
11926
11928
  del local_var_params['kwargs']
11927
11929
  # verify the required parameter 'cloud_id' is set
11928
11930
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
11929
11931
  local_var_params['cloud_id'] is None): # noqa: E501
11930
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
11931
- # verify the required parameter 'cloud_deployment_id' is set
11932
- if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
11933
- local_var_params['cloud_deployment_id'] is None): # noqa: E501
11934
- raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
11932
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get`") # noqa: E501
11935
11933
 
11936
11934
  collection_formats = {}
11937
11935
 
11938
11936
  path_params = {}
11939
11937
  if 'cloud_id' in local_var_params:
11940
11938
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
11941
- if 'cloud_deployment_id' in local_var_params:
11942
- path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
11943
11939
 
11944
11940
  query_params = []
11945
11941
 
@@ -11957,14 +11953,14 @@ class DefaultApi(object):
11957
11953
  auth_settings = [] # noqa: E501
11958
11954
 
11959
11955
  return self.api_client.call_api(
11960
- '/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'GET',
11956
+ '/api/v2/clouds/{cloud_id}/deployments', 'GET',
11961
11957
  path_params,
11962
11958
  query_params,
11963
11959
  header_params,
11964
11960
  body=body_params,
11965
11961
  post_params=form_params,
11966
11962
  files=local_var_files,
11967
- response_type='ClouddeploymentconfigResponse', # noqa: E501
11963
+ response_type='DecoratedcloudresourceListResponse', # noqa: E501
11968
11964
  auth_settings=auth_settings,
11969
11965
  async_req=local_var_params.get('async_req'),
11970
11966
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -11972,12 +11968,13 @@ class DefaultApi(object):
11972
11968
  _request_timeout=local_var_params.get('_request_timeout'),
11973
11969
  collection_formats=collection_formats)
11974
11970
 
11975
- def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(self, cloud_id, **kwargs): # noqa: E501
11976
- """Get Cloud Deployments # noqa: E501
11971
+ def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(self, cloud_id, **kwargs): # noqa: E501
11972
+ """Get Cloud Overview Dashboard # noqa: E501
11977
11973
 
11974
+ Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
11978
11975
  This method makes a synchronous HTTP request by default. To make an
11979
11976
  asynchronous HTTP request, please pass async_req=True
11980
- >>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(cloud_id, async_req=True)
11977
+ >>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(cloud_id, async_req=True)
11981
11978
  >>> result = thread.get()
11982
11979
 
11983
11980
  :param async_req bool: execute request asynchronously
@@ -11989,19 +11986,20 @@ class DefaultApi(object):
11989
11986
  number provided, it will be total request
11990
11987
  timeout. It can also be a pair (tuple) of
11991
11988
  (connection, read) timeouts.
11992
- :return: ClouddeploymentListResponse
11989
+ :return: CloudoverviewdashboardResponse
11993
11990
  If the method is called asynchronously,
11994
11991
  returns the request thread.
11995
11992
  """
11996
11993
  kwargs['_return_http_data_only'] = True
11997
- return self.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, **kwargs) # noqa: E501
11994
+ return self.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, **kwargs) # noqa: E501
11998
11995
 
11999
- def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
12000
- """Get Cloud Deployments # noqa: E501
11996
+ def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
11997
+ """Get Cloud Overview Dashboard # noqa: E501
12001
11998
 
11999
+ Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
12002
12000
  This method makes a synchronous HTTP request by default. To make an
12003
12001
  asynchronous HTTP request, please pass async_req=True
12004
- >>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, async_req=True)
12002
+ >>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, async_req=True)
12005
12003
  >>> result = thread.get()
12006
12004
 
12007
12005
  :param async_req bool: execute request asynchronously
@@ -12015,7 +12013,7 @@ class DefaultApi(object):
12015
12013
  number provided, it will be total request
12016
12014
  timeout. It can also be a pair (tuple) of
12017
12015
  (connection, read) timeouts.
12018
- :return: tuple(ClouddeploymentListResponse, status_code(int), headers(HTTPHeaderDict))
12016
+ :return: tuple(CloudoverviewdashboardResponse, status_code(int), headers(HTTPHeaderDict))
12019
12017
  If the method is called asynchronously,
12020
12018
  returns the request thread.
12021
12019
  """
@@ -12038,14 +12036,14 @@ class DefaultApi(object):
12038
12036
  if key not in all_params:
12039
12037
  raise ApiTypeError(
12040
12038
  "Got an unexpected keyword argument '%s'"
12041
- " to method get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get" % key
12039
+ " to method get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get" % key
12042
12040
  )
12043
12041
  local_var_params[key] = val
12044
12042
  del local_var_params['kwargs']
12045
12043
  # verify the required parameter 'cloud_id' is set
12046
12044
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
12047
12045
  local_var_params['cloud_id'] is None): # noqa: E501
12048
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get`") # noqa: E501
12046
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get`") # noqa: E501
12049
12047
 
12050
12048
  collection_formats = {}
12051
12049
 
@@ -12069,14 +12067,14 @@ class DefaultApi(object):
12069
12067
  auth_settings = [] # noqa: E501
12070
12068
 
12071
12069
  return self.api_client.call_api(
12072
- '/api/v2/clouds/{cloud_id}/deployments', 'GET',
12070
+ '/api/v2/clouds/{cloud_id}/cloud-overview-dashboard', 'GET',
12073
12071
  path_params,
12074
12072
  query_params,
12075
12073
  header_params,
12076
12074
  body=body_params,
12077
12075
  post_params=form_params,
12078
12076
  files=local_var_files,
12079
- response_type='ClouddeploymentListResponse', # noqa: E501
12077
+ response_type='CloudoverviewdashboardResponse', # noqa: E501
12080
12078
  auth_settings=auth_settings,
12081
12079
  async_req=local_var_params.get('async_req'),
12082
12080
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -12084,17 +12082,131 @@ class DefaultApi(object):
12084
12082
  _request_timeout=local_var_params.get('_request_timeout'),
12085
12083
  collection_formats=collection_formats)
12086
12084
 
12087
- def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(self, cloud_id, **kwargs): # noqa: E501
12088
- """Get Cloud Overview Dashboard # noqa: E501
12085
+ def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(self, project_id, **kwargs): # noqa: E501
12086
+ """Get Cloud Project Collaborator # noqa: E501
12089
12087
 
12090
- Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
12088
+ Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
12091
12089
  This method makes a synchronous HTTP request by default. To make an
12092
12090
  asynchronous HTTP request, please pass async_req=True
12093
- >>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(cloud_id, async_req=True)
12091
+ >>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(project_id, async_req=True)
12092
+ >>> result = thread.get()
12093
+
12094
+ :param async_req bool: execute request asynchronously
12095
+ :param str project_id: (required)
12096
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12097
+ be returned without reading/decoding response
12098
+ data. Default is True.
12099
+ :param _request_timeout: timeout setting for this request. If one
12100
+ number provided, it will be total request
12101
+ timeout. It can also be a pair (tuple) of
12102
+ (connection, read) timeouts.
12103
+ :return: CloudProjectCollaborator
12104
+ If the method is called asynchronously,
12105
+ returns the request thread.
12106
+ """
12107
+ kwargs['_return_http_data_only'] = True
12108
+ return self.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, **kwargs) # noqa: E501
12109
+
12110
+ def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(self, project_id, **kwargs): # noqa: E501
12111
+ """Get Cloud Project Collaborator # noqa: E501
12112
+
12113
+ Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
12114
+ This method makes a synchronous HTTP request by default. To make an
12115
+ asynchronous HTTP request, please pass async_req=True
12116
+ >>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, async_req=True)
12117
+ >>> result = thread.get()
12118
+
12119
+ :param async_req bool: execute request asynchronously
12120
+ :param str project_id: (required)
12121
+ :param _return_http_data_only: response data without head status code
12122
+ and headers
12123
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
12124
+ be returned without reading/decoding response
12125
+ data. Default is True.
12126
+ :param _request_timeout: timeout setting for this request. If one
12127
+ number provided, it will be total request
12128
+ timeout. It can also be a pair (tuple) of
12129
+ (connection, read) timeouts.
12130
+ :return: tuple(CloudProjectCollaborator, status_code(int), headers(HTTPHeaderDict))
12131
+ If the method is called asynchronously,
12132
+ returns the request thread.
12133
+ """
12134
+
12135
+ local_var_params = locals()
12136
+
12137
+ all_params = [
12138
+ 'project_id'
12139
+ ]
12140
+ all_params.extend(
12141
+ [
12142
+ 'async_req',
12143
+ '_return_http_data_only',
12144
+ '_preload_content',
12145
+ '_request_timeout'
12146
+ ]
12147
+ )
12148
+
12149
+ for key, val in six.iteritems(local_var_params['kwargs']):
12150
+ if key not in all_params:
12151
+ raise ApiTypeError(
12152
+ "Got an unexpected keyword argument '%s'"
12153
+ " to method get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get" % key
12154
+ )
12155
+ local_var_params[key] = val
12156
+ del local_var_params['kwargs']
12157
+ # verify the required parameter 'project_id' is set
12158
+ if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
12159
+ local_var_params['project_id'] is None): # noqa: E501
12160
+ raise ApiValueError("Missing the required parameter `project_id` when calling `get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get`") # noqa: E501
12161
+
12162
+ collection_formats = {}
12163
+
12164
+ path_params = {}
12165
+ if 'project_id' in local_var_params:
12166
+ path_params['project_id'] = local_var_params['project_id'] # noqa: E501
12167
+
12168
+ query_params = []
12169
+
12170
+ header_params = {}
12171
+
12172
+ form_params = []
12173
+ local_var_files = {}
12174
+
12175
+ body_params = None
12176
+ # HTTP header `Accept`
12177
+ header_params['Accept'] = self.api_client.select_header_accept(
12178
+ ['application/json']) # noqa: E501
12179
+
12180
+ # Authentication setting
12181
+ auth_settings = [] # noqa: E501
12182
+
12183
+ return self.api_client.call_api(
12184
+ '/api/v2/projects/{project_id}/collaborators/clouds', 'GET',
12185
+ path_params,
12186
+ query_params,
12187
+ header_params,
12188
+ body=body_params,
12189
+ post_params=form_params,
12190
+ files=local_var_files,
12191
+ response_type='CloudProjectCollaborator', # noqa: E501
12192
+ auth_settings=auth_settings,
12193
+ async_req=local_var_params.get('async_req'),
12194
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
12195
+ _preload_content=local_var_params.get('_preload_content', True),
12196
+ _request_timeout=local_var_params.get('_request_timeout'),
12197
+ collection_formats=collection_formats)
12198
+
12199
+ def get_cloud_resource_api_v2_clouds_cloud_id_resource_get(self, cloud_id, cloud_resource_id, **kwargs): # noqa: E501
12200
+ """Get Cloud Resource # noqa: E501
12201
+
12202
+ This method makes a synchronous HTTP request by default. To make an
12203
+ asynchronous HTTP request, please pass async_req=True
12204
+ >>> thread = api.get_cloud_resource_api_v2_clouds_cloud_id_resource_get(cloud_id, cloud_resource_id, async_req=True)
12094
12205
  >>> result = thread.get()
12095
12206
 
12096
12207
  :param async_req bool: execute request asynchronously
12097
12208
  :param str cloud_id: (required)
12209
+ :param str cloud_resource_id: (required)
12098
12210
  :param _preload_content: if False, the urllib3.HTTPResponse object will
12099
12211
  be returned without reading/decoding response
12100
12212
  data. Default is True.
@@ -12102,24 +12214,24 @@ class DefaultApi(object):
12102
12214
  number provided, it will be total request
12103
12215
  timeout. It can also be a pair (tuple) of
12104
12216
  (connection, read) timeouts.
12105
- :return: CloudoverviewdashboardResponse
12217
+ :return: DecoratedcloudresourceResponse
12106
12218
  If the method is called asynchronously,
12107
12219
  returns the request thread.
12108
12220
  """
12109
12221
  kwargs['_return_http_data_only'] = True
12110
- return self.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, **kwargs) # noqa: E501
12222
+ return self.get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(cloud_id, cloud_resource_id, **kwargs) # noqa: E501
12111
12223
 
12112
- def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
12113
- """Get Cloud Overview Dashboard # noqa: E501
12224
+ def get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(self, cloud_id, cloud_resource_id, **kwargs): # noqa: E501
12225
+ """Get Cloud Resource # noqa: E501
12114
12226
 
12115
- Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
12116
12227
  This method makes a synchronous HTTP request by default. To make an
12117
12228
  asynchronous HTTP request, please pass async_req=True
12118
- >>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, async_req=True)
12229
+ >>> thread = api.get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(cloud_id, cloud_resource_id, async_req=True)
12119
12230
  >>> result = thread.get()
12120
12231
 
12121
12232
  :param async_req bool: execute request asynchronously
12122
12233
  :param str cloud_id: (required)
12234
+ :param str cloud_resource_id: (required)
12123
12235
  :param _return_http_data_only: response data without head status code
12124
12236
  and headers
12125
12237
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -12129,7 +12241,7 @@ class DefaultApi(object):
12129
12241
  number provided, it will be total request
12130
12242
  timeout. It can also be a pair (tuple) of
12131
12243
  (connection, read) timeouts.
12132
- :return: tuple(CloudoverviewdashboardResponse, status_code(int), headers(HTTPHeaderDict))
12244
+ :return: tuple(DecoratedcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
12133
12245
  If the method is called asynchronously,
12134
12246
  returns the request thread.
12135
12247
  """
@@ -12137,7 +12249,8 @@ class DefaultApi(object):
12137
12249
  local_var_params = locals()
12138
12250
 
12139
12251
  all_params = [
12140
- 'cloud_id'
12252
+ 'cloud_id',
12253
+ 'cloud_resource_id'
12141
12254
  ]
12142
12255
  all_params.extend(
12143
12256
  [
@@ -12152,14 +12265,18 @@ class DefaultApi(object):
12152
12265
  if key not in all_params:
12153
12266
  raise ApiTypeError(
12154
12267
  "Got an unexpected keyword argument '%s'"
12155
- " to method get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get" % key
12268
+ " to method get_cloud_resource_api_v2_clouds_cloud_id_resource_get" % key
12156
12269
  )
12157
12270
  local_var_params[key] = val
12158
12271
  del local_var_params['kwargs']
12159
12272
  # verify the required parameter 'cloud_id' is set
12160
12273
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
12161
12274
  local_var_params['cloud_id'] is None): # noqa: E501
12162
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get`") # noqa: E501
12275
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_resource_api_v2_clouds_cloud_id_resource_get`") # noqa: E501
12276
+ # verify the required parameter 'cloud_resource_id' is set
12277
+ if self.api_client.client_side_validation and ('cloud_resource_id' not in local_var_params or # noqa: E501
12278
+ local_var_params['cloud_resource_id'] is None): # noqa: E501
12279
+ raise ApiValueError("Missing the required parameter `cloud_resource_id` when calling `get_cloud_resource_api_v2_clouds_cloud_id_resource_get`") # noqa: E501
12163
12280
 
12164
12281
  collection_formats = {}
12165
12282
 
@@ -12168,6 +12285,8 @@ class DefaultApi(object):
12168
12285
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
12169
12286
 
12170
12287
  query_params = []
12288
+ if 'cloud_resource_id' in local_var_params and local_var_params['cloud_resource_id'] is not None: # noqa: E501
12289
+ query_params.append(('cloud_resource_id', local_var_params['cloud_resource_id'])) # noqa: E501
12171
12290
 
12172
12291
  header_params = {}
12173
12292
 
@@ -12183,14 +12302,14 @@ class DefaultApi(object):
12183
12302
  auth_settings = [] # noqa: E501
12184
12303
 
12185
12304
  return self.api_client.call_api(
12186
- '/api/v2/clouds/{cloud_id}/cloud-overview-dashboard', 'GET',
12305
+ '/api/v2/clouds/{cloud_id}/resource', 'GET',
12187
12306
  path_params,
12188
12307
  query_params,
12189
12308
  header_params,
12190
12309
  body=body_params,
12191
12310
  post_params=form_params,
12192
12311
  files=local_var_files,
12193
- response_type='CloudoverviewdashboardResponse', # noqa: E501
12312
+ response_type='DecoratedcloudresourceResponse', # noqa: E501
12194
12313
  auth_settings=auth_settings,
12195
12314
  async_req=local_var_params.get('async_req'),
12196
12315
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -12198,17 +12317,16 @@ class DefaultApi(object):
12198
12317
  _request_timeout=local_var_params.get('_request_timeout'),
12199
12318
  collection_formats=collection_formats)
12200
12319
 
12201
- def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(self, project_id, **kwargs): # noqa: E501
12202
- """Get Cloud Project Collaborator # noqa: E501
12320
+ def get_cloud_resources_api_v2_clouds_cloud_id_resources_get(self, cloud_id, **kwargs): # noqa: E501
12321
+ """Get Cloud Resources # noqa: E501
12203
12322
 
12204
- Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
12205
12323
  This method makes a synchronous HTTP request by default. To make an
12206
12324
  asynchronous HTTP request, please pass async_req=True
12207
- >>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(project_id, async_req=True)
12325
+ >>> thread = api.get_cloud_resources_api_v2_clouds_cloud_id_resources_get(cloud_id, async_req=True)
12208
12326
  >>> result = thread.get()
12209
12327
 
12210
12328
  :param async_req bool: execute request asynchronously
12211
- :param str project_id: (required)
12329
+ :param str cloud_id: (required)
12212
12330
  :param _preload_content: if False, the urllib3.HTTPResponse object will
12213
12331
  be returned without reading/decoding response
12214
12332
  data. Default is True.
@@ -12216,24 +12334,23 @@ class DefaultApi(object):
12216
12334
  number provided, it will be total request
12217
12335
  timeout. It can also be a pair (tuple) of
12218
12336
  (connection, read) timeouts.
12219
- :return: CloudProjectCollaborator
12337
+ :return: DecoratedcloudresourceListResponse
12220
12338
  If the method is called asynchronously,
12221
12339
  returns the request thread.
12222
12340
  """
12223
12341
  kwargs['_return_http_data_only'] = True
12224
- return self.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, **kwargs) # noqa: E501
12342
+ return self.get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(cloud_id, **kwargs) # noqa: E501
12225
12343
 
12226
- def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(self, project_id, **kwargs): # noqa: E501
12227
- """Get Cloud Project Collaborator # noqa: E501
12344
+ def get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
12345
+ """Get Cloud Resources # noqa: E501
12228
12346
 
12229
- Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
12230
12347
  This method makes a synchronous HTTP request by default. To make an
12231
12348
  asynchronous HTTP request, please pass async_req=True
12232
- >>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, async_req=True)
12349
+ >>> thread = api.get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(cloud_id, async_req=True)
12233
12350
  >>> result = thread.get()
12234
12351
 
12235
12352
  :param async_req bool: execute request asynchronously
12236
- :param str project_id: (required)
12353
+ :param str cloud_id: (required)
12237
12354
  :param _return_http_data_only: response data without head status code
12238
12355
  and headers
12239
12356
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -12243,7 +12360,7 @@ class DefaultApi(object):
12243
12360
  number provided, it will be total request
12244
12361
  timeout. It can also be a pair (tuple) of
12245
12362
  (connection, read) timeouts.
12246
- :return: tuple(CloudProjectCollaborator, status_code(int), headers(HTTPHeaderDict))
12363
+ :return: tuple(DecoratedcloudresourceListResponse, status_code(int), headers(HTTPHeaderDict))
12247
12364
  If the method is called asynchronously,
12248
12365
  returns the request thread.
12249
12366
  """
@@ -12251,7 +12368,7 @@ class DefaultApi(object):
12251
12368
  local_var_params = locals()
12252
12369
 
12253
12370
  all_params = [
12254
- 'project_id'
12371
+ 'cloud_id'
12255
12372
  ]
12256
12373
  all_params.extend(
12257
12374
  [
@@ -12266,20 +12383,20 @@ class DefaultApi(object):
12266
12383
  if key not in all_params:
12267
12384
  raise ApiTypeError(
12268
12385
  "Got an unexpected keyword argument '%s'"
12269
- " to method get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get" % key
12386
+ " to method get_cloud_resources_api_v2_clouds_cloud_id_resources_get" % key
12270
12387
  )
12271
12388
  local_var_params[key] = val
12272
12389
  del local_var_params['kwargs']
12273
- # verify the required parameter 'project_id' is set
12274
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
12275
- local_var_params['project_id'] is None): # noqa: E501
12276
- raise ApiValueError("Missing the required parameter `project_id` when calling `get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get`") # noqa: E501
12390
+ # verify the required parameter 'cloud_id' is set
12391
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
12392
+ local_var_params['cloud_id'] is None): # noqa: E501
12393
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_resources_api_v2_clouds_cloud_id_resources_get`") # noqa: E501
12277
12394
 
12278
12395
  collection_formats = {}
12279
12396
 
12280
12397
  path_params = {}
12281
- if 'project_id' in local_var_params:
12282
- path_params['project_id'] = local_var_params['project_id'] # noqa: E501
12398
+ if 'cloud_id' in local_var_params:
12399
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
12283
12400
 
12284
12401
  query_params = []
12285
12402
 
@@ -12297,14 +12414,14 @@ class DefaultApi(object):
12297
12414
  auth_settings = [] # noqa: E501
12298
12415
 
12299
12416
  return self.api_client.call_api(
12300
- '/api/v2/projects/{project_id}/collaborators/clouds', 'GET',
12417
+ '/api/v2/clouds/{cloud_id}/resources', 'GET',
12301
12418
  path_params,
12302
12419
  query_params,
12303
12420
  header_params,
12304
12421
  body=body_params,
12305
12422
  post_params=form_params,
12306
12423
  files=local_var_files,
12307
- response_type='CloudProjectCollaborator', # noqa: E501
12424
+ response_type='DecoratedcloudresourceListResponse', # noqa: E501
12308
12425
  auth_settings=auth_settings,
12309
12426
  async_req=local_var_params.get('async_req'),
12310
12427
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -15853,22 +15970,136 @@ class DefaultApi(object):
15853
15970
  if key not in all_params:
15854
15971
  raise ApiTypeError(
15855
15972
  "Got an unexpected keyword argument '%s'"
15856
- " to method get_jobs_api_v2_dataset_runs_jobs_get" % key
15973
+ " to method get_jobs_api_v2_dataset_runs_jobs_get" % key
15974
+ )
15975
+ local_var_params[key] = val
15976
+ del local_var_params['kwargs']
15977
+ # verify the required parameter 'cluster_id' is set
15978
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
15979
+ local_var_params['cluster_id'] is None): # noqa: E501
15980
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_jobs_api_v2_dataset_runs_jobs_get`") # noqa: E501
15981
+
15982
+ collection_formats = {}
15983
+
15984
+ path_params = {}
15985
+
15986
+ query_params = []
15987
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
15988
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
15989
+
15990
+ header_params = {}
15991
+
15992
+ form_params = []
15993
+ local_var_files = {}
15994
+
15995
+ body_params = None
15996
+ # HTTP header `Accept`
15997
+ header_params['Accept'] = self.api_client.select_header_accept(
15998
+ ['application/json']) # noqa: E501
15999
+
16000
+ # Authentication setting
16001
+ auth_settings = [] # noqa: E501
16002
+
16003
+ return self.api_client.call_api(
16004
+ '/api/v2/dataset_runs/jobs', 'GET',
16005
+ path_params,
16006
+ query_params,
16007
+ header_params,
16008
+ body=body_params,
16009
+ post_params=form_params,
16010
+ files=local_var_files,
16011
+ response_type='DatasetJobs', # noqa: E501
16012
+ auth_settings=auth_settings,
16013
+ async_req=local_var_params.get('async_req'),
16014
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16015
+ _preload_content=local_var_params.get('_preload_content', True),
16016
+ _request_timeout=local_var_params.get('_request_timeout'),
16017
+ collection_formats=collection_formats)
16018
+
16019
+ def get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get(self, cluster_id, **kwargs): # noqa: E501
16020
+ """Get Latest Cloud Resource # noqa: E501
16021
+
16022
+ Fetches the last-used cloud resource for a cluster. # noqa: E501
16023
+ This method makes a synchronous HTTP request by default. To make an
16024
+ asynchronous HTTP request, please pass async_req=True
16025
+ >>> thread = api.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get(cluster_id, async_req=True)
16026
+ >>> result = thread.get()
16027
+
16028
+ :param async_req bool: execute request asynchronously
16029
+ :param str cluster_id: (required)
16030
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16031
+ be returned without reading/decoding response
16032
+ data. Default is True.
16033
+ :param _request_timeout: timeout setting for this request. If one
16034
+ number provided, it will be total request
16035
+ timeout. It can also be a pair (tuple) of
16036
+ (connection, read) timeouts.
16037
+ :return: DecoratedcloudresourceResponse
16038
+ If the method is called asynchronously,
16039
+ returns the request thread.
16040
+ """
16041
+ kwargs['_return_http_data_only'] = True
16042
+ return self.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(cluster_id, **kwargs) # noqa: E501
16043
+
16044
+ def get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
16045
+ """Get Latest Cloud Resource # noqa: E501
16046
+
16047
+ Fetches the last-used cloud resource for a cluster. # noqa: E501
16048
+ This method makes a synchronous HTTP request by default. To make an
16049
+ asynchronous HTTP request, please pass async_req=True
16050
+ >>> thread = api.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(cluster_id, async_req=True)
16051
+ >>> result = thread.get()
16052
+
16053
+ :param async_req bool: execute request asynchronously
16054
+ :param str cluster_id: (required)
16055
+ :param _return_http_data_only: response data without head status code
16056
+ and headers
16057
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16058
+ be returned without reading/decoding response
16059
+ data. Default is True.
16060
+ :param _request_timeout: timeout setting for this request. If one
16061
+ number provided, it will be total request
16062
+ timeout. It can also be a pair (tuple) of
16063
+ (connection, read) timeouts.
16064
+ :return: tuple(DecoratedcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
16065
+ If the method is called asynchronously,
16066
+ returns the request thread.
16067
+ """
16068
+
16069
+ local_var_params = locals()
16070
+
16071
+ all_params = [
16072
+ 'cluster_id'
16073
+ ]
16074
+ all_params.extend(
16075
+ [
16076
+ 'async_req',
16077
+ '_return_http_data_only',
16078
+ '_preload_content',
16079
+ '_request_timeout'
16080
+ ]
16081
+ )
16082
+
16083
+ for key, val in six.iteritems(local_var_params['kwargs']):
16084
+ if key not in all_params:
16085
+ raise ApiTypeError(
16086
+ "Got an unexpected keyword argument '%s'"
16087
+ " to method get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get" % key
15857
16088
  )
15858
16089
  local_var_params[key] = val
15859
16090
  del local_var_params['kwargs']
15860
16091
  # verify the required parameter 'cluster_id' is set
15861
16092
  if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
15862
16093
  local_var_params['cluster_id'] is None): # noqa: E501
15863
- raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_jobs_api_v2_dataset_runs_jobs_get`") # noqa: E501
16094
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get`") # noqa: E501
15864
16095
 
15865
16096
  collection_formats = {}
15866
16097
 
15867
16098
  path_params = {}
16099
+ if 'cluster_id' in local_var_params:
16100
+ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501
15868
16101
 
15869
16102
  query_params = []
15870
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
15871
- query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
15872
16103
 
15873
16104
  header_params = {}
15874
16105
 
@@ -15884,14 +16115,14 @@ class DefaultApi(object):
15884
16115
  auth_settings = [] # noqa: E501
15885
16116
 
15886
16117
  return self.api_client.call_api(
15887
- '/api/v2/dataset_runs/jobs', 'GET',
16118
+ '/api/v2/sessions/{cluster_id}/latest_cloud_resource', 'GET',
15888
16119
  path_params,
15889
16120
  query_params,
15890
16121
  header_params,
15891
16122
  body=body_params,
15892
16123
  post_params=form_params,
15893
16124
  files=local_var_files,
15894
- response_type='DatasetJobs', # noqa: E501
16125
+ response_type='DecoratedcloudresourceResponse', # noqa: E501
15895
16126
  auth_settings=auth_settings,
15896
16127
  async_req=local_var_params.get('async_req'),
15897
16128
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -16346,6 +16577,141 @@ class DefaultApi(object):
16346
16577
  _request_timeout=local_var_params.get('_request_timeout'),
16347
16578
  collection_formats=collection_formats)
16348
16579
 
16580
+ def get_metric_names_api_v2_metrics_names_get(self, **kwargs): # noqa: E501
16581
+ """Get Metric Names # noqa: E501
16582
+
16583
+ Return all available metric names for the specified resource # noqa: E501
16584
+ This method makes a synchronous HTTP request by default. To make an
16585
+ asynchronous HTTP request, please pass async_req=True
16586
+ >>> thread = api.get_metric_names_api_v2_metrics_names_get(async_req=True)
16587
+ >>> result = thread.get()
16588
+
16589
+ :param async_req bool: execute request asynchronously
16590
+ :param str cluster_id: The cluster id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16591
+ :param str workspace_id: The workspace id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16592
+ :param str ha_job_id: The production job id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16593
+ :param str service_id: The service id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16594
+ :param float start: Optional start timestamp (Unix). If provided, filters metric names to those present in [start, end].
16595
+ :param float end: Optional end timestamp (Unix). If provided with start, filters metric names present in [start, end].
16596
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16597
+ be returned without reading/decoding response
16598
+ data. Default is True.
16599
+ :param _request_timeout: timeout setting for this request. If one
16600
+ number provided, it will be total request
16601
+ timeout. It can also be a pair (tuple) of
16602
+ (connection, read) timeouts.
16603
+ :return: MetricsqueryresponseResponse
16604
+ If the method is called asynchronously,
16605
+ returns the request thread.
16606
+ """
16607
+ kwargs['_return_http_data_only'] = True
16608
+ return self.get_metric_names_api_v2_metrics_names_get_with_http_info(**kwargs) # noqa: E501
16609
+
16610
+ def get_metric_names_api_v2_metrics_names_get_with_http_info(self, **kwargs): # noqa: E501
16611
+ """Get Metric Names # noqa: E501
16612
+
16613
+ Return all available metric names for the specified resource # noqa: E501
16614
+ This method makes a synchronous HTTP request by default. To make an
16615
+ asynchronous HTTP request, please pass async_req=True
16616
+ >>> thread = api.get_metric_names_api_v2_metrics_names_get_with_http_info(async_req=True)
16617
+ >>> result = thread.get()
16618
+
16619
+ :param async_req bool: execute request asynchronously
16620
+ :param str cluster_id: The cluster id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16621
+ :param str workspace_id: The workspace id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16622
+ :param str ha_job_id: The production job id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16623
+ :param str service_id: The service id used to query metrics. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
16624
+ :param float start: Optional start timestamp (Unix). If provided, filters metric names to those present in [start, end].
16625
+ :param float end: Optional end timestamp (Unix). If provided with start, filters metric names present in [start, end].
16626
+ :param _return_http_data_only: response data without head status code
16627
+ and headers
16628
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
16629
+ be returned without reading/decoding response
16630
+ data. Default is True.
16631
+ :param _request_timeout: timeout setting for this request. If one
16632
+ number provided, it will be total request
16633
+ timeout. It can also be a pair (tuple) of
16634
+ (connection, read) timeouts.
16635
+ :return: tuple(MetricsqueryresponseResponse, status_code(int), headers(HTTPHeaderDict))
16636
+ If the method is called asynchronously,
16637
+ returns the request thread.
16638
+ """
16639
+
16640
+ local_var_params = locals()
16641
+
16642
+ all_params = [
16643
+ 'cluster_id',
16644
+ 'workspace_id',
16645
+ 'ha_job_id',
16646
+ 'service_id',
16647
+ 'start',
16648
+ 'end'
16649
+ ]
16650
+ all_params.extend(
16651
+ [
16652
+ 'async_req',
16653
+ '_return_http_data_only',
16654
+ '_preload_content',
16655
+ '_request_timeout'
16656
+ ]
16657
+ )
16658
+
16659
+ for key, val in six.iteritems(local_var_params['kwargs']):
16660
+ if key not in all_params:
16661
+ raise ApiTypeError(
16662
+ "Got an unexpected keyword argument '%s'"
16663
+ " to method get_metric_names_api_v2_metrics_names_get" % key
16664
+ )
16665
+ local_var_params[key] = val
16666
+ del local_var_params['kwargs']
16667
+
16668
+ collection_formats = {}
16669
+
16670
+ path_params = {}
16671
+
16672
+ query_params = []
16673
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
16674
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
16675
+ if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
16676
+ query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
16677
+ if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
16678
+ query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
16679
+ if 'service_id' in local_var_params and local_var_params['service_id'] is not None: # noqa: E501
16680
+ query_params.append(('service_id', local_var_params['service_id'])) # noqa: E501
16681
+ if 'start' in local_var_params and local_var_params['start'] is not None: # noqa: E501
16682
+ query_params.append(('start', local_var_params['start'])) # noqa: E501
16683
+ if 'end' in local_var_params and local_var_params['end'] is not None: # noqa: E501
16684
+ query_params.append(('end', local_var_params['end'])) # noqa: E501
16685
+
16686
+ header_params = {}
16687
+
16688
+ form_params = []
16689
+ local_var_files = {}
16690
+
16691
+ body_params = None
16692
+ # HTTP header `Accept`
16693
+ header_params['Accept'] = self.api_client.select_header_accept(
16694
+ ['application/json']) # noqa: E501
16695
+
16696
+ # Authentication setting
16697
+ auth_settings = [] # noqa: E501
16698
+
16699
+ return self.api_client.call_api(
16700
+ '/api/v2/metrics/names', 'GET',
16701
+ path_params,
16702
+ query_params,
16703
+ header_params,
16704
+ body=body_params,
16705
+ post_params=form_params,
16706
+ files=local_var_files,
16707
+ response_type='MetricsqueryresponseResponse', # noqa: E501
16708
+ auth_settings=auth_settings,
16709
+ async_req=local_var_params.get('async_req'),
16710
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
16711
+ _preload_content=local_var_params.get('_preload_content', True),
16712
+ _request_timeout=local_var_params.get('_request_timeout'),
16713
+ collection_formats=collection_formats)
16714
+
16349
16715
  def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(self, organization_id, **kwargs): # noqa: E501
16350
16716
  """Get Metronome Customer Info # noqa: E501
16351
16717
 
@@ -28333,181 +28699,6 @@ class DefaultApi(object):
28333
28699
  _request_timeout=local_var_params.get('_request_timeout'),
28334
28700
  collection_formats=collection_formats)
28335
28701
 
28336
- def query_api_v2_logs_query_get(self, logql_query, start, end, source_type, **kwargs): # noqa: E501
28337
- """Query # noqa: E501
28338
-
28339
- Fetching logs using LogQL queries. # noqa: E501
28340
- This method makes a synchronous HTTP request by default. To make an
28341
- asynchronous HTTP request, please pass async_req=True
28342
- >>> thread = api.query_api_v2_logs_query_get(logql_query, start, end, source_type, async_req=True)
28343
- >>> result = thread.get()
28344
-
28345
- :param async_req bool: execute request asynchronously
28346
- :param str logql_query: LogQL query string to execute against the logs. This should be a valid Loki LogQL expression. (required)
28347
- :param float start: The start time for the query as a nanosecond Unix epoch. (required)
28348
- :param float end: The end time for the query as a nanosecond Unix epoch. (required)
28349
- :param str source_type: The type of logs to query. Must be one of \"application\" or \"system\". (required)
28350
- :param str cluster_id: The cluster id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28351
- :param str workspace_id: The workspace id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28352
- :param str ha_job_id: The production job id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28353
- :param str service_id: The service id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28354
- :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
28355
- :param bool reverse_sort: Whether the result should be sorted by descending timestamp. Also determines the query direction. When false, it will start to query from the start and return results until it reaches the page_size or the end. When true, it will start to query from the end and return results until it reaches the page_size or the start. Default to false.
28356
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28357
- be returned without reading/decoding response
28358
- data. Default is True.
28359
- :param _request_timeout: timeout setting for this request. If one
28360
- number provided, it will be total request
28361
- timeout. It can also be a pair (tuple) of
28362
- (connection, read) timeouts.
28363
- :return: LogitembatchResponse
28364
- If the method is called asynchronously,
28365
- returns the request thread.
28366
- """
28367
- kwargs['_return_http_data_only'] = True
28368
- return self.query_api_v2_logs_query_get_with_http_info(logql_query, start, end, source_type, **kwargs) # noqa: E501
28369
-
28370
- def query_api_v2_logs_query_get_with_http_info(self, logql_query, start, end, source_type, **kwargs): # noqa: E501
28371
- """Query # noqa: E501
28372
-
28373
- Fetching logs using LogQL queries. # noqa: E501
28374
- This method makes a synchronous HTTP request by default. To make an
28375
- asynchronous HTTP request, please pass async_req=True
28376
- >>> thread = api.query_api_v2_logs_query_get_with_http_info(logql_query, start, end, source_type, async_req=True)
28377
- >>> result = thread.get()
28378
-
28379
- :param async_req bool: execute request asynchronously
28380
- :param str logql_query: LogQL query string to execute against the logs. This should be a valid Loki LogQL expression. (required)
28381
- :param float start: The start time for the query as a nanosecond Unix epoch. (required)
28382
- :param float end: The end time for the query as a nanosecond Unix epoch. (required)
28383
- :param str source_type: The type of logs to query. Must be one of \"application\" or \"system\". (required)
28384
- :param str cluster_id: The cluster id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28385
- :param str workspace_id: The workspace id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28386
- :param str ha_job_id: The production job id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28387
- :param str service_id: The service id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
28388
- :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
28389
- :param bool reverse_sort: Whether the result should be sorted by descending timestamp. Also determines the query direction. When false, it will start to query from the start and return results until it reaches the page_size or the end. When true, it will start to query from the end and return results until it reaches the page_size or the start. Default to false.
28390
- :param _return_http_data_only: response data without head status code
28391
- and headers
28392
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28393
- be returned without reading/decoding response
28394
- data. Default is True.
28395
- :param _request_timeout: timeout setting for this request. If one
28396
- number provided, it will be total request
28397
- timeout. It can also be a pair (tuple) of
28398
- (connection, read) timeouts.
28399
- :return: tuple(LogitembatchResponse, status_code(int), headers(HTTPHeaderDict))
28400
- If the method is called asynchronously,
28401
- returns the request thread.
28402
- """
28403
-
28404
- local_var_params = locals()
28405
-
28406
- all_params = [
28407
- 'logql_query',
28408
- 'start',
28409
- 'end',
28410
- 'source_type',
28411
- 'cluster_id',
28412
- 'workspace_id',
28413
- 'ha_job_id',
28414
- 'service_id',
28415
- 'page_size',
28416
- 'reverse_sort'
28417
- ]
28418
- all_params.extend(
28419
- [
28420
- 'async_req',
28421
- '_return_http_data_only',
28422
- '_preload_content',
28423
- '_request_timeout'
28424
- ]
28425
- )
28426
-
28427
- for key, val in six.iteritems(local_var_params['kwargs']):
28428
- if key not in all_params:
28429
- raise ApiTypeError(
28430
- "Got an unexpected keyword argument '%s'"
28431
- " to method query_api_v2_logs_query_get" % key
28432
- )
28433
- local_var_params[key] = val
28434
- del local_var_params['kwargs']
28435
- # verify the required parameter 'logql_query' is set
28436
- if self.api_client.client_side_validation and ('logql_query' not in local_var_params or # noqa: E501
28437
- local_var_params['logql_query'] is None): # noqa: E501
28438
- raise ApiValueError("Missing the required parameter `logql_query` when calling `query_api_v2_logs_query_get`") # noqa: E501
28439
- # verify the required parameter 'start' is set
28440
- if self.api_client.client_side_validation and ('start' not in local_var_params or # noqa: E501
28441
- local_var_params['start'] is None): # noqa: E501
28442
- raise ApiValueError("Missing the required parameter `start` when calling `query_api_v2_logs_query_get`") # noqa: E501
28443
- # verify the required parameter 'end' is set
28444
- if self.api_client.client_side_validation and ('end' not in local_var_params or # noqa: E501
28445
- local_var_params['end'] is None): # noqa: E501
28446
- raise ApiValueError("Missing the required parameter `end` when calling `query_api_v2_logs_query_get`") # noqa: E501
28447
- # verify the required parameter 'source_type' is set
28448
- if self.api_client.client_side_validation and ('source_type' not in local_var_params or # noqa: E501
28449
- local_var_params['source_type'] is None): # noqa: E501
28450
- raise ApiValueError("Missing the required parameter `source_type` when calling `query_api_v2_logs_query_get`") # noqa: E501
28451
-
28452
- if self.api_client.client_side_validation and 'source_type' in local_var_params and not re.search(r'^(application|system)$', local_var_params['source_type']): # noqa: E501
28453
- raise ApiValueError("Invalid value for parameter `source_type` when calling `query_api_v2_logs_query_get`, must conform to the pattern `/^(application|system)$/`") # noqa: E501
28454
- if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
28455
- raise ApiValueError("Invalid value for parameter `page_size` when calling `query_api_v2_logs_query_get`, must be a value less than or equal to `1000`") # noqa: E501
28456
- collection_formats = {}
28457
-
28458
- path_params = {}
28459
-
28460
- query_params = []
28461
- if 'logql_query' in local_var_params and local_var_params['logql_query'] is not None: # noqa: E501
28462
- query_params.append(('logql_query', local_var_params['logql_query'])) # noqa: E501
28463
- if 'start' in local_var_params and local_var_params['start'] is not None: # noqa: E501
28464
- query_params.append(('start', local_var_params['start'])) # noqa: E501
28465
- if 'end' in local_var_params and local_var_params['end'] is not None: # noqa: E501
28466
- query_params.append(('end', local_var_params['end'])) # noqa: E501
28467
- if 'source_type' in local_var_params and local_var_params['source_type'] is not None: # noqa: E501
28468
- query_params.append(('source_type', local_var_params['source_type'])) # noqa: E501
28469
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28470
- query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28471
- if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28472
- query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28473
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28474
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28475
- if 'service_id' in local_var_params and local_var_params['service_id'] is not None: # noqa: E501
28476
- query_params.append(('service_id', local_var_params['service_id'])) # noqa: E501
28477
- if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
28478
- query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
28479
- if 'reverse_sort' in local_var_params and local_var_params['reverse_sort'] is not None: # noqa: E501
28480
- query_params.append(('reverse_sort', local_var_params['reverse_sort'])) # noqa: E501
28481
-
28482
- header_params = {}
28483
-
28484
- form_params = []
28485
- local_var_files = {}
28486
-
28487
- body_params = None
28488
- # HTTP header `Accept`
28489
- header_params['Accept'] = self.api_client.select_header_accept(
28490
- ['application/json']) # noqa: E501
28491
-
28492
- # Authentication setting
28493
- auth_settings = [] # noqa: E501
28494
-
28495
- return self.api_client.call_api(
28496
- '/api/v2/logs/query', 'GET',
28497
- path_params,
28498
- query_params,
28499
- header_params,
28500
- body=body_params,
28501
- post_params=form_params,
28502
- files=local_var_files,
28503
- response_type='LogitembatchResponse', # noqa: E501
28504
- auth_settings=auth_settings,
28505
- async_req=local_var_params.get('async_req'),
28506
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28507
- _preload_content=local_var_params.get('_preload_content', True),
28508
- _request_timeout=local_var_params.get('_request_timeout'),
28509
- collection_formats=collection_formats)
28510
-
28511
28702
  def query_api_v2_metrics_query_get(self, promql_query, **kwargs): # noqa: E501
28512
28703
  """Query # noqa: E501
28513
28704
 
@@ -29756,17 +29947,17 @@ class DefaultApi(object):
29756
29947
  _request_timeout=local_var_params.get('_request_timeout'),
29757
29948
  collection_formats=collection_formats)
29758
29949
 
29759
- def remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete(self, cloud_id, cloud_deployment_name, **kwargs): # noqa: E501
29760
- """Remove Cloud Deployment # noqa: E501
29950
+ def remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
29951
+ """Remove Cloud Resource # noqa: E501
29761
29952
 
29762
29953
  This method makes a synchronous HTTP request by default. To make an
29763
29954
  asynchronous HTTP request, please pass async_req=True
29764
- >>> thread = api.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete(cloud_id, cloud_deployment_name, async_req=True)
29955
+ >>> thread = api.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete(cloud_id, cloud_resource_name, async_req=True)
29765
29956
  >>> result = thread.get()
29766
29957
 
29767
29958
  :param async_req bool: execute request asynchronously
29768
29959
  :param str cloud_id: (required)
29769
- :param str cloud_deployment_name: (required)
29960
+ :param str cloud_resource_name: (required)
29770
29961
  :param _preload_content: if False, the urllib3.HTTPResponse object will
29771
29962
  be returned without reading/decoding response
29772
29963
  data. Default is True.
@@ -29779,19 +29970,19 @@ class DefaultApi(object):
29779
29970
  returns the request thread.
29780
29971
  """
29781
29972
  kwargs['_return_http_data_only'] = True
29782
- return self.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(cloud_id, cloud_deployment_name, **kwargs) # noqa: E501
29973
+ return self.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(cloud_id, cloud_resource_name, **kwargs) # noqa: E501
29783
29974
 
29784
- def remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(self, cloud_id, cloud_deployment_name, **kwargs): # noqa: E501
29785
- """Remove Cloud Deployment # noqa: E501
29975
+ def remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
29976
+ """Remove Cloud Resource # noqa: E501
29786
29977
 
29787
29978
  This method makes a synchronous HTTP request by default. To make an
29788
29979
  asynchronous HTTP request, please pass async_req=True
29789
- >>> thread = api.remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete_with_http_info(cloud_id, cloud_deployment_name, async_req=True)
29980
+ >>> thread = api.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(cloud_id, cloud_resource_name, async_req=True)
29790
29981
  >>> result = thread.get()
29791
29982
 
29792
29983
  :param async_req bool: execute request asynchronously
29793
29984
  :param str cloud_id: (required)
29794
- :param str cloud_deployment_name: (required)
29985
+ :param str cloud_resource_name: (required)
29795
29986
  :param _return_http_data_only: response data without head status code
29796
29987
  and headers
29797
29988
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -29810,7 +30001,7 @@ class DefaultApi(object):
29810
30001
 
29811
30002
  all_params = [
29812
30003
  'cloud_id',
29813
- 'cloud_deployment_name'
30004
+ 'cloud_resource_name'
29814
30005
  ]
29815
30006
  all_params.extend(
29816
30007
  [
@@ -29825,18 +30016,18 @@ class DefaultApi(object):
29825
30016
  if key not in all_params:
29826
30017
  raise ApiTypeError(
29827
30018
  "Got an unexpected keyword argument '%s'"
29828
- " to method remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete" % key
30019
+ " to method remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete" % key
29829
30020
  )
29830
30021
  local_var_params[key] = val
29831
30022
  del local_var_params['kwargs']
29832
30023
  # verify the required parameter 'cloud_id' is set
29833
30024
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
29834
30025
  local_var_params['cloud_id'] is None): # noqa: E501
29835
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete`") # noqa: E501
29836
- # verify the required parameter 'cloud_deployment_name' is set
29837
- if self.api_client.client_side_validation and ('cloud_deployment_name' not in local_var_params or # noqa: E501
29838
- local_var_params['cloud_deployment_name'] is None): # noqa: E501
29839
- raise ApiValueError("Missing the required parameter `cloud_deployment_name` when calling `remove_cloud_deployment_api_v2_clouds_cloud_id_remove_deployment_delete`") # noqa: E501
30026
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete`") # noqa: E501
30027
+ # verify the required parameter 'cloud_resource_name' is set
30028
+ if self.api_client.client_side_validation and ('cloud_resource_name' not in local_var_params or # noqa: E501
30029
+ local_var_params['cloud_resource_name'] is None): # noqa: E501
30030
+ raise ApiValueError("Missing the required parameter `cloud_resource_name` when calling `remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete`") # noqa: E501
29840
30031
 
29841
30032
  collection_formats = {}
29842
30033
 
@@ -29845,8 +30036,8 @@ class DefaultApi(object):
29845
30036
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
29846
30037
 
29847
30038
  query_params = []
29848
- if 'cloud_deployment_name' in local_var_params and local_var_params['cloud_deployment_name'] is not None: # noqa: E501
29849
- query_params.append(('cloud_deployment_name', local_var_params['cloud_deployment_name'])) # noqa: E501
30039
+ if 'cloud_resource_name' in local_var_params and local_var_params['cloud_resource_name'] is not None: # noqa: E501
30040
+ query_params.append(('cloud_resource_name', local_var_params['cloud_resource_name'])) # noqa: E501
29850
30041
 
29851
30042
  header_params = {}
29852
30043
 
@@ -29862,7 +30053,7 @@ class DefaultApi(object):
29862
30053
  auth_settings = [] # noqa: E501
29863
30054
 
29864
30055
  return self.api_client.call_api(
29865
- '/api/v2/clouds/{cloud_id}/remove_deployment', 'DELETE',
30056
+ '/api/v2/clouds/{cloud_id}/remove_resource', 'DELETE',
29866
30057
  path_params,
29867
30058
  query_params,
29868
30059
  header_params,
@@ -32768,7 +32959,7 @@ class DefaultApi(object):
32768
32959
  def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(self, organization_id, **kwargs): # noqa: E501
32769
32960
  """Sync Organization With Metronome # noqa: E501
32770
32961
 
32771
- Refreshes the status of all (recorded) Metronome alerts. # noqa: E501
32962
+ Refreshes the status of all (recorded) Metronome alerts. If reset_alerts is True, the alerts will be reset before being fetched. # noqa: E501
32772
32963
  This method makes a synchronous HTTP request by default. To make an
32773
32964
  asynchronous HTTP request, please pass async_req=True
32774
32965
  >>> thread = api.sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(organization_id, async_req=True)
@@ -32776,6 +32967,7 @@ class DefaultApi(object):
32776
32967
 
32777
32968
  :param async_req bool: execute request asynchronously
32778
32969
  :param str organization_id: (required)
32970
+ :param bool reset_alerts:
32779
32971
  :param _preload_content: if False, the urllib3.HTTPResponse object will
32780
32972
  be returned without reading/decoding response
32781
32973
  data. Default is True.
@@ -32793,7 +32985,7 @@ class DefaultApi(object):
32793
32985
  def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post_with_http_info(self, organization_id, **kwargs): # noqa: E501
32794
32986
  """Sync Organization With Metronome # noqa: E501
32795
32987
 
32796
- Refreshes the status of all (recorded) Metronome alerts. # noqa: E501
32988
+ Refreshes the status of all (recorded) Metronome alerts. If reset_alerts is True, the alerts will be reset before being fetched. # noqa: E501
32797
32989
  This method makes a synchronous HTTP request by default. To make an
32798
32990
  asynchronous HTTP request, please pass async_req=True
32799
32991
  >>> thread = api.sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post_with_http_info(organization_id, async_req=True)
@@ -32801,6 +32993,7 @@ class DefaultApi(object):
32801
32993
 
32802
32994
  :param async_req bool: execute request asynchronously
32803
32995
  :param str organization_id: (required)
32996
+ :param bool reset_alerts:
32804
32997
  :param _return_http_data_only: response data without head status code
32805
32998
  and headers
32806
32999
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -32818,7 +33011,8 @@ class DefaultApi(object):
32818
33011
  local_var_params = locals()
32819
33012
 
32820
33013
  all_params = [
32821
- 'organization_id'
33014
+ 'organization_id',
33015
+ 'reset_alerts'
32822
33016
  ]
32823
33017
  all_params.extend(
32824
33018
  [
@@ -32849,6 +33043,8 @@ class DefaultApi(object):
32849
33043
  path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
32850
33044
 
32851
33045
  query_params = []
33046
+ if 'reset_alerts' in local_var_params and local_var_params['reset_alerts'] is not None: # noqa: E501
33047
+ query_params.append(('reset_alerts', local_var_params['reset_alerts'])) # noqa: E501
32852
33048
 
32853
33049
  header_params = {}
32854
33050
 
@@ -34277,12 +34473,12 @@ class DefaultApi(object):
34277
34473
  _request_timeout=local_var_params.get('_request_timeout'),
34278
34474
  collection_formats=collection_formats)
34279
34475
 
34280
- def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
34281
- """Update Cloud Deployments # noqa: E501
34476
+ def update_cloud_resources_api_v2_clouds_cloud_id_resources_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
34477
+ """Update Cloud Resources # noqa: E501
34282
34478
 
34283
34479
  This method makes a synchronous HTTP request by default. To make an
34284
34480
  asynchronous HTTP request, please pass async_req=True
34285
- >>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(cloud_id, cloud_deployment, async_req=True)
34481
+ >>> thread = api.update_cloud_resources_api_v2_clouds_cloud_id_resources_put(cloud_id, cloud_deployment, async_req=True)
34286
34482
  >>> result = thread.get()
34287
34483
 
34288
34484
  :param async_req bool: execute request asynchronously
@@ -34300,14 +34496,14 @@ class DefaultApi(object):
34300
34496
  returns the request thread.
34301
34497
  """
34302
34498
  kwargs['_return_http_data_only'] = True
34303
- return self.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
34499
+ return self.update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
34304
34500
 
34305
- def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
34306
- """Update Cloud Deployments # noqa: E501
34501
+ def update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
34502
+ """Update Cloud Resources # noqa: E501
34307
34503
 
34308
34504
  This method makes a synchronous HTTP request by default. To make an
34309
34505
  asynchronous HTTP request, please pass async_req=True
34310
- >>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
34506
+ >>> thread = api.update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
34311
34507
  >>> result = thread.get()
34312
34508
 
34313
34509
  :param async_req bool: execute request asynchronously
@@ -34346,18 +34542,18 @@ class DefaultApi(object):
34346
34542
  if key not in all_params:
34347
34543
  raise ApiTypeError(
34348
34544
  "Got an unexpected keyword argument '%s'"
34349
- " to method update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put" % key
34545
+ " to method update_cloud_resources_api_v2_clouds_cloud_id_resources_put" % key
34350
34546
  )
34351
34547
  local_var_params[key] = val
34352
34548
  del local_var_params['kwargs']
34353
34549
  # verify the required parameter 'cloud_id' is set
34354
34550
  if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
34355
34551
  local_var_params['cloud_id'] is None): # noqa: E501
34356
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
34552
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_resources_api_v2_clouds_cloud_id_resources_put`") # noqa: E501
34357
34553
  # verify the required parameter 'cloud_deployment' is set
34358
34554
  if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
34359
34555
  local_var_params['cloud_deployment'] is None): # noqa: E501
34360
- raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
34556
+ raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_resources_api_v2_clouds_cloud_id_resources_put`") # noqa: E501
34361
34557
 
34362
34558
  collection_formats = {}
34363
34559
 
@@ -34387,7 +34583,7 @@ class DefaultApi(object):
34387
34583
  auth_settings = [] # noqa: E501
34388
34584
 
34389
34585
  return self.api_client.call_api(
34390
- '/api/v2/clouds/{cloud_id}/deployments', 'PUT',
34586
+ '/api/v2/clouds/{cloud_id}/resources', 'PUT',
34391
34587
  path_params,
34392
34588
  query_params,
34393
34589
  header_params,