lightning-sdk 2025.10.31__py3-none-any.whl → 2025.11.13__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 (53) hide show
  1. lightning_sdk/__init__.py +6 -6
  2. lightning_sdk/__version__.py +3 -0
  3. lightning_sdk/agents.py +2 -1
  4. lightning_sdk/ai_hub.py +2 -1
  5. lightning_sdk/api/cloud_account_api.py +2 -2
  6. lightning_sdk/api/deployment_api.py +11 -1
  7. lightning_sdk/api/utils.py +58 -1
  8. lightning_sdk/cli/legacy/deploy/serve.py +16 -2
  9. lightning_sdk/cli/studio/__init__.py +2 -0
  10. lightning_sdk/cli/studio/cp.py +138 -0
  11. lightning_sdk/cli/utils/logging.py +2 -1
  12. lightning_sdk/cli/utils/studio_selection.py +3 -3
  13. lightning_sdk/deployment/__init__.py +2 -0
  14. lightning_sdk/deployment/deployment.py +33 -5
  15. lightning_sdk/helpers.py +1 -1
  16. lightning_sdk/job/base.py +2 -1
  17. lightning_sdk/job/job.py +7 -1
  18. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -2
  19. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  20. lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
  21. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +415 -1508
  22. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -2
  24. lightning_sdk/lightning_cloud/openapi/models/{project_id_kubernetestemplates_body.py → cluster_id_kubernetestemplates_body.py} +23 -49
  25. lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +3 -29
  26. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +1 -27
  27. lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +3 -29
  28. lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +287 -1
  31. lightning_sdk/lightning_cloud/openapi/models/{project_id_incidents_body.py → v1_create_incident_request.py} +61 -35
  32. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +1 -27
  34. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
  36. lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
  37. lightning_sdk/lit_container.py +9 -0
  38. lightning_sdk/machine.py +8 -0
  39. lightning_sdk/mmt/mmt.py +8 -4
  40. lightning_sdk/models.py +8 -0
  41. lightning_sdk/owner.py +2 -1
  42. lightning_sdk/pipeline/pipeline.py +3 -0
  43. lightning_sdk/plugin.py +2 -1
  44. lightning_sdk/serve.py +3 -1
  45. lightning_sdk/studio.py +10 -5
  46. lightning_sdk/teamspace.py +17 -1
  47. lightning_sdk/utils/logging.py +8 -1
  48. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/METADATA +1 -1
  49. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/RECORD +53 -48
  50. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/LICENSE +0 -0
  51. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/WHEEL +0 -0
  52. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/entry_points.txt +0 -0
  53. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/top_level.txt +0 -0
@@ -2244,3 +2244,108 @@ class StorageServiceApi(object):
2244
2244
  _preload_content=params.get('_preload_content', True),
2245
2245
  _request_timeout=params.get('_request_timeout'),
2246
2246
  collection_formats=collection_formats)
