lightning-sdk 0.2.4__py3-none-any.whl → 0.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/ai_hub.py +3 -1
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +29 -9
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +44 -40
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +5 -3
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -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 ServerIdAlertsBody(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
|
+
'message': 'str',
|
|
45
|
+
'severity': 'V1ServerAlertSeverity',
|
|
46
|
+
'type': 'V1ServerAlertType'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'message': 'message',
|
|
51
|
+
'severity': 'severity',
|
|
52
|
+
'type': 'type'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, message: 'str' =None, severity: 'V1ServerAlertSeverity' =None, type: 'V1ServerAlertType' =None): # noqa: E501
|
|
56
|
+
"""ServerIdAlertsBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._message = None
|
|
58
|
+
self._severity = None
|
|
59
|
+
self._type = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if message is not None:
|
|
62
|
+
self.message = message
|
|
63
|
+
if severity is not None:
|
|
64
|
+
self.severity = severity
|
|
65
|
+
if type is not None:
|
|
66
|
+
self.type = type
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def message(self) -> 'str':
|
|
70
|
+
"""Gets the message of this ServerIdAlertsBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The message of this ServerIdAlertsBody. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._message
|
|
77
|
+
|
|
78
|
+
@message.setter
|
|
79
|
+
def message(self, message: 'str'):
|
|
80
|
+
"""Sets the message of this ServerIdAlertsBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param message: The message of this ServerIdAlertsBody. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._message = message
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def severity(self) -> 'V1ServerAlertSeverity':
|
|
91
|
+
"""Gets the severity of this ServerIdAlertsBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The severity of this ServerIdAlertsBody. # noqa: E501
|
|
95
|
+
:rtype: V1ServerAlertSeverity
|
|
96
|
+
"""
|
|
97
|
+
return self._severity
|
|
98
|
+
|
|
99
|
+
@severity.setter
|
|
100
|
+
def severity(self, severity: 'V1ServerAlertSeverity'):
|
|
101
|
+
"""Sets the severity of this ServerIdAlertsBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param severity: The severity of this ServerIdAlertsBody. # noqa: E501
|
|
105
|
+
:type: V1ServerAlertSeverity
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._severity = severity
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def type(self) -> 'V1ServerAlertType':
|
|
112
|
+
"""Gets the type of this ServerIdAlertsBody. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The type of this ServerIdAlertsBody. # noqa: E501
|
|
116
|
+
:rtype: V1ServerAlertType
|
|
117
|
+
"""
|
|
118
|
+
return self._type
|
|
119
|
+
|
|
120
|
+
@type.setter
|
|
121
|
+
def type(self, type: 'V1ServerAlertType'):
|
|
122
|
+
"""Sets the type of this ServerIdAlertsBody.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param type: The type of this ServerIdAlertsBody. # noqa: E501
|
|
126
|
+
:type: V1ServerAlertType
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._type = type
|
|
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(ServerIdAlertsBody, 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: 'ServerIdAlertsBody') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, ServerIdAlertsBody):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'ServerIdAlertsBody') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -49,7 +49,7 @@ class SlurmJobsBody(object):
|
|
|
49
49
|
'image': 'str',
|
|
50
50
|
'image_secret_ref': 'str',
|
|
51
51
|
'name': 'str',
|
|
52
|
-
'
|
|
52
|
+
'partition': 'str',
|
|
53
53
|
'service_id': 'str',
|
|
54
54
|
'sync_env': 'bool',
|
|
55
55
|
'work_dir': 'str'
|
|
@@ -64,13 +64,13 @@ class SlurmJobsBody(object):
|
|
|
64
64
|
'image': 'image',
|
|
65
65
|
'image_secret_ref': 'imageSecretRef',
|
|
66
66
|
'name': 'name',
|
|
67
|
-
'
|
|
67
|
+
'partition': 'partition',
|
|
68
68
|
'service_id': 'serviceId',
|
|
69
69
|
'sync_env': 'syncEnv',
|
|
70
70
|
'work_dir': 'workDir'
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, entrypoint: 'str' =None, image: 'str' =None, image_secret_ref: 'str' =None, name: 'str' =None,
|
|
73
|
+
def __init__(self, cache_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, entrypoint: 'str' =None, image: 'str' =None, image_secret_ref: 'str' =None, name: 'str' =None, partition: 'str' =None, service_id: 'str' =None, sync_env: 'bool' =None, work_dir: 'str' =None): # noqa: E501
|
|
74
74
|
"""SlurmJobsBody - a model defined in Swagger""" # noqa: E501
|
|
75
75
|
self._cache_id = None
|
|
76
76
|
self._cloudspace_id = None
|
|
@@ -80,7 +80,7 @@ class SlurmJobsBody(object):
|
|
|
80
80
|
self._image = None
|
|
81
81
|
self._image_secret_ref = None
|
|
82
82
|
self._name = None
|
|
83
|
-
self.
|
|
83
|
+
self._partition = None
|
|
84
84
|
self._service_id = None
|
|
85
85
|
self._sync_env = None
|
|
86
86
|
self._work_dir = None
|
|
@@ -101,8 +101,8 @@ class SlurmJobsBody(object):
|
|
|
101
101
|
self.image_secret_ref = image_secret_ref
|
|
102
102
|
if name is not None:
|
|
103
103
|
self.name = name
|
|
104
|
-
if
|
|
105
|
-
self.
|
|
104
|
+
if partition is not None:
|
|
105
|
+
self.partition = partition
|
|
106
106
|
if service_id is not None:
|
|
107
107
|
self.service_id = service_id
|
|
108
108
|
if sync_env is not None:
|
|
@@ -281,25 +281,25 @@ class SlurmJobsBody(object):
|
|
|
281
281
|
self._name = name
|
|
282
282
|
|
|
283
283
|
@property
|
|
284
|
-
def
|
|
285
|
-
"""Gets the
|
|
284
|
+
def partition(self) -> 'str':
|
|
285
|
+
"""Gets the partition of this SlurmJobsBody. # noqa: E501
|
|
286
286
|
|
|
287
287
|
|
|
288
|
-
:return: The
|
|
288
|
+
:return: The partition of this SlurmJobsBody. # noqa: E501
|
|
289
289
|
:rtype: str
|
|
290
290
|
"""
|
|
291
|
-
return self.
|
|
291
|
+
return self._partition
|
|
292
292
|
|
|
293
|
-
@
|
|
294
|
-
def
|
|
295
|
-
"""Sets the
|
|
293
|
+
@partition.setter
|
|
294
|
+
def partition(self, partition: 'str'):
|
|
295
|
+
"""Sets the partition of this SlurmJobsBody.
|
|
296
296
|
|
|
297
297
|
|
|
298
|
-
:param
|
|
298
|
+
:param partition: The partition of this SlurmJobsBody. # noqa: E501
|
|
299
299
|
:type: str
|
|
300
300
|
"""
|
|
301
301
|
|
|
302
|
-
self.
|
|
302
|
+
self._partition = partition
|
|
303
303
|
|
|
304
304
|
@property
|
|
305
305
|
def service_id(self) -> 'str':
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class UploadIdCompleteBody1(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
|
+
'filepath': 'str',
|
|
45
|
+
'parts': 'list[V1CompletedPart]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'filepath': 'filepath',
|
|
50
|
+
'parts': 'parts'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, filepath: 'str' =None, parts: 'list[V1CompletedPart]' =None): # noqa: E501
|
|
54
|
+
"""UploadIdCompleteBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._filepath = None
|
|
56
|
+
self._parts = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if filepath is not None:
|
|
59
|
+
self.filepath = filepath
|
|
60
|
+
if parts is not None:
|
|
61
|
+
self.parts = parts
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def filepath(self) -> 'str':
|
|
65
|
+
"""Gets the filepath of this UploadIdCompleteBody1. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The filepath of this UploadIdCompleteBody1. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._filepath
|
|
72
|
+
|
|
73
|
+
@filepath.setter
|
|
74
|
+
def filepath(self, filepath: 'str'):
|
|
75
|
+
"""Sets the filepath of this UploadIdCompleteBody1.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param filepath: The filepath of this UploadIdCompleteBody1. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._filepath = filepath
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def parts(self) -> 'list[V1CompletedPart]':
|
|
86
|
+
"""Gets the parts of this UploadIdCompleteBody1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The parts of this UploadIdCompleteBody1. # noqa: E501
|
|
90
|
+
:rtype: list[V1CompletedPart]
|
|
91
|
+
"""
|
|
92
|
+
return self._parts
|
|
93
|
+
|
|
94
|
+
@parts.setter
|
|
95
|
+
def parts(self, parts: 'list[V1CompletedPart]'):
|
|
96
|
+
"""Sets the parts of this UploadIdCompleteBody1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param parts: The parts of this UploadIdCompleteBody1. # noqa: E501
|
|
100
|
+
:type: list[V1CompletedPart]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._parts = parts
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(UploadIdCompleteBody1, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'UploadIdCompleteBody1') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, UploadIdCompleteBody1):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'UploadIdCompleteBody1') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class UploadIdPartsBody1(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
|
+
'filepath': 'str',
|
|
45
|
+
'parts': 'list[str]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'filepath': 'filepath',
|
|
50
|
+
'parts': 'parts'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, filepath: 'str' =None, parts: 'list[str]' =None): # noqa: E501
|
|
54
|
+
"""UploadIdPartsBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._filepath = None
|
|
56
|
+
self._parts = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if filepath is not None:
|
|
59
|
+
self.filepath = filepath
|
|
60
|
+
if parts is not None:
|
|
61
|
+
self.parts = parts
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def filepath(self) -> 'str':
|
|
65
|
+
"""Gets the filepath of this UploadIdPartsBody1. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The filepath of this UploadIdPartsBody1. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._filepath
|
|
72
|
+
|
|
73
|
+
@filepath.setter
|
|
74
|
+
def filepath(self, filepath: 'str'):
|
|
75
|
+
"""Sets the filepath of this UploadIdPartsBody1.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param filepath: The filepath of this UploadIdPartsBody1. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._filepath = filepath
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def parts(self) -> 'list[str]':
|
|
86
|
+
"""Gets the parts of this UploadIdPartsBody1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The parts of this UploadIdPartsBody1. # noqa: E501
|
|
90
|
+
:rtype: list[str]
|
|
91
|
+
"""
|
|
92
|
+
return self._parts
|
|
93
|
+
|
|
94
|
+
@parts.setter
|
|
95
|
+
def parts(self, parts: 'list[str]'):
|
|
96
|
+
"""Sets the parts of this UploadIdPartsBody1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param parts: The parts of this UploadIdPartsBody1. # noqa: E501
|
|
100
|
+
:type: list[str]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._parts = parts
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(UploadIdPartsBody1, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'UploadIdPartsBody1') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, UploadIdPartsBody1):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'UploadIdPartsBody1') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|