lightning-sdk 0.1.36__py3-none-any.whl → 0.1.38__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 +38 -31
- lightning_sdk/api/ai_hub_api.py +29 -4
- lightning_sdk/api/job_api.py +6 -2
- lightning_sdk/api/teamspace_api.py +18 -14
- lightning_sdk/api/utils.py +19 -0
- lightning_sdk/cli/ai_hub.py +1 -1
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/models.py +45 -15
- lightning_sdk/cli/run.py +80 -0
- lightning_sdk/job/base.py +61 -20
- lightning_sdk/job/job.py +29 -11
- lightning_sdk/job/v1.py +14 -10
- lightning_sdk/job/v2.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +13 -2
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +680 -62
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +13 -2
- lightning_sdk/lightning_cloud/openapi/models/create.py +6 -32
- 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 +32 -6
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +32 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_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 +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +32 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +27 -1
- 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_data_connection.py → v1_efs_config.py} +22 -22
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_select.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/validate.py +6 -32
- lightning_sdk/teamspace.py +5 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/RECORD +70 -58
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +0 -201
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.38.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1EfsConfig(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -55,7 +55,7 @@ class V1EfsDataConnection(object):
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
def __init__(self, file_system_id: 'str' =None, mount_targets: 'list[V1MountTarget]' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
|
|
58
|
-
"""
|
|
58
|
+
"""V1EfsConfig - a model defined in Swagger""" # noqa: E501
|
|
59
59
|
self._file_system_id = None
|
|
60
60
|
self._mount_targets = None
|
|
61
61
|
self._region = None
|
|
@@ -72,20 +72,20 @@ class V1EfsDataConnection(object):
|
|
|
72
72
|
|
|
73
73
|
@property
|
|
74
74
|
def file_system_id(self) -> 'str':
|
|
75
|
-
"""Gets the file_system_id of this
|
|
75
|
+
"""Gets the file_system_id of this V1EfsConfig. # noqa: E501
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
:return: The file_system_id of this
|
|
78
|
+
:return: The file_system_id of this V1EfsConfig. # noqa: E501
|
|
79
79
|
:rtype: str
|
|
80
80
|
"""
|
|
81
81
|
return self._file_system_id
|
|
82
82
|
|
|
83
83
|
@file_system_id.setter
|
|
84
84
|
def file_system_id(self, file_system_id: 'str'):
|
|
85
|
-
"""Sets the file_system_id of this
|
|
85
|
+
"""Sets the file_system_id of this V1EfsConfig.
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
:param file_system_id: The file_system_id of this
|
|
88
|
+
:param file_system_id: The file_system_id of this V1EfsConfig. # noqa: E501
|
|
89
89
|
:type: str
|
|
90
90
|
"""
|
|
91
91
|
|
|
@@ -93,20 +93,20 @@ class V1EfsDataConnection(object):
|
|
|
93
93
|
|
|
94
94
|
@property
|
|
95
95
|
def mount_targets(self) -> 'list[V1MountTarget]':
|
|
96
|
-
"""Gets the mount_targets of this
|
|
96
|
+
"""Gets the mount_targets of this V1EfsConfig. # noqa: E501
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
:return: The mount_targets of this
|
|
99
|
+
:return: The mount_targets of this V1EfsConfig. # noqa: E501
|
|
100
100
|
:rtype: list[V1MountTarget]
|
|
101
101
|
"""
|
|
102
102
|
return self._mount_targets
|
|
103
103
|
|
|
104
104
|
@mount_targets.setter
|
|
105
105
|
def mount_targets(self, mount_targets: 'list[V1MountTarget]'):
|
|
106
|
-
"""Sets the mount_targets of this
|
|
106
|
+
"""Sets the mount_targets of this V1EfsConfig.
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
:param mount_targets: The mount_targets of this
|
|
109
|
+
:param mount_targets: The mount_targets of this V1EfsConfig. # noqa: E501
|
|
110
110
|
:type: list[V1MountTarget]
|
|
111
111
|
"""
|
|
112
112
|
|
|
@@ -114,20 +114,20 @@ class V1EfsDataConnection(object):
|
|
|
114
114
|
|
|
115
115
|
@property
|
|
116
116
|
def region(self) -> 'str':
|
|
117
|
-
"""Gets the region of this
|
|
117
|
+
"""Gets the region of this V1EfsConfig. # noqa: E501
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
:return: The region of this
|
|
120
|
+
:return: The region of this V1EfsConfig. # noqa: E501
|
|
121
121
|
:rtype: str
|
|
122
122
|
"""
|
|
123
123
|
return self._region
|
|
124
124
|
|
|
125
125
|
@region.setter
|
|
126
126
|
def region(self, region: 'str'):
|
|
127
|
-
"""Sets the region of this
|
|
127
|
+
"""Sets the region of this V1EfsConfig.
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
:param region: The region of this
|
|
130
|
+
:param region: The region of this V1EfsConfig. # noqa: E501
|
|
131
131
|
:type: str
|
|
132
132
|
"""
|
|
133
133
|
|
|
@@ -135,20 +135,20 @@ class V1EfsDataConnection(object):
|
|
|
135
135
|
|
|
136
136
|
@property
|
|
137
137
|
def source(self) -> 'str':
|
|
138
|
-
"""Gets the source of this
|
|
138
|
+
"""Gets the source of this V1EfsConfig. # noqa: E501
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
:return: The source of this
|
|
141
|
+
:return: The source of this V1EfsConfig. # noqa: E501
|
|
142
142
|
:rtype: str
|
|
143
143
|
"""
|
|
144
144
|
return self._source
|
|
145
145
|
|
|
146
146
|
@source.setter
|
|
147
147
|
def source(self, source: 'str'):
|
|
148
|
-
"""Sets the source of this
|
|
148
|
+
"""Sets the source of this V1EfsConfig.
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
:param source: The source of this
|
|
151
|
+
:param source: The source of this V1EfsConfig. # noqa: E501
|
|
152
152
|
:type: str
|
|
153
153
|
"""
|
|
154
154
|
|
|
@@ -175,7 +175,7 @@ class V1EfsDataConnection(object):
|
|
|
175
175
|
))
|
|
176
176
|
else:
|
|
177
177
|
result[attr] = value
|
|
178
|
-
if issubclass(
|
|
178
|
+
if issubclass(V1EfsConfig, dict):
|
|
179
179
|
for key, value in self.items():
|
|
180
180
|
result[key] = value
|
|
181
181
|
|
|
@@ -189,13 +189,13 @@ class V1EfsDataConnection(object):
|
|
|
189
189
|
"""For `print` and `pprint`"""
|
|
190
190
|
return self.to_str()
|
|
191
191
|
|
|
192
|
-
def __eq__(self, other: '
|
|
192
|
+
def __eq__(self, other: 'V1EfsConfig') -> bool:
|
|
193
193
|
"""Returns true if both objects are equal"""
|
|
194
|
-
if not isinstance(other,
|
|
194
|
+
if not isinstance(other, V1EfsConfig):
|
|
195
195
|
return False
|
|
196
196
|
|
|
197
197
|
return self.__dict__ == other.__dict__
|
|
198
198
|
|
|
199
|
-
def __ne__(self, other: '
|
|
199
|
+
def __ne__(self, other: 'V1EfsConfig') -> bool:
|
|
200
200
|
"""Returns true if both objects are not equal"""
|
|
201
201
|
return not self == other
|
|
@@ -45,6 +45,7 @@ class V1GetModelFilesResponse(object):
|
|
|
45
45
|
'model_id': 'str',
|
|
46
46
|
'project_id': 'str',
|
|
47
47
|
'size_bytes': 'str',
|
|
48
|
+
'upload_complete': 'bool',
|
|
48
49
|
'version': 'str'
|
|
49
50
|
}
|
|
50
51
|
|
|
@@ -53,15 +54,17 @@ class V1GetModelFilesResponse(object):
|
|
|
53
54
|
'model_id': 'modelId',
|
|
54
55
|
'project_id': 'projectId',
|
|
55
56
|
'size_bytes': 'sizeBytes',
|
|
57
|
+
'upload_complete': 'uploadComplete',
|
|
56
58
|
'version': 'version'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, version: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
|
|
60
62
|
"""V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._filepaths = None
|
|
62
64
|
self._model_id = None
|
|
63
65
|
self._project_id = None
|
|
64
66
|
self._size_bytes = None
|
|
67
|
+
self._upload_complete = None
|
|
65
68
|
self._version = None
|
|
66
69
|
self.discriminator = None
|
|
67
70
|
if filepaths is not None:
|
|
@@ -72,6 +75,8 @@ class V1GetModelFilesResponse(object):
|
|
|
72
75
|
self.project_id = project_id
|
|
73
76
|
if size_bytes is not None:
|
|
74
77
|
self.size_bytes = size_bytes
|
|
78
|
+
if upload_complete is not None:
|
|
79
|
+
self.upload_complete = upload_complete
|
|
75
80
|
if version is not None:
|
|
76
81
|
self.version = version
|
|
77
82
|
|
|
@@ -159,6 +164,27 @@ class V1GetModelFilesResponse(object):
|
|
|
159
164
|
|
|
160
165
|
self._size_bytes = size_bytes
|
|
161
166
|
|
|
167
|
+
@property
|
|
168
|
+
def upload_complete(self) -> 'bool':
|
|
169
|
+
"""Gets the upload_complete of this V1GetModelFilesResponse. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The upload_complete of this V1GetModelFilesResponse. # noqa: E501
|
|
173
|
+
:rtype: bool
|
|
174
|
+
"""
|
|
175
|
+
return self._upload_complete
|
|
176
|
+
|
|
177
|
+
@upload_complete.setter
|
|
178
|
+
def upload_complete(self, upload_complete: 'bool'):
|
|
179
|
+
"""Sets the upload_complete of this V1GetModelFilesResponse.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param upload_complete: The upload_complete of this V1GetModelFilesResponse. # noqa: E501
|
|
183
|
+
:type: bool
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._upload_complete = upload_complete
|
|
187
|
+
|
|
162
188
|
@property
|
|
163
189
|
def version(self) -> 'str':
|
|
164
190
|
"""Gets the version of this V1GetModelFilesResponse. # noqa: E501
|
|
@@ -42,9 +42,10 @@ class V1GoogleCloudDirectV1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'bucket_name': 'str',
|
|
45
|
+
'compute_list_bucket_project_role': 'str',
|
|
46
|
+
'compute_project_role': 'str',
|
|
45
47
|
'credentials_secret_id': 'str',
|
|
46
48
|
'credentials_service_account_email': 'str',
|
|
47
|
-
'dws_enabled': 'bool',
|
|
48
49
|
'primary_region': 'str',
|
|
49
50
|
'project_id': 'str',
|
|
50
51
|
'regions': 'list[str]',
|
|
@@ -54,9 +55,10 @@ class V1GoogleCloudDirectV1(object):
|
|
|
54
55
|
|
|
55
56
|
attribute_map = {
|
|
56
57
|
'bucket_name': 'bucketName',
|
|
58
|
+
'compute_list_bucket_project_role': 'computeListBucketProjectRole',
|
|
59
|
+
'compute_project_role': 'computeProjectRole',
|
|
57
60
|
'credentials_secret_id': 'credentialsSecretId',
|
|
58
61
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
59
|
-
'dws_enabled': 'dwsEnabled',
|
|
60
62
|
'primary_region': 'primaryRegion',
|
|
61
63
|
'project_id': 'projectId',
|
|
62
64
|
'regions': 'regions',
|
|
@@ -64,12 +66,13 @@ class V1GoogleCloudDirectV1(object):
|
|
|
64
66
|
'source_cidr_ips': 'sourceCidrIps'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, bucket_name: 'str' =None,
|
|
69
|
+
def __init__(self, bucket_name: 'str' =None, compute_list_bucket_project_role: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
68
70
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._bucket_name = None
|
|
72
|
+
self._compute_list_bucket_project_role = None
|
|
73
|
+
self._compute_project_role = None
|
|
70
74
|
self._credentials_secret_id = None
|
|
71
75
|
self._credentials_service_account_email = None
|
|
72
|
-
self._dws_enabled = None
|
|
73
76
|
self._primary_region = None
|
|
74
77
|
self._project_id = None
|
|
75
78
|
self._regions = None
|
|
@@ -78,12 +81,14 @@ class V1GoogleCloudDirectV1(object):
|
|
|
78
81
|
self.discriminator = None
|
|
79
82
|
if bucket_name is not None:
|
|
80
83
|
self.bucket_name = bucket_name
|
|
84
|
+
if compute_list_bucket_project_role is not None:
|
|
85
|
+
self.compute_list_bucket_project_role = compute_list_bucket_project_role
|
|
86
|
+
if compute_project_role is not None:
|
|
87
|
+
self.compute_project_role = compute_project_role
|
|
81
88
|
if credentials_secret_id is not None:
|
|
82
89
|
self.credentials_secret_id = credentials_secret_id
|
|
83
90
|
if credentials_service_account_email is not None:
|
|
84
91
|
self.credentials_service_account_email = credentials_service_account_email
|
|
85
|
-
if dws_enabled is not None:
|
|
86
|
-
self.dws_enabled = dws_enabled
|
|
87
92
|
if primary_region is not None:
|
|
88
93
|
self.primary_region = primary_region
|
|
89
94
|
if project_id is not None:
|
|
@@ -116,6 +121,48 @@ class V1GoogleCloudDirectV1(object):
|
|
|
116
121
|
|
|
117
122
|
self._bucket_name = bucket_name
|
|
118
123
|
|
|
124
|
+
@property
|
|
125
|
+
def compute_list_bucket_project_role(self) -> 'str':
|
|
126
|
+
"""Gets the compute_list_bucket_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The compute_list_bucket_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._compute_list_bucket_project_role
|
|
133
|
+
|
|
134
|
+
@compute_list_bucket_project_role.setter
|
|
135
|
+
def compute_list_bucket_project_role(self, compute_list_bucket_project_role: 'str'):
|
|
136
|
+
"""Sets the compute_list_bucket_project_role of this V1GoogleCloudDirectV1.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param compute_list_bucket_project_role: The compute_list_bucket_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
140
|
+
:type: str
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._compute_list_bucket_project_role = compute_list_bucket_project_role
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def compute_project_role(self) -> 'str':
|
|
147
|
+
"""Gets the compute_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The compute_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
151
|
+
:rtype: str
|
|
152
|
+
"""
|
|
153
|
+
return self._compute_project_role
|
|
154
|
+
|
|
155
|
+
@compute_project_role.setter
|
|
156
|
+
def compute_project_role(self, compute_project_role: 'str'):
|
|
157
|
+
"""Sets the compute_project_role of this V1GoogleCloudDirectV1.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param compute_project_role: The compute_project_role of this V1GoogleCloudDirectV1. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._compute_project_role = compute_project_role
|
|
165
|
+
|
|
119
166
|
@property
|
|
120
167
|
def credentials_secret_id(self) -> 'str':
|
|
121
168
|
"""Gets the credentials_secret_id of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -160,27 +207,6 @@ class V1GoogleCloudDirectV1(object):
|
|
|
160
207
|
|
|
161
208
|
self._credentials_service_account_email = credentials_service_account_email
|
|
162
209
|
|
|
163
|
-
@property
|
|
164
|
-
def dws_enabled(self) -> 'bool':
|
|
165
|
-
"""Gets the dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
:return: The dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
169
|
-
:rtype: bool
|
|
170
|
-
"""
|
|
171
|
-
return self._dws_enabled
|
|
172
|
-
|
|
173
|
-
@dws_enabled.setter
|
|
174
|
-
def dws_enabled(self, dws_enabled: 'bool'):
|
|
175
|
-
"""Sets the dws_enabled of this V1GoogleCloudDirectV1.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
:param dws_enabled: The dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
179
|
-
:type: bool
|
|
180
|
-
"""
|
|
181
|
-
|
|
182
|
-
self._dws_enabled = dws_enabled
|
|
183
|
-
|
|
184
210
|
@property
|
|
185
211
|
def primary_region(self) -> 'str':
|
|
186
212
|
"""Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -42,23 +42,28 @@ class V1Input(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'default_value': 'str',
|
|
45
|
-
'placeholder': 'str'
|
|
45
|
+
'placeholder': 'str',
|
|
46
|
+
'value': 'str'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'default_value': 'defaultValue',
|
|
50
|
-
'placeholder': 'placeholder'
|
|
51
|
+
'placeholder': 'placeholder',
|
|
52
|
+
'value': 'value'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, default_value: 'str' =None, placeholder: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, default_value: 'str' =None, placeholder: 'str' =None, value: 'str' =None): # noqa: E501
|
|
54
56
|
"""V1Input - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._default_value = None
|
|
56
58
|
self._placeholder = None
|
|
59
|
+
self._value = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if default_value is not None:
|
|
59
62
|
self.default_value = default_value
|
|
60
63
|
if placeholder is not None:
|
|
61
64
|
self.placeholder = placeholder
|
|
65
|
+
if value is not None:
|
|
66
|
+
self.value = value
|
|
62
67
|
|
|
63
68
|
@property
|
|
64
69
|
def default_value(self) -> 'str':
|
|
@@ -102,6 +107,27 @@ class V1Input(object):
|
|
|
102
107
|
|
|
103
108
|
self._placeholder = placeholder
|
|
104
109
|
|
|
110
|
+
@property
|
|
111
|
+
def value(self) -> 'str':
|
|
112
|
+
"""Gets the value of this V1Input. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The value of this V1Input. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._value
|
|
119
|
+
|
|
120
|
+
@value.setter
|
|
121
|
+
def value(self, value: 'str'):
|
|
122
|
+
"""Sets the value of this V1Input.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param value: The value of this V1Input. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._value = value
|
|
130
|
+
|
|
105
131
|
def to_dict(self) -> dict:
|
|
106
132
|
"""Returns the model properties as a dict"""
|
|
107
133
|
result = {}
|
|
@@ -59,6 +59,7 @@ class V1Job(object):
|
|
|
59
59
|
'stopped_at': 'datetime',
|
|
60
60
|
'timings': 'dict(str, V1JobTiming)',
|
|
61
61
|
'total_cost': 'float',
|
|
62
|
+
'total_size_bytes': 'str',
|
|
62
63
|
'updated_at': 'datetime',
|
|
63
64
|
'urls': 'list[str]',
|
|
64
65
|
'user_id': 'str',
|
|
@@ -84,13 +85,14 @@ class V1Job(object):
|
|
|
84
85
|
'stopped_at': 'stoppedAt',
|
|
85
86
|
'timings': 'timings',
|
|
86
87
|
'total_cost': 'totalCost',
|
|
88
|
+
'total_size_bytes': 'totalSizeBytes',
|
|
87
89
|
'updated_at': 'updatedAt',
|
|
88
90
|
'urls': 'urls',
|
|
89
91
|
'user_id': 'userId',
|
|
90
92
|
'user_logs_started_at': 'userLogsStartedAt'
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
def __init__(self, created_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_healthy: 'bool' =None, message: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None): # noqa: E501
|
|
95
|
+
def __init__(self, created_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_healthy: 'bool' =None, message: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None): # noqa: E501
|
|
94
96
|
"""V1Job - a model defined in Swagger""" # noqa: E501
|
|
95
97
|
self._created_at = None
|
|
96
98
|
self._deployment_id = None
|
|
@@ -110,6 +112,7 @@ class V1Job(object):
|
|
|
110
112
|
self._stopped_at = None
|
|
111
113
|
self._timings = None
|
|
112
114
|
self._total_cost = None
|
|
115
|
+
self._total_size_bytes = None
|
|
113
116
|
self._updated_at = None
|
|
114
117
|
self._urls = None
|
|
115
118
|
self._user_id = None
|
|
@@ -151,6 +154,8 @@ class V1Job(object):
|
|
|
151
154
|
self.timings = timings
|
|
152
155
|
if total_cost is not None:
|
|
153
156
|
self.total_cost = total_cost
|
|
157
|
+
if total_size_bytes is not None:
|
|
158
|
+
self.total_size_bytes = total_size_bytes
|
|
154
159
|
if updated_at is not None:
|
|
155
160
|
self.updated_at = updated_at
|
|
156
161
|
if urls is not None:
|
|
@@ -540,6 +545,27 @@ class V1Job(object):
|
|
|
540
545
|
|
|
541
546
|
self._total_cost = total_cost
|
|
542
547
|
|
|
548
|
+
@property
|
|
549
|
+
def total_size_bytes(self) -> 'str':
|
|
550
|
+
"""Gets the total_size_bytes of this V1Job. # noqa: E501
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
:return: The total_size_bytes of this V1Job. # noqa: E501
|
|
554
|
+
:rtype: str
|
|
555
|
+
"""
|
|
556
|
+
return self._total_size_bytes
|
|
557
|
+
|
|
558
|
+
@total_size_bytes.setter
|
|
559
|
+
def total_size_bytes(self, total_size_bytes: 'str'):
|
|
560
|
+
"""Sets the total_size_bytes of this V1Job.
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
:param total_size_bytes: The total_size_bytes of this V1Job. # noqa: E501
|
|
564
|
+
:type: str
|
|
565
|
+
"""
|
|
566
|
+
|
|
567
|
+
self._total_size_bytes = total_size_bytes
|
|
568
|
+
|
|
543
569
|
@property
|
|
544
570
|
def updated_at(self) -> 'datetime':
|
|
545
571
|
"""Gets the updated_at of this V1Job. # noqa: E501
|
|
@@ -0,0 +1,125 @@
|
|
|
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 V1LambdaLabsDirectV1(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
|
+
'credentials_secret_id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'credentials_secret_id': 'credentialsSecretId'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, credentials_secret_id: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1LambdaLabsDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._credentials_secret_id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if credentials_secret_id is not None:
|
|
56
|
+
self.credentials_secret_id = credentials_secret_id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def credentials_secret_id(self) -> 'str':
|
|
60
|
+
"""Gets the credentials_secret_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
61
|
+
|
|
62
|
+
ID of the secret that contains the LambdaLabs API key. # noqa: E501
|
|
63
|
+
|
|
64
|
+
:return: The credentials_secret_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._credentials_secret_id
|
|
68
|
+
|
|
69
|
+
@credentials_secret_id.setter
|
|
70
|
+
def credentials_secret_id(self, credentials_secret_id: 'str'):
|
|
71
|
+
"""Sets the credentials_secret_id of this V1LambdaLabsDirectV1.
|
|
72
|
+
|
|
73
|
+
ID of the secret that contains the LambdaLabs API key. # noqa: E501
|
|
74
|
+
|
|
75
|
+
:param credentials_secret_id: The credentials_secret_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._credentials_secret_id = credentials_secret_id
|
|
80
|
+
|
|
81
|
+
def to_dict(self) -> dict:
|
|
82
|
+
"""Returns the model properties as a dict"""
|
|
83
|
+
result = {}
|
|
84
|
+
|
|
85
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
86
|
+
value = getattr(self, attr)
|
|
87
|
+
if isinstance(value, list):
|
|
88
|
+
result[attr] = list(map(
|
|
89
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
90
|
+
value
|
|
91
|
+
))
|
|
92
|
+
elif hasattr(value, "to_dict"):
|
|
93
|
+
result[attr] = value.to_dict()
|
|
94
|
+
elif isinstance(value, dict):
|
|
95
|
+
result[attr] = dict(map(
|
|
96
|
+
lambda item: (item[0], item[1].to_dict())
|
|
97
|
+
if hasattr(item[1], "to_dict") else item,
|
|
98
|
+
value.items()
|
|
99
|
+
))
|
|
100
|
+
else:
|
|
101
|
+
result[attr] = value
|
|
102
|
+
if issubclass(V1LambdaLabsDirectV1, dict):
|
|
103
|
+
for key, value in self.items():
|
|
104
|
+
result[key] = value
|
|
105
|
+
|
|
106
|
+
return result
|
|
107
|
+
|
|
108
|
+
def to_str(self) -> str:
|
|
109
|
+
"""Returns the string representation of the model"""
|
|
110
|
+
return pprint.pformat(self.to_dict())
|
|
111
|
+
|
|
112
|
+
def __repr__(self) -> str:
|
|
113
|
+
"""For `print` and `pprint`"""
|
|
114
|
+
return self.to_str()
|
|
115
|
+
|
|
116
|
+
def __eq__(self, other: 'V1LambdaLabsDirectV1') -> bool:
|
|
117
|
+
"""Returns true if both objects are equal"""
|
|
118
|
+
if not isinstance(other, V1LambdaLabsDirectV1):
|
|
119
|
+
return False
|
|
120
|
+
|
|
121
|
+
return self.__dict__ == other.__dict__
|
|
122
|
+
|
|
123
|
+
def __ne__(self, other: 'V1LambdaLabsDirectV1') -> bool:
|
|
124
|
+
"""Returns true if both objects are not equal"""
|
|
125
|
+
return not self == other
|