lightning-sdk 0.2.6__py3-none-any.whl → 0.2.7__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.
Files changed (42) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/ai_hub_api.py +1 -0
  3. lightning_sdk/api/lit_container_api.py +84 -24
  4. lightning_sdk/api/teamspace_api.py +8 -9
  5. lightning_sdk/api/utils.py +0 -1
  6. lightning_sdk/cli/docker.py +1 -1
  7. lightning_sdk/cli/download.py +10 -2
  8. lightning_sdk/cli/serve.py +16 -29
  9. lightning_sdk/cli/upload.py +41 -6
  10. lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
  12. lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -0
  13. lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
  14. lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
  15. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  16. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +617 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  22. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +29 -3
  24. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
  26. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  32. lightning_sdk/lightning_cloud/rest_client.py +42 -44
  33. lightning_sdk/lit_container.py +19 -4
  34. lightning_sdk/models.py +1 -1
  35. lightning_sdk/serve.py +86 -17
  36. lightning_sdk/teamspace.py +32 -18
  37. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
  38. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +42 -34
  39. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
  40. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
  41. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
  42. {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,617 @@
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 V1CloudSpaceColdStartMetrics(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
+ 'cloudspace_id': 'str',
45
+ 'cloudspace_instance_id': 'str',
46
+ 'cluster_id': 'str',
47
+ 'container_started_at': 'datetime',
48
+ 'created_at': 'datetime',
49
+ 'deleted_at': 'datetime',
50
+ 'docker_availability_ended_at': 'datetime',
51
+ 'docker_availability_started_at': 'datetime',
52
+ 'image_pulling_ended_at': 'datetime',
53
+ 'image_pulling_started_at': 'datetime',
54
+ 'instance_type': 'str',
55
+ 'overprovisioned': 'bool',
56
+ 'progress_bar_ended_at': 'datetime',
57
+ 'project_id': 'str',
58
+ 'resources': 'V1Resources',
59
+ 'spot': 'bool',
60
+ 'started_at': 'datetime',
61
+ 'stop_at': 'datetime',
62
+ 'stopped_at': 'datetime',
63
+ 'user_id': 'str'
64
+ }
65
+
66
+ attribute_map = {
67
+ 'cloudspace_id': 'cloudspaceId',
68
+ 'cloudspace_instance_id': 'cloudspaceInstanceId',
69
+ 'cluster_id': 'clusterId',
70
+ 'container_started_at': 'containerStartedAt',
71
+ 'created_at': 'createdAt',
72
+ 'deleted_at': 'deletedAt',
73
+ 'docker_availability_ended_at': 'dockerAvailabilityEndedAt',
74
+ 'docker_availability_started_at': 'dockerAvailabilityStartedAt',
75
+ 'image_pulling_ended_at': 'imagePullingEndedAt',
76
+ 'image_pulling_started_at': 'imagePullingStartedAt',
77
+ 'instance_type': 'instanceType',
78
+ 'overprovisioned': 'overprovisioned',
79
+ 'progress_bar_ended_at': 'progressBarEndedAt',
80
+ 'project_id': 'projectId',
81
+ 'resources': 'resources',
82
+ 'spot': 'spot',
83
+ 'started_at': 'startedAt',
84
+ 'stop_at': 'stopAt',
85
+ 'stopped_at': 'stoppedAt',
86
+ 'user_id': 'userId'
87
+ }
88
+
89
+ def __init__(self, cloudspace_id: 'str' =None, cloudspace_instance_id: 'str' =None, cluster_id: 'str' =None, container_started_at: 'datetime' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, docker_availability_ended_at: 'datetime' =None, docker_availability_started_at: 'datetime' =None, image_pulling_ended_at: 'datetime' =None, image_pulling_started_at: 'datetime' =None, instance_type: 'str' =None, overprovisioned: 'bool' =None, progress_bar_ended_at: 'datetime' =None, project_id: 'str' =None, resources: 'V1Resources' =None, spot: 'bool' =None, started_at: 'datetime' =None, stop_at: 'datetime' =None, stopped_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
90
+ """V1CloudSpaceColdStartMetrics - a model defined in Swagger""" # noqa: E501
91
+ self._cloudspace_id = None
92
+ self._cloudspace_instance_id = None
93
+ self._cluster_id = None
94
+ self._container_started_at = None
95
+ self._created_at = None
96
+ self._deleted_at = None
97
+ self._docker_availability_ended_at = None
98
+ self._docker_availability_started_at = None
99
+ self._image_pulling_ended_at = None
100
+ self._image_pulling_started_at = None
101
+ self._instance_type = None
102
+ self._overprovisioned = None
103
+ self._progress_bar_ended_at = None
104
+ self._project_id = None
105
+ self._resources = None
106
+ self._spot = None
107
+ self._started_at = None
108
+ self._stop_at = None
109
+ self._stopped_at = None
110
+ self._user_id = None
111
+ self.discriminator = None
112
+ if cloudspace_id is not None:
113
+ self.cloudspace_id = cloudspace_id
114
+ if cloudspace_instance_id is not None:
115
+ self.cloudspace_instance_id = cloudspace_instance_id
116
+ if cluster_id is not None:
117
+ self.cluster_id = cluster_id
118
+ if container_started_at is not None:
119
+ self.container_started_at = container_started_at
120
+ if created_at is not None:
121
+ self.created_at = created_at
122
+ if deleted_at is not None:
123
+ self.deleted_at = deleted_at
124
+ if docker_availability_ended_at is not None:
125
+ self.docker_availability_ended_at = docker_availability_ended_at
126
+ if docker_availability_started_at is not None:
127
+ self.docker_availability_started_at = docker_availability_started_at
128
+ if image_pulling_ended_at is not None:
129
+ self.image_pulling_ended_at = image_pulling_ended_at
130
+ if image_pulling_started_at is not None:
131
+ self.image_pulling_started_at = image_pulling_started_at
132
+ if instance_type is not None:
133
+ self.instance_type = instance_type
134
+ if overprovisioned is not None:
135
+ self.overprovisioned = overprovisioned
136
+ if progress_bar_ended_at is not None:
137
+ self.progress_bar_ended_at = progress_bar_ended_at
138
+ if project_id is not None:
139
+ self.project_id = project_id
140
+ if resources is not None:
141
+ self.resources = resources
142
+ if spot is not None:
143
+ self.spot = spot
144
+ if started_at is not None:
145
+ self.started_at = started_at
146
+ if stop_at is not None:
147
+ self.stop_at = stop_at
148
+ if stopped_at is not None:
149
+ self.stopped_at = stopped_at
150
+ if user_id is not None:
151
+ self.user_id = user_id
152
+
153
+ @property
154
+ def cloudspace_id(self) -> 'str':
155
+ """Gets the cloudspace_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
156
+
157
+
158
+ :return: The cloudspace_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
159
+ :rtype: str
160
+ """
161
+ return self._cloudspace_id
162
+
163
+ @cloudspace_id.setter
164
+ def cloudspace_id(self, cloudspace_id: 'str'):
165
+ """Sets the cloudspace_id of this V1CloudSpaceColdStartMetrics.
166
+
167
+
168
+ :param cloudspace_id: The cloudspace_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
169
+ :type: str
170
+ """
171
+
172
+ self._cloudspace_id = cloudspace_id
173
+
174
+ @property
175
+ def cloudspace_instance_id(self) -> 'str':
176
+ """Gets the cloudspace_instance_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
177
+
178
+
179
+ :return: The cloudspace_instance_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
180
+ :rtype: str
181
+ """
182
+ return self._cloudspace_instance_id
183
+
184
+ @cloudspace_instance_id.setter
185
+ def cloudspace_instance_id(self, cloudspace_instance_id: 'str'):
186
+ """Sets the cloudspace_instance_id of this V1CloudSpaceColdStartMetrics.
187
+
188
+
189
+ :param cloudspace_instance_id: The cloudspace_instance_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
190
+ :type: str
191
+ """
192
+
193
+ self._cloudspace_instance_id = cloudspace_instance_id
194
+
195
+ @property
196
+ def cluster_id(self) -> 'str':
197
+ """Gets the cluster_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
198
+
199
+
200
+ :return: The cluster_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
201
+ :rtype: str
202
+ """
203
+ return self._cluster_id
204
+
205
+ @cluster_id.setter
206
+ def cluster_id(self, cluster_id: 'str'):
207
+ """Sets the cluster_id of this V1CloudSpaceColdStartMetrics.
208
+
209
+
210
+ :param cluster_id: The cluster_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
211
+ :type: str
212
+ """
213
+
214
+ self._cluster_id = cluster_id
215
+
216
+ @property
217
+ def container_started_at(self) -> 'datetime':
218
+ """Gets the container_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
219
+
220
+
221
+ :return: The container_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
222
+ :rtype: datetime
223
+ """
224
+ return self._container_started_at
225
+
226
+ @container_started_at.setter
227
+ def container_started_at(self, container_started_at: 'datetime'):
228
+ """Sets the container_started_at of this V1CloudSpaceColdStartMetrics.
229
+
230
+
231
+ :param container_started_at: The container_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
232
+ :type: datetime
233
+ """
234
+
235
+ self._container_started_at = container_started_at
236
+
237
+ @property
238
+ def created_at(self) -> 'datetime':
239
+ """Gets the created_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
240
+
241
+
242
+ :return: The created_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
243
+ :rtype: datetime
244
+ """
245
+ return self._created_at
246
+
247
+ @created_at.setter
248
+ def created_at(self, created_at: 'datetime'):
249
+ """Sets the created_at of this V1CloudSpaceColdStartMetrics.
250
+
251
+
252
+ :param created_at: The created_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
253
+ :type: datetime
254
+ """
255
+
256
+ self._created_at = created_at
257
+
258
+ @property
259
+ def deleted_at(self) -> 'datetime':
260
+ """Gets the deleted_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
261
+
262
+
263
+ :return: The deleted_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
264
+ :rtype: datetime
265
+ """
266
+ return self._deleted_at
267
+
268
+ @deleted_at.setter
269
+ def deleted_at(self, deleted_at: 'datetime'):
270
+ """Sets the deleted_at of this V1CloudSpaceColdStartMetrics.
271
+
272
+
273
+ :param deleted_at: The deleted_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
274
+ :type: datetime
275
+ """
276
+
277
+ self._deleted_at = deleted_at
278
+
279
+ @property
280
+ def docker_availability_ended_at(self) -> 'datetime':
281
+ """Gets the docker_availability_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
282
+
283
+
284
+ :return: The docker_availability_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
285
+ :rtype: datetime
286
+ """
287
+ return self._docker_availability_ended_at
288
+
289
+ @docker_availability_ended_at.setter
290
+ def docker_availability_ended_at(self, docker_availability_ended_at: 'datetime'):
291
+ """Sets the docker_availability_ended_at of this V1CloudSpaceColdStartMetrics.
292
+
293
+
294
+ :param docker_availability_ended_at: The docker_availability_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
295
+ :type: datetime
296
+ """
297
+
298
+ self._docker_availability_ended_at = docker_availability_ended_at
299
+
300
+ @property
301
+ def docker_availability_started_at(self) -> 'datetime':
302
+ """Gets the docker_availability_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
303
+
304
+
305
+ :return: The docker_availability_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
306
+ :rtype: datetime
307
+ """
308
+ return self._docker_availability_started_at
309
+
310
+ @docker_availability_started_at.setter
311
+ def docker_availability_started_at(self, docker_availability_started_at: 'datetime'):
312
+ """Sets the docker_availability_started_at of this V1CloudSpaceColdStartMetrics.
313
+
314
+
315
+ :param docker_availability_started_at: The docker_availability_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
316
+ :type: datetime
317
+ """
318
+
319
+ self._docker_availability_started_at = docker_availability_started_at
320
+
321
+ @property
322
+ def image_pulling_ended_at(self) -> 'datetime':
323
+ """Gets the image_pulling_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
324
+
325
+
326
+ :return: The image_pulling_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
327
+ :rtype: datetime
328
+ """
329
+ return self._image_pulling_ended_at
330
+
331
+ @image_pulling_ended_at.setter
332
+ def image_pulling_ended_at(self, image_pulling_ended_at: 'datetime'):
333
+ """Sets the image_pulling_ended_at of this V1CloudSpaceColdStartMetrics.
334
+
335
+
336
+ :param image_pulling_ended_at: The image_pulling_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
337
+ :type: datetime
338
+ """
339
+
340
+ self._image_pulling_ended_at = image_pulling_ended_at
341
+
342
+ @property
343
+ def image_pulling_started_at(self) -> 'datetime':
344
+ """Gets the image_pulling_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
345
+
346
+
347
+ :return: The image_pulling_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
348
+ :rtype: datetime
349
+ """
350
+ return self._image_pulling_started_at
351
+
352
+ @image_pulling_started_at.setter
353
+ def image_pulling_started_at(self, image_pulling_started_at: 'datetime'):
354
+ """Sets the image_pulling_started_at of this V1CloudSpaceColdStartMetrics.
355
+
356
+
357
+ :param image_pulling_started_at: The image_pulling_started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
358
+ :type: datetime
359
+ """
360
+
361
+ self._image_pulling_started_at = image_pulling_started_at
362
+
363
+ @property
364
+ def instance_type(self) -> 'str':
365
+ """Gets the instance_type of this V1CloudSpaceColdStartMetrics. # noqa: E501
366
+
367
+
368
+ :return: The instance_type of this V1CloudSpaceColdStartMetrics. # noqa: E501
369
+ :rtype: str
370
+ """
371
+ return self._instance_type
372
+
373
+ @instance_type.setter
374
+ def instance_type(self, instance_type: 'str'):
375
+ """Sets the instance_type of this V1CloudSpaceColdStartMetrics.
376
+
377
+
378
+ :param instance_type: The instance_type of this V1CloudSpaceColdStartMetrics. # noqa: E501
379
+ :type: str
380
+ """
381
+
382
+ self._instance_type = instance_type
383
+
384
+ @property
385
+ def overprovisioned(self) -> 'bool':
386
+ """Gets the overprovisioned of this V1CloudSpaceColdStartMetrics. # noqa: E501
387
+
388
+
389
+ :return: The overprovisioned of this V1CloudSpaceColdStartMetrics. # noqa: E501
390
+ :rtype: bool
391
+ """
392
+ return self._overprovisioned
393
+
394
+ @overprovisioned.setter
395
+ def overprovisioned(self, overprovisioned: 'bool'):
396
+ """Sets the overprovisioned of this V1CloudSpaceColdStartMetrics.
397
+
398
+
399
+ :param overprovisioned: The overprovisioned of this V1CloudSpaceColdStartMetrics. # noqa: E501
400
+ :type: bool
401
+ """
402
+
403
+ self._overprovisioned = overprovisioned
404
+
405
+ @property
406
+ def progress_bar_ended_at(self) -> 'datetime':
407
+ """Gets the progress_bar_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
408
+
409
+
410
+ :return: The progress_bar_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
411
+ :rtype: datetime
412
+ """
413
+ return self._progress_bar_ended_at
414
+
415
+ @progress_bar_ended_at.setter
416
+ def progress_bar_ended_at(self, progress_bar_ended_at: 'datetime'):
417
+ """Sets the progress_bar_ended_at of this V1CloudSpaceColdStartMetrics.
418
+
419
+
420
+ :param progress_bar_ended_at: The progress_bar_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
421
+ :type: datetime
422
+ """
423
+
424
+ self._progress_bar_ended_at = progress_bar_ended_at
425
+
426
+ @property
427
+ def project_id(self) -> 'str':
428
+ """Gets the project_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
429
+
430
+
431
+ :return: The project_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
432
+ :rtype: str
433
+ """
434
+ return self._project_id
435
+
436
+ @project_id.setter
437
+ def project_id(self, project_id: 'str'):
438
+ """Sets the project_id of this V1CloudSpaceColdStartMetrics.
439
+
440
+
441
+ :param project_id: The project_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
442
+ :type: str
443
+ """
444
+
445
+ self._project_id = project_id
446
+
447
+ @property
448
+ def resources(self) -> 'V1Resources':
449
+ """Gets the resources of this V1CloudSpaceColdStartMetrics. # noqa: E501
450
+
451
+
452
+ :return: The resources of this V1CloudSpaceColdStartMetrics. # noqa: E501
453
+ :rtype: V1Resources
454
+ """
455
+ return self._resources
456
+
457
+ @resources.setter
458
+ def resources(self, resources: 'V1Resources'):
459
+ """Sets the resources of this V1CloudSpaceColdStartMetrics.
460
+
461
+
462
+ :param resources: The resources of this V1CloudSpaceColdStartMetrics. # noqa: E501
463
+ :type: V1Resources
464
+ """
465
+
466
+ self._resources = resources
467
+
468
+ @property
469
+ def spot(self) -> 'bool':
470
+ """Gets the spot of this V1CloudSpaceColdStartMetrics. # noqa: E501
471
+
472
+
473
+ :return: The spot of this V1CloudSpaceColdStartMetrics. # noqa: E501
474
+ :rtype: bool
475
+ """
476
+ return self._spot
477
+
478
+ @spot.setter
479
+ def spot(self, spot: 'bool'):
480
+ """Sets the spot of this V1CloudSpaceColdStartMetrics.
481
+
482
+
483
+ :param spot: The spot of this V1CloudSpaceColdStartMetrics. # noqa: E501
484
+ :type: bool
485
+ """
486
+
487
+ self._spot = spot
488
+
489
+ @property
490
+ def started_at(self) -> 'datetime':
491
+ """Gets the started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
492
+
493
+
494
+ :return: The started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
495
+ :rtype: datetime
496
+ """
497
+ return self._started_at
498
+
499
+ @started_at.setter
500
+ def started_at(self, started_at: 'datetime'):
501
+ """Sets the started_at of this V1CloudSpaceColdStartMetrics.
502
+
503
+
504
+ :param started_at: The started_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
505
+ :type: datetime
506
+ """
507
+
508
+ self._started_at = started_at
509
+
510
+ @property
511
+ def stop_at(self) -> 'datetime':
512
+ """Gets the stop_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
513
+
514
+
515
+ :return: The stop_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
516
+ :rtype: datetime
517
+ """
518
+ return self._stop_at
519
+
520
+ @stop_at.setter
521
+ def stop_at(self, stop_at: 'datetime'):
522
+ """Sets the stop_at of this V1CloudSpaceColdStartMetrics.
523
+
524
+
525
+ :param stop_at: The stop_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
526
+ :type: datetime
527
+ """
528
+
529
+ self._stop_at = stop_at
530
+
531
+ @property
532
+ def stopped_at(self) -> 'datetime':
533
+ """Gets the stopped_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
534
+
535
+
536
+ :return: The stopped_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
537
+ :rtype: datetime
538
+ """
539
+ return self._stopped_at
540
+
541
+ @stopped_at.setter
542
+ def stopped_at(self, stopped_at: 'datetime'):
543
+ """Sets the stopped_at of this V1CloudSpaceColdStartMetrics.
544
+
545
+
546
+ :param stopped_at: The stopped_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
547
+ :type: datetime
548
+ """
549
+
550
+ self._stopped_at = stopped_at
551
+
552
+ @property
553
+ def user_id(self) -> 'str':
554
+ """Gets the user_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
555
+
556
+
557
+ :return: The user_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
558
+ :rtype: str
559
+ """
560
+ return self._user_id
561
+
562
+ @user_id.setter
563
+ def user_id(self, user_id: 'str'):
564
+ """Sets the user_id of this V1CloudSpaceColdStartMetrics.
565
+
566
+
567
+ :param user_id: The user_id of this V1CloudSpaceColdStartMetrics. # noqa: E501
568
+ :type: str
569
+ """
570
+
571
+ self._user_id = user_id
572
+
573
+ def to_dict(self) -> dict:
574
+ """Returns the model properties as a dict"""
575
+ result = {}
576
+
577
+ for attr, _ in six.iteritems(self.swagger_types):
578
+ value = getattr(self, attr)
579
+ if isinstance(value, list):
580
+ result[attr] = list(map(
581
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
582
+ value
583
+ ))
584
+ elif hasattr(value, "to_dict"):
585
+ result[attr] = value.to_dict()
586
+ elif isinstance(value, dict):
587
+ result[attr] = dict(map(
588
+ lambda item: (item[0], item[1].to_dict())
589
+ if hasattr(item[1], "to_dict") else item,
590
+ value.items()
591
+ ))
592
+ else:
593
+ result[attr] = value
594
+ if issubclass(V1CloudSpaceColdStartMetrics, dict):
595
+ for key, value in self.items():
596
+ result[key] = value
597
+
598
+ return result
599
+
600
+ def to_str(self) -> str:
601
+ """Returns the string representation of the model"""
602
+ return pprint.pformat(self.to_dict())
603
+
604
+ def __repr__(self) -> str:
605
+ """For `print` and `pprint`"""
606
+ return self.to_str()
607
+
608
+ def __eq__(self, other: 'V1CloudSpaceColdStartMetrics') -> bool:
609
+ """Returns true if both objects are equal"""
610
+ if not isinstance(other, V1CloudSpaceColdStartMetrics):
611
+ return False
612
+
613
+ return self.__dict__ == other.__dict__
614
+
615
+ def __ne__(self, other: 'V1CloudSpaceColdStartMetrics') -> bool:
616
+ """Returns true if both objects are not equal"""
617
+ return not self == other
@@ -45,7 +45,8 @@ class V1ConversationResponseChunk(object):
45
45
  'conversation_id': 'str',
46
46
  'executable': 'bool',
47
47
  'id': 'str',
48
- 'object': 'str'
48
+ 'object': 'str',
49
+ 'throughput': 'float'
49
50
  }
50
51
 
51
52
  attribute_map = {
@@ -53,16 +54,18 @@ class V1ConversationResponseChunk(object):
53
54
  'conversation_id': 'conversationId',
54
55
  'executable': 'executable',
55
56
  'id': 'id',
56
- 'object': 'object'
57
+ 'object': 'object',
58
+ 'throughput': 'throughput'
57
59
  }
58
60
 
59
- def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, object: 'str' =None): # noqa: E501
61
+ def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, object: 'str' =None, throughput: 'float' =None): # noqa: E501
60
62
  """V1ConversationResponseChunk - a model defined in Swagger""" # noqa: E501
