lightning-sdk 2025.9.4__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 +14 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
- 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/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_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_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_metrics_stream.py +27 -1
- 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_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -102
- 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.4.dist-info → lightning_sdk-2025.9.10.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/RECORD +36 -22
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
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 V1KubernetesTemplateProperty(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
|
+
'default_value': 'str',
|
|
45
|
+
'description': 'str',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'required': 'bool',
|
|
48
|
+
'type': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'default_value': 'defaultValue',
|
|
53
|
+
'description': 'description',
|
|
54
|
+
'name': 'name',
|
|
55
|
+
'required': 'required',
|
|
56
|
+
'type': 'type'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, default_value: 'str' =None, description: 'str' =None, name: 'str' =None, required: 'bool' =None, type: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1KubernetesTemplateProperty - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._default_value = None
|
|
62
|
+
self._description = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._required = None
|
|
65
|
+
self._type = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if default_value is not None:
|
|
68
|
+
self.default_value = default_value
|
|
69
|
+
if description is not None:
|
|
70
|
+
self.description = description
|
|
71
|
+
if name is not None:
|
|
72
|
+
self.name = name
|
|
73
|
+
if required is not None:
|
|
74
|
+
self.required = required
|
|
75
|
+
if type is not None:
|
|
76
|
+
self.type = type
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def default_value(self) -> 'str':
|
|
80
|
+
"""Gets the default_value of this V1KubernetesTemplateProperty. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The default_value of this V1KubernetesTemplateProperty. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._default_value
|
|
87
|
+
|
|
88
|
+
@default_value.setter
|
|
89
|
+
def default_value(self, default_value: 'str'):
|
|
90
|
+
"""Sets the default_value of this V1KubernetesTemplateProperty.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param default_value: The default_value of this V1KubernetesTemplateProperty. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._default_value = default_value
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def description(self) -> 'str':
|
|
101
|
+
"""Gets the description of this V1KubernetesTemplateProperty. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The description of this V1KubernetesTemplateProperty. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._description
|
|
108
|
+
|
|
109
|
+
@description.setter
|
|
110
|
+
def description(self, description: 'str'):
|
|
111
|
+
"""Sets the description of this V1KubernetesTemplateProperty.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param description: The description of this V1KubernetesTemplateProperty. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._description = description
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def name(self) -> 'str':
|
|
122
|
+
"""Gets the name of this V1KubernetesTemplateProperty. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The name of this V1KubernetesTemplateProperty. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._name
|
|
129
|
+
|
|
130
|
+
@name.setter
|
|
131
|
+
def name(self, name: 'str'):
|
|
132
|
+
"""Sets the name of this V1KubernetesTemplateProperty.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param name: The name of this V1KubernetesTemplateProperty. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._name = name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def required(self) -> 'bool':
|
|
143
|
+
"""Gets the required of this V1KubernetesTemplateProperty. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The required of this V1KubernetesTemplateProperty. # noqa: E501
|
|
147
|
+
:rtype: bool
|
|
148
|
+
"""
|
|
149
|
+
return self._required
|
|
150
|
+
|
|
151
|
+
@required.setter
|
|
152
|
+
def required(self, required: 'bool'):
|
|
153
|
+
"""Sets the required of this V1KubernetesTemplateProperty.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param required: The required of this V1KubernetesTemplateProperty. # noqa: E501
|
|
157
|
+
:type: bool
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._required = required
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def type(self) -> 'str':
|
|
164
|
+
"""Gets the type of this V1KubernetesTemplateProperty. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The type of this V1KubernetesTemplateProperty. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._type
|
|
171
|
+
|
|
172
|
+
@type.setter
|
|
173
|
+
def type(self, type: 'str'):
|
|
174
|
+
"""Sets the type of this V1KubernetesTemplateProperty.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param type: The type of this V1KubernetesTemplateProperty. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._type = type
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(V1KubernetesTemplateProperty, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'V1KubernetesTemplateProperty') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1KubernetesTemplateProperty):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1KubernetesTemplateProperty') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
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 V1ListIncidentEventsResponse(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
|
+
'events': 'list[V1IncidentEvent]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'events': 'events'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, events: 'list[V1IncidentEvent]' =None): # noqa: E501
|
|
52
|
+
"""V1ListIncidentEventsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._events = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if events is not None:
|
|
56
|
+
self.events = events
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def events(self) -> 'list[V1IncidentEvent]':
|
|
60
|
+
"""Gets the events of this V1ListIncidentEventsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The events of this V1ListIncidentEventsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1IncidentEvent]
|
|
65
|
+
"""
|
|
66
|
+
return self._events
|
|
67
|
+
|
|
68
|
+
@events.setter
|
|
69
|
+
def events(self, events: 'list[V1IncidentEvent]'):
|
|
70
|
+
"""Sets the events of this V1ListIncidentEventsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param events: The events of this V1ListIncidentEventsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1IncidentEvent]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._events = events
|
|
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(V1ListIncidentEventsResponse, 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: 'V1ListIncidentEventsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListIncidentEventsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListIncidentEventsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
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 V1ListKubernetesTemplatesResponse(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
|
+
'templates': 'list[V1KubernetesTemplate]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'templates': 'templates'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, templates: 'list[V1KubernetesTemplate]' =None): # noqa: E501
|
|
52
|
+
"""V1ListKubernetesTemplatesResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._templates = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if templates is not None:
|
|
56
|
+
self.templates = templates
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def templates(self) -> 'list[V1KubernetesTemplate]':
|
|
60
|
+
"""Gets the templates of this V1ListKubernetesTemplatesResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The templates of this V1ListKubernetesTemplatesResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1KubernetesTemplate]
|
|
65
|
+
"""
|
|
66
|
+
return self._templates
|
|
67
|
+
|
|
68
|
+
@templates.setter
|
|
69
|
+
def templates(self, templates: 'list[V1KubernetesTemplate]'):
|
|
70
|
+
"""Sets the templates of this V1ListKubernetesTemplatesResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param templates: The templates of this V1ListKubernetesTemplatesResponse. # noqa: E501
|
|
74
|
+
:type: list[V1KubernetesTemplate]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._templates = templates
|
|
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(V1ListKubernetesTemplatesResponse, 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: 'V1ListKubernetesTemplatesResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListKubernetesTemplatesResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListKubernetesTemplatesResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -47,6 +47,7 @@ class V1MetricsStream(object):
|
|
|
47
47
|
'created_at': 'datetime',
|
|
48
48
|
'dark_color': 'str',
|
|
49
49
|
'experiment_project_name': 'str',
|
|
50
|
+
'guest': 'bool',
|
|
50
51
|
'id': 'str',
|
|
51
52
|
'job_id': 'str',
|
|
52
53
|
'job_name': 'str',
|
|
@@ -79,6 +80,7 @@ class V1MetricsStream(object):
|
|
|
79
80
|
'created_at': 'createdAt',
|
|
80
81
|
'dark_color': 'darkColor',
|
|
81
82
|
'experiment_project_name': 'experimentProjectName',
|
|
83
|
+
'guest': 'guest',
|
|
82
84
|
'id': 'id',
|
|
83
85
|
'job_id': 'jobId',
|
|
84
86
|
'job_name': 'jobName',
|
|
@@ -104,7 +106,7 @@ class V1MetricsStream(object):
|
|
|
104
106
|
'work_id': 'workId'
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, id: 'str' =None, job_id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
109
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, guest: 'bool' =None, id: 'str' =None, job_id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
108
110
|
"""V1MetricsStream - a model defined in Swagger""" # noqa: E501
|
|
109
111
|
self._app_id = None
|
|
110
112
|
self._cloudspace_id = None
|
|
@@ -112,6 +114,7 @@ class V1MetricsStream(object):
|
|
|
112
114
|
self._created_at = None
|
|
113
115
|
self._dark_color = None
|
|
114
116
|
self._experiment_project_name = None
|
|
117
|
+
self._guest = None
|
|
115
118
|
self._id = None
|
|
116
119
|
self._job_id = None
|
|
117
120
|
self._job_name = None
|
|
@@ -148,6 +151,8 @@ class V1MetricsStream(object):
|
|
|
148
151
|
self.dark_color = dark_color
|
|
149
152
|
if experiment_project_name is not None:
|
|
150
153
|
self.experiment_project_name = experiment_project_name
|
|
154
|
+
if guest is not None:
|
|
155
|
+
self.guest = guest
|
|
151
156
|
if id is not None:
|
|
152
157
|
self.id = id
|
|
153
158
|
if job_id is not None:
|
|
@@ -321,6 +326,27 @@ class V1MetricsStream(object):
|
|
|
321
326
|
|
|
322
327
|
self._experiment_project_name = experiment_project_name
|
|
323
328
|
|
|
329
|
+
@property
|
|
330
|
+
def guest(self) -> 'bool':
|
|
331
|
+
"""Gets the guest of this V1MetricsStream. # noqa: E501
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
:return: The guest of this V1MetricsStream. # noqa: E501
|
|
335
|
+
:rtype: bool
|
|
336
|
+
"""
|
|
337
|
+
return self._guest
|
|
338
|
+
|
|
339
|
+
@guest.setter
|
|
340
|
+
def guest(self, guest: 'bool'):
|
|
341
|
+
"""Sets the guest of this V1MetricsStream.
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
:param guest: The guest of this V1MetricsStream. # noqa: E501
|
|
345
|
+
:type: bool
|
|
346
|
+
"""
|
|
347
|
+
|
|
348
|
+
self._guest = guest
|
|
349
|
+
|
|
324
350
|
@property
|
|
325
351
|
def id(self) -> 'str':
|
|
326
352
|
"""Gets the id of this V1MetricsStream. # noqa: E501
|
|
@@ -44,22 +44,25 @@ class V1QuoteAnnualUpsellResponse(object):
|
|
|
44
44
|
'academic': 'bool',
|
|
45
45
|
'additional_months': 'int',
|
|
46
46
|
'annual_amount': 'int',
|
|
47
|
-
'discounted_amount': 'int'
|
|
47
|
+
'discounted_amount': 'int',
|
|
48
|
+
'included_credits': 'int'
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'academic': 'academic',
|
|
52
53
|
'additional_months': 'additionalMonths',
|
|
53
54
|
'annual_amount': 'annualAmount',
|
|
54
|
-
'discounted_amount': 'discountedAmount'
|
|
55
|
+
'discounted_amount': 'discountedAmount',
|
|
56
|
+
'included_credits': 'includedCredits'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, academic: 'bool' =None, additional_months: 'int' =None, annual_amount: 'int' =None, discounted_amount: 'int' =None): # noqa: E501
|
|
59
|
+
def __init__(self, academic: 'bool' =None, additional_months: 'int' =None, annual_amount: 'int' =None, discounted_amount: 'int' =None, included_credits: 'int' =None): # noqa: E501
|
|
58
60
|
"""V1QuoteAnnualUpsellResponse - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._academic = None
|
|
60
62
|
self._additional_months = None
|
|
61
63
|
self._annual_amount = None
|
|
62
64
|
self._discounted_amount = None
|
|
65
|
+
self._included_credits = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if academic is not None:
|
|
65
68
|
self.academic = academic
|
|
@@ -69,6 +72,8 @@ class V1QuoteAnnualUpsellResponse(object):
|
|
|
69
72
|
self.annual_amount = annual_amount
|
|
70
73
|
if discounted_amount is not None:
|
|
71
74
|
self.discounted_amount = discounted_amount
|
|
75
|
+
if included_credits is not None:
|
|
76
|
+
self.included_credits = included_credits
|
|
72
77
|
|
|
73
78
|
@property
|
|
74
79
|
def academic(self) -> 'bool':
|
|
@@ -154,6 +159,27 @@ class V1QuoteAnnualUpsellResponse(object):
|
|
|
154
159
|
|
|
155
160
|
self._discounted_amount = discounted_amount
|
|
156
161
|
|
|
162
|
+
@property
|
|
163
|
+
def included_credits(self) -> 'int':
|
|
164
|
+
"""Gets the included_credits of this V1QuoteAnnualUpsellResponse. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The included_credits of this V1QuoteAnnualUpsellResponse. # noqa: E501
|
|
168
|
+
:rtype: int
|
|
169
|
+
"""
|
|
170
|
+
return self._included_credits
|
|
171
|
+
|
|
172
|
+
@included_credits.setter
|
|
173
|
+
def included_credits(self, included_credits: 'int'):
|
|
174
|
+
"""Sets the included_credits of this V1QuoteAnnualUpsellResponse.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param included_credits: The included_credits of this V1QuoteAnnualUpsellResponse. # noqa: E501
|
|
178
|
+
:type: int
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._included_credits = included_credits
|
|
182
|
+
|
|
157
183
|
def to_dict(self) -> dict:
|
|
158
184
|
"""Returns the model properties as a dict"""
|
|
159
185
|
result = {}
|