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
lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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 V1GetAssistantSessionDailyAggregatedResponse(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
|
+
'daily_usage': 'list[V1AssistantSessionDailyAggregated]',
|
|
45
|
+
'total_cost': 'float',
|
|
46
|
+
'total_users': 'int',
|
|
47
|
+
'usage': 'list[V1AssistantSessionDailyAggregated]'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'daily_usage': 'dailyUsage',
|
|
52
|
+
'total_cost': 'totalCost',
|
|
53
|
+
'total_users': 'totalUsers',
|
|
54
|
+
'usage': 'usage'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, daily_usage: 'list[V1AssistantSessionDailyAggregated]' =None, total_cost: 'float' =None, total_users: 'int' =None, usage: 'list[V1AssistantSessionDailyAggregated]' =None): # noqa: E501
|
|
58
|
+
"""V1GetAssistantSessionDailyAggregatedResponse - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._daily_usage = None
|
|
60
|
+
self._total_cost = None
|
|
61
|
+
self._total_users = None
|
|
62
|
+
self._usage = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if daily_usage is not None:
|
|
65
|
+
self.daily_usage = daily_usage
|
|
66
|
+
if total_cost is not None:
|
|
67
|
+
self.total_cost = total_cost
|
|
68
|
+
if total_users is not None:
|
|
69
|
+
self.total_users = total_users
|
|
70
|
+
if usage is not None:
|
|
71
|
+
self.usage = usage
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def daily_usage(self) -> 'list[V1AssistantSessionDailyAggregated]':
|
|
75
|
+
"""Gets the daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
79
|
+
:rtype: list[V1AssistantSessionDailyAggregated]
|
|
80
|
+
"""
|
|
81
|
+
return self._daily_usage
|
|
82
|
+
|
|
83
|
+
@daily_usage.setter
|
|
84
|
+
def daily_usage(self, daily_usage: 'list[V1AssistantSessionDailyAggregated]'):
|
|
85
|
+
"""Sets the daily_usage of this V1GetAssistantSessionDailyAggregatedResponse.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param daily_usage: The daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
89
|
+
:type: list[V1AssistantSessionDailyAggregated]
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._daily_usage = daily_usage
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def total_cost(self) -> 'float':
|
|
96
|
+
"""Gets the total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
100
|
+
:rtype: float
|
|
101
|
+
"""
|
|
102
|
+
return self._total_cost
|
|
103
|
+
|
|
104
|
+
@total_cost.setter
|
|
105
|
+
def total_cost(self, total_cost: 'float'):
|
|
106
|
+
"""Sets the total_cost of this V1GetAssistantSessionDailyAggregatedResponse.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param total_cost: The total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
110
|
+
:type: float
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._total_cost = total_cost
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def total_users(self) -> 'int':
|
|
117
|
+
"""Gets the total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._total_users
|
|
124
|
+
|
|
125
|
+
@total_users.setter
|
|
126
|
+
def total_users(self, total_users: 'int'):
|
|
127
|
+
"""Sets the total_users of this V1GetAssistantSessionDailyAggregatedResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param total_users: The total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
131
|
+
:type: int
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._total_users = total_users
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def usage(self) -> 'list[V1AssistantSessionDailyAggregated]':
|
|
138
|
+
"""Gets the usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
142
|
+
:rtype: list[V1AssistantSessionDailyAggregated]
|
|
143
|
+
"""
|
|
144
|
+
return self._usage
|
|
145
|
+
|
|
146
|
+
@usage.setter
|
|
147
|
+
def usage(self, usage: 'list[V1AssistantSessionDailyAggregated]'):
|
|
148
|
+
"""Sets the usage of this V1GetAssistantSessionDailyAggregatedResponse.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param usage: The usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
|
|
152
|
+
:type: list[V1AssistantSessionDailyAggregated]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._usage = usage
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1GetAssistantSessionDailyAggregatedResponse, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1GetAssistantSessionDailyAggregatedResponse') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1GetAssistantSessionDailyAggregatedResponse):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1GetAssistantSessionDailyAggregatedResponse') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -41,25 +41,103 @@ class V1KubernetesDirectV1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'grafana_dashboard_url': 'str',
|
|
45
|
+
'grafana_service_name': 'str',
|
|
46
|
+
'grafana_service_port': 'str',
|
|
44
47
|
'kubeconfig': 'str',
|
|
45
48
|
'kubeconfig_elevated': 'str'
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
attribute_map = {
|
|
52
|
+
'grafana_dashboard_url': 'grafanaDashboardUrl',
|
|
53
|
+
'grafana_service_name': 'grafanaServiceName',
|
|
54
|
+
'grafana_service_port': 'grafanaServicePort',
|
|
49
55
|
'kubeconfig': 'kubeconfig',
|
|
50
56
|
'kubeconfig_elevated': 'kubeconfigElevated'
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
def __init__(self, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, grafana_dashboard_url: 'str' =None, grafana_service_name: 'str' =None, grafana_service_port: 'str' =None, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
54
60
|
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._grafana_dashboard_url = None
|
|
62
|
+
self._grafana_service_name = None
|
|
63
|
+
self._grafana_service_port = None
|
|
55
64
|
self._kubeconfig = None
|
|
56
65
|
self._kubeconfig_elevated = None
|
|
57
66
|
self.discriminator = None
|
|
67
|
+
if grafana_dashboard_url is not None:
|
|
68
|
+
self.grafana_dashboard_url = grafana_dashboard_url
|
|
69
|
+
if grafana_service_name is not None:
|
|
70
|
+
self.grafana_service_name = grafana_service_name
|
|
71
|
+
if grafana_service_port is not None:
|
|
72
|
+
self.grafana_service_port = grafana_service_port
|
|
58
73
|
if kubeconfig is not None:
|
|
59
74
|
self.kubeconfig = kubeconfig
|
|
60
75
|
if kubeconfig_elevated is not None:
|
|
61
76
|
self.kubeconfig_elevated = kubeconfig_elevated
|
|
62
77
|
|
|
78
|
+
@property
|
|
79
|
+
def grafana_dashboard_url(self) -> 'str':
|
|
80
|
+
"""Gets the grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._grafana_dashboard_url
|
|
87
|
+
|
|
88
|
+
@grafana_dashboard_url.setter
|
|
89
|
+
def grafana_dashboard_url(self, grafana_dashboard_url: 'str'):
|
|
90
|
+
"""Sets the grafana_dashboard_url of this V1KubernetesDirectV1.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param grafana_dashboard_url: The grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._grafana_dashboard_url = grafana_dashboard_url
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def grafana_service_name(self) -> 'str':
|
|
101
|
+
"""Gets the grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._grafana_service_name
|
|
108
|
+
|
|
109
|
+
@grafana_service_name.setter
|
|
110
|
+
def grafana_service_name(self, grafana_service_name: 'str'):
|
|
111
|
+
"""Sets the grafana_service_name of this V1KubernetesDirectV1.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param grafana_service_name: The grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._grafana_service_name = grafana_service_name
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def grafana_service_port(self) -> 'str':
|
|
122
|
+
"""Gets the grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._grafana_service_port
|
|
129
|
+
|
|
130
|
+
@grafana_service_port.setter
|
|
131
|
+
def grafana_service_port(self, grafana_service_port: 'str'):
|
|
132
|
+
"""Sets the grafana_service_port of this V1KubernetesDirectV1.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param grafana_service_port: The grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._grafana_service_port = grafana_service_port
|
|
140
|
+
|
|
63
141
|
@property
|
|
64
142
|
def kubeconfig(self) -> 'str':
|
|
65
143
|
"""Gets the kubeconfig of this V1KubernetesDirectV1. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1LightningappInstanceArtifact(object):
|
|
|
44
44
|
'filename': 'str',
|
|
45
45
|
'last_modified': 'datetime',
|
|
46
46
|
'md5_checksum': 'str',
|
|
47
|
+
'provider': 'V1CloudProvider',
|
|
47
48
|
'size_bytes': 'str',
|
|
48
49
|
'url': 'str'
|
|
49
50
|
}
|
|
@@ -52,15 +53,17 @@ class V1LightningappInstanceArtifact(object):
|
|
|
52
53
|
'filename': 'filename',
|
|
53
54
|
'last_modified': 'lastModified',
|
|
54
55
|
'md5_checksum': 'md5Checksum',
|
|
56
|
+
'provider': 'provider',
|
|
55
57
|
'size_bytes': 'sizeBytes',
|
|
56
58
|
'url': 'url'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, filename: 'str' =None, last_modified: 'datetime' =None, md5_checksum: 'str' =None, size_bytes: 'str' =None, url: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, filename: 'str' =None, last_modified: 'datetime' =None, md5_checksum: 'str' =None, provider: 'V1CloudProvider' =None, size_bytes: 'str' =None, url: 'str' =None): # noqa: E501
|
|
60
62
|
"""V1LightningappInstanceArtifact - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._filename = None
|
|
62
64
|
self._last_modified = None
|
|
63
65
|
self._md5_checksum = None
|
|
66
|
+
self._provider = None
|
|
64
67
|
self._size_bytes = None
|
|
65
68
|
self._url = None
|
|
66
69
|
self.discriminator = None
|
|
@@ -70,6 +73,8 @@ class V1LightningappInstanceArtifact(object):
|
|
|
70
73
|
self.last_modified = last_modified
|
|
71
74
|
if md5_checksum is not None:
|
|
72
75
|
self.md5_checksum = md5_checksum
|
|
76
|
+
if provider is not None:
|
|
77
|
+
self.provider = provider
|
|
73
78
|
if size_bytes is not None:
|
|
74
79
|
self.size_bytes = size_bytes
|
|
75
80
|
if url is not None:
|
|
@@ -138,6 +143,27 @@ class V1LightningappInstanceArtifact(object):
|
|
|
138
143
|
|
|
139
144
|
self._md5_checksum = md5_checksum
|
|
140
145
|
|
|
146
|
+
@property
|
|
147
|
+
def provider(self) -> 'V1CloudProvider':
|
|
148
|
+
"""Gets the provider of this V1LightningappInstanceArtifact. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The provider of this V1LightningappInstanceArtifact. # noqa: E501
|
|
152
|
+
:rtype: V1CloudProvider
|
|
153
|
+
"""
|
|
154
|
+
return self._provider
|
|
155
|
+
|
|
156
|
+
@provider.setter
|
|
157
|
+
def provider(self, provider: 'V1CloudProvider'):
|
|
158
|
+
"""Sets the provider of this V1LightningappInstanceArtifact.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param provider: The provider of this V1LightningappInstanceArtifact. # noqa: E501
|
|
162
|
+
:type: V1CloudProvider
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._provider = provider
|
|
166
|
+
|
|
141
167
|
@property
|
|
142
168
|
def size_bytes(self) -> 'str':
|
|
143
169
|
"""Gets the size_bytes of this V1LightningappInstanceArtifact. # noqa: E501
|
|
@@ -0,0 +1,104 @@
|
|
|
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 V1LikeStatus(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
|
+
NONE = "NONE"
|
|
41
|
+
LIKE = "LIKE"
|
|
42
|
+
DISLIKE = "DISLIKE"
|
|
43
|
+
"""
|
|
44
|
+
Attributes:
|
|
45
|
+
swagger_types (dict): The key is attribute name
|
|
46
|
+
and the value is attribute type.
|
|
47
|
+
attribute_map (dict): The key is attribute name
|
|
48
|
+
and the value is json key in definition.
|
|
49
|
+
"""
|
|
50
|
+
swagger_types = {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
attribute_map = {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
def __init__(self): # noqa: E501
|
|
57
|
+
"""V1LikeStatus - a model defined in Swagger""" # noqa: E501
|
|
58
|
+
self.discriminator = None
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> dict:
|
|
61
|
+
"""Returns the model properties as a dict"""
|
|
62
|
+
result = {}
|
|
63
|
+
|
|
64
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
65
|
+
value = getattr(self, attr)
|
|
66
|
+
if isinstance(value, list):
|
|
67
|
+
result[attr] = list(map(
|
|
68
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
69
|
+
value
|
|
70
|
+
))
|
|
71
|
+
elif hasattr(value, "to_dict"):
|
|
72
|
+
result[attr] = value.to_dict()
|
|
73
|
+
elif isinstance(value, dict):
|
|
74
|
+
result[attr] = dict(map(
|
|
75
|
+
lambda item: (item[0], item[1].to_dict())
|
|
76
|
+
if hasattr(item[1], "to_dict") else item,
|
|
77
|
+
value.items()
|
|
78
|
+
))
|
|
79
|
+
else:
|
|
80
|
+
result[attr] = value
|
|
81
|
+
if issubclass(V1LikeStatus, dict):
|
|
82
|
+
for key, value in self.items():
|
|
83
|
+
result[key] = value
|
|
84
|
+
|
|
85
|
+
return result
|
|
86
|
+
|
|
87
|
+
def to_str(self) -> str:
|
|
88
|
+
"""Returns the string representation of the model"""
|
|
89
|
+
return pprint.pformat(self.to_dict())
|
|
90
|
+
|
|
91
|
+
def __repr__(self) -> str:
|
|
92
|
+
"""For `print` and `pprint`"""
|
|
93
|
+
return self.to_str()
|
|
94
|
+
|
|
95
|
+
def __eq__(self, other: 'V1LikeStatus') -> bool:
|
|
96
|
+
"""Returns true if both objects are equal"""
|
|
97
|
+
if not isinstance(other, V1LikeStatus):
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
return self.__dict__ == other.__dict__
|
|
101
|
+
|
|
102
|
+
def __ne__(self, other: 'V1LikeStatus') -> bool:
|
|
103
|
+
"""Returns true if both objects are not equal"""
|
|
104
|
+
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 V1ListNotificationDialogsResponse(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
|
+
'features': 'list[V1NewFeature]',
|
|
45
|
+
'social_promo': 'bool'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'features': 'features',
|
|
50
|
+
'social_promo': 'socialPromo'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, features: 'list[V1NewFeature]' =None, social_promo: 'bool' =None): # noqa: E501
|
|
54
|
+
"""V1ListNotificationDialogsResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._features = None
|
|
56
|
+
self._social_promo = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if features is not None:
|
|
59
|
+
self.features = features
|
|
60
|
+
if social_promo is not None:
|
|
61
|
+
self.social_promo = social_promo
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def features(self) -> 'list[V1NewFeature]':
|
|
65
|
+
"""Gets the features of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The features of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
69
|
+
:rtype: list[V1NewFeature]
|
|
70
|
+
"""
|
|
71
|
+
return self._features
|
|
72
|
+
|
|
73
|
+
@features.setter
|
|
74
|
+
def features(self, features: 'list[V1NewFeature]'):
|
|
75
|
+
"""Sets the features of this V1ListNotificationDialogsResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param features: The features of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
79
|
+
:type: list[V1NewFeature]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._features = features
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def social_promo(self) -> 'bool':
|
|
86
|
+
"""Gets the social_promo of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The social_promo of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
90
|
+
:rtype: bool
|
|
91
|
+
"""
|
|
92
|
+
return self._social_promo
|
|
93
|
+
|
|
94
|
+
@social_promo.setter
|
|
95
|
+
def social_promo(self, social_promo: 'bool'):
|
|
96
|
+
"""Sets the social_promo of this V1ListNotificationDialogsResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param social_promo: The social_promo of this V1ListNotificationDialogsResponse. # noqa: E501
|
|
100
|
+
:type: bool
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._social_promo = social_promo
|
|
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(V1ListNotificationDialogsResponse, 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: 'V1ListNotificationDialogsResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1ListNotificationDialogsResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1ListNotificationDialogsResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|