lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +79 -0
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/license_api.py +48 -0
  5. lightning_sdk/api/llm_api.py +73 -12
  6. lightning_sdk/api/studio_api.py +50 -1
  7. lightning_sdk/api/teamspace_api.py +127 -1
  8. lightning_sdk/api/utils.py +4 -0
  9. lightning_sdk/base_studio.py +83 -0
  10. lightning_sdk/cli/create.py +21 -1
  11. lightning_sdk/cli/delete.py +6 -8
  12. lightning_sdk/cli/deploy/__init__.py +0 -0
  13. lightning_sdk/cli/deploy/_auth.py +189 -0
  14. lightning_sdk/cli/deploy/devbox.py +157 -0
  15. lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
  16. lightning_sdk/cli/download.py +69 -16
  17. lightning_sdk/cli/entrypoint.py +1 -1
  18. lightning_sdk/cli/open.py +21 -2
  19. lightning_sdk/cli/start.py +12 -3
  20. lightning_sdk/cli/teamspace_menu.py +9 -1
  21. lightning_sdk/cli/upload.py +2 -5
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  24. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  25. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  26. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
  27. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  29. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
  30. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  31. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  32. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  33. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
  34. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  37. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  42. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  43. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
  47. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  62. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  74. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  82. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  84. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
  89. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  97. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
  98. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  100. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  101. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  105. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  106. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  108. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
  109. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  110. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  111. lightning_sdk/llm/llm.py +132 -40
  112. lightning_sdk/services/__init__.py +1 -1
  113. lightning_sdk/services/license.py +236 -0
  114. lightning_sdk/studio.py +62 -1
  115. lightning_sdk/teamspace.py +68 -0
  116. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  117. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
  118. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  119. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  120. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  121. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  122. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.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)
@@ -346,6 +346,99 @@ class StorageServiceApi(object):
346
346
  _request_timeout=params.get('_request_timeout'),
347
347
  collection_formats=collection_formats)
348
348
 
349
+ def storage_service_get_org_storage_metadata(self, org_id: 'str', **kwargs) -> 'V1GetOrganizationStorageMetadataResponse': # noqa: E501
350
+ """storage_service_get_org_storage_metadata # noqa: E501
351
+
352
+ This method makes a synchronous HTTP request by default. To make an
353
+ asynchronous HTTP request, please pass async_req=True
354
+ >>> thread = api.storage_service_get_org_storage_metadata(org_id, async_req=True)
355
+ >>> result = thread.get()
356
+
357
+ :param async_req bool
358
+ :param str org_id: (required)
359
+ :return: V1GetOrganizationStorageMetadataResponse
360
+ If the method is called asynchronously,
361
+ returns the request thread.
362
+ """
363
+ kwargs['_return_http_data_only'] = True
364
+ if kwargs.get('async_req'):
365
+ return self.storage_service_get_org_storage_metadata_with_http_info(org_id, **kwargs) # noqa: E501
366
+ else:
367
+ (data) = self.storage_service_get_org_storage_metadata_with_http_info(org_id, **kwargs) # noqa: E501
368
+ return data
369
+
370
+ def storage_service_get_org_storage_metadata_with_http_info(self, org_id: 'str', **kwargs) -> 'V1GetOrganizationStorageMetadataResponse': # noqa: E501
371
+ """storage_service_get_org_storage_metadata # noqa: E501
372
+
373
+ This method makes a synchronous HTTP request by default. To make an
374
+ asynchronous HTTP request, please pass async_req=True
375
+ >>> thread = api.storage_service_get_org_storage_metadata_with_http_info(org_id, async_req=True)
376
+ >>> result = thread.get()
377
+
378
+ :param async_req bool
379
+ :param str org_id: (required)
380
+ :return: V1GetOrganizationStorageMetadataResponse
381
+ If the method is called asynchronously,
382
+ returns the request thread.
383
+ """
384
+
385
+ all_params = ['org_id'] # noqa: E501
386
+ all_params.append('async_req')
387
+ all_params.append('_return_http_data_only')
388
+ all_params.append('_preload_content')
389
+ all_params.append('_request_timeout')
390
+
391
+ params = locals()
392
+ for key, val in six.iteritems(params['kwargs']):
393
+ if key not in all_params:
394
+ raise TypeError(
395
+ "Got an unexpected keyword argument '%s'"
396
+ " to method storage_service_get_org_storage_metadata" % key
397
+ )
398
+ params[key] = val
399
+ del params['kwargs']
400
+ # verify the required parameter 'org_id' is set
401
+ if ('org_id' not in params or
402
+ params['org_id'] is None):
403
+ raise ValueError("Missing the required parameter `org_id` when calling `storage_service_get_org_storage_metadata`") # noqa: E501
404
+
405
+ collection_formats = {}
406
+
407
+ path_params = {}
408
+ if 'org_id' in params:
409
+ path_params['orgId'] = params['org_id'] # noqa: E501
410
+
411
+ query_params = []
412
+
413
+ header_params = {}
414
+
415
+ form_params = []
416
+ local_var_files = {}
417
+
418
+ body_params = None
419
+ # HTTP header `Accept`
420
+ header_params['Accept'] = self.api_client.select_header_accept(
421
+ ['application/json']) # noqa: E501
422
+
423
+ # Authentication setting
424
+ auth_settings = [] # noqa: E501
425
+
426
+ return self.api_client.call_api(
427
+ '/v1/orgs/{orgId}/storage/metadata', 'GET',
428
+ path_params,
429
+ query_params,
430
+ header_params,
431
+ body=body_params,
432
+ post_params=form_params,
433
+ files=local_var_files,
434
+ response_type='V1GetOrganizationStorageMetadataResponse', # noqa: E501
435
+ auth_settings=auth_settings,
436
+ async_req=params.get('async_req'),
437
+ _return_http_data_only=params.get('_return_http_data_only'),
438
+ _preload_content=params.get('_preload_content', True),
439
+ _request_timeout=params.get('_request_timeout'),
440
+ collection_formats=collection_formats)
441
+
349
442
  def storage_service_get_project_artifact(self, project_id: 'str', **kwargs) -> 'V1GetProjectArtifactResponse': # noqa: E501
350
443
  """storage_service_get_project_artifact # noqa: E501
351
444
 
@@ -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("lightning_sdk.lightning_cloud.openapi")
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'