lightning-sdk 0.2.21rc1__py3-none-any.whl → 0.2.23__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 (70) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/license_api.py +2 -2
  3. lightning_sdk/api/llm_api.py +69 -27
  4. lightning_sdk/api/pipeline_api.py +49 -9
  5. lightning_sdk/api/studio_api.py +2 -0
  6. lightning_sdk/cli/configure.py +34 -27
  7. lightning_sdk/cli/connect.py +2 -2
  8. lightning_sdk/cli/download.py +38 -2
  9. lightning_sdk/cli/entrypoint.py +15 -13
  10. lightning_sdk/cli/start.py +5 -2
  11. lightning_sdk/lightning_cloud/openapi/__init__.py +9 -0
  12. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
  13. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +98 -5
  14. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +5 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -0
  18. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +29 -3
  19. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
  20. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +827 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
  45. lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -183
  53. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
  54. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
  55. lightning_sdk/llm/llm.py +6 -1
  56. lightning_sdk/pipeline/__init__.py +12 -2
  57. lightning_sdk/pipeline/pipeline.py +59 -17
  58. lightning_sdk/pipeline/printer.py +121 -0
  59. lightning_sdk/pipeline/schedule.py +8 -0
  60. lightning_sdk/pipeline/{types.py → steps.py} +77 -59
  61. lightning_sdk/pipeline/utils.py +39 -17
  62. lightning_sdk/sandbox.py +157 -0
  63. lightning_sdk/services/license.py +12 -6
  64. lightning_sdk/studio.py +7 -1
  65. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/METADATA +1 -1
  66. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/RECORD +70 -58
  67. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/LICENSE +0 -0
  68. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/WHEEL +0 -0
  69. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/entry_points.txt +0 -0
  70. {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/top_level.txt +0 -0
@@ -4785,6 +4785,99 @@ class CloudSpaceServiceApi(object):
4785
4785
  _request_timeout=params.get('_request_timeout'),
4786
4786
  collection_formats=collection_formats)
4787
4787
 
