lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__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 (99) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/k8s_api.py +75 -29
  3. lightning_sdk/api/studio_api.py +195 -33
  4. lightning_sdk/api/teamspace_api.py +28 -9
  5. lightning_sdk/cli/cp/__init__.py +64 -0
  6. lightning_sdk/cli/entrypoint.py +2 -0
  7. lightning_sdk/cli/groups.py +22 -0
  8. lightning_sdk/cli/legacy/clusters_menu.py +2 -2
  9. lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
  10. lightning_sdk/cli/legacy/run.py +13 -2
  11. lightning_sdk/cli/studio/__init__.py +4 -0
  12. lightning_sdk/cli/studio/cp.py +20 -64
  13. lightning_sdk/cli/studio/ls.py +57 -0
  14. lightning_sdk/cli/studio/rm.py +71 -0
  15. lightning_sdk/cli/utils/logging.py +2 -1
  16. lightning_sdk/cli/utils/studio_filesystem.py +65 -0
  17. lightning_sdk/cli/utils/teamspace_selection.py +5 -0
  18. lightning_sdk/exceptions.py +4 -0
  19. lightning_sdk/job/base.py +1 -1
  20. lightning_sdk/k8s_cluster.py +9 -10
  21. lightning_sdk/lightning_cloud/__version__.py +1 -1
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -11
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
  24. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
  25. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
  26. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
  27. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
  28. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
  29. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
  30. lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
  31. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
  32. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
  33. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
  34. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
  35. lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
  36. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
  39. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
  50. lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
  51. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_delete_lit_logger_media_response.py} +6 -6
  52. lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_virtual_machine_response.py} +6 -6
  53. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
  54. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
  56. lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
  57. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
  67. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
  70. lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
  71. lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
  73. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
  74. lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  76. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
  80. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
  81. lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
  82. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
  83. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
  84. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
  85. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
  86. lightning_sdk/lightning_cloud/rest_client.py +0 -2
  87. lightning_sdk/machine.py +3 -3
  88. lightning_sdk/studio.py +14 -4
  89. lightning_sdk/utils/logging.py +2 -1
  90. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
  91. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
  92. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
  93. lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
  94. lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
  95. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
  96. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
  97. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
  98. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
  99. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.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 LitLoggerServiceCreateLitLoggerMediaBody(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
+ 'caption': 'str',
45
+ 'content_hash': 'str',
46
+ 'epoch': 'str',
47
+ 'media_type': 'V1MediaType',
48
+ 'mime_type': 'str',
49
+ 'name': 'str',
50
+ 'size_bytes': 'str',
51
+ 'step': 'str'
52
+ }
53
+
54
+ attribute_map = {
55
+ 'caption': 'caption',
56
+ 'content_hash': 'contentHash',
57
+ 'epoch': 'epoch',
58
+ 'media_type': 'mediaType',
59
+ 'mime_type': 'mimeType',
60
+ 'name': 'name',
61
+ 'size_bytes': 'sizeBytes',
62
+ 'step': 'step'
63
+ }
64
+
65
+ def __init__(self, caption: 'str' =None, content_hash: 'str' =None, epoch: 'str' =None, media_type: 'V1MediaType' =None, mime_type: 'str' =None, name: 'str' =None, size_bytes: 'str' =None, step: 'str' =None): # noqa: E501
66
+ """LitLoggerServiceCreateLitLoggerMediaBody - a model defined in Swagger""" # noqa: E501
67
+ self._caption = None
68
+ self._content_hash = None
69
+ self._epoch = None
70
+ self._media_type = None
71
+ self._mime_type = None
72
+ self._name = None
73
+ self._size_bytes = None
74
+ self._step = None
75
+ self.discriminator = None
76
+ if caption is not None:
77
+ self.caption = caption
78
+ if content_hash is not None:
79
+ self.content_hash = content_hash
80
+ if epoch is not None:
81
+ self.epoch = epoch
82
+ if media_type is not None:
83
+ self.media_type = media_type
84
+ if mime_type is not None:
85
+ self.mime_type = mime_type
86
+ if name is not None:
87
+ self.name = name
88
+ if size_bytes is not None:
89
+ self.size_bytes = size_bytes
90
+ if step is not None:
91
+ self.step = step
92
+
93
+ @property
94
+ def caption(self) -> 'str':
95
+ """Gets the caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
96
+
97
+
98
+ :return: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
99
+ :rtype: str
100
+ """
101
+ return self._caption
102
+
103
+ @caption.setter
104
+ def caption(self, caption: 'str'):
105
+ """Sets the caption of this LitLoggerServiceCreateLitLoggerMediaBody.
106
+
107
+
108
+ :param caption: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
109
+ :type: str
110
+ """
111
+
112
+ self._caption = caption
113
+
114
+ @property
115
+ def content_hash(self) -> 'str':
116
+ """Gets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
117
+
118
+
119
+ :return: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._content_hash
123
+
124
+ @content_hash.setter
125
+ def content_hash(self, content_hash: 'str'):
126
+ """Sets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody.
127
+
128
+
129
+ :param content_hash: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
130
+ :type: str
131
+ """
132
+
133
+ self._content_hash = content_hash
134
+
135
+ @property
136
+ def epoch(self) -> 'str':
137
+ """Gets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
138
+
139
+
140
+ :return: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._epoch
144
+
145
+ @epoch.setter
146
+ def epoch(self, epoch: 'str'):
147
+ """Sets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody.
148
+
149
+
150
+ :param epoch: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
151
+ :type: str
152
+ """
153
+
154
+ self._epoch = epoch
155
+
156
+ @property
157
+ def media_type(self) -> 'V1MediaType':
158
+ """Gets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
159
+
160
+
161
+ :return: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
162
+ :rtype: V1MediaType
163
+ """
164
+ return self._media_type
165
+
166
+ @media_type.setter
167
+ def media_type(self, media_type: 'V1MediaType'):
168
+ """Sets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody.
169
+
170
+
171
+ :param media_type: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
172
+ :type: V1MediaType
173
+ """
174
+
175
+ self._media_type = media_type
176
+
177
+ @property
178
+ def mime_type(self) -> 'str':
179
+ """Gets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
180
+
181
+
182
+ :return: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
183
+ :rtype: str
184
+ """
185
+ return self._mime_type
186
+
187
+ @mime_type.setter
188
+ def mime_type(self, mime_type: 'str'):
189
+ """Sets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody.
190
+
191
+
192
+ :param mime_type: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
193
+ :type: str
194
+ """
195
+
196
+ self._mime_type = mime_type
197
+
198
+ @property
199
+ def name(self) -> 'str':
200
+ """Gets the name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
201
+
202
+
203
+ :return: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
204
+ :rtype: str
205
+ """
206
+ return self._name
207
+
208
+ @name.setter
209
+ def name(self, name: 'str'):
210
+ """Sets the name of this LitLoggerServiceCreateLitLoggerMediaBody.
211
+
212
+
213
+ :param name: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
214
+ :type: str
215
+ """
216
+
217
+ self._name = name
218
+
219
+ @property
220
+ def size_bytes(self) -> 'str':
221
+ """Gets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
222
+
223
+
224
+ :return: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
225
+ :rtype: str
226
+ """
227
+ return self._size_bytes
228
+
229
+ @size_bytes.setter
230
+ def size_bytes(self, size_bytes: 'str'):
231
+ """Sets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody.
232
+
233
+
234
+ :param size_bytes: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
235
+ :type: str
236
+ """
237
+
238
+ self._size_bytes = size_bytes
239
+
240
+ @property
241
+ def step(self) -> 'str':
242
+ """Gets the step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
243
+
244
+
245
+ :return: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
246
+ :rtype: str
247
+ """
248
+ return self._step
249
+
250
+ @step.setter
251
+ def step(self, step: 'str'):
252
+ """Sets the step of this LitLoggerServiceCreateLitLoggerMediaBody.
253
+
254
+
255
+ :param step: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
256
+ :type: str
257
+ """
258
+
259
+ self._step = step
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(LitLoggerServiceCreateLitLoggerMediaBody, 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: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
297
+ """Returns true if both objects are equal"""
298
+ if not isinstance(other, LitLoggerServiceCreateLitLoggerMediaBody):
299
+ return False
300
+
301
+ return self.__dict__ == other.__dict__
302
+
303
+ def __ne__(self, other: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
304
+ """Returns true if both objects are not equal"""
305
+ 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 LitLoggerServiceUpdateLitLoggerMediaBody(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
+ 'caption': 'str',
45
+ 'upload_complete': 'bool'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'caption': 'caption',
50
+ 'upload_complete': 'uploadComplete'
51
+ }
52
+
53
+ def __init__(self, caption: 'str' =None, upload_complete: 'bool' =None): # noqa: E501
54
+ """LitLoggerServiceUpdateLitLoggerMediaBody - a model defined in Swagger""" # noqa: E501
55
+ self._caption = None
56
+ self._upload_complete = None
57
+ self.discriminator = None
58
+ if caption is not None:
59
+ self.caption = caption
60
+ if upload_complete is not None:
61
+ self.upload_complete = upload_complete
62
+
63
+ @property
64
+ def caption(self) -> 'str':
65
+ """Gets the caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
66
+
67
+
68
+ :return: The caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._caption
72
+
73
+ @caption.setter
74
+ def caption(self, caption: 'str'):
75
+ """Sets the caption of this LitLoggerServiceUpdateLitLoggerMediaBody.
76
+
77
+
78
+ :param caption: The caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._caption = caption
83
+
84
+ @property
85
+ def upload_complete(self) -> 'bool':
86
+ """Gets the upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
87
+
88
+
89
+ :return: The upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
90
+ :rtype: bool
91
+ """
92
+ return self._upload_complete
93
+
94
+ @upload_complete.setter
95
+ def upload_complete(self, upload_complete: 'bool'):
96
+ """Sets the upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody.
97
+
98
+
99
+ :param upload_complete: The upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
100
+ :type: bool
101
+ """
102
+
103
+ self._upload_complete = upload_complete
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(LitLoggerServiceUpdateLitLoggerMediaBody, 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: 'LitLoggerServiceUpdateLitLoggerMediaBody') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, LitLoggerServiceUpdateLitLoggerMediaBody):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'LitLoggerServiceUpdateLitLoggerMediaBody') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -41,6 +41,8 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'dark_color': 'str',
45
+ 'light_color': 'str',
44
46
  'name': 'str',
