lightning-sdk 0.1.31__py3-none-any.whl → 0.1.33__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 +110 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +61 -0
- lightning_sdk/api/studio_api.py +15 -8
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/api/utils.py +8 -1
- 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/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -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.py +27 -1
- 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/studio.py +6 -5
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.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
|
|
@@ -45,6 +45,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
45
45
|
'cluster_id': 'str',
|
|
46
46
|
'endpoint': 'V1Endpoint',
|
|
47
47
|
'name': 'str',
|
|
48
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
48
49
|
'replicas': 'int',
|
|
49
50
|
'spec': 'V1JobSpec',
|
|
50
51
|
'strategy': 'V1DeploymentStrategy'
|
|
@@ -55,17 +56,19 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
55
56
|
'cluster_id': 'clusterId',
|
|
56
57
|
'endpoint': 'endpoint',
|
|
57
58
|
'name': 'name',
|
|
59
|
+
'parameter_spec': 'parameterSpec',
|
|
58
60
|
'replicas': 'replicas',
|
|
59
61
|
'spec': 'spec',
|
|
60
62
|
'strategy': 'strategy'
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
65
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
64
66
|
"""CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs - a model defined in Swagger""" # noqa: E501
|
|
65
67
|
self._autoscaling = None
|
|
66
68
|
self._cluster_id = None
|
|
67
69
|
self._endpoint = None
|
|
68
70
|
self._name = None
|
|
71
|
+
self._parameter_spec = None
|
|
69
72
|
self._replicas = None
|
|
70
73
|
self._spec = None
|
|
71
74
|
self._strategy = None
|
|
@@ -78,6 +81,8 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
78
81
|
self.endpoint = endpoint
|
|
79
82
|
if name is not None:
|
|
80
83
|
self.name = name
|
|
84
|
+
if parameter_spec is not None:
|
|
85
|
+
self.parameter_spec = parameter_spec
|
|
81
86
|
if replicas is not None:
|
|
82
87
|
self.replicas = replicas
|
|
83
88
|
if spec is not None:
|
|
@@ -169,6 +174,27 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
|
|
|
169
174
|
|
|
170
175
|
self._name = name
|
|
171
176
|
|
|
177
|
+
@property
|
|
178
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
179
|
+
"""Gets the parameter_spec of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:return: The parameter_spec of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
183
|
+
:rtype: V1ParameterizationSpec
|
|
184
|
+
"""
|
|
185
|
+
return self._parameter_spec
|
|
186
|
+
|
|
187
|
+
@parameter_spec.setter
|
|
188
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
189
|
+
"""Sets the parameter_spec of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param parameter_spec: The parameter_spec of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
193
|
+
:type: V1ParameterizationSpec
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._parameter_spec = parameter_spec
|
|
197
|
+
|
|
172
198
|
@property
|
|
173
199
|
def replicas(self) -> 'int':
|
|
174
200
|
"""Gets the replicas of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
|
|
@@ -47,6 +47,7 @@ class DeploymentsIdBody(object):
|
|
|
47
47
|
'endpoint': 'V1Endpoint',
|
|
48
48
|
'is_published': 'bool',
|
|
49
49
|
'name': 'str',
|
|
50
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
50
51
|
'release_id': 'str',
|
|
51
52
|
'replicas': 'int',
|
|
52
53
|
'spec': 'V1JobSpec',
|
|
@@ -63,6 +64,7 @@ class DeploymentsIdBody(object):
|
|
|
63
64
|
'endpoint': 'endpoint',
|
|
64
65
|
'is_published': 'isPublished',
|
|
65
66
|
'name': 'name',
|
|
67
|
+
'parameter_spec': 'parameterSpec',
|
|
66
68
|
'release_id': 'releaseId',
|
|
67
69
|
'replicas': 'replicas',
|
|
68
70
|
'spec': 'spec',
|
|
@@ -72,7 +74,7 @@ class DeploymentsIdBody(object):
|
|
|
72
74
|
'user_id': 'userId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._autoscaling = None
|
|
78
80
|
self._created_at = None
|
|
@@ -80,6 +82,7 @@ class DeploymentsIdBody(object):
|
|
|
80
82
|
self._endpoint = None
|
|
81
83
|
self._is_published = None
|
|
82
84
|
self._name = None
|
|
85
|
+
self._parameter_spec = None
|
|
83
86
|
self._release_id = None
|
|
84
87
|
self._replicas = None
|
|
85
88
|
self._spec = None
|
|
@@ -100,6 +103,8 @@ class DeploymentsIdBody(object):
|
|
|
100
103
|
self.is_published = is_published
|
|
101
104
|
if name is not None:
|
|
102
105
|
self.name = name
|
|
106
|
+
if parameter_spec is not None:
|
|
107
|
+
self.parameter_spec = parameter_spec
|
|
103
108
|
if release_id is not None:
|
|
104
109
|
self.release_id = release_id
|
|
105
110
|
if replicas is not None:
|
|
@@ -241,6 +246,27 @@ class DeploymentsIdBody(object):
|
|
|
241
246
|
|
|
242
247
|
self._name = name
|
|
243
248
|
|
|
249
|
+
@property
|
|
250
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
251
|
+
"""Gets the parameter_spec of this DeploymentsIdBody. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The parameter_spec of this DeploymentsIdBody. # noqa: E501
|
|
255
|
+
:rtype: V1ParameterizationSpec
|
|
256
|
+
"""
|
|
257
|
+
return self._parameter_spec
|
|
258
|
+
|
|
259
|
+
@parameter_spec.setter
|
|
260
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
261
|
+
"""Sets the parameter_spec of this DeploymentsIdBody.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param parameter_spec: The parameter_spec of this DeploymentsIdBody. # noqa: E501
|
|
265
|
+
:type: V1ParameterizationSpec
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._parameter_spec = parameter_spec
|
|
269
|
+
|
|
244
270
|
@property
|
|
245
271
|
def release_id(self) -> 'str':
|
|
246
272
|
"""Gets the release_id of this DeploymentsIdBody. # 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
|