lightning-sdk 0.2.9__py3-none-any.whl → 0.2.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/deployment_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +19 -2
- lightning_sdk/api/teamspace_api.py +20 -16
- lightning_sdk/api/utils.py +1 -1
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/serve.py +141 -16
- lightning_sdk/cli/upload.py +4 -1
- lightning_sdk/deployment/deployment.py +5 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +98 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/create.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +50 -24
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +29 -55
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lit_container.py +12 -2
- lightning_sdk/models.py +22 -9
- lightning_sdk/serve.py +3 -0
- lightning_sdk/teamspace.py +2 -0
- lightning_sdk/utils/resolve.py +11 -4
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/RECORD +50 -45
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
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 V1CloudSpaceColdStartMetricsStats(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
|
+
'cpu_count': 'int',
|
|
45
|
+
'gpu_count': 'int',
|
|
46
|
+
'gpu_type': 'str',
|
|
47
|
+
'instance_type': 'str',
|
|
48
|
+
'median_env_setup': 'float',
|
|
49
|
+
'median_initialize_env': 'float',
|
|
50
|
+
'median_machine_startup': 'float',
|
|
51
|
+
'median_total': 'float',
|
|
52
|
+
'median_wait_for_machine': 'float',
|
|
53
|
+
'provider': 'str'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
attribute_map = {
|
|
57
|
+
'cpu_count': 'cpuCount',
|
|
58
|
+
'gpu_count': 'gpuCount',
|
|
59
|
+
'gpu_type': 'gpuType',
|
|
60
|
+
'instance_type': 'instanceType',
|
|
61
|
+
'median_env_setup': 'medianEnvSetup',
|
|
62
|
+
'median_initialize_env': 'medianInitializeEnv',
|
|
63
|
+
'median_machine_startup': 'medianMachineStartup',
|
|
64
|
+
'median_total': 'medianTotal',
|
|
65
|
+
'median_wait_for_machine': 'medianWaitForMachine',
|
|
66
|
+
'provider': 'provider'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, cpu_count: 'int' =None, gpu_count: 'int' =None, gpu_type: 'str' =None, instance_type: 'str' =None, median_env_setup: 'float' =None, median_initialize_env: 'float' =None, median_machine_startup: 'float' =None, median_total: 'float' =None, median_wait_for_machine: 'float' =None, provider: 'str' =None): # noqa: E501
|
|
70
|
+
"""V1CloudSpaceColdStartMetricsStats - a model defined in Swagger""" # noqa: E501
|
|
71
|
+
self._cpu_count = None
|
|
72
|
+
self._gpu_count = None
|
|
73
|
+
self._gpu_type = None
|
|
74
|
+
self._instance_type = None
|
|
75
|
+
self._median_env_setup = None
|
|
76
|
+
self._median_initialize_env = None
|
|
77
|
+
self._median_machine_startup = None
|
|
78
|
+
self._median_total = None
|
|
79
|
+
self._median_wait_for_machine = None
|
|
80
|
+
self._provider = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
if cpu_count is not None:
|
|
83
|
+
self.cpu_count = cpu_count
|
|
84
|
+
if gpu_count is not None:
|
|
85
|
+
self.gpu_count = gpu_count
|
|
86
|
+
if gpu_type is not None:
|
|
87
|
+
self.gpu_type = gpu_type
|
|
88
|
+
if instance_type is not None:
|
|
89
|
+
self.instance_type = instance_type
|
|
90
|
+
if median_env_setup is not None:
|
|
91
|
+
self.median_env_setup = median_env_setup
|
|
92
|
+
if median_initialize_env is not None:
|
|
93
|
+
self.median_initialize_env = median_initialize_env
|
|
94
|
+
if median_machine_startup is not None:
|
|
95
|
+
self.median_machine_startup = median_machine_startup
|
|
96
|
+
if median_total is not None:
|
|
97
|
+
self.median_total = median_total
|
|
98
|
+
if median_wait_for_machine is not None:
|
|
99
|
+
self.median_wait_for_machine = median_wait_for_machine
|
|
100
|
+
if provider is not None:
|
|
101
|
+
self.provider = provider
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def cpu_count(self) -> 'int':
|
|
105
|
+
"""Gets the cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
109
|
+
:rtype: int
|
|
110
|
+
"""
|
|
111
|
+
return self._cpu_count
|
|
112
|
+
|
|
113
|
+
@cpu_count.setter
|
|
114
|
+
def cpu_count(self, cpu_count: 'int'):
|
|
115
|
+
"""Sets the cpu_count of this V1CloudSpaceColdStartMetricsStats.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param cpu_count: The cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
119
|
+
:type: int
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._cpu_count = cpu_count
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def gpu_count(self) -> 'int':
|
|
126
|
+
"""Gets the gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
130
|
+
:rtype: int
|
|
131
|
+
"""
|
|
132
|
+
return self._gpu_count
|
|
133
|
+
|
|
134
|
+
@gpu_count.setter
|
|
135
|
+
def gpu_count(self, gpu_count: 'int'):
|
|
136
|
+
"""Sets the gpu_count of this V1CloudSpaceColdStartMetricsStats.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param gpu_count: The gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
140
|
+
:type: int
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._gpu_count = gpu_count
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def gpu_type(self) -> 'str':
|
|
147
|
+
"""Gets the gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
151
|
+
:rtype: str
|
|
152
|
+
"""
|
|
153
|
+
return self._gpu_type
|
|
154
|
+
|
|
155
|
+
@gpu_type.setter
|
|
156
|
+
def gpu_type(self, gpu_type: 'str'):
|
|
157
|
+
"""Sets the gpu_type of this V1CloudSpaceColdStartMetricsStats.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param gpu_type: The gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._gpu_type = gpu_type
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def instance_type(self) -> 'str':
|
|
168
|
+
"""Gets the instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
172
|
+
:rtype: str
|
|
173
|
+
"""
|
|
174
|
+
return self._instance_type
|
|
175
|
+
|
|
176
|
+
@instance_type.setter
|
|
177
|
+
def instance_type(self, instance_type: 'str'):
|
|
178
|
+
"""Sets the instance_type of this V1CloudSpaceColdStartMetricsStats.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param instance_type: The instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
182
|
+
:type: str
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._instance_type = instance_type
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def median_env_setup(self) -> 'float':
|
|
189
|
+
"""Gets the median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
193
|
+
:rtype: float
|
|
194
|
+
"""
|
|
195
|
+
return self._median_env_setup
|
|
196
|
+
|
|
197
|
+
@median_env_setup.setter
|
|
198
|
+
def median_env_setup(self, median_env_setup: 'float'):
|
|
199
|
+
"""Sets the median_env_setup of this V1CloudSpaceColdStartMetricsStats.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param median_env_setup: The median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
203
|
+
:type: float
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._median_env_setup = median_env_setup
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def median_initialize_env(self) -> 'float':
|
|
210
|
+
"""Gets the median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
214
|
+
:rtype: float
|
|
215
|
+
"""
|
|
216
|
+
return self._median_initialize_env
|
|
217
|
+
|
|
218
|
+
@median_initialize_env.setter
|
|
219
|
+
def median_initialize_env(self, median_initialize_env: 'float'):
|
|
220
|
+
"""Sets the median_initialize_env of this V1CloudSpaceColdStartMetricsStats.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param median_initialize_env: The median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
224
|
+
:type: float
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._median_initialize_env = median_initialize_env
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def median_machine_startup(self) -> 'float':
|
|
231
|
+
"""Gets the median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
235
|
+
:rtype: float
|
|
236
|
+
"""
|
|
237
|
+
return self._median_machine_startup
|
|
238
|
+
|
|
239
|
+
@median_machine_startup.setter
|
|
240
|
+
def median_machine_startup(self, median_machine_startup: 'float'):
|
|
241
|
+
"""Sets the median_machine_startup of this V1CloudSpaceColdStartMetricsStats.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param median_machine_startup: The median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
245
|
+
:type: float
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._median_machine_startup = median_machine_startup
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def median_total(self) -> 'float':
|
|
252
|
+
"""Gets the median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
256
|
+
:rtype: float
|
|
257
|
+
"""
|
|
258
|
+
return self._median_total
|
|
259
|
+
|
|
260
|
+
@median_total.setter
|
|
261
|
+
def median_total(self, median_total: 'float'):
|
|
262
|
+
"""Sets the median_total of this V1CloudSpaceColdStartMetricsStats.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param median_total: The median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
266
|
+
:type: float
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._median_total = median_total
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def median_wait_for_machine(self) -> 'float':
|
|
273
|
+
"""Gets the median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:return: The median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
277
|
+
:rtype: float
|
|
278
|
+
"""
|
|
279
|
+
return self._median_wait_for_machine
|
|
280
|
+
|
|
281
|
+
@median_wait_for_machine.setter
|
|
282
|
+
def median_wait_for_machine(self, median_wait_for_machine: 'float'):
|
|
283
|
+
"""Sets the median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:param median_wait_for_machine: The median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
287
|
+
:type: float
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
self._median_wait_for_machine = median_wait_for_machine
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def provider(self) -> 'str':
|
|
294
|
+
"""Gets the provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:return: The provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
298
|
+
:rtype: str
|
|
299
|
+
"""
|
|
300
|
+
return self._provider
|
|
301
|
+
|
|
302
|
+
@provider.setter
|
|
303
|
+
def provider(self, provider: 'str'):
|
|
304
|
+
"""Sets the provider of this V1CloudSpaceColdStartMetricsStats.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param provider: The provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
308
|
+
:type: str
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
self._provider = provider
|
|
312
|
+
|
|
313
|
+
def to_dict(self) -> dict:
|
|
314
|
+
"""Returns the model properties as a dict"""
|
|
315
|
+
result = {}
|
|
316
|
+
|
|
317
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
+
value = getattr(self, attr)
|
|
319
|
+
if isinstance(value, list):
|
|
320
|
+
result[attr] = list(map(
|
|
321
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
+
value
|
|
323
|
+
))
|
|
324
|
+
elif hasattr(value, "to_dict"):
|
|
325
|
+
result[attr] = value.to_dict()
|
|
326
|
+
elif isinstance(value, dict):
|
|
327
|
+
result[attr] = dict(map(
|
|
328
|
+
lambda item: (item[0], item[1].to_dict())
|
|
329
|
+
if hasattr(item[1], "to_dict") else item,
|
|
330
|
+
value.items()
|
|
331
|
+
))
|
|
332
|
+
else:
|
|
333
|
+
result[attr] = value
|
|
334
|
+
if issubclass(V1CloudSpaceColdStartMetricsStats, dict):
|
|
335
|
+
for key, value in self.items():
|
|
336
|
+
result[key] = value
|
|
337
|
+
|
|
338
|
+
return result
|
|
339
|
+
|
|
340
|
+
def to_str(self) -> str:
|
|
341
|
+
"""Returns the string representation of the model"""
|
|
342
|
+
return pprint.pformat(self.to_dict())
|
|
343
|
+
|
|
344
|
+
def __repr__(self) -> str:
|
|
345
|
+
"""For `print` and `pprint`"""
|
|
346
|
+
return self.to_str()
|
|
347
|
+
|
|
348
|
+
def __eq__(self, other: 'V1CloudSpaceColdStartMetricsStats') -> bool:
|
|
349
|
+
"""Returns true if both objects are equal"""
|
|
350
|
+
if not isinstance(other, V1CloudSpaceColdStartMetricsStats):
|
|
351
|
+
return False
|
|
352
|
+
|
|
353
|
+
return self.__dict__ == other.__dict__
|
|
354
|
+
|
|
355
|
+
def __ne__(self, other: 'V1CloudSpaceColdStartMetricsStats') -> bool:
|
|
356
|
+
"""Returns true if both objects are not equal"""
|
|
357
|
+
return not self == other
|
|
@@ -41,19 +41,24 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'machine_image_version': 'str'
|
|
44
|
+
'machine_image_version': 'str',
|
|
45
|
+
'setup_script_text': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'machine_image_version': 'machineImageVersion'
|
|
49
|
+
'machine_image_version': 'machineImageVersion',
|
|
50
|
+
'setup_script_text': 'setupScriptText'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, machine_image_version: 'str' =None): # noqa: E501
|
|
53
|
+
def __init__(self, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
52
54
|
"""V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._machine_image_version = None
|
|
56
|
+
self._setup_script_text = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if machine_image_version is not None:
|
|
56
59
|
self.machine_image_version = machine_image_version
|
|
60
|
+
if setup_script_text is not None:
|
|
61
|
+
self.setup_script_text = setup_script_text
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def machine_image_version(self) -> 'str':
|
|
@@ -76,6 +81,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
76
81
|
|
|
77
82
|
self._machine_image_version = machine_image_version
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def setup_script_text(self) -> 'str':
|
|
86
|
+
"""Gets the setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._setup_script_text
|
|
93
|
+
|
|
94
|
+
@setup_script_text.setter
|
|
95
|
+
def setup_script_text(self, setup_script_text: 'str'):
|
|
96
|
+
"""Sets the setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param setup_script_text: The setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._setup_script_text = setup_script_text
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|
|
@@ -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 V1CloudflareV1(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_key_id': 'str',
|
|
45
|
+
'account_id': 'str',
|
|
46
|
+
'api_token_id': 'str',
|
|
47
|
+
'r2_endpoint': 'str',
|
|
48
|
+
'secret_access_key': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'access_key_id': 'accessKeyId',
|
|
53
|
+
'account_id': 'accountId',
|
|
54
|
+
'api_token_id': 'apiTokenId',
|
|
55
|
+
'r2_endpoint': 'r2Endpoint',
|
|
56
|
+
'secret_access_key': 'secretAccessKey'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, access_key_id: 'str' =None, account_id: 'str' =None, api_token_id: 'str' =None, r2_endpoint: 'str' =None, secret_access_key: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1CloudflareV1 - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._access_key_id = None
|
|
62
|
+
self._account_id = None
|
|
63
|
+
self._api_token_id = None
|
|
64
|
+
self._r2_endpoint = None
|
|
65
|
+
self._secret_access_key = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if access_key_id is not None:
|
|
68
|
+
self.access_key_id = access_key_id
|
|
69
|
+
if account_id is not None:
|
|
70
|
+
self.account_id = account_id
|
|
71
|
+
if api_token_id is not None:
|
|
72
|
+
self.api_token_id = api_token_id
|
|
73
|
+
if r2_endpoint is not None:
|
|
74
|
+
self.r2_endpoint = r2_endpoint
|
|
75
|
+
if secret_access_key is not None:
|
|
76
|
+
self.secret_access_key = secret_access_key
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def access_key_id(self) -> 'str':
|
|
80
|
+
"""Gets the access_key_id of this V1CloudflareV1. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The access_key_id of this V1CloudflareV1. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._access_key_id
|
|
87
|
+
|
|
88
|
+
@access_key_id.setter
|
|
89
|
+
def access_key_id(self, access_key_id: 'str'):
|
|
90
|
+
"""Sets the access_key_id of this V1CloudflareV1.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param access_key_id: The access_key_id of this V1CloudflareV1. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._access_key_id = access_key_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def account_id(self) -> 'str':
|
|
101
|
+
"""Gets the account_id of this V1CloudflareV1. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The account_id of this V1CloudflareV1. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._account_id
|
|
108
|
+
|
|
109
|
+
@account_id.setter
|
|
110
|
+
def account_id(self, account_id: 'str'):
|
|
111
|
+
"""Sets the account_id of this V1CloudflareV1.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param account_id: The account_id of this V1CloudflareV1. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._account_id = account_id
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def api_token_id(self) -> 'str':
|
|
122
|
+
"""Gets the api_token_id of this V1CloudflareV1. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The api_token_id of this V1CloudflareV1. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._api_token_id
|
|
129
|
+
|
|
130
|
+
@api_token_id.setter
|
|
131
|
+
def api_token_id(self, api_token_id: 'str'):
|
|
132
|
+
"""Sets the api_token_id of this V1CloudflareV1.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param api_token_id: The api_token_id of this V1CloudflareV1. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._api_token_id = api_token_id
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def r2_endpoint(self) -> 'str':
|
|
143
|
+
"""Gets the r2_endpoint of this V1CloudflareV1. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The r2_endpoint of this V1CloudflareV1. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._r2_endpoint
|
|
150
|
+
|
|
151
|
+
@r2_endpoint.setter
|
|
152
|
+
def r2_endpoint(self, r2_endpoint: 'str'):
|
|
153
|
+
"""Sets the r2_endpoint of this V1CloudflareV1.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param r2_endpoint: The r2_endpoint of this V1CloudflareV1. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._r2_endpoint = r2_endpoint
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def secret_access_key(self) -> 'str':
|
|
164
|
+
"""Gets the secret_access_key of this V1CloudflareV1. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The secret_access_key of this V1CloudflareV1. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._secret_access_key
|
|
171
|
+
|
|
172
|
+
@secret_access_key.setter
|
|
173
|
+
def secret_access_key(self, secret_access_key: 'str'):
|
|
174
|
+
"""Sets the secret_access_key of this V1CloudflareV1.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param secret_access_key: The secret_access_key of this V1CloudflareV1. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._secret_access_key = secret_access_key
|
|
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(V1CloudflareV1, 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: 'V1CloudflareV1') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1CloudflareV1):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1CloudflareV1') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|