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.
Files changed (61) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +35 -3
  3. lightning_sdk/api/lit_container_api.py +13 -7
  4. lightning_sdk/api/llm_api.py +46 -0
  5. lightning_sdk/api/studio_api.py +17 -0
  6. lightning_sdk/cli/entrypoint.py +1 -1
  7. lightning_sdk/cli/serve.py +221 -62
  8. lightning_sdk/deployment/deployment.py +53 -7
  9. lightning_sdk/lightning_cloud/openapi/__init__.py +11 -1
  10. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +4 -4
  12. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +13 -1
  13. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +4 -4
  14. lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
  15. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +124 -0
  16. lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -1
  17. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/update.py +65 -195
  23. lightning_sdk/lightning_cloud/openapi/models/update1.py +357 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +1 -53
  32. lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +2 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
  36. lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +108 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +149 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +279 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
  47. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -1
  49. lightning_sdk/llm/__init__.py +3 -0
  50. lightning_sdk/llm/llm.py +118 -0
  51. lightning_sdk/plugin.py +19 -0
  52. lightning_sdk/serve.py +4 -6
  53. lightning_sdk/studio.py +33 -0
  54. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/METADATA +1 -1
  55. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/RECORD +60 -47
  56. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +0 -253
  57. /lightning_sdk/cli/{docker.py → docker_cli.py} +0 -0
  58. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/LICENSE +0 -0
  59. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/WHEEL +0 -0
  60. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/entry_points.txt +0 -0
  61. {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.13.dist-info}/top_level.txt +0 -0