45
47
  'persisted': 'bool',
46
48
  'phase': 'V1PhaseType',
@@ -48,19 +50,27 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
48
50
  }
49
51
 
50
52
  attribute_map = {
53
+ 'dark_color': 'darkColor',
54
+ 'light_color': 'lightColor',
51
55
  'name': 'name',
52
56
  'persisted': 'persisted',
53
57
  'phase': 'phase',
54
58
  'trackers': 'trackers'
55
59
  }
56
60
 
57
- def __init__(self, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
61
+ def __init__(self, dark_color: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
58
62
  """LitLoggerServiceUpdateMetricsStreamBody - a model defined in Swagger""" # noqa: E501
63
+ self._dark_color = None
64
+ self._light_color = None
59
65
  self._name = None
60
66
  self._persisted = None
61
67
  self._phase = None
62
68
  self._trackers = None
63
69
  self.discriminator = None
70
+ if dark_color is not None:
71
+ self.dark_color = dark_color
72
+ if light_color is not None:
73
+ self.light_color = light_color
64
74
  if name is not None:
65
75
  self.name = name
66
76
  if persisted is not None:
@@ -70,6 +80,48 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
70
80
  if trackers is not None:
71
81
  self.trackers = trackers
72
82
 
83
+ @property
84
+ def dark_color(self) -> 'str':
85
+ """Gets the dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
86
+
87
+
88
+ :return: The dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
89
+ :rtype: str
90
+ """
91
+ return self._dark_color
92
+
93
+ @dark_color.setter
94
+ def dark_color(self, dark_color: 'str'):
95
+ """Sets the dark_color of this LitLoggerServiceUpdateMetricsStreamBody.
96
+
97
+
98
+ :param dark_color: The dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
99
+ :type: str
100
+ """
101
+
102
+ self._dark_color = dark_color
103
+
104
+ @property
105
+ def light_color(self) -> 'str':
106
+ """Gets the light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
107
+
108
+
109
+ :return: The light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._light_color
113
+
114
+ @light_color.setter
115
+ def light_color(self, light_color: 'str'):
116
+ """Sets the light_color of this LitLoggerServiceUpdateMetricsStreamBody.
117
+
118
+
119
+ :param light_color: The light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
120
+ :type: str
121
+ """
122
+
123
+ self._light_color = light_color
124
+
73
125
  @property
74
126
  def name(self) -> 'str':
75
127
  """Gets the name of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501