lightning-sdk 2025.8.6rc0__py3-none-any.whl → 2025.8.6rc1__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 (60) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/lightning_cloud/login.py +1 -0
  3. lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
  4. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  5. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
  6. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
  7. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
  8. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
  9. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  10. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
  11. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
  12. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  13. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
  14. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
  16. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
  17. lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
  18. lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
  20. lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
  21. lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
  22. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
  23. lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
  29. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
  30. lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
  31. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
  33. lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
  34. lightning_sdk/llm/llm.py +2 -13
  35. lightning_sdk/llm/public_assistants.py +17 -0
  36. lightning_sdk/services/file_endpoint.py +3 -4
  37. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/METADATA +1 -1
  38. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/RECORD +42 -50
  39. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
  40. lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
  41. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
  42. lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
  43. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
  45. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
  46. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
  47. lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
  48. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
  49. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
  51. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
  53. lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
  54. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
  55. lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
  56. lightning_sdk/llm/public_assistants.json +0 -34
  57. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/LICENSE +0 -0
  58. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/WHEEL +0 -0
  59. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/entry_points.txt +0 -0
  60. {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/top_level.txt +0 -0
@@ -1,175 +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 V1ListServiceExecutionLightningappInstancesResponse(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
- 'lightningapps': 'list[Externalv1LightningappInstance]',
45
- 'next_page_token': 'str',
46
- 'previous_page_token': 'str'
47
- }
48
-
49
- attribute_map = {
50
- 'lightningapps': 'lightningapps',
51
- 'next_page_token': 'nextPageToken',
52
- 'previous_page_token': 'previousPageToken'
53
- }
54
-
55
- def __init__(self, lightningapps: 'list[Externalv1LightningappInstance]' =None, next_page_token: 'str' =None, previous_page_token: 'str' =None): # noqa: E501
56
- """V1ListServiceExecutionLightningappInstancesResponse - a model defined in Swagger""" # noqa: E501
57
- self._lightningapps = None
58
- self._next_page_token = None
59
- self._previous_page_token = None
60
- self.discriminator = None
61
- if lightningapps is not None:
62
- self.lightningapps = lightningapps
63
- if next_page_token is not None:
64
- self.next_page_token = next_page_token
65
- if previous_page_token is not None:
66
- self.previous_page_token = previous_page_token
67
-
68
- @property
69
- def lightningapps(self) -> 'list[Externalv1LightningappInstance]':
70
- """Gets the lightningapps of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
71
-
72
-
73
- :return: The lightningapps of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
74
- :rtype: list[Externalv1LightningappInstance]
75
- """
76
- return self._lightningapps
77
-
78
- @lightningapps.setter
79
- def lightningapps(self, lightningapps: 'list[Externalv1LightningappInstance]'):
80
- """Sets the lightningapps of this V1ListServiceExecutionLightningappInstancesResponse.
81
-
82
-
83
- :param lightningapps: The lightningapps of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
84
- :type: list[Externalv1LightningappInstance]
85
- """
86
-
87
- self._lightningapps = lightningapps
88
-
89
- @property
90
- def next_page_token(self) -> 'str':
91
- """Gets the next_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
92
-
93
-
94
- :return: The next_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._next_page_token
98
-
99
- @next_page_token.setter
100
- def next_page_token(self, next_page_token: 'str'):
101
- """Sets the next_page_token of this V1ListServiceExecutionLightningappInstancesResponse.
102
-
103
-
104
- :param next_page_token: The next_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
105
- :type: str
106
- """
107
-
108
- self._next_page_token = next_page_token
109
-
110
- @property
111
- def previous_page_token(self) -> 'str':
112
- """Gets the previous_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
113
-
114
-
115
- :return: The previous_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
116
- :rtype: str
117
- """
118
- return self._previous_page_token
119
-
120
- @previous_page_token.setter
121
- def previous_page_token(self, previous_page_token: 'str'):
122
- """Sets the previous_page_token of this V1ListServiceExecutionLightningappInstancesResponse.
123
-
124
-
125
- :param previous_page_token: The previous_page_token of this V1ListServiceExecutionLightningappInstancesResponse. # noqa: E501
126
- :type: str
127
- """
128
-
129
- self._previous_page_token = previous_page_token
130
-
131
- def to_dict(self) -> dict:
132
- """Returns the model properties as a dict"""
133
- result = {}
134
-
135
- for attr, _ in six.iteritems(self.swagger_types):
136
- value = getattr(self, attr)
137
- if isinstance(value, list):
138
- result[attr] = list(map(
139
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
- value
141
- ))
142
- elif hasattr(value, "to_dict"):
143
- result[attr] = value.to_dict()
144
- elif isinstance(value, dict):
145
- result[attr] = dict(map(
146
- lambda item: (item[0], item[1].to_dict())
147
- if hasattr(item[1], "to_dict") else item,
148
- value.items()
149
- ))
150
- else:
151
- result[attr] = value
152
- if issubclass(V1ListServiceExecutionLightningappInstancesResponse, dict):
153
- for key, value in self.items():
154
- result[key] = value
155
-
156
- return result
157
-
158
- def to_str(self) -> str:
159
- """Returns the string representation of the model"""
160
- return pprint.pformat(self.to_dict())
161
-
162
- def __repr__(self) -> str:
163
- """For `print` and `pprint`"""
164
- return self.to_str()
165
-
166
- def __eq__(self, other: 'V1ListServiceExecutionLightningappInstancesResponse') -> bool:
167
- """Returns true if both objects are equal"""
168
- if not isinstance(other, V1ListServiceExecutionLightningappInstancesResponse):
169
- return False
170
-
171
- return self.__dict__ == other.__dict__
172
-
173
- def __ne__(self, other: 'V1ListServiceExecutionLightningappInstancesResponse') -> bool:
174
- """Returns true if both objects are not equal"""
175
- return not self == other
@@ -1,123 +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 V1ListServiceExecutionsResponse(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
- 'service_executions': 'list[V1ServiceExecution]'
45
- }
46
-
47
- attribute_map = {
48
- 'service_executions': 'serviceExecutions'
49
- }
50
-
51
- def __init__(self, service_executions: 'list[V1ServiceExecution]' =None): # noqa: E501
52
- """V1ListServiceExecutionsResponse - a model defined in Swagger""" # noqa: E501
53
- self._service_executions = None
54
- self.discriminator = None
55
- if service_executions is not None:
56
- self.service_executions = service_executions
57
-
58
- @property
59
- def service_executions(self) -> 'list[V1ServiceExecution]':
60
- """Gets the service_executions of this V1ListServiceExecutionsResponse. # noqa: E501
61
-
62
-
63
- :return: The service_executions of this V1ListServiceExecutionsResponse. # noqa: E501
64
- :rtype: list[V1ServiceExecution]
65
- """
66
- return self._service_executions
67
-
68
- @service_executions.setter
69
- def service_executions(self, service_executions: 'list[V1ServiceExecution]'):
70
- """Sets the service_executions of this V1ListServiceExecutionsResponse.
71
-
72
-
73
- :param service_executions: The service_executions of this V1ListServiceExecutionsResponse. # noqa: E501
74
- :type: list[V1ServiceExecution]
75
- """
76
-
77
- self._service_executions = service_executions
78
-
79
- def to_dict(self) -> dict:
80
- """Returns the model properties as a dict"""
81
- result = {}
82
-
83
- for attr, _ in six.iteritems(self.swagger_types):
84
- value = getattr(self, attr)
85
- if isinstance(value, list):
86
- result[attr] = list(map(
87
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
- value
89
- ))
90
- elif hasattr(value, "to_dict"):
91
- result[attr] = value.to_dict()
92
- elif isinstance(value, dict):
93
- result[attr] = dict(map(
94
- lambda item: (item[0], item[1].to_dict())
95
- if hasattr(item[1], "to_dict") else item,
96
- value.items()
97
- ))
98
- else:
99
- result[attr] = value
100
- if issubclass(V1ListServiceExecutionsResponse, dict):
101
- for key, value in self.items():
102
- result[key] = value
103
-
104
- return result
105
-
106
- def to_str(self) -> str:
107
- """Returns the string representation of the model"""
108
- return pprint.pformat(self.to_dict())
109
-
110
- def __repr__(self) -> str:
111
- """For `print` and `pprint`"""
112
- return self.to_str()
113
-
114
- def __eq__(self, other: 'V1ListServiceExecutionsResponse') -> bool:
115
- """Returns true if both objects are equal"""
116
- if not isinstance(other, V1ListServiceExecutionsResponse):
117
- return False
118
-
119
- return self.__dict__ == other.__dict__
120
-
121
- def __ne__(self, other: 'V1ListServiceExecutionsResponse') -> bool:
122
- """Returns true if both objects are not equal"""
123
- return not self == other
@@ -1,201 +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 V1ServiceArtifact(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
- 'id': 'str',
45
- 'kind': 'ServiceArtifactArtifactKind',
46
- 'name': 'str',
47
- 'value': 'str'
48
- }
49
-
50
- attribute_map = {
51
- 'id': 'id',
52
- 'kind': 'kind',
53
- 'name': 'name',
54
- 'value': 'value'
55
- }
56
-
57
- def __init__(self, id: 'str' =None, kind: 'ServiceArtifactArtifactKind' =None, name: 'str' =None, value: 'str' =None): # noqa: E501
58
- """V1ServiceArtifact - a model defined in Swagger""" # noqa: E501
59
- self._id = None
60
- self._kind = None
61
- self._name = None
62
- self._value = None
63
- self.discriminator = None
64
- if id is not None:
65
- self.id = id
66
- if kind is not None:
67
- self.kind = kind
68
- if name is not None:
69
- self.name = name
70
- if value is not None:
71
- self.value = value
72
-
73
- @property
74
- def id(self) -> 'str':
75
- """Gets the id of this V1ServiceArtifact. # noqa: E501
76
-
77
-
78
- :return: The id of this V1ServiceArtifact. # noqa: E501
79
- :rtype: str
80
- """
81
- return self._id
82
-
83
- @id.setter
84
- def id(self, id: 'str'):
85
- """Sets the id of this V1ServiceArtifact.
86
-
87
-
88
- :param id: The id of this V1ServiceArtifact. # noqa: E501
89
- :type: str
90
- """
91
-
92
- self._id = id
93
-
94
- @property
95
- def kind(self) -> 'ServiceArtifactArtifactKind':
96
- """Gets the kind of this V1ServiceArtifact. # noqa: E501
97
-
98
-
99
- :return: The kind of this V1ServiceArtifact. # noqa: E501
100
- :rtype: ServiceArtifactArtifactKind
101
- """
102
- return self._kind
103
-
104
- @kind.setter
105
- def kind(self, kind: 'ServiceArtifactArtifactKind'):
106
- """Sets the kind of this V1ServiceArtifact.
107
-
108
-
109
- :param kind: The kind of this V1ServiceArtifact. # noqa: E501
110
- :type: ServiceArtifactArtifactKind
111
- """
112
-
113
- self._kind = kind
114
-
115
- @property
116
- def name(self) -> 'str':
117
- """Gets the name of this V1ServiceArtifact. # noqa: E501
118
-
119
-
120
- :return: The name of this V1ServiceArtifact. # noqa: E501
121
- :rtype: str
122
- """
123
- return self._name
124
-
125
- @name.setter
126
- def name(self, name: 'str'):
127
- """Sets the name of this V1ServiceArtifact.
128
-
129
-
130
- :param name: The name of this V1ServiceArtifact. # noqa: E501
131
- :type: str
132
- """
133
-
134
- self._name = name
135
-
136
- @property
137
- def value(self) -> 'str':
138
- """Gets the value of this V1ServiceArtifact. # noqa: E501
139
-
140
-
141
- :return: The value of this V1ServiceArtifact. # noqa: E501
142
- :rtype: str
143
- """
144
- return self._value
145
-
146
- @value.setter
147
- def value(self, value: 'str'):
148
- """Sets the value of this V1ServiceArtifact.
149
-
150
-
151
- :param value: The value of this V1ServiceArtifact. # noqa: E501
152
- :type: str
153
- """
154
-
155
- self._value = value
156
-
157
- def to_dict(self) -> dict:
158
- """Returns the model properties as a dict"""
159
- result = {}
160
-
161
- for attr, _ in six.iteritems(self.swagger_types):
162
- value = getattr(self, attr)
163
- if isinstance(value, list):
164
- result[attr] = list(map(
165
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
166
- value
167
- ))
168
- elif hasattr(value, "to_dict"):
169
- result[attr] = value.to_dict()
170
- elif isinstance(value, dict):
171
- result[attr] = dict(map(
172
- lambda item: (item[0], item[1].to_dict())
173
- if hasattr(item[1], "to_dict") else item,
174
- value.items()
175
- ))
176
- else:
177
- result[attr] = value
178
- if issubclass(V1ServiceArtifact, dict):
179
- for key, value in self.items():
180
- result[key] = value
181
-
182
- return result
183
-
184
- def to_str(self) -> str:
185
- """Returns the string representation of the model"""
186
- return pprint.pformat(self.to_dict())
187
-
188
- def __repr__(self) -> str:
189
- """For `print` and `pprint`"""
190
- return self.to_str()
191
-
192
- def __eq__(self, other: 'V1ServiceArtifact') -> bool:
193
- """Returns true if both objects are equal"""
194
- if not isinstance(other, V1ServiceArtifact):
195
- return False
196
-
197
- return self.__dict__ == other.__dict__
198
-
199
- def __ne__(self, other: 'V1ServiceArtifact') -> bool:
200
- """Returns true if both objects are not equal"""
201
- return not self == other