lightning-sdk 0.1.58__py3-none-any.whl → 0.2.0__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 (118) hide show
  1. lightning_sdk/__init__.py +5 -3
  2. lightning_sdk/api/deployment_api.py +23 -11
  3. lightning_sdk/api/job_api.py +42 -7
  4. lightning_sdk/api/lit_container_api.py +7 -3
  5. lightning_sdk/api/mmt_api.py +46 -8
  6. lightning_sdk/api/pipeline_api.py +50 -0
  7. lightning_sdk/api/teamspace_api.py +2 -2
  8. lightning_sdk/api/utils.py +15 -5
  9. lightning_sdk/cli/ai_hub.py +30 -65
  10. lightning_sdk/cli/coloring.py +60 -0
  11. lightning_sdk/cli/configure.py +25 -40
  12. lightning_sdk/cli/connect.py +7 -20
  13. lightning_sdk/cli/create.py +83 -0
  14. lightning_sdk/cli/delete.py +72 -75
  15. lightning_sdk/cli/docker.py +77 -0
  16. lightning_sdk/cli/download.py +71 -111
  17. lightning_sdk/cli/entrypoint.py +44 -65
  18. lightning_sdk/cli/generate.py +28 -43
  19. lightning_sdk/cli/inspect.py +22 -50
  20. lightning_sdk/cli/list.py +281 -222
  21. lightning_sdk/cli/mmts_menu.py +1 -1
  22. lightning_sdk/cli/open.py +62 -0
  23. lightning_sdk/cli/run.py +430 -263
  24. lightning_sdk/cli/serve.py +162 -189
  25. lightning_sdk/cli/start.py +55 -36
  26. lightning_sdk/cli/stop.py +97 -55
  27. lightning_sdk/cli/switch.py +53 -36
  28. lightning_sdk/cli/upload.py +318 -255
  29. lightning_sdk/deployment/__init__.py +2 -0
  30. lightning_sdk/deployment/deployment.py +33 -8
  31. lightning_sdk/lightning_cloud/openapi/__init__.py +21 -0
  32. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
  34. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
  35. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
  36. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
  37. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +670 -0
  38. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
  39. lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -0
  40. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
  41. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
  45. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
  46. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
  49. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +435 -0
  50. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +201 -0
  51. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
  52. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
  54. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
  57. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
  77. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
  78. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
  79. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  84. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  85. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +487 -0
  88. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
  91. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
  92. lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
  93. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
  96. lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
  98. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
  99. lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
  100. lightning_sdk/lightning_cloud/rest_client.py +4 -2
  101. lightning_sdk/machine.py +25 -1
  102. lightning_sdk/models.py +18 -12
  103. lightning_sdk/pipeline/__init__.py +4 -0
  104. lightning_sdk/pipeline/pipeline.py +109 -0
  105. lightning_sdk/pipeline/types.py +268 -0
  106. lightning_sdk/pipeline/utils.py +69 -0
  107. lightning_sdk/plugin.py +9 -10
  108. lightning_sdk/services/utilities.py +2 -2
  109. lightning_sdk/studio.py +5 -1
  110. lightning_sdk/teamspace.py +1 -1
  111. lightning_sdk/utils/resolve.py +12 -1
  112. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/METADATA +6 -8
  113. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/RECORD +117 -88
  114. lightning_sdk/cli/legacy.py +0 -135
  115. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/LICENSE +0 -0
  116. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/WHEEL +0 -0
  117. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/entry_points.txt +0 -0
  118. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.0.dist-info}/top_level.txt +0 -0
@@ -1388,6 +1388,115 @@ class JobsServiceApi(object):
1388
1388
  _request_timeout=params.get('_request_timeout'),
1389
1389
  collection_formats=collection_formats)
1390
1390
 
