lightning-sdk 0.1.29__py3-none-any.whl → 0.1.31__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 (34) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/teamspace_api.py +35 -5
  3. lightning_sdk/cli/download.py +19 -2
  4. lightning_sdk/cli/models.py +38 -0
  5. lightning_sdk/cli/upload.py +21 -2
  6. lightning_sdk/lightning_cloud/openapi/__init__.py +4 -0
  7. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +4 -4
  8. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  9. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  10. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  11. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -2
  12. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -0
  13. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  14. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +43 -17
  16. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  17. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  18. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  19. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +17 -17
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +17 -17
  23. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -27
  28. lightning_sdk/teamspace.py +11 -0
  29. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/METADATA +1 -1
  30. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/RECORD +34 -29
  31. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/LICENSE +0 -0
  32. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/WHEEL +0 -0
  33. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/entry_points.txt +0 -0
  34. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,7 @@ class ProjectIdModelsBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'always_create': 'bool',
44
45
  'cluster_id': 'str',
45
46
  'metadata': 'dict(str, str)',
46
47
  'name': 'str',
@@ -48,19 +49,23 @@ class ProjectIdModelsBody(object):
48
49
  }
49
50
 
50
51
  attribute_map = {
52
+ 'always_create': 'alwaysCreate',
51
53
  'cluster_id': 'clusterId',
52
54
  'metadata': 'metadata',
53
55
  'name': 'name',
54
56
  'private': 'private'
55
57
  }
56
58
 
