lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__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/base_studio_api.py +73 -0
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +50 -8
- lightning_sdk/api/studio_api.py +47 -1
- lightning_sdk/base_studio.py +70 -0
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/download.py +25 -0
- lightning_sdk/cli/serve.py +82 -30
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +0 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +88 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +30 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,525 @@
|
|
|
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 ProductLicenseServiceApi(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 product_license_service_create_product_license(self, body: 'V1ProductLicense', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
47
|
+
"""Create product license # 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.product_license_service_create_product_license(body, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param V1ProductLicense body: (required)
|
|
56
|
+
:return: V1ProductLicense
|
|
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.product_license_service_create_product_license_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
+
else:
|
|
64
|
+
(data) = self.product_license_service_create_product_license_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
+
return data
|
|
66
|
+
|
|
67
|
+
def product_license_service_create_product_license_with_http_info(self, body: 'V1ProductLicense', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
68
|
+
"""Create product license # 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.product_license_service_create_product_license_with_http_info(body, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool
|
|
76
|
+
:param V1ProductLicense body: (required)
|
|
77
|
+
:return: V1ProductLicense
|
|
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 product_license_service_create_product_license" % 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 `product_license_service_create_product_license`") # 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/licenses', '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='V1ProductLicense', # 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 product_license_service_get_product_license(self, license_id: 'str', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
144
|
+
"""Get product license # 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.product_license_service_get_product_license(license_id, async_req=True)
|
|
149
|
+
>>> result = thread.get()
|
|
150
|
+
|
|
151
|
+
:param async_req bool
|
|
152
|
+
:param str license_id: (required)
|
|
153
|
+
:return: V1ProductLicense
|
|
154
|
+
If the method is called asynchronously,
|
|
155
|
+
returns the request thread.
|
|
156
|
+
"""
|
|
157
|
+
kwargs['_return_http_data_only'] = True
|
|
158
|
+
if kwargs.get('async_req'):
|
|
159
|
+
return self.product_license_service_get_product_license_with_http_info(license_id, **kwargs) # noqa: E501
|
|
160
|
+
else:
|
|
161
|
+
(data) = self.product_license_service_get_product_license_with_http_info(license_id, **kwargs) # noqa: E501
|
|
162
|
+
return data
|
|
163
|
+
|
|
164
|
+
def product_license_service_get_product_license_with_http_info(self, license_id: 'str', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
165
|
+
"""Get product license # noqa: E501
|
|
166
|
+
|
|
167
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
168
|
+
asynchronous HTTP request, please pass async_req=True
|
|
169
|
+
>>> thread = api.product_license_service_get_product_license_with_http_info(license_id, async_req=True)
|
|
170
|
+
>>> result = thread.get()
|
|
171
|
+
|
|
172
|
+
:param async_req bool
|
|
173
|
+
:param str license_id: (required)
|
|
174
|
+
:return: V1ProductLicense
|
|
175
|
+
If the method is called asynchronously,
|
|
176
|
+
returns the request thread.
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
all_params = ['license_id'] # noqa: E501
|
|
180
|
+
all_params.append('async_req')
|
|
181
|
+
all_params.append('_return_http_data_only')
|
|
182
|
+
all_params.append('_preload_content')
|
|
183
|
+
all_params.append('_request_timeout')
|
|
184
|
+
|
|
185
|
+
params = locals()
|
|
186
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
187
|
+
if key not in all_params:
|
|
188
|
+
raise TypeError(
|
|
189
|
+
"Got an unexpected keyword argument '%s'"
|
|
190
|
+
" to method product_license_service_get_product_license" % key
|
|
191
|
+
)
|
|
192
|
+
params[key] = val
|
|
193
|
+
del params['kwargs']
|
|
194
|
+
# verify the required parameter 'license_id' is set
|
|
195
|
+
if ('license_id' not in params or
|
|
196
|
+
params['license_id'] is None):
|
|
197
|
+
raise ValueError("Missing the required parameter `license_id` when calling `product_license_service_get_product_license`") # noqa: E501
|
|
198
|
+
|
|
199
|
+
collection_formats = {}
|
|
200
|
+
|
|
201
|
+
path_params = {}
|
|
202
|
+
if 'license_id' in params:
|
|
203
|
+
path_params['licenseId'] = params['license_id'] # noqa: E501
|
|
204
|
+
|
|
205
|
+
query_params = []
|
|
206
|
+
|
|
207
|
+
header_params = {}
|
|
208
|
+
|
|
209
|
+
form_params = []
|
|
210
|
+
local_var_files = {}
|
|
211
|
+
|
|
212
|
+
body_params = None
|
|
213
|
+
# HTTP header `Accept`
|
|
214
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
215
|
+
['application/json']) # noqa: E501
|
|
216
|
+
|
|
217
|
+
# Authentication setting
|
|
218
|
+
auth_settings = [] # noqa: E501
|
|
219
|
+
|
|
220
|
+
return self.api_client.call_api(
|
|
221
|
+
'/v1/licenses/{licenseId}', 'GET',
|
|
222
|
+
path_params,
|
|
223
|
+
query_params,
|
|
224
|
+
header_params,
|
|
225
|
+
body=body_params,
|
|
226
|
+
post_params=form_params,
|
|
227
|
+
files=local_var_files,
|
|
228
|
+
response_type='V1ProductLicense', # noqa: E501
|
|
229
|
+
auth_settings=auth_settings,
|
|
230
|
+
async_req=params.get('async_req'),
|
|
231
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
232
|
+
_preload_content=params.get('_preload_content', True),
|
|
233
|
+
_request_timeout=params.get('_request_timeout'),
|
|
234
|
+
collection_formats=collection_formats)
|
|
235
|
+
|
|
236
|
+
def product_license_service_list_user_licenses(self, user_id: 'str', **kwargs) -> 'V1ListProductLicensesResponse': # noqa: E501
|
|
237
|
+
"""list product licenses assigned to a user # noqa: E501
|
|
238
|
+
|
|
239
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
240
|
+
asynchronous HTTP request, please pass async_req=True
|
|
241
|
+
>>> thread = api.product_license_service_list_user_licenses(user_id, async_req=True)
|
|
242
|
+
>>> result = thread.get()
|
|
243
|
+
|
|
244
|
+
:param async_req bool
|
|
245
|
+
:param str user_id: (required)
|
|
246
|
+
:return: V1ListProductLicensesResponse
|
|
247
|
+
If the method is called asynchronously,
|
|
248
|
+
returns the request thread.
|
|
249
|
+
"""
|
|
250
|
+
kwargs['_return_http_data_only'] = True
|
|
251
|
+
if kwargs.get('async_req'):
|
|
252
|
+
return self.product_license_service_list_user_licenses_with_http_info(user_id, **kwargs) # noqa: E501
|
|
253
|
+
else:
|
|
254
|
+
(data) = self.product_license_service_list_user_licenses_with_http_info(user_id, **kwargs) # noqa: E501
|
|
255
|
+
return data
|
|
256
|
+
|
|
257
|
+
def product_license_service_list_user_licenses_with_http_info(self, user_id: 'str', **kwargs) -> 'V1ListProductLicensesResponse': # noqa: E501
|
|
258
|
+
"""list product licenses assigned to a user # noqa: E501
|
|
259
|
+
|
|
260
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
261
|
+
asynchronous HTTP request, please pass async_req=True
|
|
262
|
+
>>> thread = api.product_license_service_list_user_licenses_with_http_info(user_id, async_req=True)
|
|
263
|
+
>>> result = thread.get()
|
|
264
|
+
|
|
265
|
+
:param async_req bool
|
|
266
|
+
:param str user_id: (required)
|
|
267
|
+
:return: V1ListProductLicensesResponse
|
|
268
|
+
If the method is called asynchronously,
|
|
269
|
+
returns the request thread.
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
all_params = ['user_id'] # noqa: E501
|
|
273
|
+
all_params.append('async_req')
|
|
274
|
+
all_params.append('_return_http_data_only')
|
|
275
|
+
all_params.append('_preload_content')
|
|
276
|
+
all_params.append('_request_timeout')
|
|
277
|
+
|
|
278
|
+
params = locals()
|
|
279
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
280
|
+
if key not in all_params:
|
|
281
|
+
raise TypeError(
|
|
282
|
+
"Got an unexpected keyword argument '%s'"
|
|
283
|
+
" to method product_license_service_list_user_licenses" % key
|
|
284
|
+
)
|
|
285
|
+
params[key] = val
|
|
286
|
+
del params['kwargs']
|
|
287
|
+
# verify the required parameter 'user_id' is set
|
|
288
|
+
if ('user_id' not in params or
|
|
289
|
+
params['user_id'] is None):
|
|
290
|
+
raise ValueError("Missing the required parameter `user_id` when calling `product_license_service_list_user_licenses`") # noqa: E501
|
|
291
|
+
|
|
292
|
+
collection_formats = {}
|
|
293
|
+
|
|
294
|
+
path_params = {}
|
|
295
|
+
if 'user_id' in params:
|
|
296
|
+
path_params['userId'] = params['user_id'] # noqa: E501
|
|
297
|
+
|
|
298
|
+
query_params = []
|
|
299
|
+
|
|
300
|
+
header_params = {}
|
|
301
|
+
|
|
302
|
+
form_params = []
|
|
303
|
+
local_var_files = {}
|
|
304
|
+
|
|
305
|
+
body_params = None
|
|
306
|
+
# HTTP header `Accept`
|
|
307
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
308
|
+
['application/json']) # noqa: E501
|
|
309
|
+
|
|
310
|
+
# Authentication setting
|
|
311
|
+
auth_settings = [] # noqa: E501
|
|
312
|
+
|
|
313
|
+
return self.api_client.call_api(
|
|
314
|
+
'/v1/users/{userId}/licenses', 'GET',
|
|
315
|
+
path_params,
|
|
316
|
+
query_params,
|
|
317
|
+
header_params,
|
|
318
|
+
body=body_params,
|
|
319
|
+
post_params=form_params,
|
|
320
|
+
files=local_var_files,
|
|
321
|
+
response_type='V1ListProductLicensesResponse', # noqa: E501
|
|
322
|
+
auth_settings=auth_settings,
|
|
323
|
+
async_req=params.get('async_req'),
|
|
324
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
325
|
+
_preload_content=params.get('_preload_content', True),
|
|
326
|
+
_request_timeout=params.get('_request_timeout'),
|
|
327
|
+
collection_formats=collection_formats)
|
|
328
|
+
|
|
329
|
+
def product_license_service_revoke_product_license(self, license_id: 'str', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
330
|
+
"""revoke or invalidate product license # noqa: E501
|
|
331
|
+
|
|
332
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
333
|
+
asynchronous HTTP request, please pass async_req=True
|
|
334
|
+
>>> thread = api.product_license_service_revoke_product_license(license_id, async_req=True)
|
|
335
|
+
>>> result = thread.get()
|
|
336
|
+
|
|
337
|
+
:param async_req bool
|
|
338
|
+
:param str license_id: (required)
|
|
339
|
+
:return: V1ProductLicense
|
|
340
|
+
If the method is called asynchronously,
|
|
341
|
+
returns the request thread.
|
|
342
|
+
"""
|
|
343
|
+
kwargs['_return_http_data_only'] = True
|
|
344
|
+
if kwargs.get('async_req'):
|
|
345
|
+
return self.product_license_service_revoke_product_license_with_http_info(license_id, **kwargs) # noqa: E501
|
|
346
|
+
else:
|
|
347
|
+
(data) = self.product_license_service_revoke_product_license_with_http_info(license_id, **kwargs) # noqa: E501
|
|
348
|
+
return data
|
|
349
|
+
|
|
350
|
+
def product_license_service_revoke_product_license_with_http_info(self, license_id: 'str', **kwargs) -> 'V1ProductLicense': # noqa: E501
|
|
351
|
+
"""revoke or invalidate product license # noqa: E501
|
|
352
|
+
|
|
353
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
354
|
+
asynchronous HTTP request, please pass async_req=True
|
|
355
|
+
>>> thread = api.product_license_service_revoke_product_license_with_http_info(license_id, async_req=True)
|
|
356
|
+
>>> result = thread.get()
|
|
357
|
+
|
|
358
|
+
:param async_req bool
|
|
359
|
+
:param str license_id: (required)
|
|
360
|
+
:return: V1ProductLicense
|
|
361
|
+
If the method is called asynchronously,
|
|
362
|
+
returns the request thread.
|
|
363
|
+
"""
|
|
364
|
+
|
|
365
|
+
all_params = ['license_id'] # noqa: E501
|
|
366
|
+
all_params.append('async_req')
|
|
367
|
+
all_params.append('_return_http_data_only')
|
|
368
|
+
all_params.append('_preload_content')
|
|
369
|
+
all_params.append('_request_timeout')
|
|
370
|
+
|
|
371
|
+
params = locals()
|
|
372
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
373
|
+
if key not in all_params:
|
|
374
|
+
raise TypeError(
|
|
375
|
+
"Got an unexpected keyword argument '%s'"
|
|
376
|
+
" to method product_license_service_revoke_product_license" % key
|
|
377
|
+
)
|
|
378
|
+
params[key] = val
|
|
379
|
+
del params['kwargs']
|
|
380
|
+
# verify the required parameter 'license_id' is set
|
|
381
|
+
if ('license_id' not in params or
|
|
382
|
+
params['license_id'] is None):
|
|
383
|
+
raise ValueError("Missing the required parameter `license_id` when calling `product_license_service_revoke_product_license`") # noqa: E501
|
|
384
|
+
|
|
385
|
+
collection_formats = {}
|
|
386
|
+
|
|
387
|
+
path_params = {}
|
|
388
|
+
if 'license_id' in params:
|
|
389
|
+
path_params['licenseId'] = params['license_id'] # noqa: E501
|
|
390
|
+
|
|
391
|
+
query_params = []
|
|
392
|
+
|
|
393
|
+
header_params = {}
|
|
394
|
+
|
|
395
|
+
form_params = []
|
|
396
|
+
local_var_files = {}
|
|
397
|
+
|
|
398
|
+
body_params = None
|
|
399
|
+
# HTTP header `Accept`
|
|
400
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
401
|
+
['application/json']) # noqa: E501
|
|
402
|
+
|
|
403
|
+
# Authentication setting
|
|
404
|
+
auth_settings = [] # noqa: E501
|
|
405
|
+
|
|
406
|
+
return self.api_client.call_api(
|
|
407
|
+
'/v1/licenses/{licenseId}', 'DELETE',
|
|
408
|
+
path_params,
|
|
409
|
+
query_params,
|
|
410
|
+
header_params,
|
|
411
|
+
body=body_params,
|
|
412
|
+
post_params=form_params,
|
|
413
|
+
files=local_var_files,
|
|
414
|
+
response_type='V1ProductLicense', # noqa: E501
|
|
415
|
+
auth_settings=auth_settings,
|
|
416
|
+
async_req=params.get('async_req'),
|
|
417
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
418
|
+
_preload_content=params.get('_preload_content', True),
|
|
419
|
+
_request_timeout=params.get('_request_timeout'),
|
|
420
|
+
collection_formats=collection_formats)
|
|
421
|
+
|
|
422
|
+
def product_license_service_validate_product_license(self, license_key: 'str', **kwargs) -> 'V1ProductLicenseCheckResponse': # noqa: E501
|
|
423
|
+
"""Validate product license # noqa: E501
|
|
424
|
+
|
|
425
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
426
|
+
asynchronous HTTP request, please pass async_req=True
|
|
427
|
+
>>> thread = api.product_license_service_validate_product_license(license_key, async_req=True)
|
|
428
|
+
>>> result = thread.get()
|
|
429
|
+
|
|
430
|
+
:param async_req bool
|
|
431
|
+
:param str license_key: (required)
|
|
432
|
+
:param str product_name:
|
|
433
|
+
:param str product_version:
|
|
434
|
+
:param str product_type:
|
|
435
|
+
:return: V1ProductLicenseCheckResponse
|
|
436
|
+
If the method is called asynchronously,
|
|
437
|
+
returns the request thread.
|
|
438
|
+
"""
|
|
439
|
+
kwargs['_return_http_data_only'] = True
|
|
440
|
+
if kwargs.get('async_req'):
|
|
441
|
+
return self.product_license_service_validate_product_license_with_http_info(license_key, **kwargs) # noqa: E501
|
|
442
|
+
else:
|
|
443
|
+
(data) = self.product_license_service_validate_product_license_with_http_info(license_key, **kwargs) # noqa: E501
|
|
444
|
+
return data
|
|
445
|
+
|
|
446
|
+
def product_license_service_validate_product_license_with_http_info(self, license_key: 'str', **kwargs) -> 'V1ProductLicenseCheckResponse': # noqa: E501
|
|
447
|
+
"""Validate product license # noqa: E501
|
|
448
|
+
|
|
449
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
450
|
+
asynchronous HTTP request, please pass async_req=True
|
|
451
|
+
>>> thread = api.product_license_service_validate_product_license_with_http_info(license_key, async_req=True)
|
|
452
|
+
>>> result = thread.get()
|
|
453
|
+
|
|
454
|
+
:param async_req bool
|
|
455
|
+
:param str license_key: (required)
|
|
456
|
+
:param str product_name:
|
|
457
|
+
:param str product_version:
|
|
458
|
+
:param str product_type:
|
|
459
|
+
:return: V1ProductLicenseCheckResponse
|
|
460
|
+
If the method is called asynchronously,
|
|
461
|
+
returns the request thread.
|
|
462
|
+
"""
|
|
463
|
+
|
|
464
|
+
all_params = ['license_key', 'product_name', 'product_version', 'product_type'] # noqa: E501
|
|
465
|
+
all_params.append('async_req')
|
|
466
|
+
all_params.append('_return_http_data_only')
|
|
467
|
+
all_params.append('_preload_content')
|
|
468
|
+
all_params.append('_request_timeout')
|
|
469
|
+
|
|
470
|
+
params = locals()
|
|
471
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
472
|
+
if key not in all_params:
|
|
473
|
+
raise TypeError(
|
|
474
|
+
"Got an unexpected keyword argument '%s'"
|
|
475
|
+
" to method product_license_service_validate_product_license" % key
|
|
476
|
+
)
|
|
477
|
+
params[key] = val
|
|
478
|
+
del params['kwargs']
|
|
479
|
+
# verify the required parameter 'license_key' is set
|
|
480
|
+
if ('license_key' not in params or
|
|
481
|
+
params['license_key'] is None):
|
|
482
|
+
raise ValueError("Missing the required parameter `license_key` when calling `product_license_service_validate_product_license`") # noqa: E501
|
|
483
|
+
|
|
484
|
+
collection_formats = {}
|
|
485
|
+
|
|
486
|
+
path_params = {}
|
|
487
|
+
if 'license_key' in params:
|
|
488
|
+
path_params['licenseKey'] = params['license_key'] # noqa: E501
|
|
489
|
+
|
|
490
|
+
query_params = []
|
|
491
|
+
if 'product_name' in params:
|
|
492
|
+
query_params.append(('productName', params['product_name'])) # noqa: E501
|
|
493
|
+
if 'product_version' in params:
|
|
494
|
+
query_params.append(('productVersion', params['product_version'])) # noqa: E501
|
|
495
|
+
if 'product_type' in params:
|
|
496
|
+
query_params.append(('productType', params['product_type'])) # noqa: E501
|
|
497
|
+
|
|
498
|
+
header_params = {}
|
|
499
|
+
|
|
500
|
+
form_params = []
|
|
501
|
+
local_var_files = {}
|
|
502
|
+
|
|
503
|
+
body_params = None
|
|
504
|
+
# HTTP header `Accept`
|
|
505
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
506
|
+
['application/json']) # noqa: E501
|
|
507
|
+
|
|
508
|
+
# Authentication setting
|
|
509
|
+
auth_settings = [] # noqa: E501
|
|
510
|
+
|
|
511
|
+
return self.api_client.call_api(
|
|
512
|
+
'/v1/licenses/{licenseKey}/validate', 'GET',
|
|
513
|
+
path_params,
|
|
514
|
+
query_params,
|
|
515
|
+
header_params,
|
|
516
|
+
body=body_params,
|
|
517
|
+
post_params=form_params,
|
|
518
|
+
files=local_var_files,
|
|
519
|
+
response_type='V1ProductLicenseCheckResponse', # noqa: E501
|
|
520
|
+
auth_settings=auth_settings,
|
|
521
|
+
async_req=params.get('async_req'),
|
|
522
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
523
|
+
_preload_content=params.get('_preload_content', True),
|
|
524
|
+
_request_timeout=params.get('_request_timeout'),
|
|
525
|
+
collection_formats=collection_formats)
|
|
@@ -70,7 +70,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
70
70
|
self.password = ""
|
|
71
71
|
# Logging Settings
|
|
72
72
|
self.logger = {}
|
|
73
|
-
self.logger["package_logger"] = logging.getLogger("
|
|
73
|
+
self.logger["package_logger"] = logging.getLogger("lightning_cloud.openapi")
|
|
74
74
|
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
|
75
75
|
# Log format
|
|
76
76
|
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
|
@@ -238,8 +238,10 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version_st
|
|
|
238
238
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_cold_start_metrics import V1CloudSpaceColdStartMetrics
|
|
239
239
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_cold_start_metrics_stats import V1CloudSpaceColdStartMetricsStats
|
|
240
240
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_engagement_response import V1CloudSpaceEngagementResponse
|
|
241
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_config import V1CloudSpaceEnvironmentConfig
|
|
241
242
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template import V1CloudSpaceEnvironmentTemplate
|
|
242
243
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template_config import V1CloudSpaceEnvironmentTemplateConfig
|
|
244
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_type import V1CloudSpaceEnvironmentType
|
|
243
245
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_collab_status import V1CloudSpaceInstanceCollabStatus
|
|
244
246
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_config import V1CloudSpaceInstanceConfig
|
|
245
247
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_startup_status import V1CloudSpaceInstanceStartupStatus
|
|
@@ -267,6 +269,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_state import V1Clus
|
|
|
267
269
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_status import V1ClusterStatus
|
|
268
270
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_tagging_options import V1ClusterTaggingOptions
|
|
269
271
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_type import V1ClusterType
|
|
272
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_upload import V1ClusterUpload
|
|
270
273
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_usage_restriction import V1ClusterUsageRestriction
|
|
271
274
|
from lightning_sdk.lightning_cloud.openapi.models.v1_collab_action import V1CollabAction
|
|
272
275
|
from lightning_sdk.lightning_cloud.openapi.models.v1_collab_session import V1CollabSession
|
|
@@ -453,6 +456,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_app import V1Galler
|
|
|
453
456
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_component import V1GalleryComponent
|
|
454
457
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection import V1GcpDataConnection
|
|
455
458
|
from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection_setup import V1GcpDataConnectionSetup
|
|
459
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_ge_list_deployment_routing_telemetry_response import V1GeListDeploymentRoutingTelemetryResponse
|
|
456
460
|
from lightning_sdk.lightning_cloud.openapi.models.v1_generate_ssh_key_pair_request import V1GenerateSSHKeyPairRequest
|
|
457
461
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response import V1GetAffiliateLinkResponse
|
|
458
462
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
|
|
@@ -617,6 +621,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_org_roles_response imp
|
|
|
617
621
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_organization_cluster_encryption_keys_response import V1ListOrganizationClusterEncryptionKeysResponse
|
|
618
622
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_organizations_response import V1ListOrganizationsResponse
|
|
619
623
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_pipelines_response import V1ListPipelinesResponse
|
|
624
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_product_licenses_response import V1ListProductLicensesResponse
|
|
620
625
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_profiler_captures_response import V1ListProfilerCapturesResponse
|
|
621
626
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_artifacts_response import V1ListProjectArtifactsResponse
|
|
622
627
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_cluster_accelerators_response import V1ListProjectClusterAcceleratorsResponse
|
|
@@ -673,6 +678,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_metrics_tracker import V1Me
|
|
|
673
678
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model import V1Model
|
|
674
679
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_file import V1ModelFile
|
|
675
680
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_version_archive import V1ModelVersionArchive
|
|
681
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_modify_filesystem_volume_response import V1ModifyFilesystemVolumeResponse
|
|
676
682
|
from lightning_sdk.lightning_cloud.openapi.models.v1_mount_target import V1MountTarget
|
|
677
683
|
from lightning_sdk.lightning_cloud.openapi.models.v1_multi_machine_job import V1MultiMachineJob
|
|
678
684
|
from lightning_sdk.lightning_cloud.openapi.models.v1_multi_machine_job_event import V1MultiMachineJobEvent
|
|
@@ -706,6 +712,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_parameter import V
|
|
|
706
712
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_parameter_placement import V1PipelineParameterPlacement
|
|
707
713
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_parameter_placement_type import V1PipelineParameterPlacementType
|
|
708
714
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_parameter_type import V1PipelineParameterType
|
|
715
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_state import V1PipelineState
|
|
709
716
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_step import V1PipelineStep
|
|
710
717
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_step_status import V1PipelineStepStatus
|
|
711
718
|
from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_step_type import V1PipelineStepType
|
|
@@ -715,6 +722,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_plugin import V1Plugin
|
|
|
715
722
|
from lightning_sdk.lightning_cloud.openapi.models.v1_plugins_list_response import V1PluginsListResponse
|
|
716
723
|
from lightning_sdk.lightning_cloud.openapi.models.v1_post_cloud_space_artifact_events_response import V1PostCloudSpaceArtifactEventsResponse
|
|
717
724
|
from lightning_sdk.lightning_cloud.openapi.models.v1_presigned_url import V1PresignedUrl
|
|
725
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_product_license import V1ProductLicense
|
|
726
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_product_license_check_response import V1ProductLicenseCheckResponse
|
|
718
727
|
from lightning_sdk.lightning_cloud.openapi.models.v1_profiler_capture import V1ProfilerCapture
|
|
719
728
|
from lightning_sdk.lightning_cloud.openapi.models.v1_profiler_enabled_response import V1ProfilerEnabledResponse
|
|
720
729
|
from lightning_sdk.lightning_cloud.openapi.models.v1_project import V1Project
|
|
@@ -824,6 +833,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_org_balance_respon
|
|
|
824
833
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_project_balance_response import V1TransferProjectBalanceResponse
|
|
825
834
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_user_balance_request import V1TransferUserBalanceRequest
|
|
826
835
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_user_balance_response import V1TransferUserBalanceResponse
|
|
836
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_trigger_filesystem_upgrade_response import V1TriggerFilesystemUpgradeResponse
|
|
827
837
|
from lightning_sdk.lightning_cloud.openapi.models.v1_unpublish_cloud_space_response import V1UnpublishCloudSpaceResponse
|
|
828
838
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_agent_status_request import V1UpdateAgentStatusRequest
|
|
829
839
|
from lightning_sdk.lightning_cloud.openapi.models.v1_update_agent_status_response import V1UpdateAgentStatusResponse
|