lightning-sdk 0.2.11__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/deployment_api.py +35 -3
- lightning_sdk/api/lit_container_api.py +13 -7
- lightning_sdk/api/llm_api.py +46 -0
- lightning_sdk/api/studio_api.py +17 -0
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/serve.py +221 -62
- lightning_sdk/deployment/deployment.py +53 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +13 -1
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +124 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +65 -195
- lightning_sdk/lightning_cloud/openapi/models/update1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.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_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +1 -53
- 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_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +108 -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 +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -1
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +118 -0
- lightning_sdk/plugin.py +19 -0
- lightning_sdk/serve.py +4 -6
- lightning_sdk/studio.py +33 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/RECORD +60 -47
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +0 -253
- /lightning_sdk/cli/{docker.py → docker_cli.py} +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.11.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)
|
|
@@ -2821,6 +2821,130 @@ class JobsServiceApi(object):
|
|
|
2821
2821
|
_request_timeout=params.get('_request_timeout'),
|
|
2822
2822
|
collection_formats=collection_formats)
|
|
2823
2823
|
|
|
2824
|
+
def jobs_service_list_job_resources(self, **kwargs) -> 'V1ListJobResourcesResponse': # noqa: E501
|
|
2825
|
+
"""jobs_service_list_job_resources # noqa: E501
|
|
2826
|
+
|
|
2827
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2828
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2829
|
+
>>> thread = api.jobs_service_list_job_resources(async_req=True)
|
|
2830
|
+
>>> result = thread.get()
|
|
2831
|
+
|
|
2832
|
+
:param async_req bool
|
|
2833
|
+
:param list[str] project_ids:
|
|
2834
|
+
:param list[str] user_ids:
|
|
2835
|
+
:param str org_id:
|
|
2836
|
+
:param str state:
|
|
2837
|
+
:param list[str] job_types:
|
|
2838
|
+
:param datetime end_time:
|
|
2839
|
+
:param int limit:
|
|
2840
|
+
:param str cloudspace_id:
|
|
2841
|
+
:param bool standalone: fields specific to deployments.
|
|
2842
|
+
:return: V1ListJobResourcesResponse
|
|
2843
|
+
If the method is called asynchronously,
|
|
2844
|
+
returns the request thread.
|
|
2845
|
+
"""
|
|
2846
|
+
kwargs['_return_http_data_only'] = True
|
|
2847
|
+
if kwargs.get('async_req'):
|
|
2848
|
+
return self.jobs_service_list_job_resources_with_http_info(**kwargs) # noqa: E501
|
|
2849
|
+
else:
|
|
2850
|
+
(data) = self.jobs_service_list_job_resources_with_http_info(**kwargs) # noqa: E501
|
|
2851
|
+
return data
|
|
2852
|
+
|
|
2853
|
+
def jobs_service_list_job_resources_with_http_info(self, **kwargs) -> 'V1ListJobResourcesResponse': # noqa: E501
|
|
2854
|
+
"""jobs_service_list_job_resources # noqa: E501
|
|
2855
|
+
|
|
2856
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2857
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2858
|
+
>>> thread = api.jobs_service_list_job_resources_with_http_info(async_req=True)
|
|
2859
|
+
>>> result = thread.get()
|
|
2860
|
+
|
|
2861
|
+
:param async_req bool
|
|
2862
|
+
:param list[str] project_ids:
|
|
2863
|
+
:param list[str] user_ids:
|
|
2864
|
+
:param str org_id:
|
|
2865
|
+
:param str state:
|
|
2866
|
+
:param list[str] job_types:
|
|
2867
|
+
:param datetime end_time:
|
|
2868
|
+
:param int limit:
|
|
2869
|
+
:param str cloudspace_id:
|
|
2870
|
+
:param bool standalone: fields specific to deployments.
|
|
2871
|
+
:return: V1ListJobResourcesResponse
|
|
2872
|
+
If the method is called asynchronously,
|
|
2873
|
+
returns the request thread.
|
|
2874
|
+
"""
|
|
2875
|
+
|
|
2876
|
+
all_params = ['project_ids', 'user_ids', 'org_id', 'state', 'job_types', 'end_time', 'limit', 'cloudspace_id', 'standalone'] # noqa: E501
|
|
2877
|
+
all_params.append('async_req')
|
|
2878
|
+
all_params.append('_return_http_data_only')
|
|
2879
|
+
all_params.append('_preload_content')
|
|
2880
|
+
all_params.append('_request_timeout')
|
|
2881
|
+
|
|
2882
|
+
params = locals()
|
|
2883
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2884
|
+
if key not in all_params:
|
|
2885
|
+
raise TypeError(
|
|
2886
|
+
"Got an unexpected keyword argument '%s'"
|
|
2887
|
+
" to method jobs_service_list_job_resources" % key
|
|
2888
|
+
)
|
|
2889
|
+
params[key] = val
|
|
2890
|
+
del params['kwargs']
|
|
2891
|
+
|
|
2892
|
+
collection_formats = {}
|
|
2893
|
+
|
|
2894
|
+
path_params = {}
|
|
2895
|
+
|
|
2896
|
+
query_params = []
|
|
2897
|
+
if 'project_ids' in params:
|
|
2898
|
+
query_params.append(('projectIds', params['project_ids'])) # noqa: E501
|
|
2899
|
+
collection_formats['projectIds'] = 'multi' # noqa: E501
|
|
2900
|
+
if 'user_ids' in params:
|
|
2901
|
+
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
2902
|
+
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
2903
|
+
if 'org_id' in params:
|
|
2904
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2905
|
+
if 'state' in params:
|
|
2906
|
+
query_params.append(('state', params['state'])) # noqa: E501
|
|
2907
|
+
if 'job_types' in params:
|
|
2908
|
+
query_params.append(('jobTypes', params['job_types'])) # noqa: E501
|
|
2909
|
+
collection_formats['jobTypes'] = 'multi' # noqa: E501
|
|
2910
|
+
if 'end_time' in params:
|
|
2911
|
+
query_params.append(('endTime', params['end_time'])) # noqa: E501
|
|
2912
|
+
if 'limit' in params:
|
|
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
|
|
2918
|
+
|
|
2919
|
+
header_params = {}
|
|
2920
|
+
|
|
2921
|
+
form_params = []
|
|
2922
|
+
local_var_files = {}
|
|
2923
|
+
|
|
2924
|
+
body_params = None
|
|
2925
|
+
# HTTP header `Accept`
|
|
2926
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2927
|
+
['application/json']) # noqa: E501
|
|
2928
|
+
|
|
2929
|
+
# Authentication setting
|
|
2930
|
+
auth_settings = [] # noqa: E501
|
|
2931
|
+
|
|
2932
|
+
return self.api_client.call_api(
|
|
2933
|
+
'/v1/jobs', 'GET',
|
|
2934
|
+
path_params,
|
|
2935
|
+
query_params,
|
|
2936
|
+
header_params,
|
|
2937
|
+
body=body_params,
|
|
2938
|
+
post_params=form_params,
|
|
2939
|
+
files=local_var_files,
|
|
2940
|
+
response_type='V1ListJobResourcesResponse', # noqa: E501
|
|
2941
|
+
auth_settings=auth_settings,
|
|
2942
|
+
async_req=params.get('async_req'),
|
|
2943
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2944
|
+
_preload_content=params.get('_preload_content', True),
|
|
2945
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2946
|
+
collection_formats=collection_formats)
|
|
2947
|
+
|
|
2824
2948
|
def jobs_service_list_jobs(self, project_id: 'str', **kwargs) -> 'V1ListJobsResponse': # noqa: E501
|
|
2825
2949
|
"""jobs_service_list_jobs # noqa: E501
|
|
2826
2950
|
|