lightning-sdk 2025.7.10__py3-none-any.whl → 2025.7.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.
- lightning_sdk/__init__.py +3 -2
- lightning_sdk/api/cloud_account_api.py +154 -0
- lightning_sdk/api/deployment_api.py +11 -0
- lightning_sdk/api/job_api.py +9 -0
- lightning_sdk/api/llm_api.py +11 -6
- lightning_sdk/api/mmt_api.py +9 -0
- lightning_sdk/api/pipeline_api.py +4 -3
- lightning_sdk/api/studio_api.py +19 -5
- lightning_sdk/cli/clusters_menu.py +3 -3
- lightning_sdk/cli/create.py +22 -10
- lightning_sdk/cli/deploy/_auth.py +19 -3
- lightning_sdk/cli/deploy/serve.py +18 -4
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/start.py +37 -7
- lightning_sdk/deployment/deployment.py +8 -0
- lightning_sdk/job/base.py +37 -5
- lightning_sdk/job/job.py +28 -4
- lightning_sdk/job/v1.py +10 -1
- lightning_sdk/job/v2.py +15 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -1
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +335 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +214 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +15 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → conversations_id_body1.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/protobuf_null_value.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +3 -55
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +3 -55
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoint_models_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -261
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +27 -1
- lightning_sdk/llm/llm.py +32 -5
- lightning_sdk/llm/public_assistants.json +3 -1
- lightning_sdk/machine.py +24 -1
- lightning_sdk/mmt/base.py +20 -2
- lightning_sdk/mmt/mmt.py +25 -3
- lightning_sdk/mmt/v1.py +7 -1
- lightning_sdk/mmt/v2.py +21 -2
- lightning_sdk/organization.py +4 -0
- lightning_sdk/pipeline/pipeline.py +16 -5
- lightning_sdk/pipeline/printer.py +5 -3
- lightning_sdk/pipeline/schedule.py +844 -1
- lightning_sdk/pipeline/steps.py +19 -4
- lightning_sdk/sandbox.py +4 -1
- lightning_sdk/serve.py +2 -0
- lightning_sdk/studio.py +79 -39
- lightning_sdk/teamspace.py +14 -8
- lightning_sdk/utils/resolve.py +29 -2
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/RECORD +92 -78
- lightning_sdk/api/cluster_api.py +0 -119
- /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/top_level.txt +0 -0
|
@@ -41,28 +41,23 @@ class ProjectIdStorageBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'allow_multicloud': 'bool',
|
|
45
44
|
'cluster_id': 'str',
|
|
46
45
|
'count': 'str',
|
|
47
46
|
'filename': 'str'
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
attribute_map = {
|
|
51
|
-
'allow_multicloud': 'allowMulticloud',
|
|
52
50
|
'cluster_id': 'clusterId',
|
|
53
51
|
'count': 'count',
|
|
54
52
|
'filename': 'filename'
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
def __init__(self,
|
|
55
|
+
def __init__(self, cluster_id: 'str' =None, count: 'str' =None, filename: 'str' =None): # noqa: E501
|
|
58
56
|
"""ProjectIdStorageBody - a model defined in Swagger""" # noqa: E501
|
|
59
|
-
self._allow_multicloud = None
|
|
60
57
|
self._cluster_id = None
|
|
61
58
|
self._count = None
|
|
62
59
|
self._filename = None
|
|
63
60
|
self.discriminator = None
|
|
64
|
-
if allow_multicloud is not None:
|
|
65
|
-
self.allow_multicloud = allow_multicloud
|
|
66
61
|
if cluster_id is not None:
|
|
67
62
|
self.cluster_id = cluster_id
|
|
68
63
|
if count is not None:
|
|
@@ -70,27 +65,6 @@ class ProjectIdStorageBody(object):
|
|
|
70
65
|
if filename is not None:
|
|
71
66
|
self.filename = filename
|
|
72
67
|
|
|
73
|
-
@property
|
|
74
|
-
def allow_multicloud(self) -> 'bool':
|
|
75
|
-
"""Gets the allow_multicloud of this ProjectIdStorageBody. # noqa: E501
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:return: The allow_multicloud of this ProjectIdStorageBody. # noqa: E501
|
|
79
|
-
:rtype: bool
|
|
80
|
-
"""
|
|
81
|
-
return self._allow_multicloud
|
|
82
|
-
|
|
83
|
-
@allow_multicloud.setter
|
|
84
|
-
def allow_multicloud(self, allow_multicloud: 'bool'):
|
|
85
|
-
"""Sets the allow_multicloud of this ProjectIdStorageBody.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
:param allow_multicloud: The allow_multicloud of this ProjectIdStorageBody. # noqa: E501
|
|
89
|
-
:type: bool
|
|
90
|
-
"""
|
|
91
|
-
|
|
92
|
-
self._allow_multicloud = allow_multicloud
|
|
93
|
-
|
|
94
68
|
@property
|
|
95
69
|
def cluster_id(self) -> 'str':
|
|
96
70
|
"""Gets the cluster_id of this ProjectIdStorageBody. # noqa: E501
|
|
@@ -0,0 +1,102 @@
|
|
|
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 ProtobufNullValue(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
NULL_VALUE = "NULL_VALUE"
|
|
41
|
+
"""
|
|
42
|
+
Attributes:
|
|
43
|
+
swagger_types (dict): The key is attribute name
|
|
44
|
+
and the value is attribute type.
|
|
45
|
+
attribute_map (dict): The key is attribute name
|
|
46
|
+
and the value is json key in definition.
|
|
47
|
+
"""
|
|
48
|
+
swagger_types = {
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
def __init__(self): # noqa: E501
|
|
55
|
+
"""ProtobufNullValue - a model defined in Swagger""" # noqa: E501
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> dict:
|
|
59
|
+
"""Returns the model properties as a dict"""
|
|
60
|
+
result = {}
|
|
61
|
+
|
|
62
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
63
|
+
value = getattr(self, attr)
|
|
64
|
+
if isinstance(value, list):
|
|
65
|
+
result[attr] = list(map(
|
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
67
|
+
value
|
|
68
|
+
))
|
|
69
|
+
elif hasattr(value, "to_dict"):
|
|
70
|
+
result[attr] = value.to_dict()
|
|
71
|
+
elif isinstance(value, dict):
|
|
72
|
+
result[attr] = dict(map(
|
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
|
75
|
+
value.items()
|
|
76
|
+
))
|
|
77
|
+
else:
|
|
78
|
+
result[attr] = value
|
|
79
|
+
if issubclass(ProtobufNullValue, dict):
|
|
80
|
+
for key, value in self.items():
|
|
81
|
+
result[key] = value
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def to_str(self) -> str:
|
|
86
|
+
"""Returns the string representation of the model"""
|
|
87
|
+
return pprint.pformat(self.to_dict())
|
|
88
|
+
|
|
89
|
+
def __repr__(self) -> str:
|
|
90
|
+
"""For `print` and `pprint`"""
|
|
91
|
+
return self.to_str()
|
|
92
|
+
|
|
93
|
+
def __eq__(self, other: 'ProtobufNullValue') -> bool:
|
|
94
|
+
"""Returns true if both objects are equal"""
|
|
95
|
+
if not isinstance(other, ProtobufNullValue):
|
|
96
|
+
return False
|
|
97
|
+
|
|
98
|
+
return self.__dict__ == other.__dict__
|
|
99
|
+
|
|
100
|
+
def __ne__(self, other: 'ProtobufNullValue') -> bool:
|
|
101
|
+
"""Returns true if both objects are not equal"""
|
|
102
|
+
return not self == other
|
|
@@ -51,6 +51,7 @@ class SchedulesIdBody(object):
|
|
|
51
51
|
'resource_id': 'str',
|
|
52
52
|
'resource_type': 'V1ScheduleResourceType',
|
|
53
53
|
'state': 'str',
|
|
54
|
+
'timezone': 'str',
|
|
54
55
|
'total': 'int',
|
|
55
56
|
'updated_at': 'datetime',
|
|
56
57
|
'user_id': 'str'
|
|
@@ -67,12 +68,13 @@ class SchedulesIdBody(object):
|
|
|
67
68
|
'resource_id': 'resourceId',
|
|
68
69
|
'resource_type': 'resourceType',
|
|
69
70
|
'state': 'state',
|
|
71
|
+
'timezone': 'timezone',
|
|
70
72
|
'total': 'total',
|
|
71
73
|
'updated_at': 'updatedAt',
|
|
72
74
|
'user_id': 'userId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, action_type: 'V1ScheduleActionType' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, timezone: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""SchedulesIdBody - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._action_type = None
|
|
78
80
|
self._created_at = None
|
|
@@ -84,6 +86,7 @@ class SchedulesIdBody(object):
|
|
|
84
86
|
self._resource_id = None
|
|
85
87
|
self._resource_type = None
|
|
86
88
|
self._state = None
|
|
89
|
+
self._timezone = None
|
|
87
90
|
self._total = None
|
|
88
91
|
self._updated_at = None
|
|
89
92
|
self._user_id = None
|
|
@@ -108,6 +111,8 @@ class SchedulesIdBody(object):
|
|
|
108
111
|
self.resource_type = resource_type
|
|
109
112
|
if state is not None:
|
|
110
113
|
self.state = state
|
|
114
|
+
if timezone is not None:
|
|
115
|
+
self.timezone = timezone
|
|
111
116
|
if total is not None:
|
|
112
117
|
self.total = total
|
|
113
118
|
if updated_at is not None:
|
|
@@ -325,6 +330,27 @@ class SchedulesIdBody(object):
|
|
|
325
330
|
|
|
326
331
|
self._state = state
|
|
327
332
|
|
|
333
|
+
@property
|
|
334
|
+
def timezone(self) -> 'str':
|
|
335
|
+
"""Gets the timezone of this SchedulesIdBody. # noqa: E501
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:return: The timezone of this SchedulesIdBody. # noqa: E501
|
|
339
|
+
:rtype: str
|
|
340
|
+
"""
|
|
341
|
+
return self._timezone
|
|
342
|
+
|
|
343
|
+
@timezone.setter
|
|
344
|
+
def timezone(self, timezone: 'str'):
|
|
345
|
+
"""Sets the timezone of this SchedulesIdBody.
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:param timezone: The timezone of this SchedulesIdBody. # noqa: E501
|
|
349
|
+
:type: str
|
|
350
|
+
"""
|
|
351
|
+
|
|
352
|
+
self._timezone = timezone
|
|
353
|
+
|
|
328
354
|
@property
|
|
329
355
|
def total(self) -> 'int':
|
|
330
356
|
"""Gets the total of this SchedulesIdBody. # noqa: E501
|
|
@@ -41,7 +41,6 @@ class StorageCompleteBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'allow_multicloud': 'bool',
|
|
45
44
|
'cluster_id': 'str',
|
|
46
45
|
'filename': 'str',
|
|
47
46
|
'parts': 'list[V1CompleteUpload]',
|
|
@@ -50,7 +49,6 @@ class StorageCompleteBody(object):
|
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
attribute_map = {
|
|
53
|
-
'allow_multicloud': 'allowMulticloud',
|
|
54
52
|
'cluster_id': 'clusterId',
|
|
55
53
|
'filename': 'filename',
|
|
56
54
|
'parts': 'parts',
|
|
@@ -58,17 +56,14 @@ class StorageCompleteBody(object):
|
|
|
58
56
|
'upload_id': 'uploadId'
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
def __init__(self,
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, suppress_reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
|
|
62
60
|
"""StorageCompleteBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
-
self._allow_multicloud = None
|
|
64
61
|
self._cluster_id = None
|
|
65
62
|
self._filename = None
|
|
66
63
|
self._parts = None
|
|
67
64
|
self._suppress_reindex = None
|
|
68
65
|
self._upload_id = None
|
|
69
66
|
self.discriminator = None
|
|
70
|
-
if allow_multicloud is not None:
|
|
71
|
-
self.allow_multicloud = allow_multicloud
|
|
72
67
|
if cluster_id is not None:
|
|
73
68
|
self.cluster_id = cluster_id
|
|
74
69
|
if filename is not None:
|
|
@@ -80,27 +75,6 @@ class StorageCompleteBody(object):
|
|
|
80
75
|
if upload_id is not None:
|
|
81
76
|
self.upload_id = upload_id
|
|
82
77
|
|
|
83
|
-
@property
|
|
84
|
-
def allow_multicloud(self) -> 'bool':
|
|
85
|
-
"""Gets the allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
:return: The allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
89
|
-
:rtype: bool
|
|
90
|
-
"""
|
|
91
|
-
return self._allow_multicloud
|
|
92
|
-
|
|
93
|
-
@allow_multicloud.setter
|
|
94
|
-
def allow_multicloud(self, allow_multicloud: 'bool'):
|
|
95
|
-
"""Sets the allow_multicloud of this StorageCompleteBody.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
:param allow_multicloud: The allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
99
|
-
:type: bool
|
|
100
|
-
"""
|
|
101
|
-
|
|
102
|
-
self._allow_multicloud = allow_multicloud
|
|
103
|
-
|
|
104
78
|
@property
|
|
105
79
|
def cluster_id(self) -> 'str':
|
|
106
80
|
"""Gets the cluster_id of this StorageCompleteBody. # noqa: E501
|
|
@@ -41,60 +41,29 @@ class UploadsUploadIdBody1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'allow_multicloud': 'bool',
|
|
45
44
|
'cluster_id': 'str',
|
|
46
45
|
'filename': 'str',
|
|
47
|
-
'parts': 'list[str]'
|
|
48
|
-
'uploads': 'list[V1ClusterUpload]'
|
|
46
|
+
'parts': 'list[str]'
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
attribute_map = {
|
|
52
|
-
'allow_multicloud': 'allowMulticloud',
|
|
53
50
|
'cluster_id': 'clusterId',
|
|
54
51
|
'filename': 'filename',
|
|
55
|
-
'parts': 'parts'
|
|
56
|
-
'uploads': 'uploads'
|
|
52
|
+
'parts': 'parts'
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
def __init__(self,
|
|
55
|
+
def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None): # noqa: E501
|
|
60
56
|
"""UploadsUploadIdBody1 - a model defined in Swagger""" # noqa: E501
|
|
61
|
-
self._allow_multicloud = None
|
|
62
57
|
self._cluster_id = None
|
|
63
58
|
self._filename = None
|
|
64
59
|
self._parts = None
|
|
65
|
-
self._uploads = None
|
|
66
60
|
self.discriminator = None
|
|
67
|
-
if allow_multicloud is not None:
|
|
68
|
-
self.allow_multicloud = allow_multicloud
|
|
69
61
|
if cluster_id is not None:
|
|
70
62
|
self.cluster_id = cluster_id
|
|
71
63
|
if filename is not None:
|
|
72
64
|
self.filename = filename
|
|
73
65
|
if parts is not None:
|
|
74
66
|
self.parts = parts
|
|
75
|
-
if uploads is not None:
|
|
76
|
-
self.uploads = uploads
|
|
77
|
-
|
|
78
|
-
@property
|
|
79
|
-
def allow_multicloud(self) -> 'bool':
|
|
80
|
-
"""Gets the allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:return: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
84
|
-
:rtype: bool
|
|
85
|
-
"""
|
|
86
|
-
return self._allow_multicloud
|
|
87
|
-
|
|
88
|
-
@allow_multicloud.setter
|
|
89
|
-
def allow_multicloud(self, allow_multicloud: 'bool'):
|
|
90
|
-
"""Sets the allow_multicloud of this UploadsUploadIdBody1.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:param allow_multicloud: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
94
|
-
:type: bool
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
self._allow_multicloud = allow_multicloud
|
|
98
67
|
|
|
99
68
|
@property
|
|
100
69
|
def cluster_id(self) -> 'str':
|
|
@@ -159,27 +128,6 @@ class UploadsUploadIdBody1(object):
|
|
|
159
128
|
|
|
160
129
|
self._parts = parts
|
|
161
130
|
|
|
162
|
-
@property
|
|
163
|
-
def uploads(self) -> 'list[V1ClusterUpload]':
|
|
164
|
-
"""Gets the uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
:return: The uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
168
|
-
:rtype: list[V1ClusterUpload]
|
|
169
|
-
"""
|
|
170
|
-
return self._uploads
|
|
171
|
-
|
|
172
|
-
@uploads.setter
|
|
173
|
-
def uploads(self, uploads: 'list[V1ClusterUpload]'):
|
|
174
|
-
"""Sets the uploads of this UploadsUploadIdBody1.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:param uploads: The uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
178
|
-
:type: list[V1ClusterUpload]
|
|
179
|
-
"""
|
|
180
|
-
|
|
181
|
-
self._uploads = uploads
|
|
182
|
-
|
|
183
131
|
def to_dict(self) -> dict:
|
|
184
132
|
"""Returns the model properties as a dict"""
|
|
185
133
|
result = {}
|
|
@@ -0,0 +1,175 @@
|
|
|
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 UserIdUpgradetriggerBody(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
|
+
'feature_key': 'str',
|
|
45
|
+
'metadata': 'str',
|
|
46
|
+
'org_id': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'feature_key': 'featureKey',
|
|
51
|
+
'metadata': 'metadata',
|
|
52
|
+
'org_id': 'orgId'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, feature_key: 'str' =None, metadata: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
56
|
+
"""UserIdUpgradetriggerBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._feature_key = None
|
|
58
|
+
self._metadata = None
|
|
59
|
+
self._org_id = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if feature_key is not None:
|
|
62
|
+
self.feature_key = feature_key
|
|
63
|
+
if metadata is not None:
|
|
64
|
+
self.metadata = metadata
|
|
65
|
+
if org_id is not None:
|
|
66
|
+
self.org_id = org_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def feature_key(self) -> 'str':
|
|
70
|
+
"""Gets the feature_key of this UserIdUpgradetriggerBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The feature_key of this UserIdUpgradetriggerBody. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._feature_key
|
|
77
|
+
|
|
78
|
+
@feature_key.setter
|
|
79
|
+
def feature_key(self, feature_key: 'str'):
|
|
80
|
+
"""Sets the feature_key of this UserIdUpgradetriggerBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param feature_key: The feature_key of this UserIdUpgradetriggerBody. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._feature_key = feature_key
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def metadata(self) -> 'str':
|
|
91
|
+
"""Gets the metadata of this UserIdUpgradetriggerBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The metadata of this UserIdUpgradetriggerBody. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._metadata
|
|
98
|
+
|
|
99
|
+
@metadata.setter
|
|
100
|
+
def metadata(self, metadata: 'str'):
|
|
101
|
+
"""Sets the metadata of this UserIdUpgradetriggerBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param metadata: The metadata of this UserIdUpgradetriggerBody. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._metadata = metadata
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def org_id(self) -> 'str':
|
|
112
|
+
"""Gets the org_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The org_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._org_id
|
|
119
|
+
|
|
120
|
+
@org_id.setter
|
|
121
|
+
def org_id(self, org_id: 'str'):
|
|
122
|
+
"""Sets the org_id of this UserIdUpgradetriggerBody.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param org_id: The org_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._org_id = org_id
|
|
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(UserIdUpgradetriggerBody, 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: 'UserIdUpgradetriggerBody') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, UserIdUpgradetriggerBody):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'UserIdUpgradetriggerBody') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1AiPodV1(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
|
+
'organization_id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'organization_id': 'organizationId'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, organization_id: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1AiPodV1 - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._organization_id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if organization_id is not None:
|
|
56
|
+
self.organization_id = organization_id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def organization_id(self) -> 'str':
|
|
60
|
+
"""Gets the organization_id of this V1AiPodV1. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The organization_id of this V1AiPodV1. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._organization_id
|
|
67
|
+
|
|
68
|
+
@organization_id.setter
|
|
69
|
+
def organization_id(self, organization_id: 'str'):
|
|
70
|
+
"""Sets the organization_id of this V1AiPodV1.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param organization_id: The organization_id of this V1AiPodV1. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._organization_id = organization_id
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1AiPodV1, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1AiPodV1') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1AiPodV1):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1AiPodV1') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|