lightning-sdk 0.1.40__py3-none-any.whl → 0.1.42__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 +8 -3
- lightning_sdk/api/ai_hub_api.py +3 -3
- lightning_sdk/api/deployment_api.py +6 -6
- lightning_sdk/api/job_api.py +32 -6
- lightning_sdk/api/mmt_api.py +60 -19
- lightning_sdk/api/studio_api.py +37 -19
- lightning_sdk/api/teamspace_api.py +34 -29
- lightning_sdk/api/utils.py +48 -35
- lightning_sdk/cli/ai_hub.py +3 -3
- lightning_sdk/cli/entrypoint.py +3 -1
- lightning_sdk/cli/mmt.py +11 -10
- lightning_sdk/cli/run.py +9 -8
- lightning_sdk/cli/serve.py +130 -0
- lightning_sdk/deployment/deployment.py +18 -12
- lightning_sdk/job/base.py +118 -24
- lightning_sdk/job/job.py +87 -9
- lightning_sdk/job/v1.py +75 -18
- lightning_sdk/job/v2.py +51 -15
- lightning_sdk/job/work.py +36 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +13 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +215 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +218 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +21 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +13 -0
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +15 -67
- lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +29 -81
- lightning_sdk/lightning_cloud/openapi/models/snowflake_query_body.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +29 -81
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_trainium_system_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +41 -67
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/mmt/__init__.py +3 -0
- lightning_sdk/{_mmt → mmt}/base.py +20 -14
- lightning_sdk/{_mmt → mmt}/mmt.py +46 -17
- lightning_sdk/mmt/v1.py +129 -0
- lightning_sdk/{_mmt → mmt}/v2.py +16 -21
- lightning_sdk/plugin.py +43 -16
- lightning_sdk/services/file_endpoint.py +11 -5
- lightning_sdk/studio.py +16 -9
- lightning_sdk/teamspace.py +26 -14
- lightning_sdk/utils/resolve.py +18 -0
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/METADATA +3 -1
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/RECORD +80 -66
- lightning_sdk/_mmt/__init__.py +0 -3
- lightning_sdk/_mmt/v1.py +0 -69
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.40.dist-info → lightning_sdk-0.1.42.dist-info}/top_level.txt +0 -0
|
@@ -41,85 +41,54 @@ class SnowflakeExportBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'account': 'str',
|
|
45
44
|
'cluster_id': 'str',
|
|
46
45
|
'compress': 'bool',
|
|
47
46
|
'connection_id': 'str',
|
|
47
|
+
'credential_id': 'str',
|
|
48
48
|
'format': 'str',
|
|
49
49
|
'include_header': 'bool',
|
|
50
|
-
'password': 'str',
|
|
51
50
|
'query': 'str',
|
|
52
|
-
'query_name': 'str'
|
|
53
|
-
'username': 'str'
|
|
51
|
+
'query_name': 'str'
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
attribute_map = {
|
|
57
|
-
'account': 'account',
|
|
58
55
|
'cluster_id': 'clusterId',
|
|
59
56
|
'compress': 'compress',
|
|
60
57
|
'connection_id': 'connectionId',
|
|
58
|
+
'credential_id': 'credentialId',
|
|
61
59
|
'format': 'format',
|
|
62
60
|
'include_header': 'includeHeader',
|
|
63
|
-
'password': 'password',
|
|
64
61
|
'query': 'query',
|
|
65
|
-
'query_name': 'queryName'
|
|
66
|
-
'username': 'username'
|
|
62
|
+
'query_name': 'queryName'
|
|
67
63
|
}
|
|
68
64
|
|
|
69
|
-
def __init__(self,
|
|
65
|
+
def __init__(self, cluster_id: 'str' =None, compress: 'bool' =None, connection_id: 'str' =None, credential_id: 'str' =None, format: 'str' =None, include_header: 'bool' =None, query: 'str' =None, query_name: 'str' =None): # noqa: E501
|
|
70
66
|
"""SnowflakeExportBody - a model defined in Swagger""" # noqa: E501
|
|
71
|
-
self._account = None
|
|
72
67
|
self._cluster_id = None
|
|
73
68
|
self._compress = None
|
|
74
69
|
self._connection_id = None
|
|
70
|
+
self._credential_id = None
|
|
75
71
|
self._format = None
|
|
76
72
|
self._include_header = None
|
|
77
|
-
self._password = None
|
|
78
73
|
self._query = None
|
|
79
74
|
self._query_name = None
|
|
80
|
-
self._username = None
|
|
81
75
|
self.discriminator = None
|
|
82
|
-
if account is not None:
|
|
83
|
-
self.account = account
|
|
84
76
|
if cluster_id is not None:
|
|
85
77
|
self.cluster_id = cluster_id
|
|
86
78
|
if compress is not None:
|
|
87
79
|
self.compress = compress
|
|
88
80
|
if connection_id is not None:
|
|
89
81
|
self.connection_id = connection_id
|
|
82
|
+
if credential_id is not None:
|
|
83
|
+
self.credential_id = credential_id
|
|
90
84
|
if format is not None:
|
|
91
85
|
self.format = format
|
|
92
86
|
if include_header is not None:
|
|
93
87
|
self.include_header = include_header
|
|
94
|
-
if password is not None:
|
|
95
|
-
self.password = password
|
|
96
88
|
if query is not None:
|
|
97
89
|
self.query = query
|
|
98
90
|
if query_name is not None:
|
|
99
91
|
self.query_name = query_name
|
|
100
|
-
if username is not None:
|
|
101
|
-
self.username = username
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def account(self) -> 'str':
|
|
105
|
-
"""Gets the account of this SnowflakeExportBody. # noqa: E501
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
:return: The account of this SnowflakeExportBody. # noqa: E501
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._account
|
|
112
|
-
|
|
113
|
-
@account.setter
|
|
114
|
-
def account(self, account: 'str'):
|
|
115
|
-
"""Sets the account of this SnowflakeExportBody.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
:param account: The account of this SnowflakeExportBody. # noqa: E501
|
|
119
|
-
:type: str
|
|
120
|
-
"""
|
|
121
|
-
|
|
122
|
-
self._account = account
|
|
123
92
|
|
|
124
93
|
@property
|
|
125
94
|
def cluster_id(self) -> 'str':
|
|
@@ -184,6 +153,27 @@ class SnowflakeExportBody(object):
|
|
|
184
153
|
|
|
185
154
|
self._connection_id = connection_id
|
|
186
155
|
|
|
156
|
+
@property
|
|
157
|
+
def credential_id(self) -> 'str':
|
|
158
|
+
"""Gets the credential_id of this SnowflakeExportBody. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The credential_id of this SnowflakeExportBody. # noqa: E501
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._credential_id
|
|
165
|
+
|
|
166
|
+
@credential_id.setter
|
|
167
|
+
def credential_id(self, credential_id: 'str'):
|
|
168
|
+
"""Sets the credential_id of this SnowflakeExportBody.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param credential_id: The credential_id of this SnowflakeExportBody. # noqa: E501
|
|
172
|
+
:type: str
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._credential_id = credential_id
|
|
176
|
+
|
|
187
177
|
@property
|
|
188
178
|
def format(self) -> 'str':
|
|
189
179
|
"""Gets the format of this SnowflakeExportBody. # noqa: E501
|
|
@@ -226,27 +216,6 @@ class SnowflakeExportBody(object):
|
|
|
226
216
|
|
|
227
217
|
self._include_header = include_header
|
|
228
218
|
|
|
229
|
-
@property
|
|
230
|
-
def password(self) -> 'str':
|
|
231
|
-
"""Gets the password of this SnowflakeExportBody. # noqa: E501
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
:return: The password of this SnowflakeExportBody. # noqa: E501
|
|
235
|
-
:rtype: str
|
|
236
|
-
"""
|
|
237
|
-
return self._password
|
|
238
|
-
|
|
239
|
-
@password.setter
|
|
240
|
-
def password(self, password: 'str'):
|
|
241
|
-
"""Sets the password of this SnowflakeExportBody.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
:param password: The password of this SnowflakeExportBody. # noqa: E501
|
|
245
|
-
:type: str
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
self._password = password
|
|
249
|
-
|
|
250
219
|
@property
|
|
251
220
|
def query(self) -> 'str':
|
|
252
221
|
"""Gets the query of this SnowflakeExportBody. # noqa: E501
|
|
@@ -289,27 +258,6 @@ class SnowflakeExportBody(object):
|
|
|
289
258
|
|
|
290
259
|
self._query_name = query_name
|
|
291
260
|
|
|
292
|
-
@property
|
|
293
|
-
def username(self) -> 'str':
|
|
294
|
-
"""Gets the username of this SnowflakeExportBody. # noqa: E501
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
:return: The username of this SnowflakeExportBody. # noqa: E501
|
|
298
|
-
:rtype: str
|
|
299
|
-
"""
|
|
300
|
-
return self._username
|
|
301
|
-
|
|
302
|
-
@username.setter
|
|
303
|
-
def username(self, username: 'str'):
|
|
304
|
-
"""Sets the username of this SnowflakeExportBody.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
:param username: The username of this SnowflakeExportBody. # noqa: E501
|
|
308
|
-
:type: str
|
|
309
|
-
"""
|
|
310
|
-
|
|
311
|
-
self._username = username
|
|
312
|
-
|
|
313
261
|
def to_dict(self) -> dict:
|
|
314
262
|
"""Returns the model properties as a dict"""
|
|
315
263
|
result = {}
|
|
@@ -41,60 +41,29 @@ class SnowflakeQueryBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'account': 'str',
|
|
45
44
|
'connection_id': 'str',
|
|
46
|
-
'
|
|
47
|
-
'query': 'str'
|
|
48
|
-
'username': 'str'
|
|
45
|
+
'credential_id': 'str',
|
|
46
|
+
'query': 'str'
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
attribute_map = {
|
|
52
|
-
'account': 'account',
|
|
53
50
|
'connection_id': 'connectionId',
|
|
54
|
-
'
|
|
55
|
-
'query': 'query'
|
|
56
|
-
'username': 'username'
|
|
51
|
+
'credential_id': 'credentialId',
|
|
52
|
+
'query': 'query'
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
def __init__(self,
|
|
55
|
+
def __init__(self, connection_id: 'str' =None, credential_id: 'str' =None, query: 'str' =None): # noqa: E501
|
|
60
56
|
"""SnowflakeQueryBody - a model defined in Swagger""" # noqa: E501
|
|
61
|
-
self._account = None
|
|
62
57
|
self._connection_id = None
|
|
63
|
-
self.
|
|
58
|
+
self._credential_id = None
|
|
64
59
|
self._query = None
|
|
65
|
-
self._username = None
|
|
66
60
|
self.discriminator = None
|
|
67
|
-
if account is not None:
|
|
68
|
-
self.account = account
|
|
69
61
|
if connection_id is not None:
|
|
70
62
|
self.connection_id = connection_id
|
|
71
|
-
if
|
|
72
|
-
self.
|
|
63
|
+
if credential_id is not None:
|
|
64
|
+
self.credential_id = credential_id
|
|
73
65
|
if query is not None:
|
|
74
66
|
self.query = query
|
|
75
|
-
if username is not None:
|
|
76
|
-
self.username = username
|
|
77
|
-
|
|
78
|
-
@property
|
|
79
|
-
def account(self) -> 'str':
|
|
80
|
-
"""Gets the account of this SnowflakeQueryBody. # noqa: E501
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:return: The account of this SnowflakeQueryBody. # noqa: E501
|
|
84
|
-
:rtype: str
|
|
85
|
-
"""
|
|
86
|
-
return self._account
|
|
87
|
-
|
|
88
|
-
@account.setter
|
|
89
|
-
def account(self, account: 'str'):
|
|
90
|
-
"""Sets the account of this SnowflakeQueryBody.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:param account: The account of this SnowflakeQueryBody. # noqa: E501
|
|
94
|
-
:type: str
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
self._account = account
|
|
98
67
|
|
|
99
68
|
@property
|
|
100
69
|
def connection_id(self) -> 'str':
|
|
@@ -118,25 +87,25 @@ class SnowflakeQueryBody(object):
|
|
|
118
87
|
self._connection_id = connection_id
|
|
119
88
|
|
|
120
89
|
@property
|
|
121
|
-
def
|
|
122
|
-
"""Gets the
|
|
90
|
+
def credential_id(self) -> 'str':
|
|
91
|
+
"""Gets the credential_id of this SnowflakeQueryBody. # noqa: E501
|
|
123
92
|
|
|
124
93
|
|
|
125
|
-
:return: The
|
|
94
|
+
:return: The credential_id of this SnowflakeQueryBody. # noqa: E501
|
|
126
95
|
:rtype: str
|
|
127
96
|
"""
|
|
128
|
-
return self.
|
|
97
|
+
return self._credential_id
|
|
129
98
|
|
|
130
|
-
@
|
|
131
|
-
def
|
|
132
|
-
"""Sets the
|
|
99
|
+
@credential_id.setter
|
|
100
|
+
def credential_id(self, credential_id: 'str'):
|
|
101
|
+
"""Sets the credential_id of this SnowflakeQueryBody.
|
|
133
102
|
|
|
134
103
|
|
|
135
|
-
:param
|
|
104
|
+
:param credential_id: The credential_id of this SnowflakeQueryBody. # noqa: E501
|
|
136
105
|
:type: str
|
|
137
106
|
"""
|
|
138
107
|
|
|
139
|
-
self.
|
|
108
|
+
self._credential_id = credential_id
|
|
140
109
|
|
|
141
110
|
@property
|
|
142
111
|
def query(self) -> 'str':
|
|
@@ -159,27 +128,6 @@ class SnowflakeQueryBody(object):
|
|
|
159
128
|
|
|
160
129
|
self._query = query
|
|
161
130
|
|
|
162
|
-
@property
|
|
163
|
-
def username(self) -> 'str':
|
|
164
|
-
"""Gets the username of this SnowflakeQueryBody. # noqa: E501
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
:return: The username of this SnowflakeQueryBody. # noqa: E501
|
|
168
|
-
:rtype: str
|
|
169
|
-
"""
|
|
170
|
-
return self._username
|
|
171
|
-
|
|
172
|
-
@username.setter
|
|
173
|
-
def username(self, username: 'str'):
|
|
174
|
-
"""Sets the username of this SnowflakeQueryBody.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:param username: The username of this SnowflakeQueryBody. # noqa: E501
|
|
178
|
-
:type: str
|
|
179
|
-
"""
|
|
180
|
-
|
|
181
|
-
self._username = username
|
|
182
|
-
|
|
183
131
|
def to_dict(self) -> dict:
|
|
184
132
|
"""Returns the model properties as a dict"""
|
|
185
133
|
result = {}
|
|
@@ -42,6 +42,7 @@ class V1DeploymentAPI(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'body': 'V1Body',
|
|
45
|
+
'headers': 'list[V1Header]',
|
|
45
46
|
'method': 'str',
|
|
46
47
|
'path': 'str',
|
|
47
48
|
'_query_params': 'list[V1QueryParam]'
|
|
@@ -49,20 +50,24 @@ class V1DeploymentAPI(object):
|
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'body': 'body',
|
|
53
|
+
'headers': 'headers',
|
|
52
54
|
'method': 'method',
|
|
53
55
|
'path': 'path',
|
|
54
56
|
'_query_params': 'queryParams'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, body: 'V1Body' =None, method: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
59
|
+
def __init__(self, body: 'V1Body' =None, headers: 'list[V1Header]' =None, method: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
58
60
|
"""V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._body = None
|
|
62
|
+
self._headers = None
|
|
60
63
|
self._method = None
|
|
61
64
|
self._path = None
|
|
62
65
|
self.__query_params = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if body is not None:
|
|
65
68
|
self.body = body
|
|
69
|
+
if headers is not None:
|
|
70
|
+
self.headers = headers
|
|
66
71
|
if method is not None:
|
|
67
72
|
self.method = method
|
|
68
73
|
if path is not None:
|
|
@@ -91,6 +96,27 @@ class V1DeploymentAPI(object):
|
|
|
91
96
|
|
|
92
97
|
self._body = body
|
|
93
98
|
|
|
99
|
+
@property
|
|
100
|
+
def headers(self) -> 'list[V1Header]':
|
|
101
|
+
"""Gets the headers of this V1DeploymentAPI. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The headers of this V1DeploymentAPI. # noqa: E501
|
|
105
|
+
:rtype: list[V1Header]
|
|
106
|
+
"""
|
|
107
|
+
return self._headers
|
|
108
|
+
|
|
109
|
+
@headers.setter
|
|
110
|
+
def headers(self, headers: 'list[V1Header]'):
|
|
111
|
+
"""Sets the headers of this V1DeploymentAPI.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param headers: The headers of this V1DeploymentAPI. # noqa: E501
|
|
115
|
+
:type: list[V1Header]
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._headers = headers
|
|
119
|
+
|
|
94
120
|
@property
|
|
95
121
|
def method(self) -> 'str':
|
|
96
122
|
"""Gets the method of this V1DeploymentAPI. # noqa: E501
|
|
@@ -41,23 +41,28 @@ class V1DeploymentSpec(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'apis': 'list[V1DeploymentAPI]',
|
|
44
45
|
'autoscaling': 'V1AutoscalingSpec',
|
|
45
46
|
'endpoint': 'V1Endpoint',
|
|
46
47
|
'job': 'V1JobSpec'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
51
|
+
'apis': 'apis',
|
|
50
52
|
'autoscaling': 'autoscaling',
|
|
51
53
|
'endpoint': 'endpoint',
|
|
52
54
|
'job': 'job'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, endpoint: 'V1Endpoint' =None, job: 'V1JobSpec' =None): # noqa: E501
|
|
57
|
+
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, endpoint: 'V1Endpoint' =None, job: 'V1JobSpec' =None): # noqa: E501
|
|
56
58
|
"""V1DeploymentSpec - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._apis = None
|
|
57
60
|
self._autoscaling = None
|
|
58
61
|
self._endpoint = None
|
|
59
62
|
self._job = None
|
|
60
63
|
self.discriminator = None
|
|
64
|
+
if apis is not None:
|
|
65
|
+
self.apis = apis
|
|
61
66
|
if autoscaling is not None:
|
|
62
67
|
self.autoscaling = autoscaling
|
|
63
68
|
if endpoint is not None:
|
|
@@ -65,6 +70,27 @@ class V1DeploymentSpec(object):
|
|
|
65
70
|
if job is not None:
|
|
66
71
|
self.job = job
|
|
67
72
|
|
|
73
|
+
@property
|
|
74
|
+
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
75
|
+
"""Gets the apis of this V1DeploymentSpec. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The apis of this V1DeploymentSpec. # noqa: E501
|
|
79
|
+
:rtype: list[V1DeploymentAPI]
|
|
80
|
+
"""
|
|
81
|
+
return self._apis
|
|
82
|
+
|
|
83
|
+
@apis.setter
|
|
84
|
+
def apis(self, apis: 'list[V1DeploymentAPI]'):
|
|
85
|
+
"""Sets the apis of this V1DeploymentSpec.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param apis: The apis of this V1DeploymentSpec. # noqa: E501
|
|
89
|
+
:type: list[V1DeploymentAPI]
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._apis = apis
|
|
93
|
+
|
|
68
94
|
@property
|
|
69
95
|
def autoscaling(self) -> 'V1AutoscalingSpec':
|
|
70
96
|
"""Gets the autoscaling of this V1DeploymentSpec. # noqa: E501
|
|
@@ -41,25 +41,51 @@ class V1GetModelFileUrlResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'filepath': 'str',
|
|
44
45
|
'size': 'str',
|
|
45
46
|
'url': 'str'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
50
|
+
'filepath': 'filepath',
|
|
49
51
|
'size': 'size',
|
|
50
52
|
'url': 'url'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, size: 'str' =None, url: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, filepath: 'str' =None, size: 'str' =None, url: 'str' =None): # noqa: E501
|
|
54
56
|
"""V1GetModelFileUrlResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._filepath = None
|
|
55
58
|
self._size = None
|
|
56
59
|
self._url = None
|
|
57
60
|
self.discriminator = None
|
|
61
|
+
if filepath is not None:
|
|
62
|
+
self.filepath = filepath
|
|
58
63
|
if size is not None:
|
|
59
64
|
self.size = size
|
|
60
65
|
if url is not None:
|
|
61
66
|
self.url = url
|
|
62
67
|
|
|
68
|
+
@property
|
|
69
|
+
def filepath(self) -> 'str':
|
|
70
|
+
"""Gets the filepath of this V1GetModelFileUrlResponse. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The filepath of this V1GetModelFileUrlResponse. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._filepath
|
|
77
|
+
|
|
78
|
+
@filepath.setter
|
|
79
|
+
def filepath(self, filepath: 'str'):
|
|
80
|
+
"""Sets the filepath of this V1GetModelFileUrlResponse.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param filepath: The filepath of this V1GetModelFileUrlResponse. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._filepath = filepath
|
|
88
|
+
|
|
63
89
|
@property
|
|
64
90
|
def size(self) -> 'str':
|
|
65
91
|
"""Gets the size of this V1GetModelFileUrlResponse. # noqa: E501
|
|
@@ -42,7 +42,7 @@ class V1GetModelFilesResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'filepaths': 'list[str]',
|
|
45
|
-
'
|
|
45
|
+
'files': 'list[V1ModelFile]',
|
|
46
46
|
'model_id': 'str',
|
|
47
47
|
'project_id': 'str',
|
|
48
48
|
'size_bytes': 'str',
|
|
@@ -52,7 +52,7 @@ class V1GetModelFilesResponse(object):
|
|
|
52
52
|
|
|
53
53
|
attribute_map = {
|
|
54
54
|
'filepaths': 'filepaths',
|
|
55
|
-
'
|
|
55
|
+
'files': 'files',
|
|
56
56
|
'model_id': 'modelId',
|
|
57
57
|
'project_id': 'projectId',
|
|
58
58
|
'size_bytes': 'sizeBytes',
|
|
@@ -60,10 +60,10 @@ class V1GetModelFilesResponse(object):
|
|
|
60
60
|
'version': 'version'
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
def __init__(self, filepaths: 'list[str]' =None,
|
|
63
|
+
def __init__(self, filepaths: 'list[str]' =None, files: 'list[V1ModelFile]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
|
|
64
64
|
"""V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
|
|
65
65
|
self._filepaths = None
|
|
66
|
-
self.
|
|
66
|
+
self._files = None
|
|
67
67
|
self._model_id = None
|
|
68
68
|
self._project_id = None
|
|
69
69
|
self._size_bytes = None
|
|
@@ -72,8 +72,8 @@ class V1GetModelFilesResponse(object):
|
|
|
72
72
|
self.discriminator = None
|
|
73
73
|
if filepaths is not None:
|
|
74
74
|
self.filepaths = filepaths
|
|
75
|
-
if
|
|
76
|
-
self.
|
|
75
|
+
if files is not None:
|
|
76
|
+
self.files = files
|
|
77
77
|
if model_id is not None:
|
|
78
78
|
self.model_id = model_id
|
|
79
79
|
if project_id is not None:
|
|
@@ -107,25 +107,25 @@ class V1GetModelFilesResponse(object):
|
|
|
107
107
|
self._filepaths = filepaths
|
|
108
108
|
|
|
109
109
|
@property
|
|
110
|
-
def
|
|
111
|
-
"""Gets the
|
|
110
|
+
def files(self) -> 'list[V1ModelFile]':
|
|
111
|
+
"""Gets the files of this V1GetModelFilesResponse. # noqa: E501
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
:return: The
|
|
115
|
-
:rtype: list[
|
|
114
|
+
:return: The files of this V1GetModelFilesResponse. # noqa: E501
|
|
115
|
+
:rtype: list[V1ModelFile]
|
|
116
116
|
"""
|
|
117
|
-
return self.
|
|
117
|
+
return self._files
|
|
118
118
|
|
|
119
|
-
@
|
|
120
|
-
def
|
|
121
|
-
"""Sets the
|
|
119
|
+
@files.setter
|
|
120
|
+
def files(self, files: 'list[V1ModelFile]'):
|
|
121
|
+
"""Sets the files of this V1GetModelFilesResponse.
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
:param
|
|
125
|
-
:type: list[
|
|
124
|
+
:param files: The files of this V1GetModelFilesResponse. # noqa: E501
|
|
125
|
+
:type: list[V1ModelFile]
|
|
126
126
|
"""
|
|
127
127
|
|
|
128
|
-
self.
|
|
128
|
+
self._files = files
|
|
129
129
|
|
|
130
130
|
@property
|
|
131
131
|
def model_id(self) -> 'str':
|