@@ -1,253 +0,0 @@
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
- import pprint
21
- import re # noqa: F401
22
-
23
- from typing import TYPE_CHECKING
24
-
25
- import six
26
-
27
- if TYPE_CHECKING:
28
- from datetime import datetime
29
- from lightning_sdk.lightning_cloud.openapi.models import *
30
-
31
- class EnvironmenttemplatesIdBody(object):
32
- """NOTE: This class is auto generated by the swagger code generator program.
33
-
34
- Do not edit the class manually.
35
- """
36
- """
37
- Attributes:
38
- swagger_types (dict): The key is attribute name
39
- and the value is attribute type.
40
- attribute_map (dict): The key is attribute name
41
- and the value is json key in definition.
42
- """
43
- swagger_types = {
44
- 'config': 'V1CloudSpaceEnvironmentTemplateConfig',
45
- 'created_at': 'datetime',
46
- 'name': 'str',
47
- 'org_id': 'str',
48
- 'updated_at': 'datetime',
49
- 'user_id': 'str'
50
- }
51
-
52
- attribute_map = {
53
- 'config': 'config',
54
- 'created_at': 'createdAt',
55
- 'name': 'name',
56
- 'org_id': 'orgId',
57
- 'updated_at': 'updatedAt',
58
- 'user_id': 'userId'
59
- }
60
-
61
- def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
62
- """EnvironmenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
63
- self._config = None
64
- self._created_at = None
65
- self._name = None
66
- self._org_id = None
67
- self._updated_at = None
68
- self._user_id = None
69
- self.discriminator = None
70
- if config is not None:
71
- self.config = config
72
- if created_at is not None:
73
- self.created_at = created_at
74
- if name is not None:
75
- self.name = name
76
- if org_id is not None:
77
- self.org_id = org_id
78
- if updated_at is not None:
79
- self.updated_at = updated_at
80
- if user_id is not None:
81
- self.user_id = user_id
82
-
83
- @property
84
- def config(self) -> 'V1CloudSpaceEnvironmentTemplateConfig':
85
- """Gets the config of this EnvironmenttemplatesIdBody. # noqa: E501
86
-
87
-
88
- :return: The config of this EnvironmenttemplatesIdBody. # noqa: E501
89
- :rtype: V1CloudSpaceEnvironmentTemplateConfig
90
- """
91
- return self._config
92
-
93
- @config.setter
94
- def config(self, config: 'V1CloudSpaceEnvironmentTemplateConfig'):
95
- """Sets the config of this EnvironmenttemplatesIdBody.
96
-
97
-
98
- :param config: The config of this EnvironmenttemplatesIdBody. # noqa: E501
99
- :type: V1CloudSpaceEnvironmentTemplateConfig
100
- """
101
-
102
- self._config = config
103
-
104
- @property
105
- def created_at(self) -> 'datetime':
106
- """Gets the created_at of this EnvironmenttemplatesIdBody. # noqa: E501
107
-
108
-
109
- :return: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
110
- :rtype: datetime
111
- """
112
- return self._created_at
113
-
114
- @created_at.setter
115
- def created_at(self, created_at: 'datetime'):
116
- """Sets the created_at of this EnvironmenttemplatesIdBody.
117
-
118
-
119
- :param created_at: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
120
- :type: datetime
121
- """
122
-
123
- self._created_at = created_at
124
-
125
- @property
126
- def name(self) -> 'str':
127
- """Gets the name of this EnvironmenttemplatesIdBody. # noqa: E501
128
-
129
-
130
- :return: The name of this EnvironmenttemplatesIdBody. # noqa: E501
131
- :rtype: str
132
- """
133
- return self._name
134
-
135
- @name.setter
136
- def name(self, name: 'str'):
137
- """Sets the name of this EnvironmenttemplatesIdBody.
138
-
139
-
140
- :param name: The name of this EnvironmenttemplatesIdBody. # noqa: E501
141
- :type: str
142
- """
143
-
144
- self._name = name
145
-
146
- @property
147
- def org_id(self) -> 'str':
148
- """Gets the org_id of this EnvironmenttemplatesIdBody. # noqa: E501
149
-
150
-
151
- :return: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
152
- :rtype: str
153
- """
154
- return self._org_id
155
-
156
- @org_id.setter
157
- def org_id(self, org_id: 'str'):
158
- """Sets the org_id of this EnvironmenttemplatesIdBody.
159
-
160
-
161
- :param org_id: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
162
- :type: str
163
- """
164
-
165
- self._org_id = org_id
166
-
167
- @property
168
- def updated_at(self) -> 'datetime':
169
- """Gets the updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
170
-
171
-
172
- :return: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
173
- :rtype: datetime
174
- """
175
- return self._updated_at
176
-
177
- @updated_at.setter
178
- def updated_at(self, updated_at: 'datetime'):
179
- """Sets the updated_at of this EnvironmenttemplatesIdBody.
180
-
181
-
182
- :param updated_at: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
183
- :type: datetime
184
- """
185
-
186
- self._updated_at = updated_at
187
-
188
- @property
189
- def user_id(self) -> 'str':
190
- """Gets the user_id of this EnvironmenttemplatesIdBody. # noqa: E501
191
-
192
-
193
- :return: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
194
- :rtype: str
195
- """
196
- return self._user_id
197
-
198
- @user_id.setter
199
- def user_id(self, user_id: 'str'):
200
- """Sets the user_id of this EnvironmenttemplatesIdBody.
201
-
202
-
203
- :param user_id: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
204
- :type: str
205
- """
206
-
207
- self._user_id = user_id
208
-
209
- def to_dict(self) -> dict:
210
- """Returns the model properties as a dict"""
211
- result = {}
212
-
213
- for attr, _ in six.iteritems(self.swagger_types):
214
- value = getattr(self, attr)
215
- if isinstance(value, list):
216
- result[attr] = list(map(
217
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
- value
219
- ))
220
- elif hasattr(value, "to_dict"):
221
- result[attr] = value.to_dict()
222
- elif isinstance(value, dict):
223
- result[attr] = dict(map(
224
- lambda item: (item[0], item[1].to_dict())
225
- if hasattr(item[1], "to_dict") else item,
226
- value.items()
227
- ))
228
- else:
229
- result[attr] = value
230
- if issubclass(EnvironmenttemplatesIdBody, dict):
231
- for key, value in self.items():
232
- result[key] = value
233
-
234
- return result
235
-
236
- def to_str(self) -> str:
237
- """Returns the string representation of the model"""
238
- return pprint.pformat(self.to_dict())
239
-
240
- def __repr__(self) -> str:
241
- """For `print` and `pprint`"""
242
- return self.to_str()
243
-
244
- def __eq__(self, other: 'EnvironmenttemplatesIdBody') -> bool:
245
- """Returns true if both objects are equal"""
246
- if not isinstance(other, EnvironmenttemplatesIdBody):
247
- return False
248
-
249
- return self.__dict__ == other.__dict__
250
-
251
- def __ne__(self, other: 'EnvironmenttemplatesIdBody') -> bool:
252
- """Returns true if both objects are not equal"""
253
- return not self == other
File without changes