lightning-sdk 0.1.51__py3-none-any.whl → 0.1.54__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/deployment_api.py +9 -1
- lightning_sdk/api/job_api.py +1 -1
- lightning_sdk/api/lit_container_api.py +2 -1
- lightning_sdk/cli/run.py +25 -20
- lightning_sdk/deployment/deployment.py +12 -3
- lightning_sdk/job/base.py +21 -0
- lightning_sdk/job/job.py +1 -12
- lightning_sdk/job/v1.py +1 -32
- lightning_sdk/job/v2.py +6 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -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/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 +14 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -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_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_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
- 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_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_user_features.py +53 -1
- lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
- lightning_sdk/mmt/mmt.py +8 -7
- lightning_sdk/plugin.py +5 -3
- lightning_sdk/studio.py +68 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/RECORD +52 -38
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.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 V1FilesystemMMT(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
|
+
'id': 'str',
|
|
45
|
+
'jobs': 'list[V1FilesystemJob]',
|
|
46
|
+
'name': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'id': 'id',
|
|
51
|
+
'jobs': 'jobs',
|
|
52
|
+
'name': 'name'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, id: 'str' =None, jobs: 'list[V1FilesystemJob]' =None, name: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1FilesystemMMT - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._id = None
|
|
58
|
+
self._jobs = None
|
|
59
|
+
self._name = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if id is not None:
|
|
62
|
+
self.id = id
|
|
63
|
+
if jobs is not None:
|
|
64
|
+
self.jobs = jobs
|
|
65
|
+
if name is not None:
|
|
66
|
+
self.name = name
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def id(self) -> 'str':
|
|
70
|
+
"""Gets the id of this V1FilesystemMMT. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The id of this V1FilesystemMMT. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._id
|
|
77
|
+
|
|
78
|
+
@id.setter
|
|
79
|
+
def id(self, id: 'str'):
|
|
80
|
+
"""Sets the id of this V1FilesystemMMT.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param id: The id of this V1FilesystemMMT. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._id = id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def jobs(self) -> 'list[V1FilesystemJob]':
|
|
91
|
+
"""Gets the jobs of this V1FilesystemMMT. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The jobs of this V1FilesystemMMT. # noqa: E501
|
|
95
|
+
:rtype: list[V1FilesystemJob]
|
|
96
|
+
"""
|
|
97
|
+
return self._jobs
|
|
98
|
+
|
|
99
|
+
@jobs.setter
|
|
100
|
+
def jobs(self, jobs: 'list[V1FilesystemJob]'):
|
|
101
|
+
"""Sets the jobs of this V1FilesystemMMT.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param jobs: The jobs of this V1FilesystemMMT. # noqa: E501
|
|
105
|
+
:type: list[V1FilesystemJob]
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._jobs = jobs
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def name(self) -> 'str':
|
|
112
|
+
"""Gets the name of this V1FilesystemMMT. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The name of this V1FilesystemMMT. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._name
|
|
119
|
+
|
|
120
|
+
@name.setter
|
|
121
|
+
def name(self, name: 'str'):
|
|
122
|
+
"""Sets the name of this V1FilesystemMMT.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param name: The name of this V1FilesystemMMT. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._name = name
|
|
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(V1FilesystemMMT, 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: 'V1FilesystemMMT') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1FilesystemMMT):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1FilesystemMMT') -> 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 V1ListClusterUsageRestrictionsResponse(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
|
+
'restrictions': 'list[V1ClusterUsageRestriction]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'restrictions': 'restrictions'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, restrictions: 'list[V1ClusterUsageRestriction]' =None): # noqa: E501
|
|
52
|
+
"""V1ListClusterUsageRestrictionsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._restrictions = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if restrictions is not None:
|
|
56
|
+
self.restrictions = restrictions
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def restrictions(self) -> 'list[V1ClusterUsageRestriction]':
|
|
60
|
+
"""Gets the restrictions of this V1ListClusterUsageRestrictionsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The restrictions of this V1ListClusterUsageRestrictionsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1ClusterUsageRestriction]
|
|
65
|
+
"""
|
|
66
|
+
return self._restrictions
|
|
67
|
+
|
|
68
|
+
@restrictions.setter
|
|
69
|
+
def restrictions(self, restrictions: 'list[V1ClusterUsageRestriction]'):
|
|
70
|
+
"""Sets the restrictions of this V1ListClusterUsageRestrictionsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param restrictions: The restrictions of this V1ListClusterUsageRestrictionsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1ClusterUsageRestriction]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._restrictions = restrictions
|
|
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(V1ListClusterUsageRestrictionsResponse, 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: 'V1ListClusterUsageRestrictionsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListClusterUsageRestrictionsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListClusterUsageRestrictionsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
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 V1ListFilesystemMMTsResponse(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
|
+
'mmts': 'list[V1FilesystemMMT]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'mmts': 'mmts'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, mmts: 'list[V1FilesystemMMT]' =None): # noqa: E501
|
|
52
|
+
"""V1ListFilesystemMMTsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._mmts = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if mmts is not None:
|
|
56
|
+
self.mmts = mmts
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def mmts(self) -> 'list[V1FilesystemMMT]':
|
|
60
|
+
"""Gets the mmts of this V1ListFilesystemMMTsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The mmts of this V1ListFilesystemMMTsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1FilesystemMMT]
|
|
65
|
+
"""
|
|
66
|
+
return self._mmts
|
|
67
|
+
|
|
68
|
+
@mmts.setter
|
|
69
|
+
def mmts(self, mmts: 'list[V1FilesystemMMT]'):
|
|
70
|
+
"""Sets the mmts of this V1ListFilesystemMMTsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param mmts: The mmts of this V1ListFilesystemMMTsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1FilesystemMMT]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._mmts = mmts
|
|
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(V1ListFilesystemMMTsResponse, 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: 'V1ListFilesystemMMTsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListFilesystemMMTsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListFilesystemMMTsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -47,6 +47,7 @@ class V1MetricsStream(object):
|
|
|
47
47
|
'created_at': 'datetime',
|
|
48
48
|
'dark_color': 'str',
|
|
49
49
|
'id': 'str',
|
|
50
|
+
'job_id': 'str',
|
|
50
51
|
'job_name': 'str',
|
|
51
52
|
'light_color': 'str',
|
|
52
53
|
'name': 'str',
|
|
@@ -77,6 +78,7 @@ class V1MetricsStream(object):
|
|
|
77
78
|
'created_at': 'createdAt',
|
|
78
79
|
'dark_color': 'darkColor',
|
|
79
80
|
'id': 'id',
|
|
81
|
+
'job_id': 'jobId',
|
|
80
82
|
'job_name': 'jobName',
|
|
81
83
|
'light_color': 'lightColor',
|
|
82
84
|
'name': 'name',
|
|
@@ -100,7 +102,7 @@ class V1MetricsStream(object):
|
|
|
100
102
|
'work_id': 'workId'
|
|
101
103
|
}
|
|
102
104
|
|
|
103
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
105
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, id: 'str' =None, job_id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
104
106
|
"""V1MetricsStream - a model defined in Swagger""" # noqa: E501
|
|
105
107
|
self._app_id = None
|
|
106
108
|
self._cloudspace_id = None
|
|
@@ -108,6 +110,7 @@ class V1MetricsStream(object):
|
|
|
108
110
|
self._created_at = None
|
|
109
111
|
self._dark_color = None
|
|
110
112
|
self._id = None
|
|
113
|
+
self._job_id = None
|
|
111
114
|
self._job_name = None
|
|
112
115
|
self._light_color = None
|
|
113
116
|
self._name = None
|
|
@@ -142,6 +145,8 @@ class V1MetricsStream(object):
|
|
|
142
145
|
self.dark_color = dark_color
|
|
143
146
|
if id is not None:
|
|
144
147
|
self.id = id
|
|
148
|
+
if job_id is not None:
|
|
149
|
+
self.job_id = job_id
|
|
145
150
|
if job_name is not None:
|
|
146
151
|
self.job_name = job_name
|
|
147
152
|
if light_color is not None:
|
|
@@ -311,6 +316,27 @@ class V1MetricsStream(object):
|
|
|
311
316
|
|
|
312
317
|
self._id = id
|
|
313
318
|
|
|
319
|
+
@property
|
|
320
|
+
def job_id(self) -> 'str':
|
|
321
|
+
"""Gets the job_id of this V1MetricsStream. # noqa: E501
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
:return: The job_id of this V1MetricsStream. # noqa: E501
|
|
325
|
+
:rtype: str
|
|
326
|
+
"""
|
|
327
|
+
return self._job_id
|
|
328
|
+
|
|
329
|
+
@job_id.setter
|
|
330
|
+
def job_id(self, job_id: 'str'):
|
|
331
|
+
"""Sets the job_id of this V1MetricsStream.
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
:param job_id: The job_id of this V1MetricsStream. # noqa: E501
|
|
335
|
+
:type: str
|
|
336
|
+
"""
|
|
337
|
+
|
|
338
|
+
self._job_id = job_id
|
|
339
|
+
|
|
314
340
|
@property
|
|
315
341
|
def job_name(self) -> 'str':
|
|
316
342
|
"""Gets the job_name of this V1MetricsStream. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1Model(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'categories': 'list[str]',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
|
+
'creator_username': 'str',
|
|
46
47
|
'default_version': 'V1ModelVersionArchive',
|
|
47
48
|
'description': 'str',
|
|
48
49
|
'downloads': 'str',
|
|
@@ -62,6 +63,7 @@ class V1Model(object):
|
|
|
62
63
|
attribute_map = {
|
|
63
64
|
'categories': 'categories',
|
|
64
65
|
'created_at': 'createdAt',
|
|
66
|
+
'creator_username': 'creatorUsername',
|
|
65
67
|
'default_version': 'defaultVersion',
|
|
66
68
|
'description': 'description',
|
|
67
69
|
'downloads': 'downloads',
|
|
@@ -78,10 +80,11 @@ class V1Model(object):
|
|
|
78
80
|
'visibility': 'visibility'
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, default_version: 'V1ModelVersionArchive' =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
|
|
83
|
+
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, creator_username: 'str' =None, default_version: 'V1ModelVersionArchive' =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
|
|
82
84
|
"""V1Model - a model defined in Swagger""" # noqa: E501
|
|
83
85
|
self._categories = None
|
|
84
86
|
self._created_at = None
|
|
87
|
+
self._creator_username = None
|
|
85
88
|
self._default_version = None
|
|
86
89
|
self._description = None
|
|
87
90
|
self._downloads = None
|
|
@@ -101,6 +104,8 @@ class V1Model(object):
|
|
|
101
104
|
self.categories = categories
|
|
102
105
|
if created_at is not None:
|
|
103
106
|
self.created_at = created_at
|
|
107
|
+
if creator_username is not None:
|
|
108
|
+
self.creator_username = creator_username
|
|
104
109
|
if default_version is not None:
|
|
105
110
|
self.default_version = default_version
|
|
106
111
|
if description is not None:
|
|
@@ -172,6 +177,27 @@ class V1Model(object):
|
|
|
172
177
|
|
|
173
178
|
self._created_at = created_at
|
|
174
179
|
|
|
180
|
+
@property
|
|
181
|
+
def creator_username(self) -> 'str':
|
|
182
|
+
"""Gets the creator_username of this V1Model. # noqa: E501
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:return: The creator_username of this V1Model. # noqa: E501
|
|
186
|
+
:rtype: str
|
|
187
|
+
"""
|
|
188
|
+
return self._creator_username
|
|
189
|
+
|
|
190
|
+
@creator_username.setter
|
|
191
|
+
def creator_username(self, creator_username: 'str'):
|
|
192
|
+
"""Sets the creator_username of this V1Model.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param creator_username: The creator_username of this V1Model. # noqa: E501
|
|
196
|
+
:type: str
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
self._creator_username = creator_username
|
|
200
|
+
|
|
175
201
|
@property
|
|
176
202
|
def default_version(self) -> 'V1ModelVersionArchive':
|
|
177
203
|
"""Gets the default_version of this V1Model. # noqa: E501
|
|
@@ -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 V1PostCloudSpaceArtifactEventsResponse(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
|
+
"""V1PostCloudSpaceArtifactEventsResponse - 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(V1PostCloudSpaceArtifactEventsResponse, 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: 'V1PostCloudSpaceArtifactEventsResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1PostCloudSpaceArtifactEventsResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1PostCloudSpaceArtifactEventsResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|