lightning-sdk 2025.9.2__py3-none-any.whl → 2025.9.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +19 -0
- lightning_sdk/api/studio_api.py +25 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -128
- lightning_sdk/llm/llm.py +82 -7
- lightning_sdk/llm/public_assistants.py +2 -2
- lightning_sdk/studio.py +30 -3
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/RECORD +49 -30
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,565 @@
|
|
|
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 V1IncidentEvent(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
|
+
'closing': 'bool',
|
|
45
|
+
'cluster_id': 'str',
|
|
46
|
+
'created_at': 'datetime',
|
|
47
|
+
'current_value': 'float',
|
|
48
|
+
'id': 'str',
|
|
49
|
+
'incident_id': 'str',
|
|
50
|
+
'k8s': 'V1K8sIncidentIndexes',
|
|
51
|
+
'message': 'str',
|
|
52
|
+
'multiple_event': 'bool',
|
|
53
|
+
'notified': 'bool',
|
|
54
|
+
'previous_value': 'float',
|
|
55
|
+
'project_id': 'str',
|
|
56
|
+
'resource': 'str',
|
|
57
|
+
'severity': 'V1IncidentSeverity',
|
|
58
|
+
'threshold': 'float',
|
|
59
|
+
'timestamp': 'datetime',
|
|
60
|
+
'type': 'V1IncidentType',
|
|
61
|
+
'updated_at': 'datetime'
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
attribute_map = {
|
|
65
|
+
'closing': 'closing',
|
|
66
|
+
'cluster_id': 'clusterId',
|
|
67
|
+
'created_at': 'createdAt',
|
|
68
|
+
'current_value': 'currentValue',
|
|
69
|
+
'id': 'id',
|
|
70
|
+
'incident_id': 'incidentId',
|
|
71
|
+
'k8s': 'k8s',
|
|
72
|
+
'message': 'message',
|
|
73
|
+
'multiple_event': 'multipleEvent',
|
|
74
|
+
'notified': 'notified',
|
|
75
|
+
'previous_value': 'previousValue',
|
|
76
|
+
'project_id': 'projectId',
|
|
77
|
+
'resource': 'resource',
|
|
78
|
+
'severity': 'severity',
|
|
79
|
+
'threshold': 'threshold',
|
|
80
|
+
'timestamp': 'timestamp',
|
|
81
|
+
'type': 'type',
|
|
82
|
+
'updated_at': 'updatedAt'
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
def __init__(self, closing: 'bool' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, current_value: 'float' =None, id: 'str' =None, incident_id: 'str' =None, k8s: 'V1K8sIncidentIndexes' =None, message: 'str' =None, multiple_event: 'bool' =None, notified: 'bool' =None, previous_value: 'float' =None, project_id: 'str' =None, resource: 'str' =None, severity: 'V1IncidentSeverity' =None, threshold: 'float' =None, timestamp: 'datetime' =None, type: 'V1IncidentType' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
86
|
+
"""V1IncidentEvent - a model defined in Swagger""" # noqa: E501
|
|
87
|
+
self._closing = None
|
|
88
|
+
self._cluster_id = None
|
|
89
|
+
self._created_at = None
|
|
90
|
+
self._current_value = None
|
|
91
|
+
self._id = None
|
|
92
|
+
self._incident_id = None
|
|
93
|
+
self._k8s = None
|
|
94
|
+
self._message = None
|
|
95
|
+
self._multiple_event = None
|
|
96
|
+
self._notified = None
|
|
97
|
+
self._previous_value = None
|
|
98
|
+
self._project_id = None
|
|
99
|
+
self._resource = None
|
|
100
|
+
self._severity = None
|
|
101
|
+
self._threshold = None
|
|
102
|
+
self._timestamp = None
|
|
103
|
+
self._type = None
|
|
104
|
+
self._updated_at = None
|
|
105
|
+
self.discriminator = None
|
|
106
|
+
if closing is not None:
|
|
107
|
+
self.closing = closing
|
|
108
|
+
if cluster_id is not None:
|
|
109
|
+
self.cluster_id = cluster_id
|
|
110
|
+
if created_at is not None:
|
|
111
|
+
self.created_at = created_at
|
|
112
|
+
if current_value is not None:
|
|
113
|
+
self.current_value = current_value
|
|
114
|
+
if id is not None:
|
|
115
|
+
self.id = id
|
|
116
|
+
if incident_id is not None:
|
|
117
|
+
self.incident_id = incident_id
|
|
118
|
+
if k8s is not None:
|
|
119
|
+
self.k8s = k8s
|
|
120
|
+
if message is not None:
|
|
121
|
+
self.message = message
|
|
122
|
+
if multiple_event is not None:
|
|
123
|
+
self.multiple_event = multiple_event
|
|
124
|
+
if notified is not None:
|
|
125
|
+
self.notified = notified
|
|
126
|
+
if previous_value is not None:
|
|
127
|
+
self.previous_value = previous_value
|
|
128
|
+
if project_id is not None:
|
|
129
|
+
self.project_id = project_id
|
|
130
|
+
if resource is not None:
|
|
131
|
+
self.resource = resource
|
|
132
|
+
if severity is not None:
|
|
133
|
+
self.severity = severity
|
|
134
|
+
if threshold is not None:
|
|
135
|
+
self.threshold = threshold
|
|
136
|
+
if timestamp is not None:
|
|
137
|
+
self.timestamp = timestamp
|
|
138
|
+
if type is not None:
|
|
139
|
+
self.type = type
|
|
140
|
+
if updated_at is not None:
|
|
141
|
+
self.updated_at = updated_at
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def closing(self) -> 'bool':
|
|
145
|
+
"""Gets the closing of this V1IncidentEvent. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The closing of this V1IncidentEvent. # noqa: E501
|
|
149
|
+
:rtype: bool
|
|
150
|
+
"""
|
|
151
|
+
return self._closing
|
|
152
|
+
|
|
153
|
+
@closing.setter
|
|
154
|
+
def closing(self, closing: 'bool'):
|
|
155
|
+
"""Sets the closing of this V1IncidentEvent.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param closing: The closing of this V1IncidentEvent. # noqa: E501
|
|
159
|
+
:type: bool
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._closing = closing
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def cluster_id(self) -> 'str':
|
|
166
|
+
"""Gets the cluster_id of this V1IncidentEvent. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The cluster_id of this V1IncidentEvent. # noqa: E501
|
|
170
|
+
:rtype: str
|
|
171
|
+
"""
|
|
172
|
+
return self._cluster_id
|
|
173
|
+
|
|
174
|
+
@cluster_id.setter
|
|
175
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
176
|
+
"""Sets the cluster_id of this V1IncidentEvent.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param cluster_id: The cluster_id of this V1IncidentEvent. # noqa: E501
|
|
180
|
+
:type: str
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._cluster_id = cluster_id
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def created_at(self) -> 'datetime':
|
|
187
|
+
"""Gets the created_at of this V1IncidentEvent. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The created_at of this V1IncidentEvent. # noqa: E501
|
|
191
|
+
:rtype: datetime
|
|
192
|
+
"""
|
|
193
|
+
return self._created_at
|
|
194
|
+
|
|
195
|
+
@created_at.setter
|
|
196
|
+
def created_at(self, created_at: 'datetime'):
|
|
197
|
+
"""Sets the created_at of this V1IncidentEvent.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param created_at: The created_at of this V1IncidentEvent. # noqa: E501
|
|
201
|
+
:type: datetime
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._created_at = created_at
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def current_value(self) -> 'float':
|
|
208
|
+
"""Gets the current_value of this V1IncidentEvent. # noqa: E501
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:return: The current_value of this V1IncidentEvent. # noqa: E501
|
|
212
|
+
:rtype: float
|
|
213
|
+
"""
|
|
214
|
+
return self._current_value
|
|
215
|
+
|
|
216
|
+
@current_value.setter
|
|
217
|
+
def current_value(self, current_value: 'float'):
|
|
218
|
+
"""Sets the current_value of this V1IncidentEvent.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:param current_value: The current_value of this V1IncidentEvent. # noqa: E501
|
|
222
|
+
:type: float
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
self._current_value = current_value
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
def id(self) -> 'str':
|
|
229
|
+
"""Gets the id of this V1IncidentEvent. # noqa: E501
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:return: The id of this V1IncidentEvent. # noqa: E501
|
|
233
|
+
:rtype: str
|
|
234
|
+
"""
|
|
235
|
+
return self._id
|
|
236
|
+
|
|
237
|
+
@id.setter
|
|
238
|
+
def id(self, id: 'str'):
|
|
239
|
+
"""Sets the id of this V1IncidentEvent.
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:param id: The id of this V1IncidentEvent. # noqa: E501
|
|
243
|
+
:type: str
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
self._id = id
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
def incident_id(self) -> 'str':
|
|
250
|
+
"""Gets the incident_id of this V1IncidentEvent. # noqa: E501
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
:return: The incident_id of this V1IncidentEvent. # noqa: E501
|
|
254
|
+
:rtype: str
|
|
255
|
+
"""
|
|
256
|
+
return self._incident_id
|
|
257
|
+
|
|
258
|
+
@incident_id.setter
|
|
259
|
+
def incident_id(self, incident_id: 'str'):
|
|
260
|
+
"""Sets the incident_id of this V1IncidentEvent.
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
:param incident_id: The incident_id of this V1IncidentEvent. # noqa: E501
|
|
264
|
+
:type: str
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
self._incident_id = incident_id
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
def k8s(self) -> 'V1K8sIncidentIndexes':
|
|
271
|
+
"""Gets the k8s of this V1IncidentEvent. # noqa: E501
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
:return: The k8s of this V1IncidentEvent. # noqa: E501
|
|
275
|
+
:rtype: V1K8sIncidentIndexes
|
|
276
|
+
"""
|
|
277
|
+
return self._k8s
|
|
278
|
+
|
|
279
|
+
@k8s.setter
|
|
280
|
+
def k8s(self, k8s: 'V1K8sIncidentIndexes'):
|
|
281
|
+
"""Sets the k8s of this V1IncidentEvent.
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
:param k8s: The k8s of this V1IncidentEvent. # noqa: E501
|
|
285
|
+
:type: V1K8sIncidentIndexes
|
|
286
|
+
"""
|
|
287
|
+
|
|
288
|
+
self._k8s = k8s
|
|
289
|
+
|
|
290
|
+
@property
|
|
291
|
+
def message(self) -> 'str':
|
|
292
|
+
"""Gets the message of this V1IncidentEvent. # noqa: E501
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:return: The message of this V1IncidentEvent. # noqa: E501
|
|
296
|
+
:rtype: str
|
|
297
|
+
"""
|
|
298
|
+
return self._message
|
|
299
|
+
|
|
300
|
+
@message.setter
|
|
301
|
+
def message(self, message: 'str'):
|
|
302
|
+
"""Sets the message of this V1IncidentEvent.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
:param message: The message of this V1IncidentEvent. # noqa: E501
|
|
306
|
+
:type: str
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
self._message = message
|
|
310
|
+
|
|
311
|
+
@property
|
|
312
|
+
def multiple_event(self) -> 'bool':
|
|
313
|
+
"""Gets the multiple_event of this V1IncidentEvent. # noqa: E501
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:return: The multiple_event of this V1IncidentEvent. # noqa: E501
|
|
317
|
+
:rtype: bool
|
|
318
|
+
"""
|
|
319
|
+
return self._multiple_event
|
|
320
|
+
|
|
321
|
+
@multiple_event.setter
|
|
322
|
+
def multiple_event(self, multiple_event: 'bool'):
|
|
323
|
+
"""Sets the multiple_event of this V1IncidentEvent.
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
:param multiple_event: The multiple_event of this V1IncidentEvent. # noqa: E501
|
|
327
|
+
:type: bool
|
|
328
|
+
"""
|
|
329
|
+
|
|
330
|
+
self._multiple_event = multiple_event
|
|
331
|
+
|
|
332
|
+
@property
|
|
333
|
+
def notified(self) -> 'bool':
|
|
334
|
+
"""Gets the notified of this V1IncidentEvent. # noqa: E501
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:return: The notified of this V1IncidentEvent. # noqa: E501
|
|
338
|
+
:rtype: bool
|
|
339
|
+
"""
|
|
340
|
+
return self._notified
|
|
341
|
+
|
|
342
|
+
@notified.setter
|
|
343
|
+
def notified(self, notified: 'bool'):
|
|
344
|
+
"""Sets the notified of this V1IncidentEvent.
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
:param notified: The notified of this V1IncidentEvent. # noqa: E501
|
|
348
|
+
:type: bool
|
|
349
|
+
"""
|
|
350
|
+
|
|
351
|
+
self._notified = notified
|
|
352
|
+
|
|
353
|
+
@property
|
|
354
|
+
def previous_value(self) -> 'float':
|
|
355
|
+
"""Gets the previous_value of this V1IncidentEvent. # noqa: E501
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
:return: The previous_value of this V1IncidentEvent. # noqa: E501
|
|
359
|
+
:rtype: float
|
|
360
|
+
"""
|
|
361
|
+
return self._previous_value
|
|
362
|
+
|
|
363
|
+
@previous_value.setter
|
|
364
|
+
def previous_value(self, previous_value: 'float'):
|
|
365
|
+
"""Sets the previous_value of this V1IncidentEvent.
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
:param previous_value: The previous_value of this V1IncidentEvent. # noqa: E501
|
|
369
|
+
:type: float
|
|
370
|
+
"""
|
|
371
|
+
|
|
372
|
+
self._previous_value = previous_value
|
|
373
|
+
|
|
374
|
+
@property
|
|
375
|
+
def project_id(self) -> 'str':
|
|
376
|
+
"""Gets the project_id of this V1IncidentEvent. # noqa: E501
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
:return: The project_id of this V1IncidentEvent. # noqa: E501
|
|
380
|
+
:rtype: str
|
|
381
|
+
"""
|
|
382
|
+
return self._project_id
|
|
383
|
+
|
|
384
|
+
@project_id.setter
|
|
385
|
+
def project_id(self, project_id: 'str'):
|
|
386
|
+
"""Sets the project_id of this V1IncidentEvent.
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
:param project_id: The project_id of this V1IncidentEvent. # noqa: E501
|
|
390
|
+
:type: str
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
self._project_id = project_id
|
|
394
|
+
|
|
395
|
+
@property
|
|
396
|
+
def resource(self) -> 'str':
|
|
397
|
+
"""Gets the resource of this V1IncidentEvent. # noqa: E501
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:return: The resource of this V1IncidentEvent. # noqa: E501
|
|
401
|
+
:rtype: str
|
|
402
|
+
"""
|
|
403
|
+
return self._resource
|
|
404
|
+
|
|
405
|
+
@resource.setter
|
|
406
|
+
def resource(self, resource: 'str'):
|
|
407
|
+
"""Sets the resource of this V1IncidentEvent.
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
:param resource: The resource of this V1IncidentEvent. # noqa: E501
|
|
411
|
+
:type: str
|
|
412
|
+
"""
|
|
413
|
+
|
|
414
|
+
self._resource = resource
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
def severity(self) -> 'V1IncidentSeverity':
|
|
418
|
+
"""Gets the severity of this V1IncidentEvent. # noqa: E501
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:return: The severity of this V1IncidentEvent. # noqa: E501
|
|
422
|
+
:rtype: V1IncidentSeverity
|
|
423
|
+
"""
|
|
424
|
+
return self._severity
|
|
425
|
+
|
|
426
|
+
@severity.setter
|
|
427
|
+
def severity(self, severity: 'V1IncidentSeverity'):
|
|
428
|
+
"""Sets the severity of this V1IncidentEvent.
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
:param severity: The severity of this V1IncidentEvent. # noqa: E501
|
|
432
|
+
:type: V1IncidentSeverity
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
self._severity = severity
|
|
436
|
+
|
|
437
|
+
@property
|
|
438
|
+
def threshold(self) -> 'float':
|
|
439
|
+
"""Gets the threshold of this V1IncidentEvent. # noqa: E501
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
:return: The threshold of this V1IncidentEvent. # noqa: E501
|
|
443
|
+
:rtype: float
|
|
444
|
+
"""
|
|
445
|
+
return self._threshold
|
|
446
|
+
|
|
447
|
+
@threshold.setter
|
|
448
|
+
def threshold(self, threshold: 'float'):
|
|
449
|
+
"""Sets the threshold of this V1IncidentEvent.
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
:param threshold: The threshold of this V1IncidentEvent. # noqa: E501
|
|
453
|
+
:type: float
|
|
454
|
+
"""
|
|
455
|
+
|
|
456
|
+
self._threshold = threshold
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
def timestamp(self) -> 'datetime':
|
|
460
|
+
"""Gets the timestamp of this V1IncidentEvent. # noqa: E501
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
:return: The timestamp of this V1IncidentEvent. # noqa: E501
|
|
464
|
+
:rtype: datetime
|
|
465
|
+
"""
|
|
466
|
+
return self._timestamp
|
|
467
|
+
|
|
468
|
+
@timestamp.setter
|
|
469
|
+
def timestamp(self, timestamp: 'datetime'):
|
|
470
|
+
"""Sets the timestamp of this V1IncidentEvent.
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
:param timestamp: The timestamp of this V1IncidentEvent. # noqa: E501
|
|
474
|
+
:type: datetime
|
|
475
|
+
"""
|
|
476
|
+
|
|
477
|
+
self._timestamp = timestamp
|
|
478
|
+
|
|
479
|
+
@property
|
|
480
|
+
def type(self) -> 'V1IncidentType':
|
|
481
|
+
"""Gets the type of this V1IncidentEvent. # noqa: E501
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
:return: The type of this V1IncidentEvent. # noqa: E501
|
|
485
|
+
:rtype: V1IncidentType
|
|
486
|
+
"""
|
|
487
|
+
return self._type
|
|
488
|
+
|
|
489
|
+
@type.setter
|
|
490
|
+
def type(self, type: 'V1IncidentType'):
|
|
491
|
+
"""Sets the type of this V1IncidentEvent.
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
:param type: The type of this V1IncidentEvent. # noqa: E501
|
|
495
|
+
:type: V1IncidentType
|
|
496
|
+
"""
|
|
497
|
+
|
|
498
|
+
self._type = type
|
|
499
|
+
|
|
500
|
+
@property
|
|
501
|
+
def updated_at(self) -> 'datetime':
|
|
502
|
+
"""Gets the updated_at of this V1IncidentEvent. # noqa: E501
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
:return: The updated_at of this V1IncidentEvent. # noqa: E501
|
|
506
|
+
:rtype: datetime
|
|
507
|
+
"""
|
|
508
|
+
return self._updated_at
|
|
509
|
+
|
|
510
|
+
@updated_at.setter
|
|
511
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
512
|
+
"""Sets the updated_at of this V1IncidentEvent.
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
:param updated_at: The updated_at of this V1IncidentEvent. # noqa: E501
|
|
516
|
+
:type: datetime
|
|
517
|
+
"""
|
|
518
|
+
|
|
519
|
+
self._updated_at = updated_at
|
|
520
|
+
|
|
521
|
+
def to_dict(self) -> dict:
|
|
522
|
+
"""Returns the model properties as a dict"""
|
|
523
|
+
result = {}
|
|
524
|
+
|
|
525
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
526
|
+
value = getattr(self, attr)
|
|
527
|
+
if isinstance(value, list):
|
|
528
|
+
result[attr] = list(map(
|
|
529
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
530
|
+
value
|
|
531
|
+
))
|
|
532
|
+
elif hasattr(value, "to_dict"):
|
|
533
|
+
result[attr] = value.to_dict()
|
|
534
|
+
elif isinstance(value, dict):
|
|
535
|
+
result[attr] = dict(map(
|
|
536
|
+
lambda item: (item[0], item[1].to_dict())
|
|
537
|
+
if hasattr(item[1], "to_dict") else item,
|
|
538
|
+
value.items()
|
|
539
|
+
))
|
|
540
|
+
else:
|
|
541
|
+
result[attr] = value
|
|
542
|
+
if issubclass(V1IncidentEvent, dict):
|
|
543
|
+
for key, value in self.items():
|
|
544
|
+
result[key] = value
|
|
545
|
+
|
|
546
|
+
return result
|
|
547
|
+
|
|
548
|
+
def to_str(self) -> str:
|
|
549
|
+
"""Returns the string representation of the model"""
|
|
550
|
+
return pprint.pformat(self.to_dict())
|
|
551
|
+
|
|
552
|
+
def __repr__(self) -> str:
|
|
553
|
+
"""For `print` and `pprint`"""
|
|
554
|
+
return self.to_str()
|
|
555
|
+
|
|
556
|
+
def __eq__(self, other: 'V1IncidentEvent') -> bool:
|
|
557
|
+
"""Returns true if both objects are equal"""
|
|
558
|
+
if not isinstance(other, V1IncidentEvent):
|
|
559
|
+
return False
|
|
560
|
+
|
|
561
|
+
return self.__dict__ == other.__dict__
|
|
562
|
+
|
|
563
|
+
def __ne__(self, other: 'V1IncidentEvent') -> bool:
|
|
564
|
+
"""Returns true if both objects are not equal"""
|
|
565
|
+
return not self == other
|
|
@@ -0,0 +1,105 @@
|
|
|
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 V1IncidentSeverity(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
UNSPECIFIED = "INCIDENT_SEVERITY_UNSPECIFIED"
|
|
41
|
+
INFO = "INCIDENT_SEVERITY_INFO"
|
|
42
|
+
WARNING = "INCIDENT_SEVERITY_WARNING"
|
|
43
|
+
CRITICAL = "INCIDENT_SEVERITY_CRITICAL"
|
|
44
|
+
"""
|
|
45
|
+
Attributes:
|
|
46
|
+
swagger_types (dict): The key is attribute name
|
|
47
|
+
and the value is attribute type.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
"""
|
|
51
|
+
swagger_types = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
attribute_map = {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self): # noqa: E501
|
|
58
|
+
"""V1IncidentSeverity - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> dict:
|
|
62
|
+
"""Returns the model properties as a dict"""
|
|
63
|
+
result = {}
|
|
64
|
+
|
|
65
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
66
|
+
value = getattr(self, attr)
|
|
67
|
+
if isinstance(value, list):
|
|
68
|
+
result[attr] = list(map(
|
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
70
|
+
value
|
|
71
|
+
))
|
|
72
|
+
elif hasattr(value, "to_dict"):
|
|
73
|
+
result[attr] = value.to_dict()
|
|
74
|
+
elif isinstance(value, dict):
|
|
75
|
+
result[attr] = dict(map(
|
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
|
78
|
+
value.items()
|
|
79
|
+
))
|
|
80
|
+
else:
|
|
81
|
+
result[attr] = value
|
|
82
|
+
if issubclass(V1IncidentSeverity, dict):
|
|
83
|
+
for key, value in self.items():
|
|
84
|
+
result[key] = value
|
|
85
|
+
|
|
86
|
+
return result
|
|
87
|
+
|
|
88
|
+
def to_str(self) -> str:
|
|
89
|
+
"""Returns the string representation of the model"""
|
|
90
|
+
return pprint.pformat(self.to_dict())
|
|
91
|
+
|
|
92
|
+
def __repr__(self) -> str:
|
|
93
|
+
"""For `print` and `pprint`"""
|
|
94
|
+
return self.to_str()
|
|
95
|
+
|
|
96
|
+
def __eq__(self, other: 'V1IncidentSeverity') -> bool:
|
|
97
|
+
"""Returns true if both objects are equal"""
|
|
98
|
+
if not isinstance(other, V1IncidentSeverity):
|
|
99
|
+
return False
|
|
100
|
+
|
|
101
|
+
return self.__dict__ == other.__dict__
|
|
102
|
+
|
|
103
|
+
def __ne__(self, other: 'V1IncidentSeverity') -> bool:
|
|
104
|
+
"""Returns true if both objects are not equal"""
|
|
105
|
+
return not self == other
|