lightning-sdk 2025.12.9__py3-none-any.whl → 2025.12.17__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/__version__.py +1 -1
- lightning_sdk/api/job_api.py +16 -0
- lightning_sdk/api/org_api.py +7 -0
- lightning_sdk/api/studio_api.py +28 -3
- lightning_sdk/api/teamspace_api.py +42 -5
- lightning_sdk/api/user_api.py +5 -0
- lightning_sdk/cli/legacy/download.py +2 -1
- lightning_sdk/cli/legacy/studios_menu.py +8 -1
- lightning_sdk/job/base.py +26 -4
- lightning_sdk/job/job.py +16 -5
- lightning_sdk/job/v1.py +7 -2
- lightning_sdk/job/v2.py +41 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +26 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +517 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/api/kubernetes_virtual_machine_service_api.py +557 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -1
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_environment_template_service_update_cloud_space_environment_template_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_add_container_registry_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_refresh_container_registry_credentials_body.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_validate_container_registry_body.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_add_container_registry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +281 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_integration.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_status.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_container_registry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_virtual_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_config.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_config_input.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_virtual_machine.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_provider_configuration.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_configuration.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_virtual_machines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_container_registry_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
- lightning_sdk/machine.py +1 -0
- lightning_sdk/mmt/base.py +26 -7
- lightning_sdk/mmt/mmt.py +11 -6
- lightning_sdk/mmt/v1.py +5 -2
- lightning_sdk/mmt/v2.py +5 -2
- lightning_sdk/organization.py +10 -1
- lightning_sdk/owner.py +4 -0
- lightning_sdk/pipeline/steps.py +3 -0
- lightning_sdk/plugin.py +2 -2
- lightning_sdk/studio.py +33 -2
- lightning_sdk/teamspace.py +44 -4
- lightning_sdk/user.py +22 -2
- lightning_sdk/utils/resolve.py +9 -7
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/RECORD +78 -53
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mm_ts_response.py → v1_list_filesystem_mmts_response.py} +0 -0
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.9.dist-info → lightning_sdk-2025.12.17.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,305 @@
|
|
|
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 V1KubevirtConfig(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
|
+
'api_url': 'str',
|
|
46
|
+
'k8s_node_count': 'int',
|
|
47
|
+
'node_count': 'int',
|
|
48
|
+
'node_family': 'str',
|
|
49
|
+
'provider': 'str',
|
|
50
|
+
'supported': 'bool',
|
|
51
|
+
'vm_node_count': 'int'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
attribute_map = {
|
|
55
|
+
'api_key': 'apiKey',
|
|
56
|
+
'api_url': 'apiUrl',
|
|
57
|
+
'k8s_node_count': 'k8sNodeCount',
|
|
58
|
+
'node_count': 'nodeCount',
|
|
59
|
+
'node_family': 'nodeFamily',
|
|
60
|
+
'provider': 'provider',
|
|
61
|
+
'supported': 'supported',
|
|
62
|
+
'vm_node_count': 'vmNodeCount'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, api_key: 'str' =None, api_url: 'str' =None, k8s_node_count: 'int' =None, node_count: 'int' =None, node_family: 'str' =None, provider: 'str' =None, supported: 'bool' =None, vm_node_count: 'int' =None): # noqa: E501
|
|
66
|
+
"""V1KubevirtConfig - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
self._api_key = None
|
|
68
|
+
self._api_url = None
|
|
69
|
+
self._k8s_node_count = None
|
|
70
|
+
self._node_count = None
|
|
71
|
+
self._node_family = None
|
|
72
|
+
self._provider = None
|
|
73
|
+
self._supported = None
|
|
74
|
+
self._vm_node_count = None
|
|
75
|
+
self.discriminator = None
|
|
76
|
+
if api_key is not None:
|
|
77
|
+
self.api_key = api_key
|
|
78
|
+
if api_url is not None:
|
|
79
|
+
self.api_url = api_url
|
|
80
|
+
if k8s_node_count is not None:
|
|
81
|
+
self.k8s_node_count = k8s_node_count
|
|
82
|
+
if node_count is not None:
|
|
83
|
+
self.node_count = node_count
|
|
84
|
+
if node_family is not None:
|
|
85
|
+
self.node_family = node_family
|
|
86
|
+
if provider is not None:
|
|
87
|
+
self.provider = provider
|
|
88
|
+
if supported is not None:
|
|
89
|
+
self.supported = supported
|
|
90
|
+
if vm_node_count is not None:
|
|
91
|
+
self.vm_node_count = vm_node_count
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def api_key(self) -> 'str':
|
|
95
|
+
"""Gets the api_key of this V1KubevirtConfig. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The api_key of this V1KubevirtConfig. # noqa: E501
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._api_key
|
|
102
|
+
|
|
103
|
+
@api_key.setter
|
|
104
|
+
def api_key(self, api_key: 'str'):
|
|
105
|
+
"""Sets the api_key of this V1KubevirtConfig.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param api_key: The api_key of this V1KubevirtConfig. # noqa: E501
|
|
109
|
+
:type: str
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
self._api_key = api_key
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def api_url(self) -> 'str':
|
|
116
|
+
"""Gets the api_url of this V1KubevirtConfig. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The api_url of this V1KubevirtConfig. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._api_url
|
|
123
|
+
|
|
124
|
+
@api_url.setter
|
|
125
|
+
def api_url(self, api_url: 'str'):
|
|
126
|
+
"""Sets the api_url of this V1KubevirtConfig.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param api_url: The api_url of this V1KubevirtConfig. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._api_url = api_url
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def k8s_node_count(self) -> 'int':
|
|
137
|
+
"""Gets the k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
141
|
+
:rtype: int
|
|
142
|
+
"""
|
|
143
|
+
return self._k8s_node_count
|
|
144
|
+
|
|
145
|
+
@k8s_node_count.setter
|
|
146
|
+
def k8s_node_count(self, k8s_node_count: 'int'):
|
|
147
|
+
"""Sets the k8s_node_count of this V1KubevirtConfig.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param k8s_node_count: The k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
151
|
+
:type: int
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
self._k8s_node_count = k8s_node_count
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def node_count(self) -> 'int':
|
|
158
|
+
"""Gets the node_count of this V1KubevirtConfig. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The node_count of this V1KubevirtConfig. # noqa: E501
|
|
162
|
+
:rtype: int
|
|
163
|
+
"""
|
|
164
|
+
return self._node_count
|
|
165
|
+
|
|
166
|
+
@node_count.setter
|
|
167
|
+
def node_count(self, node_count: 'int'):
|
|
168
|
+
"""Sets the node_count of this V1KubevirtConfig.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param node_count: The node_count of this V1KubevirtConfig. # noqa: E501
|
|
172
|
+
:type: int
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._node_count = node_count
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def node_family(self) -> 'str':
|
|
179
|
+
"""Gets the node_family of this V1KubevirtConfig. # noqa: E501
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:return: The node_family of this V1KubevirtConfig. # noqa: E501
|
|
183
|
+
:rtype: str
|
|
184
|
+
"""
|
|
185
|
+
return self._node_family
|
|
186
|
+
|
|
187
|
+
@node_family.setter
|
|
188
|
+
def node_family(self, node_family: 'str'):
|
|
189
|
+
"""Sets the node_family of this V1KubevirtConfig.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param node_family: The node_family of this V1KubevirtConfig. # noqa: E501
|
|
193
|
+
:type: str
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._node_family = node_family
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def provider(self) -> 'str':
|
|
200
|
+
"""Gets the provider of this V1KubevirtConfig. # noqa: E501
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:return: The provider of this V1KubevirtConfig. # noqa: E501
|
|
204
|
+
:rtype: str
|
|
205
|
+
"""
|
|
206
|
+
return self._provider
|
|
207
|
+
|
|
208
|
+
@provider.setter
|
|
209
|
+
def provider(self, provider: 'str'):
|
|
210
|
+
"""Sets the provider of this V1KubevirtConfig.
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:param provider: The provider of this V1KubevirtConfig. # noqa: E501
|
|
214
|
+
:type: str
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
self._provider = provider
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def supported(self) -> 'bool':
|
|
221
|
+
"""Gets the supported of this V1KubevirtConfig. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The supported of this V1KubevirtConfig. # noqa: E501
|
|
225
|
+
:rtype: bool
|
|
226
|
+
"""
|
|
227
|
+
return self._supported
|
|
228
|
+
|
|
229
|
+
@supported.setter
|
|
230
|
+
def supported(self, supported: 'bool'):
|
|
231
|
+
"""Sets the supported of this V1KubevirtConfig.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param supported: The supported of this V1KubevirtConfig. # noqa: E501
|
|
235
|
+
:type: bool
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._supported = supported
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def vm_node_count(self) -> 'int':
|
|
242
|
+
"""Gets the vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:return: The vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
246
|
+
:rtype: int
|
|
247
|
+
"""
|
|
248
|
+
return self._vm_node_count
|
|
249
|
+
|
|
250
|
+
@vm_node_count.setter
|
|
251
|
+
def vm_node_count(self, vm_node_count: 'int'):
|
|
252
|
+
"""Sets the vm_node_count of this V1KubevirtConfig.
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:param vm_node_count: The vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
256
|
+
:type: int
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
self._vm_node_count = vm_node_count
|
|
260
|
+
|
|
261
|
+
def to_dict(self) -> dict:
|
|
262
|
+
"""Returns the model properties as a dict"""
|
|
263
|
+
result = {}
|
|
264
|
+
|
|
265
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
266
|
+
value = getattr(self, attr)
|
|
267
|
+
if isinstance(value, list):
|
|
268
|
+
result[attr] = list(map(
|
|
269
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
270
|
+
value
|
|
271
|
+
))
|
|
272
|
+
elif hasattr(value, "to_dict"):
|
|
273
|
+
result[attr] = value.to_dict()
|
|
274
|
+
elif isinstance(value, dict):
|
|
275
|
+
result[attr] = dict(map(
|
|
276
|
+
lambda item: (item[0], item[1].to_dict())
|
|
277
|
+
if hasattr(item[1], "to_dict") else item,
|
|
278
|
+
value.items()
|
|
279
|
+
))
|
|
280
|
+
else:
|
|
281
|
+
result[attr] = value
|
|
282
|
+
if issubclass(V1KubevirtConfig, dict):
|
|
283
|
+
for key, value in self.items():
|
|
284
|
+
result[key] = value
|
|
285
|
+
|
|
286
|
+
return result
|
|
287
|
+
|
|
288
|
+
def to_str(self) -> str:
|
|
289
|
+
"""Returns the string representation of the model"""
|
|
290
|
+
return pprint.pformat(self.to_dict())
|
|
291
|
+
|
|
292
|
+
def __repr__(self) -> str:
|
|
293
|
+
"""For `print` and `pprint`"""
|
|
294
|
+
return self.to_str()
|
|
295
|
+
|
|
296
|
+
def __eq__(self, other: 'V1KubevirtConfig') -> bool:
|
|
297
|
+
"""Returns true if both objects are equal"""
|
|
298
|
+
if not isinstance(other, V1KubevirtConfig):
|
|
299
|
+
return False
|
|
300
|
+
|
|
301
|
+
return self.__dict__ == other.__dict__
|
|
302
|
+
|
|
303
|
+
def __ne__(self, other: 'V1KubevirtConfig') -> bool:
|
|
304
|
+
"""Returns true if both objects are not equal"""
|
|
305
|
+
return not self == other
|
|
@@ -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 V1KubevirtProviderConfiguration(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
|
+
'access': 'str',
|
|
45
|
+
'config': 'V1KubevirtVmConfiguration',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'node': 'str',
|
|
48
|
+
'status': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'access': 'access',
|
|
53
|
+
'config': 'config',
|
|
54
|
+
'name': 'name',
|
|
55
|
+
'node': 'node',
|
|
56
|
+
'status': 'status'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, access: 'str' =None, config: 'V1KubevirtVmConfiguration' =None, name: 'str' =None, node: 'str' =None, status: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1KubevirtProviderConfiguration - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._access = None
|
|
62
|
+
self._config = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._node = None
|
|
65
|
+
self._status = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if access is not None:
|
|
68
|
+
self.access = access
|
|
69
|
+
if config is not None:
|
|
70
|
+
self.config = config
|
|
71
|
+
if name is not None:
|
|
72
|
+
self.name = name
|
|
73
|
+
if node is not None:
|
|
74
|
+
self.node = node
|
|
75
|
+
if status is not None:
|
|
76
|
+
self.status = status
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def access(self) -> 'str':
|
|
80
|
+
"""Gets the access of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The access of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._access
|
|
87
|
+
|
|
88
|
+
@access.setter
|
|
89
|
+
def access(self, access: 'str'):
|
|
90
|
+
"""Sets the access of this V1KubevirtProviderConfiguration.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param access: The access of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._access = access
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def config(self) -> 'V1KubevirtVmConfiguration':
|
|
101
|
+
"""Gets the config of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The config of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
105
|
+
:rtype: V1KubevirtVmConfiguration
|
|
106
|
+
"""
|
|
107
|
+
return self._config
|
|
108
|
+
|
|
109
|
+
@config.setter
|
|
110
|
+
def config(self, config: 'V1KubevirtVmConfiguration'):
|
|
111
|
+
"""Sets the config of this V1KubevirtProviderConfiguration.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param config: The config of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
115
|
+
:type: V1KubevirtVmConfiguration
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._config = config
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def name(self) -> 'str':
|
|
122
|
+
"""Gets the name of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The name of this V1KubevirtProviderConfiguration. # 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 V1KubevirtProviderConfiguration.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param name: The name of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._name = name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def node(self) -> 'str':
|
|
143
|
+
"""Gets the node of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The node of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._node
|
|
150
|
+
|
|
151
|
+
@node.setter
|
|
152
|
+
def node(self, node: 'str'):
|
|
153
|
+
"""Sets the node of this V1KubevirtProviderConfiguration.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param node: The node of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._node = node
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def status(self) -> 'str':
|
|
164
|
+
"""Gets the status of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The status of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._status
|
|
171
|
+
|
|
172
|
+
@status.setter
|
|
173
|
+
def status(self, status: 'str'):
|
|
174
|
+
"""Sets the status of this V1KubevirtProviderConfiguration.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param status: The status of this V1KubevirtProviderConfiguration. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._status = status
|
|
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(V1KubevirtProviderConfiguration, 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: 'V1KubevirtProviderConfiguration') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1KubevirtProviderConfiguration):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1KubevirtProviderConfiguration') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -0,0 +1,149 @@
|
|
|
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 V1KubevirtVmConfiguration(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
|
+
'image': 'str',
|
|
45
|
+
'resources': 'V1KubevirtVmResources'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'image': 'image',
|
|
50
|
+
'resources': 'resources'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, image: 'str' =None, resources: 'V1KubevirtVmResources' =None): # noqa: E501
|
|
54
|
+
"""V1KubevirtVmConfiguration - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._image = None
|
|
56
|
+
self._resources = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if image is not None:
|
|
59
|
+
self.image = image
|
|
60
|
+
if resources is not None:
|
|
61
|
+
self.resources = resources
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def image(self) -> 'str':
|
|
65
|
+
"""Gets the image of this V1KubevirtVmConfiguration. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The image of this V1KubevirtVmConfiguration. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._image
|
|
72
|
+
|
|
73
|
+
@image.setter
|
|
74
|
+
def image(self, image: 'str'):
|
|
75
|
+
"""Sets the image of this V1KubevirtVmConfiguration.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param image: The image of this V1KubevirtVmConfiguration. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._image = image
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def resources(self) -> 'V1KubevirtVmResources':
|
|
86
|
+
"""Gets the resources of this V1KubevirtVmConfiguration. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The resources of this V1KubevirtVmConfiguration. # noqa: E501
|
|
90
|
+
:rtype: V1KubevirtVmResources
|
|
91
|
+
"""
|
|
92
|
+
return self._resources
|
|
93
|
+
|
|
94
|
+
@resources.setter
|
|
95
|
+
def resources(self, resources: 'V1KubevirtVmResources'):
|
|
96
|
+
"""Sets the resources of this V1KubevirtVmConfiguration.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param resources: The resources of this V1KubevirtVmConfiguration. # noqa: E501
|
|
100
|
+
:type: V1KubevirtVmResources
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._resources = resources
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(V1KubevirtVmConfiguration, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'V1KubevirtVmConfiguration') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1KubevirtVmConfiguration):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1KubevirtVmConfiguration') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|