lightning-sdk 2025.7.22__py3-none-any.whl → 2025.7.31__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/cloud_account_api.py +58 -8
- lightning_sdk/api/job_api.py +74 -11
- lightning_sdk/api/llm_api.py +1 -1
- lightning_sdk/api/mmt_api.py +35 -5
- lightning_sdk/api/studio_api.py +32 -3
- lightning_sdk/api/utils.py +6 -2
- lightning_sdk/cli/create.py +3 -1
- lightning_sdk/cli/deploy/serve.py +3 -1
- lightning_sdk/cli/download.py +25 -1
- lightning_sdk/cli/entrypoint.py +3 -1
- lightning_sdk/cli/list.py +5 -1
- lightning_sdk/cli/run.py +3 -1
- lightning_sdk/cli/start.py +3 -1
- lightning_sdk/cli/switch.py +3 -1
- lightning_sdk/job/v2.py +7 -1
- lightning_sdk/job/work.py +5 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -1
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +106 -13
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +295 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +6 -1
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_published_managed_endpoint_models_response.py → v1_list_published_managed_endpoints_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +1 -0
- lightning_sdk/llm/llm.py +41 -7
- lightning_sdk/llm/public_assistants.json +32 -8
- lightning_sdk/machine.py +139 -43
- lightning_sdk/mmt/v2.py +6 -1
- lightning_sdk/models.py +1 -1
- lightning_sdk/studio.py +12 -5
- lightning_sdk/teamspace.py +5 -2
- lightning_sdk/utils/resolve.py +8 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/METADATA +7 -5
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/RECORD +64 -59
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1GetClusterHealthResponse(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
|
+
'dependency_service_health': 'list[V1ServiceHealth]',
|
|
45
|
+
'ok': 'bool'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'dependency_service_health': 'dependencyServiceHealth',
|
|
50
|
+
'ok': 'ok'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, dependency_service_health: 'list[V1ServiceHealth]' =None, ok: 'bool' =None): # noqa: E501
|
|
54
|
+
"""V1GetClusterHealthResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._dependency_service_health = None
|
|
56
|
+
self._ok = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if dependency_service_health is not None:
|
|
59
|
+
self.dependency_service_health = dependency_service_health
|
|
60
|
+
if ok is not None:
|
|
61
|
+
self.ok = ok
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def dependency_service_health(self) -> 'list[V1ServiceHealth]':
|
|
65
|
+
"""Gets the dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
|
|
69
|
+
:rtype: list[V1ServiceHealth]
|
|
70
|
+
"""
|
|
71
|
+
return self._dependency_service_health
|
|
72
|
+
|
|
73
|
+
@dependency_service_health.setter
|
|
74
|
+
def dependency_service_health(self, dependency_service_health: 'list[V1ServiceHealth]'):
|
|
75
|
+
"""Sets the dependency_service_health of this V1GetClusterHealthResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param dependency_service_health: The dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
|
|
79
|
+
:type: list[V1ServiceHealth]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._dependency_service_health = dependency_service_health
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def ok(self) -> 'bool':
|
|
86
|
+
"""Gets the ok of this V1GetClusterHealthResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The ok of this V1GetClusterHealthResponse. # noqa: E501
|
|
90
|
+
:rtype: bool
|
|
91
|
+
"""
|
|
92
|
+
return self._ok
|
|
93
|
+
|
|
94
|
+
@ok.setter
|
|
95
|
+
def ok(self, ok: 'bool'):
|
|
96
|
+
"""Sets the ok of this V1GetClusterHealthResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param ok: The ok of this V1GetClusterHealthResponse. # noqa: E501
|
|
100
|
+
:type: bool
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._ok = ok
|
|
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(V1GetClusterHealthResponse, 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: 'V1GetClusterHealthResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1GetClusterHealthResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1GetClusterHealthResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -77,6 +77,7 @@ class V1GetUserResponse(object):
|
|
|
77
77
|
'status': 'Externalv1UserStatus',
|
|
78
78
|
'storage_bytes': 'str',
|
|
79
79
|
'storage_overuse_deletion_at': 'datetime',
|
|
80
|
+
'test_user': 'bool',
|
|
80
81
|
'user_metadata': 'str',
|
|
81
82
|
'username': 'str',
|
|
82
83
|
'waitlisted': 'bool',
|
|
@@ -120,13 +121,14 @@ class V1GetUserResponse(object):
|
|
|
120
121
|
'status': 'status',
|
|
121
122
|
'storage_bytes': 'storageBytes',
|
|
122
123
|
'storage_overuse_deletion_at': 'storageOveruseDeletionAt',
|
|
124
|
+
'test_user': 'testUser',
|
|
123
125
|
'user_metadata': 'userMetadata',
|
|
124
126
|
'username': 'username',
|
|
125
127
|
'waitlisted': 'waitlisted',
|
|
126
128
|
'website': 'website'
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =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_blog_admin: 'bool' =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, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
131
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =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_blog_admin: 'bool' =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, storage_overuse_deletion_at: 'datetime' =None, test_user: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
130
132
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
131
133
|
self._agree_to_terms_and_conditions = None
|
|
132
134
|
self._allow_credits_auto_replenish = None
|
|
@@ -164,6 +166,7 @@ class V1GetUserResponse(object):
|
|
|
164
166
|
self._status = None
|
|
165
167
|
self._storage_bytes = None
|
|
166
168
|
self._storage_overuse_deletion_at = None
|
|
169
|
+
self._test_user = None
|
|
167
170
|
self._user_metadata = None
|
|
168
171
|
self._username = None
|
|
169
172
|
self._waitlisted = None
|
|
@@ -241,6 +244,8 @@ class V1GetUserResponse(object):
|
|
|
241
244
|
self.storage_bytes = storage_bytes
|
|
242
245
|
if storage_overuse_deletion_at is not None:
|
|
243
246
|
self.storage_overuse_deletion_at = storage_overuse_deletion_at
|
|
247
|
+
if test_user is not None:
|
|
248
|
+
self.test_user = test_user
|
|
244
249
|
if user_metadata is not None:
|
|
245
250
|
self.user_metadata = user_metadata
|
|
246
251
|
if username is not None:
|
|
@@ -1006,6 +1011,27 @@ class V1GetUserResponse(object):
|
|
|
1006
1011
|
|
|
1007
1012
|
self._storage_overuse_deletion_at = storage_overuse_deletion_at
|
|
1008
1013
|
|
|
1014
|
+
@property
|
|
1015
|
+
def test_user(self) -> 'bool':
|
|
1016
|
+
"""Gets the test_user of this V1GetUserResponse. # noqa: E501
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
:return: The test_user of this V1GetUserResponse. # noqa: E501
|
|
1020
|
+
:rtype: bool
|
|
1021
|
+
"""
|
|
1022
|
+
return self._test_user
|
|
1023
|
+
|
|
1024
|
+
@test_user.setter
|
|
1025
|
+
def test_user(self, test_user: 'bool'):
|
|
1026
|
+
"""Sets the test_user of this V1GetUserResponse.
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
:param test_user: The test_user of this V1GetUserResponse. # noqa: E501
|
|
1030
|
+
:type: bool
|
|
1031
|
+
"""
|
|
1032
|
+
|
|
1033
|
+
self._test_user = test_user
|
|
1034
|
+
|
|
1009
1035
|
@property
|
|
1010
1036
|
def user_metadata(self) -> 'str':
|
|
1011
1037
|
"""Gets the user_metadata of this V1GetUserResponse. # noqa: E501
|
|
@@ -68,6 +68,7 @@ class V1JobSpec(object):
|
|
|
68
68
|
'restart_policy': 'str',
|
|
69
69
|
'run_id': 'str',
|
|
70
70
|
'spot': 'bool',
|
|
71
|
+
'use_tls': 'bool',
|
|
71
72
|
'volumes': 'list[V1Volume]'
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -99,10 +100,11 @@ class V1JobSpec(object):
|
|
|
99
100
|
'restart_policy': 'restartPolicy',
|
|
100
101
|
'run_id': 'runId',
|
|
101
102
|
'spot': 'spot',
|
|
103
|
+
'use_tls': 'useTls',
|
|
102
104
|
'volumes': 'volumes'
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, machine_image_version: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, pipeline_id: 'str' =None, quantity: 'int' =None, rank: 'int' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
|
|
107
|
+
def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, machine_image_version: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, pipeline_id: 'str' =None, quantity: 'int' =None, rank: 'int' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, use_tls: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
|
|
106
108
|
"""V1JobSpec - a model defined in Swagger""" # noqa: E501
|
|
107
109
|
self._artifacts_destination = None
|
|
108
110
|
self._artifacts_source = None
|
|
@@ -131,6 +133,7 @@ class V1JobSpec(object):
|
|
|
131
133
|
self._restart_policy = None
|
|
132
134
|
self._run_id = None
|
|
133
135
|
self._spot = None
|
|
136
|
+
self._use_tls = None
|
|
134
137
|
self._volumes = None
|
|
135
138
|
self.discriminator = None
|
|
136
139
|
if artifacts_destination is not None:
|
|
@@ -187,6 +190,8 @@ class V1JobSpec(object):
|
|
|
187
190
|
self.run_id = run_id
|
|
188
191
|
if spot is not None:
|
|
189
192
|
self.spot = spot
|
|
193
|
+
if use_tls is not None:
|
|
194
|
+
self.use_tls = use_tls
|
|
190
195
|
if volumes is not None:
|
|
191
196
|
self.volumes = volumes
|
|
192
197
|
|
|
@@ -757,6 +762,27 @@ class V1JobSpec(object):
|
|
|
757
762
|
|
|
758
763
|
self._spot = spot
|
|
759
764
|
|
|
765
|
+
@property
|
|
766
|
+
def use_tls(self) -> 'bool':
|
|
767
|
+
"""Gets the use_tls of this V1JobSpec. # noqa: E501
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
:return: The use_tls of this V1JobSpec. # noqa: E501
|
|
771
|
+
:rtype: bool
|
|
772
|
+
"""
|
|
773
|
+
return self._use_tls
|
|
774
|
+
|
|
775
|
+
@use_tls.setter
|
|
776
|
+
def use_tls(self, use_tls: 'bool'):
|
|
777
|
+
"""Sets the use_tls of this V1JobSpec.
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
:param use_tls: The use_tls of this V1JobSpec. # noqa: E501
|
|
781
|
+
:type: bool
|
|
782
|
+
"""
|
|
783
|
+
|
|
784
|
+
self._use_tls = use_tls
|
|
785
|
+
|
|
760
786
|
@property
|
|
761
787
|
def volumes(self) -> 'list[V1Volume]':
|
|
762
788
|
"""Gets the volumes of this V1JobSpec. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class V1KubernetesDirectV1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'grafana_dashboard_url': 'str',
|
|
45
|
+
'grafana_namespace': 'str',
|
|
45
46
|
'grafana_service_name': 'str',
|
|
46
47
|
'grafana_service_port': 'str',
|
|
47
48
|
'kubeconfig': 'str',
|
|
@@ -50,15 +51,17 @@ class V1KubernetesDirectV1(object):
|
|
|
50
51
|
|
|
51
52
|
attribute_map = {
|
|
52
53
|
'grafana_dashboard_url': 'grafanaDashboardUrl',
|
|
54
|
+
'grafana_namespace': 'grafanaNamespace',
|
|
53
55
|
'grafana_service_name': 'grafanaServiceName',
|
|
54
56
|
'grafana_service_port': 'grafanaServicePort',
|
|
55
57
|
'kubeconfig': 'kubeconfig',
|
|
56
58
|
'kubeconfig_elevated': 'kubeconfigElevated'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, grafana_dashboard_url: 'str' =None, grafana_service_name: 'str' =None, grafana_service_port: 'str' =None, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, grafana_dashboard_url: 'str' =None, grafana_namespace: 'str' =None, grafana_service_name: 'str' =None, grafana_service_port: 'str' =None, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
60
62
|
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._grafana_dashboard_url = None
|
|
64
|
+
self._grafana_namespace = None
|
|
62
65
|
self._grafana_service_name = None
|
|
63
66
|
self._grafana_service_port = None
|
|
64
67
|
self._kubeconfig = None
|
|
@@ -66,6 +69,8 @@ class V1KubernetesDirectV1(object):
|
|
|
66
69
|
self.discriminator = None
|
|
67
70
|
if grafana_dashboard_url is not None:
|
|
68
71
|
self.grafana_dashboard_url = grafana_dashboard_url
|
|
72
|
+
if grafana_namespace is not None:
|
|
73
|
+
self.grafana_namespace = grafana_namespace
|
|
69
74
|
if grafana_service_name is not None:
|
|
70
75
|
self.grafana_service_name = grafana_service_name
|
|
71
76
|
if grafana_service_port is not None:
|
|
@@ -96,6 +101,27 @@ class V1KubernetesDirectV1(object):
|
|
|
96
101
|
|
|
97
102
|
self._grafana_dashboard_url = grafana_dashboard_url
|
|
98
103
|
|
|
104
|
+
@property
|
|
105
|
+
def grafana_namespace(self) -> 'str':
|
|
106
|
+
"""Gets the grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._grafana_namespace
|
|
113
|
+
|
|
114
|
+
@grafana_namespace.setter
|
|
115
|
+
def grafana_namespace(self, grafana_namespace: 'str'):
|
|
116
|
+
"""Sets the grafana_namespace of this V1KubernetesDirectV1.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param grafana_namespace: The grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._grafana_namespace = grafana_namespace
|
|
124
|
+
|
|
99
125
|
@property
|
|
100
126
|
def grafana_service_name(self) -> 'str':
|
|
101
127
|
"""Gets the grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
|
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1ListPublishedManagedEndpointsResponse(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -41,40 +41,40 @@ class V1ListPublishedManagedEndpointModelsResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
44
|
+
'managed_endpoints': 'list[V1ManagedEndpoint]'
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
attribute_map = {
|
|
48
|
-
'
|
|
48
|
+
'managed_endpoints': 'managedEndpoints'
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
def __init__(self,
|
|
52
|
-
"""
|
|
53
|
-
self.
|
|
51
|
+
def __init__(self, managed_endpoints: 'list[V1ManagedEndpoint]' =None): # noqa: E501
|
|
52
|
+
"""V1ListPublishedManagedEndpointsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._managed_endpoints = None
|
|
54
54
|
self.discriminator = None
|
|
55
|
-
if
|
|
56
|
-
self.
|
|
55
|
+
if managed_endpoints is not None:
|
|
56
|
+
self.managed_endpoints = managed_endpoints
|
|
57
57
|
|
|
58
58
|
@property
|
|
59
|
-
def
|
|
60
|
-
"""Gets the
|
|
59
|
+
def managed_endpoints(self) -> 'list[V1ManagedEndpoint]':
|
|
60
|
+
"""Gets the managed_endpoints of this V1ListPublishedManagedEndpointsResponse. # noqa: E501
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
:return: The
|
|
64
|
-
:rtype: list[
|
|
63
|
+
:return: The managed_endpoints of this V1ListPublishedManagedEndpointsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1ManagedEndpoint]
|
|
65
65
|
"""
|
|
66
|
-
return self.
|
|
66
|
+
return self._managed_endpoints
|
|
67
67
|
|
|
68
|
-
@
|
|
69
|
-
def
|
|
70
|
-
"""Sets the
|
|
68
|
+
@managed_endpoints.setter
|
|
69
|
+
def managed_endpoints(self, managed_endpoints: 'list[V1ManagedEndpoint]'):
|
|
70
|
+
"""Sets the managed_endpoints of this V1ListPublishedManagedEndpointsResponse.
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
:param
|
|
74
|
-
:type: list[
|
|
73
|
+
:param managed_endpoints: The managed_endpoints of this V1ListPublishedManagedEndpointsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1ManagedEndpoint]
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
|
-
self.
|
|
77
|
+
self._managed_endpoints = managed_endpoints
|
|
78
78
|
|
|
79
79
|
def to_dict(self) -> dict:
|
|
80
80
|
"""Returns the model properties as a dict"""
|
|
@@ -97,7 +97,7 @@ class V1ListPublishedManagedEndpointModelsResponse(object):
|
|
|
97
97
|
))
|
|
98
98
|
else:
|
|
99
99
|
result[attr] = value
|
|
100
|
-
if issubclass(
|
|
100
|
+
if issubclass(V1ListPublishedManagedEndpointsResponse, dict):
|
|
101
101
|
for key, value in self.items():
|
|
102
102
|
result[key] = value
|
|
103
103
|
|
|
@@ -111,13 +111,13 @@ class V1ListPublishedManagedEndpointModelsResponse(object):
|
|
|
111
111
|
"""For `print` and `pprint`"""
|
|
112
112
|
return self.to_str()
|
|
113
113
|
|
|
114
|
-
def __eq__(self, other: '
|
|
114
|
+
def __eq__(self, other: 'V1ListPublishedManagedEndpointsResponse') -> bool:
|
|
115
115
|
"""Returns true if both objects are equal"""
|
|
116
|
-
if not isinstance(other,
|
|
116
|
+
if not isinstance(other, V1ListPublishedManagedEndpointsResponse):
|
|
117
117
|
return False
|
|
118
118
|
|
|
119
119
|
return self.__dict__ == other.__dict__
|
|
120
120
|
|
|
121
|
-
def __ne__(self, other: '
|
|
121
|
+
def __ne__(self, other: 'V1ListPublishedManagedEndpointsResponse') -> bool:
|
|
122
122
|
"""Returns true if both objects are not equal"""
|
|
123
123
|
return not self == other
|
|
@@ -49,6 +49,7 @@ class V1ManagedEndpoint(object):
|
|
|
49
49
|
'name': 'str',
|
|
50
50
|
'org_id': 'str',
|
|
51
51
|
'project_id': 'str',
|
|
52
|
+
'provider_display_name': 'str',
|
|
52
53
|
'publish_status': 'str',
|
|
53
54
|
'user_id': 'str'
|
|
54
55
|
}
|
|
@@ -62,11 +63,12 @@ class V1ManagedEndpoint(object):
|
|
|
62
63
|
'name': 'name',
|
|
63
64
|
'org_id': 'orgId',
|
|
64
65
|
'project_id': 'projectId',
|
|
66
|
+
'provider_display_name': 'providerDisplayName',
|
|
65
67
|
'publish_status': 'publishStatus',
|
|
66
68
|
'user_id': 'userId'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, id: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
71
|
+
def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, id: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, provider_display_name: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
70
72
|
"""V1ManagedEndpoint - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._api_key = None
|
|
72
74
|
self._base_url = None
|
|
@@ -76,6 +78,7 @@ class V1ManagedEndpoint(object):
|
|
|
76
78
|
self._name = None
|
|
77
79
|
self._org_id = None
|
|
78
80
|
self._project_id = None
|
|
81
|
+
self._provider_display_name = None
|
|
79
82
|
self._publish_status = None
|
|
80
83
|
self._user_id = None
|
|
81
84
|
self.discriminator = None
|
|
@@ -95,6 +98,8 @@ class V1ManagedEndpoint(object):
|
|
|
95
98
|
self.org_id = org_id
|
|
96
99
|
if project_id is not None:
|
|
97
100
|
self.project_id = project_id
|
|
101
|
+
if provider_display_name is not None:
|
|
102
|
+
self.provider_display_name = provider_display_name
|
|
98
103
|
if publish_status is not None:
|
|
99
104
|
self.publish_status = publish_status
|
|
100
105
|
if user_id is not None:
|
|
@@ -268,6 +273,27 @@ class V1ManagedEndpoint(object):
|
|
|
268
273
|
|
|
269
274
|
self._project_id = project_id
|
|
270
275
|
|
|
276
|
+
@property
|
|
277
|
+
def provider_display_name(self) -> 'str':
|
|
278
|
+
"""Gets the provider_display_name of this V1ManagedEndpoint. # noqa: E501
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
:return: The provider_display_name of this V1ManagedEndpoint. # noqa: E501
|
|
282
|
+
:rtype: str
|
|
283
|
+
"""
|
|
284
|
+
return self._provider_display_name
|
|
285
|
+
|
|
286
|
+
@provider_display_name.setter
|
|
287
|
+
def provider_display_name(self, provider_display_name: 'str'):
|
|
288
|
+
"""Sets the provider_display_name of this V1ManagedEndpoint.
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:param provider_display_name: The provider_display_name of this V1ManagedEndpoint. # noqa: E501
|
|
292
|
+
:type: str
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
self._provider_display_name = provider_display_name
|
|
296
|
+
|
|
271
297
|
@property
|
|
272
298
|
def publish_status(self) -> 'str':
|
|
273
299
|
"""Gets the publish_status of this V1ManagedEndpoint. # noqa: E501
|