lightning-sdk 0.1.30__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/teamspace_api.py +35 -5
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
- lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
- 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 +95 -17
- 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 +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
- 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 +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
- 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 +76 -24
- 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/teamspace.py +11 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
|
@@ -46,12 +46,15 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
46
46
|
'deployment_id': 'str',
|
|
47
47
|
'description': 'str',
|
|
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
|
'project_id': 'str',
|
|
53
54
|
'spec': 'str',
|
|
54
55
|
'tags': 'list[V1ResourceTag]',
|
|
56
|
+
'thumbnail': 'str',
|
|
57
|
+
'thumbnail_file_type': 'str',
|
|
55
58
|
'version': 'str',
|
|
56
59
|
'visibility': 'V1DeploymentTemplateType'
|
|
57
60
|
}
|
|
@@ -62,29 +65,35 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
62
65
|
'deployment_id': 'deploymentId',
|
|
63
66
|
'description': 'description',
|
|
64
67
|
'image_url': 'imageUrl',
|
|
68
|
+
'metrics': 'metrics',
|
|
65
69
|
'name': 'name',
|
|
66
70
|
'org_id': 'orgId',
|
|
67
|
-
'
|
|
71
|
+
'parameter_spec': 'parameterSpec',
|
|
68
72
|
'project_id': 'projectId',
|
|
69
73
|
'spec': 'spec',
|
|
70
74
|
'tags': 'tags',
|
|
75
|
+
'thumbnail': 'thumbnail',
|
|
76
|
+
'thumbnail_file_type': 'thumbnailFileType',
|
|
71
77
|
'version': 'version',
|
|
72
78
|
'visibility': 'visibility'
|
|
73
79
|
}
|
|
74
80
|
|
|
75
|
-
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None,
|
|
81
|
+
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, metrics: 'list[V1DeploymentMetrics]' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
76
82
|
"""V1CreateDeploymentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
77
83
|
self._about_page_content = None
|
|
78
84
|
self._categories = None
|
|
79
85
|
self._deployment_id = None
|
|
80
86
|
self._description = None
|
|
81
87
|
self._image_url = None
|
|
88
|
+
self._metrics = None
|
|
82
89
|
self._name = None
|
|
83
90
|
self._org_id = None
|
|
84
|
-
self.
|
|
91
|
+
self._parameter_spec = None
|
|
85
92
|
self._project_id = None
|
|
86
93
|
self._spec = None
|
|
87
94
|
self._tags = None
|
|
95
|
+
self._thumbnail = None
|
|
96
|
+
self._thumbnail_file_type = None
|
|
88
97
|
self._version = None
|
|
89
98
|
self._visibility = None
|
|
90
99
|
self.discriminator = None
|
|
@@ -98,18 +107,24 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
98
107
|
self.description = description
|
|
99
108
|
if image_url is not None:
|
|
100
109
|
self.image_url = image_url
|
|
110
|
+
if metrics is not None:
|
|
111
|
+
self.metrics = metrics
|
|
101
112
|
if name is not None:
|
|
102
113
|
self.name = name
|
|
103
114
|
if org_id is not None:
|
|
104
115
|
self.org_id = org_id
|
|
105
|
-
if
|
|
106
|
-
self.
|
|
116
|
+
if parameter_spec is not None:
|
|
117
|
+
self.parameter_spec = parameter_spec
|
|
107
118
|
if project_id is not None:
|
|
108
119
|
self.project_id = project_id
|
|
109
120
|
if spec is not None:
|
|
110
121
|
self.spec = spec
|
|
111
122
|
if tags is not None:
|
|
112
123
|
self.tags = tags
|
|
124
|
+
if thumbnail is not None:
|
|
125
|
+
self.thumbnail = thumbnail
|
|
126
|
+
if thumbnail_file_type is not None:
|
|
127
|
+
self.thumbnail_file_type = thumbnail_file_type
|
|
113
128
|
if version is not None:
|
|
114
129
|
self.version = version
|
|
115
130
|
if visibility is not None:
|
|
@@ -220,6 +235,27 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
220
235
|
|
|
221
236
|
self._image_url = image_url
|
|
222
237
|
|
|
238
|
+
@property
|
|
239
|
+
def metrics(self) -> 'list[V1DeploymentMetrics]':
|
|
240
|
+
"""Gets the metrics of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:return: The metrics of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
244
|
+
:rtype: list[V1DeploymentMetrics]
|
|
245
|
+
"""
|
|
246
|
+
return self._metrics
|
|
247
|
+
|
|
248
|
+
@metrics.setter
|
|
249
|
+
def metrics(self, metrics: 'list[V1DeploymentMetrics]'):
|
|
250
|
+
"""Sets the metrics of this V1CreateDeploymentTemplateRequest.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
:param metrics: The metrics of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
254
|
+
:type: list[V1DeploymentMetrics]
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
self._metrics = metrics
|
|
258
|
+
|
|
223
259
|
@property
|
|
224
260
|
def name(self) -> 'str':
|
|
225
261
|
"""Gets the name of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
@@ -263,25 +299,25 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
263
299
|
self._org_id = org_id
|
|
264
300
|
|
|
265
301
|
@property
|
|
266
|
-
def
|
|
267
|
-
"""Gets the
|
|
302
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
303
|
+
"""Gets the parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
268
304
|
|
|
269
305
|
|
|
270
|
-
:return: The
|
|
271
|
-
:rtype:
|
|
306
|
+
:return: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
307
|
+
:rtype: V1ParameterizationSpec
|
|
272
308
|
"""
|
|
273
|
-
return self.
|
|
309
|
+
return self._parameter_spec
|
|
274
310
|
|
|
275
|
-
@
|
|
276
|
-
def
|
|
277
|
-
"""Sets the
|
|
311
|
+
@parameter_spec.setter
|
|
312
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
313
|
+
"""Sets the parameter_spec of this V1CreateDeploymentTemplateRequest.
|
|
278
314
|
|
|
279
315
|
|
|
280
|
-
:param
|
|
281
|
-
:type:
|
|
316
|
+
:param parameter_spec: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
317
|
+
:type: V1ParameterizationSpec
|
|
282
318
|
"""
|
|
283
319
|
|
|
284
|
-
self.
|
|
320
|
+
self._parameter_spec = parameter_spec
|
|
285
321
|
|
|
286
322
|
@property
|
|
287
323
|
def project_id(self) -> 'str':
|
|
@@ -346,6 +382,48 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
346
382
|
|
|
347
383
|
self._tags = tags
|
|
348
384
|
|
|
385
|
+
@property
|
|
386
|
+
def thumbnail(self) -> 'str':
|
|
387
|
+
"""Gets the thumbnail of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:return: The thumbnail of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
391
|
+
:rtype: str
|
|
392
|
+
"""
|
|
393
|
+
return self._thumbnail
|
|
394
|
+
|
|
395
|
+
@thumbnail.setter
|
|
396
|
+
def thumbnail(self, thumbnail: 'str'):
|
|
397
|
+
"""Sets the thumbnail of this V1CreateDeploymentTemplateRequest.
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:param thumbnail: The thumbnail of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
401
|
+
:type: str
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
self._thumbnail = thumbnail
|
|
405
|
+
|
|
406
|
+
@property
|
|
407
|
+
def thumbnail_file_type(self) -> 'str':
|
|
408
|
+
"""Gets the thumbnail_file_type of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The thumbnail_file_type of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._thumbnail_file_type
|
|
415
|
+
|
|
416
|
+
@thumbnail_file_type.setter
|
|
417
|
+
def thumbnail_file_type(self, thumbnail_file_type: 'str'):
|
|
418
|
+
"""Sets the thumbnail_file_type of this V1CreateDeploymentTemplateRequest.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param thumbnail_file_type: The thumbnail_file_type of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
422
|
+
:type: str
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._thumbnail_file_type = thumbnail_file_type
|
|
426
|
+
|
|
349
427
|
@property
|
|
350
428
|
def version(self) -> 'str':
|
|
351
429
|
"""Gets the version of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1CreateSharedMetricsStreamRequest(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
|
+
'metrics_stream_id': 'str',
|
|
47
|
+
'public': 'bool'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'allowed_org_id': 'allowedOrgId',
|
|
52
|
+
'allowed_user_ids': 'allowedUserIds',
|
|
53
|
+
'metrics_stream_id': 'metricsStreamId',
|
|
54
|
+
'public': 'public'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, allowed_org_id: 'str' =None, allowed_user_ids: 'list[str]' =None, metrics_stream_id: 'str' =None, public: 'bool' =None): # noqa: E501
|
|
58
|
+
"""V1CreateSharedMetricsStreamRequest - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._allowed_org_id = None
|
|
60
|
+
self._allowed_user_ids = None
|
|
61
|
+
self._metrics_stream_id = None
|
|
62
|
+
self._public = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if allowed_org_id is not None:
|
|
65
|
+
self.allowed_org_id = allowed_org_id
|
|
66
|
+
if allowed_user_ids is not None:
|
|
67
|
+
self.allowed_user_ids = allowed_user_ids
|
|
68
|
+
if metrics_stream_id is not None:
|
|
69
|
+
self.metrics_stream_id = metrics_stream_id
|
|
70
|
+
if public is not None:
|
|
71
|
+
self.public = public
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def allowed_org_id(self) -> 'str':
|
|
75
|
+
"""Gets the allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._allowed_org_id
|
|
82
|
+
|
|
83
|
+
@allowed_org_id.setter
|
|
84
|
+
def allowed_org_id(self, allowed_org_id: 'str'):
|
|
85
|
+
"""Sets the allowed_org_id of this V1CreateSharedMetricsStreamRequest.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param allowed_org_id: The allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._allowed_org_id = allowed_org_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def allowed_user_ids(self) -> 'list[str]':
|
|
96
|
+
"""Gets the allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
100
|
+
:rtype: list[str]
|
|
101
|
+
"""
|
|
102
|
+
return self._allowed_user_ids
|
|
103
|
+
|
|
104
|
+
@allowed_user_ids.setter
|
|
105
|
+
def allowed_user_ids(self, allowed_user_ids: 'list[str]'):
|
|
106
|
+
"""Sets the allowed_user_ids of this V1CreateSharedMetricsStreamRequest.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param allowed_user_ids: The allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
110
|
+
:type: list[str]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._allowed_user_ids = allowed_user_ids
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def metrics_stream_id(self) -> 'str':
|
|
117
|
+
"""Gets the metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._metrics_stream_id
|
|
124
|
+
|
|
125
|
+
@metrics_stream_id.setter
|
|
126
|
+
def metrics_stream_id(self, metrics_stream_id: 'str'):
|
|
127
|
+
"""Sets the metrics_stream_id of this V1CreateSharedMetricsStreamRequest.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param metrics_stream_id: The metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._metrics_stream_id = metrics_stream_id
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def public(self) -> 'bool':
|
|
138
|
+
"""Gets the public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
144
|
+
return self._public
|
|
145
|
+
|
|
146
|
+
@public.setter
|
|
147
|
+
def public(self, public: 'bool'):
|
|
148
|
+
"""Sets the public of this V1CreateSharedMetricsStreamRequest.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param public: The public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
152
|
+
:type: bool
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._public = public
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1CreateSharedMetricsStreamRequest, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1CreateSharedMetricsStreamRequest') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1CreateSharedMetricsStreamRequest):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1CreateSharedMetricsStreamRequest') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1CreateSharedMetricsStreamResponse(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'id': 'id'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, id: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1CreateSharedMetricsStreamResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if id is not None:
|
|
56
|
+
self.id = id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def id(self) -> 'str':
|
|
60
|
+
"""Gets the id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._id
|
|
67
|
+
|
|
68
|
+
@id.setter
|
|
69
|
+
def id(self, id: 'str'):
|
|
70
|
+
"""Sets the id of this V1CreateSharedMetricsStreamResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param id: The id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._id = id
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1CreateSharedMetricsStreamResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1CreateSharedMetricsStreamResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CreateSharedMetricsStreamResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CreateSharedMetricsStreamResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -47,7 +47,9 @@ class V1DataConnection(object):
|
|
|
47
47
|
'cluster_id': 'str',
|
|
48
48
|
'created_at': 'datetime',
|
|
49
49
|
'efs': 'V1EfsDataConnection',
|
|
50
|
+
'efs_folder': 'V1EFSFolderDataConnection',
|
|
50
51
|
'gcp': 'V1GcpDataConnection',
|
|
52
|
+
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
51
53
|
'id': 'str',
|
|
52
54
|
'index': 'V1Index',
|
|
53
55
|
'is_managed': 'bool',
|
|
@@ -56,6 +58,7 @@ class V1DataConnection(object):
|
|
|
56
58
|
'number_of_files': 'str',
|
|
57
59
|
'project_id': 'str',
|
|
58
60
|
'run_cmds': 'list[str]',
|
|
61
|
+
's3_folder': 'V1S3FolderDataConnection',
|
|
59
62
|
'snowflake': 'V1SnowflakeDataConnection',
|
|
60
63
|
'state': 'V1DataConnectionState',
|
|
61
64
|
'total_size_bytes': 'str',
|
|
@@ -71,7 +74,9 @@ class V1DataConnection(object):
|
|
|
71
74
|
'cluster_id': 'clusterId',
|
|
72
75
|
'created_at': 'createdAt',
|
|
73
76
|
'efs': 'efs',
|
|
77
|
+
'efs_folder': 'efsFolder',
|
|
74
78
|
'gcp': 'gcp',
|
|
79
|
+
'gcs_folder': 'gcsFolder',
|
|
75
80
|
'id': 'id',
|
|
76
81
|
'index': 'index',
|
|
77
82
|
'is_managed': 'isManaged',
|
|
@@ -80,6 +85,7 @@ class V1DataConnection(object):
|
|
|
80
85
|
'number_of_files': 'numberOfFiles',
|
|
81
86
|
'project_id': 'projectId',
|
|
82
87
|
'run_cmds': 'runCmds',
|
|
88
|
+
's3_folder': 's3Folder',
|
|
83
89
|
'snowflake': 'snowflake',
|
|
84
90
|
'state': 'state',
|
|
85
91
|
'total_size_bytes': 'totalSizeBytes',
|
|
@@ -88,7 +94,7 @@ class V1DataConnection(object):
|
|
|
88
94
|
'writable': 'writable'
|
|
89
95
|
}
|
|
90
96
|
|
|
91
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsDataConnection' =None, gcp: 'V1GcpDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
97
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
92
98
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
93
99
|
self._access_cluster_ids = None
|
|
94
100
|
self._accessible = None
|
|
@@ -96,7 +102,9 @@ class V1DataConnection(object):
|
|
|
96
102
|
self._cluster_id = None
|
|
97
103
|
self._created_at = None
|
|
98
104
|
self._efs = None
|
|
105
|
+
self._efs_folder = None
|
|
99
106
|
self._gcp = None
|
|
107
|
+
self._gcs_folder = None
|
|
100
108
|
self._id = None
|
|
101
109
|
self._index = None
|
|
102
110
|
self._is_managed = None
|
|
@@ -105,6 +113,7 @@ class V1DataConnection(object):
|
|
|
105
113
|
self._number_of_files = None
|
|
106
114
|
self._project_id = None
|
|
107
115
|
self._run_cmds = None
|
|
116
|
+
self._s3_folder = None
|
|
108
117
|
self._snowflake = None
|
|
109
118
|
self._state = None
|
|
110
119
|
self._total_size_bytes = None
|
|
@@ -124,8 +133,12 @@ class V1DataConnection(object):
|
|
|
124
133
|
self.created_at = created_at
|
|
125
134
|
if efs is not None:
|
|
126
135
|
self.efs = efs
|
|
136
|
+
if efs_folder is not None:
|
|
137
|
+
self.efs_folder = efs_folder
|
|
127
138
|
if gcp is not None:
|
|
128
139
|
self.gcp = gcp
|
|
140
|
+
if gcs_folder is not None:
|
|
141
|
+
self.gcs_folder = gcs_folder
|
|
129
142
|
if id is not None:
|
|
130
143
|
self.id = id
|
|
131
144
|
if index is not None:
|
|
@@ -142,6 +155,8 @@ class V1DataConnection(object):
|
|
|
142
155
|
self.project_id = project_id
|
|
143
156
|
if run_cmds is not None:
|
|
144
157
|
self.run_cmds = run_cmds
|
|
158
|
+
if s3_folder is not None:
|
|
159
|
+
self.s3_folder = s3_folder
|
|
145
160
|
if snowflake is not None:
|
|
146
161
|
self.snowflake = snowflake
|
|
147
162
|
if state is not None:
|
|
@@ -281,6 +296,27 @@ class V1DataConnection(object):
|
|
|
281
296
|
|
|
282
297
|
self._efs = efs
|
|
283
298
|
|
|
299
|
+
@property
|
|
300
|
+
def efs_folder(self) -> 'V1EFSFolderDataConnection':
|
|
301
|
+
"""Gets the efs_folder of this V1DataConnection. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The efs_folder of this V1DataConnection. # noqa: E501
|
|
305
|
+
:rtype: V1EFSFolderDataConnection
|
|
306
|
+
"""
|
|
307
|
+
return self._efs_folder
|
|
308
|
+
|
|
309
|
+
@efs_folder.setter
|
|
310
|
+
def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
|
|
311
|
+
"""Sets the efs_folder of this V1DataConnection.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param efs_folder: The efs_folder of this V1DataConnection. # noqa: E501
|
|
315
|
+
:type: V1EFSFolderDataConnection
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._efs_folder = efs_folder
|
|
319
|
+
|
|
284
320
|
@property
|
|
285
321
|
def gcp(self) -> 'V1GcpDataConnection':
|
|
286
322
|
"""Gets the gcp of this V1DataConnection. # noqa: E501
|
|
@@ -302,6 +338,27 @@ class V1DataConnection(object):
|
|
|
302
338
|
|
|
303
339
|
self._gcp = gcp
|
|
304
340
|
|
|
341
|
+
@property
|
|
342
|
+
def gcs_folder(self) -> 'V1GCSFolderDataConnection':
|
|
343
|
+
"""Gets the gcs_folder of this V1DataConnection. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The gcs_folder of this V1DataConnection. # noqa: E501
|
|
347
|
+
:rtype: V1GCSFolderDataConnection
|
|
348
|
+
"""
|
|
349
|
+
return self._gcs_folder
|
|
350
|
+
|
|
351
|
+
@gcs_folder.setter
|
|
352
|
+
def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
|
|
353
|
+
"""Sets the gcs_folder of this V1DataConnection.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param gcs_folder: The gcs_folder of this V1DataConnection. # noqa: E501
|
|
357
|
+
:type: V1GCSFolderDataConnection
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._gcs_folder = gcs_folder
|
|
361
|
+
|
|
305
362
|
@property
|
|
306
363
|
def id(self) -> 'str':
|
|
307
364
|
"""Gets the id of this V1DataConnection. # noqa: E501
|
|
@@ -470,6 +527,27 @@ class V1DataConnection(object):
|
|
|
470
527
|
|
|
471
528
|
self._run_cmds = run_cmds
|
|
472
529
|
|
|
530
|
+
@property
|
|
531
|
+
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
532
|
+
"""Gets the s3_folder of this V1DataConnection. # noqa: E501
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
:return: The s3_folder of this V1DataConnection. # noqa: E501
|
|
536
|
+
:rtype: V1S3FolderDataConnection
|
|
537
|
+
"""
|
|
538
|
+
return self._s3_folder
|
|
539
|
+
|
|
540
|
+
@s3_folder.setter
|
|
541
|
+
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
542
|
+
"""Sets the s3_folder of this V1DataConnection.
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
:param s3_folder: The s3_folder of this V1DataConnection. # noqa: E501
|
|
546
|
+
:type: V1S3FolderDataConnection
|
|
547
|
+
"""
|
|
548
|
+
|
|
549
|
+
self._s3_folder = s3_folder
|
|
550
|
+
|
|
473
551
|
@property
|
|
474
552
|
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
475
553
|
"""Gets the snowflake of this V1DataConnection. # noqa: E501
|