anyscale 0.26.47__py3-none-any.whl → 0.26.49__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 (79) hide show
  1. anyscale/__init__.py +0 -7
  2. anyscale/_private/anyscale_client/README.md +115 -0
  3. anyscale/_private/anyscale_client/anyscale_client.py +12 -213
  4. anyscale/_private/anyscale_client/common.py +0 -55
  5. anyscale/_private/anyscale_client/fake_anyscale_client.py +19 -46
  6. anyscale/_private/docgen/__main__.py +32 -47
  7. anyscale/_private/docgen/generator.py +32 -16
  8. anyscale/_private/docgen/generator_legacy.py +58 -6
  9. anyscale/_private/docgen/models.md +3 -2
  10. anyscale/_private/workload/workload_config.py +16 -8
  11. anyscale/_private/workload/workload_sdk.py +24 -7
  12. anyscale/client/README.md +10 -2
  13. anyscale/client/openapi_client/__init__.py +6 -2
  14. anyscale/client/openapi_client/api/default_api.py +558 -8
  15. anyscale/client/openapi_client/models/__init__.py +6 -2
  16. anyscale/client/openapi_client/models/{alert_type.py → alert_issue_type.py} +8 -20
  17. anyscale/client/openapi_client/models/baseimagesenum.py +1 -2
  18. anyscale/client/openapi_client/models/cloud.py +31 -3
  19. anyscale/client/openapi_client/models/cloud_deployment.py +30 -3
  20. anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
  21. anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
  22. anyscale/client/openapi_client/models/dataset_metrics.py +6 -6
  23. anyscale/client/openapi_client/models/dataset_state.py +2 -1
  24. anyscale/client/openapi_client/models/decorated_cloud_deployment.py +481 -0
  25. anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +121 -0
  26. anyscale/client/openapi_client/models/describe_system_workload_response.py +32 -6
  27. anyscale/client/openapi_client/models/experimental_workspace.py +29 -1
  28. anyscale/client/openapi_client/models/experimental_workspaces_sort_field.py +2 -1
  29. anyscale/client/openapi_client/models/metrics_query_response.py +121 -0
  30. anyscale/client/openapi_client/models/{clouddeployment_response.py → metricsqueryresponse_response.py} +11 -11
  31. anyscale/client/openapi_client/models/operator_metrics.py +8 -9
  32. anyscale/client/openapi_client/models/operator_status.py +102 -0
  33. anyscale/client/openapi_client/models/organization_usage_alert.py +20 -20
  34. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +1 -2
  35. anyscale/cloud/models.py +330 -0
  36. anyscale/commands/cloud_commands.py +136 -44
  37. anyscale/commands/command_examples.py +54 -134
  38. anyscale/commands/compute_config_commands.py +7 -11
  39. anyscale/compute_config/__init__.py +2 -16
  40. anyscale/compute_config/_private/compute_config_sdk.py +27 -17
  41. anyscale/compute_config/commands.py +14 -44
  42. anyscale/compute_config/models.py +49 -26
  43. anyscale/controllers/cloud_controller.py +289 -171
  44. anyscale/controllers/cloud_file_storage_utils.py +204 -0
  45. anyscale/controllers/kubernetes_verifier.py +1570 -0
  46. anyscale/job/_private/job_sdk.py +17 -8
  47. anyscale/job/models.py +1 -1
  48. anyscale/scripts.py +0 -2
  49. anyscale/sdk/anyscale_client/models/baseimagesenum.py +1 -2
  50. anyscale/sdk/anyscale_client/models/cloud.py +31 -3
  51. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +1 -2
  52. anyscale/shared_anyscale_utils/headers.py +3 -0
  53. anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
  54. anyscale/version.py +1 -1
  55. anyscale/workspace/models.py +14 -7
  56. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/METADATA +1 -1
  57. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/RECORD +62 -73
  58. anyscale/commands/llm/dataset_commands.py +0 -269
  59. anyscale/commands/llm/group.py +0 -15
  60. anyscale/commands/llm/models_commands.py +0 -123
  61. anyscale/controllers/llm/__init__.py +0 -0
  62. anyscale/controllers/llm/models_controller.py +0 -144
  63. anyscale/llm/__init__.py +0 -2
  64. anyscale/llm/dataset/__init__.py +0 -2
  65. anyscale/llm/dataset/_private/__init__.py +0 -0
  66. anyscale/llm/dataset/_private/docs.py +0 -63
  67. anyscale/llm/dataset/_private/models.py +0 -71
  68. anyscale/llm/dataset/_private/sdk.py +0 -147
  69. anyscale/llm/model/__init__.py +0 -2
  70. anyscale/llm/model/_private/models_sdk.py +0 -62
  71. anyscale/llm/model/commands.py +0 -93
  72. anyscale/llm/model/models.py +0 -171
  73. anyscale/llm/model/sdk.py +0 -62
  74. anyscale/llm/sdk.py +0 -27
  75. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/WHEEL +0 -0
  76. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/entry_points.txt +0 -0
  77. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/LICENSE +0 -0
  78. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/NOTICE +0 -0
  79. {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/top_level.txt +0 -0
@@ -11748,7 +11748,7 @@ class DefaultApi(object):
11748
11748
  number provided, it will be total request
11749
11749
  timeout. It can also be a pair (tuple) of
11750
11750
  (connection, read) timeouts.
11751
- :return: ClouddeploymentResponse
11751
+ :return: DecoratedclouddeploymentResponse
11752
11752
  If the method is called asynchronously,
11753
11753
  returns the request thread.
11754
11754
  """
@@ -11775,7 +11775,7 @@ class DefaultApi(object):
11775
11775
  number provided, it will be total request
11776
11776
  timeout. It can also be a pair (tuple) of
11777
11777
  (connection, read) timeouts.
11778
- :return: tuple(ClouddeploymentResponse, status_code(int), headers(HTTPHeaderDict))
11778
+ :return: tuple(DecoratedclouddeploymentResponse, status_code(int), headers(HTTPHeaderDict))
11779
11779
  If the method is called asynchronously,
11780
11780
  returns the request thread.
11781
11781
  """
@@ -11843,7 +11843,7 @@ class DefaultApi(object):
11843
11843
  body=body_params,
11844
11844
  post_params=form_params,
11845
11845
  files=local_var_files,
11846
- response_type='ClouddeploymentResponse', # noqa: E501
11846
+ response_type='DecoratedclouddeploymentResponse', # noqa: E501
11847
11847
  auth_settings=auth_settings,
11848
11848
  async_req=local_var_params.get('async_req'),
11849
11849
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -16822,8 +16822,8 @@ class DefaultApi(object):
16822
16822
  :param str session_name: (required)
16823
16823
  :param str dataset_id: (required)
16824
16824
  :param str operator_id: (required)
16825
- :param int dataset_start_time: (required)
16826
- :param int dataset_end_time: (required)
16825
+ :param float dataset_start_time: (required)
16826
+ :param float dataset_end_time: (required)
16827
16827
  :param _preload_content: if False, the urllib3.HTTPResponse object will
16828
16828
  be returned without reading/decoding response
16829
16829
  data. Default is True.
@@ -16851,8 +16851,8 @@ class DefaultApi(object):
16851
16851
  :param str session_name: (required)
16852
16852
  :param str dataset_id: (required)
16853
16853
  :param str operator_id: (required)
16854
- :param int dataset_start_time: (required)
16855
- :param int dataset_end_time: (required)
16854
+ :param float dataset_start_time: (required)
16855
+ :param float dataset_end_time: (required)
16856
16856
  :param _return_http_data_only: response data without head status code
16857
16857
  and headers
16858
16858
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21707,6 +21707,7 @@ class DefaultApi(object):
21707
21707
 
21708
21708
  :param async_req bool: execute request asynchronously
21709
21709
  :param str cloud_id: (required)
21710
+ :param bool via_edge_proxy:
21710
21711
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21711
21712
  be returned without reading/decoding response
21712
21713
  data. Default is True.
@@ -21732,6 +21733,7 @@ class DefaultApi(object):
21732
21733
 
21733
21734
  :param async_req bool: execute request asynchronously
21734
21735
  :param str cloud_id: (required)
21736
+ :param bool via_edge_proxy:
21735
21737
  :param _return_http_data_only: response data without head status code
21736
21738
  and headers
21737
21739
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21749,7 +21751,8 @@ class DefaultApi(object):
21749
21751
  local_var_params = locals()
21750
21752
 
21751
21753
  all_params = [
21752
- 'cloud_id'
21754
+ 'cloud_id',
21755
+ 'via_edge_proxy'
21753
21756
  ]
21754
21757
  all_params.extend(
21755
21758
  [
@@ -21780,6 +21783,8 @@ class DefaultApi(object):
21780
21783
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
21781
21784
 
21782
21785
  query_params = []
21786
+ if 'via_edge_proxy' in local_var_params and local_var_params['via_edge_proxy'] is not None: # noqa: E501
21787
+ query_params.append(('via_edge_proxy', local_var_params['via_edge_proxy'])) # noqa: E501
21783
21788
 
21784
21789
  header_params = {}
21785
21790
 
@@ -28061,6 +28066,7 @@ class DefaultApi(object):
28061
28066
  :param int end_time: The end time for the query as a nanosecond Unix epoch. If not set, the query will use the time now.
28062
28067
  :param str positive_search_filter: Positive search terms to filter in the logs. Defaults to no filter. This can be a regex and the search is case insensitive.
28063
28068
  :param str negative_search_filter: Negative search terms to filter out the logs. Defaults to no filter. This can be a regex and the search is case insensitive.
28069
+ :param str search_query: Advanced search query with syntax supporting NOT, AND, OR operators. Cannot be used together with positive_search_filter or negative_search_filter.
28064
28070
  :param str source: The source file (worker, raylet, dashboard, controller, proxy, replica, AUTOSCALER..) to filter the logs. Default to no filter.
28065
28071
  :param str filter_tags: The tags to filter the logs. Default to no filter. The format of this field is expected to be in json. The filer will apply to match each key of the object and do exact match on the value.
28066
28072
  :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_time and return results until it reaches the page_size or the end_time. When true, it will start to query from the end_time and return results until it reaches the page_size or the start_time. Default to false.
@@ -28097,6 +28103,7 @@ class DefaultApi(object):
28097
28103
  :param int end_time: The end time for the query as a nanosecond Unix epoch. If not set, the query will use the time now.
28098
28104
  :param str positive_search_filter: Positive search terms to filter in the logs. Defaults to no filter. This can be a regex and the search is case insensitive.
28099
28105
  :param str negative_search_filter: Negative search terms to filter out the logs. Defaults to no filter. This can be a regex and the search is case insensitive.
28106
+ :param str search_query: Advanced search query with syntax supporting NOT, AND, OR operators. Cannot be used together with positive_search_filter or negative_search_filter.
28100
28107
  :param str source: The source file (worker, raylet, dashboard, controller, proxy, replica, AUTOSCALER..) to filter the logs. Default to no filter.
28101
28108
  :param str filter_tags: The tags to filter the logs. Default to no filter. The format of this field is expected to be in json. The filer will apply to match each key of the object and do exact match on the value.
28102
28109
  :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_time and return results until it reaches the page_size or the end_time. When true, it will start to query from the end_time and return results until it reaches the page_size or the start_time. Default to false.
@@ -28126,6 +28133,7 @@ class DefaultApi(object):
28126
28133
  'end_time',
28127
28134
  'positive_search_filter',
28128
28135
  'negative_search_filter',
28136
+ 'search_query',
28129
28137
  'source',
28130
28138
  'filter_tags',
28131
28139
  'reverse_sort'
@@ -28173,6 +28181,8 @@ class DefaultApi(object):
28173
28181
  query_params.append(('positive_search_filter', local_var_params['positive_search_filter'])) # noqa: E501
28174
28182
  if 'negative_search_filter' in local_var_params and local_var_params['negative_search_filter'] is not None: # noqa: E501
28175
28183
  query_params.append(('negative_search_filter', local_var_params['negative_search_filter'])) # noqa: E501
28184
+ if 'search_query' in local_var_params and local_var_params['search_query'] is not None: # noqa: E501
28185
+ query_params.append(('search_query', local_var_params['search_query'])) # noqa: E501
28176
28186
  if 'source' in local_var_params and local_var_params['source'] is not None: # noqa: E501
28177
28187
  query_params.append(('source', local_var_params['source'])) # noqa: E501
28178
28188
  if 'filter_tags' in local_var_params and local_var_params['filter_tags'] is not None: # noqa: E501
@@ -28209,6 +28219,302 @@ class DefaultApi(object):
28209
28219
  _request_timeout=local_var_params.get('_request_timeout'),
28210
28220
  collection_formats=collection_formats)
28211
28221
 
28222
+ def query_api_v2_metrics_query_get(self, promql_query, **kwargs): # noqa: E501
28223
+ """Query # noqa: E501
28224
+
28225
+ Query metrics using PromQL query for various resource types # noqa: E501
28226
+ This method makes a synchronous HTTP request by default. To make an
28227
+ asynchronous HTTP request, please pass async_req=True
28228
+ >>> thread = api.query_api_v2_metrics_query_get(promql_query, async_req=True)
28229
+ >>> result = thread.get()
28230
+
28231
+ :param async_req bool: execute request asynchronously
28232
+ :param str promql_query: PromQL query string to execute. This should be a valid Prometheus Query Language expression. (required)
28233
+ :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.
28234
+ :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.
28235
+ :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.
28236
+ :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.
28237
+ :param float time: Unix timestamp for the query time. If not provided, uses current time.
28238
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28239
+ be returned without reading/decoding response
28240
+ data. Default is True.
28241
+ :param _request_timeout: timeout setting for this request. If one
28242
+ number provided, it will be total request
28243
+ timeout. It can also be a pair (tuple) of
28244
+ (connection, read) timeouts.
28245
+ :return: MetricsqueryresponseResponse
28246
+ If the method is called asynchronously,
28247
+ returns the request thread.
28248
+ """
28249
+ kwargs['_return_http_data_only'] = True
28250
+ return self.query_api_v2_metrics_query_get_with_http_info(promql_query, **kwargs) # noqa: E501
28251
+
28252
+ def query_api_v2_metrics_query_get_with_http_info(self, promql_query, **kwargs): # noqa: E501
28253
+ """Query # noqa: E501
28254
+
28255
+ Query metrics using PromQL query for various resource types # noqa: E501
28256
+ This method makes a synchronous HTTP request by default. To make an
28257
+ asynchronous HTTP request, please pass async_req=True
28258
+ >>> thread = api.query_api_v2_metrics_query_get_with_http_info(promql_query, async_req=True)
28259
+ >>> result = thread.get()
28260
+
28261
+ :param async_req bool: execute request asynchronously
28262
+ :param str promql_query: PromQL query string to execute. This should be a valid Prometheus Query Language expression. (required)
28263
+ :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.
28264
+ :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.
28265
+ :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.
28266
+ :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.
28267
+ :param float time: Unix timestamp for the query time. If not provided, uses current time.
28268
+ :param _return_http_data_only: response data without head status code
28269
+ and headers
28270
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28271
+ be returned without reading/decoding response
28272
+ data. Default is True.
28273
+ :param _request_timeout: timeout setting for this request. If one
28274
+ number provided, it will be total request
28275
+ timeout. It can also be a pair (tuple) of
28276
+ (connection, read) timeouts.
28277
+ :return: tuple(MetricsqueryresponseResponse, status_code(int), headers(HTTPHeaderDict))
28278
+ If the method is called asynchronously,
28279
+ returns the request thread.
28280
+ """
28281
+
28282
+ local_var_params = locals()
28283
+
28284
+ all_params = [
28285
+ 'promql_query',
28286
+ 'cluster_id',
28287
+ 'workspace_id',
28288
+ 'ha_job_id',
28289
+ 'service_id',
28290
+ 'time'
28291
+ ]
28292
+ all_params.extend(
28293
+ [
28294
+ 'async_req',
28295
+ '_return_http_data_only',
28296
+ '_preload_content',
28297
+ '_request_timeout'
28298
+ ]
28299
+ )
28300
+
28301
+ for key, val in six.iteritems(local_var_params['kwargs']):
28302
+ if key not in all_params:
28303
+ raise ApiTypeError(
28304
+ "Got an unexpected keyword argument '%s'"
28305
+ " to method query_api_v2_metrics_query_get" % key
28306
+ )
28307
+ local_var_params[key] = val
28308
+ del local_var_params['kwargs']
28309
+ # verify the required parameter 'promql_query' is set
28310
+ if self.api_client.client_side_validation and ('promql_query' not in local_var_params or # noqa: E501
28311
+ local_var_params['promql_query'] is None): # noqa: E501
28312
+ raise ApiValueError("Missing the required parameter `promql_query` when calling `query_api_v2_metrics_query_get`") # noqa: E501
28313
+
28314
+ collection_formats = {}
28315
+
28316
+ path_params = {}
28317
+
28318
+ query_params = []
28319
+ if 'promql_query' in local_var_params and local_var_params['promql_query'] is not None: # noqa: E501
28320
+ query_params.append(('promql_query', local_var_params['promql_query'])) # noqa: E501
28321
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28322
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28323
+ if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28324
+ query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28325
+ if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28326
+ query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28327
+ if 'service_id' in local_var_params and local_var_params['service_id'] is not None: # noqa: E501
28328
+ query_params.append(('service_id', local_var_params['service_id'])) # noqa: E501
28329
+ if 'time' in local_var_params and local_var_params['time'] is not None: # noqa: E501
28330
+ query_params.append(('time', local_var_params['time'])) # noqa: E501
28331
+
28332
+ header_params = {}
28333
+
28334
+ form_params = []
28335
+ local_var_files = {}
28336
+
28337
+ body_params = None
28338
+ # HTTP header `Accept`
28339
+ header_params['Accept'] = self.api_client.select_header_accept(
28340
+ ['application/json']) # noqa: E501
28341
+
28342
+ # Authentication setting
28343
+ auth_settings = [] # noqa: E501
28344
+
28345
+ return self.api_client.call_api(
28346
+ '/api/v2/metrics/query', 'GET',
28347
+ path_params,
28348
+ query_params,
28349
+ header_params,
28350
+ body=body_params,
28351
+ post_params=form_params,
28352
+ files=local_var_files,
28353
+ response_type='MetricsqueryresponseResponse', # noqa: E501
28354
+ auth_settings=auth_settings,
28355
+ async_req=local_var_params.get('async_req'),
28356
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28357
+ _preload_content=local_var_params.get('_preload_content', True),
28358
+ _request_timeout=local_var_params.get('_request_timeout'),
28359
+ collection_formats=collection_formats)
28360
+
28361
+ def query_range_api_v2_metrics_query_range_get(self, promql_query, start, end, **kwargs): # noqa: E501
28362
+ """Query Range # noqa: E501
28363
+
28364
+ Query metrics using PromQL range query for various resource types # noqa: E501
28365
+ This method makes a synchronous HTTP request by default. To make an
28366
+ asynchronous HTTP request, please pass async_req=True
28367
+ >>> thread = api.query_range_api_v2_metrics_query_range_get(promql_query, start, end, async_req=True)
28368
+ >>> result = thread.get()
28369
+
28370
+ :param async_req bool: execute request asynchronously
28371
+ :param str promql_query: PromQL query string to execute. This should be a valid Prometheus Query Language expression. (required)
28372
+ :param float start: Start timestamp (Unix timestamp) for the range query. (required)
28373
+ :param float end: End timestamp (Unix timestamp) for the range query. (required)
28374
+ :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.
28375
+ :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.
28376
+ :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.
28377
+ :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.
28378
+ :param str step: Query resolution step width in seconds (e.g., '15s', '1m', '5m').
28379
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28380
+ be returned without reading/decoding response
28381
+ data. Default is True.
28382
+ :param _request_timeout: timeout setting for this request. If one
28383
+ number provided, it will be total request
28384
+ timeout. It can also be a pair (tuple) of
28385
+ (connection, read) timeouts.
28386
+ :return: MetricsqueryresponseResponse
28387
+ If the method is called asynchronously,
28388
+ returns the request thread.
28389
+ """
28390
+ kwargs['_return_http_data_only'] = True
28391
+ return self.query_range_api_v2_metrics_query_range_get_with_http_info(promql_query, start, end, **kwargs) # noqa: E501
28392
+
28393
+ def query_range_api_v2_metrics_query_range_get_with_http_info(self, promql_query, start, end, **kwargs): # noqa: E501
28394
+ """Query Range # noqa: E501
28395
+
28396
+ Query metrics using PromQL range query for various resource types # noqa: E501
28397
+ This method makes a synchronous HTTP request by default. To make an
28398
+ asynchronous HTTP request, please pass async_req=True
28399
+ >>> thread = api.query_range_api_v2_metrics_query_range_get_with_http_info(promql_query, start, end, async_req=True)
28400
+ >>> result = thread.get()
28401
+
28402
+ :param async_req bool: execute request asynchronously
28403
+ :param str promql_query: PromQL query string to execute. This should be a valid Prometheus Query Language expression. (required)
28404
+ :param float start: Start timestamp (Unix timestamp) for the range query. (required)
28405
+ :param float end: End timestamp (Unix timestamp) for the range query. (required)
28406
+ :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.
28407
+ :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.
28408
+ :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.
28409
+ :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.
28410
+ :param str step: Query resolution step width in seconds (e.g., '15s', '1m', '5m').
28411
+ :param _return_http_data_only: response data without head status code
28412
+ and headers
28413
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28414
+ be returned without reading/decoding response
28415
+ data. Default is True.
28416
+ :param _request_timeout: timeout setting for this request. If one
28417
+ number provided, it will be total request
28418
+ timeout. It can also be a pair (tuple) of
28419
+ (connection, read) timeouts.
28420
+ :return: tuple(MetricsqueryresponseResponse, status_code(int), headers(HTTPHeaderDict))
28421
+ If the method is called asynchronously,
28422
+ returns the request thread.
28423
+ """
28424
+
28425
+ local_var_params = locals()
28426
+
28427
+ all_params = [
28428
+ 'promql_query',
28429
+ 'start',
28430
+ 'end',
28431
+ 'cluster_id',
28432
+ 'workspace_id',
28433
+ 'ha_job_id',
28434
+ 'service_id',
28435
+ 'step'
28436
+ ]
28437
+ all_params.extend(
28438
+ [
28439
+ 'async_req',
28440
+ '_return_http_data_only',
28441
+ '_preload_content',
28442
+ '_request_timeout'
28443
+ ]
28444
+ )
28445
+
28446
+ for key, val in six.iteritems(local_var_params['kwargs']):
28447
+ if key not in all_params:
28448
+ raise ApiTypeError(
28449
+ "Got an unexpected keyword argument '%s'"
28450
+ " to method query_range_api_v2_metrics_query_range_get" % key
28451
+ )
28452
+ local_var_params[key] = val
28453
+ del local_var_params['kwargs']
28454
+ # verify the required parameter 'promql_query' is set
28455
+ if self.api_client.client_side_validation and ('promql_query' not in local_var_params or # noqa: E501
28456
+ local_var_params['promql_query'] is None): # noqa: E501
28457
+ raise ApiValueError("Missing the required parameter `promql_query` when calling `query_range_api_v2_metrics_query_range_get`") # noqa: E501
28458
+ # verify the required parameter 'start' is set
28459
+ if self.api_client.client_side_validation and ('start' not in local_var_params or # noqa: E501
28460
+ local_var_params['start'] is None): # noqa: E501
28461
+ raise ApiValueError("Missing the required parameter `start` when calling `query_range_api_v2_metrics_query_range_get`") # noqa: E501
28462
+ # verify the required parameter 'end' is set
28463
+ if self.api_client.client_side_validation and ('end' not in local_var_params or # noqa: E501
28464
+ local_var_params['end'] is None): # noqa: E501
28465
+ raise ApiValueError("Missing the required parameter `end` when calling `query_range_api_v2_metrics_query_range_get`") # noqa: E501
28466
+
28467
+ collection_formats = {}
28468
+
28469
+ path_params = {}
28470
+
28471
+ query_params = []
28472
+ if 'promql_query' in local_var_params and local_var_params['promql_query'] is not None: # noqa: E501
28473
+ query_params.append(('promql_query', local_var_params['promql_query'])) # noqa: E501
28474
+ if 'start' in local_var_params and local_var_params['start'] is not None: # noqa: E501
28475
+ query_params.append(('start', local_var_params['start'])) # noqa: E501
28476
+ if 'end' in local_var_params and local_var_params['end'] is not None: # noqa: E501
28477
+ query_params.append(('end', local_var_params['end'])) # noqa: E501
28478
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28479
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28480
+ if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28481
+ query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28482
+ if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28483
+ query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28484
+ if 'service_id' in local_var_params and local_var_params['service_id'] is not None: # noqa: E501
28485
+ query_params.append(('service_id', local_var_params['service_id'])) # noqa: E501
28486
+ if 'step' in local_var_params and local_var_params['step'] is not None: # noqa: E501
28487
+ query_params.append(('step', local_var_params['step'])) # noqa: E501
28488
+
28489
+ header_params = {}
28490
+
28491
+ form_params = []
28492
+ local_var_files = {}
28493
+
28494
+ body_params = None
28495
+ # HTTP header `Accept`
28496
+ header_params['Accept'] = self.api_client.select_header_accept(
28497
+ ['application/json']) # noqa: E501
28498
+
28499
+ # Authentication setting
28500
+ auth_settings = [] # noqa: E501
28501
+
28502
+ return self.api_client.call_api(
28503
+ '/api/v2/metrics/query_range', 'GET',
28504
+ path_params,
28505
+ query_params,
28506
+ header_params,
28507
+ body=body_params,
28508
+ post_params=form_params,
28509
+ files=local_var_files,
28510
+ response_type='MetricsqueryresponseResponse', # noqa: E501
28511
+ auth_settings=auth_settings,
28512
+ async_req=local_var_params.get('async_req'),
28513
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28514
+ _preload_content=local_var_params.get('_preload_content', True),
28515
+ _request_timeout=local_var_params.get('_request_timeout'),
28516
+ collection_formats=collection_formats)
28517
+
28212
28518
  def receive_cli_usage_api_v2_cli_usage_post(self, cli_usage_payload, **kwargs): # noqa: E501
28213
28519
  """Receive Cli Usage # noqa: E501
28214
28520
 
@@ -33423,6 +33729,131 @@ class DefaultApi(object):
33423
33729
  _request_timeout=local_var_params.get('_request_timeout'),
33424
33730
  collection_formats=collection_formats)
33425
33731
 
33732
+ def update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
33733
+ """Update Cloud Deployment # noqa: E501
33734
+
33735
+ This method makes a synchronous HTTP request by default. To make an
33736
+ asynchronous HTTP request, please pass async_req=True
33737
+ >>> thread = api.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put(cloud_id, cloud_deployment, async_req=True)
33738
+ >>> result = thread.get()
33739
+
33740
+ :param async_req bool: execute request asynchronously
33741
+ :param str cloud_id: (required)
33742
+ :param CloudDeployment cloud_deployment: (required)
33743
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
33744
+ be returned without reading/decoding response
33745
+ data. Default is True.
33746
+ :param _request_timeout: timeout setting for this request. If one
33747
+ number provided, it will be total request
33748
+ timeout. It can also be a pair (tuple) of
33749
+ (connection, read) timeouts.
33750
+ :return: object
33751
+ If the method is called asynchronously,
33752
+ returns the request thread.
33753
+ """
33754
+ kwargs['_return_http_data_only'] = True
33755
+ return self.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
33756
+
33757
+ def update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
33758
+ """Update Cloud Deployment # noqa: E501
33759
+
33760
+ This method makes a synchronous HTTP request by default. To make an
33761
+ asynchronous HTTP request, please pass async_req=True
33762
+ >>> thread = api.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
33763
+ >>> result = thread.get()
33764
+
33765
+ :param async_req bool: execute request asynchronously
33766
+ :param str cloud_id: (required)
33767
+ :param CloudDeployment cloud_deployment: (required)
33768
+ :param _return_http_data_only: response data without head status code
33769
+ and headers
33770
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
33771
+ be returned without reading/decoding response
33772
+ data. Default is True.
33773
+ :param _request_timeout: timeout setting for this request. If one
33774
+ number provided, it will be total request
33775
+ timeout. It can also be a pair (tuple) of
33776
+ (connection, read) timeouts.
33777
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
33778
+ If the method is called asynchronously,
33779
+ returns the request thread.
33780
+ """
33781
+
33782
+ local_var_params = locals()
33783
+
33784
+ all_params = [
33785
+ 'cloud_id',
33786
+ 'cloud_deployment'
33787
+ ]
33788
+ all_params.extend(
33789
+ [
33790
+ 'async_req',
33791
+ '_return_http_data_only',
33792
+ '_preload_content',
33793
+ '_request_timeout'
33794
+ ]
33795
+ )
33796
+
33797
+ for key, val in six.iteritems(local_var_params['kwargs']):
33798
+ if key not in all_params:
33799
+ raise ApiTypeError(
33800
+ "Got an unexpected keyword argument '%s'"
33801
+ " to method update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put" % key
33802
+ )
33803
+ local_var_params[key] = val
33804
+ del local_var_params['kwargs']
33805
+ # verify the required parameter 'cloud_id' is set
33806
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
33807
+ local_var_params['cloud_id'] is None): # noqa: E501
33808
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put`") # noqa: E501
33809
+ # verify the required parameter 'cloud_deployment' is set
33810
+ if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
33811
+ local_var_params['cloud_deployment'] is None): # noqa: E501
33812
+ raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put`") # noqa: E501
33813
+
33814
+ collection_formats = {}
33815
+
33816
+ path_params = {}
33817
+ if 'cloud_id' in local_var_params:
33818
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
33819
+
33820
+ query_params = []
33821
+
33822
+ header_params = {}
33823
+
33824
+ form_params = []
33825
+ local_var_files = {}
33826
+
33827
+ body_params = None
33828
+ if 'cloud_deployment' in local_var_params:
33829
+ body_params = local_var_params['cloud_deployment']
33830
+ # HTTP header `Accept`
33831
+ header_params['Accept'] = self.api_client.select_header_accept(
33832
+ ['application/json']) # noqa: E501
33833
+
33834
+ # HTTP header `Content-Type`
33835
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
33836
+ ['application/json']) # noqa: E501
33837
+
33838
+ # Authentication setting
33839
+ auth_settings = [] # noqa: E501
33840
+
33841
+ return self.api_client.call_api(
33842
+ '/api/v2/clouds/{cloud_id}/update_deployment', 'PUT',
33843
+ path_params,
33844
+ query_params,
33845
+ header_params,
33846
+ body=body_params,
33847
+ post_params=form_params,
33848
+ files=local_var_files,
33849
+ response_type='object', # noqa: E501
33850
+ auth_settings=auth_settings,
33851
+ async_req=local_var_params.get('async_req'),
33852
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
33853
+ _preload_content=local_var_params.get('_preload_content', True),
33854
+ _request_timeout=local_var_params.get('_request_timeout'),
33855
+ collection_formats=collection_formats)
33856
+
33426
33857
  def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
33427
33858
  """Update Cloud Deployment Config # noqa: E501
33428
33859
 
@@ -35140,6 +35571,125 @@ class DefaultApi(object):
35140
35571
  _request_timeout=local_var_params.get('_request_timeout'),
35141
35572
  collection_formats=collection_formats)
35142
35573
 
35574
+ def update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put(self, cloud_id, **kwargs): # noqa: E501
35575
+ """Update System Cluster Config # noqa: E501
35576
+
35577
+ Update system cluster configuration for a cloud. # noqa: E501
35578
+ This method makes a synchronous HTTP request by default. To make an
35579
+ asynchronous HTTP request, please pass async_req=True
35580
+ >>> thread = api.update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put(cloud_id, async_req=True)
35581
+ >>> result = thread.get()
35582
+
35583
+ :param async_req bool: execute request asynchronously
35584
+ :param str cloud_id: (required)
35585
+ :param bool is_enabled:
35586
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
35587
+ be returned without reading/decoding response
35588
+ data. Default is True.
35589
+ :param _request_timeout: timeout setting for this request. If one
35590
+ number provided, it will be total request
35591
+ timeout. It can also be a pair (tuple) of
35592
+ (connection, read) timeouts.
35593
+ :return: object
35594
+ If the method is called asynchronously,
35595
+ returns the request thread.
35596
+ """
35597
+ kwargs['_return_http_data_only'] = True
35598
+ return self.update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put_with_http_info(cloud_id, **kwargs) # noqa: E501
35599
+
35600
+ def update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put_with_http_info(self, cloud_id, **kwargs): # noqa: E501
35601
+ """Update System Cluster Config # noqa: E501
35602
+
35603
+ Update system cluster configuration for a cloud. # noqa: E501
35604
+ This method makes a synchronous HTTP request by default. To make an
35605
+ asynchronous HTTP request, please pass async_req=True
35606
+ >>> thread = api.update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put_with_http_info(cloud_id, async_req=True)
35607
+ >>> result = thread.get()
35608
+
35609
+ :param async_req bool: execute request asynchronously
35610
+ :param str cloud_id: (required)
35611
+ :param bool is_enabled:
35612
+ :param _return_http_data_only: response data without head status code
35613
+ and headers
35614
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
35615
+ be returned without reading/decoding response
35616
+ data. Default is True.
35617
+ :param _request_timeout: timeout setting for this request. If one
35618
+ number provided, it will be total request
35619
+ timeout. It can also be a pair (tuple) of
35620
+ (connection, read) timeouts.
35621
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
35622
+ If the method is called asynchronously,
35623
+ returns the request thread.
35624
+ """
35625
+
35626
+ local_var_params = locals()
35627
+
35628
+ all_params = [
35629
+ 'cloud_id',
35630
+ 'is_enabled'
35631
+ ]
35632
+ all_params.extend(
35633
+ [
35634
+ 'async_req',
35635
+ '_return_http_data_only',
35636
+ '_preload_content',
35637
+ '_request_timeout'
35638
+ ]
35639
+ )
35640
+
35641
+ for key, val in six.iteritems(local_var_params['kwargs']):
35642
+ if key not in all_params:
35643
+ raise ApiTypeError(
35644
+ "Got an unexpected keyword argument '%s'"
35645
+ " to method update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put" % key
35646
+ )
35647
+ local_var_params[key] = val
35648
+ del local_var_params['kwargs']
35649
+ # verify the required parameter 'cloud_id' is set
35650
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
35651
+ local_var_params['cloud_id'] is None): # noqa: E501
35652
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_system_cluster_config_api_v2_clouds_cloud_id_update_system_cluster_config_put`") # noqa: E501
35653
+
35654
+ collection_formats = {}
35655
+
35656
+ path_params = {}
35657
+ if 'cloud_id' in local_var_params:
35658
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
35659
+
35660
+ query_params = []
35661
+ if 'is_enabled' in local_var_params and local_var_params['is_enabled'] is not None: # noqa: E501
35662
+ query_params.append(('is_enabled', local_var_params['is_enabled'])) # noqa: E501
35663
+
35664
+ header_params = {}
35665
+
35666
+ form_params = []
35667
+ local_var_files = {}
35668
+
35669
+ body_params = None
35670
+ # HTTP header `Accept`
35671
+ header_params['Accept'] = self.api_client.select_header_accept(
35672
+ ['application/json']) # noqa: E501
35673
+
35674
+ # Authentication setting
35675
+ auth_settings = [] # noqa: E501
35676
+
35677
+ return self.api_client.call_api(
35678
+ '/api/v2/clouds/{cloud_id}/update_system_cluster_config', 'PUT',
35679
+ path_params,
35680
+ query_params,
35681
+ header_params,
35682
+ body=body_params,
35683
+ post_params=form_params,
35684
+ files=local_var_files,
35685
+ response_type='object', # noqa: E501
35686
+ auth_settings=auth_settings,
35687
+ async_req=local_var_params.get('async_req'),
35688
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
35689
+ _preload_content=local_var_params.get('_preload_content', True),
35690
+ _request_timeout=local_var_params.get('_request_timeout'),
35691
+ collection_formats=collection_formats)
35692
+
35143
35693
  def upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post(self, session_command_id, **kwargs): # noqa: E501
35144
35694
  """Upload Session Command Logs # noqa: E501
35145
35695