lightning-sdk 2025.8.28__py3-none-any.whl → 2025.9.2__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/teamspace_api.py +2 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_total_usage_metrics_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/RECORD +34 -23
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.2.dist-info}/top_level.txt +0 -0
|
@@ -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 V1GuestLoginResponse(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
|
+
'token': 'str',
|
|
45
|
+
'user': 'V1GuestUser'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'token': 'token',
|
|
50
|
+
'user': 'user'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, token: 'str' =None, user: 'V1GuestUser' =None): # noqa: E501
|
|
54
|
+
"""V1GuestLoginResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._token = None
|
|
56
|
+
self._user = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if token is not None:
|
|
59
|
+
self.token = token
|
|
60
|
+
if user is not None:
|
|
61
|
+
self.user = user
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def token(self) -> 'str':
|
|
65
|
+
"""Gets the token of this V1GuestLoginResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The token of this V1GuestLoginResponse. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._token
|
|
72
|
+
|
|
73
|
+
@token.setter
|
|
74
|
+
def token(self, token: 'str'):
|
|
75
|
+
"""Sets the token of this V1GuestLoginResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param token: The token of this V1GuestLoginResponse. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._token = token
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def user(self) -> 'V1GuestUser':
|
|
86
|
+
"""Gets the user of this V1GuestLoginResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The user of this V1GuestLoginResponse. # noqa: E501
|
|
90
|
+
:rtype: V1GuestUser
|
|
91
|
+
"""
|
|
92
|
+
return self._user
|
|
93
|
+
|
|
94
|
+
@user.setter
|
|
95
|
+
def user(self, user: 'V1GuestUser'):
|
|
96
|
+
"""Sets the user of this V1GuestLoginResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param user: The user of this V1GuestLoginResponse. # noqa: E501
|
|
100
|
+
:type: V1GuestUser
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._user = user
|
|
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(V1GuestLoginResponse, 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: 'V1GuestLoginResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1GuestLoginResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1GuestLoginResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -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 V1GuestUser(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
|
+
'api_key': 'str',
|
|
45
|
+
'expires_at': 'datetime',
|
|
46
|
+
'id': 'str',
|
|
47
|
+
'username': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'api_key': 'apiKey',
|
|
52
|
+
'expires_at': 'expiresAt',
|
|
53
|
+
'id': 'id',
|
|
54
|
+
'username': 'username'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, api_key: 'str' =None, expires_at: 'datetime' =None, id: 'str' =None, username: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1GuestUser - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._api_key = None
|
|
60
|
+
self._expires_at = None
|
|
61
|
+
self._id = None
|
|
62
|
+
self._username = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if api_key is not None:
|
|
65
|
+
self.api_key = api_key
|
|
66
|
+
if expires_at is not None:
|
|
67
|
+
self.expires_at = expires_at
|
|
68
|
+
if id is not None:
|
|
69
|
+
self.id = id
|
|
70
|
+
if username is not None:
|
|
71
|
+
self.username = username
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def api_key(self) -> 'str':
|
|
75
|
+
"""Gets the api_key of this V1GuestUser. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The api_key of this V1GuestUser. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._api_key
|
|
82
|
+
|
|
83
|
+
@api_key.setter
|
|
84
|
+
def api_key(self, api_key: 'str'):
|
|
85
|
+
"""Sets the api_key of this V1GuestUser.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param api_key: The api_key of this V1GuestUser. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._api_key = api_key
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def expires_at(self) -> 'datetime':
|
|
96
|
+
"""Gets the expires_at of this V1GuestUser. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The expires_at of this V1GuestUser. # noqa: E501
|
|
100
|
+
:rtype: datetime
|
|
101
|
+
"""
|
|
102
|
+
return self._expires_at
|
|
103
|
+
|
|
104
|
+
@expires_at.setter
|
|
105
|
+
def expires_at(self, expires_at: 'datetime'):
|
|
106
|
+
"""Sets the expires_at of this V1GuestUser.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param expires_at: The expires_at of this V1GuestUser. # noqa: E501
|
|
110
|
+
:type: datetime
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._expires_at = expires_at
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def id(self) -> 'str':
|
|
117
|
+
"""Gets the id of this V1GuestUser. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The id of this V1GuestUser. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._id
|
|
124
|
+
|
|
125
|
+
@id.setter
|
|
126
|
+
def id(self, id: 'str'):
|
|
127
|
+
"""Sets the id of this V1GuestUser.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param id: The id of this V1GuestUser. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._id = id
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def username(self) -> 'str':
|
|
138
|
+
"""Gets the username of this V1GuestUser. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The username of this V1GuestUser. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._username
|
|
145
|
+
|
|
146
|
+
@username.setter
|
|
147
|
+
def username(self, username: 'str'):
|
|
148
|
+
"""Sets the username of this V1GuestUser.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param username: The username of this V1GuestUser. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._username = username
|
|
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(V1GuestUser, 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: 'V1GuestUser') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1GuestUser):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1GuestUser') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -43,20 +43,23 @@ class V1LambdaLabsDirectV1(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'credentials_secret_id': 'str',
|
|
45
45
|
'primary_region': 'str',
|
|
46
|
-
'regions': 'list[str]'
|
|
46
|
+
'regions': 'list[str]',
|
|
47
|
+
'subnet_cidr_ranges': 'list[str]'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'credentials_secret_id': 'credentialsSecretId',
|
|
51
52
|
'primary_region': 'primaryRegion',
|
|
52
|
-
'regions': 'regions'
|
|
53
|
+
'regions': 'regions',
|
|
54
|
+
'subnet_cidr_ranges': 'subnetCidrRanges'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
|
|
57
|
+
def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None, subnet_cidr_ranges: 'list[str]' =None): # noqa: E501
|
|
56
58
|
"""V1LambdaLabsDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._credentials_secret_id = None
|
|
58
60
|
self._primary_region = None
|
|
59
61
|
self._regions = None
|
|
62
|
+
self._subnet_cidr_ranges = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if credentials_secret_id is not None:
|
|
62
65
|
self.credentials_secret_id = credentials_secret_id
|
|
@@ -64,6 +67,8 @@ class V1LambdaLabsDirectV1(object):
|
|
|
64
67
|
self.primary_region = primary_region
|
|
65
68
|
if regions is not None:
|
|
66
69
|
self.regions = regions
|
|
70
|
+
if subnet_cidr_ranges is not None:
|
|
71
|
+
self.subnet_cidr_ranges = subnet_cidr_ranges
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def credentials_secret_id(self) -> 'str':
|
|
@@ -130,6 +135,27 @@ class V1LambdaLabsDirectV1(object):
|
|
|
130
135
|
|
|
131
136
|
self._regions = regions
|
|
132
137
|
|
|
138
|
+
@property
|
|
139
|
+
def subnet_cidr_ranges(self) -> 'list[str]':
|
|
140
|
+
"""Gets the subnet_cidr_ranges of this V1LambdaLabsDirectV1. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The subnet_cidr_ranges of this V1LambdaLabsDirectV1. # noqa: E501
|
|
144
|
+
:rtype: list[str]
|
|
145
|
+
"""
|
|
146
|
+
return self._subnet_cidr_ranges
|
|
147
|
+
|
|
148
|
+
@subnet_cidr_ranges.setter
|
|
149
|
+
def subnet_cidr_ranges(self, subnet_cidr_ranges: 'list[str]'):
|
|
150
|
+
"""Sets the subnet_cidr_ranges of this V1LambdaLabsDirectV1.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param subnet_cidr_ranges: The subnet_cidr_ranges of this V1LambdaLabsDirectV1. # noqa: E501
|
|
154
|
+
:type: list[str]
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._subnet_cidr_ranges = subnet_cidr_ranges
|
|
158
|
+
|
|
133
159
|
def to_dict(self) -> dict:
|
|
134
160
|
"""Returns the model properties as a dict"""
|
|
135
161
|
result = {}
|
|
@@ -41,14 +41,14 @@ class V1ListAggregatedPodMetricsResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'pod_metrics': 'list[
|
|
44
|
+
'pod_metrics': 'list[V1AggregatedPodMetrics]'
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
attribute_map = {
|
|
48
48
|
'pod_metrics': 'podMetrics'
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
def __init__(self, pod_metrics: 'list[
|
|
51
|
+
def __init__(self, pod_metrics: 'list[V1AggregatedPodMetrics]' =None): # noqa: E501
|
|
52
52
|
"""V1ListAggregatedPodMetricsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
53
|
self._pod_metrics = None
|
|
54
54
|
self.discriminator = None
|
|
@@ -56,22 +56,22 @@ class V1ListAggregatedPodMetricsResponse(object):
|
|
|
56
56
|
self.pod_metrics = pod_metrics
|
|
57
57
|
|
|
58
58
|
@property
|
|
59
|
-
def pod_metrics(self) -> 'list[
|
|
59
|
+
def pod_metrics(self) -> 'list[V1AggregatedPodMetrics]':
|
|
60
60
|
"""Gets the pod_metrics of this V1ListAggregatedPodMetricsResponse. # noqa: E501
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
:return: The pod_metrics of this V1ListAggregatedPodMetricsResponse. # noqa: E501
|
|
64
|
-
:rtype: list[
|
|
64
|
+
:rtype: list[V1AggregatedPodMetrics]
|
|
65
65
|
"""
|
|
66
66
|
return self._pod_metrics
|
|
67
67
|
|
|
68
68
|
@pod_metrics.setter
|
|
69
|
-
def pod_metrics(self, pod_metrics: 'list[
|
|
69
|
+
def pod_metrics(self, pod_metrics: 'list[V1AggregatedPodMetrics]'):
|
|
70
70
|
"""Sets the pod_metrics of this V1ListAggregatedPodMetricsResponse.
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
:param pod_metrics: The pod_metrics of this V1ListAggregatedPodMetricsResponse. # noqa: E501
|
|
74
|
-
:type: list[
|
|
74
|
+
:type: list[V1AggregatedPodMetrics]
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
77
|
self._pod_metrics = pod_metrics
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1ModelMetrics(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
|
+
'latency': 'float',
|
|
45
|
+
'model_id': 'str',
|
|
46
|
+
'throughput': 'float'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'latency': 'latency',
|
|
51
|
+
'model_id': 'modelId',
|
|
52
|
+
'throughput': 'throughput'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, latency: 'float' =None, model_id: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
56
|
+
"""V1ModelMetrics - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._latency = None
|
|
58
|
+
self._model_id = None
|
|
59
|
+
self._throughput = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if latency is not None:
|
|
62
|
+
self.latency = latency
|
|
63
|
+
if model_id is not None:
|
|
64
|
+
self.model_id = model_id
|
|
65
|
+
if throughput is not None:
|
|
66
|
+
self.throughput = throughput
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def latency(self) -> 'float':
|
|
70
|
+
"""Gets the latency of this V1ModelMetrics. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The latency of this V1ModelMetrics. # noqa: E501
|
|
74
|
+
:rtype: float
|
|
75
|
+
"""
|
|
76
|
+
return self._latency
|
|
77
|
+
|
|
78
|
+
@latency.setter
|
|
79
|
+
def latency(self, latency: 'float'):
|
|
80
|
+
"""Sets the latency of this V1ModelMetrics.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param latency: The latency of this V1ModelMetrics. # noqa: E501
|
|
84
|
+
:type: float
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._latency = latency
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def model_id(self) -> 'str':
|
|
91
|
+
"""Gets the model_id of this V1ModelMetrics. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The model_id of this V1ModelMetrics. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._model_id
|
|
98
|
+
|
|
99
|
+
@model_id.setter
|
|
100
|
+
def model_id(self, model_id: 'str'):
|
|
101
|
+
"""Sets the model_id of this V1ModelMetrics.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param model_id: The model_id of this V1ModelMetrics. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._model_id = model_id
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def throughput(self) -> 'float':
|
|
112
|
+
"""Gets the throughput of this V1ModelMetrics. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The throughput of this V1ModelMetrics. # noqa: E501
|
|
116
|
+
:rtype: float
|
|
117
|
+
"""
|
|
118
|
+
return self._throughput
|
|
119
|
+
|
|
120
|
+
@throughput.setter
|
|
121
|
+
def throughput(self, throughput: 'float'):
|
|
122
|
+
"""Sets the throughput of this V1ModelMetrics.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param throughput: The throughput of this V1ModelMetrics. # noqa: E501
|
|
126
|
+
:type: float
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._throughput = throughput
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1ModelMetrics, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1ModelMetrics') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1ModelMetrics):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1ModelMetrics') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -42,23 +42,28 @@ class V1NebiusDirectV1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'primary_region': 'str',
|
|
45
|
-
'regions': 'list[str]'
|
|
45
|
+
'regions': 'list[str]',
|
|
46
|
+
'subnet_cidr_ranges': 'list[str]'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'primary_region': 'primaryRegion',
|
|
50
|
-
'regions': 'regions'
|
|
51
|
+
'regions': 'regions',
|
|
52
|
+
'subnet_cidr_ranges': 'subnetCidrRanges'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
|
|
55
|
+
def __init__(self, primary_region: 'str' =None, regions: 'list[str]' =None, subnet_cidr_ranges: 'list[str]' =None): # noqa: E501
|
|
54
56
|
"""V1NebiusDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._primary_region = None
|
|
56
58
|
self._regions = None
|
|
59
|
+
self._subnet_cidr_ranges = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if primary_region is not None:
|
|
59
62
|
self.primary_region = primary_region
|
|
60
63
|
if regions is not None:
|
|
61
64
|
self.regions = regions
|
|
65
|
+
if subnet_cidr_ranges is not None:
|
|
66
|
+
self.subnet_cidr_ranges = subnet_cidr_ranges
|
|
62
67
|
|
|
63
68
|
@property
|
|
64
69
|
def primary_region(self) -> 'str':
|
|
@@ -102,6 +107,27 @@ class V1NebiusDirectV1(object):
|
|
|
102
107
|
|
|
103
108
|
self._regions = regions
|
|
104
109
|
|
|
110
|
+
@property
|
|
111
|
+
def subnet_cidr_ranges(self) -> 'list[str]':
|
|
112
|
+
"""Gets the subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
116
|
+
:rtype: list[str]
|
|
117
|
+
"""
|
|
118
|
+
return self._subnet_cidr_ranges
|
|
119
|
+
|
|
120
|
+
@subnet_cidr_ranges.setter
|
|
121
|
+
def subnet_cidr_ranges(self, subnet_cidr_ranges: 'list[str]'):
|
|
122
|
+
"""Sets the subnet_cidr_ranges of this V1NebiusDirectV1.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param subnet_cidr_ranges: The subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
126
|
+
:type: list[str]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._subnet_cidr_ranges = subnet_cidr_ranges
|
|
130
|
+
|
|
105
131
|
def to_dict(self) -> dict:
|
|
106
132
|
"""Returns the model properties as a dict"""
|
|
107
133
|
result = {}
|