lightning-sdk 0.1.31__py3-none-any.whl → 0.1.32__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 +3 -1
- lightning_sdk/ai_hub.py +29 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +65 -37
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
|
@@ -47,11 +47,14 @@ class Create(object):
|
|
|
47
47
|
'create_index': 'bool',
|
|
48
48
|
'create_resources': 'bool',
|
|
49
49
|
'efs': 'V1EfsDataConnection',
|
|
50
|
+
'efs_folder': 'V1EFSFolderDataConnection',
|
|
50
51
|
'force': 'bool',
|
|
51
52
|
'gcp': 'V1GcpDataConnection',
|
|
53
|
+
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
52
54
|
'id': 'str',
|
|
53
55
|
'name': 'str',
|
|
54
56
|
'run_cmds': 'list[str]',
|
|
57
|
+
's3_folder': 'V1S3FolderDataConnection',
|
|
55
58
|
'snowflake': 'V1SnowflakeDataConnection',
|
|
56
59
|
'writable': 'bool'
|
|
57
60
|
}
|
|
@@ -63,16 +66,19 @@ class Create(object):
|
|
|
63
66
|
'create_index': 'createIndex',
|
|
64
67
|
'create_resources': 'createResources',
|
|
65
68
|
'efs': 'efs',
|
|
69
|
+
'efs_folder': 'efsFolder',
|
|
66
70
|
'force': 'force',
|
|
67
71
|
'gcp': 'gcp',
|
|
72
|
+
'gcs_folder': 'gcsFolder',
|
|
68
73
|
'id': 'id',
|
|
69
74
|
'name': 'name',
|
|
70
75
|
'run_cmds': 'runCmds',
|
|
76
|
+
's3_folder': 's3Folder',
|
|
71
77
|
'snowflake': 'snowflake',
|
|
72
78
|
'writable': 'writable'
|
|
73
79
|
}
|
|
74
80
|
|
|
75
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, create_index: 'bool' =None, create_resources: 'bool' =None, efs: 'V1EfsDataConnection' =None, force: 'bool' =None, gcp: 'V1GcpDataConnection' =None, id: 'str' =None, name: 'str' =None, run_cmds: 'list[str]' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
81
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, create_index: 'bool' =None, create_resources: 'bool' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, force: 'bool' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, name: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
76
82
|
"""Create - a model defined in Swagger""" # noqa: E501
|
|
77
83
|
self._access_cluster_ids = None
|
|
78
84
|
self._aws = None
|
|
@@ -80,11 +86,14 @@ class Create(object):
|
|
|
80
86
|
self._create_index = None
|
|
81
87
|
self._create_resources = None
|
|
82
88
|
self._efs = None
|
|
89
|
+
self._efs_folder = None
|
|
83
90
|
self._force = None
|
|
84
91
|
self._gcp = None
|
|
92
|
+
self._gcs_folder = None
|
|
85
93
|
self._id = None
|
|
86
94
|
self._name = None
|
|
87
95
|
self._run_cmds = None
|
|
96
|
+
self._s3_folder = None
|
|
88
97
|
self._snowflake = None
|
|
89
98
|
self._writable = None
|
|
90
99
|
self.discriminator = None
|
|
@@ -100,16 +109,22 @@ class Create(object):
|
|
|
100
109
|
self.create_resources = create_resources
|
|
101
110
|
if efs is not None:
|
|
102
111
|
self.efs = efs
|
|
112
|
+
if efs_folder is not None:
|
|
113
|
+
self.efs_folder = efs_folder
|
|
103
114
|
if force is not None:
|
|
104
115
|
self.force = force
|
|
105
116
|
if gcp is not None:
|
|
106
117
|
self.gcp = gcp
|
|
118
|
+
if gcs_folder is not None:
|
|
119
|
+
self.gcs_folder = gcs_folder
|
|
107
120
|
if id is not None:
|
|
108
121
|
self.id = id
|
|
109
122
|
if name is not None:
|
|
110
123
|
self.name = name
|
|
111
124
|
if run_cmds is not None:
|
|
112
125
|
self.run_cmds = run_cmds
|
|
126
|
+
if s3_folder is not None:
|
|
127
|
+
self.s3_folder = s3_folder
|
|
113
128
|
if snowflake is not None:
|
|
114
129
|
self.snowflake = snowflake
|
|
115
130
|
if writable is not None:
|
|
@@ -241,6 +256,27 @@ class Create(object):
|
|
|
241
256
|
|
|
242
257
|
self._efs = efs
|
|
243
258
|
|
|
259
|
+
@property
|
|
260
|
+
def efs_folder(self) -> 'V1EFSFolderDataConnection':
|
|
261
|
+
"""Gets the efs_folder of this Create. # noqa: E501
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:return: The efs_folder of this Create. # noqa: E501
|
|
265
|
+
:rtype: V1EFSFolderDataConnection
|
|
266
|
+
"""
|
|
267
|
+
return self._efs_folder
|
|
268
|
+
|
|
269
|
+
@efs_folder.setter
|
|
270
|
+
def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
|
|
271
|
+
"""Sets the efs_folder of this Create.
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
:param efs_folder: The efs_folder of this Create. # noqa: E501
|
|
275
|
+
:type: V1EFSFolderDataConnection
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
self._efs_folder = efs_folder
|
|
279
|
+
|
|
244
280
|
@property
|
|
245
281
|
def force(self) -> 'bool':
|
|
246
282
|
"""Gets the force of this Create. # noqa: E501
|
|
@@ -283,6 +319,27 @@ class Create(object):
|
|
|
283
319
|
|
|
284
320
|
self._gcp = gcp
|
|
285
321
|
|
|
322
|
+
@property
|
|
323
|
+
def gcs_folder(self) -> 'V1GCSFolderDataConnection':
|
|
324
|
+
"""Gets the gcs_folder of this Create. # noqa: E501
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:return: The gcs_folder of this Create. # noqa: E501
|
|
328
|
+
:rtype: V1GCSFolderDataConnection
|
|
329
|
+
"""
|
|
330
|
+
return self._gcs_folder
|
|
331
|
+
|
|
332
|
+
@gcs_folder.setter
|
|
333
|
+
def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
|
|
334
|
+
"""Sets the gcs_folder of this Create.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param gcs_folder: The gcs_folder of this Create. # noqa: E501
|
|
338
|
+
:type: V1GCSFolderDataConnection
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
self._gcs_folder = gcs_folder
|
|
342
|
+
|
|
286
343
|
@property
|
|
287
344
|
def id(self) -> 'str':
|
|
288
345
|
"""Gets the id of this Create. # noqa: E501
|
|
@@ -346,6 +403,27 @@ class Create(object):
|
|
|
346
403
|
|
|
347
404
|
self._run_cmds = run_cmds
|
|
348
405
|
|
|
406
|
+
@property
|
|
407
|
+
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
408
|
+
"""Gets the s3_folder of this Create. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The s3_folder of this Create. # noqa: E501
|
|
412
|
+
:rtype: V1S3FolderDataConnection
|
|
413
|
+
"""
|
|
414
|
+
return self._s3_folder
|
|
415
|
+
|
|
416
|
+
@s3_folder.setter
|
|
417
|
+
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
418
|
+
"""Sets the s3_folder of this Create.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param s3_folder: The s3_folder of this Create. # noqa: E501
|
|
422
|
+
:type: V1S3FolderDataConnection
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._s3_folder = s3_folder
|
|
426
|
+
|
|
349
427
|
@property
|
|
350
428
|
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
351
429
|
"""Gets the snowflake of this Create. # noqa: E501
|
|
@@ -46,11 +46,14 @@ class DeploymenttemplatesIdBody(object):
|
|
|
46
46
|
'description': 'str',
|
|
47
47
|
'featured': 'bool',
|
|
48
48
|
'image_url': 'str',
|
|
49
|
+
'metrics': 'list[V1DeploymentMetrics]',
|
|
49
50
|
'name': 'str',
|
|
50
51
|
'org_id': 'str',
|
|
51
52
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
52
53
|
'spec': 'str',
|
|
53
54
|
'tags': 'list[V1ResourceTag]',
|
|
55
|
+
'thumbnail': 'str',
|
|
56
|
+
'thumbnail_file_type': 'str',
|
|
54
57
|
'visibility': 'V1DeploymentTemplateType'
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -60,26 +63,32 @@ class DeploymenttemplatesIdBody(object):
|
|
|
60
63
|
'description': 'description',
|
|
61
64
|
'featured': 'featured',
|
|
62
65
|
'image_url': 'imageUrl',
|
|
66
|
+
'metrics': 'metrics',
|
|
63
67
|
'name': 'name',
|
|
64
68
|
'org_id': 'orgId',
|
|
65
69
|
'parameter_spec': 'parameterSpec',
|
|
66
70
|
'spec': 'spec',
|
|
67
71
|
'tags': 'tags',
|
|
72
|
+
'thumbnail': 'thumbnail',
|
|
73
|
+
'thumbnail_file_type': 'thumbnailFileType',
|
|
68
74
|
'visibility': 'visibility'
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
77
|
+
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, metrics: 'list[V1DeploymentMetrics]' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
72
78
|
"""DeploymenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
73
79
|
self._about_page_content = None
|
|
74
80
|
self._categories = None
|
|
75
81
|
self._description = None
|
|
76
82
|
self._featured = None
|
|
77
83
|
self._image_url = None
|
|
84
|
+
self._metrics = None
|
|
78
85
|
self._name = None
|
|
79
86
|
self._org_id = None
|
|
80
87
|
self._parameter_spec = None
|
|
81
88
|
self._spec = None
|
|
82
89
|
self._tags = None
|
|
90
|
+
self._thumbnail = None
|
|
91
|
+
self._thumbnail_file_type = None
|
|
83
92
|
self._visibility = None
|
|
84
93
|
self.discriminator = None
|
|
85
94
|
if about_page_content is not None:
|
|
@@ -92,6 +101,8 @@ class DeploymenttemplatesIdBody(object):
|
|
|
92
101
|
self.featured = featured
|
|
93
102
|
if image_url is not None:
|
|
94
103
|
self.image_url = image_url
|
|
104
|
+
if metrics is not None:
|
|
105
|
+
self.metrics = metrics
|
|
95
106
|
if name is not None:
|
|
96
107
|
self.name = name
|
|
97
108
|
if org_id is not None:
|
|
@@ -102,6 +113,10 @@ class DeploymenttemplatesIdBody(object):
|
|
|
102
113
|
self.spec = spec
|
|
103
114
|
if tags is not None:
|
|
104
115
|
self.tags = tags
|
|
116
|
+
if thumbnail is not None:
|
|
117
|
+
self.thumbnail = thumbnail
|
|
118
|
+
if thumbnail_file_type is not None:
|
|
119
|
+
self.thumbnail_file_type = thumbnail_file_type
|
|
105
120
|
if visibility is not None:
|
|
106
121
|
self.visibility = visibility
|
|
107
122
|
|
|
@@ -210,6 +225,27 @@ class DeploymenttemplatesIdBody(object):
|
|
|
210
225
|
|
|
211
226
|
self._image_url = image_url
|
|
212
227
|
|
|
228
|
+
@property
|
|
229
|
+
def metrics(self) -> 'list[V1DeploymentMetrics]':
|
|
230
|
+
"""Gets the metrics of this DeploymenttemplatesIdBody. # noqa: E501
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:return: The metrics of this DeploymenttemplatesIdBody. # noqa: E501
|
|
234
|
+
:rtype: list[V1DeploymentMetrics]
|
|
235
|
+
"""
|
|
236
|
+
return self._metrics
|
|
237
|
+
|
|
238
|
+
@metrics.setter
|
|
239
|
+
def metrics(self, metrics: 'list[V1DeploymentMetrics]'):
|
|
240
|
+
"""Sets the metrics of this DeploymenttemplatesIdBody.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:param metrics: The metrics of this DeploymenttemplatesIdBody. # noqa: E501
|
|
244
|
+
:type: list[V1DeploymentMetrics]
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
self._metrics = metrics
|
|
248
|
+
|
|
213
249
|
@property
|
|
214
250
|
def name(self) -> 'str':
|
|
215
251
|
"""Gets the name of this DeploymenttemplatesIdBody. # noqa: E501
|
|
@@ -315,6 +351,48 @@ class DeploymenttemplatesIdBody(object):
|
|
|
315
351
|
|
|
316
352
|
self._tags = tags
|
|
317
353
|
|
|
354
|
+
@property
|
|
355
|
+
def thumbnail(self) -> 'str':
|
|
356
|
+
"""Gets the thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:return: The thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
|
|
360
|
+
:rtype: str
|
|
361
|
+
"""
|
|
362
|
+
return self._thumbnail
|
|
363
|
+
|
|
364
|
+
@thumbnail.setter
|
|
365
|
+
def thumbnail(self, thumbnail: 'str'):
|
|
366
|
+
"""Sets the thumbnail of this DeploymenttemplatesIdBody.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param thumbnail: The thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
|
|
370
|
+
:type: str
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
self._thumbnail = thumbnail
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def thumbnail_file_type(self) -> 'str':
|
|
377
|
+
"""Gets the thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
:return: The thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
|
|
381
|
+
:rtype: str
|
|
382
|
+
"""
|
|
383
|
+
return self._thumbnail_file_type
|
|
384
|
+
|
|
385
|
+
@thumbnail_file_type.setter
|
|
386
|
+
def thumbnail_file_type(self, thumbnail_file_type: 'str'):
|
|
387
|
+
"""Sets the thumbnail_file_type of this DeploymenttemplatesIdBody.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:param thumbnail_file_type: The thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
|
|
391
|
+
:type: str
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
self._thumbnail_file_type = thumbnail_file_type
|
|
395
|
+
|
|
318
396
|
@property
|
|
319
397
|
def visibility(self) -> 'V1DeploymentTemplateType':
|
|
320
398
|
"""Gets the visibility of this DeploymenttemplatesIdBody. # noqa: E501
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class LitloggermetricsIdBody(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
|
+
'allowed_org_id': 'str',
|
|
45
|
+
'allowed_user_ids': 'list[str]',
|
|
46
|
+
'public': 'bool'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'allowed_org_id': 'allowedOrgId',
|
|
51
|
+
'allowed_user_ids': 'allowedUserIds',
|
|
52
|
+
'public': 'public'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, allowed_org_id: 'str' =None, allowed_user_ids: 'list[str]' =None, public: 'bool' =None): # noqa: E501
|
|
56
|
+
"""LitloggermetricsIdBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._allowed_org_id = None
|
|
58
|
+
self._allowed_user_ids = None
|
|
59
|
+
self._public = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if allowed_org_id is not None:
|
|
62
|
+
self.allowed_org_id = allowed_org_id
|
|
63
|
+
if allowed_user_ids is not None:
|
|
64
|
+
self.allowed_user_ids = allowed_user_ids
|
|
65
|
+
if public is not None:
|
|
66
|
+
self.public = public
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def allowed_org_id(self) -> 'str':
|
|
70
|
+
"""Gets the allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._allowed_org_id
|
|
77
|
+
|
|
78
|
+
@allowed_org_id.setter
|
|
79
|
+
def allowed_org_id(self, allowed_org_id: 'str'):
|
|
80
|
+
"""Sets the allowed_org_id of this LitloggermetricsIdBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param allowed_org_id: The allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._allowed_org_id = allowed_org_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def allowed_user_ids(self) -> 'list[str]':
|
|
91
|
+
"""Gets the allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
|
|
95
|
+
:rtype: list[str]
|
|
96
|
+
"""
|
|
97
|
+
return self._allowed_user_ids
|
|
98
|
+
|
|
99
|
+
@allowed_user_ids.setter
|
|
100
|
+
def allowed_user_ids(self, allowed_user_ids: 'list[str]'):
|
|
101
|
+
"""Sets the allowed_user_ids of this LitloggermetricsIdBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param allowed_user_ids: The allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
|
|
105
|
+
:type: list[str]
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._allowed_user_ids = allowed_user_ids
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def public(self) -> 'bool':
|
|
112
|
+
"""Gets the public of this LitloggermetricsIdBody. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The public of this LitloggermetricsIdBody. # noqa: E501
|
|
116
|
+
:rtype: bool
|
|
117
|
+
"""
|
|
118
|
+
return self._public
|
|
119
|
+
|
|
120
|
+
@public.setter
|
|
121
|
+
def public(self, public: 'bool'):
|
|
122
|
+
"""Sets the public of this LitloggermetricsIdBody.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param public: The public of this LitloggermetricsIdBody. # noqa: E501
|
|
126
|
+
:type: bool
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._public = public
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(LitloggermetricsIdBody, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'LitloggermetricsIdBody') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, LitloggermetricsIdBody):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'LitloggermetricsIdBody') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -42,39 +42,59 @@ class Update(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'aws': 'V1AwsDataConnection',
|
|
45
|
+
'efs': 'V1EfsDataConnection',
|
|
46
|
+
'efs_folder': 'V1EFSFolderDataConnection',
|
|
45
47
|
'gcp': 'V1GcpDataConnection',
|
|
48
|
+
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
46
49
|
'name': 'str',
|
|
47
50
|
'run_cmds': 'list[str]',
|
|
51
|
+
's3_folder': 'V1S3FolderDataConnection',
|
|
48
52
|
'snowflake': 'V1SnowflakeDataConnection',
|
|
49
53
|
'writable': 'bool'
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
attribute_map = {
|
|
53
57
|
'aws': 'aws',
|
|
58
|
+
'efs': 'efs',
|
|
59
|
+
'efs_folder': 'efsFolder',
|
|
54
60
|
'gcp': 'gcp',
|
|
61
|
+
'gcs_folder': 'gcsFolder',
|
|
55
62
|
'name': 'name',
|
|
56
63
|
'run_cmds': 'runCmds',
|
|
64
|
+
's3_folder': 's3Folder',
|
|
57
65
|
'snowflake': 'snowflake',
|
|
58
66
|
'writable': 'writable'
|
|
59
67
|
}
|
|
60
68
|
|
|
61
|
-
def __init__(self, aws: 'V1AwsDataConnection' =None, gcp: 'V1GcpDataConnection' =None, name: 'str' =None, run_cmds: 'list[str]' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
69
|
+
def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, name: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
62
70
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
63
71
|
self._aws = None
|
|
72
|
+
self._efs = None
|
|
73
|
+
self._efs_folder = None
|
|
64
74
|
self._gcp = None
|
|
75
|
+
self._gcs_folder = None
|
|
65
76
|
self._name = None
|
|
66
77
|
self._run_cmds = None
|
|
78
|
+
self._s3_folder = None
|
|
67
79
|
self._snowflake = None
|
|
68
80
|
self._writable = None
|
|
69
81
|
self.discriminator = None
|
|
70
82
|
if aws is not None:
|
|
71
83
|
self.aws = aws
|
|
84
|
+
if efs is not None:
|
|
85
|
+
self.efs = efs
|
|
86
|
+
if efs_folder is not None:
|
|
87
|
+
self.efs_folder = efs_folder
|
|
72
88
|
if gcp is not None:
|
|
73
89
|
self.gcp = gcp
|
|
90
|
+
if gcs_folder is not None:
|
|
91
|
+
self.gcs_folder = gcs_folder
|
|
74
92
|
if name is not None:
|
|
75
93
|
self.name = name
|
|
76
94
|
if run_cmds is not None:
|
|
77
95
|
self.run_cmds = run_cmds
|
|
96
|
+
if s3_folder is not None:
|
|
97
|
+
self.s3_folder = s3_folder
|
|
78
98
|
if snowflake is not None:
|
|
79
99
|
self.snowflake = snowflake
|
|
80
100
|
if writable is not None:
|
|
@@ -101,6 +121,48 @@ class Update(object):
|
|
|
101
121
|
|
|
102
122
|
self._aws = aws
|
|
103
123
|
|
|
124
|
+
@property
|
|
125
|
+
def efs(self) -> 'V1EfsDataConnection':
|
|
126
|
+
"""Gets the efs of this Update. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The efs of this Update. # noqa: E501
|
|
130
|
+
:rtype: V1EfsDataConnection
|
|
131
|
+
"""
|
|
132
|
+
return self._efs
|
|
133
|
+
|
|
134
|
+
@efs.setter
|
|
135
|
+
def efs(self, efs: 'V1EfsDataConnection'):
|
|
136
|
+
"""Sets the efs of this Update.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param efs: The efs of this Update. # noqa: E501
|
|
140
|
+
:type: V1EfsDataConnection
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._efs = efs
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def efs_folder(self) -> 'V1EFSFolderDataConnection':
|
|
147
|
+
"""Gets the efs_folder of this Update. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The efs_folder of this Update. # noqa: E501
|
|
151
|
+
:rtype: V1EFSFolderDataConnection
|
|
152
|
+
"""
|
|
153
|
+
return self._efs_folder
|
|
154
|
+
|
|
155
|
+
@efs_folder.setter
|
|
156
|
+
def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
|
|
157
|
+
"""Sets the efs_folder of this Update.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param efs_folder: The efs_folder of this Update. # noqa: E501
|
|
161
|
+
:type: V1EFSFolderDataConnection
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._efs_folder = efs_folder
|
|
165
|
+
|
|
104
166
|
@property
|
|
105
167
|
def gcp(self) -> 'V1GcpDataConnection':
|
|
106
168
|
"""Gets the gcp of this Update. # noqa: E501
|
|
@@ -122,6 +184,27 @@ class Update(object):
|
|
|
122
184
|
|
|
123
185
|
self._gcp = gcp
|
|
124
186
|
|
|
187
|
+
@property
|
|
188
|
+
def gcs_folder(self) -> 'V1GCSFolderDataConnection':
|
|
189
|
+
"""Gets the gcs_folder of this Update. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The gcs_folder of this Update. # noqa: E501
|
|
193
|
+
:rtype: V1GCSFolderDataConnection
|
|
194
|
+
"""
|
|
195
|
+
return self._gcs_folder
|
|
196
|
+
|
|
197
|
+
@gcs_folder.setter
|
|
198
|
+
def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
|
|
199
|
+
"""Sets the gcs_folder of this Update.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param gcs_folder: The gcs_folder of this Update. # noqa: E501
|
|
203
|
+
:type: V1GCSFolderDataConnection
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._gcs_folder = gcs_folder
|
|
207
|
+
|
|
125
208
|
@property
|
|
126
209
|
def name(self) -> 'str':
|
|
127
210
|
"""Gets the name of this Update. # noqa: E501
|
|
@@ -164,6 +247,27 @@ class Update(object):
|
|
|
164
247
|
|
|
165
248
|
self._run_cmds = run_cmds
|
|
166
249
|
|
|
250
|
+
@property
|
|
251
|
+
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
252
|
+
"""Gets the s3_folder of this Update. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The s3_folder of this Update. # noqa: E501
|
|
256
|
+
:rtype: V1S3FolderDataConnection
|
|
257
|
+
"""
|
|
258
|
+
return self._s3_folder
|
|
259
|
+
|
|
260
|
+
@s3_folder.setter
|
|
261
|
+
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
262
|
+
"""Sets the s3_folder of this Update.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param s3_folder: The s3_folder of this Update. # noqa: E501
|
|
266
|
+
:type: V1S3FolderDataConnection
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._s3_folder = s3_folder
|
|
270
|
+
|
|
167
271
|
@property
|
|
168
272
|
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
169
273
|
"""Gets the snowflake of this Update. # noqa: E501
|