lightning-sdk 0.1.31__py3-none-any.whl → 0.1.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +3 -1
- lightning_sdk/ai_hub.py +110 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +61 -0
- lightning_sdk/api/studio_api.py +15 -8
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/api/utils.py +8 -1
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- 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/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/studio.py +6 -5
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/top_level.txt +0 -0
|
@@ -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 V1DeleteSharedMetricsStreamResponse(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
|
+
"""V1DeleteSharedMetricsStreamResponse - 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(V1DeleteSharedMetricsStreamResponse, 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: 'V1DeleteSharedMetricsStreamResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteSharedMetricsStreamResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteSharedMetricsStreamResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -48,6 +48,7 @@ class V1Deployment(object):
|
|
|
48
48
|
'id': 'str',
|
|
49
49
|
'is_published': 'bool',
|
|
50
50
|
'name': 'str',
|
|
51
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
51
52
|
'project_id': 'str',
|
|
52
53
|
'release_id': 'str',
|
|
53
54
|
'replicas': 'int',
|
|
@@ -66,6 +67,7 @@ class V1Deployment(object):
|
|
|
66
67
|
'id': 'id',
|
|
67
68
|
'is_published': 'isPublished',
|
|
68
69
|
'name': 'name',
|
|
70
|
+
'parameter_spec': 'parameterSpec',
|
|
69
71
|
'project_id': 'projectId',
|
|
70
72
|
'release_id': 'releaseId',
|
|
71
73
|
'replicas': 'replicas',
|
|
@@ -76,7 +78,7 @@ class V1Deployment(object):
|
|
|
76
78
|
'user_id': 'userId'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
80
82
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
81
83
|
self._autoscaling = None
|
|
82
84
|
self._created_at = None
|
|
@@ -85,6 +87,7 @@ class V1Deployment(object):
|
|
|
85
87
|
self._id = None
|
|
86
88
|
self._is_published = None
|
|
87
89
|
self._name = None
|
|
90
|
+
self._parameter_spec = None
|
|
88
91
|
self._project_id = None
|
|
89
92
|
self._release_id = None
|
|
90
93
|
self._replicas = None
|
|
@@ -108,6 +111,8 @@ class V1Deployment(object):
|
|
|
108
111
|
self.is_published = is_published
|
|
109
112
|
if name is not None:
|
|
110
113
|
self.name = name
|
|
114
|
+
if parameter_spec is not None:
|
|
115
|
+
self.parameter_spec = parameter_spec
|
|
111
116
|
if project_id is not None:
|
|
112
117
|
self.project_id = project_id
|
|
113
118
|
if release_id is not None:
|
|
@@ -272,6 +277,27 @@ class V1Deployment(object):
|
|
|
272
277
|
|
|
273
278
|
self._name = name
|
|
274
279
|
|
|
280
|
+
@property
|
|
281
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
282
|
+
"""Gets the parameter_spec of this V1Deployment. # noqa: E501
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:return: The parameter_spec of this V1Deployment. # noqa: E501
|
|
286
|
+
:rtype: V1ParameterizationSpec
|
|
287
|
+
"""
|
|
288
|
+
return self._parameter_spec
|
|
289
|
+
|
|
290
|
+
@parameter_spec.setter
|
|
291
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
292
|
+
"""Sets the parameter_spec of this V1Deployment.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:param parameter_spec: The parameter_spec of this V1Deployment. # noqa: E501
|
|
296
|
+
:type: V1ParameterizationSpec
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
self._parameter_spec = parameter_spec
|
|
300
|
+
|
|
275
301
|
@property
|
|
276
302
|
def project_id(self) -> 'str':
|
|
277
303
|
"""Gets the project_id of this V1Deployment. # noqa: E501
|
|
@@ -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 V1DeploymentMetrics(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
|
+
'url': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'url': 'url'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, url: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1DeploymentMetrics - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._url = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if url is not None:
|
|
56
|
+
self.url = url
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def url(self) -> 'str':
|
|
60
|
+
"""Gets the url of this V1DeploymentMetrics. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The url of this V1DeploymentMetrics. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._url
|
|
67
|
+
|
|
68
|
+
@url.setter
|
|
69
|
+
def url(self, url: 'str'):
|
|
70
|
+
"""Sets the url of this V1DeploymentMetrics.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param url: The url of this V1DeploymentMetrics. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._url = url
|
|
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(V1DeploymentMetrics, 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: 'V1DeploymentMetrics') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1DeploymentMetrics):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1DeploymentMetrics') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -51,6 +51,7 @@ class V1DeploymentTemplate(object):
|
|
|
51
51
|
'globally_visible': 'bool',
|
|
52
52
|
'id': 'str',
|
|
53
53
|
'image_url': 'str',
|
|
54
|
+
'metrics': 'list[V1DeploymentMetrics]',
|
|
54
55
|
'name': 'str',
|
|
55
56
|
'org_id': 'str',
|
|
56
57
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
@@ -58,6 +59,8 @@ class V1DeploymentTemplate(object):
|
|
|
58
59
|
'spec': 'V1JobSpec',
|
|
59
60
|
'spec_v2': 'V1DeploymentSpec',
|
|
60
61
|
'tags': 'list[V1ResourceTag]',
|
|
62
|
+
'thumbnail_updated_at': 'datetime',
|
|
63
|
+
'thumbnail_url': 'str',
|
|
61
64
|
'unpublished': 'bool',
|
|
62
65
|
'updated_at': 'datetime',
|
|
63
66
|
'user_id': 'str'
|
|
@@ -74,6 +77,7 @@ class V1DeploymentTemplate(object):
|
|
|
74
77
|
'globally_visible': 'globallyVisible',
|
|
75
78
|
'id': 'id',
|
|
76
79
|
'image_url': 'imageUrl',
|
|
80
|
+
'metrics': 'metrics',
|
|
77
81
|
'name': 'name',
|
|
78
82
|
'org_id': 'orgId',
|
|
79
83
|
'parameter_spec': 'parameterSpec',
|
|
@@ -81,12 +85,14 @@ class V1DeploymentTemplate(object):
|
|
|
81
85
|
'spec': 'spec',
|
|
82
86
|
'spec_v2': 'specV2',
|
|
83
87
|
'tags': 'tags',
|
|
88
|
+
'thumbnail_updated_at': 'thumbnailUpdatedAt',
|
|
89
|
+
'thumbnail_url': 'thumbnailUrl',
|
|
84
90
|
'unpublished': 'unpublished',
|
|
85
91
|
'updated_at': 'updatedAt',
|
|
86
92
|
'user_id': 'userId'
|
|
87
93
|
}
|
|
88
94
|
|
|
89
|
-
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
95
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, metrics: 'list[V1DeploymentMetrics]' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
90
96
|
"""V1DeploymentTemplate - a model defined in Swagger""" # noqa: E501
|
|
91
97
|
self._about_page_content = None
|
|
92
98
|
self._about_page_id = None
|
|
@@ -98,6 +104,7 @@ class V1DeploymentTemplate(object):
|
|
|
98
104
|
self._globally_visible = None
|
|
99
105
|
self._id = None
|
|
100
106
|
self._image_url = None
|
|
107
|
+
self._metrics = None
|
|
101
108
|
self._name = None
|
|
102
109
|
self._org_id = None
|
|
103
110
|
self._parameter_spec = None
|
|
@@ -105,6 +112,8 @@ class V1DeploymentTemplate(object):
|
|
|
105
112
|
self._spec = None
|
|
106
113
|
self._spec_v2 = None
|
|
107
114
|
self._tags = None
|
|
115
|
+
self._thumbnail_updated_at = None
|
|
116
|
+
self._thumbnail_url = None
|
|
108
117
|
self._unpublished = None
|
|
109
118
|
self._updated_at = None
|
|
110
119
|
self._user_id = None
|
|
@@ -129,6 +138,8 @@ class V1DeploymentTemplate(object):
|
|
|
129
138
|
self.id = id
|
|
130
139
|
if image_url is not None:
|
|
131
140
|
self.image_url = image_url
|
|
141
|
+
if metrics is not None:
|
|
142
|
+
self.metrics = metrics
|
|
132
143
|
if name is not None:
|
|
133
144
|
self.name = name
|
|
134
145
|
if org_id is not None:
|
|
@@ -143,6 +154,10 @@ class V1DeploymentTemplate(object):
|
|
|
143
154
|
self.spec_v2 = spec_v2
|
|
144
155
|
if tags is not None:
|
|
145
156
|
self.tags = tags
|
|
157
|
+
if thumbnail_updated_at is not None:
|
|
158
|
+
self.thumbnail_updated_at = thumbnail_updated_at
|
|
159
|
+
if thumbnail_url is not None:
|
|
160
|
+
self.thumbnail_url = thumbnail_url
|
|
146
161
|
if unpublished is not None:
|
|
147
162
|
self.unpublished = unpublished
|
|
148
163
|
if updated_at is not None:
|
|
@@ -360,6 +375,27 @@ class V1DeploymentTemplate(object):
|
|
|
360
375
|
|
|
361
376
|
self._image_url = image_url
|
|
362
377
|
|
|
378
|
+
@property
|
|
379
|
+
def metrics(self) -> 'list[V1DeploymentMetrics]':
|
|
380
|
+
"""Gets the metrics of this V1DeploymentTemplate. # noqa: E501
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
:return: The metrics of this V1DeploymentTemplate. # noqa: E501
|
|
384
|
+
:rtype: list[V1DeploymentMetrics]
|
|
385
|
+
"""
|
|
386
|
+
return self._metrics
|
|
387
|
+
|
|
388
|
+
@metrics.setter
|
|
389
|
+
def metrics(self, metrics: 'list[V1DeploymentMetrics]'):
|
|
390
|
+
"""Sets the metrics of this V1DeploymentTemplate.
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
:param metrics: The metrics of this V1DeploymentTemplate. # noqa: E501
|
|
394
|
+
:type: list[V1DeploymentMetrics]
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
self._metrics = metrics
|
|
398
|
+
|
|
363
399
|
@property
|
|
364
400
|
def name(self) -> 'str':
|
|
365
401
|
"""Gets the name of this V1DeploymentTemplate. # noqa: E501
|
|
@@ -507,6 +543,48 @@ class V1DeploymentTemplate(object):
|
|
|
507
543
|
|
|
508
544
|
self._tags = tags
|
|
509
545
|
|
|
546
|
+
@property
|
|
547
|
+
def thumbnail_updated_at(self) -> 'datetime':
|
|
548
|
+
"""Gets the thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
:return: The thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
|
|
552
|
+
:rtype: datetime
|
|
553
|
+
"""
|
|
554
|
+
return self._thumbnail_updated_at
|
|
555
|
+
|
|
556
|
+
@thumbnail_updated_at.setter
|
|
557
|
+
def thumbnail_updated_at(self, thumbnail_updated_at: 'datetime'):
|
|
558
|
+
"""Sets the thumbnail_updated_at of this V1DeploymentTemplate.
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
:param thumbnail_updated_at: The thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
|
|
562
|
+
:type: datetime
|
|
563
|
+
"""
|
|
564
|
+
|
|
565
|
+
self._thumbnail_updated_at = thumbnail_updated_at
|
|
566
|
+
|
|
567
|
+
@property
|
|
568
|
+
def thumbnail_url(self) -> 'str':
|
|
569
|
+
"""Gets the thumbnail_url of this V1DeploymentTemplate. # noqa: E501
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
:return: The thumbnail_url of this V1DeploymentTemplate. # noqa: E501
|
|
573
|
+
:rtype: str
|
|
574
|
+
"""
|
|
575
|
+
return self._thumbnail_url
|
|
576
|
+
|
|
577
|
+
@thumbnail_url.setter
|
|
578
|
+
def thumbnail_url(self, thumbnail_url: 'str'):
|
|
579
|
+
"""Sets the thumbnail_url of this V1DeploymentTemplate.
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
:param thumbnail_url: The thumbnail_url of this V1DeploymentTemplate. # noqa: E501
|
|
583
|
+
:type: str
|
|
584
|
+
"""
|
|
585
|
+
|
|
586
|
+
self._thumbnail_url = thumbnail_url
|
|
587
|
+
|
|
510
588
|
@property
|
|
511
589
|
def unpublished(self) -> 'bool':
|
|
512
590
|
"""Gets the unpublished of this V1DeploymentTemplate. # noqa: E501
|
|
@@ -41,10 +41,12 @@ class V1DeploymentTemplateParameter(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'data_path': 'V1DataPath',
|
|
45
|
+
'display_name': 'str',
|
|
44
46
|
'input': 'V1Input',
|
|
45
47
|
'long_description': 'str',
|
|
46
48
|
'name': 'str',
|
|
47
|
-
'
|
|
49
|
+
'placements': 'list[V1DeploymentTemplateParameterPlacement]',
|
|
48
50
|
'readonly': 'bool',
|
|
49
51
|
'required': 'bool',
|
|
50
52
|
'select': 'V1Select',
|
|
@@ -53,10 +55,12 @@ class V1DeploymentTemplateParameter(object):
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
attribute_map = {
|
|
58
|
+
'data_path': 'dataPath',
|
|
59
|
+
'display_name': 'displayName',
|
|
56
60
|
'input': 'input',
|
|
57
61
|
'long_description': 'longDescription',
|
|
58
62
|
'name': 'name',
|
|
59
|
-
'
|
|
63
|
+
'placements': 'placements',
|
|
60
64
|
'readonly': 'readonly',
|
|
61
65
|
'required': 'required',
|
|
62
66
|
'select': 'select',
|
|
@@ -64,26 +68,32 @@ class V1DeploymentTemplateParameter(object):
|
|
|
64
68
|
'type': 'type'
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
def __init__(self, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None,
|
|
71
|
+
def __init__(self, data_path: 'V1DataPath' =None, display_name: 'str' =None, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placements: 'list[V1DeploymentTemplateParameterPlacement]' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
|
|
68
72
|
"""V1DeploymentTemplateParameter - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._data_path = None
|
|
74
|
+
self._display_name = None
|
|
69
75
|
self._input = None
|
|
70
76
|
self._long_description = None
|
|
71
77
|
self._name = None
|
|
72
|
-
self.
|
|
78
|
+
self._placements = None
|
|
73
79
|
self._readonly = None
|
|
74
80
|
self._required = None
|
|
75
81
|
self._select = None
|
|
76
82
|
self._short_description = None
|
|
77
83
|
self._type = None
|
|
78
84
|
self.discriminator = None
|
|
85
|
+
if data_path is not None:
|
|
86
|
+
self.data_path = data_path
|
|
87
|
+
if display_name is not None:
|
|
88
|
+
self.display_name = display_name
|
|
79
89
|
if input is not None:
|
|
80
90
|
self.input = input
|
|
81
91
|
if long_description is not None:
|
|
82
92
|
self.long_description = long_description
|
|
83
93
|
if name is not None:
|
|
84
94
|
self.name = name
|
|
85
|
-
if
|
|
86
|
-
self.
|
|
95
|
+
if placements is not None:
|
|
96
|
+
self.placements = placements
|
|
87
97
|
if readonly is not None:
|
|
88
98
|
self.readonly = readonly
|
|
89
99
|
if required is not None:
|
|
@@ -95,6 +105,48 @@ class V1DeploymentTemplateParameter(object):
|
|
|
95
105
|
if type is not None:
|
|
96
106
|
self.type = type
|
|
97
107
|
|
|
108
|
+
@property
|
|
109
|
+
def data_path(self) -> 'V1DataPath':
|
|
110
|
+
"""Gets the data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
114
|
+
:rtype: V1DataPath
|
|
115
|
+
"""
|
|
116
|
+
return self._data_path
|
|
117
|
+
|
|
118
|
+
@data_path.setter
|
|
119
|
+
def data_path(self, data_path: 'V1DataPath'):
|
|
120
|
+
"""Sets the data_path of this V1DeploymentTemplateParameter.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param data_path: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
124
|
+
:type: V1DataPath
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._data_path = data_path
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def display_name(self) -> 'str':
|
|
131
|
+
"""Gets the display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._display_name
|
|
138
|
+
|
|
139
|
+
@display_name.setter
|
|
140
|
+
def display_name(self, display_name: 'str'):
|
|
141
|
+
"""Sets the display_name of this V1DeploymentTemplateParameter.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param display_name: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
145
|
+
:type: str
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._display_name = display_name
|
|
149
|
+
|
|
98
150
|
@property
|
|
99
151
|
def input(self) -> 'V1Input':
|
|
100
152
|
"""Gets the input of this V1DeploymentTemplateParameter. # noqa: E501
|
|
@@ -159,25 +211,25 @@ class V1DeploymentTemplateParameter(object):
|
|
|
159
211
|
self._name = name
|
|
160
212
|
|
|
161
213
|
@property
|
|
162
|
-
def
|
|
163
|
-
"""Gets the
|
|
214
|
+
def placements(self) -> 'list[V1DeploymentTemplateParameterPlacement]':
|
|
215
|
+
"""Gets the placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
164
216
|
|
|
165
217
|
|
|
166
|
-
:return: The
|
|
167
|
-
:rtype: V1DeploymentTemplateParameterPlacement
|
|
218
|
+
:return: The placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
219
|
+
:rtype: list[V1DeploymentTemplateParameterPlacement]
|
|
168
220
|
"""
|
|
169
|
-
return self.
|
|
221
|
+
return self._placements
|
|
170
222
|
|
|
171
|
-
@
|
|
172
|
-
def
|
|
173
|
-
"""Sets the
|
|
223
|
+
@placements.setter
|
|
224
|
+
def placements(self, placements: 'list[V1DeploymentTemplateParameterPlacement]'):
|
|
225
|
+
"""Sets the placements of this V1DeploymentTemplateParameter.
|
|
174
226
|
|
|
175
227
|
|
|
176
|
-
:param
|
|
177
|
-
:type: V1DeploymentTemplateParameterPlacement
|
|
228
|
+
:param placements: The placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
229
|
+
:type: list[V1DeploymentTemplateParameterPlacement]
|
|
178
230
|
"""
|
|
179
231
|
|
|
180
|
-
self.
|
|
232
|
+
self._placements = placements
|
|
181
233
|
|
|
182
234
|
@property
|
|
183
235
|
def readonly(self) -> 'bool':
|
|
@@ -54,6 +54,7 @@ class V1DeploymentTemplateSummary(object):
|
|
|
54
54
|
'name': 'str',
|
|
55
55
|
'org_id': 'str',
|
|
56
56
|
'project_id': 'str',
|
|
57
|
+
'thumbnail_url': 'str',
|
|
57
58
|
'unpublished': 'bool',
|
|
58
59
|
'updated_at': 'datetime',
|
|
59
60
|
'user_id': 'str',
|
|
@@ -74,13 +75,14 @@ class V1DeploymentTemplateSummary(object):
|
|
|
74
75
|
'name': 'name',
|
|
75
76
|
'org_id': 'orgId',
|
|
76
77
|
'project_id': 'projectId',
|
|
78
|
+
'thumbnail_url': 'thumbnailUrl',
|
|
77
79
|
'unpublished': 'unpublished',
|
|
78
80
|
'updated_at': 'updatedAt',
|
|
79
81
|
'user_id': 'userId',
|
|
80
82
|
'version': 'version'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
85
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
84
86
|
"""V1DeploymentTemplateSummary - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._about_page_content = None
|
|
86
88
|
self._about_page_id = None
|
|
@@ -95,6 +97,7 @@ class V1DeploymentTemplateSummary(object):
|
|
|
95
97
|
self._name = None
|
|
96
98
|
self._org_id = None
|
|
97
99
|
self._project_id = None
|
|
100
|
+
self._thumbnail_url = None
|
|
98
101
|
self._unpublished = None
|
|
99
102
|
self._updated_at = None
|
|
100
103
|
self._user_id = None
|
|
@@ -126,6 +129,8 @@ class V1DeploymentTemplateSummary(object):
|
|
|
126
129
|
self.org_id = org_id
|
|
127
130
|
if project_id is not None:
|
|
128
131
|
self.project_id = project_id
|
|
132
|
+
if thumbnail_url is not None:
|
|
133
|
+
self.thumbnail_url = thumbnail_url
|
|
129
134
|
if unpublished is not None:
|
|
130
135
|
self.unpublished = unpublished
|
|
131
136
|
if updated_at is not None:
|
|
@@ -408,6 +413,27 @@ class V1DeploymentTemplateSummary(object):
|
|
|
408
413
|
|
|
409
414
|
self._project_id = project_id
|
|
410
415
|
|
|
416
|
+
@property
|
|
417
|
+
def thumbnail_url(self) -> 'str':
|
|
418
|
+
"""Gets the thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:return: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
422
|
+
:rtype: str
|
|
423
|
+
"""
|
|
424
|
+
return self._thumbnail_url
|
|
425
|
+
|
|
426
|
+
@thumbnail_url.setter
|
|
427
|
+
def thumbnail_url(self, thumbnail_url: 'str'):
|
|
428
|
+
"""Sets the thumbnail_url of this V1DeploymentTemplateSummary.
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
:param thumbnail_url: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
432
|
+
:type: str
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
self._thumbnail_url = thumbnail_url
|
|
436
|
+
|
|
411
437
|
@property
|
|
412
438
|
def unpublished(self) -> 'bool':
|
|
413
439
|
"""Gets the unpublished of this V1DeploymentTemplateSummary. # noqa: E501
|