lightning-sdk 0.1.30__py3-none-any.whl → 0.1.32__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.
Files changed (80) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +29 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +15 -0
  5. lightning_sdk/api/teamspace_api.py +35 -5
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/cli/upload.py +10 -6
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
  11. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  12. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  13. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  14. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
  22. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  23. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  24. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  65. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
  71. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  72. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  73. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  74. lightning_sdk/teamspace.py +11 -0
  75. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
  77. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.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 V1DataPath(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
+ 'single_file': 'bool',
45
+ 'stored_path': 'str',
46
+ 'target_path': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'single_file': 'singleFile',
51
+ 'stored_path': 'storedPath',
52
+ 'target_path': 'targetPath'
53
+ }
54
+
55
+ def __init__(self, single_file: 'bool' =None, stored_path: 'str' =None, target_path: 'str' =None): # noqa: E501
56
+ """V1DataPath - a model defined in Swagger""" # noqa: E501
57
+ self._single_file = None
58
+ self._stored_path = None
59
+ self._target_path = None
60
+ self.discriminator = None
61
+ if single_file is not None:
62
+ self.single_file = single_file
63
+ if stored_path is not None:
64
+ self.stored_path = stored_path
65
+ if target_path is not None:
66
+ self.target_path = target_path
67
+
68
+ @property
69
+ def single_file(self) -> 'bool':
70
+ """Gets the single_file of this V1DataPath. # noqa: E501
71
+
72
+
73
+ :return: The single_file of this V1DataPath. # noqa: E501
74
+ :rtype: bool
75
+ """
76
+ return self._single_file
77
+
78
+ @single_file.setter
79
+ def single_file(self, single_file: 'bool'):
80
+ """Sets the single_file of this V1DataPath.
81
+
82
+
83
+ :param single_file: The single_file of this V1DataPath. # noqa: E501
84
+ :type: bool
85
+ """
86
+
87
+ self._single_file = single_file
88
+
89
+ @property
90
+ def stored_path(self) -> 'str':
91
+ """Gets the stored_path of this V1DataPath. # noqa: E501
92
+
93
+
94
+ :return: The stored_path of this V1DataPath. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._stored_path
98
+
99
+ @stored_path.setter
100
+ def stored_path(self, stored_path: 'str'):
101
+ """Sets the stored_path of this V1DataPath.
102
+
103
+
104
+ :param stored_path: The stored_path of this V1DataPath. # noqa: E501
105
+ :type: str
106
+ """
107
+
108
+ self._stored_path = stored_path
109
+
110
+ @property
111
+ def target_path(self) -> 'str':
112
+ """Gets the target_path of this V1DataPath. # noqa: E501
113
+
114
+
115
+ :return: The target_path of this V1DataPath. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._target_path
119
+
120
+ @target_path.setter
121
+ def target_path(self, target_path: 'str'):
122
+ """Sets the target_path of this V1DataPath.
123
+
124
+
125
+ :param target_path: The target_path of this V1DataPath. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._target_path = target_path
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(V1DataPath, 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: 'V1DataPath') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1DataPath):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1DataPath') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class 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
@@ -46,6 +46,7 @@ class V1Deployment(object):
46
46
  'desired_state': 'V1DeploymentState',
47
47
  'endpoint': 'V1Endpoint',
48
48
  'id': 'str',
49
+ 'is_published': 'bool',
49
50
  'name': 'str',
50
51
  'project_id': 'str',
51
52
  'release_id': 'str',
@@ -63,6 +64,7 @@ class V1Deployment(object):
63
64
  'desired_state': 'desiredState',
64
65
  'endpoint': 'endpoint',
65
66
  'id': 'id',
67
+ 'is_published': 'isPublished',
66
68
  'name': 'name',
67
69
  'project_id': 'projectId',
68
70
  'release_id': 'releaseId',
@@ -74,13 +76,14 @@ class V1Deployment(object):
74
76
  'user_id': 'userId'
75
77
  }
76
78
 
77
- def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =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
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
78
80
  """V1Deployment - a model defined in Swagger""" # noqa: E501
79
81
  self._autoscaling = None
80
82
  self._created_at = None
81
83
  self._desired_state = None
82
84
  self._endpoint = None
83
85
  self._id = None
86
+ self._is_published = None
84
87
  self._name = None
85
88
  self._project_id = None
86
89
  self._release_id = None
@@ -101,6 +104,8 @@ class V1Deployment(object):
101
104
  self.endpoint = endpoint
102
105
  if id is not None:
103
106
  self.id = id
107
+ if is_published is not None:
108
+ self.is_published = is_published
104
109
  if name is not None:
105
110
  self.name = name
106
111
  if project_id is not None:
@@ -225,6 +230,27 @@ class V1Deployment(object):
225
230
 
226
231
  self._id = id
227
232
 
233
+ @property
234
+ def is_published(self) -> 'bool':
235
+ """Gets the is_published of this V1Deployment. # noqa: E501
236
+
237
+
238
+ :return: The is_published of this V1Deployment. # noqa: E501
239
+ :rtype: bool
240
+ """
241
+ return self._is_published
242
+
243
+ @is_published.setter
244
+ def is_published(self, is_published: 'bool'):
245
+ """Sets the is_published of this V1Deployment.
246
+
247
+
248
+ :param is_published: The is_published of this V1Deployment. # noqa: E501
249
+ :type: bool
250
+ """
251
+
252
+ self._is_published = is_published
253
+
228
254
  @property
229
255
  def name(self) -> 'str':
230
256
  """Gets the name 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,13 +51,16 @@ 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
