lightning-sdk 0.1.55__py3-none-any.whl → 0.1.57__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 +3 -2
- lightning_sdk/ai_hub.py +22 -0
- lightning_sdk/api/ai_hub_api.py +21 -2
- lightning_sdk/api/deployment_api.py +4 -3
- lightning_sdk/api/job_api.py +5 -10
- lightning_sdk/api/mmt_api.py +1 -4
- lightning_sdk/api/studio_api.py +5 -7
- lightning_sdk/api/teamspace_api.py +7 -0
- lightning_sdk/api/utils.py +1 -27
- lightning_sdk/cli/ai_hub.py +61 -10
- lightning_sdk/cli/configure.py +137 -0
- lightning_sdk/cli/connect.py +47 -0
- lightning_sdk/cli/delete.py +83 -32
- lightning_sdk/cli/download.py +177 -90
- lightning_sdk/cli/entrypoint.py +50 -15
- lightning_sdk/cli/generate.py +51 -42
- lightning_sdk/cli/inspect.py +45 -3
- lightning_sdk/cli/jobs_menu.py +2 -1
- lightning_sdk/cli/list.py +139 -55
- lightning_sdk/cli/mmts_menu.py +2 -1
- lightning_sdk/cli/run.py +3 -9
- lightning_sdk/cli/serve.py +1 -2
- lightning_sdk/cli/start.py +2 -2
- lightning_sdk/cli/stop.py +5 -3
- lightning_sdk/cli/studios_menu.py +24 -1
- lightning_sdk/cli/switch.py +2 -2
- lightning_sdk/cli/teamspace_menu.py +2 -1
- lightning_sdk/cli/upload.py +6 -4
- lightning_sdk/helpers.py +20 -0
- lightning_sdk/job/job.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +7 -3
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection_setup.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +8 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/machine.py +59 -27
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +25 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/METADATA +3 -1
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/RECORD +72 -61
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.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 V1RestartTiming(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
|
+
'counter': 'int',
|
|
45
|
+
'end': 'datetime',
|
|
46
|
+
'start': 'datetime'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'counter': 'counter',
|
|
51
|
+
'end': 'end',
|
|
52
|
+
'start': 'start'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, counter: 'int' =None, end: 'datetime' =None, start: 'datetime' =None): # noqa: E501
|
|
56
|
+
"""V1RestartTiming - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._counter = None
|
|
58
|
+
self._end = None
|
|
59
|
+
self._start = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if counter is not None:
|
|
62
|
+
self.counter = counter
|
|
63
|
+
if end is not None:
|
|
64
|
+
self.end = end
|
|
65
|
+
if start is not None:
|
|
66
|
+
self.start = start
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def counter(self) -> 'int':
|
|
70
|
+
"""Gets the counter of this V1RestartTiming. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The counter of this V1RestartTiming. # noqa: E501
|
|
74
|
+
:rtype: int
|
|
75
|
+
"""
|
|
76
|
+
return self._counter
|
|
77
|
+
|
|
78
|
+
@counter.setter
|
|
79
|
+
def counter(self, counter: 'int'):
|
|
80
|
+
"""Sets the counter of this V1RestartTiming.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param counter: The counter of this V1RestartTiming. # noqa: E501
|
|
84
|
+
:type: int
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._counter = counter
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def end(self) -> 'datetime':
|
|
91
|
+
"""Gets the end of this V1RestartTiming. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The end of this V1RestartTiming. # noqa: E501
|
|
95
|
+
:rtype: datetime
|
|
96
|
+
"""
|
|
97
|
+
return self._end
|
|
98
|
+
|
|
99
|
+
@end.setter
|
|
100
|
+
def end(self, end: 'datetime'):
|
|
101
|
+
"""Sets the end of this V1RestartTiming.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param end: The end of this V1RestartTiming. # noqa: E501
|
|
105
|
+
:type: datetime
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._end = end
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def start(self) -> 'datetime':
|
|
112
|
+
"""Gets the start of this V1RestartTiming. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The start of this V1RestartTiming. # noqa: E501
|
|
116
|
+
:rtype: datetime
|
|
117
|
+
"""
|
|
118
|
+
return self._start
|
|
119
|
+
|
|
120
|
+
@start.setter
|
|
121
|
+
def start(self, start: 'datetime'):
|
|
122
|
+
"""Sets the start of this V1RestartTiming.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param start: The start of this V1RestartTiming. # noqa: E501
|
|
126
|
+
:type: datetime
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._start = start
|
|
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(V1RestartTiming, 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: 'V1RestartTiming') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1RestartTiming):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1RestartTiming') -> 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 V1SetupDataConnectionResponse(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
|
+
'gcp_setup': 'V1GcpDataConnectionSetup'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'gcp_setup': 'gcpSetup'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, gcp_setup: 'V1GcpDataConnectionSetup' =None): # noqa: E501
|
|
52
|
+
"""V1SetupDataConnectionResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._gcp_setup = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if gcp_setup is not None:
|
|
56
|
+
self.gcp_setup = gcp_setup
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def gcp_setup(self) -> 'V1GcpDataConnectionSetup':
|
|
60
|
+
"""Gets the gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
|
|
64
|
+
:rtype: V1GcpDataConnectionSetup
|
|
65
|
+
"""
|
|
66
|
+
return self._gcp_setup
|
|
67
|
+
|
|
68
|
+
@gcp_setup.setter
|
|
69
|
+
def gcp_setup(self, gcp_setup: 'V1GcpDataConnectionSetup'):
|
|
70
|
+
"""Sets the gcp_setup of this V1SetupDataConnectionResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param gcp_setup: The gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
|
|
74
|
+
:type: V1GcpDataConnectionSetup
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._gcp_setup = gcp_setup
|
|
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(V1SetupDataConnectionResponse, 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: 'V1SetupDataConnectionResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1SetupDataConnectionResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1SetupDataConnectionResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -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 V1UpdateDeploymentVisibilityResponse(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
|
+
"""V1UpdateDeploymentVisibilityResponse - 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(V1UpdateDeploymentVisibilityResponse, 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: 'V1UpdateDeploymentVisibilityResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1UpdateDeploymentVisibilityResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1UpdateDeploymentVisibilityResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py
CHANGED
|
@@ -41,14 +41,40 @@ class V1UpdateMetricsStreamVisibilityResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'visibility': 'V1ResourceVisibility'
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
attribute_map = {
|
|
48
|
+
'visibility': 'visibility'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
def __init__(self): # noqa: E501
|
|
51
|
+
def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
50
52
|
"""V1UpdateMetricsStreamVisibilityResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._visibility = None
|
|
51
54
|
self.discriminator = None
|
|
55
|
+
if visibility is not None:
|
|
56
|
+
self.visibility = visibility
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
60
|
+
"""Gets the visibility of this V1UpdateMetricsStreamVisibilityResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The visibility of this V1UpdateMetricsStreamVisibilityResponse. # noqa: E501
|
|
64
|
+
:rtype: V1ResourceVisibility
|
|
65
|
+
"""
|
|
66
|
+
return self._visibility
|
|
67
|
+
|
|
68
|
+
@visibility.setter
|
|
69
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
70
|
+
"""Sets the visibility of this V1UpdateMetricsStreamVisibilityResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param visibility: The visibility of this V1UpdateMetricsStreamVisibilityResponse. # noqa: E501
|
|
74
|
+
:type: V1ResourceVisibility
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._visibility = visibility
|
|
52
78
|
|
|
53
79
|
def to_dict(self) -> dict:
|
|
54
80
|
"""Returns the model properties as a dict"""
|
|
@@ -41,14 +41,40 @@ class V1UpdateModelVisibilityResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'visibility': 'V1ResourceVisibility'
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
attribute_map = {
|
|
48
|
+
'visibility': 'visibility'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
def __init__(self): # noqa: E501
|
|
51
|
+
def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
50
52
|
"""V1UpdateModelVisibilityResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._visibility = None
|
|
51
54
|
self.discriminator = None
|
|
55
|
+
if visibility is not None:
|
|
56
|
+
self.visibility = visibility
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
60
|
+
"""Gets the visibility of this V1UpdateModelVisibilityResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The visibility of this V1UpdateModelVisibilityResponse. # noqa: E501
|
|
64
|
+
:rtype: V1ResourceVisibility
|
|
65
|
+
"""
|
|
66
|
+
return self._visibility
|
|
67
|
+
|
|
68
|
+
@visibility.setter
|
|
69
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
70
|
+
"""Sets the visibility of this V1UpdateModelVisibilityResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param visibility: The visibility of this V1UpdateModelVisibilityResponse. # noqa: E501
|
|
74
|
+
:type: V1ResourceVisibility
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._visibility = visibility
|
|
52
78
|
|
|
53
79
|
def to_dict(self) -> dict:
|
|
54
80
|
"""Returns the model properties as a dict"""
|
|
@@ -61,7 +61,9 @@ class V1UserFeatures(object):
|
|
|
61
61
|
'deployment_alerts': 'bool',
|
|
62
62
|
'deployment_customize_api': 'bool',
|
|
63
63
|
'deployment_data_path': 'bool',
|
|
64
|
+
'deployment_multi_servers': 'bool',
|
|
64
65
|
'deployment_persistent_disk': 'bool',
|
|
66
|
+
'deployment_reservations': 'bool',
|
|
65
67
|
'deployment_version_upgrade': 'bool',
|
|
66
68
|
'deployment_version_visibility': 'bool',
|
|
67
69
|
'docs_agent': 'bool',
|
|
@@ -85,6 +87,7 @@ class V1UserFeatures(object):
|
|
|
85
87
|
'mmt_fault_tolerance': 'bool',
|
|
86
88
|
'mmt_strategy_selector': 'bool',
|
|
87
89
|
'mmt_v2': 'bool',
|
|
90
|
+
'multicloud_saas': 'bool',
|
|
88
91
|
'multiple_studio_versions': 'bool',
|
|
89
92
|
'org_level_member_permissions': 'bool',
|
|
90
93
|
'pipelines': 'bool',
|
|
@@ -146,7 +149,9 @@ class V1UserFeatures(object):
|
|
|
146
149
|
'deployment_alerts': 'deploymentAlerts',
|
|
147
150
|
'deployment_customize_api': 'deploymentCustomizeApi',
|
|
148
151
|
'deployment_data_path': 'deploymentDataPath',
|
|
152
|
+
'deployment_multi_servers': 'deploymentMultiServers',
|
|
149
153
|
'deployment_persistent_disk': 'deploymentPersistentDisk',
|
|
154
|
+
'deployment_reservations': 'deploymentReservations',
|
|
150
155
|
'deployment_version_upgrade': 'deploymentVersionUpgrade',
|
|
151
156
|
'deployment_version_visibility': 'deploymentVersionVisibility',
|
|
152
157
|
'docs_agent': 'docsAgent',
|
|
@@ -170,6 +175,7 @@ class V1UserFeatures(object):
|
|
|
170
175
|
'mmt_fault_tolerance': 'mmtFaultTolerance',
|
|
171
176
|
'mmt_strategy_selector': 'mmtStrategySelector',
|
|
172
177
|
'mmt_v2': 'mmtV2',
|
|
178
|
+
'multicloud_saas': 'multicloudSaas',
|
|
173
179
|
'multiple_studio_versions': 'multipleStudioVersions',
|
|
174
180
|
'org_level_member_permissions': 'orgLevelMemberPermissions',
|
|
175
181
|
'pipelines': 'pipelines',
|
|
@@ -210,7 +216,7 @@ class V1UserFeatures(object):
|
|
|
210
216
|
'writable_data_connections': 'writableDataConnections'
|
|
211
217
|
}
|
|
212
218
|
|
|
213
|
-
def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_alerts: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_upgrade: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, fair_share: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, instant_capacity_reservation: 'bool' =None, job_artifacts_v2: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, lambda_labs: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, mmt_v2: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, pipelines: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, security_docs: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snapshotter_service: 'bool' =None, snowflake_connection: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, trainium2: 'bool' =None, use_rclone_mounts_only: 'bool' =None, vultr: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
|
|
219
|
+
def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_alerts: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_multi_servers: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_reservations: 'bool' =None, deployment_version_upgrade: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, fair_share: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, instant_capacity_reservation: 'bool' =None, job_artifacts_v2: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, lambda_labs: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, mmt_v2: 'bool' =None, multicloud_saas: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, pipelines: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, security_docs: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snapshotter_service: 'bool' =None, snowflake_connection: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, trainium2: 'bool' =None, use_rclone_mounts_only: 'bool' =None, vultr: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
|
|
214
220
|
"""V1UserFeatures - a model defined in Swagger""" # noqa: E501
|
|
215
221
|
self._advanced_deployment_autoscaling = None
|
|
216
222
|
self._affiliate_links = None
|
|
@@ -232,7 +238,9 @@ class V1UserFeatures(object):
|
|
|
232
238
|
self._deployment_alerts = None
|
|
233
239
|
self._deployment_customize_api = None
|
|
234
240
|
self._deployment_data_path = None
|
|
241
|
+
self._deployment_multi_servers = None
|
|
235
242
|
self._deployment_persistent_disk = None
|
|
243
|
+
self._deployment_reservations = None
|
|
236
244
|
self._deployment_version_upgrade = None
|
|
237
245
|
self._deployment_version_visibility = None
|
|
238
246
|
self._docs_agent = None
|
|
@@ -256,6 +264,7 @@ class V1UserFeatures(object):
|
|
|
256
264
|
self._mmt_fault_tolerance = None
|
|
257
265
|
self._mmt_strategy_selector = None
|
|
258
266
|
self._mmt_v2 = None
|
|
267
|
+
self._multicloud_saas = None
|
|
259
268
|
self._multiple_studio_versions = None
|
|
260
269
|
self._org_level_member_permissions = None
|
|
261
270
|
self._pipelines = None
|
|
@@ -335,8 +344,12 @@ class V1UserFeatures(object):
|
|
|
335
344
|
self.deployment_customize_api = deployment_customize_api
|
|
336
345
|
if deployment_data_path is not None:
|
|
337
346
|
self.deployment_data_path = deployment_data_path
|
|
347
|
+
if deployment_multi_servers is not None:
|
|
348
|
+
self.deployment_multi_servers = deployment_multi_servers
|
|
338
349
|
if deployment_persistent_disk is not None:
|
|
339
350
|
self.deployment_persistent_disk = deployment_persistent_disk
|
|
351
|
+
if deployment_reservations is not None:
|
|
352
|
+
self.deployment_reservations = deployment_reservations
|
|
340
353
|
if deployment_version_upgrade is not None:
|
|
341
354
|
self.deployment_version_upgrade = deployment_version_upgrade
|
|
342
355
|
if deployment_version_visibility is not None:
|
|
@@ -383,6 +396,8 @@ class V1UserFeatures(object):
|
|
|
383
396
|
self.mmt_strategy_selector = mmt_strategy_selector
|
|
384
397
|
if mmt_v2 is not None:
|
|
385
398
|
self.mmt_v2 = mmt_v2
|
|
399
|
+
if multicloud_saas is not None:
|
|
400
|
+
self.multicloud_saas = multicloud_saas
|
|
386
401
|
if multiple_studio_versions is not None:
|
|
387
402
|
self.multiple_studio_versions = multiple_studio_versions
|
|
388
403
|
if org_level_member_permissions is not None:
|
|
@@ -880,6 +895,27 @@ class V1UserFeatures(object):
|
|
|
880
895
|
|
|
881
896
|
self._deployment_data_path = deployment_data_path
|
|
882
897
|
|
|
898
|
+
@property
|
|
899
|
+
def deployment_multi_servers(self) -> 'bool':
|
|
900
|
+
"""Gets the deployment_multi_servers of this V1UserFeatures. # noqa: E501
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
:return: The deployment_multi_servers of this V1UserFeatures. # noqa: E501
|
|
904
|
+
:rtype: bool
|
|
905
|
+
"""
|
|
906
|
+
return self._deployment_multi_servers
|
|
907
|
+
|
|
908
|
+
@deployment_multi_servers.setter
|
|
909
|
+
def deployment_multi_servers(self, deployment_multi_servers: 'bool'):
|
|
910
|
+
"""Sets the deployment_multi_servers of this V1UserFeatures.
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
:param deployment_multi_servers: The deployment_multi_servers of this V1UserFeatures. # noqa: E501
|
|
914
|
+
:type: bool
|
|
915
|
+
"""
|
|
916
|
+
|
|
917
|
+
self._deployment_multi_servers = deployment_multi_servers
|
|
918
|
+
|
|
883
919
|
@property
|
|
884
920
|
def deployment_persistent_disk(self) -> 'bool':
|
|
885
921
|
"""Gets the deployment_persistent_disk of this V1UserFeatures. # noqa: E501
|
|
@@ -901,6 +937,27 @@ class V1UserFeatures(object):
|
|
|
901
937
|
|
|
902
938
|
self._deployment_persistent_disk = deployment_persistent_disk
|
|
903
939
|
|
|
940
|
+
@property
|
|
941
|
+
def deployment_reservations(self) -> 'bool':
|
|
942
|
+
"""Gets the deployment_reservations of this V1UserFeatures. # noqa: E501
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
:return: The deployment_reservations of this V1UserFeatures. # noqa: E501
|
|
946
|
+
:rtype: bool
|
|
947
|
+
"""
|
|
948
|
+
return self._deployment_reservations
|
|
949
|
+
|
|
950
|
+
@deployment_reservations.setter
|
|
951
|
+
def deployment_reservations(self, deployment_reservations: 'bool'):
|
|
952
|
+
"""Sets the deployment_reservations of this V1UserFeatures.
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
:param deployment_reservations: The deployment_reservations of this V1UserFeatures. # noqa: E501
|
|
956
|
+
:type: bool
|
|
957
|
+
"""
|
|
958
|
+
|
|
959
|
+
self._deployment_reservations = deployment_reservations
|
|
960
|
+
|
|
904
961
|
@property
|
|
905
962
|
def deployment_version_upgrade(self) -> 'bool':
|
|
906
963
|
"""Gets the deployment_version_upgrade of this V1UserFeatures. # noqa: E501
|
|
@@ -1384,6 +1441,27 @@ class V1UserFeatures(object):
|
|
|
1384
1441
|
|
|
1385
1442
|
self._mmt_v2 = mmt_v2
|
|
1386
1443
|
|
|
1444
|
+
@property
|
|
1445
|
+
def multicloud_saas(self) -> 'bool':
|
|
1446
|
+
"""Gets the multicloud_saas of this V1UserFeatures. # noqa: E501
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
:return: The multicloud_saas of this V1UserFeatures. # noqa: E501
|
|
1450
|
+
:rtype: bool
|
|
1451
|
+
"""
|
|
1452
|
+
return self._multicloud_saas
|
|
1453
|
+
|
|
1454
|
+
@multicloud_saas.setter
|
|
1455
|
+
def multicloud_saas(self, multicloud_saas: 'bool'):
|
|
1456
|
+
"""Sets the multicloud_saas of this V1UserFeatures.
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
:param multicloud_saas: The multicloud_saas of this V1UserFeatures. # noqa: E501
|
|
1460
|
+
:type: bool
|
|
1461
|
+
"""
|
|
1462
|
+
|
|
1463
|
+
self._multicloud_saas = multicloud_saas
|
|
1464
|
+
|
|
1387
1465
|
@property
|
|
1388
1466
|
def multiple_studio_versions(self) -> 'bool':
|
|
1389
1467
|
"""Gets the multiple_studio_versions of this V1UserFeatures. # noqa: E501
|