lightning-sdk 2025.10.22__py3-none-any.whl → 2025.10.23__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 +1 -1
- lightning_sdk/api/job_api.py +4 -1
- lightning_sdk/cli/entrypoint.py +3 -0
- lightning_sdk/cli/groups.py +7 -0
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/studio/create.py +1 -1
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +1 -3
- lightning_sdk/job/base.py +7 -0
- lightning_sdk/job/job.py +8 -0
- lightning_sdk/job/v1.py +3 -0
- lightning_sdk/job/v2.py +4 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +182 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +117 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/models/update1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -131
- lightning_sdk/machine.py +3 -0
- lightning_sdk/pipeline/steps.py +1 -0
- lightning_sdk/studio.py +41 -11
- lightning_sdk/utils/config.py +18 -3
- lightning_sdk/utils/resolve.py +6 -1
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/RECORD +39 -29
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.10.22.dist-info → lightning_sdk-2025.10.23.dist-info}/top_level.txt +0 -0
|
@@ -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 V1ListFilesystemMetricsResponse(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
|
+
'metrics': 'list[V1FilesystemMetric]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'metrics': 'metrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, metrics: 'list[V1FilesystemMetric]' =None): # noqa: E501
|
|
52
|
+
"""V1ListFilesystemMetricsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._metrics = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if metrics is not None:
|
|
56
|
+
self.metrics = metrics
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def metrics(self) -> 'list[V1FilesystemMetric]':
|
|
60
|
+
"""Gets the metrics of this V1ListFilesystemMetricsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The metrics of this V1ListFilesystemMetricsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1FilesystemMetric]
|
|
65
|
+
"""
|
|
66
|
+
return self._metrics
|
|
67
|
+
|
|
68
|
+
@metrics.setter
|
|
69
|
+
def metrics(self, metrics: 'list[V1FilesystemMetric]'):
|
|
70
|
+
"""Sets the metrics of this V1ListFilesystemMetricsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param metrics: The metrics of this V1ListFilesystemMetricsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1FilesystemMetric]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._metrics = metrics
|
|
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(V1ListFilesystemMetricsResponse, 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: 'V1ListFilesystemMetricsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListFilesystemMetricsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListFilesystemMetricsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1ListPlatformNotificationsResponse(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
|
+
'notifications': 'list[V1PlatformNotification]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'notifications': 'notifications'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, notifications: 'list[V1PlatformNotification]' =None): # noqa: E501
|
|
52
|
+
"""V1ListPlatformNotificationsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._notifications = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if notifications is not None:
|
|
56
|
+
self.notifications = notifications
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def notifications(self) -> 'list[V1PlatformNotification]':
|
|
60
|
+
"""Gets the notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1PlatformNotification]
|
|
65
|
+
"""
|
|
66
|
+
return self._notifications
|
|
67
|
+
|
|
68
|
+
@notifications.setter
|
|
69
|
+
def notifications(self, notifications: 'list[V1PlatformNotification]'):
|
|
70
|
+
"""Sets the notifications of this V1ListPlatformNotificationsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param notifications: The notifications of this V1ListPlatformNotificationsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1PlatformNotification]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._notifications = notifications
|
|
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(V1ListPlatformNotificationsResponse, 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: 'V1ListPlatformNotificationsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListPlatformNotificationsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListPlatformNotificationsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,279 @@
|
|
|
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 V1PlatformNotification(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
|
+
'date_from': 'datetime',
|
|
45
|
+
'date_to': 'datetime',
|
|
46
|
+
'id': 'str',
|
|
47
|
+
'message': 'str',
|
|
48
|
+
'path': 'str',
|
|
49
|
+
'severity': 'str',
|
|
50
|
+
'title': 'str'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
attribute_map = {
|
|
54
|
+
'date_from': 'dateFrom',
|
|
55
|
+
'date_to': 'dateTo',
|
|
56
|
+
'id': 'id',
|
|
57
|
+
'message': 'message',
|
|
58
|
+
'path': 'path',
|
|
59
|
+
'severity': 'severity',
|
|
60
|
+
'title': 'title'
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
def __init__(self, date_from: 'datetime' =None, date_to: 'datetime' =None, id: 'str' =None, message: 'str' =None, path: 'str' =None, severity: 'str' =None, title: 'str' =None): # noqa: E501
|
|
64
|
+
"""V1PlatformNotification - a model defined in Swagger""" # noqa: E501
|
|
65
|
+
self._date_from = None
|
|
66
|
+
self._date_to = None
|
|
67
|
+
self._id = None
|
|
68
|
+
self._message = None
|
|
69
|
+
self._path = None
|
|
70
|
+
self._severity = None
|
|
71
|
+
self._title = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
if date_from is not None:
|
|
74
|
+
self.date_from = date_from
|
|
75
|
+
if date_to is not None:
|
|
76
|
+
self.date_to = date_to
|
|
77
|
+
if id is not None:
|
|
78
|
+
self.id = id
|
|
79
|
+
if message is not None:
|
|
80
|
+
self.message = message
|
|
81
|
+
if path is not None:
|
|
82
|
+
self.path = path
|
|
83
|
+
if severity is not None:
|
|
84
|
+
self.severity = severity
|
|
85
|
+
if title is not None:
|
|
86
|
+
self.title = title
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def date_from(self) -> 'datetime':
|
|
90
|
+
"""Gets the date_from of this V1PlatformNotification. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The date_from of this V1PlatformNotification. # noqa: E501
|
|
94
|
+
:rtype: datetime
|
|
95
|
+
"""
|
|
96
|
+
return self._date_from
|
|
97
|
+
|
|
98
|
+
@date_from.setter
|
|
99
|
+
def date_from(self, date_from: 'datetime'):
|
|
100
|
+
"""Sets the date_from of this V1PlatformNotification.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param date_from: The date_from of this V1PlatformNotification. # noqa: E501
|
|
104
|
+
:type: datetime
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._date_from = date_from
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def date_to(self) -> 'datetime':
|
|
111
|
+
"""Gets the date_to of this V1PlatformNotification. # noqa: E501
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:return: The date_to of this V1PlatformNotification. # noqa: E501
|
|
115
|
+
:rtype: datetime
|
|
116
|
+
"""
|
|
117
|
+
return self._date_to
|
|
118
|
+
|
|
119
|
+
@date_to.setter
|
|
120
|
+
def date_to(self, date_to: 'datetime'):
|
|
121
|
+
"""Sets the date_to of this V1PlatformNotification.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param date_to: The date_to of this V1PlatformNotification. # noqa: E501
|
|
125
|
+
:type: datetime
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._date_to = date_to
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def id(self) -> 'str':
|
|
132
|
+
"""Gets the id of this V1PlatformNotification. # noqa: E501
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:return: The id of this V1PlatformNotification. # noqa: E501
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._id
|
|
139
|
+
|
|
140
|
+
@id.setter
|
|
141
|
+
def id(self, id: 'str'):
|
|
142
|
+
"""Sets the id of this V1PlatformNotification.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param id: The id of this V1PlatformNotification. # noqa: E501
|
|
146
|
+
:type: str
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
self._id = id
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def message(self) -> 'str':
|
|
153
|
+
"""Gets the message of this V1PlatformNotification. # noqa: E501
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:return: The message of this V1PlatformNotification. # noqa: E501
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._message
|
|
160
|
+
|
|
161
|
+
@message.setter
|
|
162
|
+
def message(self, message: 'str'):
|
|
163
|
+
"""Sets the message of this V1PlatformNotification.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:param message: The message of this V1PlatformNotification. # noqa: E501
|
|
167
|
+
:type: str
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
self._message = message
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def path(self) -> 'str':
|
|
174
|
+
"""Gets the path of this V1PlatformNotification. # noqa: E501
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:return: The path of this V1PlatformNotification. # noqa: E501
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._path
|
|
181
|
+
|
|
182
|
+
@path.setter
|
|
183
|
+
def path(self, path: 'str'):
|
|
184
|
+
"""Sets the path of this V1PlatformNotification.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:param path: The path of this V1PlatformNotification. # noqa: E501
|
|
188
|
+
:type: str
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
self._path = path
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
def severity(self) -> 'str':
|
|
195
|
+
"""Gets the severity of this V1PlatformNotification. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The severity of this V1PlatformNotification. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._severity
|
|
202
|
+
|
|
203
|
+
@severity.setter
|
|
204
|
+
def severity(self, severity: 'str'):
|
|
205
|
+
"""Sets the severity of this V1PlatformNotification.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param severity: The severity of this V1PlatformNotification. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._severity = severity
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def title(self) -> 'str':
|
|
216
|
+
"""Gets the title of this V1PlatformNotification. # noqa: E501
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:return: The title of this V1PlatformNotification. # noqa: E501
|
|
220
|
+
:rtype: str
|
|
221
|
+
"""
|
|
222
|
+
return self._title
|
|
223
|
+
|
|
224
|
+
@title.setter
|
|
225
|
+
def title(self, title: 'str'):
|
|
226
|
+
"""Sets the title of this V1PlatformNotification.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:param title: The title of this V1PlatformNotification. # noqa: E501
|
|
230
|
+
:type: str
|
|
231
|
+
"""
|
|
232
|
+
|
|
233
|
+
self._title = title
|
|
234
|
+
|
|
235
|
+
def to_dict(self) -> dict:
|
|
236
|
+
"""Returns the model properties as a dict"""
|
|
237
|
+
result = {}
|
|
238
|
+
|
|
239
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
240
|
+
value = getattr(self, attr)
|
|
241
|
+
if isinstance(value, list):
|
|
242
|
+
result[attr] = list(map(
|
|
243
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
244
|
+
value
|
|
245
|
+
))
|
|
246
|
+
elif hasattr(value, "to_dict"):
|
|
247
|
+
result[attr] = value.to_dict()
|
|
248
|
+
elif isinstance(value, dict):
|
|
249
|
+
result[attr] = dict(map(
|
|
250
|
+
lambda item: (item[0], item[1].to_dict())
|
|
251
|
+
if hasattr(item[1], "to_dict") else item,
|
|
252
|
+
value.items()
|
|
253
|
+
))
|
|
254
|
+
else:
|
|
255
|
+
result[attr] = value
|
|
256
|
+
if issubclass(V1PlatformNotification, dict):
|
|
257
|
+
for key, value in self.items():
|
|
258
|
+
result[key] = value
|
|
259
|
+
|
|
260
|
+
return result
|
|
261
|
+
|
|
262
|
+
def to_str(self) -> str:
|
|
263
|
+
"""Returns the string representation of the model"""
|
|
264
|
+
return pprint.pformat(self.to_dict())
|
|
265
|
+
|
|
266
|
+
def __repr__(self) -> str:
|
|
267
|
+
"""For `print` and `pprint`"""
|
|
268
|
+
return self.to_str()
|
|
269
|
+
|
|
270
|
+
def __eq__(self, other: 'V1PlatformNotification') -> bool:
|
|
271
|
+
"""Returns true if both objects are equal"""
|
|
272
|
+
if not isinstance(other, V1PlatformNotification):
|
|
273
|
+
return False
|
|
274
|
+
|
|
275
|
+
return self.__dict__ == other.__dict__
|
|
276
|
+
|
|
277
|
+
def __ne__(self, other: 'V1PlatformNotification') -> bool:
|
|
278
|
+
"""Returns true if both objects are not equal"""
|
|
279
|
+
return not self == other
|
|
@@ -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 V1ResetAPIKeyRequest(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
|
+
"""V1ResetAPIKeyRequest - 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(V1ResetAPIKeyRequest, 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: 'V1ResetAPIKeyRequest') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ResetAPIKeyRequest):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ResetAPIKeyRequest') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|