lightning-sdk 2026.1.22__py3-none-any.whl → 2026.1.30__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 (61) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/studio_api.py +38 -39
  3. lightning_sdk/api/teamspace_api.py +189 -72
  4. lightning_sdk/api/utils.py +69 -1
  5. lightning_sdk/cli/cp/__init__.py +14 -11
  6. lightning_sdk/cli/cp/teamspace_uploads.py +95 -0
  7. lightning_sdk/cli/legacy/download.py +29 -98
  8. lightning_sdk/cli/legacy/upload.py +24 -31
  9. lightning_sdk/cli/studio/cp.py +8 -5
  10. lightning_sdk/cli/studio/ls.py +1 -1
  11. lightning_sdk/cli/studio/rm.py +1 -1
  12. lightning_sdk/cli/utils/{studio_filesystem.py → filesystem.py} +49 -6
  13. lightning_sdk/exceptions.py +27 -0
  14. lightning_sdk/lightning_cloud/openapi/__init__.py +17 -12
  15. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  16. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
  17. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +286 -468
  18. lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +579 -0
  19. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
  20. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
  21. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  22. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
  23. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  24. lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -12
  25. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → cluster_service_get_cluster_capacity_reservation_body.py} +6 -6
  26. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → container_registry_config_ecr.py} +49 -23
  27. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
  28. lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
  29. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
  30. lightning_sdk/lightning_cloud/openapi/models/jobs_service_duplicate_deployment_body.py +175 -0
  31. lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
  36. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
  37. lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_container_registry_scopes.py} +39 -39
  38. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_create_container_registry_response.py} +6 -6
  39. lightning_sdk/lightning_cloud/openapi/models/v1_delete_org_cluster_capacity_reservation_response.py +97 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → v1_get_cluster_capacity_reservation_response.py} +23 -23
  43. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +1 -27
  45. lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
  46. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → v1_mithril_direct_v1.py} +51 -51
  47. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
  48. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_update_container_registry_response.py +97 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -105
  51. lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
  52. lightning_sdk/teamspace.py +28 -7
  53. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/METADATA +1 -1
  54. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/RECORD +59 -53
  55. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
  56. lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +0 -201
  57. /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
  58. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/LICENSE +0 -0
  59. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/WHEEL +0 -0
  60. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/entry_points.txt +0 -0
  61. {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,579 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ from __future__ import absolute_import
21
+
22
+ import re # noqa: F401
23
+ from typing import TYPE_CHECKING, Any
24
+
25
+ # python 2 and python 3 compatibility library
26
+ import six
27
+
28
+ from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
29
+
30
+ if TYPE_CHECKING:
31
+ from datetime import datetime
32
+ from lightning_sdk.lightning_cloud.openapi.models import *
33
+
34
+ class ContainerRegistryServiceApi(object):
35
+ """NOTE: This class is auto generated by the swagger code generator program.
36
+
37
+ Do not edit the class manually.
38
+ Ref: https://github.com/swagger-api/swagger-codegen
39
+ """
40
+
41
+ def __init__(self, api_client=None):
42
+ if api_client is None:
43
+ api_client = ApiClient()
44
+ self.api_client = api_client
45
+
46
+ def container_registry_service_create_container_registry(self, body: 'ContainerRegistryServiceCreateContainerRegistryBody', cluster_id: 'str', **kwargs) -> 'V1CreateContainerRegistryResponse': # noqa: E501
47
+ """container_registry_service_create_container_registry # 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.container_registry_service_create_container_registry(body, cluster_id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param ContainerRegistryServiceCreateContainerRegistryBody body: (required)
56
+ :param str cluster_id: (required)
57
+ :return: V1CreateContainerRegistryResponse
58
+ If the method is called asynchronously,
59
+ returns the request thread.
60
+ """
61
+ kwargs['_return_http_data_only'] = True
62
+ if kwargs.get('async_req'):
63
+ return self.container_registry_service_create_container_registry_with_http_info(body, cluster_id, **kwargs) # noqa: E501
64
+ else:
65
+ (data) = self.container_registry_service_create_container_registry_with_http_info(body, cluster_id, **kwargs) # noqa: E501
66
+ return data
67
+
68
+ def container_registry_service_create_container_registry_with_http_info(self, body: 'ContainerRegistryServiceCreateContainerRegistryBody', cluster_id: 'str', **kwargs) -> 'V1CreateContainerRegistryResponse': # noqa: E501
69
+ """container_registry_service_create_container_registry # noqa: E501
70
+
71
+ This method makes a synchronous HTTP request by default. To make an
72
+ asynchronous HTTP request, please pass async_req=True
73
+ >>> thread = api.container_registry_service_create_container_registry_with_http_info(body, cluster_id, async_req=True)
74
+ >>> result = thread.get()
75
+
76
+ :param async_req bool
77
+ :param ContainerRegistryServiceCreateContainerRegistryBody body: (required)
78
+ :param str cluster_id: (required)
79
+ :return: V1CreateContainerRegistryResponse
80
+ If the method is called asynchronously,
81
+ returns the request thread.
82
+ """
83
+
84
+ all_params = ['body', 'cluster_id'] # noqa: E501
85
+ all_params.append('async_req')
86
+ all_params.append('_return_http_data_only')
87
+ all_params.append('_preload_content')
88
+ all_params.append('_request_timeout')
89
+
90
+ params = locals()
91
+ for key, val in six.iteritems(params['kwargs']):
92
+ if key not in all_params:
93
+ raise TypeError(
94
+ "Got an unexpected keyword argument '%s'"
95
+ " to method container_registry_service_create_container_registry" % key
96
+ )
97
+ params[key] = val
98
+ del params['kwargs']
99
+ # verify the required parameter 'body' is set
100
+ if ('body' not in params or
101
+ params['body'] is None):
102
+ raise ValueError("Missing the required parameter `body` when calling `container_registry_service_create_container_registry`") # noqa: E501
103
+ # verify the required parameter 'cluster_id' is set
104
+ if ('cluster_id' not in params or
105
+ params['cluster_id'] is None):
106
+ raise ValueError("Missing the required parameter `cluster_id` when calling `container_registry_service_create_container_registry`") # noqa: E501
107
+
108
+ collection_formats = {}
109
+
110
+ path_params = {}
111
+ if 'cluster_id' in params:
112
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
113
+
114
+ query_params = []
115
+
116
+ header_params = {}
117
+
118
+ form_params = []
119
+ local_var_files = {}
120
+
121
+ body_params = None
122
+ if 'body' in params:
123
+ body_params = params['body']
124
+ # HTTP header `Accept`
125
+ header_params['Accept'] = self.api_client.select_header_accept(
126
+ ['application/json']) # noqa: E501
127
+
128
+ # HTTP header `Content-Type`
129
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
130
+ ['application/json']) # noqa: E501
131
+
132
+ # Authentication setting
133
+ auth_settings = [] # noqa: E501
134
+
135
+ return self.api_client.call_api(
136
+ '/v1/core/clusters/{clusterId}/container-registries', 'POST',
137
+ path_params,
138
+ query_params,
139
+ header_params,
140
+ body=body_params,
141
+ post_params=form_params,
142
+ files=local_var_files,
143
+ response_type='V1CreateContainerRegistryResponse', # noqa: E501
144
+ auth_settings=auth_settings,
145
+ async_req=params.get('async_req'),
146
+ _return_http_data_only=params.get('_return_http_data_only'),
147
+ _preload_content=params.get('_preload_content', True),
148
+ _request_timeout=params.get('_request_timeout'),
149
+ collection_formats=collection_formats)
150
+
151
+ def container_registry_service_delete_container_registry(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteContainerRegistryResponse': # noqa: E501
152
+ """container_registry_service_delete_container_registry # 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.container_registry_service_delete_container_registry(cluster_id, id, async_req=True)
157
+ >>> result = thread.get()
158
+
159
+ :param async_req bool
160
+ :param str cluster_id: (required)
161
+ :param str id: (required)
162
+ :param str org_id:
163
+ :return: V1DeleteContainerRegistryResponse
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+ kwargs['_return_http_data_only'] = True
168
+ if kwargs.get('async_req'):
169
+ return self.container_registry_service_delete_container_registry_with_http_info(cluster_id, id, **kwargs) # noqa: E501
170
+ else:
171
+ (data) = self.container_registry_service_delete_container_registry_with_http_info(cluster_id, id, **kwargs) # noqa: E501
172
+ return data
173
+
174
+ def container_registry_service_delete_container_registry_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteContainerRegistryResponse': # noqa: E501
175
+ """container_registry_service_delete_container_registry # noqa: E501
176
+
177
+ This method makes a synchronous HTTP request by default. To make an
178
+ asynchronous HTTP request, please pass async_req=True
179
+ >>> thread = api.container_registry_service_delete_container_registry_with_http_info(cluster_id, id, async_req=True)
180
+ >>> result = thread.get()
181
+
182
+ :param async_req bool
183
+ :param str cluster_id: (required)
184
+ :param str id: (required)
185
+ :param str org_id:
186
+ :return: V1DeleteContainerRegistryResponse
187
+ If the method is called asynchronously,
188
+ returns the request thread.
189
+ """
190
+
191
+ all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
192
+ all_params.append('async_req')
193
+ all_params.append('_return_http_data_only')
194
+ all_params.append('_preload_content')
195
+ all_params.append('_request_timeout')
196
+
197
+ params = locals()
198
+ for key, val in six.iteritems(params['kwargs']):
199
+ if key not in all_params:
200
+ raise TypeError(
201
+ "Got an unexpected keyword argument '%s'"
202
+ " to method container_registry_service_delete_container_registry" % key
203
+ )
204
+ params[key] = val
205
+ del params['kwargs']
206
+ # verify the required parameter 'cluster_id' is set
207
+ if ('cluster_id' not in params or
208
+ params['cluster_id'] is None):
209
+ raise ValueError("Missing the required parameter `cluster_id` when calling `container_registry_service_delete_container_registry`") # noqa: E501
210
+ # verify the required parameter 'id' is set
211
+ if ('id' not in params or
212
+ params['id'] is None):
213
+ raise ValueError("Missing the required parameter `id` when calling `container_registry_service_delete_container_registry`") # noqa: E501
214
+
215
+ collection_formats = {}
216
+
217
+ path_params = {}
218
+ if 'cluster_id' in params:
219
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
220
+ if 'id' in params:
221
+ path_params['id'] = params['id'] # noqa: E501
222
+
223
+ query_params = []
224
+ if 'org_id' in params:
225
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
226
+
227
+ header_params = {}
228
+
229
+ form_params = []
230
+ local_var_files = {}
231
+
232
+ body_params = None
233
+ # HTTP header `Accept`
234
+ header_params['Accept'] = self.api_client.select_header_accept(
235
+ ['application/json']) # noqa: E501
236
+
237
+ # Authentication setting
238
+ auth_settings = [] # noqa: E501
239
+
240
+ return self.api_client.call_api(
241
+ '/v1/core/clusters/{clusterId}/container-registries/{id}', 'DELETE',
242
+ path_params,
243
+ query_params,
244
+ header_params,
245
+ body=body_params,
246
+ post_params=form_params,
247
+ files=local_var_files,
248
+ response_type='V1DeleteContainerRegistryResponse', # noqa: E501
249
+ auth_settings=auth_settings,
250
+ async_req=params.get('async_req'),
251
+ _return_http_data_only=params.get('_return_http_data_only'),
252
+ _preload_content=params.get('_preload_content', True),
253
+ _request_timeout=params.get('_request_timeout'),
254
+ collection_formats=collection_formats)
255
+
256
+ def container_registry_service_list_container_registries(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
257
+ """container_registry_service_list_container_registries # noqa: E501
258
+
259
+ This method makes a synchronous HTTP request by default. To make an
260
+ asynchronous HTTP request, please pass async_req=True
261
+ >>> thread = api.container_registry_service_list_container_registries(cluster_id, async_req=True)
262
+ >>> result = thread.get()
263
+
264
+ :param async_req bool
265
+ :param str cluster_id: (required)
266
+ :param str org_id:
267
+ :return: V1ListContainerRegistriesResponse
268
+ If the method is called asynchronously,
269
+ returns the request thread.
270
+ """
271
+ kwargs['_return_http_data_only'] = True
272
+ if kwargs.get('async_req'):
273
+ return self.container_registry_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
274
+ else:
275
+ (data) = self.container_registry_service_list_container_registries_with_http_info(cluster_id, **kwargs) # noqa: E501
276
+ return data
277
+
278
+ def container_registry_service_list_container_registries_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListContainerRegistriesResponse': # noqa: E501
279
+ """container_registry_service_list_container_registries # noqa: E501
280
+
281
+ This method makes a synchronous HTTP request by default. To make an
282
+ asynchronous HTTP request, please pass async_req=True
283
+ >>> thread = api.container_registry_service_list_container_registries_with_http_info(cluster_id, async_req=True)
284
+ >>> result = thread.get()
285
+
286
+ :param async_req bool
287
+ :param str cluster_id: (required)
288
+ :param str org_id:
289
+ :return: V1ListContainerRegistriesResponse
290
+ If the method is called asynchronously,
291
+ returns the request thread.
292
+ """
293
+
294
+ all_params = ['cluster_id', 'org_id'] # noqa: E501
295
+ all_params.append('async_req')
296
+ all_params.append('_return_http_data_only')
297
+ all_params.append('_preload_content')
298
+ all_params.append('_request_timeout')
299
+
300
+ params = locals()
301
+ for key, val in six.iteritems(params['kwargs']):
302
+ if key not in all_params:
303
+ raise TypeError(
304
+ "Got an unexpected keyword argument '%s'"
305
+ " to method container_registry_service_list_container_registries" % key
306
+ )
307
+ params[key] = val
308
+ del params['kwargs']
309
+ # verify the required parameter 'cluster_id' is set
310
+ if ('cluster_id' not in params or
311
+ params['cluster_id'] is None):
312
+ raise ValueError("Missing the required parameter `cluster_id` when calling `container_registry_service_list_container_registries`") # noqa: E501
313
+
314
+ collection_formats = {}
315
+
316
+ path_params = {}
317
+ if 'cluster_id' in params:
318
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
319
+
320
+ query_params = []
321
+ if 'org_id' in params:
322
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
323
+
324
+ header_params = {}
325
+
326
+ form_params = []
327
+ local_var_files = {}
328
+
329
+ body_params = None
330
+ # HTTP header `Accept`
331
+ header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json']) # noqa: E501
333
+
334
+ # Authentication setting
335
+ auth_settings = [] # noqa: E501
336
+
337
+ return self.api_client.call_api(
338
+ '/v1/core/clusters/{clusterId}/container-registries', 'GET',
339
+ path_params,
340
+ query_params,
341
+ header_params,
342
+ body=body_params,
343
+ post_params=form_params,
344
+ files=local_var_files,
345
+ response_type='V1ListContainerRegistriesResponse', # noqa: E501
346
+ auth_settings=auth_settings,
347
+ async_req=params.get('async_req'),
348
+ _return_http_data_only=params.get('_return_http_data_only'),
349
+ _preload_content=params.get('_preload_content', True),
350
+ _request_timeout=params.get('_request_timeout'),
351
+ collection_formats=collection_formats)
352
+
353
+ def container_registry_service_refresh_container_registry_credentials(self, body: 'ContainerRegistryServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
354
+ """container_registry_service_refresh_container_registry_credentials # noqa: E501
355
+
356
+ This method makes a synchronous HTTP request by default. To make an
357
+ asynchronous HTTP request, please pass async_req=True
358
+ >>> thread = api.container_registry_service_refresh_container_registry_credentials(body, cluster_id, async_req=True)
359
+ >>> result = thread.get()
360
+
361
+ :param async_req bool
362
+ :param ContainerRegistryServiceRefreshContainerRegistryCredentialsBody body: (required)
363
+ :param str cluster_id: (required)
364
+ :return: V1RefreshContainerRegistryCredentialsResponse
365
+ If the method is called asynchronously,
366
+ returns the request thread.
367
+ """
368
+ kwargs['_return_http_data_only'] = True
369
+ if kwargs.get('async_req'):
370
+ return self.container_registry_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
371
+ else:
372
+ (data) = self.container_registry_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, **kwargs) # noqa: E501
373
+ return data
374
+
375
+ def container_registry_service_refresh_container_registry_credentials_with_http_info(self, body: 'ContainerRegistryServiceRefreshContainerRegistryCredentialsBody', cluster_id: 'str', **kwargs) -> 'V1RefreshContainerRegistryCredentialsResponse': # noqa: E501
376
+ """container_registry_service_refresh_container_registry_credentials # noqa: E501
377
+
378
+ This method makes a synchronous HTTP request by default. To make an
379
+ asynchronous HTTP request, please pass async_req=True
380
+ >>> thread = api.container_registry_service_refresh_container_registry_credentials_with_http_info(body, cluster_id, async_req=True)
381
+ >>> result = thread.get()
382
+
383
+ :param async_req bool
384
+ :param ContainerRegistryServiceRefreshContainerRegistryCredentialsBody body: (required)
385
+ :param str cluster_id: (required)
386
+ :return: V1RefreshContainerRegistryCredentialsResponse
387
+ If the method is called asynchronously,
388
+ returns the request thread.
389
+ """
390
+
391
+ all_params = ['body', 'cluster_id'] # noqa: E501
392
+ all_params.append('async_req')
393
+ all_params.append('_return_http_data_only')
394
+ all_params.append('_preload_content')
395
+ all_params.append('_request_timeout')
396
+
397
+ params = locals()
398
+ for key, val in six.iteritems(params['kwargs']):
399
+ if key not in all_params:
400
+ raise TypeError(
401
+ "Got an unexpected keyword argument '%s'"
402
+ " to method container_registry_service_refresh_container_registry_credentials" % key
403
+ )
404
+ params[key] = val
405
+ del params['kwargs']
406
+ # verify the required parameter 'body' is set
407
+ if ('body' not in params or
408
+ params['body'] is None):
409
+ raise ValueError("Missing the required parameter `body` when calling `container_registry_service_refresh_container_registry_credentials`") # noqa: E501
410
+ # verify the required parameter 'cluster_id' is set
411
+ if ('cluster_id' not in params or
412
+ params['cluster_id'] is None):
413
+ raise ValueError("Missing the required parameter `cluster_id` when calling `container_registry_service_refresh_container_registry_credentials`") # noqa: E501
414
+
415
+ collection_formats = {}
416
+
417
+ path_params = {}
418
+ if 'cluster_id' in params:
419
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
420
+
421
+ query_params = []
422
+
423
+ header_params = {}
424
+
425
+ form_params = []
426
+ local_var_files = {}
427
+
428
+ body_params = None
429
+ if 'body' in params:
430
+ body_params = params['body']
431
+ # HTTP header `Accept`
432
+ header_params['Accept'] = self.api_client.select_header_accept(
433
+ ['application/json']) # noqa: E501
434
+
435
+ # HTTP header `Content-Type`
436
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
437
+ ['application/json']) # noqa: E501
438
+
439
+ # Authentication setting
440
+ auth_settings = [] # noqa: E501
441
+
442
+ return self.api_client.call_api(
443
+ '/v1/core/clusters/{clusterId}/container-registries/refresh-credentials', 'POST',
444
+ path_params,
445
+ query_params,
446
+ header_params,
447
+ body=body_params,
448
+ post_params=form_params,
449
+ files=local_var_files,
450
+ response_type='V1RefreshContainerRegistryCredentialsResponse', # noqa: E501
451
+ auth_settings=auth_settings,
452
+ async_req=params.get('async_req'),
453
+ _return_http_data_only=params.get('_return_http_data_only'),
454
+ _preload_content=params.get('_preload_content', True),
455
+ _request_timeout=params.get('_request_timeout'),
456
+ collection_formats=collection_formats)
457
+
458
+ def container_registry_service_update_container_registry(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1UpdateContainerRegistryResponse': # noqa: E501
459
+ """container_registry_service_update_container_registry # noqa: E501
460
+
461
+ This method makes a synchronous HTTP request by default. To make an
462
+ asynchronous HTTP request, please pass async_req=True
463
+ >>> thread = api.container_registry_service_update_container_registry(cluster_id, id, async_req=True)
464
+ >>> result = thread.get()
465
+
466
+ :param async_req bool
467
+ :param str cluster_id: (required)
468
+ :param str id: (required)
469
+ :param str org_id:
470
+ :param str url:
471
+ :param str provider:
472
+ :param list[str] scopes_namespaces: for k8s org clusters
473
+ :param list[str] scopes_project_ids: for byoc cloud accounts
474
+ :return: V1UpdateContainerRegistryResponse
475
+ If the method is called asynchronously,
476
+ returns the request thread.
477
+ """
478
+ kwargs['_return_http_data_only'] = True
479
+ if kwargs.get('async_req'):
480
+ return self.container_registry_service_update_container_registry_with_http_info(cluster_id, id, **kwargs) # noqa: E501
481
+ else:
482
+ (data) = self.container_registry_service_update_container_registry_with_http_info(cluster_id, id, **kwargs) # noqa: E501
483
+ return data
484
+
485
+ def container_registry_service_update_container_registry_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1UpdateContainerRegistryResponse': # noqa: E501
486
+ """container_registry_service_update_container_registry # noqa: E501
487
+
488
+ This method makes a synchronous HTTP request by default. To make an
489
+ asynchronous HTTP request, please pass async_req=True
490
+ >>> thread = api.container_registry_service_update_container_registry_with_http_info(cluster_id, id, async_req=True)
491
+ >>> result = thread.get()
492
+
493
+ :param async_req bool
494
+ :param str cluster_id: (required)
495
+ :param str id: (required)
496
+ :param str org_id:
497
+ :param str url:
498
+ :param str provider:
499
+ :param list[str] scopes_namespaces: for k8s org clusters
500
+ :param list[str] scopes_project_ids: for byoc cloud accounts
501
+ :return: V1UpdateContainerRegistryResponse
502
+ If the method is called asynchronously,
503
+ returns the request thread.
504
+ """
505
+
506
+ all_params = ['cluster_id', 'id', 'org_id', 'url', 'provider', 'scopes_namespaces', 'scopes_project_ids'] # noqa: E501
507
+ all_params.append('async_req')
508
+ all_params.append('_return_http_data_only')
509
+ all_params.append('_preload_content')
510
+ all_params.append('_request_timeout')
511
+
512
+ params = locals()
513
+ for key, val in six.iteritems(params['kwargs']):
514
+ if key not in all_params:
515
+ raise TypeError(
516
+ "Got an unexpected keyword argument '%s'"
517
+ " to method container_registry_service_update_container_registry" % key
518
+ )
519
+ params[key] = val
520
+ del params['kwargs']
521
+ # verify the required parameter 'cluster_id' is set
522
+ if ('cluster_id' not in params or
523
+ params['cluster_id'] is None):
524
+ raise ValueError("Missing the required parameter `cluster_id` when calling `container_registry_service_update_container_registry`") # noqa: E501
525
+ # verify the required parameter 'id' is set
526
+ if ('id' not in params or
527
+ params['id'] is None):
528
+ raise ValueError("Missing the required parameter `id` when calling `container_registry_service_update_container_registry`") # noqa: E501
529
+
530
+ collection_formats = {}
531
+
532
+ path_params = {}
533
+ if 'cluster_id' in params:
534
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
535
+ if 'id' in params:
536
+ path_params['id'] = params['id'] # noqa: E501
537
+
538
+ query_params = []
539
+ if 'org_id' in params:
540
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
541
+ if 'url' in params:
542
+ query_params.append(('url', params['url'])) # noqa: E501
543
+ if 'provider' in params:
544
+ query_params.append(('provider', params['provider'])) # noqa: E501
545
+ if 'scopes_namespaces' in params:
546
+ query_params.append(('scopes.namespaces', params['scopes_namespaces'])) # noqa: E501
547
+ collection_formats['scopes.namespaces'] = 'multi' # noqa: E501
548
+ if 'scopes_project_ids' in params:
549
+ query_params.append(('scopes.projectIds', params['scopes_project_ids'])) # noqa: E501
550
+ collection_formats['scopes.projectIds'] = 'multi' # noqa: E501
551
+
552
+ header_params = {}
553
+
554
+ form_params = []
555
+ local_var_files = {}
556
+
557
+ body_params = None
558
+ # HTTP header `Accept`
559
+ header_params['Accept'] = self.api_client.select_header_accept(
560
+ ['application/json']) # noqa: E501
561
+
562
+ # Authentication setting
563
+ auth_settings = [] # noqa: E501
564
+
565
+ return self.api_client.call_api(
566
+ '/v1/core/clusters/{clusterId}/container-registries/{id}', 'PATCH',
567
+ path_params,
568
+ query_params,
569
+ header_params,
570
+ body=body_params,
571
+ post_params=form_params,
572
+ files=local_var_files,
573
+ response_type='V1UpdateContainerRegistryResponse', # noqa: E501
574
+ auth_settings=auth_settings,
575
+ async_req=params.get('async_req'),
576
+ _return_http_data_only=params.get('_return_http_data_only'),
577
+ _preload_content=params.get('_preload_content', True),
578
+ _request_timeout=params.get('_request_timeout'),
579
+ collection_formats=collection_formats)
@@ -367,6 +367,7 @@ class DataConnectionServiceApi(object):
367
367
  :param str cluster_id:
368
368
  :param bool local_index: if true, fetch from the local index
369
369
  :param bool include_folder_index: if true, include the folder index in the response
370
+ :param bool only_direct_children: if true, only include direct children of the prefix
370
371
  :return: V1GetArtifactsPageResponse
371
372
  If the method is called asynchronously,
372
373
  returns the request thread.
@@ -395,12 +396,13 @@ class DataConnectionServiceApi(object):
395
396
  :param str cluster_id:
396
397
  :param bool local_index: if true, fetch from the local index
397
398
  :param bool include_folder_index: if true, include the folder index in the response
399
+ :param bool only_direct_children: if true, only include direct children of the prefix
398
400
  :return: V1GetArtifactsPageResponse
399
401
  If the method is called asynchronously,
400
402
  returns the request thread.
401
403
  """
402
404
 
403
- all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index', 'include_folder_index'] # noqa: E501
405
+ all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index', 'include_folder_index', 'only_direct_children'] # noqa: E501
404
406
  all_params.append('async_req')
405
407
  all_params.append('_return_http_data_only')
406
408
  all_params.append('_preload_content')
@@ -445,6 +447,8 @@ class DataConnectionServiceApi(object):
445
447
  query_params.append(('localIndex', params['local_index'])) # noqa: E501
446
448
  if 'include_folder_index' in params:
447
449
  query_params.append(('includeFolderIndex', params['include_folder_index'])) # noqa: E501
450
+ if 'only_direct_children' in params:
451
+ query_params.append(('onlyDirectChildren', params['only_direct_children'])) # noqa: E501
448
452
 
449
453
  header_params = {}
450
454
 
@@ -463,12 +463,12 @@ class FileSystemServiceApi(object):
463
463
  _request_timeout=params.get('_request_timeout'),
464
464
  collection_formats=collection_formats)
