lightning-sdk 2025.8.1__py3-none-any.whl → 2025.8.6rc1__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 (65) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +6 -4
  3. lightning_sdk/api/job_api.py +2 -0
  4. lightning_sdk/api/mmt_api.py +2 -0
  5. lightning_sdk/deployment/deployment.py +5 -0
  6. lightning_sdk/lightning_cloud/login.py +1 -7
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
  11. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
  12. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
  13. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  14. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
  15. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
  16. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  17. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
  21. lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
  22. lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
  25. lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
  26. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
  27. lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
  33. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
  34. lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
  35. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
  37. lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
  38. lightning_sdk/llm/llm.py +2 -13
  39. lightning_sdk/llm/public_assistants.py +17 -0
  40. lightning_sdk/pipeline/steps.py +30 -1
  41. lightning_sdk/services/file_endpoint.py +3 -4
  42. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/METADATA +1 -1
  43. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/RECORD +47 -55
  44. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
  45. lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
  46. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
  47. lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
  48. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
  49. lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
  50. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
  51. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
  52. lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
  53. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
  54. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
  56. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
  58. lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
  59. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
  60. lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
  61. lightning_sdk/llm/public_assistants.json +0 -34
  62. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/LICENSE +0 -0
  63. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/WHEEL +0 -0
  64. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/entry_points.txt +0 -0
  65. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/top_level.txt +0 -0
