lightning-sdk 2026.1.22__py3-none-any.whl → 2026.1.30__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/__version__.py +1 -1
- lightning_sdk/api/studio_api.py +38 -39
- lightning_sdk/api/teamspace_api.py +189 -72
- lightning_sdk/api/utils.py +69 -1
- lightning_sdk/cli/cp/__init__.py +14 -11
- lightning_sdk/cli/cp/teamspace_uploads.py +95 -0
- lightning_sdk/cli/legacy/download.py +29 -98
- lightning_sdk/cli/legacy/upload.py +24 -31
- lightning_sdk/cli/studio/cp.py +8 -5
- lightning_sdk/cli/studio/ls.py +1 -1
- lightning_sdk/cli/studio/rm.py +1 -1
- lightning_sdk/cli/utils/{studio_filesystem.py → filesystem.py} +49 -6
- lightning_sdk/exceptions.py +27 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +17 -12
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +286 -468
- lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +579 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -12
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → cluster_service_get_cluster_capacity_reservation_body.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → container_registry_config_ecr.py} +49 -23
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
- lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/jobs_service_duplicate_deployment_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_container_registry_scopes.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_create_container_registry_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_org_cluster_capacity_reservation_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → v1_get_cluster_capacity_reservation_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → v1_mithril_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_container_registry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -105
- lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
- lightning_sdk/teamspace.py +28 -7
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/METADATA +1 -1
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/RECORD +59 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +0 -201
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/LICENSE +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/WHEEL +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/top_level.txt +0 -0
lightning_sdk/lightning_cloud/openapi/models/v1_delete_org_cluster_capacity_reservation_response.py
ADDED
|
@@ -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 V1DeleteOrgClusterCapacityReservationResponse(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
|
+
"""V1DeleteOrgClusterCapacityReservationResponse - 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(V1DeleteOrgClusterCapacityReservationResponse, 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: 'V1DeleteOrgClusterCapacityReservationResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteOrgClusterCapacityReservationResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteOrgClusterCapacityReservationResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -0,0 +1,201 @@
|
|
|
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 V1DescribeOrgClusterCapacityReservationResponse(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'id': 'str',
|
|
45
|
+
'num_instances': 'int',
|
|
46
|
+
'num_instances_available': 'int',
|
|
47
|
+
'state': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'id': 'id',
|
|
52
|
+
'num_instances': 'numInstances',
|
|
53
|
+
'num_instances_available': 'numInstancesAvailable',
|
|
54
|
+
'state': 'state'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, id: 'str' =None, num_instances: 'int' =None, num_instances_available: 'int' =None, state: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1DescribeOrgClusterCapacityReservationResponse - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._id = None
|
|
60
|
+
self._num_instances = None
|
|
61
|
+
self._num_instances_available = None
|
|
62
|
+
self._state = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if id is not None:
|
|
65
|
+
self.id = id
|
|
66
|
+
if num_instances is not None:
|
|
67
|
+
self.num_instances = num_instances
|
|
68
|
+
if num_instances_available is not None:
|
|
69
|
+
self.num_instances_available = num_instances_available
|
|
70
|
+
if state is not None:
|
|
71
|
+
self.state = state
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def id(self) -> 'str':
|
|
75
|
+
"""Gets the id of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The id of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._id
|
|
82
|
+
|
|
83
|
+
@id.setter
|
|
84
|
+
def id(self, id: 'str'):
|
|
85
|
+
"""Sets the id of this V1DescribeOrgClusterCapacityReservationResponse.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param id: The id of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._id = id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def num_instances(self) -> 'int':
|
|
96
|
+
"""Gets the num_instances of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The num_instances of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
100
|
+
:rtype: int
|
|
101
|
+
"""
|
|
102
|
+
return self._num_instances
|
|
103
|
+
|
|
104
|
+
@num_instances.setter
|
|
105
|
+
def num_instances(self, num_instances: 'int'):
|
|
106
|
+
"""Sets the num_instances of this V1DescribeOrgClusterCapacityReservationResponse.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param num_instances: The num_instances of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
110
|
+
:type: int
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._num_instances = num_instances
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def num_instances_available(self) -> 'int':
|
|
117
|
+
"""Gets the num_instances_available of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The num_instances_available of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._num_instances_available
|
|
124
|
+
|
|
125
|
+
@num_instances_available.setter
|
|
126
|
+
def num_instances_available(self, num_instances_available: 'int'):
|
|
127
|
+
"""Sets the num_instances_available of this V1DescribeOrgClusterCapacityReservationResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param num_instances_available: The num_instances_available of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
131
|
+
:type: int
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._num_instances_available = num_instances_available
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def state(self) -> 'str':
|
|
138
|
+
"""Gets the state of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The state of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._state
|
|
145
|
+
|
|
146
|
+
@state.setter
|
|
147
|
+
def state(self, state: 'str'):
|
|
148
|
+
"""Sets the state of this V1DescribeOrgClusterCapacityReservationResponse.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param state: The state of this V1DescribeOrgClusterCapacityReservationResponse. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._state = state
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1DescribeOrgClusterCapacityReservationResponse, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1DescribeOrgClusterCapacityReservationResponse') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1DescribeOrgClusterCapacityReservationResponse):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1DescribeOrgClusterCapacityReservationResponse') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -42,8 +42,11 @@ class V1GenericJobSpec(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'image': 'str',
|
|
45
|
+
'instance_type': 'str',
|
|
45
46
|
'lock_out': 'bool',
|
|
46
47
|
'managed': 'bool',
|
|
48
|
+
'num_instances': 'int',
|
|
49
|
+
'reserved': 'bool',
|
|
47
50
|
'service_id': 'str',
|
|
48
51
|
'spot': 'bool',
|
|
49
52
|
'template_id': 'str'
|
|
@@ -51,28 +54,40 @@ class V1GenericJobSpec(object):
|
|
|
51
54
|
|
|
52
55
|
attribute_map = {
|
|
53
56
|
'image': 'image',
|
|
57
|
+
'instance_type': 'instanceType',
|
|
54
58
|
'lock_out': 'lockOut',
|
|
55
59
|
'managed': 'managed',
|
|
60
|
+
'num_instances': 'numInstances',
|
|
61
|
+
'reserved': 'reserved',
|
|
56
62
|
'service_id': 'serviceId',
|
|
57
63
|
'spot': 'spot',
|
|
58
64
|
'template_id': 'templateId'
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
def __init__(self, image: 'str' =None, lock_out: 'bool' =None, managed: 'bool' =None, service_id: 'str' =None, spot: 'bool' =None, template_id: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, image: 'str' =None, instance_type: 'str' =None, lock_out: 'bool' =None, managed: 'bool' =None, num_instances: 'int' =None, reserved: 'bool' =None, service_id: 'str' =None, spot: 'bool' =None, template_id: 'str' =None): # noqa: E501
|
|
62
68
|
"""V1GenericJobSpec - a model defined in Swagger""" # noqa: E501
|
|
63
69
|
self._image = None
|
|
70
|
+
self._instance_type = None
|
|
64
71
|
self._lock_out = None
|
|
65
72
|
self._managed = None
|
|
73
|
+
self._num_instances = None
|
|
74
|
+
self._reserved = None
|
|
66
75
|
self._service_id = None
|
|
67
76
|
self._spot = None
|
|
68
77
|
self._template_id = None
|
|
69
78
|
self.discriminator = None
|
|
70
79
|
if image is not None:
|
|
71
80
|
self.image = image
|
|
81
|
+
if instance_type is not None:
|
|
82
|
+
self.instance_type = instance_type
|
|
72
83
|
if lock_out is not None:
|
|
73
84
|
self.lock_out = lock_out
|
|
74
85
|
if managed is not None:
|
|
75
86
|
self.managed = managed
|
|
87
|
+
if num_instances is not None:
|
|
88
|
+
self.num_instances = num_instances
|
|
89
|
+
if reserved is not None:
|
|
90
|
+
self.reserved = reserved
|
|
76
91
|
if service_id is not None:
|
|
77
92
|
self.service_id = service_id
|
|
78
93
|
if spot is not None:
|
|
@@ -101,6 +116,27 @@ class V1GenericJobSpec(object):
|
|
|
101
116
|
|
|
102
117
|
self._image = image
|
|
103
118
|
|
|
119
|
+
@property
|
|
120
|
+
def instance_type(self) -> 'str':
|
|
121
|
+
"""Gets the instance_type of this V1GenericJobSpec. # noqa: E501
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:return: The instance_type of this V1GenericJobSpec. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._instance_type
|
|
128
|
+
|
|
129
|
+
@instance_type.setter
|
|
130
|
+
def instance_type(self, instance_type: 'str'):
|
|
131
|
+
"""Sets the instance_type of this V1GenericJobSpec.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param instance_type: The instance_type of this V1GenericJobSpec. # noqa: E501
|
|
135
|
+
:type: str
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
self._instance_type = instance_type
|
|
139
|
+
|
|
104
140
|
@property
|
|
105
141
|
def lock_out(self) -> 'bool':
|
|
106
142
|
"""Gets the lock_out of this V1GenericJobSpec. # noqa: E501
|
|
@@ -143,6 +179,48 @@ class V1GenericJobSpec(object):
|
|
|
143
179
|
|
|
144
180
|
self._managed = managed
|
|
145
181
|
|
|
182
|
+
@property
|
|
183
|
+
def num_instances(self) -> 'int':
|
|
184
|
+
"""Gets the num_instances of this V1GenericJobSpec. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The num_instances of this V1GenericJobSpec. # noqa: E501
|
|
188
|
+
:rtype: int
|
|
189
|
+
"""
|
|
190
|
+
return self._num_instances
|
|
191
|
+
|
|
192
|
+
@num_instances.setter
|
|
193
|
+
def num_instances(self, num_instances: 'int'):
|
|
194
|
+
"""Sets the num_instances of this V1GenericJobSpec.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param num_instances: The num_instances of this V1GenericJobSpec. # noqa: E501
|
|
198
|
+
:type: int
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._num_instances = num_instances
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def reserved(self) -> 'bool':
|
|
205
|
+
"""Gets the reserved of this V1GenericJobSpec. # noqa: E501
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:return: The reserved of this V1GenericJobSpec. # noqa: E501
|
|
209
|
+
:rtype: bool
|
|
210
|
+
"""
|
|
211
|
+
return self._reserved
|
|
212
|
+
|
|
213
|
+
@reserved.setter
|
|
214
|
+
def reserved(self, reserved: 'bool'):
|
|
215
|
+
"""Sets the reserved of this V1GenericJobSpec.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param reserved: The reserved of this V1GenericJobSpec. # noqa: E501
|
|
219
|
+
:type: bool
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
self._reserved = reserved
|
|
223
|
+
|
|
146
224
|
@property
|
|
147
225
|
def service_id(self) -> 'str':
|
|
148
226
|
"""Gets the service_id of this V1GenericJobSpec. # noqa: E501
|
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1GetClusterCapacityReservationResponse(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -41,40 +41,40 @@ class V1AddContainerRegistryResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
44
|
+
'capacity_reservation': 'V1ClusterCapacityReservation'
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
attribute_map = {
|
|
48
|
-
'
|
|
48
|
+
'capacity_reservation': 'capacityReservation'
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
def __init__(self,
|
|
52
|
-
"""
|
|
53
|
-
self.
|
|
51
|
+
def __init__(self, capacity_reservation: 'V1ClusterCapacityReservation' =None): # noqa: E501
|
|
52
|
+
"""V1GetClusterCapacityReservationResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._capacity_reservation = None
|
|
54
54
|
self.discriminator = None
|
|
55
|
-
if
|
|
56
|
-
self.
|
|
55
|
+
if capacity_reservation is not None:
|
|
56
|
+
self.capacity_reservation = capacity_reservation
|
|
57
57
|
|
|
58
58
|
@property
|
|
59
|
-
def
|
|
60
|
-
"""Gets the
|
|
59
|
+
def capacity_reservation(self) -> 'V1ClusterCapacityReservation':
|
|
60
|
+
"""Gets the capacity_reservation of this V1GetClusterCapacityReservationResponse. # noqa: E501
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
:return: The
|
|
64
|
-
:rtype:
|
|
63
|
+
:return: The capacity_reservation of this V1GetClusterCapacityReservationResponse. # noqa: E501
|
|
64
|
+
:rtype: V1ClusterCapacityReservation
|
|
65
65
|
"""
|
|
66
|
-
return self.
|
|
66
|
+
return self._capacity_reservation
|
|
67
67
|
|
|
68
|
-
@
|
|
69
|
-
def
|
|
70
|
-
"""Sets the
|
|
68
|
+
@capacity_reservation.setter
|
|
69
|
+
def capacity_reservation(self, capacity_reservation: 'V1ClusterCapacityReservation'):
|
|
70
|
+
"""Sets the capacity_reservation of this V1GetClusterCapacityReservationResponse.
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
:param
|
|
74
|
-
:type:
|
|
73
|
+
:param capacity_reservation: The capacity_reservation of this V1GetClusterCapacityReservationResponse. # noqa: E501
|
|
74
|
+
:type: V1ClusterCapacityReservation
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
|
-
self.
|
|
77
|
+
self._capacity_reservation = capacity_reservation
|
|
78
78
|
|
|
79
79
|
def to_dict(self) -> dict:
|
|
80
80
|
"""Returns the model properties as a dict"""
|
|
@@ -97,7 +97,7 @@ class V1AddContainerRegistryResponse(object):
|
|
|
97
97
|
))
|
|
98
98
|
else:
|
|
99
99
|
result[attr] = value
|
|
100
|
-
if issubclass(
|
|
100
|
+
if issubclass(V1GetClusterCapacityReservationResponse, dict):
|
|
101
101
|
for key, value in self.items():
|
|
102
102
|
result[key] = value
|
|
103
103
|
|
|
@@ -111,13 +111,13 @@ class V1AddContainerRegistryResponse(object):
|
|
|
111
111
|
"""For `print` and `pprint`"""
|
|
112
112
|
return self.to_str()
|
|
113
113
|
|
|
114
|
-
def __eq__(self, other: '
|
|
114
|
+
def __eq__(self, other: 'V1GetClusterCapacityReservationResponse') -> bool:
|
|
115
115
|
"""Returns true if both objects are equal"""
|
|
116
|
-
if not isinstance(other,
|
|
116
|
+
if not isinstance(other, V1GetClusterCapacityReservationResponse):
|
|
117
117
|
return False
|
|
118
118
|
|
|
119
119
|
return self.__dict__ == other.__dict__
|
|
120
120
|
|
|
121
|
-
def __ne__(self, other: '
|
|
121
|
+
def __ne__(self, other: 'V1GetClusterCapacityReservationResponse') -> bool:
|
|
122
122
|
"""Returns true if both objects are not equal"""
|
|
123
123
|
return not self == other
|
|
@@ -41,6 +41,7 @@ class V1Job(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'capacity_reservation_id': 'str',
|
|
44
45
|
'created_at': 'datetime',
|
|
45
46
|
'deleted_at': 'datetime',
|
|
46
47
|
'deployment_id': 'str',
|
|
@@ -77,6 +78,7 @@ class V1Job(object):
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
attribute_map = {
|
|
81
|
+
'capacity_reservation_id': 'capacityReservationId',
|
|
80
82
|
'created_at': 'createdAt',
|
|
81
83
|
'deleted_at': 'deletedAt',
|
|
82
84
|
'deployment_id': 'deploymentId',
|
|
@@ -112,8 +114,9 @@ class V1Job(object):
|
|
|
112
114
|
'visibility': 'visibility'
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
def __init__(self, created_at: 'datetime' =None, deleted_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, interruption_notice_received: 'bool' =None, interruption_notice_received_at: 'datetime' =None, is_healthy: 'bool' =None, message: 'str' =None, multi_machine_job_id: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, pipeline_id: 'str' =None, private_ip_address: 'str' =None, project_id: 'str' =None, public_ip_address: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, restart_count: 'int' =None, restart_timings: 'list[V1RestartTiming]' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
117
|
+
def __init__(self, capacity_reservation_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, interruption_notice_received: 'bool' =None, interruption_notice_received_at: 'datetime' =None, is_healthy: 'bool' =None, message: 'str' =None, multi_machine_job_id: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, pipeline_id: 'str' =None, private_ip_address: 'str' =None, project_id: 'str' =None, public_ip_address: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, restart_count: 'int' =None, restart_timings: 'list[V1RestartTiming]' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
116
118
|
"""V1Job - a model defined in Swagger""" # noqa: E501
|
|
119
|
+
self._capacity_reservation_id = None
|
|
117
120
|
self._created_at = None
|
|
118
121
|
self._deleted_at = None
|
|
119
122
|
self._deployment_id = None
|
|
@@ -148,6 +151,8 @@ class V1Job(object):
|
|
|
148
151
|
self._user_logs_started_at = None
|
|
149
152
|
self._visibility = None
|
|
150
153
|
self.discriminator = None
|
|
154
|
+
if capacity_reservation_id is not None:
|
|
155
|
+
self.capacity_reservation_id = capacity_reservation_id
|
|
151
156
|
if created_at is not None:
|
|
152
157
|
self.created_at = created_at
|
|
153
158
|
if deleted_at is not None:
|
|
@@ -215,6 +220,27 @@ class V1Job(object):
|
|
|
215
220
|
if visibility is not None:
|
|
216
221
|
self.visibility = visibility
|
|
217
222
|
|
|
223
|
+
@property
|
|
224
|
+
def capacity_reservation_id(self) -> 'str':
|
|
225
|
+
"""Gets the capacity_reservation_id of this V1Job. # noqa: E501
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:return: The capacity_reservation_id of this V1Job. # noqa: E501
|
|
229
|
+
:rtype: str
|
|
230
|
+
"""
|
|
231
|
+
return self._capacity_reservation_id
|
|
232
|
+
|
|
233
|
+
@capacity_reservation_id.setter
|
|
234
|
+
def capacity_reservation_id(self, capacity_reservation_id: 'str'):
|
|
235
|
+
"""Sets the capacity_reservation_id of this V1Job.
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
:param capacity_reservation_id: The capacity_reservation_id of this V1Job. # noqa: E501
|
|
239
|
+
:type: str
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
self._capacity_reservation_id = capacity_reservation_id
|
|
243
|
+
|
|
218
244
|
@property
|
|
219
245
|
def created_at(self) -> 'datetime':
|
|
220
246
|
"""Gets the created_at of this V1Job. # noqa: E501
|
|
@@ -43,7 +43,6 @@ class V1KubernetesDirectV1(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'automate_agent_installation': 'bool',
|
|
45
45
|
'aws': 'V1KubernetesAWSConfig',
|
|
46
|
-
'container_registry_integration': 'V1ContainerRegistryIntegration',
|
|
47
46
|
'grafana_dashboard_url': 'str',
|
|
48
47
|
'grafana_namespace': 'str',
|
|
49
48
|
'grafana_service_name': 'str',
|
|
@@ -63,7 +62,6 @@ class V1KubernetesDirectV1(object):
|
|
|
63
62
|
attribute_map = {
|
|
64
63
|
'automate_agent_installation': 'automateAgentInstallation',
|
|
65
64
|
'aws': 'aws',
|
|
66
|
-
'container_registry_integration': 'containerRegistryIntegration',
|
|
67
65
|
'grafana_dashboard_url': 'grafanaDashboardUrl',
|
|
68
66
|
'grafana_namespace': 'grafanaNamespace',
|
|
69
67
|
'grafana_service_name': 'grafanaServiceName',
|
|
@@ -80,11 +78,10 @@ class V1KubernetesDirectV1(object):
|
|
|
80
78
|
'skip_user_label_injection': 'skipUserLabelInjection'
|
|
81
79
|
}
|
|
82
80
|
|
|
83
|
-
def __init__(self, automate_agent_installation: 'bool' =None, aws: 'V1KubernetesAWSConfig' =None,
|
|
81
|
+
def __init__(self, automate_agent_installation: 'bool' =None, aws: 'V1KubernetesAWSConfig' =None, grafana_dashboard_url: 'str' =None, grafana_namespace: 'str' =None, grafana_service_name: 'str' =None, grafana_service_port: 'str' =None, incident_alert_notifications: 'list[V1K8sIncidentSetting]' =None, incident_auto_cordon: 'list[V1K8sIncidentSetting]' =None, incident_historical_scan_complete: 'bool' =None, incident_slack_notifiers: 'list[V1SlackNotifier]' =None, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None, kubevirt_config: 'V1KubevirtConfig' =None, prometheus_url: 'str' =None, settings: 'V1KubernetesDirectSettingsV1' =None, skip_user_label_injection: 'bool' =None): # noqa: E501
|
|
84
82
|
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
85
83
|
self._automate_agent_installation = None
|
|
86
84
|
self._aws = None
|
|
87
|
-
self._container_registry_integration = None
|
|
88
85
|
self._grafana_dashboard_url = None
|
|
89
86
|
self._grafana_namespace = None
|
|
90
87
|
self._grafana_service_name = None
|
|
@@ -104,8 +101,6 @@ class V1KubernetesDirectV1(object):
|
|
|
104
101
|
self.automate_agent_installation = automate_agent_installation
|
|
105
102
|
if aws is not None:
|
|
106
103
|
self.aws = aws
|
|
107
|
-
if container_registry_integration is not None:
|
|
108
|
-
self.container_registry_integration = container_registry_integration
|
|
109
104
|
if grafana_dashboard_url is not None:
|
|
110
105
|
self.grafana_dashboard_url = grafana_dashboard_url
|
|
111
106
|
if grafana_namespace is not None:
|
|
@@ -177,27 +172,6 @@ class V1KubernetesDirectV1(object):
|
|
|
177
172
|
|
|
178
173
|
self._aws = aws
|
|
179
174
|
|
|
180
|
-
@property
|
|
181
|
-
def container_registry_integration(self) -> 'V1ContainerRegistryIntegration':
|
|
182
|
-
"""Gets the container_registry_integration of this V1KubernetesDirectV1. # noqa: E501
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
:return: The container_registry_integration of this V1KubernetesDirectV1. # noqa: E501
|
|
186
|
-
:rtype: V1ContainerRegistryIntegration
|
|
187
|
-
"""
|
|
188
|
-
return self._container_registry_integration
|
|
189
|
-
|
|
190
|
-
@container_registry_integration.setter
|
|
191
|
-
def container_registry_integration(self, container_registry_integration: 'V1ContainerRegistryIntegration'):
|
|
192
|
-
"""Sets the container_registry_integration of this V1KubernetesDirectV1.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
:param container_registry_integration: The container_registry_integration of this V1KubernetesDirectV1. # noqa: E501
|
|
196
|
-
:type: V1ContainerRegistryIntegration
|
|
197
|
-
"""
|
|
198
|
-
|
|
199
|
-
self._container_registry_integration = container_registry_integration
|
|
200
|
-
|
|
201
175
|
@property
|
|
202
176
|
def grafana_dashboard_url(self) -> 'str':
|
|
203
177
|
"""Gets the grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
|