lightning-sdk 0.2.11__py3-none-any.whl → 0.2.12__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/api/deployment_api.py +35 -3
- lightning_sdk/api/lit_container_api.py +13 -7
- lightning_sdk/api/llm_api.py +34 -0
- lightning_sdk/cli/serve.py +72 -23
- lightning_sdk/deployment/deployment.py +51 -5
- lightning_sdk/lightning_cloud/openapi/__init__.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +13 -1
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +115 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +65 -195
- lightning_sdk/lightning_cloud/openapi/models/update1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -1
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +56 -0
- lightning_sdk/serve.py +4 -6
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/RECORD +42 -35
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +0 -253
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.11.dist-info → lightning_sdk-0.2.12.dist-info}/top_level.txt +0 -0
|
@@ -41,148 +41,81 @@ class Update(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'gcp': 'V1GcpDataConnection',
|
|
47
|
-
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
44
|
+
'disabled': 'bool',
|
|
45
|
+
'machine_image_version': 'str',
|
|
48
46
|
'name': 'str',
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
's3_folder': 'V1S3FolderDataConnection',
|
|
52
|
-
'snowflake': 'V1SnowflakeDataConnection',
|
|
53
|
-
'writable': 'bool'
|
|
47
|
+
'org_id': 'str',
|
|
48
|
+
'setup_script_text': 'str'
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
attribute_map = {
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'gcp': 'gcp',
|
|
60
|
-
'gcs_folder': 'gcsFolder',
|
|
52
|
+
'disabled': 'disabled',
|
|
53
|
+
'machine_image_version': 'machineImageVersion',
|
|
61
54
|
'name': 'name',
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
's3_folder': 's3Folder',
|
|
65
|
-
'snowflake': 'snowflake',
|
|
66
|
-
'writable': 'writable'
|
|
55
|
+
'org_id': 'orgId',
|
|
56
|
+
'setup_script_text': 'setupScriptText'
|
|
67
57
|
}
|
|
68
58
|
|
|
69
|
-
def __init__(self,
|
|
59
|
+
def __init__(self, disabled: 'bool' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
70
60
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
71
|
-
self.
|
|
72
|
-
self.
|
|
73
|
-
self._gcp = None
|
|
74
|
-
self._gcs_folder = None
|
|
61
|
+
self._disabled = None
|
|
62
|
+
self._machine_image_version = None
|
|
75
63
|
self._name = None
|
|
76
|
-
self.
|
|
77
|
-
self.
|
|
78
|
-
self._s3_folder = None
|
|
79
|
-
self._snowflake = None
|
|
80
|
-
self._writable = None
|
|
64
|
+
self._org_id = None
|
|
65
|
+
self._setup_script_text = None
|
|
81
66
|
self.discriminator = None
|
|
82
|
-
if
|
|
83
|
-
self.
|
|
84
|
-
if
|
|
85
|
-
self.
|
|
86
|
-
if gcp is not None:
|
|
87
|
-
self.gcp = gcp
|
|
88
|
-
if gcs_folder is not None:
|
|
89
|
-
self.gcs_folder = gcs_folder
|
|
67
|
+
if disabled is not None:
|
|
68
|
+
self.disabled = disabled
|
|
69
|
+
if machine_image_version is not None:
|
|
70
|
+
self.machine_image_version = machine_image_version
|
|
90
71
|
if name is not None:
|
|
91
72
|
self.name = name
|
|
92
|
-
if
|
|
93
|
-
self.
|
|
94
|
-
if
|
|
95
|
-
self.
|
|
96
|
-
if s3_folder is not None:
|
|
97
|
-
self.s3_folder = s3_folder
|
|
98
|
-
if snowflake is not None:
|
|
99
|
-
self.snowflake = snowflake
|
|
100
|
-
if writable is not None:
|
|
101
|
-
self.writable = writable
|
|
73
|
+
if org_id is not None:
|
|
74
|
+
self.org_id = org_id
|
|
75
|
+
if setup_script_text is not None:
|
|
76
|
+
self.setup_script_text = setup_script_text
|
|
102
77
|
|
|
103
78
|
@property
|
|
104
|
-
def
|
|
105
|
-
"""Gets the
|
|
79
|
+
def disabled(self) -> 'bool':
|
|
80
|
+
"""Gets the disabled of this Update. # noqa: E501
|
|
106
81
|
|
|
107
82
|
|
|
108
|
-
:return: The
|
|
109
|
-
:rtype:
|
|
110
|
-
"""
|
|
111
|
-
return self._aws
|
|
112
|
-
|
|
113
|
-
@aws.setter
|
|
114
|
-
def aws(self, aws: 'V1AwsDataConnection'):
|
|
115
|
-
"""Sets the aws of this Update.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
:param aws: The aws of this Update. # noqa: E501
|
|
119
|
-
:type: V1AwsDataConnection
|
|
120
|
-
"""
|
|
121
|
-
|
|
122
|
-
self._aws = aws
|
|
123
|
-
|
|
124
|
-
@property
|
|
125
|
-
def efs(self) -> 'V1EfsConfig':
|
|
126
|
-
"""Gets the efs of this Update. # noqa: E501
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
:return: The efs of this Update. # noqa: E501
|
|
130
|
-
:rtype: V1EfsConfig
|
|
131
|
-
"""
|
|
132
|
-
return self._efs
|
|
133
|
-
|
|
134
|
-
@efs.setter
|
|
135
|
-
def efs(self, efs: 'V1EfsConfig'):
|
|
136
|
-
"""Sets the efs of this Update.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
:param efs: The efs of this Update. # noqa: E501
|
|
140
|
-
:type: V1EfsConfig
|
|
141
|
-
"""
|
|
142
|
-
|
|
143
|
-
self._efs = efs
|
|
144
|
-
|
|
145
|
-
@property
|
|
146
|
-
def gcp(self) -> 'V1GcpDataConnection':
|
|
147
|
-
"""Gets the gcp of this Update. # noqa: E501
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
:return: The gcp of this Update. # noqa: E501
|
|
151
|
-
:rtype: V1GcpDataConnection
|
|
83
|
+
:return: The disabled of this Update. # noqa: E501
|
|
84
|
+
:rtype: bool
|
|
152
85
|
"""
|
|
153
|
-
return self.
|
|
86
|
+
return self._disabled
|
|
154
87
|
|
|
155
|
-
@
|
|
156
|
-
def
|
|
157
|
-
"""Sets the
|
|
88
|
+
@disabled.setter
|
|
89
|
+
def disabled(self, disabled: 'bool'):
|
|
90
|
+
"""Sets the disabled of this Update.
|
|
158
91
|
|
|
159
92
|
|
|
160
|
-
:param
|
|
161
|
-
:type:
|
|
93
|
+
:param disabled: The disabled of this Update. # noqa: E501
|
|
94
|
+
:type: bool
|
|
162
95
|
"""
|
|
163
96
|
|
|
164
|
-
self.
|
|
97
|
+
self._disabled = disabled
|
|
165
98
|
|
|
166
99
|
@property
|
|
167
|
-
def
|
|
168
|
-
"""Gets the
|
|
100
|
+
def machine_image_version(self) -> 'str':
|
|
101
|
+
"""Gets the machine_image_version of this Update. # noqa: E501
|
|
169
102
|
|
|
170
103
|
|
|
171
|
-
:return: The
|
|
172
|
-
:rtype:
|
|
104
|
+
:return: The machine_image_version of this Update. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
173
106
|
"""
|
|
174
|
-
return self.
|
|
107
|
+
return self._machine_image_version
|
|
175
108
|
|
|
176
|
-
@
|
|
177
|
-
def
|
|
178
|
-
"""Sets the
|
|
109
|
+
@machine_image_version.setter
|
|
110
|
+
def machine_image_version(self, machine_image_version: 'str'):
|
|
111
|
+
"""Sets the machine_image_version of this Update.
|
|
179
112
|
|
|
180
113
|
|
|
181
|
-
:param
|
|
182
|
-
:type:
|
|
114
|
+
:param machine_image_version: The machine_image_version of this Update. # noqa: E501
|
|
115
|
+
:type: str
|
|
183
116
|
"""
|
|
184
117
|
|
|
185
|
-
self.
|
|
118
|
+
self._machine_image_version = machine_image_version
|
|
186
119
|
|
|
187
120
|
@property
|
|
188
121
|
def name(self) -> 'str':
|
|
@@ -206,109 +139,46 @@ class Update(object):
|
|
|
206
139
|
self._name = name
|
|
207
140
|
|
|
208
141
|
@property
|
|
209
|
-
def
|
|
210
|
-
"""Gets the
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
:return: The r2 of this Update. # noqa: E501
|
|
214
|
-
:rtype: V1R2DataConnection
|
|
215
|
-
"""
|
|
216
|
-
return self._r2
|
|
217
|
-
|
|
218
|
-
@r2.setter
|
|
219
|
-
def r2(self, r2: 'V1R2DataConnection'):
|
|
220
|
-
"""Sets the r2 of this Update.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
:param r2: The r2 of this Update. # noqa: E501
|
|
224
|
-
:type: V1R2DataConnection
|
|
225
|
-
"""
|
|
226
|
-
|
|
227
|
-
self._r2 = r2
|
|
228
|
-
|
|
229
|
-
@property
|
|
230
|
-
def run_cmds(self) -> 'list[str]':
|
|
231
|
-
"""Gets the run_cmds of this Update. # noqa: E501
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
:return: The run_cmds of this Update. # noqa: E501
|
|
235
|
-
:rtype: list[str]
|
|
236
|
-
"""
|
|
237
|
-
return self._run_cmds
|
|
238
|
-
|
|
239
|
-
@run_cmds.setter
|
|
240
|
-
def run_cmds(self, run_cmds: 'list[str]'):
|
|
241
|
-
"""Sets the run_cmds of this Update.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
:param run_cmds: The run_cmds of this Update. # noqa: E501
|
|
245
|
-
:type: list[str]
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
self._run_cmds = run_cmds
|
|
249
|
-
|
|
250
|
-
@property
|
|
251
|
-
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
252
|
-
"""Gets the s3_folder of this Update. # noqa: E501
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
:return: The s3_folder of this Update. # noqa: E501
|
|
256
|
-
:rtype: V1S3FolderDataConnection
|
|
257
|
-
"""
|
|
258
|
-
return self._s3_folder
|
|
259
|
-
|
|
260
|
-
@s3_folder.setter
|
|
261
|
-
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
262
|
-
"""Sets the s3_folder of this Update.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
:param s3_folder: The s3_folder of this Update. # noqa: E501
|
|
266
|
-
:type: V1S3FolderDataConnection
|
|
267
|
-
"""
|
|
268
|
-
|
|
269
|
-
self._s3_folder = s3_folder
|
|
270
|
-
|
|
271
|
-
@property
|
|
272
|
-
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
273
|
-
"""Gets the snowflake of this Update. # noqa: E501
|
|
142
|
+
def org_id(self) -> 'str':
|
|
143
|
+
"""Gets the org_id of this Update. # noqa: E501
|
|
274
144
|
|
|
275
145
|
|
|
276
|
-
:return: The
|
|
277
|
-
:rtype:
|
|
146
|
+
:return: The org_id of this Update. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
278
148
|
"""
|
|
279
|
-
return self.
|
|
149
|
+
return self._org_id
|
|
280
150
|
|
|
281
|
-
@
|
|
282
|
-
def
|
|
283
|
-
"""Sets the
|
|
151
|
+
@org_id.setter
|
|
152
|
+
def org_id(self, org_id: 'str'):
|
|
153
|
+
"""Sets the org_id of this Update.
|
|
284
154
|
|
|
285
155
|
|
|
286
|
-
:param
|
|
287
|
-
:type:
|
|
156
|
+
:param org_id: The org_id of this Update. # noqa: E501
|
|
157
|
+
:type: str
|
|
288
158
|
"""
|
|
289
159
|
|
|
290
|
-
self.
|
|
160
|
+
self._org_id = org_id
|
|
291
161
|
|
|
292
162
|
@property
|
|
293
|
-
def
|
|
294
|
-
"""Gets the
|
|
163
|
+
def setup_script_text(self) -> 'str':
|
|
164
|
+
"""Gets the setup_script_text of this Update. # noqa: E501
|
|
295
165
|
|
|
296
166
|
|
|
297
|
-
:return: The
|
|
298
|
-
:rtype:
|
|
167
|
+
:return: The setup_script_text of this Update. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
299
169
|
"""
|
|
300
|
-
return self.
|
|
170
|
+
return self._setup_script_text
|
|
301
171
|
|
|
302
|
-
@
|
|
303
|
-
def
|
|
304
|
-
"""Sets the
|
|
172
|
+
@setup_script_text.setter
|
|
173
|
+
def setup_script_text(self, setup_script_text: 'str'):
|
|
174
|
+
"""Sets the setup_script_text of this Update.
|
|
305
175
|
|
|
306
176
|
|
|
307
|
-
:param
|
|
308
|
-
:type:
|
|
177
|
+
:param setup_script_text: The setup_script_text of this Update. # noqa: E501
|
|
178
|
+
:type: str
|
|
309
179
|
"""
|
|
310
180
|
|
|
311
|
-
self.
|
|
181
|
+
self._setup_script_text = setup_script_text
|
|
312
182
|
|
|
313
183
|
def to_dict(self) -> dict:
|
|
314
184
|
"""Returns the model properties as a dict"""
|
|
@@ -0,0 +1,357 @@
|
|
|
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 Update1(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
|
+
'aws': 'V1AwsDataConnection',
|
|
45
|
+
'efs': 'V1EfsConfig',
|
|
46
|
+
'gcp': 'V1GcpDataConnection',
|
|
47
|
+
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
48
|
+
'name': 'str',
|
|
49
|
+
'r2': 'V1R2DataConnection',
|
|
50
|
+
'run_cmds': 'list[str]',
|
|
51
|
+
's3_folder': 'V1S3FolderDataConnection',
|
|
52
|
+
'snowflake': 'V1SnowflakeDataConnection',
|
|
53
|
+
'writable': 'bool'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
attribute_map = {
|
|
57
|
+
'aws': 'aws',
|
|
58
|
+
'efs': 'efs',
|
|
59
|
+
'gcp': 'gcp',
|
|
60
|
+
'gcs_folder': 'gcsFolder',
|
|
61
|
+
'name': 'name',
|
|
62
|
+
'r2': 'r2',
|
|
63
|
+
'run_cmds': 'runCmds',
|
|
64
|
+
's3_folder': 's3Folder',
|
|
65
|
+
'snowflake': 'snowflake',
|
|
66
|
+
'writable': 'writable'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsConfig' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, name: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
70
|
+
"""Update1 - a model defined in Swagger""" # noqa: E501
|
|
71
|
+
self._aws = None
|
|
72
|
+
self._efs = None
|
|
73
|
+
self._gcp = None
|
|
74
|
+
self._gcs_folder = None
|
|
75
|
+
self._name = None
|
|
76
|
+
self._r2 = None
|
|
77
|
+
self._run_cmds = None
|
|
78
|
+
self._s3_folder = None
|
|
79
|
+
self._snowflake = None
|
|
80
|
+
self._writable = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
if aws is not None:
|
|
83
|
+
self.aws = aws
|
|
84
|
+
if efs is not None:
|
|
85
|
+
self.efs = efs
|
|
86
|
+
if gcp is not None:
|
|
87
|
+
self.gcp = gcp
|
|
88
|
+
if gcs_folder is not None:
|
|
89
|
+
self.gcs_folder = gcs_folder
|
|
90
|
+
if name is not None:
|
|
91
|
+
self.name = name
|
|
92
|
+
if r2 is not None:
|
|
93
|
+
self.r2 = r2
|
|
94
|
+
if run_cmds is not None:
|
|
95
|
+
self.run_cmds = run_cmds
|
|
96
|
+
if s3_folder is not None:
|
|
97
|
+
self.s3_folder = s3_folder
|
|
98
|
+
if snowflake is not None:
|
|
99
|
+
self.snowflake = snowflake
|
|
100
|
+
if writable is not None:
|
|
101
|
+
self.writable = writable
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def aws(self) -> 'V1AwsDataConnection':
|
|
105
|
+
"""Gets the aws of this Update1. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The aws of this Update1. # noqa: E501
|
|
109
|
+
:rtype: V1AwsDataConnection
|
|
110
|
+
"""
|
|
111
|
+
return self._aws
|
|
112
|
+
|
|
113
|
+
@aws.setter
|
|
114
|
+
def aws(self, aws: 'V1AwsDataConnection'):
|
|
115
|
+
"""Sets the aws of this Update1.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param aws: The aws of this Update1. # noqa: E501
|
|
119
|
+
:type: V1AwsDataConnection
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._aws = aws
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def efs(self) -> 'V1EfsConfig':
|
|
126
|
+
"""Gets the efs of this Update1. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The efs of this Update1. # noqa: E501
|
|
130
|
+
:rtype: V1EfsConfig
|
|
131
|
+
"""
|
|
132
|
+
return self._efs
|
|
133
|
+
|
|
134
|
+
@efs.setter
|
|
135
|
+
def efs(self, efs: 'V1EfsConfig'):
|
|
136
|
+
"""Sets the efs of this Update1.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param efs: The efs of this Update1. # noqa: E501
|
|
140
|
+
:type: V1EfsConfig
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._efs = efs
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def gcp(self) -> 'V1GcpDataConnection':
|
|
147
|
+
"""Gets the gcp of this Update1. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The gcp of this Update1. # noqa: E501
|
|
151
|
+
:rtype: V1GcpDataConnection
|
|
152
|
+
"""
|
|
153
|
+
return self._gcp
|
|
154
|
+
|
|
155
|
+
@gcp.setter
|
|
156
|
+
def gcp(self, gcp: 'V1GcpDataConnection'):
|
|
157
|
+
"""Sets the gcp of this Update1.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param gcp: The gcp of this Update1. # noqa: E501
|
|
161
|
+
:type: V1GcpDataConnection
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._gcp = gcp
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def gcs_folder(self) -> 'V1GCSFolderDataConnection':
|
|
168
|
+
"""Gets the gcs_folder of this Update1. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The gcs_folder of this Update1. # noqa: E501
|
|
172
|
+
:rtype: V1GCSFolderDataConnection
|
|
173
|
+
"""
|
|
174
|
+
return self._gcs_folder
|
|
175
|
+
|
|
176
|
+
@gcs_folder.setter
|
|
177
|
+
def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
|
|
178
|
+
"""Sets the gcs_folder of this Update1.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param gcs_folder: The gcs_folder of this Update1. # noqa: E501
|
|
182
|
+
:type: V1GCSFolderDataConnection
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._gcs_folder = gcs_folder
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def name(self) -> 'str':
|
|
189
|
+
"""Gets the name of this Update1. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The name of this Update1. # noqa: E501
|
|
193
|
+
:rtype: str
|
|
194
|
+
"""
|
|
195
|
+
return self._name
|
|
196
|
+
|
|
197
|
+
@name.setter
|
|
198
|
+
def name(self, name: 'str'):
|
|
199
|
+
"""Sets the name of this Update1.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param name: The name of this Update1. # noqa: E501
|
|
203
|
+
:type: str
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._name = name
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def r2(self) -> 'V1R2DataConnection':
|
|
210
|
+
"""Gets the r2 of this Update1. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The r2 of this Update1. # noqa: E501
|
|
214
|
+
:rtype: V1R2DataConnection
|
|
215
|
+
"""
|
|
216
|
+
return self._r2
|
|
217
|
+
|
|
218
|
+
@r2.setter
|
|
219
|
+
def r2(self, r2: 'V1R2DataConnection'):
|
|
220
|
+
"""Sets the r2 of this Update1.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param r2: The r2 of this Update1. # noqa: E501
|
|
224
|
+
:type: V1R2DataConnection
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._r2 = r2
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def run_cmds(self) -> 'list[str]':
|
|
231
|
+
"""Gets the run_cmds of this Update1. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The run_cmds of this Update1. # noqa: E501
|
|
235
|
+
:rtype: list[str]
|
|
236
|
+
"""
|
|
237
|
+
return self._run_cmds
|
|
238
|
+
|
|
239
|
+
@run_cmds.setter
|
|
240
|
+
def run_cmds(self, run_cmds: 'list[str]'):
|
|
241
|
+
"""Sets the run_cmds of this Update1.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param run_cmds: The run_cmds of this Update1. # noqa: E501
|
|
245
|
+
:type: list[str]
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._run_cmds = run_cmds
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
252
|
+
"""Gets the s3_folder of this Update1. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The s3_folder of this Update1. # noqa: E501
|
|
256
|
+
:rtype: V1S3FolderDataConnection
|
|
257
|
+
"""
|
|
258
|
+
return self._s3_folder
|
|
259
|
+
|
|
260
|
+
@s3_folder.setter
|
|
261
|
+
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
262
|
+
"""Sets the s3_folder of this Update1.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param s3_folder: The s3_folder of this Update1. # noqa: E501
|
|
266
|
+
:type: V1S3FolderDataConnection
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._s3_folder = s3_folder
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
273
|
+
"""Gets the snowflake of this Update1. # noqa: E501
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:return: The snowflake of this Update1. # noqa: E501
|
|
277
|
+
:rtype: V1SnowflakeDataConnection
|
|
278
|
+
"""
|
|
279
|
+
return self._snowflake
|
|
280
|
+
|
|
281
|
+
@snowflake.setter
|
|
282
|
+
def snowflake(self, snowflake: 'V1SnowflakeDataConnection'):
|
|
283
|
+
"""Sets the snowflake of this Update1.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:param snowflake: The snowflake of this Update1. # noqa: E501
|
|
287
|
+
:type: V1SnowflakeDataConnection
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
self._snowflake = snowflake
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def writable(self) -> 'bool':
|
|
294
|
+
"""Gets the writable of this Update1. # noqa: E501
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:return: The writable of this Update1. # noqa: E501
|
|
298
|
+
:rtype: bool
|
|
299
|
+
"""
|
|
300
|
+
return self._writable
|
|
301
|
+
|
|
302
|
+
@writable.setter
|
|
303
|
+
def writable(self, writable: 'bool'):
|
|
304
|
+
"""Sets the writable of this Update1.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param writable: The writable of this Update1. # noqa: E501
|
|
308
|
+
:type: bool
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
self._writable = writable
|
|
312
|
+
|
|
313
|
+
def to_dict(self) -> dict:
|
|
314
|
+
"""Returns the model properties as a dict"""
|
|
315
|
+
result = {}
|
|
316
|
+
|
|
317
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
+
value = getattr(self, attr)
|
|
319
|
+
if isinstance(value, list):
|
|
320
|
+
result[attr] = list(map(
|
|
321
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
+
value
|
|
323
|
+
))
|
|
324
|
+
elif hasattr(value, "to_dict"):
|
|
325
|
+
result[attr] = value.to_dict()
|
|
326
|
+
elif isinstance(value, dict):
|
|
327
|
+
result[attr] = dict(map(
|
|
328
|
+
lambda item: (item[0], item[1].to_dict())
|
|
329
|
+
if hasattr(item[1], "to_dict") else item,
|
|
330
|
+
value.items()
|
|
331
|
+
))
|
|
332
|
+
else:
|
|
333
|
+
result[attr] = value
|
|
334
|
+
if issubclass(Update1, dict):
|
|
335
|
+
for key, value in self.items():
|
|
336
|
+
result[key] = value
|
|
337
|
+
|
|
338
|
+
return result
|
|
339
|
+
|
|
340
|
+
def to_str(self) -> str:
|
|
341
|
+
"""Returns the string representation of the model"""
|
|
342
|
+
return pprint.pformat(self.to_dict())
|
|
343
|
+
|
|
344
|
+
def __repr__(self) -> str:
|
|
345
|
+
"""For `print` and `pprint`"""
|
|
346
|
+
return self.to_str()
|
|
347
|
+
|
|
348
|
+
def __eq__(self, other: 'Update1') -> bool:
|
|
349
|
+
"""Returns true if both objects are equal"""
|
|
350
|
+
if not isinstance(other, Update1):
|
|
351
|
+
return False
|
|
352
|
+
|
|
353
|
+
return self.__dict__ == other.__dict__
|
|
354
|
+
|
|
355
|
+
def __ne__(self, other: 'Update1') -> bool:
|
|
356
|
+
"""Returns true if both objects are not equal"""
|
|
357
|
+
return not self == other
|