lightning-sdk 0.2.15__py3-none-any.whl → 0.2.17__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 (80) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +7 -1
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/llm_api.py +27 -5
  5. lightning_sdk/api/studio_api.py +64 -0
  6. lightning_sdk/api/teamspace_api.py +127 -1
  7. lightning_sdk/api/utils.py +4 -0
  8. lightning_sdk/base_studio.py +14 -1
  9. lightning_sdk/cli/create.py +21 -1
  10. lightning_sdk/cli/deploy/__init__.py +0 -0
  11. lightning_sdk/cli/deploy/_auth.py +189 -0
  12. lightning_sdk/cli/deploy/devbox.py +157 -0
  13. lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
  14. lightning_sdk/cli/download.py +44 -16
  15. lightning_sdk/cli/entrypoint.py +1 -1
  16. lightning_sdk/cli/open.py +21 -2
  17. lightning_sdk/cli/start.py +12 -3
  18. lightning_sdk/cli/upload.py +2 -4
  19. lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
  20. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +126 -1
  21. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +97 -0
  22. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  24. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +752 -106
  25. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  26. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  27. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  29. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
  31. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
  32. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +79 -1
  33. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +79 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
  57. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -53
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  72. lightning_sdk/llm/llm.py +54 -8
  73. lightning_sdk/studio.py +40 -1
  74. lightning_sdk/teamspace.py +68 -0
  75. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/RECORD +80 -58
  77. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/top_level.txt +0 -0
@@ -249,6 +249,119 @@ class JobsServiceApi(object):
249
249
  _request_timeout=params.get('_request_timeout'),
250
250
  collection_formats=collection_formats)
251
251
 