2247
+
2248
+ def storage_service_validate_storage_transfer(self, body: 'StoragetransfersValidateBody', project_id: 'str', **kwargs) -> 'V1ValidateStorageTransferResponse': # noqa: E501
2249
+ """storage_service_validate_storage_transfer # noqa: E501
2250
+
2251
+ This method makes a synchronous HTTP request by default. To make an
2252
+ asynchronous HTTP request, please pass async_req=True
2253
+ >>> thread = api.storage_service_validate_storage_transfer(body, project_id, async_req=True)
2254
+ >>> result = thread.get()
2255
+
2256
+ :param async_req bool
2257
+ :param StoragetransfersValidateBody body: (required)
2258
+ :param str project_id: (required)
2259
+ :return: V1ValidateStorageTransferResponse
2260
+ If the method is called asynchronously,
2261
+ returns the request thread.
2262
+ """
2263
+ kwargs['_return_http_data_only'] = True
2264
+ if kwargs.get('async_req'):
2265
+ return self.storage_service_validate_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
2266
+ else:
2267
+ (data) = self.storage_service_validate_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
2268
+ return data
2269
+
2270
+ def storage_service_validate_storage_transfer_with_http_info(self, body: 'StoragetransfersValidateBody', project_id: 'str', **kwargs) -> 'V1ValidateStorageTransferResponse': # noqa: E501
2271
+ """storage_service_validate_storage_transfer # noqa: E501
2272
+
2273
+ This method makes a synchronous HTTP request by default. To make an
2274
+ asynchronous HTTP request, please pass async_req=True
2275
+ >>> thread = api.storage_service_validate_storage_transfer_with_http_info(body, project_id, async_req=True)
2276
+ >>> result = thread.get()
2277
+
2278
+ :param async_req bool
2279
+ :param StoragetransfersValidateBody body: (required)
2280
+ :param str project_id: (required)
2281
+ :return: V1ValidateStorageTransferResponse
2282
+ If the method is called asynchronously,
2283
+ returns the request thread.
2284
+ """
2285
+
2286
+ all_params = ['body', 'project_id'] # noqa: E501
2287
+ all_params.append('async_req')
2288
+ all_params.append('_return_http_data_only')
2289
+ all_params.append('_preload_content')
2290
+ all_params.append('_request_timeout')
2291
+
2292
+ params = locals()
2293
+ for key, val in six.iteritems(params['kwargs']):
2294
+ if key not in all_params:
2295
+ raise TypeError(
2296
+ "Got an unexpected keyword argument '%s'"
2297
+ " to method storage_service_validate_storage_transfer" % key
2298
+ )
2299
+ params[key] = val
2300
+ del params['kwargs']
2301
+ # verify the required parameter 'body' is set
2302
+ if ('body' not in params or
2303
+ params['body'] is None):
2304
+ raise ValueError("Missing the required parameter `body` when calling `storage_service_validate_storage_transfer`") # noqa: E501
2305
+ # verify the required parameter 'project_id' is set
2306
+ if ('project_id' not in params or
2307
+ params['project_id'] is None):
2308
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_validate_storage_transfer`") # noqa: E501
2309
+
2310
+ collection_formats = {}
2311
+
2312
+ path_params = {}
2313
+ if 'project_id' in params:
2314
+ path_params['projectId'] = params['project_id'] # noqa: E501
2315
+
2316
+ query_params = []
2317
+
2318
+ header_params = {}
2319
+
2320
+ form_params = []
2321
+ local_var_files = {}
2322
+
2323
+ body_params = None
2324
+ if 'body' in params:
2325
+ body_params = params['body']
2326
+ # HTTP header `Accept`
2327
+ header_params['Accept'] = self.api_client.select_header_accept(
2328
+ ['application/json']) # noqa: E501
2329
+
2330
+ # HTTP header `Content-Type`
2331
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2332
+ ['application/json']) # noqa: E501
2333
+
2334
+ # Authentication setting
2335
+ auth_settings = [] # noqa: E501
2336
+
2337
+ return self.api_client.call_api(
2338
+ '/v1/projects/{projectId}/storage-transfers/validate', 'POST',
2339
+ path_params,
2340
+ query_params,
2341
+ header_params,
2342
+ body=body_params,
2343
+ post_params=form_params,
2344
+ files=local_var_files,
2345
+ response_type='V1ValidateStorageTransferResponse', # noqa: E501
2346
+ auth_settings=auth_settings,
2347
+ async_req=params.get('async_req'),
2348
+ _return_http_data_only=params.get('_return_http_data_only'),
2349
+ _preload_content=params.get('_preload_content', True),
2350
+ _request_timeout=params.get('_request_timeout'),
2351
+ collection_formats=collection_formats)
@@ -48,6 +48,7 @@ from lightning_sdk.lightning_cloud.openapi.models.cloudspace_id_visibility_body
48
48
  from lightning_sdk.lightning_cloud.openapi.models.cloudspaces_id_body import CloudspacesIdBody
49
49
  from lightning_sdk.lightning_cloud.openapi.models.cluster_id_capacityblock_body import ClusterIdCapacityblockBody
50
50
  from lightning_sdk.lightning_cloud.openapi.models.cluster_id_capacityreservations_body import ClusterIdCapacityreservationsBody
51
+ from lightning_sdk.lightning_cloud.openapi.models.cluster_id_kubernetestemplates_body import ClusterIdKubernetestemplatesBody
51
52
  from lightning_sdk.lightning_cloud.openapi.models.cluster_id_metrics_body import ClusterIdMetricsBody
52
53
  from lightning_sdk.lightning_cloud.openapi.models.cluster_id_proxies_body import ClusterIdProxiesBody
53
54
  from lightning_sdk.lightning_cloud.openapi.models.cluster_id_slurmusers_body import ClusterIdSlurmusersBody
@@ -152,10 +153,8 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_clusters_body impor
152
153
  from lightning_sdk.lightning_cloud.openapi.models.project_id_datasets_body import ProjectIdDatasetsBody
153
154
  from lightning_sdk.lightning_cloud.openapi.models.project_id_endpoints_body import ProjectIdEndpointsBody
154
155
  from lightning_sdk.lightning_cloud.openapi.models.project_id_getapp_body import ProjectIdGetappBody
155
- from lightning_sdk.lightning_cloud.openapi.models.project_id_incidents_body import ProjectIdIncidentsBody
156
156
  from lightning_sdk.lightning_cloud.openapi.models.project_id_invite_body import ProjectIdInviteBody
157
157
  from lightning_sdk.lightning_cloud.openapi.models.project_id_jobs_body import ProjectIdJobsBody
158
- from lightning_sdk.lightning_cloud.openapi.models.project_id_kubernetestemplates_body import ProjectIdKubernetestemplatesBody
159
158
  from lightning_sdk.lightning_cloud.openapi.models.project_id_litdatasets_body import ProjectIdLitdatasetsBody
160
159
  from lightning_sdk.lightning_cloud.openapi.models.project_id_litregistry_body import ProjectIdLitregistryBody
161
160
  from lightning_sdk.lightning_cloud.openapi.models.project_id_memberships_body import ProjectIdMembershipsBody
@@ -187,6 +186,7 @@ from lightning_sdk.lightning_cloud.openapi.models.snowflake_export_body import S
187
186
  from lightning_sdk.lightning_cloud.openapi.models.snowflake_query_body import SnowflakeQueryBody
188
187
  from lightning_sdk.lightning_cloud.openapi.models.spec_lightningapp_instance_id_works_body import SpecLightningappInstanceIdWorksBody
189
188
  from lightning_sdk.lightning_cloud.openapi.models.storage_complete_body import StorageCompleteBody
189
+ from lightning_sdk.lightning_cloud.openapi.models.storagetransfers_validate_body import StoragetransfersValidateBody
190
190
  from lightning_sdk.lightning_cloud.openapi.models.stream_result_of_v1_conversation_response_chunk import StreamResultOfV1ConversationResponseChunk
191
191
  from lightning_sdk.lightning_cloud.openapi.models.stream_result_of_v1_get_long_running_command_in_cloud_space_response import StreamResultOfV1GetLongRunningCommandInCloudSpaceResponse
192
192
  from lightning_sdk.lightning_cloud.openapi.models.studioapp_jobs_body import StudioappJobsBody
@@ -346,6 +346,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_cluster_response imp
346
346
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_deployment_request import V1CreateDeploymentRequest
347
347
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_deployment_template_request import V1CreateDeploymentTemplateRequest
348
348
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_git_credentials_request import V1CreateGitCredentialsRequest
349
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_incident_request import V1CreateIncidentRequest
349
350
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_job_request import V1CreateJobRequest
350
351
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_license_request import V1CreateLicenseRequest
351
352
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_part_upload_response import V1CreateLitDatasetMultiPartUploadResponse
@@ -1048,6 +1049,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_validate_license_response i
1048
1049
  from lightning_sdk.lightning_cloud.openapi.models.v1_validate_managed_endpoint_request import V1ValidateManagedEndpointRequest
1049
1050
  from lightning_sdk.lightning_cloud.openapi.models.v1_validate_managed_endpoint_response import V1ValidateManagedEndpointResponse
1050
1051
  from lightning_sdk.lightning_cloud.openapi.models.v1_validate_managed_model_response import V1ValidateManagedModelResponse
1052
+ from lightning_sdk.lightning_cloud.openapi.models.v1_validate_storage_transfer_response import V1ValidateStorageTransferResponse
1051
1053
  from lightning_sdk.lightning_cloud.openapi.models.v1_verify_verification_response import V1VerifyVerificationResponse
1052
1054
  from lightning_sdk.lightning_cloud.openapi.models.v1_voltage_park_direct_v1 import V1VoltageParkDirectV1
1053
1055
  from lightning_sdk.lightning_cloud.openapi.models.v1_volume import V1Volume
@@ -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 ProjectIdKubernetestemplatesBody(object):
31
+ class ClusterIdKubernetestemplatesBody(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,7 +41,6 @@ class ProjectIdKubernetestemplatesBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'cluster_id': 'str',
45
44
  'description': 'str',
46
45
  'name': 'str',
47
46
  'properties': 'list[V1KubernetesTemplateProperty]',
@@ -49,23 +48,19 @@ class ProjectIdKubernetestemplatesBody(object):
49
48
  }
50
49
 
51
50
  attribute_map = {
52
- 'cluster_id': 'clusterId',
53
51
  'description': 'description',
54
52
  'name': 'name',
55
53
  'properties': 'properties',
56
54
  'spec': 'spec'
57
55
  }
58
56
 
59
- def __init__(self, cluster_id: 'str' =None, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
60
- """ProjectIdKubernetestemplatesBody - a model defined in Swagger""" # noqa: E501
61
- self._cluster_id = None
57
+ def __init__(self, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
58
+ """ClusterIdKubernetestemplatesBody - a model defined in Swagger""" # noqa: E501
62
59
  self._description = None
63
60
  self._name = None
64
61
  self._properties = None
65
62
  self._spec = None
66
63
  self.discriminator = None
67
- if cluster_id is not None:
68
- self.cluster_id = cluster_id
69
64
  if description is not None:
70
65
  self.description = description
71
66
  if name is not None:
@@ -75,43 +70,22 @@ class ProjectIdKubernetestemplatesBody(object):
75
70
  if spec is not None:
76
71
  self.spec = spec
77
72
 
78
- @property
79
- def cluster_id(self) -> 'str':
80
- """Gets the cluster_id of this ProjectIdKubernetestemplatesBody. # noqa: E501
81
-
82
-
83
- :return: The cluster_id of this ProjectIdKubernetestemplatesBody. # noqa: E501
84
- :rtype: str
85
- """
86
- return self._cluster_id
87
-
88
- @cluster_id.setter
89
- def cluster_id(self, cluster_id: 'str'):
90
- """Sets the cluster_id of this ProjectIdKubernetestemplatesBody.
91
-
92
-
93
- :param cluster_id: The cluster_id of this ProjectIdKubernetestemplatesBody. # noqa: E501
94
- :type: str
95
- """
96
-
97
- self._cluster_id = cluster_id
98
-
99
73
  @property
100
74
  def description(self) -> 'str':
101
- """Gets the description of this ProjectIdKubernetestemplatesBody. # noqa: E501
75
+ """Gets the description of this ClusterIdKubernetestemplatesBody. # noqa: E501
102
76
 
103
77
 
104
- :return: The description of this ProjectIdKubernetestemplatesBody. # noqa: E501
78
+ :return: The description of this ClusterIdKubernetestemplatesBody. # noqa: E501
105
79
  :rtype: str
106
80
  """
107
81
  return self._description
108
82
 
109
83
  @description.setter
110
84
  def description(self, description: 'str'):
111
- """Sets the description of this ProjectIdKubernetestemplatesBody.
85
+ """Sets the description of this ClusterIdKubernetestemplatesBody.
112
86
 
113
87
 
114
- :param description: The description of this ProjectIdKubernetestemplatesBody. # noqa: E501
88
+ :param description: The description of this ClusterIdKubernetestemplatesBody. # noqa: E501
115
89
  :type: str
116
90
  """
117
91
 
@@ -119,20 +93,20 @@ class ProjectIdKubernetestemplatesBody(object):
119
93
 
120
94
  @property
121
95
  def name(self) -> 'str':
122
- """Gets the name of this ProjectIdKubernetestemplatesBody. # noqa: E501
96
+ """Gets the name of this ClusterIdKubernetestemplatesBody. # noqa: E501
123
97
 
124
98
 
125
- :return: The name of this ProjectIdKubernetestemplatesBody. # noqa: E501
99
+ :return: The name of this ClusterIdKubernetestemplatesBody. # noqa: E501
126
100
  :rtype: str
127
101
  """
128
102
  return self._name
129
103
 
130
104
  @name.setter
131
105
  def name(self, name: 'str'):
132
- """Sets the name of this ProjectIdKubernetestemplatesBody.
106
+ """Sets the name of this ClusterIdKubernetestemplatesBody.
133
107
 
134
108
 
135
- :param name: The name of this ProjectIdKubernetestemplatesBody. # noqa: E501
109
+ :param name: The name of this ClusterIdKubernetestemplatesBody. # noqa: E501
136
110
  :type: str
137
111
  """
138
112
 
@@ -140,20 +114,20 @@ class ProjectIdKubernetestemplatesBody(object):
140
114
 
141
115
  @property
142
116
  def properties(self) -> 'list[V1KubernetesTemplateProperty]':
143
- """Gets the properties of this ProjectIdKubernetestemplatesBody. # noqa: E501
117
+ """Gets the properties of this ClusterIdKubernetestemplatesBody. # noqa: E501
144
118
 
145
119
 
146
- :return: The properties of this ProjectIdKubernetestemplatesBody. # noqa: E501
120
+ :return: The properties of this ClusterIdKubernetestemplatesBody. # noqa: E501
147
121
  :rtype: list[V1KubernetesTemplateProperty]
148
122
  """
149
123
  return self._properties
150
124
 
151
125
  @properties.setter
152
126
  def properties(self, properties: 'list[V1KubernetesTemplateProperty]'):
153
- """Sets the properties of this ProjectIdKubernetestemplatesBody.
127
+ """Sets the properties of this ClusterIdKubernetestemplatesBody.
154
128
 
155
129
 
156
- :param properties: The properties of this ProjectIdKubernetestemplatesBody. # noqa: E501
130
+ :param properties: The properties of this ClusterIdKubernetestemplatesBody. # noqa: E501
157
131
  :type: list[V1KubernetesTemplateProperty]
158
132
  """
159
133
 
@@ -161,20 +135,20 @@ class ProjectIdKubernetestemplatesBody(object):
161
135
 
162
136
  @property
163
137
  def spec(self) -> 'str':
164
- """Gets the spec of this ProjectIdKubernetestemplatesBody. # noqa: E501
138
+ """Gets the spec of this ClusterIdKubernetestemplatesBody. # noqa: E501
165
139
 
166
140
 
167
- :return: The spec of this ProjectIdKubernetestemplatesBody. # noqa: E501
141
+ :return: The spec of this ClusterIdKubernetestemplatesBody. # noqa: E501
168
142
  :rtype: str
169
143
  """
170
144
  return self._spec
171
145
 
172
146
  @spec.setter
173
147
  def spec(self, spec: 'str'):
174
- """Sets the spec of this ProjectIdKubernetestemplatesBody.
148
+ """Sets the spec of this ClusterIdKubernetestemplatesBody.
175
149
 
176
150
 
177
- :param spec: The spec of this ProjectIdKubernetestemplatesBody. # noqa: E501
151
+ :param spec: The spec of this ClusterIdKubernetestemplatesBody. # noqa: E501
178
152
  :type: str
179
153
  """
180
154
 
@@ -201,7 +175,7 @@ class ProjectIdKubernetestemplatesBody(object):
201
175
  ))
202
176
  else:
203
177
  result[attr] = value
204
- if issubclass(ProjectIdKubernetestemplatesBody, dict):
178
+ if issubclass(ClusterIdKubernetestemplatesBody, dict):
205
179
  for key, value in self.items():
206
180
  result[key] = value
207
181
 
@@ -215,13 +189,13 @@ class ProjectIdKubernetestemplatesBody(object):
215
189
  """For `print` and `pprint`"""
216
190
  return self.to_str()
217
191
 
218
- def __eq__(self, other: 'ProjectIdKubernetestemplatesBody') -> bool:
192
+ def __eq__(self, other: 'ClusterIdKubernetestemplatesBody') -> bool:
219
193
  """Returns true if both objects are equal"""
220
- if not isinstance(other, ProjectIdKubernetestemplatesBody):
194
+ if not isinstance(other, ClusterIdKubernetestemplatesBody):
221
195
  return False
222
196
 
223
197
  return self.__dict__ == other.__dict__
224
198
 
225
- def __ne__(self, other: 'ProjectIdKubernetestemplatesBody') -> bool:
199
+ def __ne__(self, other: 'ClusterIdKubernetestemplatesBody') -> bool:
226
200
  """Returns true if both objects are not equal"""
227
201
  return not self == other
@@ -41,24 +41,19 @@ class IncidentIdMessagesBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'message': 'str',
45
- 'user_id': 'str'
44
+ 'message': 'str'
46
45
  }
47
46
 
48
47
  attribute_map = {
49
- 'message': 'message',
50
- 'user_id': 'userId'
48
+ 'message': 'message'
51
49
  }
52
50
 
53
- def __init__(self, message: 'str' =None, user_id: 'str' =None): # noqa: E501
51
+ def __init__(self, message: 'str' =None): # noqa: E501
54
52
  """IncidentIdMessagesBody - a model defined in Swagger""" # noqa: E501
55
53
  self._message = None
56
- self._user_id = None
57
54
  self.discriminator = None
58
55
  if message is not None:
59
56
  self.message = message
60
- if user_id is not None:
61
- self.user_id = user_id
62
57
 
63
58
  @property
64
59
  def message(self) -> 'str':
@@ -81,27 +76,6 @@ class IncidentIdMessagesBody(object):
81
76
 
82
77
  self._message = message
83
78
 
84
- @property
85
- def user_id(self) -> 'str':
86
- """Gets the user_id of this IncidentIdMessagesBody. # noqa: E501
87
-
88
-
89
- :return: The user_id of this IncidentIdMessagesBody. # noqa: E501
90
- :rtype: str
91
- """
92
- return self._user_id
93
-
94
- @user_id.setter
95
- def user_id(self, user_id: 'str'):
96
- """Sets the user_id of this IncidentIdMessagesBody.
97
-
98
-
99
- :param user_id: The user_id of this IncidentIdMessagesBody. # noqa: E501
100
- :type: str
101
- """
102
-
103
- self._user_id = user_id
104
-
105
79
  def to_dict(self) -> dict:
106
80
  """Returns the model properties as a dict"""
107
81
  result = {}
@@ -41,7 +41,6 @@ class KubernetestemplatesIdBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'cluster_id': 'str',
45
44
  'description': 'str',
46
45
  'name': 'str',
47
46
  'properties': 'list[V1KubernetesTemplateProperty]',
@@ -49,23 +48,19 @@ class KubernetestemplatesIdBody(object):
49
48
  }
50
49
 
51
50
  attribute_map = {
52
- 'cluster_id': 'clusterId',
53
51
  'description': 'description',
54
52
  'name': 'name',
55
53
  'properties': 'properties',
56
54
  'spec': 'spec'
57
55
  }
58
56
 
59
- def __init__(self, cluster_id: 'str' =None, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
57
+ def __init__(self, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
60
58
  """KubernetestemplatesIdBody - a model defined in Swagger""" # noqa: E501
61
- self._cluster_id = None
62
59
  self._description = None
63
60
  self._name = None
64
61
  self._properties = None
65
62
  self._spec = None
66
63
  self.discriminator = None
67
- if cluster_id is not None:
68
- self.cluster_id = cluster_id
69
64
  if description is not None:
70
65
  self.description = description
71
66
  if name is not None:
@@ -75,27 +70,6 @@ class KubernetestemplatesIdBody(object):
75
70
  if spec is not None:
76
71
  self.spec = spec
77
72
 
78
- @property
79
- def cluster_id(self) -> 'str':
80
- """Gets the cluster_id of this KubernetestemplatesIdBody. # noqa: E501
81
-
82
-
83
- :return: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
84
- :rtype: str
85
- """
86
- return self._cluster_id
87
-
88
- @cluster_id.setter
89
- def cluster_id(self, cluster_id: 'str'):
90
- """Sets the cluster_id of this KubernetestemplatesIdBody.
91
-
92
-
93
- :param cluster_id: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
94
- :type: str
95
- """
96
-
97
- self._cluster_id = cluster_id
98
-
99
73
  @property
100
74
  def description(self) -> 'str':
101
75
  """Gets the description of this KubernetestemplatesIdBody. # noqa: E501
@@ -41,24 +41,19 @@ class MessagesMessageIdBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'message': 'str',
45
- 'user_id': 'str'
44
+ 'message': 'str'
46
45
  }
47
46
 
48
47
  attribute_map = {
49
- 'message': 'message',
50
- 'user_id': 'userId'
48
+ 'message': 'message'
51
49
  }
52
50
 
53
- def __init__(self, message: 'str' =None, user_id: 'str' =None): # noqa: E501
51
+ def __init__(self, message: 'str' =None): # noqa: E501
54
52
  """MessagesMessageIdBody - a model defined in Swagger""" # noqa: E501
55
53
  self._message = None
56
- self._user_id = None
57
54
  self.discriminator = None
58
55
  if message is not None:
59
56
  self.message = message
60
- if user_id is not None:
61
- self.user_id = user_id
62
57
 
63
58
  @property
64
59
  def message(self) -> 'str':
@@ -81,27 +76,6 @@ class MessagesMessageIdBody(object):
81
76
 
82
77
  self._message = message
83
78
 
84
- @property
85
- def user_id(self) -> 'str':
86
- """Gets the user_id of this MessagesMessageIdBody. # noqa: E501
87
-
88
-
89
- :return: The user_id of this MessagesMessageIdBody. # noqa: E501
90
- :rtype: str
91
- """
92
- return self._user_id
93
-
94
- @user_id.setter
95
- def user_id(self, user_id: 'str'):
96
- """Sets the user_id of this MessagesMessageIdBody.
97
-
98
-
99
- :param user_id: The user_id of this MessagesMessageIdBody. # noqa: E501
100
- :type: str
101
- """
102
-
103
- self._user_id = user_id
104
-
105
79
  def to_dict(self) -> dict:
106
80
  """Returns the model properties as a dict"""
107
81
  result = {}
@@ -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 StoragetransfersValidateBody(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
+ 'source_data_connection_id': 'str',
45
+ 'target_data_connection_id': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'source_data_connection_id': 'sourceDataConnectionId',
50
+ 'target_data_connection_id': 'targetDataConnectionId'
51
+ }
52
+
53
+ def __init__(self, source_data_connection_id: 'str' =None, target_data_connection_id: 'str' =None): # noqa: E501
54
+ """StoragetransfersValidateBody - a model defined in Swagger""" # noqa: E501
55
+ self._source_data_connection_id = None
56
+ self._target_data_connection_id = None
57
+ self.discriminator = None
58
+ if source_data_connection_id is not None:
59
+ self.source_data_connection_id = source_data_connection_id
60
+ if target_data_connection_id is not None:
61
+ self.target_data_connection_id = target_data_connection_id
62
+
63
+ @property
64
+ def source_data_connection_id(self) -> 'str':
65
+ """Gets the source_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
66
+
67
+
68
+ :return: The source_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._source_data_connection_id
72
+
73
+ @source_data_connection_id.setter
74
+ def source_data_connection_id(self, source_data_connection_id: 'str'):
75
+ """Sets the source_data_connection_id of this StoragetransfersValidateBody.
76
+
77
+
78
+ :param source_data_connection_id: The source_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._source_data_connection_id = source_data_connection_id
83
+
84
+ @property
85
+ def target_data_connection_id(self) -> 'str':
86
+ """Gets the target_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
87
+
88
+
89
+ :return: The target_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._target_data_connection_id
93
+
94
+ @target_data_connection_id.setter
95
+ def target_data_connection_id(self, target_data_connection_id: 'str'):
96
+ """Sets the target_data_connection_id of this StoragetransfersValidateBody.
97
+
98
+
99
+ :param target_data_connection_id: The target_data_connection_id of this StoragetransfersValidateBody. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._target_data_connection_id = target_data_connection_id
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(StoragetransfersValidateBody, 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: 'StoragetransfersValidateBody') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, StoragetransfersValidateBody):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'StoragetransfersValidateBody') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -40,7 +40,7 @@ class V1CloudSpaceSpecializedView(object):
40
40
  UNSPECIFIED = "CLOUD_SPACE_SPECIALIZED_VIEW_UNSPECIFIED"
41
41
  DEFAULT = "CLOUD_SPACE_SPECIALIZED_VIEW_DEFAULT"
42
42
  STREAMLIT = "CLOUD_SPACE_SPECIALIZED_VIEW_STREAMLIT"
43
- SERVERLESS = "CLOUD_SPACE_SPECIALIZED_VIEW_SERVERLESS"
43
+ NOTEBOOK = "CLOUD_SPACE_SPECIALIZED_VIEW_NOTEBOOK"
44
44
  """
45
45
  Attributes:
46
46
  swagger_types (dict): The key is attribute name