lightning-sdk 2025.9.30__py3-none-any.whl → 2025.10.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/cloud_account_api.py +0 -2
- lightning_sdk/api/studio_api.py +8 -0
- lightning_sdk/base_studio.py +23 -12
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +45 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +7 -0
- lightning_sdk/cli/studio/connect.py +117 -22
- lightning_sdk/cli/studio/ssh.py +3 -6
- lightning_sdk/cli/utils/ssh_connection.py +8 -0
- lightning_sdk/job/job.py +5 -0
- lightning_sdk/job/v1.py +8 -0
- lightning_sdk/job/v2.py +8 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +19 -19
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/machine.py +0 -1
- lightning_sdk/studio.py +42 -5
- lightning_sdk/utils/progress.py +32 -33
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/RECORD +69 -47
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.9.30.dist-info → lightning_sdk-2025.10.14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
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 ProjectIdIncidentsBody(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
|
+
'cluster_id': 'str',
|
|
45
|
+
'message': 'str',
|
|
46
|
+
'resource': 'str',
|
|
47
|
+
'resource_id': 'str',
|
|
48
|
+
'severity': 'V1IncidentSeverity',
|
|
49
|
+
'title': 'str',
|
|
50
|
+
'type': 'V1IncidentType'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
attribute_map = {
|
|
54
|
+
'cluster_id': 'clusterId',
|
|
55
|
+
'message': 'message',
|
|
56
|
+
'resource': 'resource',
|
|
57
|
+
'resource_id': 'resourceId',
|
|
58
|
+
'severity': 'severity',
|
|
59
|
+
'title': 'title',
|
|
60
|
+
'type': 'type'
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
def __init__(self, cluster_id: 'str' =None, message: 'str' =None, resource: 'str' =None, resource_id: 'str' =None, severity: 'V1IncidentSeverity' =None, title: 'str' =None, type: 'V1IncidentType' =None): # noqa: E501
|
|
64
|
+
"""ProjectIdIncidentsBody - a model defined in Swagger""" # noqa: E501
|
|
65
|
+
self._cluster_id = None
|
|
66
|
+
self._message = None
|
|
67
|
+
self._resource = None
|
|
68
|
+
self._resource_id = None
|
|
69
|
+
self._severity = None
|
|
70
|
+
self._title = None
|
|
71
|
+
self._type = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
if cluster_id is not None:
|
|
74
|
+
self.cluster_id = cluster_id
|
|
75
|
+
if message is not None:
|
|
76
|
+
self.message = message
|
|
77
|
+
if resource is not None:
|
|
78
|
+
self.resource = resource
|
|
79
|
+
if resource_id is not None:
|
|
80
|
+
self.resource_id = resource_id
|
|
81
|
+
if severity is not None:
|
|
82
|
+
self.severity = severity
|
|
83
|
+
if title is not None:
|
|
84
|
+
self.title = title
|
|
85
|
+
if type is not None:
|
|
86
|
+
self.type = type
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def cluster_id(self) -> 'str':
|
|
90
|
+
"""Gets the cluster_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The cluster_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._cluster_id
|
|
97
|
+
|
|
98
|
+
@cluster_id.setter
|
|
99
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
100
|
+
"""Sets the cluster_id of this ProjectIdIncidentsBody.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param cluster_id: The cluster_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
104
|
+
:type: str
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._cluster_id = cluster_id
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def message(self) -> 'str':
|
|
111
|
+
"""Gets the message of this ProjectIdIncidentsBody. # noqa: E501
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:return: The message of this ProjectIdIncidentsBody. # noqa: E501
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._message
|
|
118
|
+
|
|
119
|
+
@message.setter
|
|
120
|
+
def message(self, message: 'str'):
|
|
121
|
+
"""Sets the message of this ProjectIdIncidentsBody.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param message: The message of this ProjectIdIncidentsBody. # noqa: E501
|
|
125
|
+
:type: str
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._message = message
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def resource(self) -> 'str':
|
|
132
|
+
"""Gets the resource of this ProjectIdIncidentsBody. # noqa: E501
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:return: The resource of this ProjectIdIncidentsBody. # noqa: E501
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._resource
|
|
139
|
+
|
|
140
|
+
@resource.setter
|
|
141
|
+
def resource(self, resource: 'str'):
|
|
142
|
+
"""Sets the resource of this ProjectIdIncidentsBody.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param resource: The resource of this ProjectIdIncidentsBody. # noqa: E501
|
|
146
|
+
:type: str
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
self._resource = resource
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def resource_id(self) -> 'str':
|
|
153
|
+
"""Gets the resource_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:return: The resource_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._resource_id
|
|
160
|
+
|
|
161
|
+
@resource_id.setter
|
|
162
|
+
def resource_id(self, resource_id: 'str'):
|
|
163
|
+
"""Sets the resource_id of this ProjectIdIncidentsBody.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:param resource_id: The resource_id of this ProjectIdIncidentsBody. # noqa: E501
|
|
167
|
+
:type: str
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
self._resource_id = resource_id
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def severity(self) -> 'V1IncidentSeverity':
|
|
174
|
+
"""Gets the severity of this ProjectIdIncidentsBody. # noqa: E501
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:return: The severity of this ProjectIdIncidentsBody. # noqa: E501
|
|
178
|
+
:rtype: V1IncidentSeverity
|
|
179
|
+
"""
|
|
180
|
+
return self._severity
|
|
181
|
+
|
|
182
|
+
@severity.setter
|
|
183
|
+
def severity(self, severity: 'V1IncidentSeverity'):
|
|
184
|
+
"""Sets the severity of this ProjectIdIncidentsBody.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:param severity: The severity of this ProjectIdIncidentsBody. # noqa: E501
|
|
188
|
+
:type: V1IncidentSeverity
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
self._severity = severity
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
def title(self) -> 'str':
|
|
195
|
+
"""Gets the title of this ProjectIdIncidentsBody. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The title of this ProjectIdIncidentsBody. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._title
|
|
202
|
+
|
|
203
|
+
@title.setter
|
|
204
|
+
def title(self, title: 'str'):
|
|
205
|
+
"""Sets the title of this ProjectIdIncidentsBody.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param title: The title of this ProjectIdIncidentsBody. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._title = title
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def type(self) -> 'V1IncidentType':
|
|
216
|
+
"""Gets the type of this ProjectIdIncidentsBody. # noqa: E501
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:return: The type of this ProjectIdIncidentsBody. # noqa: E501
|
|
220
|
+
:rtype: V1IncidentType
|
|
221
|
+
"""
|
|
222
|
+
return self._type
|
|
223
|
+
|
|
224
|
+
@type.setter
|
|
225
|
+
def type(self, type: 'V1IncidentType'):
|
|
226
|
+
"""Sets the type of this ProjectIdIncidentsBody.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:param type: The type of this ProjectIdIncidentsBody. # noqa: E501
|
|
230
|
+
:type: V1IncidentType
|
|
231
|
+
"""
|
|
232
|
+
|
|
233
|
+
self._type = type
|
|
234
|
+
|
|
235
|
+
def to_dict(self) -> dict:
|
|
236
|
+
"""Returns the model properties as a dict"""
|
|
237
|
+
result = {}
|
|
238
|
+
|
|
239
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
240
|
+
value = getattr(self, attr)
|
|
241
|
+
if isinstance(value, list):
|
|
242
|
+
result[attr] = list(map(
|
|
243
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
244
|
+
value
|
|
245
|
+
))
|
|
246
|
+
elif hasattr(value, "to_dict"):
|
|
247
|
+
result[attr] = value.to_dict()
|
|
248
|
+
elif isinstance(value, dict):
|
|
249
|
+
result[attr] = dict(map(
|
|
250
|
+
lambda item: (item[0], item[1].to_dict())
|
|
251
|
+
if hasattr(item[1], "to_dict") else item,
|
|
252
|
+
value.items()
|
|
253
|
+
))
|
|
254
|
+
else:
|
|
255
|
+
result[attr] = value
|
|
256
|
+
if issubclass(ProjectIdIncidentsBody, dict):
|
|
257
|
+
for key, value in self.items():
|
|
258
|
+
result[key] = value
|
|
259
|
+
|
|
260
|
+
return result
|
|
261
|
+
|
|
262
|
+
def to_str(self) -> str:
|
|
263
|
+
"""Returns the string representation of the model"""
|
|
264
|
+
return pprint.pformat(self.to_dict())
|
|
265
|
+
|
|
266
|
+
def __repr__(self) -> str:
|
|
267
|
+
"""For `print` and `pprint`"""
|
|
268
|
+
return self.to_str()
|
|
269
|
+
|
|
270
|
+
def __eq__(self, other: 'ProjectIdIncidentsBody') -> bool:
|
|
271
|
+
"""Returns true if both objects are equal"""
|
|
272
|
+
if not isinstance(other, ProjectIdIncidentsBody):
|
|
273
|
+
return False
|
|
274
|
+
|
|
275
|
+
return self.__dict__ == other.__dict__
|
|
276
|
+
|
|
277
|
+
def __ne__(self, other: 'ProjectIdIncidentsBody') -> bool:
|
|
278
|
+
"""Returns true if both objects are not equal"""
|
|
279
|
+
return not self == other
|
|
@@ -59,6 +59,7 @@ class ProjectsIdBody(object):
|
|
|
59
59
|
'display_name': 'str',
|
|
60
60
|
'layout_config': 'list[V1ProjectTab]',
|
|
61
61
|
'name': 'str',
|
|
62
|
+
'organization_billing_enabled': 'bool',
|
|
62
63
|
'preferred_cluster': 'str',
|
|
63
64
|
'preferred_deployment_provider': 'str',
|
|
64
65
|
'preferred_studio_provider': 'str',
|
|
@@ -87,6 +88,7 @@ class ProjectsIdBody(object):
|
|
|
87
88
|
'display_name': 'displayName',
|
|
88
89
|
'layout_config': 'layoutConfig',
|
|
89
90
|
'name': 'name',
|
|
91
|
+
'organization_billing_enabled': 'organizationBillingEnabled',
|
|
90
92
|
'preferred_cluster': 'preferredCluster',
|
|
91
93
|
'preferred_deployment_provider': 'preferredDeploymentProvider',
|
|
92
94
|
'preferred_studio_provider': 'preferredStudioProvider',
|
|
@@ -96,7 +98,7 @@ class ProjectsIdBody(object):
|
|
|
96
98
|
'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle'
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
def __init__(self, allow_aws_saas: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_nebius_saas: 'bool' =None, allow_voltage_park_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, quotas: 'V1Quotas' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None): # noqa: E501
|
|
101
|
+
def __init__(self, allow_aws_saas: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_nebius_saas: 'bool' =None, allow_voltage_park_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, organization_billing_enabled: 'bool' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, quotas: 'V1Quotas' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None): # noqa: E501
|
|
100
102
|
"""ProjectsIdBody - a model defined in Swagger""" # noqa: E501
|
|
101
103
|
self._allow_aws_saas = None
|
|
102
104
|
self._allow_credits_auto_replenish = None
|
|
@@ -116,6 +118,7 @@ class ProjectsIdBody(object):
|
|
|
116
118
|
self._display_name = None
|
|
117
119
|
self._layout_config = None
|
|
118
120
|
self._name = None
|
|
121
|
+
self._organization_billing_enabled = None
|
|
119
122
|
self._preferred_cluster = None
|
|
120
123
|
self._preferred_deployment_provider = None
|
|
121
124
|
self._preferred_studio_provider = None
|
|
@@ -160,6 +163,8 @@ class ProjectsIdBody(object):
|
|
|
160
163
|
self.layout_config = layout_config
|
|
161
164
|
if name is not None:
|
|
162
165
|
self.name = name
|
|
166
|
+
if organization_billing_enabled is not None:
|
|
167
|
+
self.organization_billing_enabled = organization_billing_enabled
|
|
163
168
|
if preferred_cluster is not None:
|
|
164
169
|
self.preferred_cluster = preferred_cluster
|
|
165
170
|
if preferred_deployment_provider is not None:
|
|
@@ -553,6 +558,27 @@ class ProjectsIdBody(object):
|
|
|
553
558
|
|
|
554
559
|
self._name = name
|
|
555
560
|
|
|
561
|
+
@property
|
|
562
|
+
def organization_billing_enabled(self) -> 'bool':
|
|
563
|
+
"""Gets the organization_billing_enabled of this ProjectsIdBody. # noqa: E501
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
:return: The organization_billing_enabled of this ProjectsIdBody. # noqa: E501
|
|
567
|
+
:rtype: bool
|
|
568
|
+
"""
|
|
569
|
+
return self._organization_billing_enabled
|
|
570
|
+
|
|
571
|
+
@organization_billing_enabled.setter
|
|
572
|
+
def organization_billing_enabled(self, organization_billing_enabled: 'bool'):
|
|
573
|
+
"""Sets the organization_billing_enabled of this ProjectsIdBody.
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
:param organization_billing_enabled: The organization_billing_enabled of this ProjectsIdBody. # noqa: E501
|
|
577
|
+
:type: bool
|
|
578
|
+
"""
|
|
579
|
+
|
|
580
|
+
self._organization_billing_enabled = organization_billing_enabled
|
|
581
|
+
|
|
556
582
|
@property
|
|
557
583
|
def preferred_cluster(self) -> 'str':
|
|
558
584
|
"""Gets the preferred_cluster of this ProjectsIdBody. # noqa: E501
|
|
@@ -45,7 +45,7 @@ class StorageCompleteBody(object):
|
|
|
45
45
|
'data_connection_id': 'str',
|
|
46
46
|
'filename': 'str',
|
|
47
47
|
'parts': 'list[V1CompleteUpload]',
|
|
48
|
-
'
|
|
48
|
+
'reindex': 'bool',
|
|
49
49
|
'upload_id': 'str'
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -54,17 +54,17 @@ class StorageCompleteBody(object):
|
|
|
54
54
|
'data_connection_id': 'dataConnectionId',
|
|
55
55
|
'filename': 'filename',
|
|
56
56
|
'parts': 'parts',
|
|
57
|
-
'
|
|
57
|
+
'reindex': 'reindex',
|
|
58
58
|
'upload_id': 'uploadId'
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
def __init__(self, cluster_id: 'str' =None, data_connection_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None,
|
|
61
|
+
def __init__(self, cluster_id: 'str' =None, data_connection_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
|
|
62
62
|
"""StorageCompleteBody - a model defined in Swagger""" # noqa: E501
|
|
63
63
|
self._cluster_id = None
|
|
64
64
|
self._data_connection_id = None
|
|
65
65
|
self._filename = None
|
|
66
66
|
self._parts = None
|
|
67
|
-
self.
|
|
67
|
+
self._reindex = None
|
|
68
68
|
self._upload_id = None
|
|
69
69
|
self.discriminator = None
|
|
70
70
|
if cluster_id is not None:
|
|
@@ -75,8 +75,8 @@ class StorageCompleteBody(object):
|
|
|
75
75
|
self.filename = filename
|
|
76
76
|
if parts is not None:
|
|
77
77
|
self.parts = parts
|
|
78
|
-
if
|
|
79
|
-
self.
|
|
78
|
+
if reindex is not None:
|
|
79
|
+
self.reindex = reindex
|
|
80
80
|
if upload_id is not None:
|
|
81
81
|
self.upload_id = upload_id
|
|
82
82
|
|
|
@@ -165,25 +165,25 @@ class StorageCompleteBody(object):
|
|
|
165
165
|
self._parts = parts
|
|
166
166
|
|
|
167
167
|
@property
|
|
168
|
-
def
|
|
169
|
-
"""Gets the
|
|
168
|
+
def reindex(self) -> 'bool':
|
|
169
|
+
"""Gets the reindex of this StorageCompleteBody. # noqa: E501
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
:return: The
|
|
172
|
+
:return: The reindex of this StorageCompleteBody. # noqa: E501
|
|
173
173
|
:rtype: bool
|
|
174
174
|
"""
|
|
175
|
-
return self.
|
|
175
|
+
return self._reindex
|
|
176
176
|
|
|
177
|
-
@
|
|
178
|
-
def
|
|
179
|
-
"""Sets the
|
|
177
|
+
@reindex.setter
|
|
178
|
+
def reindex(self, reindex: 'bool'):
|
|
179
|
+
"""Sets the reindex of this StorageCompleteBody.
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
:param
|
|
182
|
+
:param reindex: The reindex of this StorageCompleteBody. # noqa: E501
|
|
183
183
|
:type: bool
|
|
184
184
|
"""
|
|
185
185
|
|
|
186
|
-
self.
|
|
186
|
+
self._reindex = reindex
|
|
187
187
|
|
|
188
188
|
@property
|
|
189
189
|
def upload_id(self) -> 'str':
|
|
@@ -41,35 +41,43 @@ class V1CloudSpaceTransferMetadata(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'expected_completion_time': 'datetime',
|
|
44
45
|
'initial_transfer_started_at': 'datetime',
|
|
45
46
|
'requested_code_config': 'V1UpdateCloudSpaceInstanceConfigRequest',
|
|
46
47
|
'source_cluster_id': 'str',
|
|
47
48
|
'source_deletion_started_at': 'datetime',
|
|
49
|
+
'start_after_transfer': 'bool',
|
|
48
50
|
'target_cloud_provider': 'str',
|
|
49
51
|
'target_cluster_id': 'str',
|
|
50
52
|
'top_up_transfer_started_at': 'datetime'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
attribute_map = {
|
|
56
|
+
'expected_completion_time': 'expectedCompletionTime',
|
|
54
57
|
'initial_transfer_started_at': 'initialTransferStartedAt',
|
|
55
58
|
'requested_code_config': 'requestedCodeConfig',
|
|
56
59
|
'source_cluster_id': 'sourceClusterId',
|
|
57
60
|
'source_deletion_started_at': 'sourceDeletionStartedAt',
|
|
61
|
+
'start_after_transfer': 'startAfterTransfer',
|
|
58
62
|
'target_cloud_provider': 'targetCloudProvider',
|
|
59
63
|
'target_cluster_id': 'targetClusterId',
|
|
60
64
|
'top_up_transfer_started_at': 'topUpTransferStartedAt'
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
def __init__(self, initial_transfer_started_at: 'datetime' =None, requested_code_config: 'V1UpdateCloudSpaceInstanceConfigRequest' =None, source_cluster_id: 'str' =None, source_deletion_started_at: 'datetime' =None, target_cloud_provider: 'str' =None, target_cluster_id: 'str' =None, top_up_transfer_started_at: 'datetime' =None): # noqa: E501
|
|
67
|
+
def __init__(self, expected_completion_time: 'datetime' =None, initial_transfer_started_at: 'datetime' =None, requested_code_config: 'V1UpdateCloudSpaceInstanceConfigRequest' =None, source_cluster_id: 'str' =None, source_deletion_started_at: 'datetime' =None, start_after_transfer: 'bool' =None, target_cloud_provider: 'str' =None, target_cluster_id: 'str' =None, top_up_transfer_started_at: 'datetime' =None): # noqa: E501
|
|
64
68
|
"""V1CloudSpaceTransferMetadata - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
self._expected_completion_time = None
|
|
65
70
|
self._initial_transfer_started_at = None
|
|
66
71
|
self._requested_code_config = None
|
|
67
72
|
self._source_cluster_id = None
|
|
68
73
|
self._source_deletion_started_at = None
|
|
74
|
+
self._start_after_transfer = None
|
|
69
75
|
self._target_cloud_provider = None
|
|
70
76
|
self._target_cluster_id = None
|
|
71
77
|
self._top_up_transfer_started_at = None
|
|
72
78
|
self.discriminator = None
|
|
79
|
+
if expected_completion_time is not None:
|
|
80
|
+
self.expected_completion_time = expected_completion_time
|
|
73
81
|
if initial_transfer_started_at is not None:
|
|
74
82
|
self.initial_transfer_started_at = initial_transfer_started_at
|
|
75
83
|
if requested_code_config is not None:
|
|
@@ -78,6 +86,8 @@ class V1CloudSpaceTransferMetadata(object):
|
|
|
78
86
|
self.source_cluster_id = source_cluster_id
|
|
79
87
|
if source_deletion_started_at is not None:
|
|
80
88
|
self.source_deletion_started_at = source_deletion_started_at
|
|
89
|
+
if start_after_transfer is not None:
|
|
90
|
+
self.start_after_transfer = start_after_transfer
|
|
81
91
|
if target_cloud_provider is not None:
|
|
82
92
|
self.target_cloud_provider = target_cloud_provider
|
|
83
93
|
if target_cluster_id is not None:
|
|
@@ -85,6 +95,27 @@ class V1CloudSpaceTransferMetadata(object):
|
|
|
85
95
|
if top_up_transfer_started_at is not None:
|
|
86
96
|
self.top_up_transfer_started_at = top_up_transfer_started_at
|
|
87
97
|
|
|
98
|
+
@property
|
|
99
|
+
def expected_completion_time(self) -> 'datetime':
|
|
100
|
+
"""Gets the expected_completion_time of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The expected_completion_time of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
104
|
+
:rtype: datetime
|
|
105
|
+
"""
|
|
106
|
+
return self._expected_completion_time
|
|
107
|
+
|
|
108
|
+
@expected_completion_time.setter
|
|
109
|
+
def expected_completion_time(self, expected_completion_time: 'datetime'):
|
|
110
|
+
"""Sets the expected_completion_time of this V1CloudSpaceTransferMetadata.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param expected_completion_time: The expected_completion_time of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
114
|
+
:type: datetime
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._expected_completion_time = expected_completion_time
|
|
118
|
+
|
|
88
119
|
@property
|
|
89
120
|
def initial_transfer_started_at(self) -> 'datetime':
|
|
90
121
|
"""Gets the initial_transfer_started_at of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
@@ -169,6 +200,27 @@ class V1CloudSpaceTransferMetadata(object):
|
|
|
169
200
|
|
|
170
201
|
self._source_deletion_started_at = source_deletion_started_at
|
|
171
202
|
|
|
203
|
+
@property
|
|
204
|
+
def start_after_transfer(self) -> 'bool':
|
|
205
|
+
"""Gets the start_after_transfer of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:return: The start_after_transfer of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
209
|
+
:rtype: bool
|
|
210
|
+
"""
|
|
211
|
+
return self._start_after_transfer
|
|
212
|
+
|
|
213
|
+
@start_after_transfer.setter
|
|
214
|
+
def start_after_transfer(self, start_after_transfer: 'bool'):
|
|
215
|
+
"""Sets the start_after_transfer of this V1CloudSpaceTransferMetadata.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param start_after_transfer: The start_after_transfer of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
219
|
+
:type: bool
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
self._start_after_transfer = start_after_transfer
|
|
223
|
+
|
|
172
224
|
@property
|
|
173
225
|
def target_cloud_provider(self) -> 'str':
|
|
174
226
|
"""Gets the target_cloud_provider of this V1CloudSpaceTransferMetadata. # noqa: E501
|
|
@@ -50,6 +50,7 @@ class V1CreateProjectRequest(object):
|
|
|
50
50
|
'display_name': 'str',
|
|
51
51
|
'layout_config': 'list[V1ProjectTab]',
|
|
52
52
|
'name': 'str',
|
|
53
|
+
'organization_billing_enabled': 'bool',
|
|
53
54
|
'organization_id': 'str',
|
|
54
55
|
'preferred_cluster': 'str',
|
|
55
56
|
'quotas': 'V1Quotas'
|
|
@@ -65,12 +66,13 @@ class V1CreateProjectRequest(object):
|
|
|
65
66
|
'display_name': 'displayName',
|
|
66
67
|
'layout_config': 'layoutConfig',
|
|
67
68
|
'name': 'name',
|
|
69
|
+
'organization_billing_enabled': 'organizationBillingEnabled',
|
|
68
70
|
'organization_id': 'organizationId',
|
|
69
71
|
'preferred_cluster': 'preferredCluster',
|
|
70
72
|
'quotas': 'quotas'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
75
|
+
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, organization_billing_enabled: 'bool' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
74
76
|
"""V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._allow_credits_auto_replenish = None
|
|
76
78
|
self._auto_replenish_amount = None
|
|
@@ -81,6 +83,7 @@ class V1CreateProjectRequest(object):
|
|
|
81
83
|
self._display_name = None
|
|
82
84
|
self._layout_config = None
|
|
83
85
|
self._name = None
|
|
86
|
+
self._organization_billing_enabled = None
|
|
84
87
|
self._organization_id = None
|
|
85
88
|
self._preferred_cluster = None
|
|
86
89
|
self._quotas = None
|
|
@@ -103,6 +106,8 @@ class V1CreateProjectRequest(object):
|
|
|
103
106
|
self.layout_config = layout_config
|
|
104
107
|
if name is not None:
|
|
105
108
|
self.name = name
|
|
109
|
+
if organization_billing_enabled is not None:
|
|
110
|
+
self.organization_billing_enabled = organization_billing_enabled
|
|
106
111
|
if organization_id is not None:
|
|
107
112
|
self.organization_id = organization_id
|
|
108
113
|
if preferred_cluster is not None:
|
|
@@ -299,6 +304,27 @@ class V1CreateProjectRequest(object):
|
|
|
299
304
|
|
|
300
305
|
self._name = name
|
|
301
306
|
|
|
307
|
+
@property
|
|
308
|
+
def organization_billing_enabled(self) -> 'bool':
|
|
309
|
+
"""Gets the organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:return: The organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
313
|
+
:rtype: bool
|
|
314
|
+
"""
|
|
315
|
+
return self._organization_billing_enabled
|
|
316
|
+
|
|
317
|
+
@organization_billing_enabled.setter
|
|
318
|
+
def organization_billing_enabled(self, organization_billing_enabled: 'bool'):
|
|
319
|
+
"""Sets the organization_billing_enabled of this V1CreateProjectRequest.
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
:param organization_billing_enabled: The organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
323
|
+
:type: bool
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
self._organization_billing_enabled = organization_billing_enabled
|
|
327
|
+
|
|
302
328
|
@property
|
|
303
329
|
def organization_id(self) -> 'str':
|
|
304
330
|
"""Gets the organization_id of this V1CreateProjectRequest. # noqa: E501
|