465
465
 
466
- def file_system_service_list_filesystem_mmts(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
467
- """file_system_service_list_filesystem_mmts # noqa: E501
466
+ def file_system_service_list_filesystem_mm_ts(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
467
+ """file_system_service_list_filesystem_mm_ts # noqa: E501
468
468
 
469
469
  This method makes a synchronous HTTP request by default. To make an
470
470
  asynchronous HTTP request, please pass async_req=True
471
- >>> thread = api.file_system_service_list_filesystem_mmts(project_id, current_id, async_req=True)
471
+ >>> thread = api.file_system_service_list_filesystem_mm_ts(project_id, current_id, async_req=True)
472
472
  >>> result = thread.get()
473
473
 
474
474
  :param async_req bool
@@ -481,17 +481,17 @@ class FileSystemServiceApi(object):
481
481
  """
482
482
  kwargs['_return_http_data_only'] = True
483
483
  if kwargs.get('async_req'):
484
- return self.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
484
+ return self.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
485
485
  else:
486
- (data) = self.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
486
+ (data) = self.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
487
487
  return data
488
488
 
489
- def file_system_service_list_filesystem_mmts_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
490
- """file_system_service_list_filesystem_mmts # noqa: E501
489
+ def file_system_service_list_filesystem_mm_ts_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
490
+ """file_system_service_list_filesystem_mm_ts # noqa: E501
491
491
 
492
492
  This method makes a synchronous HTTP request by default. To make an
493
493
  asynchronous HTTP request, please pass async_req=True
494
- >>> thread = api.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, async_req=True)
494
+ >>> thread = api.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, async_req=True)
495
495
  >>> result = thread.get()
496
496
 
497
497
  :param async_req bool
@@ -514,18 +514,18 @@ class FileSystemServiceApi(object):
514
514
  if key not in all_params:
515
515
  raise TypeError(
516
516
  "Got an unexpected keyword argument '%s'"
517
- " to method file_system_service_list_filesystem_mmts" % key
517
+ " to method file_system_service_list_filesystem_mm_ts" % key
518
518
  )
519
519
  params[key] = val
520
520
  del params['kwargs']
521
521
  # verify the required parameter 'project_id' is set
522
522
  if ('project_id' not in params or
523
523
  params['project_id'] is None):
524
- raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_mmts`") # noqa: E501
524
+ raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_mm_ts`") # noqa: E501
525
525
  # verify the required parameter 'current_id' is set
526
526
  if ('current_id' not in params or
527
527
  params['current_id'] is None):
528
- raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_mmts`") # noqa: E501
528
+ raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_mm_ts`") # noqa: E501
529
529
 
530
530
  collection_formats = {}
531
531