57
- def __init__(self, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
59
+ def __init__(self, always_create: 'bool' =None, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
58
60
  """ProjectIdModelsBody - a model defined in Swagger""" # noqa: E501
61
+ self._always_create = None
59
62
  self._cluster_id = None
60
63
  self._metadata = None
61
64
  self._name = None
62
65
  self._private = None
63
66
  self.discriminator = None
67
+ if always_create is not None:
68
+ self.always_create = always_create
64
69
  if cluster_id is not None:
65
70
  self.cluster_id = cluster_id
66
71
  if metadata is not None:
@@ -70,6 +75,27 @@ class ProjectIdModelsBody(object):
70
75
  if private is not None:
71
76
  self.private = private
72
77
 
78
+ @property
79
+ def always_create(self) -> 'bool':
80
+ """Gets the always_create of this ProjectIdModelsBody. # noqa: E501
81
+
82
+
83
+ :return: The always_create of this ProjectIdModelsBody. # noqa: E501
84
+ :rtype: bool
85
+ """
86
+ return self._always_create
87
+
88
+ @always_create.setter
89
+ def always_create(self, always_create: 'bool'):
90
+ """Sets the always_create of this ProjectIdModelsBody.
91
+
92
+
93
+ :param always_create: The always_create of this ProjectIdModelsBody. # noqa: E501
94
+ :type: bool
95
+ """
96
+
97
+ self._always_create = always_create
98
+
73
99
  @property
74
100
  def cluster_id(self) -> 'str':
75
101
  """Gets the cluster_id of this ProjectIdModelsBody. # noqa: E501
@@ -48,7 +48,7 @@ class V1CreateDeploymentTemplateRequest(object):
48
48
  'image_url': 'str',
49
49
  'name': 'str',
50
50
  'org_id': 'str',
51
- 'parameters': 'list[V1DeploymentTemplateParameter]',
51
+ 'parameter_spec': 'V1ParameterizationSpec',
52
52
  'project_id': 'str',
53
53
  'spec': 'str',
54
54
  'tags': 'list[V1ResourceTag]',
@@ -64,7 +64,7 @@ class V1CreateDeploymentTemplateRequest(object):
64
64
  'image_url': 'imageUrl',
65
65
  'name': 'name',
66
66
  'org_id': 'orgId',
67
- 'parameters': 'parameters',
67
+ 'parameter_spec': 'parameterSpec',
68
68
  'project_id': 'projectId',
69
69
  'spec': 'spec',
70
70
  'tags': 'tags',
@@ -72,7 +72,7 @@ class V1CreateDeploymentTemplateRequest(object):
72
72
  'visibility': 'visibility'
73
73
  }
74
74
 
75
- def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameters: 'list[V1DeploymentTemplateParameter]' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
75
+ def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
76
76
  """V1CreateDeploymentTemplateRequest - a model defined in Swagger""" # noqa: E501
77
77
  self._about_page_content = None
78
78
  self._categories = None
@@ -81,7 +81,7 @@ class V1CreateDeploymentTemplateRequest(object):
81
81
  self._image_url = None
82
82
  self._name = None
83
83
  self._org_id = None
84
- self._parameters = None
84
+ self._parameter_spec = None
85
85
  self._project_id = None
86
86
  self._spec = None
87
87
  self._tags = None
@@ -102,8 +102,8 @@ class V1CreateDeploymentTemplateRequest(object):
102
102
  self.name = name
103
103
  if org_id is not None:
104
104
  self.org_id = org_id
105
- if parameters is not None:
106
- self.parameters = parameters
105
+ if parameter_spec is not None:
106
+ self.parameter_spec = parameter_spec
107
107
  if project_id is not None:
108
108
  self.project_id = project_id
109
109
  if spec is not None:
@@ -263,25 +263,25 @@ class V1CreateDeploymentTemplateRequest(object):
263
263
  self._org_id = org_id
264
264
 
265
265
  @property
266
- def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
267
- """Gets the parameters of this V1CreateDeploymentTemplateRequest. # noqa: E501
266
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
267
+ """Gets the parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
268
268
 
269
269
 
270
- :return: The parameters of this V1CreateDeploymentTemplateRequest. # noqa: E501
271
- :rtype: list[V1DeploymentTemplateParameter]
270
+ :return: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
271
+ :rtype: V1ParameterizationSpec
272
272
  """
273
- return self._parameters
273
+ return self._parameter_spec
274
274
 
275
- @parameters.setter
276
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
277
- """Sets the parameters of this V1CreateDeploymentTemplateRequest.
275
+ @parameter_spec.setter
276
+ def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
277
+ """Sets the parameter_spec of this V1CreateDeploymentTemplateRequest.
278
278
 
279
279
 
280
- :param parameters: The parameters of this V1CreateDeploymentTemplateRequest. # noqa: E501
281
- :type: list[V1DeploymentTemplateParameter]
280
+ :param parameter_spec: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
281
+ :type: V1ParameterizationSpec
282
282
  """
283
283
 
284
- self._parameters = parameters
284
+ self._parameter_spec = parameter_spec
285
285
 
286
286
  @property
287
287
  def project_id(self) -> 'str':
@@ -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
@@ -53,7 +53,7 @@ class V1DeploymentTemplate(object):
53
53
  'image_url': 'str',
54
54
  'name': 'str',
55
55
  'org_id': 'str',
56
- 'parameters': 'list[V1DeploymentTemplateParameter]',
56
+ 'parameter_spec': 'V1ParameterizationSpec',
57
57
  'project_id': 'str',
58
58
  'spec': 'V1JobSpec',
59
59
  'spec_v2': 'V1DeploymentSpec',
@@ -76,7 +76,7 @@ class V1DeploymentTemplate(object):
76
76
  'image_url': 'imageUrl',
77
77
  'name': 'name',
78
78
  'org_id': 'orgId',
79
- 'parameters': 'parameters',
79
+ 'parameter_spec': 'parameterSpec',
80
80
  'project_id': 'projectId',
81
81
  'spec': 'spec',
82
82
  'spec_v2': 'specV2',
@@ -86,7 +86,7 @@ class V1DeploymentTemplate(object):
86
86
  'user_id': 'userId'
87
87
  }
88
88
 
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
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
90
90
  """V1DeploymentTemplate - a model defined in Swagger""" # noqa: E501
91
91
  self._about_page_content = None
92
92
  self._about_page_id = None
@@ -100,7 +100,7 @@ class V1DeploymentTemplate(object):
100
100
  self._image_url = None
101
101
  self._name = None
102
102
  self._org_id = None
103
- self._parameters = None
103
+ self._parameter_spec = None
104
104
  self._project_id = None
105
105
  self._spec = None
106
106
  self._spec_v2 = None
@@ -133,8 +133,8 @@ class V1DeploymentTemplate(object):
133
133
  self.name = name
134
134
  if org_id is not None:
135
135
  self.org_id = org_id
136
- if parameters is not None:
137
- self.parameters = parameters
136
+ if parameter_spec is not None:
137
+ self.parameter_spec = parameter_spec
138
138
  if project_id is not None:
139
139
  self.project_id = project_id
140
140
  if spec is not None:
@@ -403,25 +403,25 @@ class V1DeploymentTemplate(object):
403
403
  self._org_id = org_id
404
404
 
405
405
  @property
406
- def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
407
- """Gets the parameters of this V1DeploymentTemplate. # noqa: E501
406
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
407
+ """Gets the parameter_spec of this V1DeploymentTemplate. # noqa: E501
408
408
 
409
409
 
410
- :return: The parameters of this V1DeploymentTemplate. # noqa: E501
411
- :rtype: list[V1DeploymentTemplateParameter]
410
+ :return: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
411
+ :rtype: V1ParameterizationSpec
412
412
  """
413
- return self._parameters
413
+ return self._parameter_spec
414
414
 
415
- @parameters.setter
416
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
417
- """Sets the parameters of this V1DeploymentTemplate.
415
+ @parameter_spec.setter
416
+ def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
417
+ """Sets the parameter_spec of this V1DeploymentTemplate.
418
418
 
419
419
 
420
- :param parameters: The parameters of this V1DeploymentTemplate. # noqa: E501
421
- :type: list[V1DeploymentTemplateParameter]
420
+ :param parameter_spec: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
421
+ :type: V1ParameterizationSpec
422
422
  """
423
423
 
424
- self._parameters = parameters
424
+ self._parameter_spec = parameter_spec
425
425
 
426
426
  @property
427
427
  def project_id(self) -> 'str':
@@ -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 V1DeploymentTemplateEngagementResponse(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
+ """V1DeploymentTemplateEngagementResponse - 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(V1DeploymentTemplateEngagementResponse, 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: 'V1DeploymentTemplateEngagementResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1DeploymentTemplateEngagementResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1DeploymentTemplateEngagementResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -37,9 +37,11 @@ class V1DeploymentTemplateParameterPlacement(object):
37
37
  """
38
38
  allowed enum values
39
39
  """
40
+ UNSPECIFIED = "DEPLOYMENT_TEMPLATE_UNSPECIFIED"
40
41
  COMMAND = "DEPLOYMENT_TEMPLATE_COMMAND"
41
42
  ENV = "DEPLOYMENT_TEMPLATE_ENV"
42
43
  ENTRYPOINT = "DEPLOYMENT_TEMPLATE_ENTRYPOINT"
44
+ IMAGE = "DEPLOYMENT_TEMPLATE_IMAGE"
43
45
  """
44
46
  Attributes:
45
47
  swagger_types (dict): The key is attribute name
@@ -44,6 +44,7 @@ class V1ModelVersionArchive(object):
44
44
  'cluster_id': 'str',
45
45
  'created_at': 'datetime',
46
46
  'downloads': 'str',
47
+ 'index': 'int',
47
48
  'metadata': 'dict(str, str)',
48
49
  'model_id': 'str',
49
50
  'project_id': 'str',
@@ -57,6 +58,7 @@ class V1ModelVersionArchive(object):
57
58
  'cluster_id': 'clusterId',
58
59
  'created_at': 'createdAt',
59
60
  'downloads': 'downloads',
61
+ 'index': 'index',
60
62
  'metadata': 'metadata',
61
63
  'model_id': 'modelId',
62
64
  'project_id': 'projectId',
@@ -66,11 +68,12 @@ class V1ModelVersionArchive(object):
66
68
  'version': 'version'
67
69
  }
68
70
 
69
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
71
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, index: 'int' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
70
72
  """V1ModelVersionArchive - a model defined in Swagger""" # noqa: E501
71
73
  self._cluster_id = None
72
74
  self._created_at = None
73
75
  self._downloads = None
76
+ self._index = None
74
77
  self._metadata = None
75
78
  self._model_id = None
76
79
  self._project_id = None
@@ -85,6 +88,8 @@ class V1ModelVersionArchive(object):
85
88
  self.created_at = created_at
86
89
  if downloads is not None:
87
90
  self.downloads = downloads
91
+ if index is not None:
92
+ self.index = index
88
93
  if metadata is not None:
89
94
  self.metadata = metadata
90
95
  if model_id is not None:
@@ -163,6 +168,27 @@ class V1ModelVersionArchive(object):
163
168
 
164
169
  self._downloads = downloads
165
170
 
171
+ @property
172
+ def index(self) -> 'int':
173
+ """Gets the index of this V1ModelVersionArchive. # noqa: E501
174
+
175
+
176
+ :return: The index of this V1ModelVersionArchive. # noqa: E501
177
+ :rtype: int
178
+ """
179
+ return self._index
180
+
181
+ @index.setter
182
+ def index(self, index: 'int'):
183
+ """Sets the index of this V1ModelVersionArchive.
184
+
185
+
186
+ :param index: The index of this V1ModelVersionArchive. # noqa: E501
187
+ :type: int
188
+ """
189
+
190
+ self._index = index
191
+
166
192
  @property
167
193
  def metadata(self) -> 'dict(str, str)':
168
194
  """Gets the metadata of this V1ModelVersionArchive. # noqa: E501