lightning-sdk 0.2.12__py3-none-any.whl → 0.2.13__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +17 -5
- lightning_sdk/api/studio_api.py +17 -0
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/serve.py +149 -39
- lightning_sdk/deployment/deployment.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +14 -5
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/llm/llm.py +92 -30
- lightning_sdk/plugin.py +19 -0
- lightning_sdk/studio.py +33 -0
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/RECORD +34 -28
- /lightning_sdk/cli/{docker.py → docker_cli.py} +0 -0
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.12.dist-info → lightning_sdk-0.2.13.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,497 @@
|
|
|
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 GitCredentialsServiceApi(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 git_credentials_service_create_git_credentials(self, body: 'V1CreateGitCredentialsRequest', **kwargs) -> 'V1GitCredentials': # noqa: E501
|
|
47
|
+
"""git_credentials_service_create_git_credentials # 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.git_credentials_service_create_git_credentials(body, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param V1CreateGitCredentialsRequest body: (required)
|
|
56
|
+
:return: V1GitCredentials
|
|
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.git_credentials_service_create_git_credentials_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
+
else:
|
|
64
|
+
(data) = self.git_credentials_service_create_git_credentials_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
+
return data
|
|
66
|
+
|
|
67
|
+
def git_credentials_service_create_git_credentials_with_http_info(self, body: 'V1CreateGitCredentialsRequest', **kwargs) -> 'V1GitCredentials': # noqa: E501
|
|
68
|
+
"""git_credentials_service_create_git_credentials # 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.git_credentials_service_create_git_credentials_with_http_info(body, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool
|
|
76
|
+
:param V1CreateGitCredentialsRequest body: (required)
|
|
77
|
+
:return: V1GitCredentials
|
|
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 git_credentials_service_create_git_credentials" % 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 `git_credentials_service_create_git_credentials`") # 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/git-credentials', '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='V1GitCredentials', # 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
|
+
|
|
143
|
+
def git_credentials_service_delete_all_user_git_credentials(self, **kwargs) -> 'V1DeleteGitCredentialsResponse': # noqa: E501
|
|
144
|
+
"""git_credentials_service_delete_all_user_git_credentials # noqa: E501
|
|
145
|
+
|
|
146
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
147
|
+
asynchronous HTTP request, please pass async_req=True
|
|
148
|
+
>>> thread = api.git_credentials_service_delete_all_user_git_credentials(async_req=True)
|
|
149
|
+
>>> result = thread.get()
|
|
150
|
+
|
|
151
|
+
:param async_req bool
|
|
152
|
+
:return: V1DeleteGitCredentialsResponse
|
|
153
|
+
If the method is called asynchronously,
|
|
154
|
+
returns the request thread.
|
|
155
|
+
"""
|
|
156
|
+
kwargs['_return_http_data_only'] = True
|
|
157
|
+
if kwargs.get('async_req'):
|
|
158
|
+
return self.git_credentials_service_delete_all_user_git_credentials_with_http_info(**kwargs) # noqa: E501
|
|
159
|
+
else:
|
|
160
|
+
(data) = self.git_credentials_service_delete_all_user_git_credentials_with_http_info(**kwargs) # noqa: E501
|
|
161
|
+
return data
|
|
162
|
+
|
|
163
|
+
def git_credentials_service_delete_all_user_git_credentials_with_http_info(self, **kwargs) -> 'V1DeleteGitCredentialsResponse': # noqa: E501
|
|
164
|
+
"""git_credentials_service_delete_all_user_git_credentials # noqa: E501
|
|
165
|
+
|
|
166
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
167
|
+
asynchronous HTTP request, please pass async_req=True
|
|
168
|
+
>>> thread = api.git_credentials_service_delete_all_user_git_credentials_with_http_info(async_req=True)
|
|
169
|
+
>>> result = thread.get()
|
|
170
|
+
|
|
171
|
+
:param async_req bool
|
|
172
|
+
:return: V1DeleteGitCredentialsResponse
|
|
173
|
+
If the method is called asynchronously,
|
|
174
|
+
returns the request thread.
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
all_params = [] # noqa: E501
|
|
178
|
+
all_params.append('async_req')
|
|
179
|
+
all_params.append('_return_http_data_only')
|
|
180
|
+
all_params.append('_preload_content')
|
|
181
|
+
all_params.append('_request_timeout')
|
|
182
|
+
|
|
183
|
+
params = locals()
|
|
184
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
185
|
+
if key not in all_params:
|
|
186
|
+
raise TypeError(
|
|
187
|
+
"Got an unexpected keyword argument '%s'"
|
|
188
|
+
" to method git_credentials_service_delete_all_user_git_credentials" % key
|
|
189
|
+
)
|
|
190
|
+
params[key] = val
|
|
191
|
+
del params['kwargs']
|
|
192
|
+
|
|
193
|
+
collection_formats = {}
|
|
194
|
+
|
|
195
|
+
path_params = {}
|
|
196
|
+
|
|
197
|
+
query_params = []
|
|
198
|
+
|
|
199
|
+
header_params = {}
|
|
200
|
+
|
|
201
|
+
form_params = []
|
|
202
|
+
local_var_files = {}
|
|
203
|
+
|
|
204
|
+
body_params = None
|
|
205
|
+
# HTTP header `Accept`
|
|
206
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
207
|
+
['application/json']) # noqa: E501
|
|
208
|
+
|
|
209
|
+
# Authentication setting
|
|
210
|
+
auth_settings = [] # noqa: E501
|
|
211
|
+
|
|
212
|
+
return self.api_client.call_api(
|
|
213
|
+
'/v1/git-credentials', 'DELETE',
|
|
214
|
+
path_params,
|
|
215
|
+
query_params,
|
|
216
|
+
header_params,
|
|
217
|
+
body=body_params,
|
|
218
|
+
post_params=form_params,
|
|
219
|
+
files=local_var_files,
|
|
220
|
+
response_type='V1DeleteGitCredentialsResponse', # noqa: E501
|
|
221
|
+
auth_settings=auth_settings,
|
|
222
|
+
async_req=params.get('async_req'),
|
|
223
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
224
|
+
_preload_content=params.get('_preload_content', True),
|
|
225
|
+
_request_timeout=params.get('_request_timeout'),
|
|
226
|
+
collection_formats=collection_formats)
|
|
227
|
+
|
|
228
|
+
def git_credentials_service_delete_git_credentials(self, id: 'str', **kwargs) -> 'V1DeleteGitCredentialsResponse': # noqa: E501
|
|
229
|
+
"""git_credentials_service_delete_git_credentials # noqa: E501
|
|
230
|
+
|
|
231
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
232
|
+
asynchronous HTTP request, please pass async_req=True
|
|
233
|
+
>>> thread = api.git_credentials_service_delete_git_credentials(id, async_req=True)
|
|
234
|
+
>>> result = thread.get()
|
|
235
|
+
|
|
236
|
+
:param async_req bool
|
|
237
|
+
:param str id: (required)
|
|
238
|
+
:return: V1DeleteGitCredentialsResponse
|
|
239
|
+
If the method is called asynchronously,
|
|
240
|
+
returns the request thread.
|
|
241
|
+
"""
|
|
242
|
+
kwargs['_return_http_data_only'] = True
|
|
243
|
+
if kwargs.get('async_req'):
|
|
244
|
+
return self.git_credentials_service_delete_git_credentials_with_http_info(id, **kwargs) # noqa: E501
|
|
245
|
+
else:
|
|
246
|
+
(data) = self.git_credentials_service_delete_git_credentials_with_http_info(id, **kwargs) # noqa: E501
|
|
247
|
+
return data
|
|
248
|
+
|
|
249
|
+
def git_credentials_service_delete_git_credentials_with_http_info(self, id: 'str', **kwargs) -> 'V1DeleteGitCredentialsResponse': # noqa: E501
|
|
250
|
+
"""git_credentials_service_delete_git_credentials # noqa: E501
|
|
251
|
+
|
|
252
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
253
|
+
asynchronous HTTP request, please pass async_req=True
|
|
254
|
+
>>> thread = api.git_credentials_service_delete_git_credentials_with_http_info(id, async_req=True)
|
|
255
|
+
>>> result = thread.get()
|
|
256
|
+
|
|
257
|
+
:param async_req bool
|
|
258
|
+
:param str id: (required)
|
|
259
|
+
:return: V1DeleteGitCredentialsResponse
|
|
260
|
+
If the method is called asynchronously,
|
|
261
|
+
returns the request thread.
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
all_params = ['id'] # noqa: E501
|
|
265
|
+
all_params.append('async_req')
|
|
266
|
+
all_params.append('_return_http_data_only')
|
|
267
|
+
all_params.append('_preload_content')
|
|
268
|
+
all_params.append('_request_timeout')
|
|
269
|
+
|
|
270
|
+
params = locals()
|
|
271
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
272
|
+
if key not in all_params:
|
|
273
|
+
raise TypeError(
|
|
274
|
+
"Got an unexpected keyword argument '%s'"
|
|
275
|
+
" to method git_credentials_service_delete_git_credentials" % key
|
|
276
|
+
)
|
|
277
|
+
params[key] = val
|
|
278
|
+
del params['kwargs']
|
|
279
|
+
# verify the required parameter 'id' is set
|
|
280
|
+
if ('id' not in params or
|
|
281
|
+
params['id'] is None):
|
|
282
|
+
raise ValueError("Missing the required parameter `id` when calling `git_credentials_service_delete_git_credentials`") # noqa: E501
|
|
283
|
+
|
|
284
|
+
collection_formats = {}
|
|
285
|
+
|
|
286
|
+
path_params = {}
|
|
287
|
+
if 'id' in params:
|
|
288
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
289
|
+
|
|
290
|
+
query_params = []
|
|
291
|
+
|
|
292
|
+
header_params = {}
|
|
293
|
+
|
|
294
|
+
form_params = []
|
|
295
|
+
local_var_files = {}
|
|
296
|
+
|
|
297
|
+
body_params = None
|
|
298
|
+
# HTTP header `Accept`
|
|
299
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
300
|
+
['application/json']) # noqa: E501
|
|
301
|
+
|
|
302
|
+
# Authentication setting
|
|
303
|
+
auth_settings = [] # noqa: E501
|
|
304
|
+
|
|
305
|
+
return self.api_client.call_api(
|
|
306
|
+
'/v1/git-credentials/{id}', 'DELETE',
|
|
307
|
+
path_params,
|
|
308
|
+
query_params,
|
|
309
|
+
header_params,
|
|
310
|
+
body=body_params,
|
|
311
|
+
post_params=form_params,
|
|
312
|
+
files=local_var_files,
|
|
313
|
+
response_type='V1DeleteGitCredentialsResponse', # noqa: E501
|
|
314
|
+
auth_settings=auth_settings,
|
|
315
|
+
async_req=params.get('async_req'),
|
|
316
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
317
|
+
_preload_content=params.get('_preload_content', True),
|
|
318
|
+
_request_timeout=params.get('_request_timeout'),
|
|
319
|
+
collection_formats=collection_formats)
|
|
320
|
+
|
|
321
|
+
def git_credentials_service_get_git_credentials(self, id: 'str', **kwargs) -> 'V1GitCredentials': # noqa: E501
|
|
322
|
+
"""git_credentials_service_get_git_credentials # noqa: E501
|
|
323
|
+
|
|
324
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
325
|
+
asynchronous HTTP request, please pass async_req=True
|
|
326
|
+
>>> thread = api.git_credentials_service_get_git_credentials(id, async_req=True)
|
|
327
|
+
>>> result = thread.get()
|
|
328
|
+
|
|
329
|
+
:param async_req bool
|
|
330
|
+
:param str id: (required)
|
|
331
|
+
:return: V1GitCredentials
|
|
332
|
+
If the method is called asynchronously,
|
|
333
|
+
returns the request thread.
|
|
334
|
+
"""
|
|
335
|
+
kwargs['_return_http_data_only'] = True
|
|
336
|
+
if kwargs.get('async_req'):
|
|
337
|
+
return self.git_credentials_service_get_git_credentials_with_http_info(id, **kwargs) # noqa: E501
|
|
338
|
+
else:
|
|
339
|
+
(data) = self.git_credentials_service_get_git_credentials_with_http_info(id, **kwargs) # noqa: E501
|
|
340
|
+
return data
|
|
341
|
+
|
|
342
|
+
def git_credentials_service_get_git_credentials_with_http_info(self, id: 'str', **kwargs) -> 'V1GitCredentials': # noqa: E501
|
|
343
|
+
"""git_credentials_service_get_git_credentials # noqa: E501
|
|
344
|
+
|
|
345
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
346
|
+
asynchronous HTTP request, please pass async_req=True
|
|
347
|
+
>>> thread = api.git_credentials_service_get_git_credentials_with_http_info(id, async_req=True)
|
|
348
|
+
>>> result = thread.get()
|
|
349
|
+
|
|
350
|
+
:param async_req bool
|
|
351
|
+
:param str id: (required)
|
|
352
|
+
:return: V1GitCredentials
|
|
353
|
+
If the method is called asynchronously,
|
|
354
|
+
returns the request thread.
|
|
355
|
+
"""
|
|
356
|
+
|
|
357
|
+
all_params = ['id'] # noqa: E501
|
|
358
|
+
all_params.append('async_req')
|
|
359
|
+
all_params.append('_return_http_data_only')
|
|
360
|
+
all_params.append('_preload_content')
|
|
361
|
+
all_params.append('_request_timeout')
|
|
362
|
+
|
|
363
|
+
params = locals()
|
|
364
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
365
|
+
if key not in all_params:
|
|
366
|
+
raise TypeError(
|
|
367
|
+
"Got an unexpected keyword argument '%s'"
|
|
368
|
+
" to method git_credentials_service_get_git_credentials" % key
|
|
369
|
+
)
|
|
370
|
+
params[key] = val
|
|
371
|
+
del params['kwargs']
|
|
372
|
+
# verify the required parameter 'id' is set
|
|
373
|
+
if ('id' not in params or
|
|
374
|
+
params['id'] is None):
|
|
375
|
+
raise ValueError("Missing the required parameter `id` when calling `git_credentials_service_get_git_credentials`") # noqa: E501
|
|
376
|
+
|
|
377
|
+
collection_formats = {}
|
|
378
|
+
|
|
379
|
+
path_params = {}
|
|
380
|
+
if 'id' in params:
|
|
381
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
382
|
+
|
|
383
|
+
query_params = []
|
|
384
|
+
|
|
385
|
+
header_params = {}
|
|
386
|
+
|
|
387
|
+
form_params = []
|
|
388
|
+
local_var_files = {}
|
|
389
|
+
|
|
390
|
+
body_params = None
|
|
391
|
+
# HTTP header `Accept`
|
|
392
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
393
|
+
['application/json']) # noqa: E501
|
|
394
|
+
|
|
395
|
+
# Authentication setting
|
|
396
|
+
auth_settings = [] # noqa: E501
|
|
397
|
+
|
|
398
|
+
return self.api_client.call_api(
|
|
399
|
+
'/v1/git-credentials/{id}', 'GET',
|
|
400
|
+
path_params,
|
|
401
|
+
query_params,
|
|
402
|
+
header_params,
|
|
403
|
+
body=body_params,
|
|
404
|
+
post_params=form_params,
|
|
405
|
+
files=local_var_files,
|
|
406
|
+
response_type='V1GitCredentials', # noqa: E501
|
|
407
|
+
auth_settings=auth_settings,
|
|
408
|
+
async_req=params.get('async_req'),
|
|
409
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
410
|
+
_preload_content=params.get('_preload_content', True),
|
|
411
|
+
_request_timeout=params.get('_request_timeout'),
|
|
412
|
+
collection_formats=collection_formats)
|
|
413
|
+
|
|
414
|
+
def git_credentials_service_list_git_credentials(self, **kwargs) -> 'V1ListGitCredentialsResponse': # noqa: E501
|
|
415
|
+
"""git_credentials_service_list_git_credentials # noqa: E501
|
|
416
|
+
|
|
417
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
418
|
+
asynchronous HTTP request, please pass async_req=True
|
|
419
|
+
>>> thread = api.git_credentials_service_list_git_credentials(async_req=True)
|
|
420
|
+
>>> result = thread.get()
|
|
421
|
+
|
|
422
|
+
:param async_req bool
|
|
423
|
+
:return: V1ListGitCredentialsResponse
|
|
424
|
+
If the method is called asynchronously,
|
|
425
|
+
returns the request thread.
|
|
426
|
+
"""
|
|
427
|
+
kwargs['_return_http_data_only'] = True
|
|
428
|
+
if kwargs.get('async_req'):
|
|
429
|
+
return self.git_credentials_service_list_git_credentials_with_http_info(**kwargs) # noqa: E501
|
|
430
|
+
else:
|
|
431
|
+
(data) = self.git_credentials_service_list_git_credentials_with_http_info(**kwargs) # noqa: E501
|
|
432
|
+
return data
|
|
433
|
+
|
|
434
|
+
def git_credentials_service_list_git_credentials_with_http_info(self, **kwargs) -> 'V1ListGitCredentialsResponse': # noqa: E501
|
|
435
|
+
"""git_credentials_service_list_git_credentials # noqa: E501
|
|
436
|
+
|
|
437
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
438
|
+
asynchronous HTTP request, please pass async_req=True
|
|
439
|
+
>>> thread = api.git_credentials_service_list_git_credentials_with_http_info(async_req=True)
|
|
440
|
+
>>> result = thread.get()
|
|
441
|
+
|
|
442
|
+
:param async_req bool
|
|
443
|
+
:return: V1ListGitCredentialsResponse
|
|
444
|
+
If the method is called asynchronously,
|
|
445
|
+
returns the request thread.
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
all_params = [] # noqa: E501
|
|
449
|
+
all_params.append('async_req')
|
|
450
|
+
all_params.append('_return_http_data_only')
|
|
451
|
+
all_params.append('_preload_content')
|
|
452
|
+
all_params.append('_request_timeout')
|
|
453
|
+
|
|
454
|
+
params = locals()
|
|
455
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
456
|
+
if key not in all_params:
|
|
457
|
+
raise TypeError(
|
|
458
|
+
"Got an unexpected keyword argument '%s'"
|
|
459
|
+
" to method git_credentials_service_list_git_credentials" % key
|
|
460
|
+
)
|
|
461
|
+
params[key] = val
|
|
462
|
+
del params['kwargs']
|
|
463
|
+
|
|
464
|
+
collection_formats = {}
|
|
465
|
+
|
|
466
|
+
path_params = {}
|
|
467
|
+
|
|
468
|
+
query_params = []
|
|
469
|
+
|
|
470
|
+
header_params = {}
|
|
471
|
+
|
|
472
|
+
form_params = []
|
|
473
|
+
local_var_files = {}
|
|
474
|
+
|
|
475
|
+
body_params = None
|
|
476
|
+
# HTTP header `Accept`
|
|
477
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
478
|
+
['application/json']) # noqa: E501
|
|
479
|
+
|
|
480
|
+
# Authentication setting
|
|
481
|
+
auth_settings = [] # noqa: E501
|
|
482
|
+
|
|
483
|
+
return self.api_client.call_api(
|
|
484
|
+
'/v1/git-credentials', 'GET',
|
|
485
|
+
path_params,
|
|
486
|
+
query_params,
|
|
487
|
+
header_params,
|
|
488
|
+
body=body_params,
|
|
489
|
+
post_params=form_params,
|
|
490
|
+
files=local_var_files,
|
|
491
|
+
response_type='V1ListGitCredentialsResponse', # noqa: E501
|
|
492
|
+
auth_settings=auth_settings,
|
|
493
|
+
async_req=params.get('async_req'),
|
|
494
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
495
|
+
_preload_content=params.get('_preload_content', True),
|
|
496
|
+
_request_timeout=params.get('_request_timeout'),
|
|
497
|
+
collection_formats=collection_formats)
|
|
@@ -2831,12 +2831,14 @@ class JobsServiceApi(object):
|
|
|
2831
2831
|
|
|
2832
2832
|
:param async_req bool
|
|
2833
2833
|
:param list[str] project_ids:
|
|
2834
|
-
:param str
|
|
2834
|
+
:param list[str] user_ids:
|
|
2835
2835
|
:param str org_id:
|
|
2836
2836
|
:param str state:
|
|
2837
2837
|
:param list[str] job_types:
|
|
2838
2838
|
:param datetime end_time:
|
|
2839
2839
|
:param int limit:
|
|
2840
|
+
:param str cloudspace_id:
|
|
2841
|
+
:param bool standalone: fields specific to deployments.
|
|
2840
2842
|
:return: V1ListJobResourcesResponse
|
|
2841
2843
|
If the method is called asynchronously,
|
|
2842
2844
|
returns the request thread.
|
|
@@ -2858,18 +2860,20 @@ class JobsServiceApi(object):
|
|
|
2858
2860
|
|
|
2859
2861
|
:param async_req bool
|
|
2860
2862
|
:param list[str] project_ids:
|
|
2861
|
-
:param str
|
|
2863
|
+
:param list[str] user_ids:
|
|
2862
2864
|
:param str org_id:
|
|
2863
2865
|
:param str state:
|
|
2864
2866
|
:param list[str] job_types:
|
|
2865
2867
|
:param datetime end_time:
|
|
2866
2868
|
:param int limit:
|
|
2869
|
+
:param str cloudspace_id:
|
|
2870
|
+
:param bool standalone: fields specific to deployments.
|
|
2867
2871
|
:return: V1ListJobResourcesResponse
|
|
2868
2872
|
If the method is called asynchronously,
|
|
2869
2873
|
returns the request thread.
|
|
2870
2874
|
"""
|
|
2871
2875
|
|
|
2872
|
-
all_params = ['project_ids', '
|
|
2876
|
+
all_params = ['project_ids', 'user_ids', 'org_id', 'state', 'job_types', 'end_time', 'limit', 'cloudspace_id', 'standalone'] # noqa: E501
|
|
2873
2877
|
all_params.append('async_req')
|
|
2874
2878
|
all_params.append('_return_http_data_only')
|
|
2875
2879
|
all_params.append('_preload_content')
|
|
@@ -2893,8 +2897,9 @@ class JobsServiceApi(object):
|
|
|
2893
2897
|
if 'project_ids' in params:
|
|
2894
2898
|
query_params.append(('projectIds', params['project_ids'])) # noqa: E501
|
|
2895
2899
|
collection_formats['projectIds'] = 'multi' # noqa: E501
|
|
2896
|
-
if '
|
|
2897
|
-
query_params.append(('
|
|
2900
|
+
if 'user_ids' in params:
|
|
2901
|
+
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
2902
|
+
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
2898
2903
|
if 'org_id' in params:
|
|
2899
2904
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2900
2905
|
if 'state' in params:
|
|
@@ -2906,6 +2911,10 @@ class JobsServiceApi(object):
|
|
|
2906
2911
|
query_params.append(('endTime', params['end_time'])) # noqa: E501
|
|
2907
2912
|
if 'limit' in params:
|
|
2908
2913
|
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
2914
|
+
if 'cloudspace_id' in params:
|
|
2915
|
+
query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
|
|
2916
|
+
if 'standalone' in params:
|
|
2917
|
+
query_params.append(('standalone', params['standalone'])) # noqa: E501
|
|
2909
2918
|
|
|
2910
2919
|
header_params = {}
|
|
2911
2920
|
|
|
@@ -303,6 +303,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_cluster_request impo
|
|
|
303
303
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_cluster_response import V1CreateClusterResponse
|
|
304
304
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_deployment_request import V1CreateDeploymentRequest
|
|
305
305
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_deployment_template_request import V1CreateDeploymentTemplateRequest
|
|
306
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_git_credentials_request import V1CreateGitCredentialsRequest
|
|
306
307
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_job_request import V1CreateJobRequest
|
|
307
308
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_part_upload_response import V1CreateLitDatasetMultiPartUploadResponse
|
|
308
309
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
|
|
@@ -349,6 +350,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_release_r
|
|
|
349
350
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_deployment_response import V1DeleteDeploymentResponse
|
|
350
351
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response import V1DeleteEndpointResponse
|
|
351
352
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_file_endpoint_response import V1DeleteFileEndpointResponse
|
|
353
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_git_credentials_response import V1DeleteGitCredentialsResponse
|
|
352
354
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_index_response import V1DeleteIndexResponse
|
|
353
355
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_job_response import V1DeleteJobResponse
|
|
354
356
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightning_run_response import V1DeleteLightningRunResponse
|
|
@@ -492,6 +494,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_notification_prefe
|
|
|
492
494
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_response import V1GetUserResponse
|
|
493
495
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_storage_breakdown_response import V1GetUserStorageBreakdownResponse
|
|
494
496
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_storage_response import V1GetUserStorageResponse
|
|
497
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
|
|
495
498
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
496
499
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
|
|
497
500
|
from lightning_sdk.lightning_cloud.openapi.models.v1_header import V1Header
|
|
@@ -583,6 +586,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_slurm_jobs_
|
|
|
583
586
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_response import V1ListFilesystemSnowflakeResponse
|
|
584
587
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
|
|
585
588
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_lightningapps_response import V1ListGalleryLightningappsResponse
|
|
589
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_git_credentials_response import V1ListGitCredentialsResponse
|
|
586
590
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_files_response import V1ListJobFilesResponse
|
|
587
591
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_resources_response import V1ListJobResourcesResponse
|
|
588
592
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_jobs_response import V1ListJobsResponse
|
|
@@ -678,6 +682,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_multi_machine_job_fault_tol
|
|
|
678
682
|
from lightning_sdk.lightning_cloud.openapi.models.v1_multi_machine_job_state import V1MultiMachineJobState
|
|
679
683
|
from lightning_sdk.lightning_cloud.openapi.models.v1_multi_machine_job_status import V1MultiMachineJobStatus
|
|
680
684
|
from lightning_sdk.lightning_cloud.openapi.models.v1_named_get_logger_metrics import V1NamedGetLoggerMetrics
|
|
685
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_nebius_direct_v1 import V1NebiusDirectV1
|
|
681
686
|
from lightning_sdk.lightning_cloud.openapi.models.v1_network_config import V1NetworkConfig
|
|
682
687
|
from lightning_sdk.lightning_cloud.openapi.models.v1_new_feature import V1NewFeature
|
|
683
688
|
from lightning_sdk.lightning_cloud.openapi.models.v1_notification_preference import V1NotificationPreference
|
|
@@ -47,6 +47,7 @@ class DeploymentsIdBody(object):
|
|
|
47
47
|
'autoscaling': 'V1AutoscalingSpec',
|
|
48
48
|
'cloudspace_id': 'str',
|
|
49
49
|
'created_at': 'datetime',
|
|
50
|
+
'current_state': 'V1DeploymentState',
|
|
50
51
|
'debug': 'bool',
|
|
51
52
|
'desired_state': 'V1DeploymentState',
|
|
52
53
|
'endpoint': 'V1Endpoint',
|
|
@@ -74,6 +75,7 @@ class DeploymentsIdBody(object):
|
|
|
74
75
|
'autoscaling': 'autoscaling',
|
|
75
76
|
'cloudspace_id': 'cloudspaceId',
|
|
76
77
|
'created_at': 'createdAt',
|
|
78
|
+
'current_state': 'currentState',
|
|
77
79
|
'debug': 'debug',
|
|
78
80
|
'desired_state': 'desiredState',
|
|
79
81
|
'endpoint': 'endpoint',
|
|
@@ -94,7 +96,7 @@ class DeploymentsIdBody(object):
|
|
|
94
96
|
'visibility': 'visibility'
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
99
|
+
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
98
100
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
99
101
|
self._api_standard = None
|
|
100
102
|
self._apis = None
|
|
@@ -102,6 +104,7 @@ class DeploymentsIdBody(object):
|
|
|
102
104
|
self._autoscaling = None
|
|
103
105
|
self._cloudspace_id = None
|
|
104
106
|
self._created_at = None
|
|
107
|
+
self._current_state = None
|
|
105
108
|
self._debug = None
|
|
106
109
|
self._desired_state = None
|
|
107
110
|
self._endpoint = None
|
|
@@ -133,6 +136,8 @@ class DeploymentsIdBody(object):
|
|
|
133
136
|
self.cloudspace_id = cloudspace_id
|
|
134
137
|
if created_at is not None:
|
|
135
138
|
self.created_at = created_at
|
|
139
|
+
if current_state is not None:
|
|
140
|
+
self.current_state = current_state
|
|
136
141
|
if debug is not None:
|
|
137
142
|
self.debug = debug
|
|
138
143
|
if desired_state is not None:
|
|
@@ -296,6 +301,27 @@ class DeploymentsIdBody(object):
|
|
|
296
301
|
|
|
297
302
|
self._created_at = created_at
|
|
298
303
|
|
|
304
|
+
@property
|
|
305
|
+
def current_state(self) -> 'V1DeploymentState':
|
|
306
|
+
"""Gets the current_state of this DeploymentsIdBody. # noqa: E501
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
:return: The current_state of this DeploymentsIdBody. # noqa: E501
|
|
310
|
+
:rtype: V1DeploymentState
|
|
311
|
+
"""
|
|
312
|
+
return self._current_state
|
|
313
|
+
|
|
314
|
+
@current_state.setter
|
|
315
|
+
def current_state(self, current_state: 'V1DeploymentState'):
|
|
316
|
+
"""Sets the current_state of this DeploymentsIdBody.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:param current_state: The current_state of this DeploymentsIdBody. # noqa: E501
|
|
320
|
+
:type: V1DeploymentState
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
self._current_state = current_state
|
|
324
|
+
|
|
299
325
|
@property
|
|
300
326
|
def debug(self) -> 'bool':
|
|
301
327
|
"""Gets the debug of this DeploymentsIdBody. # noqa: E501
|