@@ -1,461 +0,0 @@
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 V1FileEndpoint(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
- 'arguments': 'list[V1CommandArgument]',
45
- 'cloudspace_id': 'str',
46
- 'cluster_id': 'str',
47
- 'command': 'str',
48
- 'description': 'str',
49
- 'function_name': 'str',
50
- 'id': 'str',
51
- 'method': 'str',
52
- 'path': 'str',
53
- 'plugin_id': 'str',
54
- 'project_id': 'str',
55
- 'project_owner_name': 'str',
56
- 'published': 'bool',
57
- 'user_id': 'str'
58
- }
59
-
60
- attribute_map = {
61
- 'arguments': 'arguments',
62
- 'cloudspace_id': 'cloudspaceId',
63
- 'cluster_id': 'clusterId',
64
- 'command': 'command',
65
- 'description': 'description',
66
- 'function_name': 'functionName',
67
- 'id': 'id',
68
- 'method': 'method',
69
- 'path': 'path',
70
- 'plugin_id': 'pluginId',
71
- 'project_id': 'projectId',
72
- 'project_owner_name': 'projectOwnerName',
73
- 'published': 'published',
74
- 'user_id': 'userId'
75
- }
76
-
77
- def __init__(self, arguments: 'list[V1CommandArgument]' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, description: 'str' =None, function_name: 'str' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, plugin_id: 'str' =None, project_id: 'str' =None, project_owner_name: 'str' =None, published: 'bool' =None, user_id: 'str' =None): # noqa: E501
78
- """V1FileEndpoint - a model defined in Swagger""" # noqa: E501
79
- self._arguments = None
80
- self._cloudspace_id = None
81
- self._cluster_id = None
82
- self._command = None
83
- self._description = None
84
- self._function_name = None
85
- self._id = None
86
- self._method = None
87
- self._path = None
88
- self._plugin_id = None
89
- self._project_id = None
90
- self._project_owner_name = None
91
- self._published = None
92
- self._user_id = None
93
- self.discriminator = None
94
- if arguments is not None:
95
- self.arguments = arguments
96
- if cloudspace_id is not None:
97
- self.cloudspace_id = cloudspace_id
98
- if cluster_id is not None:
99
- self.cluster_id = cluster_id
100
- if command is not None:
101
- self.command = command
102
- if description is not None:
103
- self.description = description
104
- if function_name is not None:
105
- self.function_name = function_name
106
- if id is not None:
107
- self.id = id
108
- if method is not None:
109
- self.method = method
110
- if path is not None:
111
- self.path = path
112
- if plugin_id is not None:
113
- self.plugin_id = plugin_id
114
- if project_id is not None:
115
- self.project_id = project_id
116
- if project_owner_name is not None:
117
- self.project_owner_name = project_owner_name
118
- if published is not None:
119
- self.published = published
120
- if user_id is not None:
121
- self.user_id = user_id
122
-
123
- @property
124
- def arguments(self) -> 'list[V1CommandArgument]':
125
- """Gets the arguments of this V1FileEndpoint. # noqa: E501
126
-
127
-
128
- :return: The arguments of this V1FileEndpoint. # noqa: E501
129
- :rtype: list[V1CommandArgument]
130
- """
131
- return self._arguments
132
-
133
- @arguments.setter
134
- def arguments(self, arguments: 'list[V1CommandArgument]'):
135
- """Sets the arguments of this V1FileEndpoint.
136
-
137
-
138
- :param arguments: The arguments of this V1FileEndpoint. # noqa: E501
139
- :type: list[V1CommandArgument]
140
- """
141
-
142
- self._arguments = arguments
143
-
144
- @property
145
- def cloudspace_id(self) -> 'str':
146
- """Gets the cloudspace_id of this V1FileEndpoint. # noqa: E501
147
-
148
-
149
- :return: The cloudspace_id of this V1FileEndpoint. # noqa: E501
150
- :rtype: str
151
- """
152
- return self._cloudspace_id
153
-
154
- @cloudspace_id.setter
155
- def cloudspace_id(self, cloudspace_id: 'str'):
156
- """Sets the cloudspace_id of this V1FileEndpoint.
157
-
158
-
159
- :param cloudspace_id: The cloudspace_id of this V1FileEndpoint. # noqa: E501
160
- :type: str
161
- """
162
-
163
- self._cloudspace_id = cloudspace_id
164
-
165
- @property
166
- def cluster_id(self) -> 'str':
167
- """Gets the cluster_id of this V1FileEndpoint. # noqa: E501
168
-
169
-
170
- :return: The cluster_id of this V1FileEndpoint. # noqa: E501
171
- :rtype: str
172
- """
173
- return self._cluster_id
174
-
175
- @cluster_id.setter
176
- def cluster_id(self, cluster_id: 'str'):
177
- """Sets the cluster_id of this V1FileEndpoint.
178
-
179
-
180
- :param cluster_id: The cluster_id of this V1FileEndpoint. # noqa: E501
181
- :type: str
182
- """
183
-
184
- self._cluster_id = cluster_id
185
-
186
- @property
187
- def command(self) -> 'str':
188
- """Gets the command of this V1FileEndpoint. # noqa: E501
189
-
190
-
191
- :return: The command of this V1FileEndpoint. # noqa: E501
192
- :rtype: str
193
- """
194
- return self._command
195
-
196
- @command.setter
197
- def command(self, command: 'str'):
198
- """Sets the command of this V1FileEndpoint.
199
-
200
-
201
- :param command: The command of this V1FileEndpoint. # noqa: E501
202
- :type: str
203
- """
204
-
205
- self._command = command
206
-
207
- @property
208
- def description(self) -> 'str':
209
- """Gets the description of this V1FileEndpoint. # noqa: E501
210
-
211
-
212
- :return: The description of this V1FileEndpoint. # noqa: E501
213
- :rtype: str
214
- """
215
- return self._description
216
-
217
- @description.setter
218
- def description(self, description: 'str'):
219
- """Sets the description of this V1FileEndpoint.
220
-
221
-
222
- :param description: The description of this V1FileEndpoint. # noqa: E501
223
- :type: str
224
- """
225
-
226
- self._description = description
227
-
228
- @property
229
- def function_name(self) -> 'str':
230
- """Gets the function_name of this V1FileEndpoint. # noqa: E501
231
-
232
-
233
- :return: The function_name of this V1FileEndpoint. # noqa: E501
234
- :rtype: str
235
- """
236
- return self._function_name
237
-
238
- @function_name.setter
239
- def function_name(self, function_name: 'str'):
240
- """Sets the function_name of this V1FileEndpoint.
241
-
242
-
243
- :param function_name: The function_name of this V1FileEndpoint. # noqa: E501
244
- :type: str
245
- """
246
-
247
- self._function_name = function_name
248
-
249
- @property
250
- def id(self) -> 'str':
251
- """Gets the id of this V1FileEndpoint. # noqa: E501
252
-
253
-
254
- :return: The id of this V1FileEndpoint. # noqa: E501
255
- :rtype: str
256
- """
257
- return self._id
258
-
259
- @id.setter
260
- def id(self, id: 'str'):
261
- """Sets the id of this V1FileEndpoint.
262
-
263
-
264
- :param id: The id of this V1FileEndpoint. # noqa: E501
265
- :type: str
266
- """
267
-
268
- self._id = id
269
-
270
- @property
271
- def method(self) -> 'str':
272
- """Gets the method of this V1FileEndpoint. # noqa: E501
273
-
274
-
275
- :return: The method of this V1FileEndpoint. # noqa: E501
276
- :rtype: str
277
- """
278
- return self._method
279
-
280
- @method.setter
281
- def method(self, method: 'str'):
282
- """Sets the method of this V1FileEndpoint.
283
-
284
-
285
- :param method: The method of this V1FileEndpoint. # noqa: E501
286
- :type: str
287
- """
288
-
289
- self._method = method
290
-
291
- @property
292
- def path(self) -> 'str':
293
- """Gets the path of this V1FileEndpoint. # noqa: E501
294
-
295
-
296
- :return: The path of this V1FileEndpoint. # noqa: E501
297
- :rtype: str
298
- """
299
- return self._path
300
-
301
- @path.setter
302
- def path(self, path: 'str'):
303
- """Sets the path of this V1FileEndpoint.
304
-
305
-
306
- :param path: The path of this V1FileEndpoint. # noqa: E501
307
- :type: str
308
- """
309
-
310
- self._path = path
311
-
312
- @property
313
- def plugin_id(self) -> 'str':
314
- """Gets the plugin_id of this V1FileEndpoint. # noqa: E501
315
-
316
-
317
- :return: The plugin_id of this V1FileEndpoint. # noqa: E501
318
- :rtype: str
319
- """
320
- return self._plugin_id
321
-
322
- @plugin_id.setter
323
- def plugin_id(self, plugin_id: 'str'):
324
- """Sets the plugin_id of this V1FileEndpoint.
325
-
326
-
327
- :param plugin_id: The plugin_id of this V1FileEndpoint. # noqa: E501
328
- :type: str
329
- """
330
-
331
- self._plugin_id = plugin_id
332
-
333
- @property
334
- def project_id(self) -> 'str':
335
- """Gets the project_id of this V1FileEndpoint. # noqa: E501
336
-
337
-
338
- :return: The project_id of this V1FileEndpoint. # noqa: E501
339
- :rtype: str
340
- """
341
- return self._project_id
342
-
343
- @project_id.setter
344
- def project_id(self, project_id: 'str'):
345
- """Sets the project_id of this V1FileEndpoint.
346
-
347
-
348
- :param project_id: The project_id of this V1FileEndpoint. # noqa: E501
349
- :type: str
350
- """
351
-
352
- self._project_id = project_id
353
-
354
- @property
355
- def project_owner_name(self) -> 'str':
356
- """Gets the project_owner_name of this V1FileEndpoint. # noqa: E501
357
-
358
-
359
- :return: The project_owner_name of this V1FileEndpoint. # noqa: E501
360
- :rtype: str
361
- """
362
- return self._project_owner_name
363
-
364
- @project_owner_name.setter
365
- def project_owner_name(self, project_owner_name: 'str'):
366
- """Sets the project_owner_name of this V1FileEndpoint.
367
-
368
-
369
- :param project_owner_name: The project_owner_name of this V1FileEndpoint. # noqa: E501
370
- :type: str
371
- """
372
-
373
- self._project_owner_name = project_owner_name
374
-
375
- @property
376
- def published(self) -> 'bool':
377
- """Gets the published of this V1FileEndpoint. # noqa: E501
378
-
379
-
380
- :return: The published of this V1FileEndpoint. # noqa: E501
381
- :rtype: bool
382
- """
383
- return self._published
384
-
385
- @published.setter
386
- def published(self, published: 'bool'):
387
- """Sets the published of this V1FileEndpoint.
388
-
389
-
390
- :param published: The published of this V1FileEndpoint. # noqa: E501
391
- :type: bool
392
- """
393
-
394
- self._published = published
395
-
396
- @property
397
- def user_id(self) -> 'str':
398
- """Gets the user_id of this V1FileEndpoint. # noqa: E501
399
-
400
-
401
- :return: The user_id of this V1FileEndpoint. # noqa: E501
402
- :rtype: str
403
- """
404
- return self._user_id
405
-
406
- @user_id.setter
407
- def user_id(self, user_id: 'str'):
408
- """Sets the user_id of this V1FileEndpoint.
409
-
410
-
411
- :param user_id: The user_id of this V1FileEndpoint. # noqa: E501
412
- :type: str
413
- """
414
-
415
- self._user_id = user_id
416
-
417
- def to_dict(self) -> dict:
418
- """Returns the model properties as a dict"""
419
- result = {}
420
-
421
- for attr, _ in six.iteritems(self.swagger_types):
422
- value = getattr(self, attr)
423
- if isinstance(value, list):
424
- result[attr] = list(map(
425
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
426
- value
427
- ))
428
- elif hasattr(value, "to_dict"):
429
- result[attr] = value.to_dict()
430
- elif isinstance(value, dict):
431
- result[attr] = dict(map(
432
- lambda item: (item[0], item[1].to_dict())
433
- if hasattr(item[1], "to_dict") else item,
434
- value.items()
435
- ))
436
- else:
437
- result[attr] = value
438
- if issubclass(V1FileEndpoint, dict):
439
- for key, value in self.items():
440
- result[key] = value
441
-
442
- return result
443
-
444
- def to_str(self) -> str:
445
- """Returns the string representation of the model"""
446
- return pprint.pformat(self.to_dict())
447
-
448
- def __repr__(self) -> str:
449
- """For `print` and `pprint`"""
450
- return self.to_str()
451
-
452
- def __eq__(self, other: 'V1FileEndpoint') -> bool:
453
- """Returns true if both objects are equal"""
454
- if not isinstance(other, V1FileEndpoint):
455
- return False
456
-
457
- return self.__dict__ == other.__dict__
458
-
459
- def __ne__(self, other: 'V1FileEndpoint') -> bool:
460
- """Returns true if both objects are not equal"""
461
- return not self == other
@@ -1,175 +0,0 @@
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 V1GetServiceExecutionStatusResponse(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
- 'artifacts': 'list[V1ServiceArtifact]',
45
- 'phase': 'str',
46
- 'progress': 'dict(str, str)'
47
- }
48
-
49
- attribute_map = {
50
- 'artifacts': 'artifacts',
51
- 'phase': 'phase',
52
- 'progress': 'progress'
53
- }
54
-
55
- def __init__(self, artifacts: 'list[V1ServiceArtifact]' =None, phase: 'str' =None, progress: 'dict(str, str)' =None): # noqa: E501
56
- """V1GetServiceExecutionStatusResponse - a model defined in Swagger""" # noqa: E501
57
- self._artifacts = None
58
- self._phase = None
59
- self._progress = None
60
- self.discriminator = None
61
- if artifacts is not None:
62
- self.artifacts = artifacts
63
- if phase is not None:
64
- self.phase = phase
65
- if progress is not None:
66
- self.progress = progress
67
-
68
- @property
69
- def artifacts(self) -> 'list[V1ServiceArtifact]':
70
- """Gets the artifacts of this V1GetServiceExecutionStatusResponse. # noqa: E501
71
-
72
-
73
- :return: The artifacts of this V1GetServiceExecutionStatusResponse. # noqa: E501
74
- :rtype: list[V1ServiceArtifact]
75
- """
76
- return self._artifacts
77
-
78
- @artifacts.setter
79
- def artifacts(self, artifacts: 'list[V1ServiceArtifact]'):
80
- """Sets the artifacts of this V1GetServiceExecutionStatusResponse.
81
-
82
-
83
- :param artifacts: The artifacts of this V1GetServiceExecutionStatusResponse. # noqa: E501
84
- :type: list[V1ServiceArtifact]
85
- """
86
-
87
- self._artifacts = artifacts
88
-
89
- @property
90
- def phase(self) -> 'str':
91
- """Gets the phase of this V1GetServiceExecutionStatusResponse. # noqa: E501
92
-
93
-
94
- :return: The phase of this V1GetServiceExecutionStatusResponse. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._phase
98
-
99
- @phase.setter
100
- def phase(self, phase: 'str'):
101
- """Sets the phase of this V1GetServiceExecutionStatusResponse.
102
-
103
-
104
- :param phase: The phase of this V1GetServiceExecutionStatusResponse. # noqa: E501
105
- :type: str
106
- """
107
-
108
- self._phase = phase
109
-
110
- @property
111
- def progress(self) -> 'dict(str, str)':
112
- """Gets the progress of this V1GetServiceExecutionStatusResponse. # noqa: E501
113
-
114
-
115
- :return: The progress of this V1GetServiceExecutionStatusResponse. # noqa: E501
116
- :rtype: dict(str, str)
117
- """
118
- return self._progress
119
-
120
- @progress.setter
121
- def progress(self, progress: 'dict(str, str)'):
122
- """Sets the progress of this V1GetServiceExecutionStatusResponse.
123
-
124
-
125
- :param progress: The progress of this V1GetServiceExecutionStatusResponse. # noqa: E501
126
- :type: dict(str, str)
127
- """
128
-
129
- self._progress = progress
130
-
131
- def to_dict(self) -> dict:
132
- """Returns the model properties as a dict"""
133
- result = {}
134
-
135
- for attr, _ in six.iteritems(self.swagger_types):
136
- value = getattr(self, attr)
137
- if isinstance(value, list):
138
- result[attr] = list(map(
139
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
- value
141
- ))
142
- elif hasattr(value, "to_dict"):
143
- result[attr] = value.to_dict()
144
- elif isinstance(value, dict):
145
- result[attr] = dict(map(
146
- lambda item: (item[0], item[1].to_dict())
147
- if hasattr(item[1], "to_dict") else item,
148
- value.items()
149
- ))
150
- else:
151
- result[attr] = value
152
- if issubclass(V1GetServiceExecutionStatusResponse, dict):
153
- for key, value in self.items():
154
- result[key] = value
155
-
156
- return result
157
-
158
- def to_str(self) -> str:
159
- """Returns the string representation of the model"""
160
- return pprint.pformat(self.to_dict())
161
-
162
- def __repr__(self) -> str:
163
- """For `print` and `pprint`"""
164
- return self.to_str()
165
-
166
- def __eq__(self, other: 'V1GetServiceExecutionStatusResponse') -> bool:
167
- """Returns true if both objects are equal"""
168
- if not isinstance(other, V1GetServiceExecutionStatusResponse):
169
- return False
170
-
171
- return self.__dict__ == other.__dict__
172
-
173
- def __ne__(self, other: 'V1GetServiceExecutionStatusResponse') -> bool:
174
- """Returns true if both objects are not equal"""
175
- return not self == other