- 'parameters': 'list[V1DeploymentTemplateParameter]',
57
+ 'parameter_spec': 'V1ParameterizationSpec',
57
58
  'project_id': 'str',
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,19 +77,22 @@ 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
- 'parameters': 'parameters',
83
+ 'parameter_spec': 'parameterSpec',
80
84
  'project_id': 'projectId',
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, parameters: 'list[V1DeploymentTemplateParameter]' =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,13 +104,16 @@ 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
- self._parameters = None
110
+ self._parameter_spec = None
104
111
  self._project_id = None
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,12 +138,14 @@ 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:
135
146
  self.org_id = org_id
136
- if parameters is not None:
137
- self.parameters = parameters
147
+ if parameter_spec is not None:
148
+ self.parameter_spec = parameter_spec
138
149
  if project_id is not None:
139
150
  self.project_id = project_id
140
151
  if spec 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
@@ -403,25 +439,25 @@ class V1DeploymentTemplate(object):
403
439
  self._org_id = org_id
404
440
 
405
441
  @property
406
- def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
407
- """Gets the parameters of this V1DeploymentTemplate. # noqa: E501
442
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
443
+ """Gets the parameter_spec of this V1DeploymentTemplate. # noqa: E501
408
444
 
409
445
 
410
- :return: The parameters of this V1DeploymentTemplate. # noqa: E501
411
- :rtype: list[V1DeploymentTemplateParameter]
446
+ :return: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
447
+ :rtype: V1ParameterizationSpec
412
448
  """
413
- return self._parameters
449
+ return self._parameter_spec
414
450
 
415
- @parameters.setter
416
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
417
- """Sets the parameters of this V1DeploymentTemplate.
451
+ @parameter_spec.setter
452
+ def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
453
+ """Sets the parameter_spec of this V1DeploymentTemplate.
418
454
 
419
455
 
420
- :param parameters: The parameters of this V1DeploymentTemplate. # noqa: E501
421
- :type: list[V1DeploymentTemplateParameter]
456
+ :param parameter_spec: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
457
+ :type: V1ParameterizationSpec
422
458
  """
423
459
 
424
- self._parameters = parameters
460
+ self._parameter_spec = parameter_spec
425
461
 
426
462
  @property
427
463
  def project_id(self) -> 'str':
@@ -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