lightning-sdk 0.2.15__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +7 -1
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/llm_api.py +24 -5
- lightning_sdk/api/studio_api.py +3 -0
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +14 -1
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
- lightning_sdk/cli/download.py +44 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/upload.py +2 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +747 -105
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/llm/llm.py +52 -8
- lightning_sdk/studio.py +32 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +74 -53
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,383 @@
|
|
|
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 V1DeploymentAlertingPolicy(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
|
+
'deployment_id': 'str',
|
|
45
|
+
'description': 'str',
|
|
46
|
+
'frequency': 'V1DeploymentAlertingPolicyFrequency',
|
|
47
|
+
'id': 'str',
|
|
48
|
+
'limit': 'float',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'operation': 'V1DeploymentAlertingPolicyOperation',
|
|
51
|
+
'project_id': 'str',
|
|
52
|
+
'severity': 'V1DeploymentAlertingPolicySeverity',
|
|
53
|
+
'type': 'V1DeploymentAlertingPolicyType',
|
|
54
|
+
'value': 'float'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
attribute_map = {
|
|
58
|
+
'deployment_id': 'deploymentId',
|
|
59
|
+
'description': 'description',
|
|
60
|
+
'frequency': 'frequency',
|
|
61
|
+
'id': 'id',
|
|
62
|
+
'limit': 'limit',
|
|
63
|
+
'name': 'name',
|
|
64
|
+
'operation': 'operation',
|
|
65
|
+
'project_id': 'projectId',
|
|
66
|
+
'severity': 'severity',
|
|
67
|
+
'type': 'type',
|
|
68
|
+
'value': 'value'
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
def __init__(self, deployment_id: 'str' =None, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, id: 'str' =None, limit: 'float' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, project_id: 'str' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None): # noqa: E501
|
|
72
|
+
"""V1DeploymentAlertingPolicy - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._deployment_id = None
|
|
74
|
+
self._description = None
|
|
75
|
+
self._frequency = None
|
|
76
|
+
self._id = None
|
|
77
|
+
self._limit = None
|
|
78
|
+
self._name = None
|
|
79
|
+
self._operation = None
|
|
80
|
+
self._project_id = None
|
|
81
|
+
self._severity = None
|
|
82
|
+
self._type = None
|
|
83
|
+
self._value = None
|
|
84
|
+
self.discriminator = None
|
|
85
|
+
if deployment_id is not None:
|
|
86
|
+
self.deployment_id = deployment_id
|
|
87
|
+
if description is not None:
|
|
88
|
+
self.description = description
|
|
89
|
+
if frequency is not None:
|
|
90
|
+
self.frequency = frequency
|
|
91
|
+
if id is not None:
|
|
92
|
+
self.id = id
|
|
93
|
+
if limit is not None:
|
|
94
|
+
self.limit = limit
|
|
95
|
+
if name is not None:
|
|
96
|
+
self.name = name
|
|
97
|
+
if operation is not None:
|
|
98
|
+
self.operation = operation
|
|
99
|
+
if project_id is not None:
|
|
100
|
+
self.project_id = project_id
|
|
101
|
+
if severity is not None:
|
|
102
|
+
self.severity = severity
|
|
103
|
+
if type is not None:
|
|
104
|
+
self.type = type
|
|
105
|
+
if value is not None:
|
|
106
|
+
self.value = value
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def deployment_id(self) -> 'str':
|
|
110
|
+
"""Gets the deployment_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The deployment_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._deployment_id
|
|
117
|
+
|
|
118
|
+
@deployment_id.setter
|
|
119
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
120
|
+
"""Sets the deployment_id of this V1DeploymentAlertingPolicy.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param deployment_id: The deployment_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
124
|
+
:type: str
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._deployment_id = deployment_id
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def description(self) -> 'str':
|
|
131
|
+
"""Gets the description of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The description of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._description
|
|
138
|
+
|
|
139
|
+
@description.setter
|
|
140
|
+
def description(self, description: 'str'):
|
|
141
|
+
"""Sets the description of this V1DeploymentAlertingPolicy.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param description: The description of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
145
|
+
:type: str
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._description = description
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def frequency(self) -> 'V1DeploymentAlertingPolicyFrequency':
|
|
152
|
+
"""Gets the frequency of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:return: The frequency of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
156
|
+
:rtype: V1DeploymentAlertingPolicyFrequency
|
|
157
|
+
"""
|
|
158
|
+
return self._frequency
|
|
159
|
+
|
|
160
|
+
@frequency.setter
|
|
161
|
+
def frequency(self, frequency: 'V1DeploymentAlertingPolicyFrequency'):
|
|
162
|
+
"""Sets the frequency of this V1DeploymentAlertingPolicy.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:param frequency: The frequency of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
166
|
+
:type: V1DeploymentAlertingPolicyFrequency
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._frequency = frequency
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def id(self) -> 'str':
|
|
173
|
+
"""Gets the id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:return: The id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
177
|
+
:rtype: str
|
|
178
|
+
"""
|
|
179
|
+
return self._id
|
|
180
|
+
|
|
181
|
+
@id.setter
|
|
182
|
+
def id(self, id: 'str'):
|
|
183
|
+
"""Sets the id of this V1DeploymentAlertingPolicy.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param id: The id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
187
|
+
:type: str
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
self._id = id
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def limit(self) -> 'float':
|
|
194
|
+
"""Gets the limit of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:return: The limit of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
198
|
+
:rtype: float
|
|
199
|
+
"""
|
|
200
|
+
return self._limit
|
|
201
|
+
|
|
202
|
+
@limit.setter
|
|
203
|
+
def limit(self, limit: 'float'):
|
|
204
|
+
"""Sets the limit of this V1DeploymentAlertingPolicy.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:param limit: The limit of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
208
|
+
:type: float
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
self._limit = limit
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def name(self) -> 'str':
|
|
215
|
+
"""Gets the name of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The name of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._name
|
|
222
|
+
|
|
223
|
+
@name.setter
|
|
224
|
+
def name(self, name: 'str'):
|
|
225
|
+
"""Sets the name of this V1DeploymentAlertingPolicy.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param name: The name of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._name = name
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
def operation(self) -> 'V1DeploymentAlertingPolicyOperation':
|
|
236
|
+
"""Gets the operation of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:return: The operation of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
240
|
+
:rtype: V1DeploymentAlertingPolicyOperation
|
|
241
|
+
"""
|
|
242
|
+
return self._operation
|
|
243
|
+
|
|
244
|
+
@operation.setter
|
|
245
|
+
def operation(self, operation: 'V1DeploymentAlertingPolicyOperation'):
|
|
246
|
+
"""Sets the operation of this V1DeploymentAlertingPolicy.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:param operation: The operation of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
250
|
+
:type: V1DeploymentAlertingPolicyOperation
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
self._operation = operation
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
def project_id(self) -> 'str':
|
|
257
|
+
"""Gets the project_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:return: The project_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
261
|
+
:rtype: str
|
|
262
|
+
"""
|
|
263
|
+
return self._project_id
|
|
264
|
+
|
|
265
|
+
@project_id.setter
|
|
266
|
+
def project_id(self, project_id: 'str'):
|
|
267
|
+
"""Sets the project_id of this V1DeploymentAlertingPolicy.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:param project_id: The project_id of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
271
|
+
:type: str
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
self._project_id = project_id
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def severity(self) -> 'V1DeploymentAlertingPolicySeverity':
|
|
278
|
+
"""Gets the severity of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
:return: The severity of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
282
|
+
:rtype: V1DeploymentAlertingPolicySeverity
|
|
283
|
+
"""
|
|
284
|
+
return self._severity
|
|
285
|
+
|
|
286
|
+
@severity.setter
|
|
287
|
+
def severity(self, severity: 'V1DeploymentAlertingPolicySeverity'):
|
|
288
|
+
"""Sets the severity of this V1DeploymentAlertingPolicy.
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:param severity: The severity of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
292
|
+
:type: V1DeploymentAlertingPolicySeverity
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
self._severity = severity
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def type(self) -> 'V1DeploymentAlertingPolicyType':
|
|
299
|
+
"""Gets the type of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
:return: The type of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
303
|
+
:rtype: V1DeploymentAlertingPolicyType
|
|
304
|
+
"""
|
|
305
|
+
return self._type
|
|
306
|
+
|
|
307
|
+
@type.setter
|
|
308
|
+
def type(self, type: 'V1DeploymentAlertingPolicyType'):
|
|
309
|
+
"""Sets the type of this V1DeploymentAlertingPolicy.
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:param type: The type of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
313
|
+
:type: V1DeploymentAlertingPolicyType
|
|
314
|
+
"""
|
|
315
|
+
|
|
316
|
+
self._type = type
|
|
317
|
+
|
|
318
|
+
@property
|
|
319
|
+
def value(self) -> 'float':
|
|
320
|
+
"""Gets the value of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
:return: The value of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
324
|
+
:rtype: float
|
|
325
|
+
"""
|
|
326
|
+
return self._value
|
|
327
|
+
|
|
328
|
+
@value.setter
|
|
329
|
+
def value(self, value: 'float'):
|
|
330
|
+
"""Sets the value of this V1DeploymentAlertingPolicy.
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:param value: The value of this V1DeploymentAlertingPolicy. # noqa: E501
|
|
334
|
+
:type: float
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
self._value = value
|
|
338
|
+
|
|
339
|
+
def to_dict(self) -> dict:
|
|
340
|
+
"""Returns the model properties as a dict"""
|
|
341
|
+
result = {}
|
|
342
|
+
|
|
343
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
344
|
+
value = getattr(self, attr)
|
|
345
|
+
if isinstance(value, list):
|
|
346
|
+
result[attr] = list(map(
|
|
347
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
348
|
+
value
|
|
349
|
+
))
|
|
350
|
+
elif hasattr(value, "to_dict"):
|
|
351
|
+
result[attr] = value.to_dict()
|
|
352
|
+
elif isinstance(value, dict):
|
|
353
|
+
result[attr] = dict(map(
|
|
354
|
+
lambda item: (item[0], item[1].to_dict())
|
|
355
|
+
if hasattr(item[1], "to_dict") else item,
|
|
356
|
+
value.items()
|
|
357
|
+
))
|
|
358
|
+
else:
|
|
359
|
+
result[attr] = value
|
|
360
|
+
if issubclass(V1DeploymentAlertingPolicy, dict):
|
|
361
|
+
for key, value in self.items():
|
|
362
|
+
result[key] = value
|
|
363
|
+
|
|
364
|
+
return result
|
|
365
|
+
|
|
366
|
+
def to_str(self) -> str:
|
|
367
|
+
"""Returns the string representation of the model"""
|
|
368
|
+
return pprint.pformat(self.to_dict())
|
|
369
|
+
|
|
370
|
+
def __repr__(self) -> str:
|
|
371
|
+
"""For `print` and `pprint`"""
|
|
372
|
+
return self.to_str()
|
|
373
|
+
|
|
374
|
+
def __eq__(self, other: 'V1DeploymentAlertingPolicy') -> bool:
|
|
375
|
+
"""Returns true if both objects are equal"""
|
|
376
|
+
if not isinstance(other, V1DeploymentAlertingPolicy):
|
|
377
|
+
return False
|
|
378
|
+
|
|
379
|
+
return self.__dict__ == other.__dict__
|
|
380
|
+
|
|
381
|
+
def __ne__(self, other: 'V1DeploymentAlertingPolicy') -> bool:
|
|
382
|
+
"""Returns true if both objects are not equal"""
|
|
383
|
+
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 V1DeploymentAlertingPolicyFrequency(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
|
+
FREQUENCYUNSPECIFIED = "FrequencyUnspecified"
|
|
41
|
+
MINUTE = "Minute"
|
|
42
|
+
HOUR = "Hour"
|
|
43
|
+
DAY = "Day"
|
|
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
|
+
"""V1DeploymentAlertingPolicyFrequency - 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(V1DeploymentAlertingPolicyFrequency, 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: 'V1DeploymentAlertingPolicyFrequency') -> bool:
|
|
97
|
+
"""Returns true if both objects are equal"""
|
|
98
|
+
if not isinstance(other, V1DeploymentAlertingPolicyFrequency):
|
|
99
|
+
return False
|
|
100
|
+
|
|
101
|
+
return self.__dict__ == other.__dict__
|
|
102
|
+
|
|
103
|
+
def __ne__(self, other: 'V1DeploymentAlertingPolicyFrequency') -> bool:
|
|
104
|
+
"""Returns true if both objects are not equal"""
|
|
105
|
+
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 V1DeploymentAlertingPolicyOperation(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
|
+
OPERATIONUNSPECIFIED = "OperationUnspecified"
|
|
41
|
+
EQUAL = "Equal"
|
|
42
|
+
MORETHAN = "MoreThan"
|
|
43
|
+
LESSTHAN = "LessThan"
|
|
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
|
+
"""V1DeploymentAlertingPolicyOperation - 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(V1DeploymentAlertingPolicyOperation, 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: 'V1DeploymentAlertingPolicyOperation') -> bool:
|
|
97
|
+
"""Returns true if both objects are equal"""
|
|
98
|
+
if not isinstance(other, V1DeploymentAlertingPolicyOperation):
|
|
99
|
+
return False
|
|
100
|
+
|
|
101
|
+
return self.__dict__ == other.__dict__
|
|
102
|
+
|
|
103
|
+
def __ne__(self, other: 'V1DeploymentAlertingPolicyOperation') -> bool:
|
|
104
|
+
"""Returns true if both objects are not equal"""
|
|
105
|
+
return not self == other
|
|
@@ -0,0 +1,106 @@
|
|
|
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 V1DeploymentAlertingPolicySeverity(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
|
+
SEVERITYUNSPECIFIED = "SeverityUnspecified"
|
|
41
|
+
NONE = "None"
|
|
42
|
+
LOW = "Low"
|
|
43
|
+
MEDIUM = "Medium"
|
|
44
|
+
HIGH = "High"
|
|
45
|
+
"""
|
|
46
|
+
Attributes:
|
|
47
|
+
swagger_types (dict): The key is attribute name
|
|
48
|
+
and the value is attribute type.
|
|
49
|
+
attribute_map (dict): The key is attribute name
|
|
50
|
+
and the value is json key in definition.
|
|
51
|
+
"""
|
|
52
|
+
swagger_types = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
attribute_map = {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
def __init__(self): # noqa: E501
|
|
59
|
+
"""V1DeploymentAlertingPolicySeverity - a model defined in Swagger""" # noqa: E501
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> dict:
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
result[attr] = value
|
|
83
|
+
if issubclass(V1DeploymentAlertingPolicySeverity, dict):
|
|
84
|
+
for key, value in self.items():
|
|
85
|
+
result[key] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self) -> str:
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
return pprint.pformat(self.to_dict())
|
|
92
|
+
|
|
93
|
+
def __repr__(self) -> str:
|
|
94
|
+
"""For `print` and `pprint`"""
|
|
95
|
+
return self.to_str()
|
|
96
|
+
|
|
97
|
+
def __eq__(self, other: 'V1DeploymentAlertingPolicySeverity') -> bool:
|
|
98
|
+
"""Returns true if both objects are equal"""
|
|
99
|
+
if not isinstance(other, V1DeploymentAlertingPolicySeverity):
|
|
100
|
+
return False
|
|
101
|
+
|
|
102
|
+
return self.__dict__ == other.__dict__
|
|
103
|
+
|
|
104
|
+
def __ne__(self, other: 'V1DeploymentAlertingPolicySeverity') -> bool:
|
|
105
|
+
"""Returns true if both objects are not equal"""
|
|
106
|
+
return not self == other
|