lightning-sdk 0.1.50__py3-none-any.whl → 0.1.53__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/ai_hub.py +16 -27
- lightning_sdk/api/ai_hub_api.py +7 -1
- lightning_sdk/api/job_api.py +12 -7
- lightning_sdk/api/lit_container_api.py +24 -7
- lightning_sdk/api/mmt_api.py +12 -7
- lightning_sdk/api/utils.py +52 -0
- lightning_sdk/cli/run.py +65 -18
- lightning_sdk/cli/serve.py +1 -5
- lightning_sdk/cli/upload.py +33 -15
- lightning_sdk/helpers.py +1 -1
- lightning_sdk/job/base.py +28 -1
- lightning_sdk/job/job.py +27 -25
- lightning_sdk/job/v1.py +6 -2
- lightning_sdk/job/v2.py +12 -12
- lightning_sdk/lightning_cloud/login.py +4 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +17 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +17 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +128 -76
- lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
- lightning_sdk/mmt/base.py +36 -26
- lightning_sdk/mmt/mmt.py +28 -26
- lightning_sdk/mmt/v1.py +4 -1
- lightning_sdk/mmt/v2.py +14 -13
- lightning_sdk/models.py +5 -4
- lightning_sdk/studio.py +68 -1
- lightning_sdk/utils/resolve.py +7 -0
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/METADATA +2 -2
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/RECORD +69 -52
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
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 V1ClusterUsageRestriction(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
|
+
'id': 'str',
|
|
46
|
+
'instance_type': 'str',
|
|
47
|
+
'max_instances': 'int',
|
|
48
|
+
'restriction_type': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'cluster_id': 'clusterId',
|
|
53
|
+
'id': 'id',
|
|
54
|
+
'instance_type': 'instanceType',
|
|
55
|
+
'max_instances': 'maxInstances',
|
|
56
|
+
'restriction_type': 'restrictionType'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, id: 'str' =None, instance_type: 'str' =None, max_instances: 'int' =None, restriction_type: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1ClusterUsageRestriction - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._cluster_id = None
|
|
62
|
+
self._id = None
|
|
63
|
+
self._instance_type = None
|
|
64
|
+
self._max_instances = None
|
|
65
|
+
self._restriction_type = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if cluster_id is not None:
|
|
68
|
+
self.cluster_id = cluster_id
|
|
69
|
+
if id is not None:
|
|
70
|
+
self.id = id
|
|
71
|
+
if instance_type is not None:
|
|
72
|
+
self.instance_type = instance_type
|
|
73
|
+
if max_instances is not None:
|
|
74
|
+
self.max_instances = max_instances
|
|
75
|
+
if restriction_type is not None:
|
|
76
|
+
self.restriction_type = restriction_type
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cluster_id(self) -> 'str':
|
|
80
|
+
"""Gets the cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._cluster_id
|
|
87
|
+
|
|
88
|
+
@cluster_id.setter
|
|
89
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
90
|
+
"""Sets the cluster_id of this V1ClusterUsageRestriction.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param cluster_id: The cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._cluster_id = cluster_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def id(self) -> 'str':
|
|
101
|
+
"""Gets the id of this V1ClusterUsageRestriction. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The id of this V1ClusterUsageRestriction. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._id
|
|
108
|
+
|
|
109
|
+
@id.setter
|
|
110
|
+
def id(self, id: 'str'):
|
|
111
|
+
"""Sets the id of this V1ClusterUsageRestriction.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param id: The id of this V1ClusterUsageRestriction. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._id = id
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def instance_type(self) -> 'str':
|
|
122
|
+
"""Gets the instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._instance_type
|
|
129
|
+
|
|
130
|
+
@instance_type.setter
|
|
131
|
+
def instance_type(self, instance_type: 'str'):
|
|
132
|
+
"""Sets the instance_type of this V1ClusterUsageRestriction.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param instance_type: The instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._instance_type = instance_type
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def max_instances(self) -> 'int':
|
|
143
|
+
"""Gets the max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
147
|
+
:rtype: int
|
|
148
|
+
"""
|
|
149
|
+
return self._max_instances
|
|
150
|
+
|
|
151
|
+
@max_instances.setter
|
|
152
|
+
def max_instances(self, max_instances: 'int'):
|
|
153
|
+
"""Sets the max_instances of this V1ClusterUsageRestriction.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param max_instances: The max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
157
|
+
:type: int
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._max_instances = max_instances
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def restriction_type(self) -> 'str':
|
|
164
|
+
"""Gets the restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._restriction_type
|
|
171
|
+
|
|
172
|
+
@restriction_type.setter
|
|
173
|
+
def restriction_type(self, restriction_type: 'str'):
|
|
174
|
+
"""Sets the restriction_type of this V1ClusterUsageRestriction.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param restriction_type: The restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._restriction_type = restriction_type
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(V1ClusterUsageRestriction, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'V1ClusterUsageRestriction') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1ClusterUsageRestriction):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1ClusterUsageRestriction') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -0,0 +1,102 @@
|
|
|
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 V1ContactAssistantOwnerReason(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
|
+
BUG = "BUG"
|
|
41
|
+
"""
|
|
42
|
+
Attributes:
|
|
43
|
+
swagger_types (dict): The key is attribute name
|
|
44
|
+
and the value is attribute type.
|
|
45
|
+
attribute_map (dict): The key is attribute name
|
|
46
|
+
and the value is json key in definition.
|
|
47
|
+
"""
|
|
48
|
+
swagger_types = {
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
def __init__(self): # noqa: E501
|
|
55
|
+
"""V1ContactAssistantOwnerReason - a model defined in Swagger""" # noqa: E501
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> dict:
|
|
59
|
+
"""Returns the model properties as a dict"""
|
|
60
|
+
result = {}
|
|
61
|
+
|
|
62
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
63
|
+
value = getattr(self, attr)
|
|
64
|
+
if isinstance(value, list):
|
|
65
|
+
result[attr] = list(map(
|
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
67
|
+
value
|
|
68
|
+
))
|
|
69
|
+
elif hasattr(value, "to_dict"):
|
|
70
|
+
result[attr] = value.to_dict()
|
|
71
|
+
elif isinstance(value, dict):
|
|
72
|
+
result[attr] = dict(map(
|
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
|
75
|
+
value.items()
|
|
76
|
+
))
|
|
77
|
+
else:
|
|
78
|
+
result[attr] = value
|
|
79
|
+
if issubclass(V1ContactAssistantOwnerReason, dict):
|
|
80
|
+
for key, value in self.items():
|
|
81
|
+
result[key] = value
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def to_str(self) -> str:
|
|
86
|
+
"""Returns the string representation of the model"""
|
|
87
|
+
return pprint.pformat(self.to_dict())
|
|
88
|
+
|
|
89
|
+
def __repr__(self) -> str:
|
|
90
|
+
"""For `print` and `pprint`"""
|
|
91
|
+
return self.to_str()
|
|
92
|
+
|
|
93
|
+
def __eq__(self, other: 'V1ContactAssistantOwnerReason') -> bool:
|
|
94
|
+
"""Returns true if both objects are equal"""
|
|
95
|
+
if not isinstance(other, V1ContactAssistantOwnerReason):
|
|
96
|
+
return False
|
|
97
|
+
|
|
98
|
+
return self.__dict__ == other.__dict__
|
|
99
|
+
|
|
100
|
+
def __ne__(self, other: 'V1ContactAssistantOwnerReason') -> bool:
|
|
101
|
+
"""Returns true if both objects are not equal"""
|
|
102
|
+
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 V1ContactAssistantOwnerResponse(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
|
+
"""V1ContactAssistantOwnerResponse - 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(V1ContactAssistantOwnerResponse, 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: 'V1ContactAssistantOwnerResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ContactAssistantOwnerResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ContactAssistantOwnerResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
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 V1DeleteClusterUsageRestrictionResponse(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
|
+
"""V1DeleteClusterUsageRestrictionResponse - 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(V1DeleteClusterUsageRestrictionResponse, 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: 'V1DeleteClusterUsageRestrictionResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteClusterUsageRestrictionResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteClusterUsageRestrictionResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -45,6 +45,7 @@ class V1Deployment(object):
|
|
|
45
45
|
'autoscaling': 'V1AutoscalingSpec',
|
|
46
46
|
'cloudspace_id': 'str',
|
|
47
47
|
'created_at': 'datetime',
|
|
48
|
+
'debug': 'bool',
|
|
48
49
|
'desired_state': 'V1DeploymentState',
|
|
49
50
|
'endpoint': 'V1Endpoint',
|
|
50
51
|
'id': 'str',
|
|
@@ -68,6 +69,7 @@ class V1Deployment(object):
|
|
|
68
69
|
'autoscaling': 'autoscaling',
|
|
69
70
|
'cloudspace_id': 'cloudspaceId',
|
|
70
71
|
'created_at': 'createdAt',
|
|
72
|
+
'debug': 'debug',
|
|
71
73
|
'desired_state': 'desiredState',
|
|
72
74
|
'endpoint': 'endpoint',
|
|
73
75
|
'id': 'id',
|
|
@@ -86,12 +88,13 @@ class V1Deployment(object):
|
|
|
86
88
|
'user_id': 'userId'
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
91
|
+
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
90
92
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
91
93
|
self._apis = None
|
|
92
94
|
self._autoscaling = None
|
|
93
95
|
self._cloudspace_id = None
|
|
94
96
|
self._created_at = None
|
|
97
|
+
self._debug = None
|
|
95
98
|
self._desired_state = None
|
|
96
99
|
self._endpoint = None
|
|
97
100
|
self._id = None
|
|
@@ -117,6 +120,8 @@ class V1Deployment(object):
|
|
|
117
120
|
self.cloudspace_id = cloudspace_id
|
|
118
121
|
if created_at is not None:
|
|
119
122
|
self.created_at = created_at
|
|
123
|
+
if debug is not None:
|
|
124
|
+
self.debug = debug
|
|
120
125
|
if desired_state is not None:
|
|
121
126
|
self.desired_state = desired_state
|
|
122
127
|
if endpoint is not None:
|
|
@@ -234,6 +239,27 @@ class V1Deployment(object):
|
|
|
234
239
|
|
|
235
240
|
self._created_at = created_at
|
|
236
241
|
|
|
242
|
+
@property
|
|
243
|
+
def debug(self) -> 'bool':
|
|
244
|
+
"""Gets the debug of this V1Deployment. # noqa: E501
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:return: The debug of this V1Deployment. # noqa: E501
|
|
248
|
+
:rtype: bool
|
|
249
|
+
"""
|
|
250
|
+
return self._debug
|
|
251
|
+
|
|
252
|
+
@debug.setter
|
|
253
|
+
def debug(self, debug: 'bool'):
|
|
254
|
+
"""Sets the debug of this V1Deployment.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
:param debug: The debug of this V1Deployment. # noqa: E501
|
|
258
|
+
:type: bool
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
self._debug = debug
|
|
262
|
+
|
|
237
263
|
@property
|
|
238
264
|
def desired_state(self) -> 'V1DeploymentState':
|
|
239
265
|
"""Gets the desired_state of this V1Deployment. # noqa: E501
|
|
@@ -42,7 +42,9 @@ class V1DeploymentAPI(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'body': 'V1Body',
|
|
45
|
+
'description': 'str',
|
|
45
46
|
'headers': 'list[V1Header]',
|
|
47
|
+
'id': 'str',
|
|
46
48
|
'method': 'str',
|
|
47
49
|
'name': 'str',
|
|
48
50
|
'path': 'str',
|
|
@@ -51,17 +53,21 @@ class V1DeploymentAPI(object):
|
|
|
51
53
|
|
|
52
54
|
attribute_map = {
|
|
53
55
|
'body': 'body',
|
|
56
|
+
'description': 'description',
|
|
54
57
|
'headers': 'headers',
|
|
58
|
+
'id': 'id',
|
|
55
59
|
'method': 'method',
|
|
56
60
|
'name': 'name',
|
|
57
61
|
'path': 'path',
|
|
58
62
|
'_query_params': 'queryParams'
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
def __init__(self, body: 'V1Body' =None, headers: 'list[V1Header]' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
65
|
+
def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, id: 'str' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
62
66
|
"""V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
|
|
63
67
|
self._body = None
|
|
68
|
+
self._description = None
|
|
64
69
|
self._headers = None
|
|
70
|
+
self._id = None
|
|
65
71
|
self._method = None
|
|
66
72
|
self._name = None
|
|
67
73
|
self._path = None
|
|
@@ -69,8 +75,12 @@ class V1DeploymentAPI(object):
|
|
|
69
75
|
self.discriminator = None
|
|
70
76
|
if body is not None:
|
|
71
77
|
self.body = body
|
|
78
|
+
if description is not None:
|
|
79
|
+
self.description = description
|
|
72
80
|
if headers is not None:
|
|
73
81
|
self.headers = headers
|
|
82
|
+
if id is not None:
|
|
83
|
+
self.id = id
|
|
74
84
|
if method is not None:
|
|
75
85
|
self.method = method
|
|
76
86
|
if name is not None:
|
|
@@ -101,6 +111,27 @@ class V1DeploymentAPI(object):
|
|
|
101
111
|
|
|
102
112
|
self._body = body
|
|
103
113
|
|
|
114
|
+
@property
|
|
115
|
+
def description(self) -> 'str':
|
|
116
|
+
"""Gets the description of this V1DeploymentAPI. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The description of this V1DeploymentAPI. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._description
|
|
123
|
+
|
|
124
|
+
@description.setter
|
|
125
|
+
def description(self, description: 'str'):
|
|
126
|
+
"""Sets the description of this V1DeploymentAPI.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param description: The description of this V1DeploymentAPI. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._description = description
|
|
134
|
+
|
|
104
135
|
@property
|
|
105
136
|
def headers(self) -> 'list[V1Header]':
|
|
106
137
|
"""Gets the headers of this V1DeploymentAPI. # noqa: E501
|
|
@@ -122,6 +153,27 @@ class V1DeploymentAPI(object):
|
|
|
122
153
|
|
|
123
154
|
self._headers = headers
|
|
124
155
|
|
|
156
|
+
@property
|
|
157
|
+
def id(self) -> 'str':
|
|
158
|
+
"""Gets the id of this V1DeploymentAPI. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The id of this V1DeploymentAPI. # noqa: E501
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._id
|
|
165
|
+
|
|
166
|
+
@id.setter
|
|
167
|
+
def id(self, id: 'str'):
|
|
168
|
+
"""Sets the id of this V1DeploymentAPI.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param id: The id of this V1DeploymentAPI. # noqa: E501
|
|
172
|
+
:type: str
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._id = id
|
|
176
|
+
|
|
125
177
|
@property
|
|
126
178
|
def method(self) -> 'str':
|
|
127
179
|
"""Gets the method of this V1DeploymentAPI. # noqa: E501
|