1391
+ def jobs_service_get_deployment_by_slugs(self, project_owner_name: 'str', project_name: 'str', deployment_name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1392
+ """jobs_service_get_deployment_by_slugs # noqa: E501
1393
+
1394
+ This method makes a synchronous HTTP request by default. To make an
1395
+ asynchronous HTTP request, please pass async_req=True
1396
+ >>> thread = api.jobs_service_get_deployment_by_slugs(project_owner_name, project_name, deployment_name, async_req=True)
1397
+ >>> result = thread.get()
1398
+
1399
+ :param async_req bool
1400
+ :param str project_owner_name: (required)
1401
+ :param str project_name: (required)
1402
+ :param str deployment_name: (required)
1403
+ :return: V1Deployment
1404
+ If the method is called asynchronously,
1405
+ returns the request thread.
1406
+ """
1407
+ kwargs['_return_http_data_only'] = True
1408
+ if kwargs.get('async_req'):
1409
+ return self.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, **kwargs) # noqa: E501
1410
+ else:
1411
+ (data) = self.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, **kwargs) # noqa: E501
1412
+ return data
1413
+
1414
+ def jobs_service_get_deployment_by_slugs_with_http_info(self, project_owner_name: 'str', project_name: 'str', deployment_name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1415
+ """jobs_service_get_deployment_by_slugs # noqa: E501
1416
+
1417
+ This method makes a synchronous HTTP request by default. To make an
1418
+ asynchronous HTTP request, please pass async_req=True
1419
+ >>> thread = api.jobs_service_get_deployment_by_slugs_with_http_info(project_owner_name, project_name, deployment_name, async_req=True)
1420
+ >>> result = thread.get()
1421
+
1422
+ :param async_req bool
1423
+ :param str project_owner_name: (required)
1424
+ :param str project_name: (required)
1425
+ :param str deployment_name: (required)
1426
+ :return: V1Deployment
1427
+ If the method is called asynchronously,
1428
+ returns the request thread.
1429
+ """
1430
+
1431
+ all_params = ['project_owner_name', 'project_name', 'deployment_name'] # noqa: E501
1432
+ all_params.append('async_req')
1433
+ all_params.append('_return_http_data_only')
1434
+ all_params.append('_preload_content')
1435
+ all_params.append('_request_timeout')
1436
+
1437
+ params = locals()
1438
+ for key, val in six.iteritems(params['kwargs']):
1439
+ if key not in all_params:
1440
+ raise TypeError(
1441
+ "Got an unexpected keyword argument '%s'"
1442
+ " to method jobs_service_get_deployment_by_slugs" % key
1443
+ )
1444
+ params[key] = val
1445
+ del params['kwargs']
1446
+ # verify the required parameter 'project_owner_name' is set
1447
+ if ('project_owner_name' not in params or
1448
+ params['project_owner_name'] is None):
1449
+ raise ValueError("Missing the required parameter `project_owner_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
1450
+ # verify the required parameter 'project_name' is set
1451
+ if ('project_name' not in params or
1452
+ params['project_name'] is None):
1453
+ raise ValueError("Missing the required parameter `project_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
1454
+ # verify the required parameter 'deployment_name' is set
1455
+ if ('deployment_name' not in params or
1456
+ params['deployment_name'] is None):
1457
+ raise ValueError("Missing the required parameter `deployment_name` when calling `jobs_service_get_deployment_by_slugs`") # noqa: E501
1458
+
1459
+ collection_formats = {}
1460
+
1461
+ path_params = {}
1462
+ if 'project_owner_name' in params:
1463
+ path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
1464
+ if 'project_name' in params:
1465
+ path_params['projectName'] = params['project_name'] # noqa: E501
1466
+ if 'deployment_name' in params:
1467
+ path_params['deploymentName'] = params['deployment_name'] # noqa: E501
1468
+
1469
+ query_params = []
1470
+
1471
+ header_params = {}
1472
+
1473
+ form_params = []
1474
+ local_var_files = {}
1475
+
1476
+ body_params = None
1477
+ # HTTP header `Accept`
1478
+ header_params['Accept'] = self.api_client.select_header_accept(
1479
+ ['application/json']) # noqa: E501
1480
+
1481
+ # Authentication setting
1482
+ auth_settings = [] # noqa: E501
1483
+
1484
+ return self.api_client.call_api(
1485
+ '/v1/projects/{projectOwnerName}/{projectName}/deployments/{deploymentName}', 'GET',
1486
+ path_params,
1487
+ query_params,
1488
+ header_params,
1489
+ body=body_params,
1490
+ post_params=form_params,
1491
+ files=local_var_files,
1492
+ response_type='V1Deployment', # noqa: E501
1493
+ auth_settings=auth_settings,
1494
+ async_req=params.get('async_req'),
1495
+ _return_http_data_only=params.get('_return_http_data_only'),
1496
+ _preload_content=params.get('_preload_content', True),
1497
+ _request_timeout=params.get('_request_timeout'),
1498
+ collection_formats=collection_formats)
1499
+
1391
1500
  def jobs_service_get_deployment_routing_telemetry(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryResponse': # noqa: E501
1392
1501
  """Deployment Telemetry # noqa: E501
1393
1502
 
@@ -1741,6 +1850,115 @@ class JobsServiceApi(object):
1741
1850
  _request_timeout=params.get('_request_timeout'),
1742
1851
  collection_formats=collection_formats)
1743
1852
 
1853
+ def jobs_service_get_job_by_name(self, project_owner_name: 'str', project_name: 'str', job_name: 'str', **kwargs) -> 'V1Job': # noqa: E501
1854
+ """jobs_service_get_job_by_name # noqa: E501
1855
+
1856
+ This method makes a synchronous HTTP request by default. To make an
1857
+ asynchronous HTTP request, please pass async_req=True
1858
+ >>> thread = api.jobs_service_get_job_by_name(project_owner_name, project_name, job_name, async_req=True)
1859
+ >>> result = thread.get()
1860
+
1861
+ :param async_req bool
1862
+ :param str project_owner_name: (required)
1863
+ :param str project_name: (required)
1864
+ :param str job_name: (required)
1865
+ :return: V1Job
1866
+ If the method is called asynchronously,
1867
+ returns the request thread.
1868
+ """
1869
+ kwargs['_return_http_data_only'] = True
1870
+ if kwargs.get('async_req'):
1871
+ return self.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, **kwargs) # noqa: E501
1872
+ else:
1873
+ (data) = self.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, **kwargs) # noqa: E501
1874
+ return data
1875
+
1876
+ def jobs_service_get_job_by_name_with_http_info(self, project_owner_name: 'str', project_name: 'str', job_name: 'str', **kwargs) -> 'V1Job': # noqa: E501
1877
+ """jobs_service_get_job_by_name # noqa: E501
1878
+
1879
+ This method makes a synchronous HTTP request by default. To make an
1880
+ asynchronous HTTP request, please pass async_req=True
1881
+ >>> thread = api.jobs_service_get_job_by_name_with_http_info(project_owner_name, project_name, job_name, async_req=True)
1882
+ >>> result = thread.get()
1883
+
1884
+ :param async_req bool
1885
+ :param str project_owner_name: (required)
1886
+ :param str project_name: (required)
1887
+ :param str job_name: (required)
1888
+ :return: V1Job
1889
+ If the method is called asynchronously,
1890
+ returns the request thread.
1891
+ """
1892
+
1893
+ all_params = ['project_owner_name', 'project_name', 'job_name'] # noqa: E501
1894
+ all_params.append('async_req')
1895
+ all_params.append('_return_http_data_only')
1896
+ all_params.append('_preload_content')
1897
+ all_params.append('_request_timeout')
1898
+
1899
+ params = locals()
1900
+ for key, val in six.iteritems(params['kwargs']):
1901
+ if key not in all_params:
1902
+ raise TypeError(
1903
+ "Got an unexpected keyword argument '%s'"
1904
+ " to method jobs_service_get_job_by_name" % key
1905
+ )
1906
+ params[key] = val
1907
+ del params['kwargs']
1908
+ # verify the required parameter 'project_owner_name' is set
1909
+ if ('project_owner_name' not in params or
1910
+ params['project_owner_name'] is None):
1911
+ raise ValueError("Missing the required parameter `project_owner_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
1912
+ # verify the required parameter 'project_name' is set
1913
+ if ('project_name' not in params or
1914
+ params['project_name'] is None):
1915
+ raise ValueError("Missing the required parameter `project_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
1916
+ # verify the required parameter 'job_name' is set
1917
+ if ('job_name' not in params or
1918
+ params['job_name'] is None):
1919
+ raise ValueError("Missing the required parameter `job_name` when calling `jobs_service_get_job_by_name`") # noqa: E501
1920
+
1921
+ collection_formats = {}
1922
+
1923
+ path_params = {}
1924
+ if 'project_owner_name' in params:
1925
+ path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
1926
+ if 'project_name' in params:
1927
+ path_params['projectName'] = params['project_name'] # noqa: E501
1928
+ if 'job_name' in params:
1929
+ path_params['jobName'] = params['job_name'] # noqa: E501
1930
+
1931
+ query_params = []
1932
+
1933
+ header_params = {}
1934
+
1935
+ form_params = []
1936
+ local_var_files = {}
1937
+
1938
+ body_params = None
1939
+ # HTTP header `Accept`
1940
+ header_params['Accept'] = self.api_client.select_header_accept(
1941
+ ['application/json']) # noqa: E501
1942
+
1943
+ # Authentication setting
1944
+ auth_settings = [] # noqa: E501
1945
+
1946
+ return self.api_client.call_api(
1947
+ '/v1/projects/{projectOwnerName}/{projectName}/jobs/{jobName}', 'GET',
1948
+ path_params,
1949
+ query_params,
1950
+ header_params,
1951
+ body=body_params,
1952
+ post_params=form_params,
1953
+ files=local_var_files,
1954
+ response_type='V1Job', # noqa: E501
1955
+ auth_settings=auth_settings,
1956
+ async_req=params.get('async_req'),
1957
+ _return_http_data_only=params.get('_return_http_data_only'),
1958
+ _preload_content=params.get('_preload_content', True),
1959
+ _request_timeout=params.get('_request_timeout'),
1960
+ collection_formats=collection_formats)
1961
+
1744
1962
  def jobs_service_get_job_logs(self, project_id: 'str', id: 'str', **kwargs) -> 'V1JobLogsResponse': # noqa: E501
1745
1963
  """jobs_service_get_job_logs # noqa: E501
1746
1964
 
@@ -1756,6 +1974,7 @@ class JobsServiceApi(object):
1756
1974
  :param str since:
1757
1975
  :param str until:
1758
1976
  :param str deployment_id:
1977
+ :param int rank:
1759
1978
  :return: V1JobLogsResponse
1760
1979
  If the method is called asynchronously,
1761
1980
  returns the request thread.
@@ -1782,12 +2001,13 @@ class JobsServiceApi(object):
1782
2001
  :param str since:
1783
2002
  :param str until:
1784
2003
  :param str deployment_id:
2004
+ :param int rank:
1785
2005
  :return: V1JobLogsResponse
1786
2006
  If the method is called asynchronously,
1787
2007
  returns the request thread.
1788
2008
  """
1789
2009
 
1790
- all_params = ['project_id', 'id', 'cloudspace_id', 'since', 'until', 'deployment_id'] # noqa: E501
2010
+ all_params = ['project_id', 'id', 'cloudspace_id', 'since', 'until', 'deployment_id', 'rank'] # noqa: E501
1791
2011
  all_params.append('async_req')
1792
2012
  all_params.append('_return_http_data_only')
1793
2013
  all_params.append('_preload_content')
@@ -1828,6 +2048,8 @@ class JobsServiceApi(object):
1828
2048
  query_params.append(('until', params['until'])) # noqa: E501
1829
2049
  if 'deployment_id' in params:
1830
2050
  query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2051
+ if 'rank' in params:
2052
+ query_params.append(('rank', params['rank'])) # noqa: E501
1831
2053
 
1832
2054
  header_params = {}
1833
2055
 
@@ -1968,6 +2190,7 @@ class JobsServiceApi(object):
1968
2190
  :param str frequency:
1969
2191
  :param bool first_query:
1970
2192
  :param str deployment_id:
2193
+ :param int rank:
1971
2194
  :return: V1GetJobSystemMetricsResponse
1972
2195
  If the method is called asynchronously,
1973
2196
  returns the request thread.
@@ -1996,12 +2219,13 @@ class JobsServiceApi(object):
1996
2219
  :param str frequency:
1997
2220
  :param bool first_query:
1998
2221
  :param str deployment_id:
2222
+ :param int rank:
1999
2223
  :return: V1GetJobSystemMetricsResponse
2000
2224
  If the method is called asynchronously,
2001
2225
  returns the request thread.
2002
2226
  """
2003
2227
 
2004
- all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id'] # noqa: E501
2228
+ all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id', 'rank'] # noqa: E501
2005
2229
  all_params.append('async_req')
2006
2230
  all_params.append('_return_http_data_only')
2007
2231
  all_params.append('_preload_content')
@@ -2043,6 +2267,8 @@ class JobsServiceApi(object):
2043
2267
  query_params.append(('firstQuery', params['first_query'])) # noqa: E501
2044
2268
  if 'deployment_id' in params:
2045
2269
  query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2270
+ if 'rank' in params:
2271
+ query_params.append(('rank', params['rank'])) # noqa: E501
2046
2272
 
2047
2273
  header_params = {}
2048
2274
 
@@ -2501,6 +2727,7 @@ class JobsServiceApi(object):
2501
2727
  :param str project_id: (required)
2502
2728
  :param str cloudspace_id:
2503
2729
  :param list[str] user_ids:
2730
+ :param bool standalone:
2504
2731
  :return: V1ListDeploymentsResponse
2505
2732
  If the method is called asynchronously,
2506
2733
  returns the request thread.
@@ -2524,12 +2751,13 @@ class JobsServiceApi(object):
2524
2751
  :param str project_id: (required)
2525
2752
  :param str cloudspace_id:
2526
2753
  :param list[str] user_ids:
2754
+ :param bool standalone:
2527
2755
  :return: V1ListDeploymentsResponse
2528
2756
  If the method is called asynchronously,
2529
2757
  returns the request thread.
2530
2758
  """
2531
2759
 
2532
- all_params = ['project_id', 'cloudspace_id', 'user_ids'] # noqa: E501
2760
+ all_params = ['project_id', 'cloudspace_id', 'user_ids', 'standalone'] # noqa: E501
2533
2761
  all_params.append('async_req')
2534
2762
  all_params.append('_return_http_data_only')
2535
2763
  all_params.append('_preload_content')
@@ -2561,6 +2789,8 @@ class JobsServiceApi(object):
2561
2789
  if 'user_ids' in params:
2562
2790
  query_params.append(('userIds', params['user_ids'])) # noqa: E501
2563
2791
  collection_formats['userIds'] = 'multi' # noqa: E501
2792
+ if 'standalone' in params:
2793
+ query_params.append(('standalone', params['standalone'])) # noqa: E501
2564
2794
 
2565
2795
  header_params = {}
2566
2796
 
@@ -2836,6 +3066,8 @@ class JobsServiceApi(object):
2836
3066
  :param async_req bool
2837
3067
  :param str project_id: (required)
2838
3068
  :param str cloudspace_id:
3069
+ :param str user_id:
3070
+ :param bool standalone:
2839
3071
  :return: V1ListMultiMachineJobsResponse
2840
3072
  If the method is called asynchronously,
2841
3073
  returns the request thread.
@@ -2858,12 +3090,14 @@ class JobsServiceApi(object):
2858
3090
  :param async_req bool
2859
3091
  :param str project_id: (required)
2860
3092
  :param str cloudspace_id:
3093
+ :param str user_id:
3094
+ :param bool standalone:
2861
3095
  :return: V1ListMultiMachineJobsResponse
2862
3096
  If the method is called asynchronously,
2863
3097
  returns the request thread.
2864
3098
  """
2865
3099
 
2866
- all_params = ['project_id', 'cloudspace_id'] # noqa: E501
3100
+ all_params = ['project_id', 'cloudspace_id', 'user_id', 'standalone'] # noqa: E501
2867
3101
  all_params.append('async_req')
2868
3102
  all_params.append('_return_http_data_only')
2869
3103
  all_params.append('_preload_content')
@@ -2892,6 +3126,10 @@ class JobsServiceApi(object):
2892
3126
  query_params = []
2893
3127
  if 'cloudspace_id' in params:
2894
3128
  query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
3129
+ if 'user_id' in params:
3130
+ query_params.append(('userId', params['user_id'])) # noqa: E501
3131
+ if 'standalone' in params:
3132
+ query_params.append(('standalone', params['standalone'])) # noqa: E501
2895
3133
 
2896
3134
  header_params = {}
2897
3135
 
@@ -3842,6 +4080,119 @@ class JobsServiceApi(object):
3842
4080
  _request_timeout=params.get('_request_timeout'),
3843
4081
  collection_formats=collection_formats)
3844
4082
 
4083
+ def jobs_service_update_job_visibility(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateJobVisibilityResponse': # noqa: E501
4084
+ """UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
4085
+
4086
+ This method makes a synchronous HTTP request by default. To make an
4087
+ asynchronous HTTP request, please pass async_req=True
4088
+ >>> thread = api.jobs_service_update_job_visibility(body, project_id, id, async_req=True)
4089
+ >>> result = thread.get()
4090
+
4091
+ :param async_req bool
4092
+ :param IdVisibilityBody1 body: (required)
4093
+ :param str project_id: (required)
4094
+ :param str id: (required)
4095
+ :return: V1UpdateJobVisibilityResponse
4096
+ If the method is called asynchronously,
4097
+ returns the request thread.
4098
+ """
4099
+ kwargs['_return_http_data_only'] = True
4100
+ if kwargs.get('async_req'):
4101
+ return self.jobs_service_update_job_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
4102
+ else:
4103
+ (data) = self.jobs_service_update_job_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
4104
+ return data
4105
+
4106
+ def jobs_service_update_job_visibility_with_http_info(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateJobVisibilityResponse': # noqa: E501
4107
+ """UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
4108
+
4109
+ This method makes a synchronous HTTP request by default. To make an
4110
+ asynchronous HTTP request, please pass async_req=True
4111
+ >>> thread = api.jobs_service_update_job_visibility_with_http_info(body, project_id, id, async_req=True)
4112
+ >>> result = thread.get()
4113
+
4114
+ :param async_req bool
4115
+ :param IdVisibilityBody1 body: (required)
4116
+ :param str project_id: (required)
4117
+ :param str id: (required)
4118
+ :return: V1UpdateJobVisibilityResponse
4119
+ If the method is called asynchronously,
4120
+ returns the request thread.
4121
+ """
4122
+
4123
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
4124
+ all_params.append('async_req')
4125
+ all_params.append('_return_http_data_only')
4126
+ all_params.append('_preload_content')
4127
+ all_params.append('_request_timeout')
4128
+
4129
+ params = locals()
4130
+ for key, val in six.iteritems(params['kwargs']):
4131
+ if key not in all_params:
4132
+ raise TypeError(
4133
+ "Got an unexpected keyword argument '%s'"
4134
+ " to method jobs_service_update_job_visibility" % key
4135
+ )
4136
+ params[key] = val
4137
+ del params['kwargs']
4138
+ # verify the required parameter 'body' is set
4139
+ if ('body' not in params or
4140
+ params['body'] is None):
4141
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_job_visibility`") # noqa: E501
4142
+ # verify the required parameter 'project_id' is set
4143
+ if ('project_id' not in params or
4144
+ params['project_id'] is None):
4145
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_job_visibility`") # noqa: E501
4146
+ # verify the required parameter 'id' is set
4147
+ if ('id' not in params or
4148
+ params['id'] is None):
4149
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_job_visibility`") # noqa: E501
4150
+
4151
+ collection_formats = {}
4152
+
4153
+ path_params = {}
4154
+ if 'project_id' in params:
4155
+ path_params['projectId'] = params['project_id'] # noqa: E501
4156
+ if 'id' in params:
4157
+ path_params['id'] = params['id'] # noqa: E501
4158
+
4159
+ query_params = []
4160
+
4161
+ header_params = {}
4162
+
4163
+ form_params = []
4164
+ local_var_files = {}
4165
+
4166
+ body_params = None
4167
+ if 'body' in params:
4168
+ body_params = params['body']
4169
+ # HTTP header `Accept`
4170
+ header_params['Accept'] = self.api_client.select_header_accept(
4171
+ ['application/json']) # noqa: E501
4172
+
4173
+ # HTTP header `Content-Type`
4174
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4175
+ ['application/json']) # noqa: E501
4176
+
4177
+ # Authentication setting
4178
+ auth_settings = [] # noqa: E501
4179
+
4180
+ return self.api_client.call_api(
4181
+ '/v1/projects/{projectId}/jobs/{id}/visibility', 'PUT',
4182
+ path_params,
4183
+ query_params,
4184
+ header_params,
4185
+ body=body_params,
4186
+ post_params=form_params,
4187
+ files=local_var_files,
4188
+ response_type='V1UpdateJobVisibilityResponse', # noqa: E501
4189
+ auth_settings=auth_settings,
4190
+ async_req=params.get('async_req'),
4191
+ _return_http_data_only=params.get('_return_http_data_only'),
4192
+ _preload_content=params.get('_preload_content', True),
4193
+ _request_timeout=params.get('_request_timeout'),
4194
+ collection_formats=collection_formats)
4195
+
3845
4196
  def jobs_service_update_multi_machine_job(self, body: 'MultimachinejobsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
3846
4197
  """jobs_service_update_multi_machine_job # noqa: E501
3847
4198
 
@@ -1534,7 +1534,7 @@ class LitLoggerServiceApi(object):
1534
1534
  _request_timeout=params.get('_request_timeout'),
1535
1535
  collection_formats=collection_formats)
1536
1536
 
1537
- def lit_logger_service_update_metrics_stream_visibility(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1537
+ def lit_logger_service_update_metrics_stream_visibility(self, body: 'IdVisibilityBody2', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1538
1538
  """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1539
1539
 
1540
1540
  This method makes a synchronous HTTP request by default. To make an
@@ -1543,7 +1543,7 @@ class LitLoggerServiceApi(object):
1543
1543
  >>> result = thread.get()
1544
1544
 
1545
1545
  :param async_req bool
1546
- :param IdVisibilityBody1 body: (required)
1546
+ :param IdVisibilityBody2 body: (required)
1547
1547
  :param str project_id: (required)
1548
1548
  :param str id: (required)
1549
1549
  :return: V1UpdateMetricsStreamVisibilityResponse
@@ -1557,7 +1557,7 @@ class LitLoggerServiceApi(object):
1557
1557
  (data) = self.lit_logger_service_update_metrics_stream_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1558
1558
  return data
1559
1559
 
1560
- def lit_logger_service_update_metrics_stream_visibility_with_http_info(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1560
+ def lit_logger_service_update_metrics_stream_visibility_with_http_info(self, body: 'IdVisibilityBody2', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1561
1561
  """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1562
1562
 
1563
1563
  This method makes a synchronous HTTP request by default. To make an
@@ -1566,7 +1566,7 @@ class LitLoggerServiceApi(object):
1566
1566
  >>> result = thread.get()
1567
1567
 
1568
1568
  :param async_req bool
1569
- :param IdVisibilityBody1 body: (required)
1569
+ :param IdVisibilityBody2 body: (required)
1570
1570
  :param str project_id: (required)
1571
1571
  :param str id: (required)
1572
1572
  :return: V1UpdateMetricsStreamVisibilityResponse
@@ -259,6 +259,8 @@ class LitRegistryServiceApi(object):
259
259
 
260
260
  :param async_req bool
261
261
  :param str project_id: (required)
262
+ :param bool latest_only:
263
+ :param str filter_for_repo: Use this to filter for a single repository. Useful when selecting a subset of the same data from various context.
262
264
  :return: V1LitRegistryProject
263
265
  If the method is called asynchronously,
264
266
  returns the request thread.
@@ -280,12 +282,14 @@ class LitRegistryServiceApi(object):
280
282
 
281
283
  :param async_req bool
282
284
  :param str project_id: (required)
285
+ :param bool latest_only:
286
+ :param str filter_for_repo: Use this to filter for a single repository. Useful when selecting a subset of the same data from various context.
283
287
  :return: V1LitRegistryProject
284
288
  If the method is called asynchronously,
285
289
  returns the request thread.
286
290
  """
287
291
 
288
- all_params = ['project_id'] # noqa: E501
292
+ all_params = ['project_id', 'latest_only', 'filter_for_repo'] # noqa: E501
289
293
  all_params.append('async_req')
290
294
  all_params.append('_return_http_data_only')
291
295
  all_params.append('_preload_content')
@@ -312,6 +316,10 @@ class LitRegistryServiceApi(object):
312
316
  path_params['projectId'] = params['project_id'] # noqa: E501
313
317
 
314
318
  query_params = []
319
+ if 'latest_only' in params:
320
+ query_params.append(('latestOnly', params['latest_only'])) # noqa: E501
321
+ if 'filter_for_repo' in params:
322
+ query_params.append(('filterForRepo', params['filter_for_repo'])) # noqa: E501
315
323
 
316
324
  header_params = {}
317
325
 
@@ -462,6 +470,7 @@ class LitRegistryServiceApi(object):
462
470
  :param async_req bool
463
471
  :param str project_id: (required)
464
472
  :param str lit_repo_name: (required)
473
+ :param bool latest_only:
465
474
  :return: V1LitRepository
466
475
  If the method is called asynchronously,
467
476
  returns the request thread.
@@ -484,12 +493,13 @@ class LitRegistryServiceApi(object):
484
493
  :param async_req bool
485
494
  :param str project_id: (required)
486
495
  :param str lit_repo_name: (required)
496
+ :param bool latest_only:
487
497
  :return: V1LitRepository
488
498
  If the method is called asynchronously,
489
499
  returns the request thread.
490
500
  """
491
501
 
492
- all_params = ['project_id', 'lit_repo_name'] # noqa: E501
502
+ all_params = ['project_id', 'lit_repo_name', 'latest_only'] # noqa: E501
493
503
  all_params.append('async_req')
494
504
  all_params.append('_return_http_data_only')
495
505
  all_params.append('_preload_content')
@@ -522,6 +532,8 @@ class LitRegistryServiceApi(object):
522
532
  path_params['litRepoName'] = params['lit_repo_name'] # noqa: E501
523
533
 
524
534
  query_params = []
535
+ if 'latest_only' in params:
536
+ query_params.append(('latestOnly', params['latest_only'])) # noqa: E501
525
537
 
526
538
  header_params = {}
527
539