lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__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 +79 -0
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +73 -12
- lightning_sdk/api/studio_api.py +50 -1
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +83 -0
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
- lightning_sdk/cli/download.py +69 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +2 -5
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_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/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
- 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 +79 -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_cloud_space_source_type.py +103 -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_tagging_options.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_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- 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 +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -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 +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -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.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- 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 +347 -113
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +132 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +62 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -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 V1ListDeploymentAlertingPoliciesResponse(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
|
+
'alerting_policies': 'list[V1DeploymentAlertingPolicy]',
|
|
45
|
+
'deployment_id': 'str',
|
|
46
|
+
'project_id': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'alerting_policies': 'alertingPolicies',
|
|
51
|
+
'deployment_id': 'deploymentId',
|
|
52
|
+
'project_id': 'projectId'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, alerting_policies: 'list[V1DeploymentAlertingPolicy]' =None, deployment_id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1ListDeploymentAlertingPoliciesResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._alerting_policies = None
|
|
58
|
+
self._deployment_id = None
|
|
59
|
+
self._project_id = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if alerting_policies is not None:
|
|
62
|
+
self.alerting_policies = alerting_policies
|
|
63
|
+
if deployment_id is not None:
|
|
64
|
+
self.deployment_id = deployment_id
|
|
65
|
+
if project_id is not None:
|
|
66
|
+
self.project_id = project_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def alerting_policies(self) -> 'list[V1DeploymentAlertingPolicy]':
|
|
70
|
+
"""Gets the alerting_policies of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The alerting_policies of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
74
|
+
:rtype: list[V1DeploymentAlertingPolicy]
|
|
75
|
+
"""
|
|
76
|
+
return self._alerting_policies
|
|
77
|
+
|
|
78
|
+
@alerting_policies.setter
|
|
79
|
+
def alerting_policies(self, alerting_policies: 'list[V1DeploymentAlertingPolicy]'):
|
|
80
|
+
"""Sets the alerting_policies of this V1ListDeploymentAlertingPoliciesResponse.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param alerting_policies: The alerting_policies of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
84
|
+
:type: list[V1DeploymentAlertingPolicy]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._alerting_policies = alerting_policies
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def deployment_id(self) -> 'str':
|
|
91
|
+
"""Gets the deployment_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The deployment_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._deployment_id
|
|
98
|
+
|
|
99
|
+
@deployment_id.setter
|
|
100
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
101
|
+
"""Sets the deployment_id of this V1ListDeploymentAlertingPoliciesResponse.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param deployment_id: The deployment_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._deployment_id = deployment_id
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def project_id(self) -> 'str':
|
|
112
|
+
"""Gets the project_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The project_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._project_id
|
|
119
|
+
|
|
120
|
+
@project_id.setter
|
|
121
|
+
def project_id(self, project_id: 'str'):
|
|
122
|
+
"""Sets the project_id of this V1ListDeploymentAlertingPoliciesResponse.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param project_id: The project_id of this V1ListDeploymentAlertingPoliciesResponse. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._project_id = project_id
|
|
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(V1ListDeploymentAlertingPoliciesResponse, 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: 'V1ListDeploymentAlertingPoliciesResponse') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1ListDeploymentAlertingPoliciesResponse):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1ListDeploymentAlertingPoliciesResponse') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
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 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
|
|
@@ -44,6 +44,7 @@ class V1Membership(object):
|
|
|
44
44
|
'balance': 'float',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'creator_id': 'str',
|
|
47
|
+
'current_storage_bytes': 'str',
|
|
47
48
|
'datastore_count': 'str',
|
|
48
49
|
'description': 'str',
|
|
49
50
|
'display_name': 'str',
|
|
@@ -52,7 +53,7 @@ class V1Membership(object):
|
|
|
52
53
|
'job_count': 'str',
|
|
53
54
|
'membership_count': 'str',
|
|
54
55
|
'name': 'str',
|
|
55
|
-
'
|
|
56
|
+
'next_free_credits_grant': 'str',
|
|
56
57
|
'owner_id': 'str',
|
|
57
58
|
'owner_type': 'V1OwnerType',
|
|
58
59
|
'project_id': 'str',
|
|
@@ -66,6 +67,7 @@ class V1Membership(object):
|
|
|
66
67
|
'balance': 'balance',
|
|
67
68
|
'created_at': 'createdAt',
|
|
68
69
|
'creator_id': 'creatorId',
|
|
70
|
+
'current_storage_bytes': 'currentStorageBytes',
|
|
69
71
|
'datastore_count': 'datastoreCount',
|
|
70
72
|
'description': 'description',
|
|
71
73
|
'display_name': 'displayName',
|
|
@@ -74,7 +76,7 @@ class V1Membership(object):
|
|
|
74
76
|
'job_count': 'jobCount',
|
|
75
77
|
'membership_count': 'membershipCount',
|
|
76
78
|
'name': 'name',
|
|
77
|
-
'
|
|
79
|
+
'next_free_credits_grant': 'nextFreeCreditsGrant',
|
|
78
80
|
'owner_id': 'ownerId',
|
|
79
81
|
'owner_type': 'ownerType',
|
|
80
82
|
'project_id': 'projectId',
|
|
@@ -84,11 +86,12 @@ class V1Membership(object):
|
|
|
84
86
|
'user_id': 'userId'
|
|
85
87
|
}
|
|
86
88
|
|
|
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,
|
|
89
|
+
def __init__(self, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, current_storage_bytes: '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
90
|
"""V1Membership - a model defined in Swagger""" # noqa: E501
|
|
89
91
|
self._balance = None
|
|
90
92
|
self._created_at = None
|
|
91
93
|
self._creator_id = None
|
|
94
|
+
self._current_storage_bytes = None
|
|
92
95
|
self._datastore_count = None
|
|
93
96
|
self._description = None
|
|
94
97
|
self._display_name = None
|
|
@@ -97,7 +100,7 @@ class V1Membership(object):
|
|
|
97
100
|
self._job_count = None
|
|
98
101
|
self._membership_count = None
|
|
99
102
|
self._name = None
|
|
100
|
-
self.
|
|
103
|
+
self._next_free_credits_grant = None
|
|
101
104
|
self._owner_id = None
|
|
102
105
|
self._owner_type = None
|
|
103
106
|
self._project_id = None
|
|
@@ -112,6 +115,8 @@ class V1Membership(object):
|
|
|
112
115
|
self.created_at = created_at
|
|
113
116
|
if creator_id is not None:
|
|
114
117
|
self.creator_id = creator_id
|
|
118
|
+
if current_storage_bytes is not None:
|
|
119
|
+
self.current_storage_bytes = current_storage_bytes
|
|
115
120
|
if datastore_count is not None:
|
|
116
121
|
self.datastore_count = datastore_count
|
|
117
122
|
if description is not None:
|
|
@@ -128,8 +133,8 @@ class V1Membership(object):
|
|
|
128
133
|
self.membership_count = membership_count
|
|
129
134
|
if name is not None:
|
|
130
135
|
self.name = name
|
|
131
|
-
if
|
|
132
|
-
self.
|
|
136
|
+
if next_free_credits_grant is not None:
|
|
137
|
+
self.next_free_credits_grant = next_free_credits_grant
|
|
133
138
|
if owner_id is not None:
|
|
134
139
|
self.owner_id = owner_id
|
|
135
140
|
if owner_type is not None:
|
|
@@ -208,6 +213,27 @@ class V1Membership(object):
|
|
|
208
213
|
|
|
209
214
|
self._creator_id = creator_id
|
|
210
215
|
|
|
216
|
+
@property
|
|
217
|
+
def current_storage_bytes(self) -> 'str':
|
|
218
|
+
"""Gets the current_storage_bytes of this V1Membership. # noqa: E501
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:return: The current_storage_bytes of this V1Membership. # noqa: E501
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._current_storage_bytes
|
|
225
|
+
|
|
226
|
+
@current_storage_bytes.setter
|
|
227
|
+
def current_storage_bytes(self, current_storage_bytes: 'str'):
|
|
228
|
+
"""Sets the current_storage_bytes of this V1Membership.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
:param current_storage_bytes: The current_storage_bytes of this V1Membership. # noqa: E501
|
|
232
|
+
:type: str
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._current_storage_bytes = current_storage_bytes
|
|
236
|
+
|
|
211
237
|
@property
|
|
212
238
|
def datastore_count(self) -> 'str':
|
|
213
239
|
"""Gets the datastore_count of this V1Membership. # noqa: E501
|
|
@@ -377,25 +403,25 @@ class V1Membership(object):
|
|
|
377
403
|
self._name = name
|
|
378
404
|
|
|
379
405
|
@property
|
|
380
|
-
def
|
|
381
|
-
"""Gets the
|
|
406
|
+
def next_free_credits_grant(self) -> 'str':
|
|
407
|
+
"""Gets the next_free_credits_grant of this V1Membership. # noqa: E501
|
|
382
408
|
|
|
383
409
|
|
|
384
|
-
:return: The
|
|
385
|
-
:rtype:
|
|
410
|
+
:return: The next_free_credits_grant of this V1Membership. # noqa: E501
|
|
411
|
+
:rtype: str
|
|
386
412
|
"""
|
|
387
|
-
return self.
|
|
413
|
+
return self._next_free_credits_grant
|
|
388
414
|
|
|
389
|
-
@
|
|
390
|
-
def
|
|
391
|
-
"""Sets the
|
|
415
|
+
@next_free_credits_grant.setter
|
|
416
|
+
def next_free_credits_grant(self, next_free_credits_grant: 'str'):
|
|
417
|
+
"""Sets the next_free_credits_grant of this V1Membership.
|
|
392
418
|
|
|
393
419
|
|
|
394
|
-
:param
|
|
395
|
-
:type:
|
|
420
|
+
:param next_free_credits_grant: The next_free_credits_grant of this V1Membership. # noqa: E501
|
|
421
|
+
:type: str
|
|
396
422
|
"""
|
|
397
423
|
|
|
398
|
-
self.
|
|
424
|
+
self._next_free_credits_grant = next_free_credits_grant
|
|
399
425
|
|
|
400
426
|
@property
|
|
401
427
|
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
|