lightning-sdk 2025.7.17__py3-none-any.whl → 2025.7.30rc0__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 +204 -0
- lightning_sdk/api/deployment_api.py +11 -0
- lightning_sdk/api/job_api.py +82 -10
- lightning_sdk/api/llm_api.py +1 -1
- lightning_sdk/api/mmt_api.py +44 -5
- lightning_sdk/api/pipeline_api.py +4 -3
- lightning_sdk/api/studio_api.py +51 -8
- lightning_sdk/api/utils.py +6 -2
- lightning_sdk/cli/clusters_menu.py +3 -3
- lightning_sdk/cli/create.py +25 -11
- lightning_sdk/cli/deploy/_auth.py +19 -3
- lightning_sdk/cli/deploy/serve.py +21 -5
- lightning_sdk/cli/download.py +25 -1
- lightning_sdk/cli/entrypoint.py +4 -2
- lightning_sdk/cli/list.py +5 -1
- lightning_sdk/cli/run.py +3 -1
- lightning_sdk/cli/start.py +40 -8
- lightning_sdk/cli/switch.py +3 -1
- lightning_sdk/deployment/deployment.py +8 -0
- lightning_sdk/job/base.py +27 -3
- lightning_sdk/job/job.py +28 -4
- lightning_sdk/job/v1.py +10 -1
- lightning_sdk/job/v2.py +22 -2
- lightning_sdk/job/work.py +5 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -1
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +428 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +153 -48
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +295 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -1
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.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 +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_clickhouse_assistant_session_daily_aggregated_response.py → v1_get_assistant_session_daily_aggregated_response.py} +22 -22
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -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 +79 -313
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +1 -0
- lightning_sdk/llm/llm.py +69 -11
- lightning_sdk/llm/public_assistants.json +32 -8
- lightning_sdk/machine.py +151 -43
- 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 +27 -3
- lightning_sdk/models.py +1 -1
- 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 +91 -44
- lightning_sdk/teamspace.py +19 -10
- lightning_sdk/utils/resolve.py +37 -2
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/METADATA +7 -5
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/RECORD +98 -85
- lightning_sdk/api/cluster_api.py +0 -119
- /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/top_level.txt +0 -0
|
@@ -44,6 +44,7 @@ class V1Conversation(object):
|
|
|
44
44
|
'assistant_id': 'str',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'id': 'str',
|
|
47
|
+
'like': 'V1LikeStatus',
|
|
47
48
|
'messages': 'list[V1Message]',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'project_id': 'str',
|
|
@@ -56,6 +57,7 @@ class V1Conversation(object):
|
|
|
56
57
|
'assistant_id': 'assistantId',
|
|
57
58
|
'created_at': 'createdAt',
|
|
58
59
|
'id': 'id',
|
|
60
|
+
'like': 'like',
|
|
59
61
|
'messages': 'messages',
|
|
60
62
|
'name': 'name',
|
|
61
63
|
'project_id': 'projectId',
|
|
@@ -64,11 +66,12 @@ class V1Conversation(object):
|
|
|
64
66
|
'user_id': 'userId'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, messages: 'list[V1Message]' =None, name: 'str' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
69
|
+
def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, like: 'V1LikeStatus' =None, messages: 'list[V1Message]' =None, name: 'str' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
68
70
|
"""V1Conversation - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._assistant_id = None
|
|
70
72
|
self._created_at = None
|
|
71
73
|
self._id = None
|
|
74
|
+
self._like = None
|
|
72
75
|
self._messages = None
|
|
73
76
|
self._name = None
|
|
74
77
|
self._project_id = None
|
|
@@ -82,6 +85,8 @@ class V1Conversation(object):
|
|
|
82
85
|
self.created_at = created_at
|
|
83
86
|
if id is not None:
|
|
84
87
|
self.id = id
|
|
88
|
+
if like is not None:
|
|
89
|
+
self.like = like
|
|
85
90
|
if messages is not None:
|
|
86
91
|
self.messages = messages
|
|
87
92
|
if name is not None:
|
|
@@ -158,6 +163,27 @@ class V1Conversation(object):
|
|
|
158
163
|
|
|
159
164
|
self._id = id
|
|
160
165
|
|
|
166
|
+
@property
|
|
167
|
+
def like(self) -> 'V1LikeStatus':
|
|
168
|
+
"""Gets the like of this V1Conversation. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The like of this V1Conversation. # noqa: E501
|
|
172
|
+
:rtype: V1LikeStatus
|
|
173
|
+
"""
|
|
174
|
+
return self._like
|
|
175
|
+
|
|
176
|
+
@like.setter
|
|
177
|
+
def like(self, like: 'V1LikeStatus'):
|
|
178
|
+
"""Sets the like of this V1Conversation.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param like: The like of this V1Conversation. # noqa: E501
|
|
182
|
+
:type: V1LikeStatus
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._like = like
|
|
186
|
+
|
|
161
187
|
@property
|
|
162
188
|
def messages(self) -> 'list[V1Message]':
|
|
163
189
|
"""Gets the messages of this V1Conversation. # noqa: E501
|
|
@@ -45,6 +45,7 @@ class V1ConversationResponseChunk(object):
|
|
|
45
45
|
'conversation_id': 'str',
|
|
46
46
|
'executable': 'bool',
|
|
47
47
|
'id': 'str',
|
|
48
|
+
'message_id': 'str',
|
|
48
49
|
'object': 'str',
|
|
49
50
|
'stats': 'dict(str, str)',
|
|
50
51
|
'throughput': 'float',
|
|
@@ -56,18 +57,20 @@ class V1ConversationResponseChunk(object):
|
|
|
56
57
|
'conversation_id': 'conversationId',
|
|
57
58
|
'executable': 'executable',
|
|
58
59
|
'id': 'id',
|
|
60
|
+
'message_id': 'messageId',
|
|
59
61
|
'object': 'object',
|
|
60
62
|
'stats': 'stats',
|
|
61
63
|
'throughput': 'throughput',
|
|
62
64
|
'usage': 'usage'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, object: 'str' =None, stats: 'dict(str, str)' =None, throughput: 'float' =None, usage: 'V1TokenUsage' =None): # noqa: E501
|
|
67
|
+
def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, message_id: 'str' =None, object: 'str' =None, stats: 'dict(str, str)' =None, throughput: 'float' =None, usage: 'V1TokenUsage' =None): # noqa: E501
|
|
66
68
|
"""V1ConversationResponseChunk - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._choices = None
|
|
68
70
|
self._conversation_id = None
|
|
69
71
|
self._executable = None
|
|
70
72
|
self._id = None
|
|
73
|
+
self._message_id = None
|
|
71
74
|
self._object = None
|
|
72
75
|
self._stats = None
|
|
73
76
|
self._throughput = None
|
|
@@ -81,6 +84,8 @@ class V1ConversationResponseChunk(object):
|
|
|
81
84
|
self.executable = executable
|
|
82
85
|
if id is not None:
|
|
83
86
|
self.id = id
|
|
87
|
+
if message_id is not None:
|
|
88
|
+
self.message_id = message_id
|
|
84
89
|
if object is not None:
|
|
85
90
|
self.object = object
|
|
86
91
|
if stats is not None:
|
|
@@ -174,6 +179,27 @@ class V1ConversationResponseChunk(object):
|
|
|
174
179
|
|
|
175
180
|
self._id = id
|
|
176
181
|
|
|
182
|
+
@property
|
|
183
|
+
def message_id(self) -> 'str':
|
|
184
|
+
"""Gets the message_id of this V1ConversationResponseChunk. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The message_id of this V1ConversationResponseChunk. # noqa: E501
|
|
188
|
+
:rtype: str
|
|
189
|
+
"""
|
|
190
|
+
return self._message_id
|
|
191
|
+
|
|
192
|
+
@message_id.setter
|
|
193
|
+
def message_id(self, message_id: 'str'):
|
|
194
|
+
"""Sets the message_id of this V1ConversationResponseChunk.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param message_id: The message_id of this V1ConversationResponseChunk. # noqa: E501
|
|
198
|
+
:type: str
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._message_id = message_id
|
|
202
|
+
|
|
177
203
|
@property
|
|
178
204
|
def object(self) -> 'str':
|
|
179
205
|
"""Gets the object of this V1ConversationResponseChunk. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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 V1CreateBillingUpgradeTriggerRecordResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CreateBillingUpgradeTriggerRecordResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CreateBillingUpgradeTriggerRecordResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CreateBillingUpgradeTriggerRecordResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CreateBillingUpgradeTriggerRecordResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CreateBillingUpgradeTriggerRecordResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -43,6 +43,8 @@ class V1CreateBlogPostRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'author_id': 'str',
|
|
45
45
|
'category': 'str',
|
|
46
|
+
'customer_logo_url': 'str',
|
|
47
|
+
'customer_name': 'str',
|
|
46
48
|
'description': 'str',
|
|
47
49
|
'image_url': 'str',
|
|
48
50
|
'lit_page_id': 'str',
|
|
@@ -52,16 +54,20 @@ class V1CreateBlogPostRequest(object):
|
|
|
52
54
|
attribute_map = {
|
|
53
55
|
'author_id': 'authorId',
|
|
54
56
|
'category': 'category',
|
|
57
|
+
'customer_logo_url': 'customerLogoUrl',
|
|
58
|
+
'customer_name': 'customerName',
|
|
55
59
|
'description': 'description',
|
|
56
60
|
'image_url': 'imageUrl',
|
|
57
61
|
'lit_page_id': 'litPageId',
|
|
58
62
|
'title': 'title'
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
|
|
65
|
+
def __init__(self, author_id: 'str' =None, category: 'str' =None, customer_logo_url: 'str' =None, customer_name: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
|
|
62
66
|
"""V1CreateBlogPostRequest - a model defined in Swagger""" # noqa: E501
|
|
63
67
|
self._author_id = None
|
|
64
68
|
self._category = None
|
|
69
|
+
self._customer_logo_url = None
|
|
70
|
+
self._customer_name = None
|
|
65
71
|
self._description = None
|
|
66
72
|
self._image_url = None
|
|
67
73
|
self._lit_page_id = None
|
|
@@ -71,6 +77,10 @@ class V1CreateBlogPostRequest(object):
|
|
|
71
77
|
self.author_id = author_id
|
|
72
78
|
if category is not None:
|
|
73
79
|
self.category = category
|
|
80
|
+
if customer_logo_url is not None:
|
|
81
|
+
self.customer_logo_url = customer_logo_url
|
|
82
|
+
if customer_name is not None:
|
|
83
|
+
self.customer_name = customer_name
|
|
74
84
|
if description is not None:
|
|
75
85
|
self.description = description
|
|
76
86
|
if image_url is not None:
|
|
@@ -122,6 +132,48 @@ class V1CreateBlogPostRequest(object):
|
|
|
122
132
|
|
|
123
133
|
self._category = category
|
|
124
134
|
|
|
135
|
+
@property
|
|
136
|
+
def customer_logo_url(self) -> 'str':
|
|
137
|
+
"""Gets the customer_logo_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The customer_logo_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._customer_logo_url
|
|
144
|
+
|
|
145
|
+
@customer_logo_url.setter
|
|
146
|
+
def customer_logo_url(self, customer_logo_url: 'str'):
|
|
147
|
+
"""Sets the customer_logo_url of this V1CreateBlogPostRequest.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param customer_logo_url: The customer_logo_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
151
|
+
:type: str
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
self._customer_logo_url = customer_logo_url
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def customer_name(self) -> 'str':
|
|
158
|
+
"""Gets the customer_name of this V1CreateBlogPostRequest. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The customer_name of this V1CreateBlogPostRequest. # noqa: E501
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._customer_name
|
|
165
|
+
|
|
166
|
+
@customer_name.setter
|
|
167
|
+
def customer_name(self, customer_name: 'str'):
|
|
168
|
+
"""Sets the customer_name of this V1CreateBlogPostRequest.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param customer_name: The customer_name of this V1CreateBlogPostRequest. # noqa: E501
|
|
172
|
+
:type: str
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._customer_name = customer_name
|
|
176
|
+
|
|
125
177
|
@property
|
|
126
178
|
def description(self) -> 'str':
|
|
127
179
|
"""Gets the description of this V1CreateBlogPostRequest. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1CreateCheckoutSessionRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'amount': 'float',
|
|
45
45
|
'capture_method': 'str',
|
|
46
|
+
'gclid': 'str',
|
|
46
47
|
'org_id': 'str',
|
|
47
48
|
'project_id': 'str',
|
|
48
49
|
'redirect_url_cancelled': 'str',
|
|
@@ -54,6 +55,7 @@ class V1CreateCheckoutSessionRequest(object):
|
|
|
54
55
|
attribute_map = {
|
|
55
56
|
'amount': 'amount',
|
|
56
57
|
'capture_method': 'captureMethod',
|
|
58
|
+
'gclid': 'gclid',
|
|
57
59
|
'org_id': 'orgId',
|
|
58
60
|
'project_id': 'projectId',
|
|
59
61
|
'redirect_url_cancelled': 'redirectUrlCancelled',
|
|
@@ -62,10 +64,11 @@ class V1CreateCheckoutSessionRequest(object):
|
|
|
62
64
|
'wallet_type': 'walletType'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, amount: 'float' =None, capture_method: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, redirect_url_cancelled: 'str' =None, redirect_url_succeeded: 'str' =None, transaction_type: 'str' =None, wallet_type: 'CreateCheckoutSessionRequestWalletType' =None): # noqa: E501
|
|
67
|
+
def __init__(self, amount: 'float' =None, capture_method: 'str' =None, gclid: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, redirect_url_cancelled: 'str' =None, redirect_url_succeeded: 'str' =None, transaction_type: 'str' =None, wallet_type: 'CreateCheckoutSessionRequestWalletType' =None): # noqa: E501
|
|
66
68
|
"""V1CreateCheckoutSessionRequest - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._amount = None
|
|
68
70
|
self._capture_method = None
|
|
71
|
+
self._gclid = None
|
|
69
72
|
self._org_id = None
|
|
70
73
|
self._project_id = None
|
|
71
74
|
self._redirect_url_cancelled = None
|
|
@@ -77,6 +80,8 @@ class V1CreateCheckoutSessionRequest(object):
|
|
|
77
80
|
self.amount = amount
|
|
78
81
|
if capture_method is not None:
|
|
79
82
|
self.capture_method = capture_method
|
|
83
|
+
if gclid is not None:
|
|
84
|
+
self.gclid = gclid
|
|
80
85
|
if org_id is not None:
|
|
81
86
|
self.org_id = org_id
|
|
82
87
|
if project_id is not None:
|
|
@@ -132,6 +137,27 @@ class V1CreateCheckoutSessionRequest(object):
|
|
|
132
137
|
|
|
133
138
|
self._capture_method = capture_method
|
|
134
139
|
|
|
140
|
+
@property
|
|
141
|
+
def gclid(self) -> 'str':
|
|
142
|
+
"""Gets the gclid of this V1CreateCheckoutSessionRequest. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The gclid of this V1CreateCheckoutSessionRequest. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._gclid
|
|
149
|
+
|
|
150
|
+
@gclid.setter
|
|
151
|
+
def gclid(self, gclid: 'str'):
|
|
152
|
+
"""Sets the gclid of this V1CreateCheckoutSessionRequest.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param gclid: The gclid of this V1CreateCheckoutSessionRequest. # noqa: E501
|
|
156
|
+
:type: str
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._gclid = gclid
|
|
160
|
+
|
|
135
161
|
@property
|
|
136
162
|
def org_id(self) -> 'str':
|
|
137
163
|
"""Gets the org_id of this V1CreateCheckoutSessionRequest. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py
CHANGED
|
@@ -46,7 +46,9 @@ class V1CreateSubscriptionCheckoutSessionRequest(object):
|
|
|
46
46
|
'product_id': 'str',
|
|
47
47
|
'redirect_url_failed': 'str',
|
|
48
48
|
'redirect_url_succeeded': 'str',
|
|
49
|
-
'seats': 'int'
|
|
49
|
+
'seats': 'int',
|
|
50
|
+
'tier': 'V1BillingTier',
|
|
51
|
+
'upgrade_feature': 'str'
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
attribute_map = {
|
|
@@ -55,10 +57,12 @@ class V1CreateSubscriptionCheckoutSessionRequest(object):
|
|
|
55
57
|
'product_id': 'productId',
|
|
56
58
|
'redirect_url_failed': 'redirectUrlFailed',
|
|
57
59
|
'redirect_url_succeeded': 'redirectUrlSucceeded',
|
|
58
|
-
'seats': 'seats'
|
|
60
|
+
'seats': 'seats',
|
|
61
|
+
'tier': 'tier',
|
|
62
|
+
'upgrade_feature': 'upgradeFeature'
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
def __init__(self, billing_period: 'V1BillingPeriod' =None, org_id: 'str' =None, product_id: 'str' =None, redirect_url_failed: 'str' =None, redirect_url_succeeded: 'str' =None, seats: 'int' =None): # noqa: E501
|
|
65
|
+
def __init__(self, billing_period: 'V1BillingPeriod' =None, org_id: 'str' =None, product_id: 'str' =None, redirect_url_failed: 'str' =None, redirect_url_succeeded: 'str' =None, seats: 'int' =None, tier: 'V1BillingTier' =None, upgrade_feature: 'str' =None): # noqa: E501
|
|
62
66
|
"""V1CreateSubscriptionCheckoutSessionRequest - a model defined in Swagger""" # noqa: E501
|
|
63
67
|
self._billing_period = None
|
|
64
68
|
self._org_id = None
|
|
@@ -66,6 +70,8 @@ class V1CreateSubscriptionCheckoutSessionRequest(object):
|
|
|
66
70
|
self._redirect_url_failed = None
|
|
67
71
|
self._redirect_url_succeeded = None
|
|
68
72
|
self._seats = None
|
|
73
|
+
self._tier = None
|
|
74
|
+
self._upgrade_feature = None
|
|
69
75
|
self.discriminator = None
|
|
70
76
|
if billing_period is not None:
|
|
71
77
|
self.billing_period = billing_period
|
|
@@ -79,6 +85,10 @@ class V1CreateSubscriptionCheckoutSessionRequest(object):
|
|
|
79
85
|
self.redirect_url_succeeded = redirect_url_succeeded
|
|
80
86
|
if seats is not None:
|
|
81
87
|
self.seats = seats
|
|
88
|
+
if tier is not None:
|
|
89
|
+
self.tier = tier
|
|
90
|
+
if upgrade_feature is not None:
|
|
91
|
+
self.upgrade_feature = upgrade_feature
|
|
82
92
|
|
|
83
93
|
@property
|
|
84
94
|
def billing_period(self) -> 'V1BillingPeriod':
|
|
@@ -206,6 +216,48 @@ class V1CreateSubscriptionCheckoutSessionRequest(object):
|
|
|
206
216
|
|
|
207
217
|
self._seats = seats
|
|
208
218
|
|
|
219
|
+
@property
|
|
220
|
+
def tier(self) -> 'V1BillingTier':
|
|
221
|
+
"""Gets the tier of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The tier of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
225
|
+
:rtype: V1BillingTier
|
|
226
|
+
"""
|
|
227
|
+
return self._tier
|
|
228
|
+
|
|
229
|
+
@tier.setter
|
|
230
|
+
def tier(self, tier: 'V1BillingTier'):
|
|
231
|
+
"""Sets the tier of this V1CreateSubscriptionCheckoutSessionRequest.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param tier: The tier of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
235
|
+
:type: V1BillingTier
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._tier = tier
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def upgrade_feature(self) -> 'str':
|
|
242
|
+
"""Gets the upgrade_feature of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:return: The upgrade_feature of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
246
|
+
:rtype: str
|
|
247
|
+
"""
|
|
248
|
+
return self._upgrade_feature
|
|
249
|
+
|
|
250
|
+
@upgrade_feature.setter
|
|
251
|
+
def upgrade_feature(self, upgrade_feature: 'str'):
|
|
252
|
+
"""Sets the upgrade_feature of this V1CreateSubscriptionCheckoutSessionRequest.
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:param upgrade_feature: The upgrade_feature of this V1CreateSubscriptionCheckoutSessionRequest. # noqa: E501
|
|
256
|
+
:type: str
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
self._upgrade_feature = upgrade_feature
|
|
260
|
+
|
|
209
261
|
def to_dict(self) -> dict:
|
|
210
262
|
"""Returns the model properties as a dict"""
|
|
211
263
|
result = {}
|
|
@@ -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 V1FunctionCall(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': 'str',
|
|
45
|
+
'name': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'arguments': 'arguments',
|
|
50
|
+
'name': 'name'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, arguments: 'str' =None, name: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1FunctionCall - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._arguments = None
|
|
56
|
+
self._name = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if arguments is not None:
|
|
59
|
+
self.arguments = arguments
|
|
60
|
+
if name is not None:
|
|
61
|
+
self.name = name
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def arguments(self) -> 'str':
|
|
65
|
+
"""Gets the arguments of this V1FunctionCall. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The arguments of this V1FunctionCall. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._arguments
|
|
72
|
+
|
|
73
|
+
@arguments.setter
|
|
74
|
+
def arguments(self, arguments: 'str'):
|
|
75
|
+
"""Sets the arguments of this V1FunctionCall.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param arguments: The arguments of this V1FunctionCall. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._arguments = arguments
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def name(self) -> 'str':
|
|
86
|
+
"""Gets the name of this V1FunctionCall. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The name of this V1FunctionCall. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._name
|
|
93
|
+
|
|
94
|
+
@name.setter
|
|
95
|
+
def name(self, name: 'str'):
|
|
96
|
+
"""Sets the name of this V1FunctionCall.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param name: The name of this V1FunctionCall. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._name = name
|
|
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(V1FunctionCall, 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: 'V1FunctionCall') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1FunctionCall):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1FunctionCall') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|