lightning-sdk 2025.7.17__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/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 +27 -3
- 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 +9 -1
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +335 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +153 -48
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -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/project_id_schedules_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- 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_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_kubernetes_direct_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -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 +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_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 +1 -261
- lightning_sdk/llm/llm.py +29 -5
- lightning_sdk/machine.py +12 -0
- 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.17.dist-info → lightning_sdk-2025.7.22.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/RECORD +67 -59
- 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.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/top_level.txt +0 -0
lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoint_models_response.py
ADDED
|
@@ -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 V1ListPublishedManagedEndpointModelsResponse(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
|
+
'models': 'list[V1ManagedModel]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'models': 'models'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, models: 'list[V1ManagedModel]' =None): # noqa: E501
|
|
52
|
+
"""V1ListPublishedManagedEndpointModelsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._models = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if models is not None:
|
|
56
|
+
self.models = models
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def models(self) -> 'list[V1ManagedModel]':
|
|
60
|
+
"""Gets the models of this V1ListPublishedManagedEndpointModelsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The models of this V1ListPublishedManagedEndpointModelsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1ManagedModel]
|
|
65
|
+
"""
|
|
66
|
+
return self._models
|
|
67
|
+
|
|
68
|
+
@models.setter
|
|
69
|
+
def models(self, models: 'list[V1ManagedModel]'):
|
|
70
|
+
"""Sets the models of this V1ListPublishedManagedEndpointModelsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param models: The models of this V1ListPublishedManagedEndpointModelsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1ManagedModel]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._models = models
|
|
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(V1ListPublishedManagedEndpointModelsResponse, 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: 'V1ListPublishedManagedEndpointModelsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListPublishedManagedEndpointModelsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListPublishedManagedEndpointModelsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -51,6 +51,7 @@ class V1Message(object):
|
|
|
51
51
|
'executable': 'bool',
|
|
52
52
|
'id': 'str',
|
|
53
53
|
'internal_message': 'bool',
|
|
54
|
+
'like': 'V1LikeStatus',
|
|
54
55
|
'metadata': 'dict(str, str)',
|
|
55
56
|
'model': 'str',
|
|
56
57
|
'parent_message_id': 'str',
|
|
@@ -69,6 +70,7 @@ class V1Message(object):
|
|
|
69
70
|
'executable': 'executable',
|
|
70
71
|
'id': 'id',
|
|
71
72
|
'internal_message': 'internalMessage',
|
|
73
|
+
'like': 'like',
|
|
72
74
|
'metadata': 'metadata',
|
|
73
75
|
'model': 'model',
|
|
74
76
|
'parent_message_id': 'parentMessageId',
|
|
@@ -76,7 +78,7 @@ class V1Message(object):
|
|
|
76
78
|
'throughput': 'throughput'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, account_id: 'str' =None, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, internal_message: 'bool' =None, metadata: 'dict(str, str)' =None, model: 'str' =None, parent_message_id: 'str' =None, prompt_tokens: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
81
|
+
def __init__(self, account_id: 'str' =None, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, internal_message: 'bool' =None, like: 'V1LikeStatus' =None, metadata: 'dict(str, str)' =None, model: 'str' =None, parent_message_id: 'str' =None, prompt_tokens: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
80
82
|
"""V1Message - a model defined in Swagger""" # noqa: E501
|
|
81
83
|
self._account_id = None
|
|
82
84
|
self._assistant_id = None
|
|
@@ -88,6 +90,7 @@ class V1Message(object):
|
|
|
88
90
|
self._executable = None
|
|
89
91
|
self._id = None
|
|
90
92
|
self._internal_message = None
|
|
93
|
+
self._like = None
|
|
91
94
|
self._metadata = None
|
|
92
95
|
self._model = None
|
|
93
96
|
self._parent_message_id = None
|
|
@@ -114,6 +117,8 @@ class V1Message(object):
|
|
|
114
117
|
self.id = id
|
|
115
118
|
if internal_message is not None:
|
|
116
119
|
self.internal_message = internal_message
|
|
120
|
+
if like is not None:
|
|
121
|
+
self.like = like
|
|
117
122
|
if metadata is not None:
|
|
118
123
|
self.metadata = metadata
|
|
119
124
|
if model is not None:
|
|
@@ -335,6 +340,27 @@ class V1Message(object):
|
|
|
335
340
|
|
|
336
341
|
self._internal_message = internal_message
|
|
337
342
|
|
|
343
|
+
@property
|
|
344
|
+
def like(self) -> 'V1LikeStatus':
|
|
345
|
+
"""Gets the like of this V1Message. # noqa: E501
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:return: The like of this V1Message. # noqa: E501
|
|
349
|
+
:rtype: V1LikeStatus
|
|
350
|
+
"""
|
|
351
|
+
return self._like
|
|
352
|
+
|
|
353
|
+
@like.setter
|
|
354
|
+
def like(self, like: 'V1LikeStatus'):
|
|
355
|
+
"""Sets the like of this V1Message.
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
:param like: The like of this V1Message. # noqa: E501
|
|
359
|
+
:type: V1LikeStatus
|
|
360
|
+
"""
|
|
361
|
+
|
|
362
|
+
self._like = like
|
|
363
|
+
|
|
338
364
|
@property
|
|
339
365
|
def metadata(self) -> 'dict(str, str)':
|
|
340
366
|
"""Gets the metadata of this V1Message. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1QuoteSubscriptionResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'annual_amount': 'int',
|
|
45
45
|
'annual_tax': 'int',
|
|
46
|
+
'eligible': 'bool',
|
|
46
47
|
'features': 'list[V1BillingFeature]',
|
|
47
48
|
'monthly_amount': 'int',
|
|
48
49
|
'monthly_tax': 'int',
|
|
@@ -54,6 +55,7 @@ class V1QuoteSubscriptionResponse(object):
|
|
|
54
55
|
attribute_map = {
|
|
55
56
|
'annual_amount': 'annualAmount',
|
|
56
57
|
'annual_tax': 'annualTax',
|
|
58
|
+
'eligible': 'eligible',
|
|
57
59
|
'features': 'features',
|
|
58
60
|
'monthly_amount': 'monthlyAmount',
|
|
59
61
|
'monthly_tax': 'monthlyTax',
|
|
@@ -62,10 +64,11 @@ class V1QuoteSubscriptionResponse(object):
|
|
|
62
64
|
'trial_days': 'trialDays'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, annual_amount: 'int' =None, annual_tax: 'int' =None, features: 'list[V1BillingFeature]' =None, monthly_amount: 'int' =None, monthly_tax: 'int' =None, prorated_amount: 'int' =None, prorated_tax: 'int' =None, trial_days: 'int' =None): # noqa: E501
|
|
67
|
+
def __init__(self, annual_amount: 'int' =None, annual_tax: 'int' =None, eligible: 'bool' =None, features: 'list[V1BillingFeature]' =None, monthly_amount: 'int' =None, monthly_tax: 'int' =None, prorated_amount: 'int' =None, prorated_tax: 'int' =None, trial_days: 'int' =None): # noqa: E501
|
|
66
68
|
"""V1QuoteSubscriptionResponse - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._annual_amount = None
|
|
68
70
|
self._annual_tax = None
|
|
71
|
+
self._eligible = None
|
|
69
72
|
self._features = None
|
|
70
73
|
self._monthly_amount = None
|
|
71
74
|
self._monthly_tax = None
|
|
@@ -77,6 +80,8 @@ class V1QuoteSubscriptionResponse(object):
|
|
|
77
80
|
self.annual_amount = annual_amount
|
|
78
81
|
if annual_tax is not None:
|
|
79
82
|
self.annual_tax = annual_tax
|
|
83
|
+
if eligible is not None:
|
|
84
|
+
self.eligible = eligible
|
|
80
85
|
if features is not None:
|
|
81
86
|
self.features = features
|
|
82
87
|
if monthly_amount is not None:
|
|
@@ -132,6 +137,27 @@ class V1QuoteSubscriptionResponse(object):
|
|
|
132
137
|
|
|
133
138
|
self._annual_tax = annual_tax
|
|
134
139
|
|
|
140
|
+
@property
|
|
141
|
+
def eligible(self) -> 'bool':
|
|
142
|
+
"""Gets the eligible of this V1QuoteSubscriptionResponse. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The eligible of this V1QuoteSubscriptionResponse. # noqa: E501
|
|
146
|
+
:rtype: bool
|
|
147
|
+
"""
|
|
148
|
+
return self._eligible
|
|
149
|
+
|
|
150
|
+
@eligible.setter
|
|
151
|
+
def eligible(self, eligible: 'bool'):
|
|
152
|
+
"""Sets the eligible of this V1QuoteSubscriptionResponse.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param eligible: The eligible of this V1QuoteSubscriptionResponse. # noqa: E501
|
|
156
|
+
:type: bool
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._eligible = eligible
|
|
160
|
+
|
|
135
161
|
@property
|
|
136
162
|
def features(self) -> 'list[V1BillingFeature]':
|
|
137
163
|
"""Gets the features of this V1QuoteSubscriptionResponse. # noqa: E501
|
|
@@ -53,6 +53,7 @@ class V1Schedule(object):
|
|
|
53
53
|
'resource_id': 'str',
|
|
54
54
|
'resource_type': 'V1ScheduleResourceType',
|
|
55
55
|
'state': 'str',
|
|
56
|
+
'timezone': 'str',
|
|
56
57
|
'total': 'int',
|
|
57
58
|
'updated_at': 'datetime',
|
|
58
59
|
'user_id': 'str'
|
|
@@ -71,12 +72,13 @@ class V1Schedule(object):
|
|
|
71
72
|
'resource_id': 'resourceId',
|
|
72
73
|
'resource_type': 'resourceType',
|
|
73
74
|
'state': 'state',
|
|
75
|
+
'timezone': 'timezone',
|
|
74
76
|
'total': 'total',
|
|
75
77
|
'updated_at': 'updatedAt',
|
|
76
78
|
'user_id': 'userId'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, action_type: 'V1ScheduleActionType' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, project_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
|
|
81
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, project_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
|
|
80
82
|
"""V1Schedule - a model defined in Swagger""" # noqa: E501
|
|
81
83
|
self._action_type = None
|
|
82
84
|
self._created_at = None
|
|
@@ -90,6 +92,7 @@ class V1Schedule(object):
|
|
|
90
92
|
self._resource_id = None
|
|
91
93
|
self._resource_type = None
|
|
92
94
|
self._state = None
|
|
95
|
+
self._timezone = None
|
|
93
96
|
self._total = None
|
|
94
97
|
self._updated_at = None
|
|
95
98
|
self._user_id = None
|
|
@@ -118,6 +121,8 @@ class V1Schedule(object):
|
|
|
118
121
|
self.resource_type = resource_type
|
|
119
122
|
if state is not None:
|
|
120
123
|
self.state = state
|
|
124
|
+
if timezone is not None:
|
|
125
|
+
self.timezone = timezone
|
|
121
126
|
if total is not None:
|
|
122
127
|
self.total = total
|
|
123
128
|
if updated_at is not None:
|
|
@@ -377,6 +382,27 @@ class V1Schedule(object):
|
|
|
377
382
|
|
|
378
383
|
self._state = state
|
|
379
384
|
|
|
385
|
+
@property
|
|
386
|
+
def timezone(self) -> 'str':
|
|
387
|
+
"""Gets the timezone of this V1Schedule. # noqa: E501
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:return: The timezone of this V1Schedule. # noqa: E501
|
|
391
|
+
:rtype: str
|
|
392
|
+
"""
|
|
393
|
+
return self._timezone
|
|
394
|
+
|
|
395
|
+
@timezone.setter
|
|
396
|
+
def timezone(self, timezone: 'str'):
|
|
397
|
+
"""Sets the timezone of this V1Schedule.
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:param timezone: The timezone of this V1Schedule. # noqa: E501
|
|
401
|
+
:type: str
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
self._timezone = timezone
|
|
405
|
+
|
|
380
406
|
@property
|
|
381
407
|
def total(self) -> 'int':
|
|
382
408
|
"""Gets the total of this V1Schedule. # noqa: E501
|
|
@@ -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 V1UpdateConversationLikeResponse(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
|
+
'assistant_id': 'str',
|
|
45
|
+
'id': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'assistant_id': 'assistantId',
|
|
50
|
+
'id': 'id'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, assistant_id: 'str' =None, id: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1UpdateConversationLikeResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._assistant_id = None
|
|
56
|
+
self._id = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if assistant_id is not None:
|
|
59
|
+
self.assistant_id = assistant_id
|
|
60
|
+
if id is not None:
|
|
61
|
+
self.id = id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def assistant_id(self) -> 'str':
|
|
65
|
+
"""Gets the assistant_id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The assistant_id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._assistant_id
|
|
72
|
+
|
|
73
|
+
@assistant_id.setter
|
|
74
|
+
def assistant_id(self, assistant_id: 'str'):
|
|
75
|
+
"""Sets the assistant_id of this V1UpdateConversationLikeResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param assistant_id: The assistant_id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._assistant_id = assistant_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def id(self) -> 'str':
|
|
86
|
+
"""Gets the id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._id
|
|
93
|
+
|
|
94
|
+
@id.setter
|
|
95
|
+
def id(self, id: 'str'):
|
|
96
|
+
"""Sets the id of this V1UpdateConversationLikeResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param id: The id of this V1UpdateConversationLikeResponse. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._id = id
|
|
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(V1UpdateConversationLikeResponse, 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: 'V1UpdateConversationLikeResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1UpdateConversationLikeResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1UpdateConversationLikeResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
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 V1UpdateConversationMessageLikeResponse(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
|
+
'assistant_id': 'str',
|
|
45
|
+
'conversation_id': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'assistant_id': 'assistantId',
|
|
50
|
+
'conversation_id': 'conversationId'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, assistant_id: 'str' =None, conversation_id: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1UpdateConversationMessageLikeResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._assistant_id = None
|
|
56
|
+
self._conversation_id = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if assistant_id is not None:
|
|
59
|
+
self.assistant_id = assistant_id
|
|
60
|
+
if conversation_id is not None:
|
|
61
|
+
self.conversation_id = conversation_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def assistant_id(self) -> 'str':
|
|
65
|
+
"""Gets the assistant_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The assistant_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._assistant_id
|
|
72
|
+
|
|
73
|
+
@assistant_id.setter
|
|
74
|
+
def assistant_id(self, assistant_id: 'str'):
|
|
75
|
+
"""Sets the assistant_id of this V1UpdateConversationMessageLikeResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param assistant_id: The assistant_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._assistant_id = assistant_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def conversation_id(self) -> 'str':
|
|
86
|
+
"""Gets the conversation_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The conversation_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._conversation_id
|
|
93
|
+
|
|
94
|
+
@conversation_id.setter
|
|
95
|
+
def conversation_id(self, conversation_id: 'str'):
|
|
96
|
+
"""Sets the conversation_id of this V1UpdateConversationMessageLikeResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param conversation_id: The conversation_id of this V1UpdateConversationMessageLikeResponse. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._conversation_id = conversation_id
|
|
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(V1UpdateConversationMessageLikeResponse, 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: 'V1UpdateConversationMessageLikeResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1UpdateConversationMessageLikeResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1UpdateConversationMessageLikeResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|