lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__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/base_studio_api.py +73 -0
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +50 -8
- lightning_sdk/api/studio_api.py +47 -1
- lightning_sdk/base_studio.py +70 -0
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/download.py +25 -0
- lightning_sdk/cli/serve.py +82 -30
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +0 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +88 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +30 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
|
@@ -43,7 +43,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'account_id': 'str',
|
|
45
45
|
'balance': 'float',
|
|
46
|
-
'next_free_credits_grant_at': 'datetime',
|
|
47
46
|
'project_id': 'str',
|
|
48
47
|
'transactions': 'list[V1Transaction]'
|
|
49
48
|
}
|
|
@@ -51,16 +50,14 @@ class V1GetProjectBalanceResponse(object):
|
|
|
51
50
|
attribute_map = {
|
|
52
51
|
'account_id': 'accountId',
|
|
53
52
|
'balance': 'balance',
|
|
54
|
-
'next_free_credits_grant_at': 'nextFreeCreditsGrantAt',
|
|
55
53
|
'project_id': 'projectId',
|
|
56
54
|
'transactions': 'transactions'
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
def __init__(self, account_id: 'str' =None, balance: 'float' =None,
|
|
57
|
+
def __init__(self, account_id: 'str' =None, balance: 'float' =None, project_id: 'str' =None, transactions: 'list[V1Transaction]' =None): # noqa: E501
|
|
60
58
|
"""V1GetProjectBalanceResponse - a model defined in Swagger""" # noqa: E501
|
|
61
59
|
self._account_id = None
|
|
62
60
|
self._balance = None
|
|
63
|
-
self._next_free_credits_grant_at = None
|
|
64
61
|
self._project_id = None
|
|
65
62
|
self._transactions = None
|
|
66
63
|
self.discriminator = None
|
|
@@ -68,8 +65,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
68
65
|
self.account_id = account_id
|
|
69
66
|
if balance is not None:
|
|
70
67
|
self.balance = balance
|
|
71
|
-
if next_free_credits_grant_at is not None:
|
|
72
|
-
self.next_free_credits_grant_at = next_free_credits_grant_at
|
|
73
68
|
if project_id is not None:
|
|
74
69
|
self.project_id = project_id
|
|
75
70
|
if transactions is not None:
|
|
@@ -117,27 +112,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
117
112
|
|
|
118
113
|
self._balance = balance
|
|
119
114
|
|
|
120
|
-
@property
|
|
121
|
-
def next_free_credits_grant_at(self) -> 'datetime':
|
|
122
|
-
"""Gets the next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:return: The next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
126
|
-
:rtype: datetime
|
|
127
|
-
"""
|
|
128
|
-
return self._next_free_credits_grant_at
|
|
129
|
-
|
|
130
|
-
@next_free_credits_grant_at.setter
|
|
131
|
-
def next_free_credits_grant_at(self, next_free_credits_grant_at: 'datetime'):
|
|
132
|
-
"""Sets the next_free_credits_grant_at of this V1GetProjectBalanceResponse.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:param next_free_credits_grant_at: The next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
136
|
-
:type: datetime
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
|
-
self._next_free_credits_grant_at = next_free_credits_grant_at
|
|
140
|
-
|
|
141
115
|
@property
|
|
142
116
|
def project_id(self) -> 'str':
|
|
143
117
|
"""Gets the project_id of this V1GetProjectBalanceResponse. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1GetUserResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'agree_to_terms_and_conditions': 'bool',
|
|
45
45
|
'api_key': 'str',
|
|
46
|
+
'auto_switch_machine': 'bool',
|
|
46
47
|
'country': 'str',
|
|
47
48
|
'discounted_pro_plan': 'bool',
|
|
48
49
|
'email': 'str',
|
|
@@ -81,6 +82,7 @@ class V1GetUserResponse(object):
|
|
|
81
82
|
attribute_map = {
|
|
82
83
|
'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
|
|
83
84
|
'api_key': 'apiKey',
|
|
85
|
+
'auto_switch_machine': 'autoSwitchMachine',
|
|
84
86
|
'country': 'country',
|
|
85
87
|
'discounted_pro_plan': 'discountedProPlan',
|
|
86
88
|
'email': 'email',
|
|
@@ -116,10 +118,11 @@ class V1GetUserResponse(object):
|
|
|
116
118
|
'website': 'website'
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
121
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, auto_switch_machine: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
120
122
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
121
123
|
self._agree_to_terms_and_conditions = None
|
|
122
124
|
self._api_key = None
|
|
125
|
+
self._auto_switch_machine = None
|
|
123
126
|
self._country = None
|
|
124
127
|
self._discounted_pro_plan = None
|
|
125
128
|
self._email = None
|
|
@@ -158,6 +161,8 @@ class V1GetUserResponse(object):
|
|
|
158
161
|
self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
159
162
|
if api_key is not None:
|
|
160
163
|
self.api_key = api_key
|
|
164
|
+
if auto_switch_machine is not None:
|
|
165
|
+
self.auto_switch_machine = auto_switch_machine
|
|
161
166
|
if country is not None:
|
|
162
167
|
self.country = country
|
|
163
168
|
if discounted_pro_plan is not None:
|
|
@@ -267,6 +272,27 @@ class V1GetUserResponse(object):
|
|
|
267
272
|
|
|
268
273
|
self._api_key = api_key
|
|
269
274
|
|
|
275
|
+
@property
|
|
276
|
+
def auto_switch_machine(self) -> 'bool':
|
|
277
|
+
"""Gets the auto_switch_machine of this V1GetUserResponse. # noqa: E501
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
:return: The auto_switch_machine of this V1GetUserResponse. # noqa: E501
|
|
281
|
+
:rtype: bool
|
|
282
|
+
"""
|
|
283
|
+
return self._auto_switch_machine
|
|
284
|
+
|
|
285
|
+
@auto_switch_machine.setter
|
|
286
|
+
def auto_switch_machine(self, auto_switch_machine: 'bool'):
|
|
287
|
+
"""Sets the auto_switch_machine of this V1GetUserResponse.
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
:param auto_switch_machine: The auto_switch_machine of this V1GetUserResponse. # noqa: E501
|
|
291
|
+
:type: bool
|
|
292
|
+
"""
|
|
293
|
+
|
|
294
|
+
self._auto_switch_machine = auto_switch_machine
|
|
295
|
+
|
|
270
296
|
@property
|
|
271
297
|
def country(self) -> 'str':
|
|
272
298
|
"""Gets the country of this V1GetUserResponse. # noqa: E501
|
|
@@ -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 V1ListProductLicensesResponse(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
|
+
'licenses': 'list[V1ProductLicense]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'licenses': 'licenses'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, licenses: 'list[V1ProductLicense]' =None): # noqa: E501
|
|
52
|
+
"""V1ListProductLicensesResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._licenses = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if licenses is not None:
|
|
56
|
+
self.licenses = licenses
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def licenses(self) -> 'list[V1ProductLicense]':
|
|
60
|
+
"""Gets the licenses of this V1ListProductLicensesResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The licenses of this V1ListProductLicensesResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1ProductLicense]
|
|
65
|
+
"""
|
|
66
|
+
return self._licenses
|
|
67
|
+
|
|
68
|
+
@licenses.setter
|
|
69
|
+
def licenses(self, licenses: 'list[V1ProductLicense]'):
|
|
70
|
+
"""Sets the licenses of this V1ListProductLicensesResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param licenses: The licenses of this V1ListProductLicensesResponse. # noqa: E501
|
|
74
|
+
:type: list[V1ProductLicense]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._licenses = licenses
|
|
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(V1ListProductLicensesResponse, 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: 'V1ListProductLicensesResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListProductLicensesResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListProductLicensesResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -46,6 +46,7 @@ class V1ManagedModel(object):
|
|
|
46
46
|
'context_length': 'str',
|
|
47
47
|
'deployment_details': 'V1DeploymentDetails',
|
|
48
48
|
'description': 'str',
|
|
49
|
+
'disabled': 'bool',
|
|
49
50
|
'endpoint_id': 'str',
|
|
50
51
|
'id': 'str',
|
|
51
52
|
'max_completion_tokens': 'str',
|
|
@@ -62,6 +63,7 @@ class V1ManagedModel(object):
|
|
|
62
63
|
'context_length': 'contextLength',
|
|
63
64
|
'deployment_details': 'deploymentDetails',
|
|
64
65
|
'description': 'description',
|
|
66
|
+
'disabled': 'disabled',
|
|
65
67
|
'endpoint_id': 'endpointId',
|
|
66
68
|
'id': 'id',
|
|
67
69
|
'max_completion_tokens': 'maxCompletionTokens',
|
|
@@ -72,13 +74,14 @@ class V1ManagedModel(object):
|
|
|
72
74
|
'top_k': 'topK'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, abilities: 'V1ManagedModelAbilities' =None, completion_token_price: 'float' =None, context_length: 'str' =None, deployment_details: 'V1DeploymentDetails' =None, description: 'str' =None, endpoint_id: 'str' =None, id: 'str' =None, max_completion_tokens: 'str' =None, name: 'str' =None, prompt_token_price: 'float' =None, status: 'V1AssistantModelStatus' =None, temperature: 'float' =None, top_k: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, abilities: 'V1ManagedModelAbilities' =None, completion_token_price: 'float' =None, context_length: 'str' =None, deployment_details: 'V1DeploymentDetails' =None, description: 'str' =None, disabled: 'bool' =None, endpoint_id: 'str' =None, id: 'str' =None, max_completion_tokens: 'str' =None, name: 'str' =None, prompt_token_price: 'float' =None, status: 'V1AssistantModelStatus' =None, temperature: 'float' =None, top_k: 'str' =None): # noqa: E501
|
|
76
78
|
"""V1ManagedModel - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._abilities = None
|
|
78
80
|
self._completion_token_price = None
|
|
79
81
|
self._context_length = None
|
|
80
82
|
self._deployment_details = None
|
|
81
83
|
self._description = None
|
|
84
|
+
self._disabled = None
|
|
82
85
|
self._endpoint_id = None
|
|
83
86
|
self._id = None
|
|
84
87
|
self._max_completion_tokens = None
|
|
@@ -98,6 +101,8 @@ class V1ManagedModel(object):
|
|
|
98
101
|
self.deployment_details = deployment_details
|
|
99
102
|
if description is not None:
|
|
100
103
|
self.description = description
|
|
104
|
+
if disabled is not None:
|
|
105
|
+
self.disabled = disabled
|
|
101
106
|
if endpoint_id is not None:
|
|
102
107
|
self.endpoint_id = endpoint_id
|
|
103
108
|
if id is not None:
|
|
@@ -220,6 +225,27 @@ class V1ManagedModel(object):
|
|
|
220
225
|
|
|
221
226
|
self._description = description
|
|
222
227
|
|
|
228
|
+
@property
|
|
229
|
+
def disabled(self) -> 'bool':
|
|
230
|
+
"""Gets the disabled of this V1ManagedModel. # noqa: E501
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:return: The disabled of this V1ManagedModel. # noqa: E501
|
|
234
|
+
:rtype: bool
|
|
235
|
+
"""
|
|
236
|
+
return self._disabled
|
|
237
|
+
|
|
238
|
+
@disabled.setter
|
|
239
|
+
def disabled(self, disabled: 'bool'):
|
|
240
|
+
"""Sets the disabled of this V1ManagedModel.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:param disabled: The disabled of this V1ManagedModel. # noqa: E501
|
|
244
|
+
:type: bool
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
self._disabled = disabled
|
|
248
|
+
|
|
223
249
|
@property
|
|
224
250
|
def endpoint_id(self) -> 'str':
|
|
225
251
|
"""Gets the endpoint_id of this V1ManagedModel. # noqa: E501
|
|
@@ -52,7 +52,7 @@ class V1Membership(object):
|
|
|
52
52
|
'job_count': 'str',
|
|
53
53
|
'membership_count': 'str',
|
|
54
54
|
'name': 'str',
|
|
55
|
-
'
|
|
55
|
+
'next_free_credits_grant': 'str',
|
|
56
56
|
'owner_id': 'str',
|
|
57
57
|
'owner_type': 'V1OwnerType',
|
|
58
58
|
'project_id': 'str',
|
|
@@ -74,7 +74,7 @@ class V1Membership(object):
|
|
|
74
74
|
'job_count': 'jobCount',
|
|
75
75
|
'membership_count': 'membershipCount',
|
|
76
76
|
'name': 'name',
|
|
77
|
-
'
|
|
77
|
+
'next_free_credits_grant': 'nextFreeCreditsGrant',
|
|
78
78
|
'owner_id': 'ownerId',
|
|
79
79
|
'owner_type': 'ownerType',
|
|
80
80
|
'project_id': 'projectId',
|
|
@@ -84,7 +84,7 @@ class V1Membership(object):
|
|
|
84
84
|
'user_id': 'userId'
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
def __init__(self, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, free_credits_enabled: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, membership_count: 'str' =None, name: 'str' =None,
|
|
87
|
+
def __init__(self, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, free_credits_enabled: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, membership_count: 'str' =None, name: 'str' =None, next_free_credits_grant: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, project_id: 'str' =None, quotas: 'V1Quotas' =None, roles: 'list[V1Role]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
88
88
|
"""V1Membership - a model defined in Swagger""" # noqa: E501
|
|
89
89
|
self._balance = None
|
|
90
90
|
self._created_at = None
|
|
@@ -97,7 +97,7 @@ class V1Membership(object):
|
|
|
97
97
|
self._job_count = None
|
|
98
98
|
self._membership_count = None
|
|
99
99
|
self._name = None
|
|
100
|
-
self.
|
|
100
|
+
self._next_free_credits_grant = None
|
|
101
101
|
self._owner_id = None
|
|
102
102
|
self._owner_type = None
|
|
103
103
|
self._project_id = None
|
|
@@ -128,8 +128,8 @@ class V1Membership(object):
|
|
|
128
128
|
self.membership_count = membership_count
|
|
129
129
|
if name is not None:
|
|
130
130
|
self.name = name
|
|
131
|
-
if
|
|
132
|
-
self.
|
|
131
|
+
if next_free_credits_grant is not None:
|
|
132
|
+
self.next_free_credits_grant = next_free_credits_grant
|
|
133
133
|
if owner_id is not None:
|
|
134
134
|
self.owner_id = owner_id
|
|
135
135
|
if owner_type is not None:
|
|
@@ -377,25 +377,25 @@ class V1Membership(object):
|
|
|
377
377
|
self._name = name
|
|
378
378
|
|
|
379
379
|
@property
|
|
380
|
-
def
|
|
381
|
-
"""Gets the
|
|
380
|
+
def next_free_credits_grant(self) -> 'str':
|
|
381
|
+
"""Gets the next_free_credits_grant of this V1Membership. # noqa: E501
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
:return: The
|
|
385
|
-
:rtype:
|
|
384
|
+
:return: The next_free_credits_grant of this V1Membership. # noqa: E501
|
|
385
|
+
:rtype: str
|
|
386
386
|
"""
|
|
387
|
-
return self.
|
|
387
|
+
return self._next_free_credits_grant
|
|
388
388
|
|
|
389
|
-
@
|
|
390
|
-
def
|
|
391
|
-
"""Sets the
|
|
389
|
+
@next_free_credits_grant.setter
|
|
390
|
+
def next_free_credits_grant(self, next_free_credits_grant: 'str'):
|
|
391
|
+
"""Sets the next_free_credits_grant of this V1Membership.
|
|
392
392
|
|
|
393
393
|
|
|
394
|
-
:param
|
|
395
|
-
:type:
|
|
394
|
+
:param next_free_credits_grant: The next_free_credits_grant of this V1Membership. # noqa: E501
|
|
395
|
+
:type: str
|
|
396
396
|
"""
|
|
397
397
|
|
|
398
|
-
self.
|
|
398
|
+
self._next_free_credits_grant = next_free_credits_grant
|
|
399
399
|
|
|
400
400
|
@property
|
|
401
401
|
def owner_id(self) -> 'str':
|
|
@@ -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 V1ModifyFilesystemVolumeResponse(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
|
+
"""V1ModifyFilesystemVolumeResponse - 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(V1ModifyFilesystemVolumeResponse, 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: 'V1ModifyFilesystemVolumeResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ModifyFilesystemVolumeResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ModifyFilesystemVolumeResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|