252
+ def jobs_service_create_deployment_alerting_policy(self, body: 'DeploymentIdAlertingpoliciesBody1', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
253
+ """CreateDeploymentAlertingPolicy creates a policy to monitor potential issues with deployment # noqa: E501
254
+
255
+ This method makes a synchronous HTTP request by default. To make an
256
+ asynchronous HTTP request, please pass async_req=True
257
+ >>> thread = api.jobs_service_create_deployment_alerting_policy(body, project_id, deployment_id, async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ :param async_req bool
261
+ :param DeploymentIdAlertingpoliciesBody1 body: (required)
262
+ :param str project_id: (required)
263
+ :param str deployment_id: (required)
264
+ :return: V1DeploymentAlertingPolicy
265
+ If the method is called asynchronously,
266
+ returns the request thread.
267
+ """
268
+ kwargs['_return_http_data_only'] = True
269
+ if kwargs.get('async_req'):
270
+ return self.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
271
+ else:
272
+ (data) = self.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
273
+ return data
274
+
275
+ def jobs_service_create_deployment_alerting_policy_with_http_info(self, body: 'DeploymentIdAlertingpoliciesBody1', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
276
+ """CreateDeploymentAlertingPolicy creates a policy to monitor potential issues with deployment # noqa: E501
277
+
278
+ This method makes a synchronous HTTP request by default. To make an
279
+ asynchronous HTTP request, please pass async_req=True
280
+ >>> thread = api.jobs_service_create_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, async_req=True)
281
+ >>> result = thread.get()
282
+
283
+ :param async_req bool
284
+ :param DeploymentIdAlertingpoliciesBody1 body: (required)
285
+ :param str project_id: (required)
286
+ :param str deployment_id: (required)
287
+ :return: V1DeploymentAlertingPolicy
288
+ If the method is called asynchronously,
289
+ returns the request thread.
290
+ """
291
+
292
+ all_params = ['body', 'project_id', 'deployment_id'] # noqa: E501
293
+ all_params.append('async_req')
294
+ all_params.append('_return_http_data_only')
295
+ all_params.append('_preload_content')
296
+ all_params.append('_request_timeout')
297
+
298
+ params = locals()
299
+ for key, val in six.iteritems(params['kwargs']):
300
+ if key not in all_params:
301
+ raise TypeError(
302
+ "Got an unexpected keyword argument '%s'"
303
+ " to method jobs_service_create_deployment_alerting_policy" % key
304
+ )
305
+ params[key] = val
306
+ del params['kwargs']
307
+ # verify the required parameter 'body' is set
308
+ if ('body' not in params or
309
+ params['body'] is None):
310
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
311
+ # verify the required parameter 'project_id' is set
312
+ if ('project_id' not in params or
313
+ params['project_id'] is None):
314
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
315
+ # verify the required parameter 'deployment_id' is set
316
+ if ('deployment_id' not in params or
317
+ params['deployment_id'] is None):
318
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_create_deployment_alerting_policy`") # noqa: E501
319
+
320
+ collection_formats = {}
321
+
322
+ path_params = {}
323
+ if 'project_id' in params:
324
+ path_params['projectId'] = params['project_id'] # noqa: E501
325
+ if 'deployment_id' in params:
326
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
327
+
328
+ query_params = []
329
+
330
+ header_params = {}
331
+
332
+ form_params = []
333
+ local_var_files = {}
334
+
335
+ body_params = None
336
+ if 'body' in params:
337
+ body_params = params['body']
338
+ # HTTP header `Accept`
339
+ header_params['Accept'] = self.api_client.select_header_accept(
340
+ ['application/json']) # noqa: E501
341
+
342
+ # HTTP header `Content-Type`
343
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
344
+ ['application/json']) # noqa: E501
345
+
346
+ # Authentication setting
347
+ auth_settings = [] # noqa: E501
348
+
349
+ return self.api_client.call_api(
350
+ '/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'POST',
351
+ path_params,
352
+ query_params,
353
+ header_params,
354
+ body=body_params,
355
+ post_params=form_params,
356
+ files=local_var_files,
357
+ response_type='V1DeploymentAlertingPolicy', # noqa: E501
358
+ auth_settings=auth_settings,
359
+ async_req=params.get('async_req'),
360
+ _return_http_data_only=params.get('_return_http_data_only'),
361
+ _preload_content=params.get('_preload_content', True),
362
+ _request_timeout=params.get('_request_timeout'),
363
+ collection_formats=collection_formats)
364
+
252
365
  def jobs_service_create_job(self, body: 'ProjectIdJobsBody', project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
253
366
  """jobs_service_create_job # noqa: E501
254
367
 
@@ -564,6 +677,115 @@ class JobsServiceApi(object):
564
677
  _request_timeout=params.get('_request_timeout'),
565
678
  collection_formats=collection_formats)
566
679
 
680
+ def jobs_service_delete_deployment_alerting_policy(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentAlertingPolicyResponse': # noqa: E501
681
+ """jobs_service_delete_deployment_alerting_policy # noqa: E501
682
+
683
+ This method makes a synchronous HTTP request by default. To make an
684
+ asynchronous HTTP request, please pass async_req=True
685
+ >>> thread = api.jobs_service_delete_deployment_alerting_policy(project_id, deployment_id, id, async_req=True)
686
+ >>> result = thread.get()
687
+
688
+ :param async_req bool
689
+ :param str project_id: (required)
690
+ :param str deployment_id: (required)
691
+ :param str id: (required)
692
+ :return: V1DeleteDeploymentAlertingPolicyResponse
693
+ If the method is called asynchronously,
694
+ returns the request thread.
695
+ """
696
+ kwargs['_return_http_data_only'] = True
697
+ if kwargs.get('async_req'):
698
+ return self.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
699
+ else:
700
+ (data) = self.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
701
+ return data
702
+
703
+ def jobs_service_delete_deployment_alerting_policy_with_http_info(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentAlertingPolicyResponse': # noqa: E501
704
+ """jobs_service_delete_deployment_alerting_policy # noqa: E501
705
+
706
+ This method makes a synchronous HTTP request by default. To make an
707
+ asynchronous HTTP request, please pass async_req=True
708
+ >>> thread = api.jobs_service_delete_deployment_alerting_policy_with_http_info(project_id, deployment_id, id, async_req=True)
709
+ >>> result = thread.get()
710
+
711
+ :param async_req bool
712
+ :param str project_id: (required)
713
+ :param str deployment_id: (required)
714
+ :param str id: (required)
715
+ :return: V1DeleteDeploymentAlertingPolicyResponse
716
+ If the method is called asynchronously,
717
+ returns the request thread.
718
+ """
719
+
720
+ all_params = ['project_id', 'deployment_id', 'id'] # noqa: E501
721
+ all_params.append('async_req')
722
+ all_params.append('_return_http_data_only')
723
+ all_params.append('_preload_content')
724
+ all_params.append('_request_timeout')
725
+
726
+ params = locals()
727
+ for key, val in six.iteritems(params['kwargs']):
728
+ if key not in all_params:
729
+ raise TypeError(
730
+ "Got an unexpected keyword argument '%s'"
731
+ " to method jobs_service_delete_deployment_alerting_policy" % key
732
+ )
733
+ params[key] = val
734
+ del params['kwargs']
735
+ # verify the required parameter 'project_id' is set
736
+ if ('project_id' not in params or
737
+ params['project_id'] is None):
738
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
739
+ # verify the required parameter 'deployment_id' is set
740
+ if ('deployment_id' not in params or
741
+ params['deployment_id'] is None):
742
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
743
+ # verify the required parameter 'id' is set
744
+ if ('id' not in params or
745
+ params['id'] is None):
746
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_deployment_alerting_policy`") # noqa: E501
747
+
748
+ collection_formats = {}
749
+
750
+ path_params = {}
751
+ if 'project_id' in params:
752
+ path_params['projectId'] = params['project_id'] # noqa: E501
753
+ if 'deployment_id' in params:
754
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
755
+ if 'id' in params:
756
+ path_params['id'] = params['id'] # noqa: E501
757
+
758
+ query_params = []
759
+
760
+ header_params = {}
761
+
762
+ form_params = []
763
+ local_var_files = {}
764
+
765
+ body_params = None
766
+ # HTTP header `Accept`
767
+ header_params['Accept'] = self.api_client.select_header_accept(
768
+ ['application/json']) # noqa: E501
769
+
770
+ # Authentication setting
771
+ auth_settings = [] # noqa: E501
772
+
773
+ return self.api_client.call_api(
774
+ '/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies/{id}', 'DELETE',
775
+ path_params,
776
+ query_params,
777
+ header_params,
778
+ body=body_params,
779
+ post_params=form_params,
780
+ files=local_var_files,
781
+ response_type='V1DeleteDeploymentAlertingPolicyResponse', # noqa: E501
782
+ auth_settings=auth_settings,
783
+ async_req=params.get('async_req'),
784
+ _return_http_data_only=params.get('_return_http_data_only'),
785
+ _preload_content=params.get('_preload_content', True),
786
+ _request_timeout=params.get('_request_timeout'),
787
+ collection_formats=collection_formats)
788
+
567
789
  def jobs_service_delete_deployment_release(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentReleaseResponse': # noqa: E501
568
790
  """jobs_service_delete_deployment_release # noqa: E501
569
791
 
@@ -1745,6 +1967,111 @@ class JobsServiceApi(object):
1745
1967
  _request_timeout=params.get('_request_timeout'),
1746
1968
  collection_formats=collection_formats)
1747
1969
 
1970
+ def jobs_service_get_deployment_routing_telemetry_content(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryContentResponse': # noqa: E501
1971
+ """jobs_service_get_deployment_routing_telemetry_content # noqa: E501
1972
+
1973
+ This method makes a synchronous HTTP request by default. To make an
1974
+ asynchronous HTTP request, please pass async_req=True
1975
+ >>> thread = api.jobs_service_get_deployment_routing_telemetry_content(project_id, id, async_req=True)
1976
+ >>> result = thread.get()
1977
+
1978
+ :param async_req bool
1979
+ :param str project_id: (required)
1980
+ :param str id: (required)
1981
+ :param str request_id:
1982
+ :return: V1GetDeploymentRoutingTelemetryContentResponse
1983
+ If the method is called asynchronously,
1984
+ returns the request thread.
1985
+ """
1986
+ kwargs['_return_http_data_only'] = True
1987
+ if kwargs.get('async_req'):
1988
+ return self.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, **kwargs) # noqa: E501
1989
+ else:
1990
+ (data) = self.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, **kwargs) # noqa: E501
1991
+ return data
1992
+
1993
+ def jobs_service_get_deployment_routing_telemetry_content_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryContentResponse': # noqa: E501
1994
+ """jobs_service_get_deployment_routing_telemetry_content # noqa: E501
1995
+
1996
+ This method makes a synchronous HTTP request by default. To make an
1997
+ asynchronous HTTP request, please pass async_req=True
1998
+ >>> thread = api.jobs_service_get_deployment_routing_telemetry_content_with_http_info(project_id, id, async_req=True)
1999
+ >>> result = thread.get()
2000
+
2001
+ :param async_req bool
2002
+ :param str project_id: (required)
2003
+ :param str id: (required)
2004
+ :param str request_id:
2005
+ :return: V1GetDeploymentRoutingTelemetryContentResponse
2006
+ If the method is called asynchronously,
2007
+ returns the request thread.
2008
+ """
2009
+
2010
+ all_params = ['project_id', 'id', 'request_id'] # noqa: E501
2011
+ all_params.append('async_req')
2012
+ all_params.append('_return_http_data_only')
2013
+ all_params.append('_preload_content')
2014
+ all_params.append('_request_timeout')
2015
+
2016
+ params = locals()
2017
+ for key, val in six.iteritems(params['kwargs']):
2018
+ if key not in all_params:
2019
+ raise TypeError(
2020
+ "Got an unexpected keyword argument '%s'"
2021
+ " to method jobs_service_get_deployment_routing_telemetry_content" % key
2022
+ )
2023
+ params[key] = val
2024
+ del params['kwargs']
2025
+ # verify the required parameter 'project_id' is set
2026
+ if ('project_id' not in params or
2027
+ params['project_id'] is None):
2028
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry_content`") # noqa: E501
2029
+ # verify the required parameter 'id' is set
2030
+ if ('id' not in params or
2031
+ params['id'] is None):
2032
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry_content`") # noqa: E501
2033
+
2034
+ collection_formats = {}
2035
+
2036
+ path_params = {}
2037
+ if 'project_id' in params:
2038
+ path_params['projectId'] = params['project_id'] # noqa: E501
2039
+ if 'id' in params:
2040
+ path_params['id'] = params['id'] # noqa: E501
2041
+
2042
+ query_params = []
2043
+ if 'request_id' in params:
2044
+ query_params.append(('requestId', params['request_id'])) # noqa: E501
2045
+
2046
+ header_params = {}
2047
+
2048
+ form_params = []
2049
+ local_var_files = {}
2050
+
2051
+ body_params = None
2052
+ # HTTP header `Accept`
2053
+ header_params['Accept'] = self.api_client.select_header_accept(
2054
+ ['application/json']) # noqa: E501
2055
+
2056
+ # Authentication setting
2057
+ auth_settings = [] # noqa: E501
2058
+
2059
+ return self.api_client.call_api(
2060
+ '/v1/projects/{projectId}/deployments/{id}/routing-telemetry-content', 'GET',
2061
+ path_params,
2062
+ query_params,
2063
+ header_params,
2064
+ body=body_params,
2065
+ post_params=form_params,
2066
+ files=local_var_files,
2067
+ response_type='V1GetDeploymentRoutingTelemetryContentResponse', # noqa: E501
2068
+ auth_settings=auth_settings,
2069
+ async_req=params.get('async_req'),
2070
+ _return_http_data_only=params.get('_return_http_data_only'),
2071
+ _preload_content=params.get('_preload_content', True),
2072
+ _request_timeout=params.get('_request_timeout'),
2073
+ collection_formats=collection_formats)
2074
+
1748
2075
  def jobs_service_get_deployment_status(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentStatus': # noqa: E501
1749
2076
  """jobs_service_get_deployment_status # noqa: E501
1750
2077
 
@@ -2221,7 +2548,229 @@ class JobsServiceApi(object):
2221
2548
  returns the request thread.
2222
2549
  """
2223
2550
 
2224
- all_params = ['org_id', 'project_id', 'job_types'] # noqa: E501
2551
+ all_params = ['org_id', 'project_id', 'job_types'] # noqa: E501
2552
+ all_params.append('async_req')
2553
+ all_params.append('_return_http_data_only')
2554
+ all_params.append('_preload_content')
2555
+ all_params.append('_request_timeout')
2556
+
2557
+ params = locals()
2558
+ for key, val in six.iteritems(params['kwargs']):
2559
+ if key not in all_params:
2560
+ raise TypeError(
2561
+ "Got an unexpected keyword argument '%s'"
2562
+ " to method jobs_service_get_job_stats" % key
2563
+ )
2564
+ params[key] = val
2565
+ del params['kwargs']
2566
+
2567
+ collection_formats = {}
2568
+
2569
+ path_params = {}
2570
+
2571
+ query_params = []
2572
+ if 'org_id' in params:
2573
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
2574
+ if 'project_id' in params:
2575
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
2576
+ if 'job_types' in params:
2577
+ query_params.append(('jobTypes', params['job_types'])) # noqa: E501
2578
+ collection_formats['jobTypes'] = 'multi' # noqa: E501
2579
+
2580
+ header_params = {}
2581
+
2582
+ form_params = []
2583
+ local_var_files = {}
2584
+
2585
+ body_params = None
2586
+ # HTTP header `Accept`
2587
+ header_params['Accept'] = self.api_client.select_header_accept(
2588
+ ['application/json']) # noqa: E501
2589
+
2590
+ # Authentication setting
2591
+ auth_settings = [] # noqa: E501
2592
+
2593
+ return self.api_client.call_api(
2594
+ '/v1/stats/jobs', 'GET',
2595
+ path_params,
2596
+ query_params,
2597
+ header_params,
2598
+ body=body_params,
2599
+ post_params=form_params,
2600
+ files=local_var_files,
2601
+ response_type='V1GetJobStatsResponse', # noqa: E501
2602
+ auth_settings=auth_settings,
2603
+ async_req=params.get('async_req'),
2604
+ _return_http_data_only=params.get('_return_http_data_only'),
2605
+ _preload_content=params.get('_preload_content', True),
2606
+ _request_timeout=params.get('_request_timeout'),
2607
+ collection_formats=collection_formats)
2608
+
2609
+ def jobs_service_get_job_system_metrics(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
2610
+ """jobs_service_get_job_system_metrics # noqa: E501
2611
+
2612
+ This method makes a synchronous HTTP request by default. To make an
2613
+ asynchronous HTTP request, please pass async_req=True
2614
+ >>> thread = api.jobs_service_get_job_system_metrics(project_id, async_req=True)
2615
+ >>> result = thread.get()
2616
+
2617
+ :param async_req bool
2618
+ :param str project_id: (required)
2619
+ :param str cloudspace_id:
2620
+ :param list[str] ids:
2621
+ :param datetime start:
2622
+ :param datetime end:
2623
+ :param str frequency:
2624
+ :param bool first_query:
2625
+ :param str deployment_id:
2626
+ :param int rank:
2627
+ :return: V1GetJobSystemMetricsResponse
2628
+ If the method is called asynchronously,
2629
+ returns the request thread.
2630
+ """
2631
+ kwargs['_return_http_data_only'] = True
2632
+ if kwargs.get('async_req'):
2633
+ return self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
2634
+ else:
2635
+ (data) = self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
2636
+ return data
2637
+
2638
+ def jobs_service_get_job_system_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
2639
+ """jobs_service_get_job_system_metrics # noqa: E501
2640
+
2641
+ This method makes a synchronous HTTP request by default. To make an
2642
+ asynchronous HTTP request, please pass async_req=True
2643
+ >>> thread = api.jobs_service_get_job_system_metrics_with_http_info(project_id, async_req=True)
2644
+ >>> result = thread.get()
2645
+
2646
+ :param async_req bool
2647
+ :param str project_id: (required)
2648
+ :param str cloudspace_id:
2649
+ :param list[str] ids:
2650
+ :param datetime start:
2651
+ :param datetime end:
2652
+ :param str frequency:
2653
+ :param bool first_query:
2654
+ :param str deployment_id:
2655
+ :param int rank:
2656
+ :return: V1GetJobSystemMetricsResponse
2657
+ If the method is called asynchronously,
2658
+ returns the request thread.
2659
+ """
2660
+
2661
+ all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id', 'rank'] # noqa: E501
2662
+ all_params.append('async_req')
2663
+ all_params.append('_return_http_data_only')
2664
+ all_params.append('_preload_content')
2665
+ all_params.append('_request_timeout')
2666
+
2667
+ params = locals()
2668
+ for key, val in six.iteritems(params['kwargs']):
2669
+ if key not in all_params:
2670
+ raise TypeError(
2671
+ "Got an unexpected keyword argument '%s'"
2672
+ " to method jobs_service_get_job_system_metrics" % key
2673
+ )
2674
+ params[key] = val
2675
+ del params['kwargs']
2676
+ # verify the required parameter 'project_id' is set
2677
+ if ('project_id' not in params or
2678
+ params['project_id'] is None):
2679
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_system_metrics`") # noqa: E501
2680
+
2681
+ collection_formats = {}
2682
+
2683
+ path_params = {}
2684
+ if 'project_id' in params:
2685
+ path_params['projectId'] = params['project_id'] # noqa: E501
2686
+
2687
+ query_params = []
2688
+ if 'cloudspace_id' in params:
2689
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2690
+ if 'ids' in params:
2691
+ query_params.append(('ids', params['ids'])) # noqa: E501
2692
+ collection_formats['ids'] = 'multi' # noqa: E501
2693
+ if 'start' in params:
2694
+ query_params.append(('start', params['start'])) # noqa: E501
2695
+ if 'end' in params:
2696
+ query_params.append(('end', params['end'])) # noqa: E501
2697
+ if 'frequency' in params:
2698
+ query_params.append(('frequency', params['frequency'])) # noqa: E501
2699
+ if 'first_query' in params:
2700
+ query_params.append(('firstQuery', params['first_query'])) # noqa: E501
2701
+ if 'deployment_id' in params:
2702
+ query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2703
+ if 'rank' in params:
2704
+ query_params.append(('rank', params['rank'])) # noqa: E501
2705
+
2706
+ header_params = {}
2707
+
2708
+ form_params = []
2709
+ local_var_files = {}
2710
+
2711
+ body_params = None
2712
+ # HTTP header `Accept`
2713
+ header_params['Accept'] = self.api_client.select_header_accept(
2714
+ ['application/json']) # noqa: E501
2715
+
2716
+ # Authentication setting
2717
+ auth_settings = [] # noqa: E501
2718
+
2719
+ return self.api_client.call_api(
2720
+ '/v1/projects/{projectId}/jobs/system-metrics', 'GET',
2721
+ path_params,
2722
+ query_params,
2723
+ header_params,
2724
+ body=body_params,
2725
+ post_params=form_params,
2726
+ files=local_var_files,
2727
+ response_type='V1GetJobSystemMetricsResponse', # noqa: E501
2728
+ auth_settings=auth_settings,
2729
+ async_req=params.get('async_req'),
2730
+ _return_http_data_only=params.get('_return_http_data_only'),
2731
+ _preload_content=params.get('_preload_content', True),
2732
+ _request_timeout=params.get('_request_timeout'),
2733
+ collection_formats=collection_formats)
2734
+
2735
+ def jobs_service_get_multi_machine_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2736
+ """jobs_service_get_multi_machine_job # noqa: E501
2737
+
2738
+ This method makes a synchronous HTTP request by default. To make an
2739
+ asynchronous HTTP request, please pass async_req=True
2740
+ >>> thread = api.jobs_service_get_multi_machine_job(project_id, id, async_req=True)
2741
+ >>> result = thread.get()
2742
+
2743
+ :param async_req bool
2744
+ :param str project_id: (required)
2745
+ :param str id: (required)
2746
+ :return: V1MultiMachineJob
2747
+ If the method is called asynchronously,
2748
+ returns the request thread.
2749
+ """
2750
+ kwargs['_return_http_data_only'] = True
2751
+ if kwargs.get('async_req'):
2752
+ return self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2753
+ else:
2754
+ (data) = self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2755
+ return data
2756
+
2757
+ def jobs_service_get_multi_machine_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2758
+ """jobs_service_get_multi_machine_job # noqa: E501
2759
+
2760
+ This method makes a synchronous HTTP request by default. To make an
2761
+ asynchronous HTTP request, please pass async_req=True
2762
+ >>> thread = api.jobs_service_get_multi_machine_job_with_http_info(project_id, id, async_req=True)
2763
+ >>> result = thread.get()
2764
+
2765
+ :param async_req bool
2766
+ :param str project_id: (required)
2767
+ :param str id: (required)
2768
+ :return: V1MultiMachineJob
2769
+ If the method is called asynchronously,
2770
+ returns the request thread.
2771
+ """
2772
+
2773
+ all_params = ['project_id', 'id'] # noqa: E501
2225
2774
  all_params.append('async_req')
2226
2775
  all_params.append('_return_http_data_only')
2227
2776
  all_params.append('_preload_content')
@@ -2232,23 +2781,28 @@ class JobsServiceApi(object):
2232
2781
  if key not in all_params:
2233
2782
  raise TypeError(
2234
2783
  "Got an unexpected keyword argument '%s'"
2235
- " to method jobs_service_get_job_stats" % key
2784
+ " to method jobs_service_get_multi_machine_job" % key
2236
2785
  )
2237
2786
  params[key] = val
2238
2787
  del params['kwargs']
2788
+ # verify the required parameter 'project_id' is set
2789
+ if ('project_id' not in params or
2790
+ params['project_id'] is None):
2791
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2792
+ # verify the required parameter 'id' is set
2793
+ if ('id' not in params or
2794
+ params['id'] is None):
2795
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2239
2796
 
2240
2797
  collection_formats = {}
2241
2798
 
2242
2799
  path_params = {}
2800
+ if 'project_id' in params:
2801
+ path_params['projectId'] = params['project_id'] # noqa: E501
2802
+ if 'id' in params:
2803
+ path_params['id'] = params['id'] # noqa: E501
2243
2804
 
2244
2805
  query_params = []
2245
- if 'org_id' in params:
2246
- query_params.append(('orgId', params['org_id'])) # noqa: E501
2247
- if 'project_id' in params:
2248
- query_params.append(('projectId', params['project_id'])) # noqa: E501
2249
- if 'job_types' in params:
2250
- query_params.append(('jobTypes', params['job_types'])) # noqa: E501
2251
- collection_formats['jobTypes'] = 'multi' # noqa: E501
2252
2806
 
2253
2807
  header_params = {}
2254
2808
 
@@ -2264,14 +2818,14 @@ class JobsServiceApi(object):
2264
2818
  auth_settings = [] # noqa: E501
2265
2819
 
2266
2820
  return self.api_client.call_api(
2267
- '/v1/stats/jobs', 'GET',
2821
+ '/v1/projects/{projectId}/multi-machine-jobs/{id}', 'GET',
2268
2822
  path_params,
2269
2823
  query_params,
2270
2824
  header_params,
2271
2825
  body=body_params,
2272
2826
  post_params=form_params,
2273
2827
  files=local_var_files,
2274
- response_type='V1GetJobStatsResponse', # noqa: E501
2828
+ response_type='V1MultiMachineJob', # noqa: E501
2275
2829
  auth_settings=auth_settings,
2276
2830
  async_req=params.get('async_req'),
2277
2831
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2279,59 +2833,45 @@ class JobsServiceApi(object):
2279
2833
  _request_timeout=params.get('_request_timeout'),
2280
2834
  collection_formats=collection_formats)
2281
2835
 
2282
- def jobs_service_get_job_system_metrics(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
2283
- """jobs_service_get_job_system_metrics # noqa: E501
2836
+ def jobs_service_get_multi_machine_job_by_name(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2837
+ """jobs_service_get_multi_machine_job_by_name # noqa: E501
2284
2838
 
2285
2839
  This method makes a synchronous HTTP request by default. To make an
2286
2840
  asynchronous HTTP request, please pass async_req=True
2287
- >>> thread = api.jobs_service_get_job_system_metrics(project_id, async_req=True)
2841
+ >>> thread = api.jobs_service_get_multi_machine_job_by_name(project_id, name, async_req=True)
2288
2842
  >>> result = thread.get()
2289
2843
 
2290
2844
  :param async_req bool
2291
2845
  :param str project_id: (required)
2292
- :param str cloudspace_id:
2293
- :param list[str] ids:
2294
- :param datetime start:
2295
- :param datetime end:
2296
- :param str frequency:
2297
- :param bool first_query:
2298
- :param str deployment_id:
2299
- :param int rank:
2300
- :return: V1GetJobSystemMetricsResponse
2846
+ :param str name: (required)
2847
+ :return: V1MultiMachineJob
2301
2848
  If the method is called asynchronously,
2302
2849
  returns the request thread.
2303
2850
  """
2304
2851
  kwargs['_return_http_data_only'] = True
2305
2852
  if kwargs.get('async_req'):
2306
- return self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
2853
+ return self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
2307
2854
  else:
2308
- (data) = self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
2855
+ (data) = self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
2309
2856
  return data
2310
2857
 
2311
- def jobs_service_get_job_system_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
2312
- """jobs_service_get_job_system_metrics # noqa: E501
2858
+ def jobs_service_get_multi_machine_job_by_name_with_http_info(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2859
+ """jobs_service_get_multi_machine_job_by_name # noqa: E501
2313
2860
 
2314
2861
  This method makes a synchronous HTTP request by default. To make an
2315
2862
  asynchronous HTTP request, please pass async_req=True
2316
- >>> thread = api.jobs_service_get_job_system_metrics_with_http_info(project_id, async_req=True)
2863
+ >>> thread = api.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, async_req=True)
2317
2864
  >>> result = thread.get()
2318
2865
 
2319
2866
  :param async_req bool
2320
2867
  :param str project_id: (required)
2321
- :param str cloudspace_id:
2322
- :param list[str] ids:
2323
- :param datetime start:
2324
- :param datetime end:
2325
- :param str frequency:
2326
- :param bool first_query:
2327
- :param str deployment_id:
2328
- :param int rank:
2329
- :return: V1GetJobSystemMetricsResponse
2868
+ :param str name: (required)
2869
+ :return: V1MultiMachineJob
2330
2870
  If the method is called asynchronously,
2331
2871
  returns the request thread.
2332
2872
  """
2333
2873
 
2334
- all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id', 'rank'] # noqa: E501
2874
+ all_params = ['project_id', 'name'] # noqa: E501
2335
2875
  all_params.append('async_req')
2336
2876
  all_params.append('_return_http_data_only')
2337
2877
  all_params.append('_preload_content')
@@ -2342,39 +2882,28 @@ class JobsServiceApi(object):
2342
2882
  if key not in all_params:
2343
2883
  raise TypeError(
2344
2884
  "Got an unexpected keyword argument '%s'"
2345
- " to method jobs_service_get_job_system_metrics" % key
2885
+ " to method jobs_service_get_multi_machine_job_by_name" % key
2346
2886
  )
2347
2887
  params[key] = val
2348
2888
  del params['kwargs']
2349
2889
  # verify the required parameter 'project_id' is set
2350
2890
  if ('project_id' not in params or
2351
2891
  params['project_id'] is None):
2352
- raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_system_metrics`") # noqa: E501
2892
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
2893
+ # verify the required parameter 'name' is set
2894
+ if ('name' not in params or
2895
+ params['name'] is None):
2896
+ raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
2353
2897
 
2354
2898
  collection_formats = {}
2355
2899
 
2356
2900
  path_params = {}
2357
2901
  if 'project_id' in params:
2358
2902
  path_params['projectId'] = params['project_id'] # noqa: E501
2903
+ if 'name' in params:
2904
+ path_params['name'] = params['name'] # noqa: E501
2359
2905
 
2360
2906
  query_params = []
2361
- if 'cloudspace_id' in params:
2362
- query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2363
- if 'ids' in params:
2364
- query_params.append(('ids', params['ids'])) # noqa: E501
2365
- collection_formats['ids'] = 'multi' # noqa: E501
2366
- if 'start' in params:
2367
- query_params.append(('start', params['start'])) # noqa: E501
2368
- if 'end' in params:
2369
- query_params.append(('end', params['end'])) # noqa: E501
2370
- if 'frequency' in params:
2371
- query_params.append(('frequency', params['frequency'])) # noqa: E501
2372
- if 'first_query' in params:
2373
- query_params.append(('firstQuery', params['first_query'])) # noqa: E501
2374
- if 'deployment_id' in params:
2375
- query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2376
- if 'rank' in params:
2377
- query_params.append(('rank', params['rank'])) # noqa: E501
2378
2907
 
2379
2908
  header_params = {}
2380
2909
 
@@ -2390,14 +2919,14 @@ class JobsServiceApi(object):
2390
2919
  auth_settings = [] # noqa: E501
2391
2920
 
2392
2921
  return self.api_client.call_api(
2393
- '/v1/projects/{projectId}/jobs/system-metrics', 'GET',
2922
+ '/v1/projects/{projectId}/multi-machine-jobs/{name}/getbyname', 'GET',
2394
2923
  path_params,
2395
2924
  query_params,
2396
2925
  header_params,
2397
2926
  body=body_params,
2398
2927
  post_params=form_params,
2399
2928
  files=local_var_files,
2400
- response_type='V1GetJobSystemMetricsResponse', # noqa: E501
2929
+ response_type='V1MultiMachineJob', # noqa: E501
2401
2930
  auth_settings=auth_settings,
2402
2931
  async_req=params.get('async_req'),
2403
2932
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2405,45 +2934,45 @@ class JobsServiceApi(object):
2405
2934
  _request_timeout=params.get('_request_timeout'),
2406
2935
  collection_formats=collection_formats)
2407
2936
 
2408
- def jobs_service_get_multi_machine_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2409
- """jobs_service_get_multi_machine_job # noqa: E501
2937
+ def jobs_service_list_deployment_alerting_events(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingEventsResponse': # noqa: E501
2938
+ """ListDeploymentAlertingEvents lists the deployment alert events # noqa: E501
2410
2939
 
2411
2940
  This method makes a synchronous HTTP request by default. To make an
2412
2941
  asynchronous HTTP request, please pass async_req=True
2413
- >>> thread = api.jobs_service_get_multi_machine_job(project_id, id, async_req=True)
2942
+ >>> thread = api.jobs_service_list_deployment_alerting_events(project_id, deployment_id, async_req=True)
2414
2943
  >>> result = thread.get()
2415
2944
 
2416
2945
  :param async_req bool
2417
2946
  :param str project_id: (required)
2418
- :param str id: (required)
2419
- :return: V1MultiMachineJob
2947
+ :param str deployment_id: (required)
2948
+ :return: V1ListDeploymentAlertingEventsResponse
2420
2949
  If the method is called asynchronously,
2421
2950
  returns the request thread.
2422
2951
  """
2423
2952
  kwargs['_return_http_data_only'] = True
2424
2953
  if kwargs.get('async_req'):
2425
- return self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2954
+ return self.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2426
2955
  else:
2427
- (data) = self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2956
+ (data) = self.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2428
2957
  return data
2429
2958
 
2430
- def jobs_service_get_multi_machine_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2431
- """jobs_service_get_multi_machine_job # noqa: E501
2959
+ def jobs_service_list_deployment_alerting_events_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingEventsResponse': # noqa: E501
2960
+ """ListDeploymentAlertingEvents lists the deployment alert events # noqa: E501
2432
2961
 
2433
2962
  This method makes a synchronous HTTP request by default. To make an
2434
2963
  asynchronous HTTP request, please pass async_req=True
2435
- >>> thread = api.jobs_service_get_multi_machine_job_with_http_info(project_id, id, async_req=True)
2964
+ >>> thread = api.jobs_service_list_deployment_alerting_events_with_http_info(project_id, deployment_id, async_req=True)
2436
2965
  >>> result = thread.get()
2437
2966
 
2438
2967
  :param async_req bool
2439
2968
  :param str project_id: (required)
2440
- :param str id: (required)
2441
- :return: V1MultiMachineJob
2969
+ :param str deployment_id: (required)
2970
+ :return: V1ListDeploymentAlertingEventsResponse
2442
2971
  If the method is called asynchronously,
2443
2972
  returns the request thread.
2444
2973
  """
2445
2974
 
2446
- all_params = ['project_id', 'id'] # noqa: E501
2975
+ all_params = ['project_id', 'deployment_id'] # noqa: E501
2447
2976
  all_params.append('async_req')
2448
2977
  all_params.append('_return_http_data_only')
2449
2978
  all_params.append('_preload_content')
@@ -2454,26 +2983,26 @@ class JobsServiceApi(object):
2454
2983
  if key not in all_params:
2455
2984
  raise TypeError(
2456
2985
  "Got an unexpected keyword argument '%s'"
2457
- " to method jobs_service_get_multi_machine_job" % key
2986
+ " to method jobs_service_list_deployment_alerting_events" % key
2458
2987
  )
2459
2988
  params[key] = val
2460
2989
  del params['kwargs']
2461
2990
  # verify the required parameter 'project_id' is set
2462
2991
  if ('project_id' not in params or
2463
2992
  params['project_id'] is None):
2464
- raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2465
- # verify the required parameter 'id' is set
2466
- if ('id' not in params or
2467
- params['id'] is None):
2468
- raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2993
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_alerting_events`") # noqa: E501
2994
+ # verify the required parameter 'deployment_id' is set
2995
+ if ('deployment_id' not in params or
2996
+ params['deployment_id'] is None):
2997
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_alerting_events`") # noqa: E501
2469
2998
 
2470
2999
  collection_formats = {}
2471
3000
 
2472
3001
  path_params = {}
2473
3002
  if 'project_id' in params:
2474
3003
  path_params['projectId'] = params['project_id'] # noqa: E501
2475
- if 'id' in params:
2476
- path_params['id'] = params['id'] # noqa: E501
3004
+ if 'deployment_id' in params:
3005
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
2477
3006
 
2478
3007
  query_params = []
2479
3008
 
@@ -2491,14 +3020,14 @@ class JobsServiceApi(object):
2491
3020
  auth_settings = [] # noqa: E501
2492
3021
 
2493
3022
  return self.api_client.call_api(
2494
- '/v1/projects/{projectId}/multi-machine-jobs/{id}', 'GET',
3023
+ '/v1/projects/{projectId}/deployments/{deploymentId}/alerting-events', 'GET',
2495
3024
  path_params,
2496
3025
  query_params,
2497
3026
  header_params,
2498
3027
  body=body_params,
2499
3028
  post_params=form_params,
2500
3029
  files=local_var_files,
2501
- response_type='V1MultiMachineJob', # noqa: E501
3030
+ response_type='V1ListDeploymentAlertingEventsResponse', # noqa: E501
2502
3031
  auth_settings=auth_settings,
2503
3032
  async_req=params.get('async_req'),
2504
3033
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2506,45 +3035,45 @@ class JobsServiceApi(object):
2506
3035
  _request_timeout=params.get('_request_timeout'),
2507
3036
  collection_formats=collection_formats)
2508
3037
 
2509
- def jobs_service_get_multi_machine_job_by_name(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2510
- """jobs_service_get_multi_machine_job_by_name # noqa: E501
3038
+ def jobs_service_list_deployment_alerting_policies(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingPoliciesResponse': # noqa: E501
3039
+ """ListDeploymentAlertPolicies lists the deployment alert policies # noqa: E501
2511
3040
 
2512
3041
  This method makes a synchronous HTTP request by default. To make an
2513
3042
  asynchronous HTTP request, please pass async_req=True
2514
- >>> thread = api.jobs_service_get_multi_machine_job_by_name(project_id, name, async_req=True)
3043
+ >>> thread = api.jobs_service_list_deployment_alerting_policies(project_id, deployment_id, async_req=True)
2515
3044
  >>> result = thread.get()
2516
3045
 
2517
3046
  :param async_req bool
2518
3047
  :param str project_id: (required)
2519
- :param str name: (required)
2520
- :return: V1MultiMachineJob
3048
+ :param str deployment_id: (required)
3049
+ :return: V1ListDeploymentAlertingPoliciesResponse
2521
3050
  If the method is called asynchronously,
2522
3051
  returns the request thread.
2523
3052
  """
2524
3053
  kwargs['_return_http_data_only'] = True
2525
3054
  if kwargs.get('async_req'):
2526
- return self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
3055
+ return self.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2527
3056
  else:
2528
- (data) = self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
3057
+ (data) = self.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2529
3058
  return data
2530
3059
 
2531
- def jobs_service_get_multi_machine_job_by_name_with_http_info(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2532
- """jobs_service_get_multi_machine_job_by_name # noqa: E501
3060
+ def jobs_service_list_deployment_alerting_policies_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentAlertingPoliciesResponse': # noqa: E501
3061
+ """ListDeploymentAlertPolicies lists the deployment alert policies # noqa: E501
2533
3062
 
2534
3063
  This method makes a synchronous HTTP request by default. To make an
2535
3064
  asynchronous HTTP request, please pass async_req=True
2536
- >>> thread = api.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, async_req=True)
3065
+ >>> thread = api.jobs_service_list_deployment_alerting_policies_with_http_info(project_id, deployment_id, async_req=True)
2537
3066
  >>> result = thread.get()
2538
3067
 
2539
3068
  :param async_req bool
2540
3069
  :param str project_id: (required)
2541
- :param str name: (required)
2542
- :return: V1MultiMachineJob
3070
+ :param str deployment_id: (required)
3071
+ :return: V1ListDeploymentAlertingPoliciesResponse
2543
3072
  If the method is called asynchronously,
2544
3073
  returns the request thread.
2545
3074
  """
2546
3075
 
2547
- all_params = ['project_id', 'name'] # noqa: E501
3076
+ all_params = ['project_id', 'deployment_id'] # noqa: E501
2548
3077
  all_params.append('async_req')
2549
3078
  all_params.append('_return_http_data_only')
2550
3079
  all_params.append('_preload_content')
@@ -2555,26 +3084,26 @@ class JobsServiceApi(object):
2555
3084
  if key not in all_params:
2556
3085
  raise TypeError(
2557
3086
  "Got an unexpected keyword argument '%s'"
2558
- " to method jobs_service_get_multi_machine_job_by_name" % key
3087
+ " to method jobs_service_list_deployment_alerting_policies" % key
2559
3088
  )
2560
3089
  params[key] = val
2561
3090
  del params['kwargs']
2562
3091
  # verify the required parameter 'project_id' is set
2563
3092
  if ('project_id' not in params or
2564
3093
  params['project_id'] is None):
2565
- raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
2566
- # verify the required parameter 'name' is set
2567
- if ('name' not in params or
2568
- params['name'] is None):
2569
- raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
3094
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_alerting_policies`") # noqa: E501
3095
+ # verify the required parameter 'deployment_id' is set
3096
+ if ('deployment_id' not in params or
3097
+ params['deployment_id'] is None):
3098
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_alerting_policies`") # noqa: E501
2570
3099
 
2571
3100
  collection_formats = {}
2572
3101
 
2573
3102
  path_params = {}
2574
3103
  if 'project_id' in params:
2575
3104
  path_params['projectId'] = params['project_id'] # noqa: E501
2576
- if 'name' in params:
2577
- path_params['name'] = params['name'] # noqa: E501
3105
+ if 'deployment_id' in params:
3106
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
2578
3107
 
2579
3108
  query_params = []
2580
3109
 
@@ -2592,14 +3121,14 @@ class JobsServiceApi(object):
2592
3121
  auth_settings = [] # noqa: E501
2593
3122
 
2594
3123
  return self.api_client.call_api(
2595
- '/v1/projects/{projectId}/multi-machine-jobs/{name}/getbyname', 'GET',
3124
+ '/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'GET',
2596
3125
  path_params,
2597
3126
  query_params,
2598
3127
  header_params,
2599
3128
  body=body_params,
2600
3129
  post_params=form_params,
2601
3130
  files=local_var_files,
2602
- response_type='V1MultiMachineJob', # noqa: E501
3131
+ response_type='V1ListDeploymentAlertingPoliciesResponse', # noqa: E501
2603
3132
  auth_settings=auth_settings,
2604
3133
  async_req=params.get('async_req'),
2605
3134
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2832,6 +3361,7 @@ class JobsServiceApi(object):
2832
3361
  :param async_req bool
2833
3362
  :param str project_id: (required)
2834
3363
  :param str id: (required)
3364
+ :param str first_request_id:
2835
3365
  :param str last_request_id:
2836
3366
  :param datetime start:
2837
3367
  :param datetime end:
@@ -2860,6 +3390,7 @@ class JobsServiceApi(object):
2860
3390
  :param async_req bool
2861
3391
  :param str project_id: (required)
2862
3392
  :param str id: (required)
3393
+ :param str first_request_id:
2863
3394
  :param str last_request_id:
2864
3395
  :param datetime start:
2865
3396
  :param datetime end:
@@ -2871,7 +3402,7 @@ class JobsServiceApi(object):
2871
3402
  returns the request thread.
2872
3403
  """
2873
3404
 
2874
- all_params = ['project_id', 'id', 'last_request_id', 'start', 'end', 'path', 'status_code', 'limit'] # noqa: E501
3405
+ all_params = ['project_id', 'id', 'first_request_id', 'last_request_id', 'start', 'end', 'path', 'status_code', 'limit'] # noqa: E501
2875
3406
  all_params.append('async_req')
2876
3407
  all_params.append('_return_http_data_only')
2877
3408
  all_params.append('_preload_content')
@@ -2904,6 +3435,8 @@ class JobsServiceApi(object):
2904
3435
  path_params['id'] = params['id'] # noqa: E501
2905
3436
 
2906
3437
  query_params = []
3438
+ if 'first_request_id' in params:
3439
+ query_params.append(('firstRequestId', params['first_request_id'])) # noqa: E501
2907
3440
  if 'last_request_id' in params:
2908
3441
  query_params.append(('lastRequestId', params['last_request_id'])) # noqa: E501
2909
3442
  if 'start' in params:
@@ -4106,6 +4639,119 @@ class JobsServiceApi(object):
4106
4639
  _request_timeout=params.get('_request_timeout'),
4107
4640
  collection_formats=collection_formats)
4108
4641
 
4642
+ def jobs_service_update_deployment_alerting_policy(self, body: 'DeploymentIdAlertingpoliciesBody', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
4643
+ """jobs_service_update_deployment_alerting_policy # noqa: E501
4644
+
4645
+ This method makes a synchronous HTTP request by default. To make an
4646
+ asynchronous HTTP request, please pass async_req=True
4647
+ >>> thread = api.jobs_service_update_deployment_alerting_policy(body, project_id, deployment_id, async_req=True)
4648
+ >>> result = thread.get()
4649
+
4650
+ :param async_req bool
4651
+ :param DeploymentIdAlertingpoliciesBody body: (required)
4652
+ :param str project_id: (required)
4653
+ :param str deployment_id: (required)
4654
+ :return: V1DeploymentAlertingPolicy
4655
+ If the method is called asynchronously,
4656
+ returns the request thread.
4657
+ """
4658
+ kwargs['_return_http_data_only'] = True
4659
+ if kwargs.get('async_req'):
4660
+ return self.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
4661
+ else:
4662
+ (data) = self.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, **kwargs) # noqa: E501
4663
+ return data
4664
+
4665
+ def jobs_service_update_deployment_alerting_policy_with_http_info(self, body: 'DeploymentIdAlertingpoliciesBody', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
4666
+ """jobs_service_update_deployment_alerting_policy # noqa: E501
4667
+
4668
+ This method makes a synchronous HTTP request by default. To make an
4669
+ asynchronous HTTP request, please pass async_req=True
4670
+ >>> thread = api.jobs_service_update_deployment_alerting_policy_with_http_info(body, project_id, deployment_id, async_req=True)
4671
+ >>> result = thread.get()
4672
+
4673
+ :param async_req bool
4674
+ :param DeploymentIdAlertingpoliciesBody body: (required)
4675
+ :param str project_id: (required)
4676
+ :param str deployment_id: (required)
4677
+ :return: V1DeploymentAlertingPolicy
4678
+ If the method is called asynchronously,
4679
+ returns the request thread.
4680
+ """
4681
+
4682
+ all_params = ['body', 'project_id', 'deployment_id'] # noqa: E501
4683
+ all_params.append('async_req')
4684
+ all_params.append('_return_http_data_only')
4685
+ all_params.append('_preload_content')
4686
+ all_params.append('_request_timeout')
4687
+
4688
+ params = locals()
4689
+ for key, val in six.iteritems(params['kwargs']):
4690
+ if key not in all_params:
4691
+ raise TypeError(
4692
+ "Got an unexpected keyword argument '%s'"
4693
+ " to method jobs_service_update_deployment_alerting_policy" % key
4694
+ )
4695
+ params[key] = val
4696
+ del params['kwargs']
4697
+ # verify the required parameter 'body' is set
4698
+ if ('body' not in params or
4699
+ params['body'] is None):
4700
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
4701
+ # verify the required parameter 'project_id' is set
4702
+ if ('project_id' not in params or
4703
+ params['project_id'] is None):
4704
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
4705
+ # verify the required parameter 'deployment_id' is set
4706
+ if ('deployment_id' not in params or
4707
+ params['deployment_id'] is None):
4708
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_update_deployment_alerting_policy`") # noqa: E501
4709
+
4710
+ collection_formats = {}
4711
+
4712
+ path_params = {}
4713
+ if 'project_id' in params:
4714
+ path_params['projectId'] = params['project_id'] # noqa: E501
4715
+ if 'deployment_id' in params:
4716
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
4717
+
4718
+ query_params = []
4719
+
4720
+ header_params = {}
4721
+
4722
+ form_params = []
4723
+ local_var_files = {}
4724
+
4725
+ body_params = None
4726
+ if 'body' in params:
4727
+ body_params = params['body']
4728
+ # HTTP header `Accept`
4729
+ header_params['Accept'] = self.api_client.select_header_accept(
4730
+ ['application/json']) # noqa: E501
4731
+
4732
+ # HTTP header `Content-Type`
4733
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4734
+ ['application/json']) # noqa: E501
4735
+
4736
+ # Authentication setting
4737
+ auth_settings = [] # noqa: E501
4738
+
4739
+ return self.api_client.call_api(
4740
+ '/v1/projects/{projectId}/deployments/{deploymentId}/alerting-policies', 'PUT',
4741
+ path_params,
4742
+ query_params,
4743
+ header_params,
4744
+ body=body_params,
4745
+ post_params=form_params,
4746
+ files=local_var_files,
4747
+ response_type='V1DeploymentAlertingPolicy', # noqa: E501
4748
+ auth_settings=auth_settings,
4749
+ async_req=params.get('async_req'),
4750
+ _return_http_data_only=params.get('_return_http_data_only'),
4751
+ _preload_content=params.get('_preload_content', True),
4752
+ _request_timeout=params.get('_request_timeout'),
4753
+ collection_formats=collection_formats)
4754
+
4109
4755
  def jobs_service_update_deployment_visibility(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateDeploymentVisibilityResponse': # noqa: E501
4110
4756
  """UpdateDeploymentVisibility updates the deployment visibility, mainly switch between public and private # noqa: E501
4111
4757