61
63
  self._choices = None
62
64
  self._conversation_id = None
63
65
  self._executable = None
64
66
  self._id = None
65
67
  self._object = None
68
+ self._throughput = None
66
69
  self.discriminator = None
67
70
  if choices is not None:
68
71
  self.choices = choices
@@ -74,6 +77,8 @@ class V1ConversationResponseChunk(object):
74
77
  self.id = id
75
78
  if object is not None:
76
79
  self.object = object
80
+ if throughput is not None:
81
+ self.throughput = throughput
77
82
 
78
83
  @property
79
84
  def choices(self) -> 'list[V1ResponseChoice]':
@@ -180,6 +185,27 @@ class V1ConversationResponseChunk(object):
180
185
 
181
186
  self._object = object
182
187
 
188
+ @property
189
+ def throughput(self) -> 'float':
190
+ """Gets the throughput of this V1ConversationResponseChunk. # noqa: E501
191
+
192
+
193
+ :return: The throughput of this V1ConversationResponseChunk. # noqa: E501
194
+ :rtype: float
195
+ """
196
+ return self._throughput
197
+
198
+ @throughput.setter
199
+ def throughput(self, throughput: 'float'):
200
+ """Sets the throughput of this V1ConversationResponseChunk.
201
+
202
+
203
+ :param throughput: The throughput of this V1ConversationResponseChunk. # noqa: E501
204
+ :type: float
205
+ """
206
+
207
+ self._throughput = throughput
208
+
183
209
  def to_dict(self) -> dict:
184
210
  """Returns the model properties as a dict"""
185
211
  result = {}