lightning-sdk 0.1.39__py3-none-any.whl → 0.1.40__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/_mmt/__init__.py +3 -0
- lightning_sdk/_mmt/base.py +180 -0
- lightning_sdk/_mmt/mmt.py +161 -0
- lightning_sdk/_mmt/v1.py +69 -0
- lightning_sdk/_mmt/v2.py +141 -0
- lightning_sdk/api/mmt_api.py +147 -0
- lightning_sdk/api/teamspace_api.py +0 -9
- lightning_sdk/cli/mmt.py +137 -0
- lightning_sdk/job/base.py +2 -3
- lightning_sdk/job/v1.py +2 -1
- lightning_sdk/job/v2.py +6 -9
- lightning_sdk/lightning_cloud/openapi/__init__.py +7 -3
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +90 -284
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +7 -3
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{project_id_agentmanagedmodels_body.py → v1_body.py} +21 -47
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_managed_models_response.py → v1_resource_visibility.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_managed_model_response.py → v1_update_model_visibility_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -1
- lightning_sdk/models.py +29 -8
- lightning_sdk/teamspace.py +12 -9
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/RECORD +40 -29
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
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 V1DeploymentAPI(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
|
+
'body': 'V1Body',
|
|
45
|
+
'method': 'str',
|
|
46
|
+
'path': 'str',
|
|
47
|
+
'_query_params': 'list[V1QueryParam]'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'body': 'body',
|
|
52
|
+
'method': 'method',
|
|
53
|
+
'path': 'path',
|
|
54
|
+
'_query_params': 'queryParams'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, body: 'V1Body' =None, method: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
58
|
+
"""V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._body = None
|
|
60
|
+
self._method = None
|
|
61
|
+
self._path = None
|
|
62
|
+
self.__query_params = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if body is not None:
|
|
65
|
+
self.body = body
|
|
66
|
+
if method is not None:
|
|
67
|
+
self.method = method
|
|
68
|
+
if path is not None:
|
|
69
|
+
self.path = path
|
|
70
|
+
if _query_params is not None:
|
|
71
|
+
self._query_params = _query_params
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def body(self) -> 'V1Body':
|
|
75
|
+
"""Gets the body of this V1DeploymentAPI. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The body of this V1DeploymentAPI. # noqa: E501
|
|
79
|
+
:rtype: V1Body
|
|
80
|
+
"""
|
|
81
|
+
return self._body
|
|
82
|
+
|
|
83
|
+
@body.setter
|
|
84
|
+
def body(self, body: 'V1Body'):
|
|
85
|
+
"""Sets the body of this V1DeploymentAPI.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param body: The body of this V1DeploymentAPI. # noqa: E501
|
|
89
|
+
:type: V1Body
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._body = body
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def method(self) -> 'str':
|
|
96
|
+
"""Gets the method of this V1DeploymentAPI. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The method of this V1DeploymentAPI. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._method
|
|
103
|
+
|
|
104
|
+
@method.setter
|
|
105
|
+
def method(self, method: 'str'):
|
|
106
|
+
"""Sets the method of this V1DeploymentAPI.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param method: The method of this V1DeploymentAPI. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._method = method
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def path(self) -> 'str':
|
|
117
|
+
"""Gets the path of this V1DeploymentAPI. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The path of this V1DeploymentAPI. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._path
|
|
124
|
+
|
|
125
|
+
@path.setter
|
|
126
|
+
def path(self, path: 'str'):
|
|
127
|
+
"""Sets the path of this V1DeploymentAPI.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param path: The path of this V1DeploymentAPI. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._path = path
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def _query_params(self) -> 'list[V1QueryParam]':
|
|
138
|
+
"""Gets the _query_params of this V1DeploymentAPI. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The _query_params of this V1DeploymentAPI. # noqa: E501
|
|
142
|
+
:rtype: list[V1QueryParam]
|
|
143
|
+
"""
|
|
144
|
+
return self.__query_params
|
|
145
|
+
|
|
146
|
+
@_query_params.setter
|
|
147
|
+
def _query_params(self, _query_params: 'list[V1QueryParam]'):
|
|
148
|
+
"""Sets the _query_params of this V1DeploymentAPI.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param _query_params: The _query_params of this V1DeploymentAPI. # noqa: E501
|
|
152
|
+
:type: list[V1QueryParam]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self.__query_params = _query_params
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1DeploymentAPI, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1DeploymentAPI') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1DeploymentAPI):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1DeploymentAPI') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -42,6 +42,7 @@ class V1GetModelFilesResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'filepaths': 'list[str]',
|
|
45
|
+
'filesizes': 'list[str]',
|
|
45
46
|
'model_id': 'str',
|
|
46
47
|
'project_id': 'str',
|
|
47
48
|
'size_bytes': 'str',
|
|
@@ -51,6 +52,7 @@ class V1GetModelFilesResponse(object):
|
|
|
51
52
|
|
|
52
53
|
attribute_map = {
|
|
53
54
|
'filepaths': 'filepaths',
|
|
55
|
+
'filesizes': 'filesizes',
|
|
54
56
|
'model_id': 'modelId',
|
|
55
57
|
'project_id': 'projectId',
|
|
56
58
|
'size_bytes': 'sizeBytes',
|
|
@@ -58,9 +60,10 @@ class V1GetModelFilesResponse(object):
|
|
|
58
60
|
'version': 'version'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
|
|
63
|
+
def __init__(self, filepaths: 'list[str]' =None, filesizes: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
|
|
62
64
|
"""V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._filepaths = None
|
|
66
|
+
self._filesizes = None
|
|
64
67
|
self._model_id = None
|
|
65
68
|
self._project_id = None
|
|
66
69
|
self._size_bytes = None
|
|
@@ -69,6 +72,8 @@ class V1GetModelFilesResponse(object):
|
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if filepaths is not None:
|
|
71
74
|
self.filepaths = filepaths
|
|
75
|
+
if filesizes is not None:
|
|
76
|
+
self.filesizes = filesizes
|
|
72
77
|
if model_id is not None:
|
|
73
78
|
self.model_id = model_id
|
|
74
79
|
if project_id is not None:
|
|
@@ -101,6 +106,27 @@ class V1GetModelFilesResponse(object):
|
|
|
101
106
|
|
|
102
107
|
self._filepaths = filepaths
|
|
103
108
|
|
|
109
|
+
@property
|
|
110
|
+
def filesizes(self) -> 'list[str]':
|
|
111
|
+
"""Gets the filesizes of this V1GetModelFilesResponse. # noqa: E501
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:return: The filesizes of this V1GetModelFilesResponse. # noqa: E501
|
|
115
|
+
:rtype: list[str]
|
|
116
|
+
"""
|
|
117
|
+
return self._filesizes
|
|
118
|
+
|
|
119
|
+
@filesizes.setter
|
|
120
|
+
def filesizes(self, filesizes: 'list[str]'):
|
|
121
|
+
"""Sets the filesizes of this V1GetModelFilesResponse.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param filesizes: The filesizes of this V1GetModelFilesResponse. # noqa: E501
|
|
125
|
+
:type: list[str]
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._filesizes = filesizes
|
|
129
|
+
|
|
104
130
|
@property
|
|
105
131
|
def model_id(self) -> 'str':
|
|
106
132
|
"""Gets the model_id of this V1GetModelFilesResponse. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class V1ManagedModel(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'abilities': 'V1ManagedModelAbilities',
|
|
44
45
|
'completion_token_price': 'float',
|
|
45
46
|
'description': 'str',
|
|
46
47
|
'endpoint_id': 'str',
|
|
@@ -50,6 +51,7 @@ class V1ManagedModel(object):
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
attribute_map = {
|
|
54
|
+
'abilities': 'abilities',
|
|
53
55
|
'completion_token_price': 'completionTokenPrice',
|
|
54
56
|
'description': 'description',
|
|
55
57
|
'endpoint_id': 'endpointId',
|
|
@@ -58,8 +60,9 @@ class V1ManagedModel(object):
|
|
|
58
60
|
'prompt_token_price': 'promptTokenPrice'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, completion_token_price: 'float' =None, description: 'str' =None, endpoint_id: 'str' =None, id: 'str' =None, name: 'str' =None, prompt_token_price: 'float' =None): # noqa: E501
|
|
63
|
+
def __init__(self, abilities: 'V1ManagedModelAbilities' =None, completion_token_price: 'float' =None, description: 'str' =None, endpoint_id: 'str' =None, id: 'str' =None, name: 'str' =None, prompt_token_price: 'float' =None): # noqa: E501
|
|
62
64
|
"""V1ManagedModel - a model defined in Swagger""" # noqa: E501
|
|
65
|
+
self._abilities = None
|
|
63
66
|
self._completion_token_price = None
|
|
64
67
|
self._description = None
|
|
65
68
|
self._endpoint_id = None
|
|
@@ -67,6 +70,8 @@ class V1ManagedModel(object):
|
|
|
67
70
|
self._name = None
|
|
68
71
|
self._prompt_token_price = None
|
|
69
72
|
self.discriminator = None
|
|
73
|
+
if abilities is not None:
|
|
74
|
+
self.abilities = abilities
|
|
70
75
|
if completion_token_price is not None:
|
|
71
76
|
self.completion_token_price = completion_token_price
|
|
72
77
|
if description is not None:
|
|
@@ -80,6 +85,27 @@ class V1ManagedModel(object):
|
|
|
80
85
|
if prompt_token_price is not None:
|
|
81
86
|
self.prompt_token_price = prompt_token_price
|
|
82
87
|
|
|
88
|
+
@property
|
|
89
|
+
def abilities(self) -> 'V1ManagedModelAbilities':
|
|
90
|
+
"""Gets the abilities of this V1ManagedModel. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The abilities of this V1ManagedModel. # noqa: E501
|
|
94
|
+
:rtype: V1ManagedModelAbilities
|
|
95
|
+
"""
|
|
96
|
+
return self._abilities
|
|
97
|
+
|
|
98
|
+
@abilities.setter
|
|
99
|
+
def abilities(self, abilities: 'V1ManagedModelAbilities'):
|
|
100
|
+
"""Sets the abilities of this V1ManagedModel.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param abilities: The abilities of this V1ManagedModel. # noqa: E501
|
|
104
|
+
:type: V1ManagedModelAbilities
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._abilities = abilities
|
|
108
|
+
|
|
83
109
|
@property
|
|
84
110
|
def completion_token_price(self) -> 'float':
|
|
85
111
|
"""Gets the completion_token_price of this V1ManagedModel. # noqa: E501
|
|
@@ -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 V1ManagedModelAbilities(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
|
+
'can_call_hub_deployment': 'bool',
|
|
45
|
+
'can_receive_files': 'bool',
|
|
46
|
+
'can_receive_images': 'bool'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'can_call_hub_deployment': 'canCallHubDeployment',
|
|
51
|
+
'can_receive_files': 'canReceiveFiles',
|
|
52
|
+
'can_receive_images': 'canReceiveImages'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, can_call_hub_deployment: 'bool' =None, can_receive_files: 'bool' =None, can_receive_images: 'bool' =None): # noqa: E501
|
|
56
|
+
"""V1ManagedModelAbilities - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._can_call_hub_deployment = None
|
|
58
|
+
self._can_receive_files = None
|
|
59
|
+
self._can_receive_images = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if can_call_hub_deployment is not None:
|
|
62
|
+
self.can_call_hub_deployment = can_call_hub_deployment
|
|
63
|
+
if can_receive_files is not None:
|
|
64
|
+
self.can_receive_files = can_receive_files
|
|
65
|
+
if can_receive_images is not None:
|
|
66
|
+
self.can_receive_images = can_receive_images
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def can_call_hub_deployment(self) -> 'bool':
|
|
70
|
+
"""Gets the can_call_hub_deployment of this V1ManagedModelAbilities. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The can_call_hub_deployment of this V1ManagedModelAbilities. # noqa: E501
|
|
74
|
+
:rtype: bool
|
|
75
|
+
"""
|
|
76
|
+
return self._can_call_hub_deployment
|
|
77
|
+
|
|
78
|
+
@can_call_hub_deployment.setter
|
|
79
|
+
def can_call_hub_deployment(self, can_call_hub_deployment: 'bool'):
|
|
80
|
+
"""Sets the can_call_hub_deployment of this V1ManagedModelAbilities.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param can_call_hub_deployment: The can_call_hub_deployment of this V1ManagedModelAbilities. # noqa: E501
|
|
84
|
+
:type: bool
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._can_call_hub_deployment = can_call_hub_deployment
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def can_receive_files(self) -> 'bool':
|
|
91
|
+
"""Gets the can_receive_files of this V1ManagedModelAbilities. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The can_receive_files of this V1ManagedModelAbilities. # noqa: E501
|
|
95
|
+
:rtype: bool
|
|
96
|
+
"""
|
|
97
|
+
return self._can_receive_files
|
|
98
|
+
|
|
99
|
+
@can_receive_files.setter
|
|
100
|
+
def can_receive_files(self, can_receive_files: 'bool'):
|
|
101
|
+
"""Sets the can_receive_files of this V1ManagedModelAbilities.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param can_receive_files: The can_receive_files of this V1ManagedModelAbilities. # noqa: E501
|
|
105
|
+
:type: bool
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._can_receive_files = can_receive_files
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def can_receive_images(self) -> 'bool':
|
|
112
|
+
"""Gets the can_receive_images of this V1ManagedModelAbilities. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The can_receive_images of this V1ManagedModelAbilities. # noqa: E501
|
|
116
|
+
:rtype: bool
|
|
117
|
+
"""
|
|
118
|
+
return self._can_receive_images
|
|
119
|
+
|
|
120
|
+
@can_receive_images.setter
|
|
121
|
+
def can_receive_images(self, can_receive_images: 'bool'):
|
|
122
|
+
"""Sets the can_receive_images of this V1ManagedModelAbilities.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param can_receive_images: The can_receive_images of this V1ManagedModelAbilities. # noqa: E501
|
|
126
|
+
:type: bool
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._can_receive_images = can_receive_images
|
|
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(V1ManagedModelAbilities, 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: 'V1ManagedModelAbilities') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1ManagedModelAbilities):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1ManagedModelAbilities') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -54,7 +54,8 @@ class V1Model(object):
|
|
|
54
54
|
'project_id': 'str',
|
|
55
55
|
'tags': 'list[str]',
|
|
56
56
|
'updated_at': 'datetime',
|
|
57
|
-
'user_id': 'str'
|
|
57
|
+
'user_id': 'str',
|
|
58
|
+
'visibility': 'V1ResourceVisibility'
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
attribute_map = {
|
|
@@ -71,10 +72,11 @@ class V1Model(object):
|
|
|
71
72
|
'project_id': 'projectId',
|
|
72
73
|
'tags': 'tags',
|
|
73
74
|
'updated_at': 'updatedAt',
|
|
74
|
-
'user_id': 'userId'
|
|
75
|
+
'user_id': 'userId',
|
|
76
|
+
'visibility': 'visibility'
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1ModelVersionArchive' =None, license: 'str' =None, model_metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
79
|
+
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1ModelVersionArchive' =None, license: 'str' =None, model_metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
78
80
|
"""V1Model - a model defined in Swagger""" # noqa: E501
|
|
79
81
|
self._categories = None
|
|
80
82
|
self._created_at = None
|
|
@@ -90,6 +92,7 @@ class V1Model(object):
|
|
|
90
92
|
self._tags = None
|
|
91
93
|
self._updated_at = None
|
|
92
94
|
self._user_id = None
|
|
95
|
+
self._visibility = None
|
|
93
96
|
self.discriminator = None
|
|
94
97
|
if categories is not None:
|
|
95
98
|
self.categories = categories
|
|
@@ -119,6 +122,8 @@ class V1Model(object):
|
|
|
119
122
|
self.updated_at = updated_at
|
|
120
123
|
if user_id is not None:
|
|
121
124
|
self.user_id = user_id
|
|
125
|
+
if visibility is not None:
|
|
126
|
+
self.visibility = visibility
|
|
122
127
|
|
|
123
128
|
@property
|
|
124
129
|
def categories(self) -> 'list[str]':
|
|
@@ -414,6 +419,27 @@ class V1Model(object):
|
|
|
414
419
|
|
|
415
420
|
self._user_id = user_id
|
|
416
421
|
|
|
422
|
+
@property
|
|
423
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
424
|
+
"""Gets the visibility of this V1Model. # noqa: E501
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
:return: The visibility of this V1Model. # noqa: E501
|
|
428
|
+
:rtype: V1ResourceVisibility
|
|
429
|
+
"""
|
|
430
|
+
return self._visibility
|
|
431
|
+
|
|
432
|
+
@visibility.setter
|
|
433
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
434
|
+
"""Sets the visibility of this V1Model.
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
:param visibility: The visibility of this V1Model. # noqa: E501
|
|
438
|
+
:type: V1ResourceVisibility
|
|
439
|
+
"""
|
|
440
|
+
|
|
441
|
+
self._visibility = visibility
|
|
442
|
+
|
|
417
443
|
def to_dict(self) -> dict:
|
|
418
444
|
"""Returns the model properties as a dict"""
|
|
419
445
|
result = {}
|
|
@@ -50,6 +50,7 @@ class V1MultiMachineJob(object):
|
|
|
50
50
|
'name': 'str',
|
|
51
51
|
'project_id': 'str',
|
|
52
52
|
'spec': 'V1JobSpec',
|
|
53
|
+
'state': 'V1MultiMachineJobState',
|
|
53
54
|
'status': 'V1MultiMachineJobStatus',
|
|
54
55
|
'updated_at': 'datetime',
|
|
55
56
|
'user_id': 'str'
|
|
@@ -65,12 +66,13 @@ class V1MultiMachineJob(object):
|
|
|
65
66
|
'name': 'name',
|
|
66
67
|
'project_id': 'projectId',
|
|
67
68
|
'spec': 'spec',
|
|
69
|
+
'state': 'state',
|
|
68
70
|
'status': 'status',
|
|
69
71
|
'updated_at': 'updatedAt',
|
|
70
72
|
'user_id': 'userId'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1MultiMachineJobState' =None, id: 'str' =None, machines: 'int' =None, message: 'str' =None, name: 'str' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, status: 'V1MultiMachineJobStatus' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
75
|
+
def __init__(self, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1MultiMachineJobState' =None, id: 'str' =None, machines: 'int' =None, message: 'str' =None, name: 'str' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, state: 'V1MultiMachineJobState' =None, status: 'V1MultiMachineJobStatus' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
74
76
|
"""V1MultiMachineJob - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._cloudspace_id = None
|
|
76
78
|
self._created_at = None
|
|
@@ -81,6 +83,7 @@ class V1MultiMachineJob(object):
|
|
|
81
83
|
self._name = None
|
|
82
84
|
self._project_id = None
|
|
83
85
|
self._spec = None
|
|
86
|
+
self._state = None
|
|
84
87
|
self._status = None
|
|
85
88
|
self._updated_at = None
|
|
86
89
|
self._user_id = None
|
|
@@ -103,6 +106,8 @@ class V1MultiMachineJob(object):
|
|
|
103
106
|
self.project_id = project_id
|
|
104
107
|
if spec is not None:
|
|
105
108
|
self.spec = spec
|
|
109
|
+
if state is not None:
|
|
110
|
+
self.state = state
|
|
106
111
|
if status is not None:
|
|
107
112
|
self.status = status
|
|
108
113
|
if updated_at is not None:
|
|
@@ -299,6 +304,27 @@ class V1MultiMachineJob(object):
|
|
|
299
304
|
|
|
300
305
|
self._spec = spec
|
|
301
306
|
|
|
307
|
+
@property
|
|
308
|
+
def state(self) -> 'V1MultiMachineJobState':
|
|
309
|
+
"""Gets the state of this V1MultiMachineJob. # noqa: E501
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:return: The state of this V1MultiMachineJob. # noqa: E501
|
|
313
|
+
:rtype: V1MultiMachineJobState
|
|
314
|
+
"""
|
|
315
|
+
return self._state
|
|
316
|
+
|
|
317
|
+
@state.setter
|
|
318
|
+
def state(self, state: 'V1MultiMachineJobState'):
|
|
319
|
+
"""Sets the state of this V1MultiMachineJob.
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
:param state: The state of this V1MultiMachineJob. # noqa: E501
|
|
323
|
+
:type: V1MultiMachineJobState
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
self._state = state
|
|
327
|
+
|
|
302
328
|
@property
|
|
303
329
|
def status(self) -> 'V1MultiMachineJobStatus':
|
|
304
330
|
"""Gets the status of this V1MultiMachineJob. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class V1MultiMachineJobState(object):
|
|
|
42
42
|
STOPPED = "MultiMachineJob_STATE_STOPPED"
|
|
43
43
|
DELETED = "MultiMachineJob_STATE_DELETED"
|
|
44
44
|
FAILED = "MultiMachineJob_STATE_FAILED"
|
|
45
|
+
COMPLETED = "MultiMachineJob_STATE_COMPLETED"
|
|
45
46
|
"""
|
|
46
47
|
Attributes:
|
|
47
48
|
swagger_types (dict): The key is attribute name
|