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.
Files changed (52) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +16 -27
  3. lightning_sdk/api/ai_hub_api.py +7 -1
  4. lightning_sdk/api/deployment_api.py +9 -1
  5. lightning_sdk/api/job_api.py +1 -1
  6. lightning_sdk/api/lit_container_api.py +2 -1
  7. lightning_sdk/cli/run.py +25 -20
  8. lightning_sdk/deployment/deployment.py +12 -3
  9. lightning_sdk/job/base.py +21 -0
  10. lightning_sdk/job/job.py +1 -12
  11. lightning_sdk/job/v1.py +1 -32
  12. lightning_sdk/job/v2.py +6 -1
  13. lightning_sdk/lightning_cloud/openapi/__init__.py +14 -0
  14. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
  15. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
  16. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
  17. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
  18. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
  19. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
  21. lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  43. lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
  44. lightning_sdk/mmt/mmt.py +8 -7
  45. lightning_sdk/plugin.py +5 -3
  46. lightning_sdk/studio.py +68 -1
  47. {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/METADATA +1 -1
  48. {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/RECORD +52 -38
  49. {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/LICENSE +0 -0
  50. {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/WHEEL +0 -0
  51. {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/entry_points.txt +0 -0
  52. {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 UsagerestrictionsIdBody(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
+ 'instance_type': 'str',
45
+ 'max_instances': 'int',
46
+ 'restriction_type': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'instance_type': 'instanceType',
51
+ 'max_instances': 'maxInstances',
52
+ 'restriction_type': 'restrictionType'
53
+ }
54
+
55
+ def __init__(self, instance_type: 'str' =None, max_instances: 'int' =None, restriction_type: 'str' =None): # noqa: E501
56
+ """UsagerestrictionsIdBody - a model defined in Swagger""" # noqa: E501
57
+ self._instance_type = None
58
+ self._max_instances = None
59
+ self._restriction_type = None
60
+ self.discriminator = None
61
+ if instance_type is not None:
62
+ self.instance_type = instance_type
63
+ if max_instances is not None:
64
+ self.max_instances = max_instances
65
+ if restriction_type is not None:
66
+ self.restriction_type = restriction_type
67
+
68
+ @property
69
+ def instance_type(self) -> 'str':
70
+ """Gets the instance_type of this UsagerestrictionsIdBody. # noqa: E501
71
+
72
+
73
+ :return: The instance_type of this UsagerestrictionsIdBody. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._instance_type
77
+
78
+ @instance_type.setter
79
+ def instance_type(self, instance_type: 'str'):
80
+ """Sets the instance_type of this UsagerestrictionsIdBody.
81
+
82
+
83
+ :param instance_type: The instance_type of this UsagerestrictionsIdBody. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._instance_type = instance_type
88
+
89
+ @property
90
+ def max_instances(self) -> 'int':
91
+ """Gets the max_instances of this UsagerestrictionsIdBody. # noqa: E501
92
+
93
+
94
+ :return: The max_instances of this UsagerestrictionsIdBody. # noqa: E501
95
+ :rtype: int
96
+ """
97
+ return self._max_instances
98
+
99
+ @max_instances.setter
100
+ def max_instances(self, max_instances: 'int'):
101
+ """Sets the max_instances of this UsagerestrictionsIdBody.
102
+
103
+
104
+ :param max_instances: The max_instances of this UsagerestrictionsIdBody. # noqa: E501
105
+ :type: int
106
+ """
107
+
108
+ self._max_instances = max_instances
109
+
110
+ @property
111
+ def restriction_type(self) -> 'str':
112
+ """Gets the restriction_type of this UsagerestrictionsIdBody. # noqa: E501
113
+
114
+
115
+ :return: The restriction_type of this UsagerestrictionsIdBody. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._restriction_type
119
+
120
+ @restriction_type.setter
121
+ def restriction_type(self, restriction_type: 'str'):
122
+ """Sets the restriction_type of this UsagerestrictionsIdBody.
123
+
124
+
125
+ :param restriction_type: The restriction_type of this UsagerestrictionsIdBody. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._restriction_type = restriction_type
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(UsagerestrictionsIdBody, 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: 'UsagerestrictionsIdBody') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, UsagerestrictionsIdBody):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'UsagerestrictionsIdBody') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -40,6 +40,10 @@ class V1AssistantModelStatus(object):
40
40
  UNKNOWN_STATUS = "UNKNOWN_STATUS"
41
41
  ONLINE = "ONLINE"
42
42
  OFFLINE = "OFFLINE"
43
+ MODEL_DELETED = "MODEL_DELETED"
44
+ PENDING = "PENDING"
45
+ ENDPOINT_DELETED = "ENDPOINT_DELETED"
46
+ STOPPED = "STOPPED"
43
47
  """
44
48
  Attributes:
45
49
  swagger_types (dict): The key is attribute name
@@ -0,0 +1,104 @@
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 V1CloudProvider(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
+ """
38
+ allowed enum values
39
+ """
40
+ AWS = "AWS"
41
+ GCP = "GCP"
42
+ VULTR = "VULTR"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1CloudProvider - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1CloudProvider, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1CloudProvider') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1CloudProvider):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1CloudProvider') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other
@@ -0,0 +1,149 @@
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 V1CloudSpaceArtifactEvent(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
+ 'event_type': 'V1CloudSpaceArtifactEventType',
45
+ 'path': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'event_type': 'eventType',
50
+ 'path': 'path'
51
+ }
52
+
53
+ def __init__(self, event_type: 'V1CloudSpaceArtifactEventType' =None, path: 'str' =None): # noqa: E501
54
+ """V1CloudSpaceArtifactEvent - a model defined in Swagger""" # noqa: E501
55
+ self._event_type = None
56
+ self._path = None
57
+ self.discriminator = None
58
+ if event_type is not None:
59
+ self.event_type = event_type
60
+ if path is not None:
61
+ self.path = path
62
+
63
+ @property
64
+ def event_type(self) -> 'V1CloudSpaceArtifactEventType':
65
+ """Gets the event_type of this V1CloudSpaceArtifactEvent. # noqa: E501
66
+
67
+
68
+ :return: The event_type of this V1CloudSpaceArtifactEvent. # noqa: E501
69
+ :rtype: V1CloudSpaceArtifactEventType
70
+ """
71
+ return self._event_type
72
+
73
+ @event_type.setter
74
+ def event_type(self, event_type: 'V1CloudSpaceArtifactEventType'):
75
+ """Sets the event_type of this V1CloudSpaceArtifactEvent.
76
+
77
+
78
+ :param event_type: The event_type of this V1CloudSpaceArtifactEvent. # noqa: E501
79
+ :type: V1CloudSpaceArtifactEventType
80
+ """
81
+
82
+ self._event_type = event_type
83
+
84
+ @property
85
+ def path(self) -> 'str':
86
+ """Gets the path of this V1CloudSpaceArtifactEvent. # noqa: E501
87
+
88
+
89
+ :return: The path of this V1CloudSpaceArtifactEvent. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._path
93
+
94
+ @path.setter
95
+ def path(self, path: 'str'):
96
+ """Sets the path of this V1CloudSpaceArtifactEvent.
97
+
98
+
99
+ :param path: The path of this V1CloudSpaceArtifactEvent. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._path = path
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1CloudSpaceArtifactEvent, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1CloudSpaceArtifactEvent') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1CloudSpaceArtifactEvent):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1CloudSpaceArtifactEvent') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -0,0 +1,103 @@
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 V1CloudSpaceArtifactEventType(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
+ """
38
+ allowed enum values
39
+ """
40
+ CREATED = "CLOUD_SPACE_ARTIFACT_EVENT_TYPE_CREATED"
41
+ DELETED = "CLOUD_SPACE_ARTIFACT_EVENT_TYPE_DELETED"
42
+ """
43
+ Attributes:
44
+ swagger_types (dict): The key is attribute name
45
+ and the value is attribute type.
46
+ attribute_map (dict): The key is attribute name
47
+ and the value is json key in definition.
48
+ """
49
+ swagger_types = {
50
+ }
51
+
52
+ attribute_map = {
53
+ }
54
+
55
+ def __init__(self): # noqa: E501
56
+ """V1CloudSpaceArtifactEventType - a model defined in Swagger""" # noqa: E501
57
+ self.discriminator = None
58
+
59
+ def to_dict(self) -> dict:
60
+ """Returns the model properties as a dict"""
61
+ result = {}
62
+
63
+ for attr, _ in six.iteritems(self.swagger_types):
64
+ value = getattr(self, attr)
65
+ if isinstance(value, list):
66
+ result[attr] = list(map(
67
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
68
+ value
69
+ ))
70
+ elif hasattr(value, "to_dict"):
71
+ result[attr] = value.to_dict()
72
+ elif isinstance(value, dict):
73
+ result[attr] = dict(map(
74
+ lambda item: (item[0], item[1].to_dict())
75
+ if hasattr(item[1], "to_dict") else item,
76
+ value.items()
77
+ ))
78
+ else:
79
+ result[attr] = value
80
+ if issubclass(V1CloudSpaceArtifactEventType, dict):
81
+ for key, value in self.items():
82
+ result[key] = value
83
+
84
+ return result
85
+
86
+ def to_str(self) -> str:
87
+ """Returns the string representation of the model"""
88
+ return pprint.pformat(self.to_dict())
89
+
90
+ def __repr__(self) -> str:
91
+ """For `print` and `pprint`"""
92
+ return self.to_str()
93
+
94
+ def __eq__(self, other: 'V1CloudSpaceArtifactEventType') -> bool:
95
+ """Returns true if both objects are equal"""
96
+ if not isinstance(other, V1CloudSpaceArtifactEventType):
97
+ return False
98
+
99
+ return self.__dict__ == other.__dict__
100
+
101
+ def __ne__(self, other: 'V1CloudSpaceArtifactEventType') -> bool:
102
+ """Returns true if both objects are not equal"""
103
+ return not self == other
@@ -77,7 +77,10 @@ class V1ClusterAccelerator(object):
77
77
  'reservation_available_zones': 'list[str]',
78
78
  'resources': 'V1Resources',
79
79
  'slug': 'str',
80
- 'spot_price': 'float'
80
+ 'spot_price': 'float',
81
+ 'spot_quota_code': 'str',
82
+ 'spot_quota_name': 'str',
83
+ 'spot_quota_page_url': 'str'
81
84
  }
82
85
 
83
86
  attribute_map = {
@@ -117,10 +120,13 @@ class V1ClusterAccelerator(object):
117
120
  'reservation_available_zones': 'reservationAvailableZones',
118
121
  'resources': 'resources',
119
122
  'slug': 'slug',
120
- 'spot_price': 'spotPrice'
123
+ 'spot_price': 'spotPrice',
124
+ 'spot_quota_code': 'spotQuotaCode',
125
+ 'spot_quota_name': 'spotQuotaName',
126
+ 'spot_quota_page_url': 'spotQuotaPageUrl'
121
127
  }
122
128
 
123
- def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
129
+ def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None, spot_quota_code: 'str' =None, spot_quota_name: 'str' =None, spot_quota_page_url: 'str' =None): # noqa: E501
124
130
  """V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
125
131
  self._accelerator_type = None
126
132
  self._allowed_resources = None
@@ -159,6 +165,9 @@ class V1ClusterAccelerator(object):
159
165
  self._resources = None
160
166
  self._slug = None
161
167
  self._spot_price = None
168
+ self._spot_quota_code = None
169
+ self._spot_quota_name = None
170
+ self._spot_quota_page_url = None
162
171
  self.discriminator = None
163
172
  if accelerator_type is not None:
164
173
  self.accelerator_type = accelerator_type
@@ -234,6 +243,12 @@ class V1ClusterAccelerator(object):
234
243
  self.slug = slug
235
244
  if spot_price is not None:
236
245
  self.spot_price = spot_price
246
+ if spot_quota_code is not None:
247
+ self.spot_quota_code = spot_quota_code
248
+ if spot_quota_name is not None:
249
+ self.spot_quota_name = spot_quota_name
250
+ if spot_quota_page_url is not None:
251
+ self.spot_quota_page_url = spot_quota_page_url
237
252
 
238
253
  @property
239
254
  def accelerator_type(self) -> 'str':
@@ -1012,6 +1027,69 @@ class V1ClusterAccelerator(object):
1012
1027
 
1013
1028
  self._spot_price = spot_price
1014
1029
 
1030
+ @property
1031
+ def spot_quota_code(self) -> 'str':
1032
+ """Gets the spot_quota_code of this V1ClusterAccelerator. # noqa: E501
1033
+
1034
+
1035
+ :return: The spot_quota_code of this V1ClusterAccelerator. # noqa: E501
1036
+ :rtype: str
1037
+ """
1038
+ return self._spot_quota_code
1039
+
1040
+ @spot_quota_code.setter
1041
+ def spot_quota_code(self, spot_quota_code: 'str'):
1042
+ """Sets the spot_quota_code of this V1ClusterAccelerator.
1043
+
1044
+
1045
+ :param spot_quota_code: The spot_quota_code of this V1ClusterAccelerator. # noqa: E501
1046
+ :type: str
1047
+ """
1048
+
1049
+ self._spot_quota_code = spot_quota_code
1050
+
1051
+ @property
1052
+ def spot_quota_name(self) -> 'str':
1053
+ """Gets the spot_quota_name of this V1ClusterAccelerator. # noqa: E501
1054
+
1055
+
1056
+ :return: The spot_quota_name of this V1ClusterAccelerator. # noqa: E501
1057
+ :rtype: str
1058
+ """
1059
+ return self._spot_quota_name
1060
+
1061
+ @spot_quota_name.setter
1062
+ def spot_quota_name(self, spot_quota_name: 'str'):
1063
+ """Sets the spot_quota_name of this V1ClusterAccelerator.
1064
+
1065
+
1066
+ :param spot_quota_name: The spot_quota_name of this V1ClusterAccelerator. # noqa: E501
1067
+ :type: str
1068
+ """
1069
+
1070
+ self._spot_quota_name = spot_quota_name
1071
+
1072
+ @property
1073
+ def spot_quota_page_url(self) -> 'str':
1074
+ """Gets the spot_quota_page_url of this V1ClusterAccelerator. # noqa: E501
1075
+
1076
+
1077
+ :return: The spot_quota_page_url of this V1ClusterAccelerator. # noqa: E501
1078
+ :rtype: str
1079
+ """
1080
+ return self._spot_quota_page_url
1081
+
1082
+ @spot_quota_page_url.setter
1083
+ def spot_quota_page_url(self, spot_quota_page_url: 'str'):
1084
+ """Sets the spot_quota_page_url of this V1ClusterAccelerator.
1085
+
1086
+
1087
+ :param spot_quota_page_url: The spot_quota_page_url of this V1ClusterAccelerator. # noqa: E501
1088
+ :type: str
1089
+ """
1090
+
1091
+ self._spot_quota_page_url = spot_quota_page_url
1092
+
1015
1093
  def to_dict(self) -> dict:
1016
1094
  """Returns the model properties as a dict"""
1017
1095
  result = {}