4788
+ def cloud_space_service_get_public_cloud_space_by_id(self, id: 'str', **kwargs) -> 'V1LitePublishedCloudSpaceResponse': # noqa: E501
4789
+ """cloud_space_service_get_public_cloud_space_by_id # noqa: E501
4790
+
4791
+ This method makes a synchronous HTTP request by default. To make an
4792
+ asynchronous HTTP request, please pass async_req=True
4793
+ >>> thread = api.cloud_space_service_get_public_cloud_space_by_id(id, async_req=True)
4794
+ >>> result = thread.get()
4795
+
4796
+ :param async_req bool
4797
+ :param str id: (required)
4798
+ :return: V1LitePublishedCloudSpaceResponse
4799
+ If the method is called asynchronously,
4800
+ returns the request thread.
4801
+ """
4802
+ kwargs['_return_http_data_only'] = True
4803
+ if kwargs.get('async_req'):
4804
+ return self.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, **kwargs) # noqa: E501
4805
+ else:
4806
+ (data) = self.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, **kwargs) # noqa: E501
4807
+ return data
4808
+
4809
+ def cloud_space_service_get_public_cloud_space_by_id_with_http_info(self, id: 'str', **kwargs) -> 'V1LitePublishedCloudSpaceResponse': # noqa: E501
4810
+ """cloud_space_service_get_public_cloud_space_by_id # noqa: E501
4811
+
4812
+ This method makes a synchronous HTTP request by default. To make an
4813
+ asynchronous HTTP request, please pass async_req=True
4814
+ >>> thread = api.cloud_space_service_get_public_cloud_space_by_id_with_http_info(id, async_req=True)
4815
+ >>> result = thread.get()
4816
+
4817
+ :param async_req bool
4818
+ :param str id: (required)
4819
+ :return: V1LitePublishedCloudSpaceResponse
4820
+ If the method is called asynchronously,
4821
+ returns the request thread.
4822
+ """
4823
+
4824
+ all_params = ['id'] # noqa: E501
4825
+ all_params.append('async_req')
4826
+ all_params.append('_return_http_data_only')
4827
+ all_params.append('_preload_content')
4828
+ all_params.append('_request_timeout')
4829
+
4830
+ params = locals()
4831
+ for key, val in six.iteritems(params['kwargs']):
4832
+ if key not in all_params:
4833
+ raise TypeError(
4834
+ "Got an unexpected keyword argument '%s'"
4835
+ " to method cloud_space_service_get_public_cloud_space_by_id" % key
4836
+ )
4837
+ params[key] = val
4838
+ del params['kwargs']
4839
+ # verify the required parameter 'id' is set
4840
+ if ('id' not in params or
4841
+ params['id'] is None):
4842
+ raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_get_public_cloud_space_by_id`") # noqa: E501
4843
+
4844
+ collection_formats = {}
4845
+
4846
+ path_params = {}
4847
+ if 'id' in params:
4848
+ path_params['id'] = params['id'] # noqa: E501
4849
+
4850
+ query_params = []
4851
+
4852
+ header_params = {}
4853
+
4854
+ form_params = []
4855
+ local_var_files = {}
4856
+
4857
+ body_params = None
4858
+ # HTTP header `Accept`
4859
+ header_params['Accept'] = self.api_client.select_header_accept(
4860
+ ['application/json']) # noqa: E501
4861
+
4862
+ # Authentication setting
4863
+ auth_settings = [] # noqa: E501
4864
+
4865
+ return self.api_client.call_api(
4866
+ '/v1/cloudspaces/public/{id}', 'GET',
4867
+ path_params,
4868
+ query_params,
4869
+ header_params,
4870
+ body=body_params,
4871
+ post_params=form_params,
4872
+ files=local_var_files,
4873
+ response_type='V1LitePublishedCloudSpaceResponse', # noqa: E501
4874
+ auth_settings=auth_settings,
4875
+ async_req=params.get('async_req'),
4876
+ _return_http_data_only=params.get('_return_http_data_only'),
4877
+ _preload_content=params.get('_preload_content', True),
4878
+ _request_timeout=params.get('_request_timeout'),
4879
+ collection_formats=collection_formats)
4880
+
4788
4881
  def cloud_space_service_install_plugin(self, project_id: 'str', id: 'str', plugin_id: 'str', **kwargs) -> 'V1Plugin': # noqa: E501
4789
4882
  """cloud_space_service_install_plugin # noqa: E501
4790
4883
 
@@ -8979,3 +9072,116 @@ class CloudSpaceServiceApi(object):
8979
9072
  _preload_content=params.get('_preload_content', True),
8980
9073
  _request_timeout=params.get('_request_timeout'),
8981
9074
  collection_formats=collection_formats)
9075
+
9076
+ def cloud_space_service_update_cloud_space_visibility(self, body: 'CloudspaceIdVisibilityBody', project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1UpdateCloudSpaceVisibilityResponse': # noqa: E501
9077
+ """UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
9078
+
9079
+ This method makes a synchronous HTTP request by default. To make an
9080
+ asynchronous HTTP request, please pass async_req=True
9081
+ >>> thread = api.cloud_space_service_update_cloud_space_visibility(body, project_id, cloudspace_id, async_req=True)
9082
+ >>> result = thread.get()
9083
+
9084
+ :param async_req bool
9085
+ :param CloudspaceIdVisibilityBody body: (required)
9086
+ :param str project_id: (required)
9087
+ :param str cloudspace_id: (required)
9088
+ :return: V1UpdateCloudSpaceVisibilityResponse
9089
+ If the method is called asynchronously,
9090
+ returns the request thread.
9091
+ """
9092
+ kwargs['_return_http_data_only'] = True
9093
+ if kwargs.get('async_req'):
9094
+ return self.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, **kwargs) # noqa: E501
9095
+ else:
9096
+ (data) = self.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, **kwargs) # noqa: E501
9097
+ return data
9098
+
9099
+ def cloud_space_service_update_cloud_space_visibility_with_http_info(self, body: 'CloudspaceIdVisibilityBody', project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1UpdateCloudSpaceVisibilityResponse': # noqa: E501
9100
+ """UpdateJobVisibility updates the jobs visibility, mainly switch between public and private # noqa: E501
9101
+
9102
+ This method makes a synchronous HTTP request by default. To make an
9103
+ asynchronous HTTP request, please pass async_req=True
9104
+ >>> thread = api.cloud_space_service_update_cloud_space_visibility_with_http_info(body, project_id, cloudspace_id, async_req=True)
9105
+ >>> result = thread.get()
9106
+
9107
+ :param async_req bool
9108
+ :param CloudspaceIdVisibilityBody body: (required)
9109
+ :param str project_id: (required)
9110
+ :param str cloudspace_id: (required)
9111
+ :return: V1UpdateCloudSpaceVisibilityResponse
9112
+ If the method is called asynchronously,
9113
+ returns the request thread.
9114
+ """
9115
+
9116
+ all_params = ['body', 'project_id', 'cloudspace_id'] # noqa: E501
9117
+ all_params.append('async_req')
9118
+ all_params.append('_return_http_data_only')
9119
+ all_params.append('_preload_content')
9120
+ all_params.append('_request_timeout')
9121
+
9122
+ params = locals()
9123
+ for key, val in six.iteritems(params['kwargs']):
9124
+ if key not in all_params:
9125
+ raise TypeError(
9126
+ "Got an unexpected keyword argument '%s'"
9127
+ " to method cloud_space_service_update_cloud_space_visibility" % key
9128
+ )
9129
+ params[key] = val
9130
+ del params['kwargs']
9131
+ # verify the required parameter 'body' is set
9132
+ if ('body' not in params or
9133
+ params['body'] is None):
9134
+ raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
9135
+ # verify the required parameter 'project_id' is set
9136
+ if ('project_id' not in params or
9137
+ params['project_id'] is None):
9138
+ raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
9139
+ # verify the required parameter 'cloudspace_id' is set
9140
+ if ('cloudspace_id' not in params or
9141
+ params['cloudspace_id'] is None):
9142
+ raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_update_cloud_space_visibility`") # noqa: E501
9143
+
9144
+ collection_formats = {}
9145
+
9146
+ path_params = {}
9147
+ if 'project_id' in params:
9148
+ path_params['projectId'] = params['project_id'] # noqa: E501
9149
+ if 'cloudspace_id' in params:
9150
+ path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
9151
+
9152
+ query_params = []
9153
+
9154
+ header_params = {}
9155
+
9156
+ form_params = []
9157
+ local_var_files = {}
9158
+
9159
+ body_params = None
9160
+ if 'body' in params:
9161
+ body_params = params['body']
9162
+ # HTTP header `Accept`
9163
+ header_params['Accept'] = self.api_client.select_header_accept(
9164
+ ['application/json']) # noqa: E501
9165
+
9166
+ # HTTP header `Content-Type`
9167
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
9168
+ ['application/json']) # noqa: E501
9169
+
9170
+ # Authentication setting
9171
+ auth_settings = [] # noqa: E501
9172
+
9173
+ return self.api_client.call_api(
9174
+ '/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/visibility', 'PUT',
9175
+ path_params,
9176
+ query_params,
9177
+ header_params,
9178
+ body=body_params,
9179
+ post_params=form_params,
9180
+ files=local_var_files,
9181
+ response_type='V1UpdateCloudSpaceVisibilityResponse', # noqa: E501
9182
+ auth_settings=auth_settings,
9183
+ async_req=params.get('async_req'),
9184
+ _return_http_data_only=params.get('_return_http_data_only'),
9185
+ _preload_content=params.get('_preload_content', True),
9186
+ _request_timeout=params.get('_request_timeout'),
9187
+ collection_formats=collection_formats)
@@ -43,6 +43,103 @@ class ClusterServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
+ def cluster_service_check_cluster_name_availability(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
47
+ """cluster_service_check_cluster_name_availability # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.cluster_service_check_cluster_name_availability(body, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param V1CheckClusterNameAvailabilityRequest body: (required)
56
+ :return: V1CheckClusterNameAvailabilityResponse
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ if kwargs.get('async_req'):
62
+ return self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
63
+ else:
64
+ (data) = self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
65
+ return data
66
+
67
+ def cluster_service_check_cluster_name_availability_with_http_info(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
68
+ """cluster_service_check_cluster_name_availability # noqa: E501
69
+
70
+ This method makes a synchronous HTTP request by default. To make an
71
+ asynchronous HTTP request, please pass async_req=True
72
+ >>> thread = api.cluster_service_check_cluster_name_availability_with_http_info(body, async_req=True)
73
+ >>> result = thread.get()
74
+
75
+ :param async_req bool
76
+ :param V1CheckClusterNameAvailabilityRequest body: (required)
77
+ :return: V1CheckClusterNameAvailabilityResponse
78
+ If the method is called asynchronously,
79
+ returns the request thread.
80
+ """
81
+
82
+ all_params = ['body'] # noqa: E501
83
+ all_params.append('async_req')
84
+ all_params.append('_return_http_data_only')
85
+ all_params.append('_preload_content')
86
+ all_params.append('_request_timeout')
87
+
88
+ params = locals()
89
+ for key, val in six.iteritems(params['kwargs']):
90
+ if key not in all_params:
91
+ raise TypeError(
92
+ "Got an unexpected keyword argument '%s'"
93
+ " to method cluster_service_check_cluster_name_availability" % key
94
+ )
95
+ params[key] = val
96
+ del params['kwargs']
97
+ # verify the required parameter 'body' is set
98
+ if ('body' not in params or
99
+ params['body'] is None):
100
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_check_cluster_name_availability`") # noqa: E501
101
+
102
+ collection_formats = {}
103
+
104
+ path_params = {}
105
+
106
+ query_params = []
107
+
108
+ header_params = {}
109
+
110
+ form_params = []
111
+ local_var_files = {}
112
+
113
+ body_params = None
114
+ if 'body' in params:
115
+ body_params = params['body']
116
+ # HTTP header `Accept`
117
+ header_params['Accept'] = self.api_client.select_header_accept(
118
+ ['application/json']) # noqa: E501
119
+
120
+ # HTTP header `Content-Type`
121
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
122
+ ['application/json']) # noqa: E501
123
+
124
+ # Authentication setting
125
+ auth_settings = [] # noqa: E501
126
+
127
+ return self.api_client.call_api(
128
+ '/v1/core/cluster-name-available', 'POST',
129
+ path_params,
130
+ query_params,
131
+ header_params,
132
+ body=body_params,
133
+ post_params=form_params,
134
+ files=local_var_files,
135
+ response_type='V1CheckClusterNameAvailabilityResponse', # noqa: E501
136
+ auth_settings=auth_settings,
137
+ async_req=params.get('async_req'),
138
+ _return_http_data_only=params.get('_return_http_data_only'),
139
+ _preload_content=params.get('_preload_content', True),
140
+ _request_timeout=params.get('_request_timeout'),
141
+ collection_formats=collection_formats)
142
+
46
143
  def cluster_service_create_cluster(self, body: 'V1CreateClusterRequest', **kwargs) -> 'V1CreateClusterResponse': # noqa: E501
47
144
  """TODO: delete all non-project related endpoints # noqa: E501
48
145
 
@@ -2726,7 +2823,6 @@ class ClusterServiceApi(object):
2726
2823
  >>> result = thread.get()
2727
2824
 
2728
2825
  :param async_req bool
2729
- :param bool include_pricing:
2730
2826
  :param str cloud_provider:
2731
2827
  :param str project_id:
2732
2828
  :return: V1ListDefaultClusterAcceleratorsResponse
@@ -2749,7 +2845,6 @@ class ClusterServiceApi(object):
2749
2845
  >>> result = thread.get()
2750
2846
 
2751
2847
  :param async_req bool
2752
- :param bool include_pricing:
2753
2848
  :param str cloud_provider:
2754
2849
  :param str project_id:
2755
2850
  :return: V1ListDefaultClusterAcceleratorsResponse
@@ -2757,7 +2852,7 @@ class ClusterServiceApi(object):
2757
2852
  returns the request thread.
2758
2853
  """
2759
2854
 
2760
- all_params = ['include_pricing', 'cloud_provider', 'project_id'] # noqa: E501
2855
+ all_params = ['cloud_provider', 'project_id'] # noqa: E501
2761
2856
  all_params.append('async_req')
2762
2857
  all_params.append('_return_http_data_only')
2763
2858
  all_params.append('_preload_content')
@@ -2778,8 +2873,6 @@ class ClusterServiceApi(object):
2778
2873
  path_params = {}
2779
2874
 
2780
2875
  query_params = []
2781
- if 'include_pricing' in params:
2782
- query_params.append(('includePricing', params['include_pricing'])) # noqa: E501
2783
2876
  if 'cloud_provider' in params:
2784
2877
  query_params.append(('cloudProvider', params['cloud_provider'])) # noqa: E501
2785
2878
  if 'project_id' in params:
@@ -148,6 +148,119 @@ class LitRegistryServiceApi(object):
148
148
  _request_timeout=params.get('_request_timeout'),
149
149
  collection_formats=collection_formats)
150
150
 
151
+ def lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest(self, project_id: 'str', lit_repo_name: 'str', full_hash_digest: 'str', **kwargs) -> 'V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse': # noqa: E501
152
+ """lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest # noqa: E501
153
+
154
+ This method makes a synchronous HTTP request by default. To make an
155
+ asynchronous HTTP request, please pass async_req=True
156
+ >>> thread = api.lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest(project_id, lit_repo_name, full_hash_digest, async_req=True)
157
+ >>> result = thread.get()
158
+
159
+ :param async_req bool
160
+ :param str project_id: (required)
161
+ :param str lit_repo_name: (required)
162
+ :param str full_hash_digest: (required)
163
+ :param str cluster_id:
164
+ :return: V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse
165
+ If the method is called asynchronously,
166
+ returns the request thread.
167
+ """
168
+ kwargs['_return_http_data_only'] = True
169
+ if kwargs.get('async_req'):
170
+ return self.lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest_with_http_info(project_id, lit_repo_name, full_hash_digest, **kwargs) # noqa: E501
171
+ else:
172
+ (data) = self.lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest_with_http_info(project_id, lit_repo_name, full_hash_digest, **kwargs) # noqa: E501
173
+ return data
174
+
175
+ def lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest_with_http_info(self, project_id: 'str', lit_repo_name: 'str', full_hash_digest: 'str', **kwargs) -> 'V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse': # noqa: E501
176
+ """lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest # noqa: E501
177
+
178
+ This method makes a synchronous HTTP request by default. To make an
179
+ asynchronous HTTP request, please pass async_req=True
180
+ >>> thread = api.lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest_with_http_info(project_id, lit_repo_name, full_hash_digest, async_req=True)
181
+ >>> result = thread.get()
182
+
183
+ :param async_req bool
184
+ :param str project_id: (required)
185
+ :param str lit_repo_name: (required)
186
+ :param str full_hash_digest: (required)
187
+ :param str cluster_id:
188
+ :return: V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse
189
+ If the method is called asynchronously,
190
+ returns the request thread.
191
+ """
192
+
193
+ all_params = ['project_id', 'lit_repo_name', 'full_hash_digest', 'cluster_id'] # noqa: E501
194
+ all_params.append('async_req')
195
+ all_params.append('_return_http_data_only')
196
+ all_params.append('_preload_content')
197
+ all_params.append('_request_timeout')
198
+
199
+ params = locals()
200
+ for key, val in six.iteritems(params['kwargs']):
201
+ if key not in all_params:
202
+ raise TypeError(
203
+ "Got an unexpected keyword argument '%s'"
204
+ " to method lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest" % key
205
+ )
206
+ params[key] = val
207
+ del params['kwargs']
208
+ # verify the required parameter 'project_id' is set
209
+ if ('project_id' not in params or
210
+ params['project_id'] is None):
211
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest`") # noqa: E501
212
+ # verify the required parameter 'lit_repo_name' is set
213
+ if ('lit_repo_name' not in params or
214
+ params['lit_repo_name'] is None):
215
+ raise ValueError("Missing the required parameter `lit_repo_name` when calling `lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest`") # noqa: E501
216
+ # verify the required parameter 'full_hash_digest' is set
217
+ if ('full_hash_digest' not in params or
218
+ params['full_hash_digest'] is None):
219
+ raise ValueError("Missing the required parameter `full_hash_digest` when calling `lit_registry_service_delete_lit_registry_repository_image_artifact_version_by_digest`") # noqa: E501
220
+
221
+ collection_formats = {}
222
+
223
+ path_params = {}
224
+ if 'project_id' in params:
225
+ path_params['projectId'] = params['project_id'] # noqa: E501
226
+ if 'lit_repo_name' in params:
227
+ path_params['litRepoName'] = params['lit_repo_name'] # noqa: E501
228
+ if 'full_hash_digest' in params:
229
+ path_params['fullHashDigest'] = params['full_hash_digest'] # noqa: E501
230
+
231
+ query_params = []
232
+ if 'cluster_id' in params:
233
+ query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
234
+
235
+ header_params = {}
236
+
237
+ form_params = []
238
+ local_var_files = {}
239
+
240
+ body_params = None
241
+ # HTTP header `Accept`
242
+ header_params['Accept'] = self.api_client.select_header_accept(
243
+ ['application/json']) # noqa: E501
244
+
245
+ # Authentication setting
246
+ auth_settings = [] # noqa: E501
247
+
248
+ return self.api_client.call_api(
249
+ '/v1/projects/{projectId}/lit-registry/{litRepoName}/artifacts/{fullHashDigest}', 'DELETE',
250
+ path_params,
251
+ query_params,
252
+ header_params,
253
+ body=body_params,
254
+ post_params=form_params,
255
+ files=local_var_files,
256
+ response_type='V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse', # noqa: E501
257
+ auth_settings=auth_settings,
258
+ async_req=params.get('async_req'),
259
+ _return_http_data_only=params.get('_return_http_data_only'),
260
+ _preload_content=params.get('_preload_content', True),
261
+ _request_timeout=params.get('_request_timeout'),
262
+ collection_formats=collection_formats)
263
+
151
264
  def lit_registry_service_delete_lit_repository(self, project_id: 'str', lit_repo_name: 'str', **kwargs) -> 'V1DeleteLitRepositoryResponse': # noqa: E501
152
265
  """lit_registry_service_delete_lit_repository # noqa: E501
153
266
 
@@ -43,6 +43,119 @@ class PipelinesServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
+ def pipelines_service_create_child_pipeline(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1Pipeline': # noqa: E501
47
+ """pipelines_service_create_child_pipeline # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.pipelines_service_create_child_pipeline(body, project_id, id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param object body: (required)
56
+ :param str project_id: (required)
57
+ :param str id: (required)
58
+ :return: V1Pipeline
59
+ If the method is called asynchronously,
60
+ returns the request thread.
61
+ """
62
+ kwargs['_return_http_data_only'] = True
63
+ if kwargs.get('async_req'):
64
+ return self.pipelines_service_create_child_pipeline_with_http_info(body, project_id, id, **kwargs) # noqa: E501
65
+ else:
66
+ (data) = self.pipelines_service_create_child_pipeline_with_http_info(body, project_id, id, **kwargs) # noqa: E501
67
+ return data
68
+
69
+ def pipelines_service_create_child_pipeline_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1Pipeline': # noqa: E501
70
+ """pipelines_service_create_child_pipeline # noqa: E501
71
+
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.pipelines_service_create_child_pipeline_with_http_info(body, project_id, id, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool
78
+ :param object body: (required)
79
+ :param str project_id: (required)
80
+ :param str id: (required)
81
+ :return: V1Pipeline
82
+ If the method is called asynchronously,
83
+ returns the request thread.
84
+ """
85
+
86
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
87
+ all_params.append('async_req')
88
+ all_params.append('_return_http_data_only')
89
+ all_params.append('_preload_content')
90
+ all_params.append('_request_timeout')
91
+
92
+ params = locals()
93
+ for key, val in six.iteritems(params['kwargs']):
94
+ if key not in all_params:
95
+ raise TypeError(
96
+ "Got an unexpected keyword argument '%s'"
97
+ " to method pipelines_service_create_child_pipeline" % key
98
+ )
99
+ params[key] = val
100
+ del params['kwargs']
101
+ # verify the required parameter 'body' is set
102
+ if ('body' not in params or
103
+ params['body'] is None):
104
+ raise ValueError("Missing the required parameter `body` when calling `pipelines_service_create_child_pipeline`") # noqa: E501
105
+ # verify the required parameter 'project_id' is set
106
+ if ('project_id' not in params or
107
+ params['project_id'] is None):
108
+ raise ValueError("Missing the required parameter `project_id` when calling `pipelines_service_create_child_pipeline`") # noqa: E501
109
+ # verify the required parameter 'id' is set
110
+ if ('id' not in params or
111
+ params['id'] is None):
112
+ raise ValueError("Missing the required parameter `id` when calling `pipelines_service_create_child_pipeline`") # noqa: E501
113
+
114
+ collection_formats = {}
115
+
116
+ path_params = {}
117
+ if 'project_id' in params:
118
+ path_params['projectId'] = params['project_id'] # noqa: E501
119
+ if 'id' in params:
120
+ path_params['id'] = params['id'] # noqa: E501
121
+
122
+ query_params = []
123
+
124
+ header_params = {}
125
+
126
+ form_params = []
127
+ local_var_files = {}
128
+
129
+ body_params = None
130
+ if 'body' in params:
131
+ body_params = params['body']
132
+ # HTTP header `Accept`
133
+ header_params['Accept'] = self.api_client.select_header_accept(
134
+ ['application/json']) # noqa: E501
135
+
136
+ # HTTP header `Content-Type`
137
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
138
+ ['application/json']) # noqa: E501
139
+
140
+ # Authentication setting
141
+ auth_settings = [] # noqa: E501
142
+
143
+ return self.api_client.call_api(
144
+ '/v1/projects/{projectId}/pipelines/{id}', 'POST',
145
+ path_params,
146
+ query_params,
147
+ header_params,
148
+ body=body_params,
149
+ post_params=form_params,
150
+ files=local_var_files,
151
+ response_type='V1Pipeline', # noqa: E501
152
+ auth_settings=auth_settings,
153
+ async_req=params.get('async_req'),
154
+ _return_http_data_only=params.get('_return_http_data_only'),
155
+ _preload_content=params.get('_preload_content', True),
156
+ _request_timeout=params.get('_request_timeout'),
157
+ collection_formats=collection_formats)
158
+
46
159
  def pipelines_service_create_pipeline(self, body: 'ProjectIdPipelinesBody', project_id: 'str', **kwargs) -> 'V1Pipeline': # noqa: E501
47
160
  """pipelines_service_create_pipeline # noqa: E501
48
161
 
@@ -462,6 +575,7 @@ class PipelinesServiceApi(object):
462
575
  :param async_req bool
463
576
  :param str project_id: (required)
464
577
  :param str parent_pipeline_id:
578
+ :param str original_pipeline_id:
465
579
  :param str page_token:
466
580
  :param int limit:
467
581
  :param str state:
@@ -488,6 +602,7 @@ class PipelinesServiceApi(object):
488
602
  :param async_req bool
489
603
  :param str project_id: (required)
490
604
  :param str parent_pipeline_id:
605
+ :param str original_pipeline_id:
491
606
  :param str page_token:
492
607
  :param int limit:
493
608
  :param str state:
@@ -497,7 +612,7 @@ class PipelinesServiceApi(object):
497
612
  returns the request thread.
498
613
  """
499
614
 
500
- all_params = ['project_id', 'parent_pipeline_id', 'page_token', 'limit', 'state', 'standalone'] # noqa: E501
615
+ all_params = ['project_id', 'parent_pipeline_id', 'original_pipeline_id', 'page_token', 'limit', 'state', 'standalone'] # noqa: E501
501
616
  all_params.append('async_req')
502
617
  all_params.append('_return_http_data_only')
503
618
  all_params.append('_preload_content')
@@ -526,6 +641,8 @@ class PipelinesServiceApi(object):
526
641
  query_params = []
527
642
  if 'parent_pipeline_id' in params:
528
643
  query_params.append(('parentPipelineId', params['parent_pipeline_id'])) # noqa: E501
644
+ if 'original_pipeline_id' in params:
645
+ query_params.append(('originalPipelineId', params['original_pipeline_id'])) # noqa: E501
529
646
  if 'page_token' in params:
530
647
  query_params.append(('pageToken', params['page_token'])) # noqa: E501
531
648
  if 'limit' in params:
@@ -364,6 +364,7 @@ class SchedulesServiceApi(object):
364
364
  :param str page_token:
365
365
  :param int limit:
366
366
  :param str state:
367
+ :param str parent_resource_id:
367
368
  :return: V1ListSchedulesResponse
368
369
  If the method is called asynchronously,
369
370
  returns the request thread.
@@ -389,12 +390,13 @@ class SchedulesServiceApi(object):
389
390
  :param str page_token:
390
391
  :param int limit:
391
392
  :param str state:
393
+ :param str parent_resource_id:
392
394
  :return: V1ListSchedulesResponse
393
395
  If the method is called asynchronously,
394
396
  returns the request thread.
395
397
  """
396
398
 
397
- all_params = ['project_id', 'resource_id', 'page_token', 'limit', 'state'] # noqa: E501
399
+ all_params = ['project_id', 'resource_id', 'page_token', 'limit', 'state', 'parent_resource_id'] # noqa: E501
398
400
  all_params.append('async_req')
399
401
  all_params.append('_return_http_data_only')
400
402
  all_params.append('_preload_content')
@@ -429,6 +431,8 @@ class SchedulesServiceApi(object):
429
431
  query_params.append(('limit', params['limit'])) # noqa: E501
430
432
  if 'state' in params:
431
433
  query_params.append(('state', params['state'])) # noqa: E501
434
+ if 'parent_resource_id' in params:
435
+ query_params.append(('parentResourceId', params['parent_resource_id'])) # noqa: E501
432
436
 
433
437
  header_params = {}
434
438