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,103 @@
|
|
|
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 V1CloudSpaceSourceType(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
UNSPECIFIED = "CLOUD_SPACE_SOURCE_UNSPECIFIED"
|
|
41
|
+
LITSERVE = "CLOUD_SPACE_SOURCE_LITSERVE"
|
|
42
|
+
"""
|
|
43
|
+
Attributes:
|
|
44
|
+
swagger_types (dict): The key is attribute name
|
|
45
|
+
and the value is attribute type.
|
|
46
|
+
attribute_map (dict): The key is attribute name
|
|
47
|
+
and the value is json key in definition.
|
|
48
|
+
"""
|
|
49
|
+
swagger_types = {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self): # noqa: E501
|
|
56
|
+
"""V1CloudSpaceSourceType - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> dict:
|
|
60
|
+
"""Returns the model properties as a dict"""
|
|
61
|
+
result = {}
|
|
62
|
+
|
|
63
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
64
|
+
value = getattr(self, attr)
|
|
65
|
+
if isinstance(value, list):
|
|
66
|
+
result[attr] = list(map(
|
|
67
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
68
|
+
value
|
|
69
|
+
))
|
|
70
|
+
elif hasattr(value, "to_dict"):
|
|
71
|
+
result[attr] = value.to_dict()
|
|
72
|
+
elif isinstance(value, dict):
|
|
73
|
+
result[attr] = dict(map(
|
|
74
|
+
lambda item: (item[0], item[1].to_dict())
|
|
75
|
+
if hasattr(item[1], "to_dict") else item,
|
|
76
|
+
value.items()
|
|
77
|
+
))
|
|
78
|
+
else:
|
|
79
|
+
result[attr] = value
|
|
80
|
+
if issubclass(V1CloudSpaceSourceType, dict):
|
|
81
|
+
for key, value in self.items():
|
|
82
|
+
result[key] = value
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def to_str(self) -> str:
|
|
87
|
+
"""Returns the string representation of the model"""
|
|
88
|
+
return pprint.pformat(self.to_dict())
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
"""For `print` and `pprint`"""
|
|
92
|
+
return self.to_str()
|
|
93
|
+
|
|
94
|
+
def __eq__(self, other: 'V1CloudSpaceSourceType') -> bool:
|
|
95
|
+
"""Returns true if both objects are equal"""
|
|
96
|
+
if not isinstance(other, V1CloudSpaceSourceType):
|
|
97
|
+
return False
|
|
98
|
+
|
|
99
|
+
return self.__dict__ == other.__dict__
|
|
100
|
+
|
|
101
|
+
def __ne__(self, other: 'V1CloudSpaceSourceType') -> bool:
|
|
102
|
+
"""Returns true if both objects are not equal"""
|
|
103
|
+
return not self == other
|
|
@@ -41,144 +41,144 @@ class V1CloudflareV1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'access_key_id': 'str',
|
|
45
44
|
'account_id': 'str',
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
45
|
+
'api_token_secret_id': 'str',
|
|
46
|
+
'api_token_value': 'str',
|
|
47
|
+
'bucket_credentials_secret_id': 'str',
|
|
48
|
+
'bucket_name': 'str'
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
attribute_map = {
|
|
52
|
-
'access_key_id': 'accessKeyId',
|
|
53
52
|
'account_id': 'accountId',
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
53
|
+
'api_token_secret_id': 'apiTokenSecretId',
|
|
54
|
+
'api_token_value': 'apiTokenValue',
|
|
55
|
+
'bucket_credentials_secret_id': 'bucketCredentialsSecretId',
|
|
56
|
+
'bucket_name': 'bucketName'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
def __init__(self,
|
|
59
|
+
def __init__(self, account_id: 'str' =None, api_token_secret_id: 'str' =None, api_token_value: 'str' =None, bucket_credentials_secret_id: 'str' =None, bucket_name: 'str' =None): # noqa: E501
|
|
60
60
|
"""V1CloudflareV1 - a model defined in Swagger""" # noqa: E501
|
|
61
|
-
self._access_key_id = None
|
|
62
61
|
self._account_id = None
|
|
63
|
-
self.
|
|
64
|
-
self.
|
|
65
|
-
self.
|
|
62
|
+
self._api_token_secret_id = None
|
|
63
|
+
self._api_token_value = None
|
|
64
|
+
self._bucket_credentials_secret_id = None
|
|
65
|
+
self._bucket_name = None
|
|
66
66
|
self.discriminator = None
|
|
67
|
-
if access_key_id is not None:
|
|
68
|
-
self.access_key_id = access_key_id
|
|
69
67
|
if account_id is not None:
|
|
70
68
|
self.account_id = account_id
|
|
71
|
-
if
|
|
72
|
-
self.
|
|
73
|
-
if
|
|
74
|
-
self.
|
|
75
|
-
if
|
|
76
|
-
self.
|
|
69
|
+
if api_token_secret_id is not None:
|
|
70
|
+
self.api_token_secret_id = api_token_secret_id
|
|
71
|
+
if api_token_value is not None:
|
|
72
|
+
self.api_token_value = api_token_value
|
|
73
|
+
if bucket_credentials_secret_id is not None:
|
|
74
|
+
self.bucket_credentials_secret_id = bucket_credentials_secret_id
|
|
75
|
+
if bucket_name is not None:
|
|
76
|
+
self.bucket_name = bucket_name
|
|
77
77
|
|
|
78
78
|
@property
|
|
79
|
-
def
|
|
80
|
-
"""Gets the
|
|
79
|
+
def account_id(self) -> 'str':
|
|
80
|
+
"""Gets the account_id of this V1CloudflareV1. # noqa: E501
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
:return: The
|
|
83
|
+
:return: The account_id of this V1CloudflareV1. # noqa: E501
|
|
84
84
|
:rtype: str
|
|
85
85
|
"""
|
|
86
|
-
return self.
|
|
86
|
+
return self._account_id
|
|
87
87
|
|
|
88
|
-
@
|
|
89
|
-
def
|
|
90
|
-
"""Sets the
|
|
88
|
+
@account_id.setter
|
|
89
|
+
def account_id(self, account_id: 'str'):
|
|
90
|
+
"""Sets the account_id of this V1CloudflareV1.
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
:param
|
|
93
|
+
:param account_id: The account_id of this V1CloudflareV1. # noqa: E501
|
|
94
94
|
:type: str
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
|
-
self.
|
|
97
|
+
self._account_id = account_id
|
|
98
98
|
|
|
99
99
|
@property
|
|
100
|
-
def
|
|
101
|
-
"""Gets the
|
|
100
|
+
def api_token_secret_id(self) -> 'str':
|
|
101
|
+
"""Gets the api_token_secret_id of this V1CloudflareV1. # noqa: E501
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
:return: The
|
|
104
|
+
:return: The api_token_secret_id of this V1CloudflareV1. # noqa: E501
|
|
105
105
|
:rtype: str
|
|
106
106
|
"""
|
|
107
|
-
return self.
|
|
107
|
+
return self._api_token_secret_id
|
|
108
108
|
|
|
109
|
-
@
|
|
110
|
-
def
|
|
111
|
-
"""Sets the
|
|
109
|
+
@api_token_secret_id.setter
|
|
110
|
+
def api_token_secret_id(self, api_token_secret_id: 'str'):
|
|
111
|
+
"""Sets the api_token_secret_id of this V1CloudflareV1.
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
:param
|
|
114
|
+
:param api_token_secret_id: The api_token_secret_id of this V1CloudflareV1. # noqa: E501
|
|
115
115
|
:type: str
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
|
-
self.
|
|
118
|
+
self._api_token_secret_id = api_token_secret_id
|
|
119
119
|
|
|
120
120
|
@property
|
|
121
|
-
def
|
|
122
|
-
"""Gets the
|
|
121
|
+
def api_token_value(self) -> 'str':
|
|
122
|
+
"""Gets the api_token_value of this V1CloudflareV1. # noqa: E501
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
:return: The
|
|
125
|
+
:return: The api_token_value of this V1CloudflareV1. # noqa: E501
|
|
126
126
|
:rtype: str
|
|
127
127
|
"""
|
|
128
|
-
return self.
|
|
128
|
+
return self._api_token_value
|
|
129
129
|
|
|
130
|
-
@
|
|
131
|
-
def
|
|
132
|
-
"""Sets the
|
|
130
|
+
@api_token_value.setter
|
|
131
|
+
def api_token_value(self, api_token_value: 'str'):
|
|
132
|
+
"""Sets the api_token_value of this V1CloudflareV1.
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
:param
|
|
135
|
+
:param api_token_value: The api_token_value of this V1CloudflareV1. # noqa: E501
|
|
136
136
|
:type: str
|
|
137
137
|
"""
|
|
138
138
|
|
|
139
|
-
self.
|
|
139
|
+
self._api_token_value = api_token_value
|
|
140
140
|
|
|
141
141
|
@property
|
|
142
|
-
def
|
|
143
|
-
"""Gets the
|
|
142
|
+
def bucket_credentials_secret_id(self) -> 'str':
|
|
143
|
+
"""Gets the bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
:return: The
|
|
146
|
+
:return: The bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
|
|
147
147
|
:rtype: str
|
|
148
148
|
"""
|
|
149
|
-
return self.
|
|
149
|
+
return self._bucket_credentials_secret_id
|
|
150
150
|
|
|
151
|
-
@
|
|
152
|
-
def
|
|
153
|
-
"""Sets the
|
|
151
|
+
@bucket_credentials_secret_id.setter
|
|
152
|
+
def bucket_credentials_secret_id(self, bucket_credentials_secret_id: 'str'):
|
|
153
|
+
"""Sets the bucket_credentials_secret_id of this V1CloudflareV1.
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
:param
|
|
156
|
+
:param bucket_credentials_secret_id: The bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
|
|
157
157
|
:type: str
|
|
158
158
|
"""
|
|
159
159
|
|
|
160
|
-
self.
|
|
160
|
+
self._bucket_credentials_secret_id = bucket_credentials_secret_id
|
|
161
161
|
|
|
162
162
|
@property
|
|
163
|
-
def
|
|
164
|
-
"""Gets the
|
|
163
|
+
def bucket_name(self) -> 'str':
|
|
164
|
+
"""Gets the bucket_name of this V1CloudflareV1. # noqa: E501
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
:return: The
|
|
167
|
+
:return: The bucket_name of this V1CloudflareV1. # noqa: E501
|
|
168
168
|
:rtype: str
|
|
169
169
|
"""
|
|
170
|
-
return self.
|
|
170
|
+
return self._bucket_name
|
|
171
171
|
|
|
172
|
-
@
|
|
173
|
-
def
|
|
174
|
-
"""Sets the
|
|
172
|
+
@bucket_name.setter
|
|
173
|
+
def bucket_name(self, bucket_name: 'str'):
|
|
174
|
+
"""Sets the bucket_name of this V1CloudflareV1.
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
:param
|
|
177
|
+
:param bucket_name: The bucket_name of this V1CloudflareV1. # noqa: E501
|
|
178
178
|
:type: str
|
|
179
179
|
"""
|
|
180
180
|
|
|
181
|
-
self.
|
|
181
|
+
self._bucket_name = bucket_name
|
|
182
182
|
|
|
183
183
|
def to_dict(self) -> dict:
|
|
184
184
|
"""Returns the model properties as a dict"""
|
|
@@ -49,6 +49,7 @@ class V1ClusterSpec(object):
|
|
|
49
49
|
'deletion_options': 'V1ClusterDeletionOptions',
|
|
50
50
|
'desired_state': 'V1ClusterState',
|
|
51
51
|
'domain': 'str',
|
|
52
|
+
'driver': 'V1CloudProvider',
|
|
52
53
|
'freeze_accelerators': 'bool',
|
|
53
54
|
'google_cloud_v1': 'V1GoogleCloudDirectV1',
|
|
54
55
|
'insurer_disabled': 'bool',
|
|
@@ -80,6 +81,7 @@ class V1ClusterSpec(object):
|
|
|
80
81
|
'deletion_options': 'deletionOptions',
|
|
81
82
|
'desired_state': 'desiredState',
|
|
82
83
|
'domain': 'domain',
|
|
84
|
+
'driver': 'driver',
|
|
83
85
|
'freeze_accelerators': 'freezeAccelerators',
|
|
84
86
|
'google_cloud_v1': 'googleCloudV1',
|
|
85
87
|
'insurer_disabled': 'insurerDisabled',
|
|
@@ -102,7 +104,7 @@ class V1ClusterSpec(object):
|
|
|
102
104
|
'vultr_v1': 'vultrV1'
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
107
|
+
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
106
108
|
"""V1ClusterSpec - a model defined in Swagger""" # noqa: E501
|
|
107
109
|
self._auth_token = None
|
|
108
110
|
self._available_accelerators = None
|
|
@@ -112,6 +114,7 @@ class V1ClusterSpec(object):
|
|
|
112
114
|
self._deletion_options = None
|
|
113
115
|
self._desired_state = None
|
|
114
116
|
self._domain = None
|
|
117
|
+
self._driver = None
|
|
115
118
|
self._freeze_accelerators = None
|
|
116
119
|
self._google_cloud_v1 = None
|
|
117
120
|
self._insurer_disabled = None
|
|
@@ -149,6 +152,8 @@ class V1ClusterSpec(object):
|
|
|
149
152
|
self.desired_state = desired_state
|
|
150
153
|
if domain is not None:
|
|
151
154
|
self.domain = domain
|
|
155
|
+
if driver is not None:
|
|
156
|
+
self.driver = driver
|
|
152
157
|
if freeze_accelerators is not None:
|
|
153
158
|
self.freeze_accelerators = freeze_accelerators
|
|
154
159
|
if google_cloud_v1 is not None:
|
|
@@ -360,6 +365,27 @@ class V1ClusterSpec(object):
|
|
|
360
365
|
|
|
361
366
|
self._domain = domain
|
|
362
367
|
|
|
368
|
+
@property
|
|
369
|
+
def driver(self) -> 'V1CloudProvider':
|
|
370
|
+
"""Gets the driver of this V1ClusterSpec. # noqa: E501
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
:return: The driver of this V1ClusterSpec. # noqa: E501
|
|
374
|
+
:rtype: V1CloudProvider
|
|
375
|
+
"""
|
|
376
|
+
return self._driver
|
|
377
|
+
|
|
378
|
+
@driver.setter
|
|
379
|
+
def driver(self, driver: 'V1CloudProvider'):
|
|
380
|
+
"""Sets the driver of this V1ClusterSpec.
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
:param driver: The driver of this V1ClusterSpec. # noqa: E501
|
|
384
|
+
:type: V1CloudProvider
|
|
385
|
+
"""
|
|
386
|
+
|
|
387
|
+
self._driver = driver
|
|
388
|
+
|
|
363
389
|
@property
|
|
364
390
|
def freeze_accelerators(self) -> 'bool':
|
|
365
391
|
"""Gets the freeze_accelerators of this V1ClusterSpec. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class V1ClusterTaggingOptions(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'custom_tags': 'list[V1ClusterResourceTag]',
|
|
45
|
+
'tag_bucket_objects': 'bool',
|
|
45
46
|
'tag_instances_with_teamspace_name': 'bool',
|
|
46
47
|
'tag_instances_with_username': 'bool',
|
|
47
48
|
'tag_instances_with_workload_name': 'bool'
|
|
@@ -49,20 +50,24 @@ class V1ClusterTaggingOptions(object):
|
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'custom_tags': 'customTags',
|
|
53
|
+
'tag_bucket_objects': 'tagBucketObjects',
|
|
52
54
|
'tag_instances_with_teamspace_name': 'tagInstancesWithTeamspaceName',
|
|
53
55
|
'tag_instances_with_username': 'tagInstancesWithUsername',
|
|
54
56
|
'tag_instances_with_workload_name': 'tagInstancesWithWorkloadName'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
|
|
59
|
+
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_bucket_objects: 'bool' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
|
|
58
60
|
"""V1ClusterTaggingOptions - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._custom_tags = None
|
|
62
|
+
self._tag_bucket_objects = None
|
|
60
63
|
self._tag_instances_with_teamspace_name = None
|
|
61
64
|
self._tag_instances_with_username = None
|
|
62
65
|
self._tag_instances_with_workload_name = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if custom_tags is not None:
|
|
65
68
|
self.custom_tags = custom_tags
|
|
69
|
+
if tag_bucket_objects is not None:
|
|
70
|
+
self.tag_bucket_objects = tag_bucket_objects
|
|
66
71
|
if tag_instances_with_teamspace_name is not None:
|
|
67
72
|
self.tag_instances_with_teamspace_name = tag_instances_with_teamspace_name
|
|
68
73
|
if tag_instances_with_username is not None:
|
|
@@ -91,6 +96,27 @@ class V1ClusterTaggingOptions(object):
|
|
|
91
96
|
|
|
92
97
|
self._custom_tags = custom_tags
|
|
93
98
|
|
|
99
|
+
@property
|
|
100
|
+
def tag_bucket_objects(self) -> 'bool':
|
|
101
|
+
"""Gets the tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
105
|
+
:rtype: bool
|
|
106
|
+
"""
|
|
107
|
+
return self._tag_bucket_objects
|
|
108
|
+
|
|
109
|
+
@tag_bucket_objects.setter
|
|
110
|
+
def tag_bucket_objects(self, tag_bucket_objects: 'bool'):
|
|
111
|
+
"""Sets the tag_bucket_objects of this V1ClusterTaggingOptions.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param tag_bucket_objects: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
115
|
+
:type: bool
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._tag_bucket_objects = tag_bucket_objects
|
|
119
|
+
|
|
94
120
|
@property
|
|
95
121
|
def tag_instances_with_teamspace_name(self) -> 'bool':
|
|
96
122
|
"""Gets the tag_instances_with_teamspace_name of this V1ClusterTaggingOptions. # noqa: E501
|
|
@@ -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 V1ClusterUpload(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
|
+
'cluster_id': 'str',
|
|
45
|
+
'upload_id': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'cluster_id': 'clusterId',
|
|
50
|
+
'upload_id': 'uploadId'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, cluster_id: 'str' =None, upload_id: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1ClusterUpload - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._cluster_id = None
|
|
56
|
+
self._upload_id = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if cluster_id is not None:
|
|
59
|
+
self.cluster_id = cluster_id
|
|
60
|
+
if upload_id is not None:
|
|
61
|
+
self.upload_id = upload_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def cluster_id(self) -> 'str':
|
|
65
|
+
"""Gets the cluster_id of this V1ClusterUpload. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The cluster_id of this V1ClusterUpload. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._cluster_id
|
|
72
|
+
|
|
73
|
+
@cluster_id.setter
|
|
74
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
75
|
+
"""Sets the cluster_id of this V1ClusterUpload.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param cluster_id: The cluster_id of this V1ClusterUpload. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._cluster_id = cluster_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def upload_id(self) -> 'str':
|
|
86
|
+
"""Gets the upload_id of this V1ClusterUpload. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The upload_id of this V1ClusterUpload. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._upload_id
|
|
93
|
+
|
|
94
|
+
@upload_id.setter
|
|
95
|
+
def upload_id(self, upload_id: 'str'):
|
|
96
|
+
"""Sets the upload_id of this V1ClusterUpload.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param upload_id: The upload_id of this V1ClusterUpload. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._upload_id = upload_id
|
|
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(V1ClusterUpload, 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: 'V1ClusterUpload') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1ClusterUpload):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1ClusterUpload') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|