lightning-sdk 2025.10.14__py3-none-any.whl → 2025.10.23__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 (76) hide show
  1. lightning_sdk/__init__.py +6 -3
  2. lightning_sdk/api/base_studio_api.py +13 -9
  3. lightning_sdk/api/job_api.py +4 -1
  4. lightning_sdk/api/license_api.py +26 -59
  5. lightning_sdk/api/studio_api.py +7 -2
  6. lightning_sdk/base_studio.py +30 -17
  7. lightning_sdk/cli/base_studio/list.py +1 -3
  8. lightning_sdk/cli/entrypoint.py +11 -34
  9. lightning_sdk/cli/groups.py +7 -0
  10. lightning_sdk/cli/license/__init__.py +14 -0
  11. lightning_sdk/cli/license/get.py +15 -0
  12. lightning_sdk/cli/license/list.py +45 -0
  13. lightning_sdk/cli/license/set.py +13 -0
  14. lightning_sdk/cli/studio/connect.py +42 -92
  15. lightning_sdk/cli/studio/create.py +23 -1
  16. lightning_sdk/cli/studio/start.py +12 -2
  17. lightning_sdk/cli/utils/get_base_studio.py +24 -0
  18. lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
  19. lightning_sdk/cli/utils/logging.py +121 -0
  20. lightning_sdk/cli/utils/ssh_connection.py +1 -1
  21. lightning_sdk/constants.py +1 -0
  22. lightning_sdk/helpers.py +53 -34
  23. lightning_sdk/job/base.py +7 -0
  24. lightning_sdk/job/job.py +8 -0
  25. lightning_sdk/job/v1.py +3 -0
  26. lightning_sdk/job/v2.py +4 -0
  27. lightning_sdk/lightning_cloud/login.py +260 -10
  28. lightning_sdk/lightning_cloud/openapi/__init__.py +16 -3
  29. lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +279 -0
  30. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +117 -0
  31. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +108 -108
  32. lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -3
  33. lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
  37. lightning_sdk/lightning_cloud/openapi/models/update1.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +29 -3
  45. lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/{v1_list_product_licenses_response.py → v1_list_license_response.py} +16 -16
  51. lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +53 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +139 -191
  61. lightning_sdk/lightning_cloud/openapi/models/{v1_product_license_check_response.py → v1_validate_license_response.py} +21 -21
  62. lightning_sdk/lightning_cloud/rest_client.py +48 -45
  63. lightning_sdk/machine.py +5 -0
  64. lightning_sdk/pipeline/steps.py +1 -0
  65. lightning_sdk/studio.py +55 -13
  66. lightning_sdk/utils/config.py +18 -3
  67. lightning_sdk/utils/license.py +13 -0
  68. lightning_sdk/utils/resolve.py +6 -1
  69. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/METADATA +1 -1
  70. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/RECORD +74 -54
  71. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +0 -435
  72. lightning_sdk/services/license.py +0 -363
  73. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/LICENSE +0 -0
  74. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/WHEEL +0 -0
  75. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/entry_points.txt +0 -0
  76. {lightning_sdk-2025.10.14.dist-info → lightning_sdk-2025.10.23.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,123 @@
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 V1ListPlatformNotificationsResponse(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
+ 'notifications': 'list[V1PlatformNotification]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'notifications': 'notifications'
49
+ }
50
+
51
+ def __init__(self, notifications: 'list[V1PlatformNotification]' =None): # noqa: E501
52
+ """V1ListPlatformNotificationsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._notifications = None
54
+ self.discriminator = None
55
+ if notifications is not None:
56
+ self.notifications = notifications
57
+
58
+ @property
59
+ def notifications(self) -> 'list[V1PlatformNotification]':
60
+ """Gets the notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
61
+
62
+
63
+ :return: The notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
64
+ :rtype: list[V1PlatformNotification]
65
+ """
66
+ return self._notifications
67
+
68
+ @notifications.setter
69
+ def notifications(self, notifications: 'list[V1PlatformNotification]'):
70
+ """Sets the notifications of this V1ListPlatformNotificationsResponse.
71
+
72
+
73
+ :param notifications: The notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
74
+ :type: list[V1PlatformNotification]
75
+ """
76
+
77
+ self._notifications = notifications
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(V1ListPlatformNotificationsResponse, 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: 'V1ListPlatformNotificationsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListPlatformNotificationsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListPlatformNotificationsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -46,6 +46,7 @@ class V1Machine(object):
46
46
  'created_at': 'datetime',
47
47
  'id': 'str',
48
48
  'instance_type': 'str',
49
+ 'management_api_url': 'str',
49
50
  'name': 'str',
50
51
  'org_id': 'str',
51
52
  'provider': 'str',
@@ -68,6 +69,7 @@ class V1Machine(object):
68
69
  'created_at': 'createdAt',
69
70
  'id': 'id',
70
71
  'instance_type': 'instanceType',
72
+ 'management_api_url': 'managementApiUrl',
71
73
  'name': 'name',
72
74
  'org_id': 'orgId',
73
75
  'provider': 'provider',
@@ -84,13 +86,14 @@ class V1Machine(object):
84
86
  'warning_message': 'warningMessage'
85
87
  }
86
88
 
87
- def __init__(self, address: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, instance_type: 'str' =None, name: 'str' =None, org_id: 'str' =None, provider: 'str' =None, provider_instance_id: 'str' =None, provider_region: 'str' =None, provisioning_method: 'str' =None, ready_at: 'datetime' =None, resource_id: 'str' =None, resource_type: 'str' =None, resources: 'V1Resources' =None, status: 'str' =None, unschedulable: 'bool' =None, updated_at: 'datetime' =None, warning_message: 'str' =None): # noqa: E501
89
+ def __init__(self, address: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, instance_type: 'str' =None, management_api_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, provider: 'str' =None, provider_instance_id: 'str' =None, provider_region: 'str' =None, provisioning_method: 'str' =None, ready_at: 'datetime' =None, resource_id: 'str' =None, resource_type: 'str' =None, resources: 'V1Resources' =None, status: 'str' =None, unschedulable: 'bool' =None, updated_at: 'datetime' =None, warning_message: 'str' =None): # noqa: E501
88
90
  """V1Machine - a model defined in Swagger""" # noqa: E501
89
91
  self._address = None
90
92
  self._cluster_id = None
91
93
  self._created_at = None
92
94
  self._id = None
93
95
  self._instance_type = None
96
+ self._management_api_url = None
94
97
  self._name = None
95
98
  self._org_id = None
96
99
  self._provider = None
@@ -116,6 +119,8 @@ class V1Machine(object):
116
119
  self.id = id
117
120
  if instance_type is not None:
118
121
  self.instance_type = instance_type
122
+ if management_api_url is not None:
123
+ self.management_api_url = management_api_url
119
124
  if name is not None:
120
125
  self.name = name
121
126
  if org_id is not None:
@@ -250,6 +255,27 @@ class V1Machine(object):
250
255
 
251
256
  self._instance_type = instance_type
252
257
 
258
+ @property
259
+ def management_api_url(self) -> 'str':
260
+ """Gets the management_api_url of this V1Machine. # noqa: E501
261
+
262
+
263
+ :return: The management_api_url of this V1Machine. # noqa: E501
264
+ :rtype: str
265
+ """
266
+ return self._management_api_url
267
+
268
+ @management_api_url.setter
269
+ def management_api_url(self, management_api_url: 'str'):
270
+ """Sets the management_api_url of this V1Machine.
271
+
272
+
273
+ :param management_api_url: The management_api_url of this V1Machine. # noqa: E501
274
+ :type: str
275
+ """
276
+
277
+ self._management_api_url = management_api_url
278
+
253
279
  @property
254
280
  def name(self) -> 'str':
255
281
  """Gets the name of this V1Machine. # noqa: E501
@@ -0,0 +1,279 @@
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 V1PlatformNotification(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
+ 'date_from': 'datetime',
45
+ 'date_to': 'datetime',
46
+ 'id': 'str',
47
+ 'message': 'str',
48
+ 'path': 'str',
49
+ 'severity': 'str',
50
+ 'title': 'str'
51
+ }
52
+
53
+ attribute_map = {
54
+ 'date_from': 'dateFrom',
55
+ 'date_to': 'dateTo',
56
+ 'id': 'id',
57
+ 'message': 'message',
58
+ 'path': 'path',
59
+ 'severity': 'severity',
60
+ 'title': 'title'
61
+ }
62
+
63
+ def __init__(self, date_from: 'datetime' =None, date_to: 'datetime' =None, id: 'str' =None, message: 'str' =None, path: 'str' =None, severity: 'str' =None, title: 'str' =None): # noqa: E501
64
+ """V1PlatformNotification - a model defined in Swagger""" # noqa: E501
65
+ self._date_from = None
66
+ self._date_to = None
67
+ self._id = None
68
+ self._message = None
69
+ self._path = None
70
+ self._severity = None
71
+ self._title = None
72
+ self.discriminator = None
73
+ if date_from is not None:
74
+ self.date_from = date_from
75
+ if date_to is not None:
76
+ self.date_to = date_to
77
+ if id is not None:
78
+ self.id = id
79
+ if message is not None:
80
+ self.message = message
81
+ if path is not None:
82
+ self.path = path
83
+ if severity is not None:
84
+ self.severity = severity
85
+ if title is not None:
86
+ self.title = title
87
+
88
+ @property
89
+ def date_from(self) -> 'datetime':
90
+ """Gets the date_from of this V1PlatformNotification. # noqa: E501
91
+
92
+
93
+ :return: The date_from of this V1PlatformNotification. # noqa: E501
94
+ :rtype: datetime
95
+ """
96
+ return self._date_from
97
+
98
+ @date_from.setter
99
+ def date_from(self, date_from: 'datetime'):
100
+ """Sets the date_from of this V1PlatformNotification.
101
+
102
+
103
+ :param date_from: The date_from of this V1PlatformNotification. # noqa: E501
104
+ :type: datetime
105
+ """
106
+
107
+ self._date_from = date_from
108
+
109
+ @property
110
+ def date_to(self) -> 'datetime':
111
+ """Gets the date_to of this V1PlatformNotification. # noqa: E501
112
+
113
+
114
+ :return: The date_to of this V1PlatformNotification. # noqa: E501
115
+ :rtype: datetime
116
+ """
117
+ return self._date_to
118
+
119
+ @date_to.setter
120
+ def date_to(self, date_to: 'datetime'):
121
+ """Sets the date_to of this V1PlatformNotification.
122
+
123
+
124
+ :param date_to: The date_to of this V1PlatformNotification. # noqa: E501
125
+ :type: datetime
126
+ """
127
+
128
+ self._date_to = date_to
129
+
130
+ @property
131
+ def id(self) -> 'str':
132
+ """Gets the id of this V1PlatformNotification. # noqa: E501
133
+
134
+
135
+ :return: The id of this V1PlatformNotification. # noqa: E501
136
+ :rtype: str
137
+ """
138
+ return self._id
139
+
140
+ @id.setter
141
+ def id(self, id: 'str'):
142
+ """Sets the id of this V1PlatformNotification.
143
+
144
+
145
+ :param id: The id of this V1PlatformNotification. # noqa: E501
146
+ :type: str
147
+ """
148
+
149
+ self._id = id
150
+
151
+ @property
152
+ def message(self) -> 'str':
153
+ """Gets the message of this V1PlatformNotification. # noqa: E501
154
+
155
+
156
+ :return: The message of this V1PlatformNotification. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._message
160
+
161
+ @message.setter
162
+ def message(self, message: 'str'):
163
+ """Sets the message of this V1PlatformNotification.
164
+
165
+
166
+ :param message: The message of this V1PlatformNotification. # noqa: E501
167
+ :type: str
168
+ """
169
+
170
+ self._message = message
171
+
172
+ @property
173
+ def path(self) -> 'str':
174
+ """Gets the path of this V1PlatformNotification. # noqa: E501
175
+
176
+
177
+ :return: The path of this V1PlatformNotification. # noqa: E501
178
+ :rtype: str
179
+ """
180
+ return self._path
181
+
182
+ @path.setter
183
+ def path(self, path: 'str'):
184
+ """Sets the path of this V1PlatformNotification.
185
+
186
+
187
+ :param path: The path of this V1PlatformNotification. # noqa: E501
188
+ :type: str
189
+ """
190
+
191
+ self._path = path
192
+
193
+ @property
194
+ def severity(self) -> 'str':
195
+ """Gets the severity of this V1PlatformNotification. # noqa: E501
196
+
197
+
198
+ :return: The severity of this V1PlatformNotification. # noqa: E501
199
+ :rtype: str
200
+ """
201
+ return self._severity
202
+
203
+ @severity.setter
204
+ def severity(self, severity: 'str'):
205
+ """Sets the severity of this V1PlatformNotification.
206
+
207
+
208
+ :param severity: The severity of this V1PlatformNotification. # noqa: E501
209
+ :type: str
210
+ """
211
+
212
+ self._severity = severity
213
+
214
+ @property
215
+ def title(self) -> 'str':
216
+ """Gets the title of this V1PlatformNotification. # noqa: E501
217
+
218
+
219
+ :return: The title of this V1PlatformNotification. # noqa: E501
220
+ :rtype: str
221
+ """
222
+ return self._title
223
+
224
+ @title.setter
225
+ def title(self, title: 'str'):
226
+ """Sets the title of this V1PlatformNotification.
227
+
228
+
229
+ :param title: The title of this V1PlatformNotification. # noqa: E501
230
+ :type: str
231
+ """
232
+
233
+ self._title = title
234
+
235
+ def to_dict(self) -> dict:
236
+ """Returns the model properties as a dict"""
237
+ result = {}
238
+
239
+ for attr, _ in six.iteritems(self.swagger_types):
240
+ value = getattr(self, attr)
241
+ if isinstance(value, list):
242
+ result[attr] = list(map(
243
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
244
+ value
245
+ ))
246
+ elif hasattr(value, "to_dict"):
247
+ result[attr] = value.to_dict()
248
+ elif isinstance(value, dict):
249
+ result[attr] = dict(map(
250
+ lambda item: (item[0], item[1].to_dict())
251
+ if hasattr(item[1], "to_dict") else item,
252
+ value.items()
253
+ ))
254
+ else:
255
+ result[attr] = value
256
+ if issubclass(V1PlatformNotification, dict):
257
+ for key, value in self.items():
258
+ result[key] = value
259
+
260
+ return result
261
+
262
+ def to_str(self) -> str:
263
+ """Returns the string representation of the model"""
264
+ return pprint.pformat(self.to_dict())
265
+
266
+ def __repr__(self) -> str:
267
+ """For `print` and `pprint`"""
268
+ return self.to_str()
269
+
270
+ def __eq__(self, other: 'V1PlatformNotification') -> bool:
271
+ """Returns true if both objects are equal"""
272
+ if not isinstance(other, V1PlatformNotification):
273
+ return False
274
+
275
+ return self.__dict__ == other.__dict__
276
+
277
+ def __ne__(self, other: 'V1PlatformNotification') -> bool:
278
+ """Returns true if both objects are not equal"""
279
+ return not self == other
@@ -0,0 +1,97 @@
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 V1ResetAPIKeyRequest(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
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1ResetAPIKeyRequest - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1ResetAPIKeyRequest, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1ResetAPIKeyRequest') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1ResetAPIKeyRequest):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1ResetAPIKeyRequest') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -0,0 +1,123 @@
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 V1ResetAPIKeyResponse(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
+ 'api_key': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'api_key': 'apiKey'
49
+ }
50
+
51
+ def __init__(self, api_key: 'str' =None): # noqa: E501
52
+ """V1ResetAPIKeyResponse - a model defined in Swagger""" # noqa: E501
53
+ self._api_key = None
54
+ self.discriminator = None
55
+ if api_key is not None:
56
+ self.api_key = api_key
57
+
58
+ @property
59
+ def api_key(self) -> 'str':
60
+ """Gets the api_key of this V1ResetAPIKeyResponse. # noqa: E501
61
+
62
+
63
+ :return: The api_key of this V1ResetAPIKeyResponse. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._api_key
67
+
68
+ @api_key.setter
69
+ def api_key(self, api_key: 'str'):
70
+ """Sets the api_key of this V1ResetAPIKeyResponse.
71
+
72
+
73
+ :param api_key: The api_key of this V1ResetAPIKeyResponse. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._api_key = api_key
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(V1ResetAPIKeyResponse, 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: 'V1ResetAPIKeyResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ResetAPIKeyResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ResetAPIKeyResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other