lightning-sdk 0.2.21rc1__py3-none-any.whl → 0.2.23__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/license_api.py +2 -2
- lightning_sdk/api/llm_api.py +69 -27
- lightning_sdk/api/pipeline_api.py +49 -9
- lightning_sdk/api/studio_api.py +2 -0
- lightning_sdk/cli/configure.py +34 -27
- lightning_sdk/cli/connect.py +2 -2
- lightning_sdk/cli/download.py +38 -2
- lightning_sdk/cli/entrypoint.py +15 -13
- lightning_sdk/cli/start.py +5 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +98 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
- 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/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +827 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -183
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
- lightning_sdk/llm/llm.py +6 -1
- lightning_sdk/pipeline/__init__.py +12 -2
- lightning_sdk/pipeline/pipeline.py +59 -17
- lightning_sdk/pipeline/printer.py +121 -0
- lightning_sdk/pipeline/schedule.py +8 -0
- lightning_sdk/pipeline/{types.py → steps.py} +77 -59
- lightning_sdk/pipeline/utils.py +39 -17
- lightning_sdk/sandbox.py +157 -0
- lightning_sdk/services/license.py +12 -6
- lightning_sdk/studio.py +7 -1
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/RECORD +70 -58
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.21rc1.dist-info → lightning_sdk-0.2.23.dist-info}/top_level.txt +0 -0
|
@@ -47,6 +47,7 @@ class V1Schedule(object):
|
|
|
47
47
|
'id': 'str',
|
|
48
48
|
'name': 'str',
|
|
49
49
|
'next': 'datetime',
|
|
50
|
+
'parent_resource_id': 'str',
|
|
50
51
|
'project_id': 'str',
|
|
51
52
|
'resource_id': 'str',
|
|
52
53
|
'resource_type': 'V1ScheduleResourceType',
|
|
@@ -63,6 +64,7 @@ class V1Schedule(object):
|
|
|
63
64
|
'id': 'id',
|
|
64
65
|
'name': 'name',
|
|
65
66
|
'next': 'next',
|
|
67
|
+
'parent_resource_id': 'parentResourceId',
|
|
66
68
|
'project_id': 'projectId',
|
|
67
69
|
'resource_id': 'resourceId',
|
|
68
70
|
'resource_type': 'resourceType',
|
|
@@ -72,7 +74,7 @@ class V1Schedule(object):
|
|
|
72
74
|
'user_id': 'userId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, project_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, project_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""V1Schedule - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._created_at = None
|
|
78
80
|
self._cron_expression = None
|
|
@@ -80,6 +82,7 @@ class V1Schedule(object):
|
|
|
80
82
|
self._id = None
|
|
81
83
|
self._name = None
|
|
82
84
|
self._next = None
|
|
85
|
+
self._parent_resource_id = None
|
|
83
86
|
self._project_id = None
|
|
84
87
|
self._resource_id = None
|
|
85
88
|
self._resource_type = None
|
|
@@ -100,6 +103,8 @@ class V1Schedule(object):
|
|
|
100
103
|
self.name = name
|
|
101
104
|
if next is not None:
|
|
102
105
|
self.next = next
|
|
106
|
+
if parent_resource_id is not None:
|
|
107
|
+
self.parent_resource_id = parent_resource_id
|
|
103
108
|
if project_id is not None:
|
|
104
109
|
self.project_id = project_id
|
|
105
110
|
if resource_id is not None:
|
|
@@ -241,6 +246,27 @@ class V1Schedule(object):
|
|
|
241
246
|
|
|
242
247
|
self._next = next
|
|
243
248
|
|
|
249
|
+
@property
|
|
250
|
+
def parent_resource_id(self) -> 'str':
|
|
251
|
+
"""Gets the parent_resource_id of this V1Schedule. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The parent_resource_id of this V1Schedule. # noqa: E501
|
|
255
|
+
:rtype: str
|
|
256
|
+
"""
|
|
257
|
+
return self._parent_resource_id
|
|
258
|
+
|
|
259
|
+
@parent_resource_id.setter
|
|
260
|
+
def parent_resource_id(self, parent_resource_id: 'str'):
|
|
261
|
+
"""Sets the parent_resource_id of this V1Schedule.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param parent_resource_id: The parent_resource_id of this V1Schedule. # noqa: E501
|
|
265
|
+
:type: str
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._parent_resource_id = parent_resource_id
|
|
269
|
+
|
|
244
270
|
@property
|
|
245
271
|
def project_id(self) -> 'str':
|
|
246
272
|
"""Gets the project_id of this V1Schedule. # noqa: E501
|
|
@@ -41,35 +41,81 @@ class V1SharedFilesystem(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'efs': 'bool',
|
|
44
45
|
'enabled': 'bool',
|
|
46
|
+
'filestore': 'bool',
|
|
47
|
+
'gcs_folder': 'bool',
|
|
48
|
+
'r2_folder': 'bool',
|
|
45
49
|
'resource_id': 'str',
|
|
46
50
|
'resource_name': 'str',
|
|
51
|
+
's3_folder': 'bool',
|
|
47
52
|
'state': 'str'
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
attribute_map = {
|
|
56
|
+
'efs': 'efs',
|
|
51
57
|
'enabled': 'enabled',
|
|
58
|
+
'filestore': 'filestore',
|
|
59
|
+
'gcs_folder': 'gcsFolder',
|
|
60
|
+
'r2_folder': 'r2Folder',
|
|
52
61
|
'resource_id': 'resourceId',
|
|
53
62
|
'resource_name': 'resourceName',
|
|
63
|
+
's3_folder': 's3Folder',
|
|
54
64
|
'state': 'state'
|
|
55
65
|
}
|
|
56
66
|
|
|
57
|
-
def __init__(self, enabled: 'bool' =None, resource_id: 'str' =None, resource_name: 'str' =None, state: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, efs: 'bool' =None, enabled: 'bool' =None, filestore: 'bool' =None, gcs_folder: 'bool' =None, r2_folder: 'bool' =None, resource_id: 'str' =None, resource_name: 'str' =None, s3_folder: 'bool' =None, state: 'str' =None): # noqa: E501
|
|
58
68
|
"""V1SharedFilesystem - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
self._efs = None
|
|
59
70
|
self._enabled = None
|
|
71
|
+
self._filestore = None
|
|
72
|
+
self._gcs_folder = None
|
|
73
|
+
self._r2_folder = None
|
|
60
74
|
self._resource_id = None
|
|
61
75
|
self._resource_name = None
|
|
76
|
+
self._s3_folder = None
|
|
62
77
|
self._state = None
|
|
63
78
|
self.discriminator = None
|
|
79
|
+
if efs is not None:
|
|
80
|
+
self.efs = efs
|
|
64
81
|
if enabled is not None:
|
|
65
82
|
self.enabled = enabled
|
|
83
|
+
if filestore is not None:
|
|
84
|
+
self.filestore = filestore
|
|
85
|
+
if gcs_folder is not None:
|
|
86
|
+
self.gcs_folder = gcs_folder
|
|
87
|
+
if r2_folder is not None:
|
|
88
|
+
self.r2_folder = r2_folder
|
|
66
89
|
if resource_id is not None:
|
|
67
90
|
self.resource_id = resource_id
|
|
68
91
|
if resource_name is not None:
|
|
69
92
|
self.resource_name = resource_name
|
|
93
|
+
if s3_folder is not None:
|
|
94
|
+
self.s3_folder = s3_folder
|
|
70
95
|
if state is not None:
|
|
71
96
|
self.state = state
|
|
72
97
|
|
|
98
|
+
@property
|
|
99
|
+
def efs(self) -> 'bool':
|
|
100
|
+
"""Gets the efs of this V1SharedFilesystem. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The efs of this V1SharedFilesystem. # noqa: E501
|
|
104
|
+
:rtype: bool
|
|
105
|
+
"""
|
|
106
|
+
return self._efs
|
|
107
|
+
|
|
108
|
+
@efs.setter
|
|
109
|
+
def efs(self, efs: 'bool'):
|
|
110
|
+
"""Sets the efs of this V1SharedFilesystem.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param efs: The efs of this V1SharedFilesystem. # noqa: E501
|
|
114
|
+
:type: bool
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._efs = efs
|
|
118
|
+
|
|
73
119
|
@property
|
|
74
120
|
def enabled(self) -> 'bool':
|
|
75
121
|
"""Gets the enabled of this V1SharedFilesystem. # noqa: E501
|
|
@@ -91,6 +137,69 @@ class V1SharedFilesystem(object):
|
|
|
91
137
|
|
|
92
138
|
self._enabled = enabled
|
|
93
139
|
|
|
140
|
+
@property
|
|
141
|
+
def filestore(self) -> 'bool':
|
|
142
|
+
"""Gets the filestore of this V1SharedFilesystem. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The filestore of this V1SharedFilesystem. # noqa: E501
|
|
146
|
+
:rtype: bool
|
|
147
|
+
"""
|
|
148
|
+
return self._filestore
|
|
149
|
+
|
|
150
|
+
@filestore.setter
|
|
151
|
+
def filestore(self, filestore: 'bool'):
|
|
152
|
+
"""Sets the filestore of this V1SharedFilesystem.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param filestore: The filestore of this V1SharedFilesystem. # noqa: E501
|
|
156
|
+
:type: bool
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._filestore = filestore
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def gcs_folder(self) -> 'bool':
|
|
163
|
+
"""Gets the gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:return: The gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
167
|
+
:rtype: bool
|
|
168
|
+
"""
|
|
169
|
+
return self._gcs_folder
|
|
170
|
+
|
|
171
|
+
@gcs_folder.setter
|
|
172
|
+
def gcs_folder(self, gcs_folder: 'bool'):
|
|
173
|
+
"""Sets the gcs_folder of this V1SharedFilesystem.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param gcs_folder: The gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
177
|
+
:type: bool
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
self._gcs_folder = gcs_folder
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def r2_folder(self) -> 'bool':
|
|
184
|
+
"""Gets the r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
188
|
+
:rtype: bool
|
|
189
|
+
"""
|
|
190
|
+
return self._r2_folder
|
|
191
|
+
|
|
192
|
+
@r2_folder.setter
|
|
193
|
+
def r2_folder(self, r2_folder: 'bool'):
|
|
194
|
+
"""Sets the r2_folder of this V1SharedFilesystem.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param r2_folder: The r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
198
|
+
:type: bool
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._r2_folder = r2_folder
|
|
202
|
+
|
|
94
203
|
@property
|
|
95
204
|
def resource_id(self) -> 'str':
|
|
96
205
|
"""Gets the resource_id of this V1SharedFilesystem. # noqa: E501
|
|
@@ -133,6 +242,27 @@ class V1SharedFilesystem(object):
|
|
|
133
242
|
|
|
134
243
|
self._resource_name = resource_name
|
|
135
244
|
|
|
245
|
+
@property
|
|
246
|
+
def s3_folder(self) -> 'bool':
|
|
247
|
+
"""Gets the s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
:return: The s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
251
|
+
:rtype: bool
|
|
252
|
+
"""
|
|
253
|
+
return self._s3_folder
|
|
254
|
+
|
|
255
|
+
@s3_folder.setter
|
|
256
|
+
def s3_folder(self, s3_folder: 'bool'):
|
|
257
|
+
"""Sets the s3_folder of this V1SharedFilesystem.
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:param s3_folder: The s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
261
|
+
:type: bool
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
self._s3_folder = s3_folder
|
|
265
|
+
|
|
136
266
|
@property
|
|
137
267
|
def state(self) -> 'str':
|
|
138
268
|
"""Gets the state of this V1SharedFilesystem. # noqa: E501
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1UpdateCloudSpaceVisibilityResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1UpdateCloudSpaceVisibilityResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1UpdateCloudSpaceVisibilityResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1UpdateCloudSpaceVisibilityResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1UpdateCloudSpaceVisibilityResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1UpdateCloudSpaceVisibilityResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -42,6 +42,9 @@ class V1UpdateUserRequest(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'agree_to_terms_and_conditions': 'bool',
|
|
45
|
+
'allow_credits_auto_replenish': 'bool',
|
|
46
|
+
'auto_replenish_amount': 'float',
|
|
47
|
+
'auto_replenish_threshold': 'float',
|
|
45
48
|
'complete_sign_up': 'bool',
|
|
46
49
|
'completed_project_onboarding': 'bool',
|
|
47
50
|
'country': 'str',
|
|
@@ -69,6 +72,9 @@ class V1UpdateUserRequest(object):
|
|
|
69
72
|
|
|
70
73
|
attribute_map = {
|
|
71
74
|
'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
|
|
75
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
76
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
77
|
+
'auto_replenish_threshold': 'autoReplenishThreshold',
|
|
72
78
|
'complete_sign_up': 'completeSignUp',
|
|
73
79
|
'completed_project_onboarding': 'completedProjectOnboarding',
|
|
74
80
|
'country': 'country',
|
|
@@ -94,9 +100,12 @@ class V1UpdateUserRequest(object):
|
|
|
94
100
|
'website': 'website'
|
|
95
101
|
}
|
|
96
102
|
|
|
97
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
|
|
103
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
|
|
98
104
|
"""V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
|
|
99
105
|
self._agree_to_terms_and_conditions = None
|
|
106
|
+
self._allow_credits_auto_replenish = None
|
|
107
|
+
self._auto_replenish_amount = None
|
|
108
|
+
self._auto_replenish_threshold = None
|
|
100
109
|
self._complete_sign_up = None
|
|
101
110
|
self._completed_project_onboarding = None
|
|
102
111
|
self._country = None
|
|
@@ -123,6 +132,12 @@ class V1UpdateUserRequest(object):
|
|
|
123
132
|
self.discriminator = None
|
|
124
133
|
if agree_to_terms_and_conditions is not None:
|
|
125
134
|
self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
135
|
+
if allow_credits_auto_replenish is not None:
|
|
136
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
137
|
+
if auto_replenish_amount is not None:
|
|
138
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
139
|
+
if auto_replenish_threshold is not None:
|
|
140
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
126
141
|
if complete_sign_up is not None:
|
|
127
142
|
self.complete_sign_up = complete_sign_up
|
|
128
143
|
if completed_project_onboarding is not None:
|
|
@@ -191,6 +206,69 @@ class V1UpdateUserRequest(object):
|
|
|
191
206
|
|
|
192
207
|
self._agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
193
208
|
|
|
209
|
+
@property
|
|
210
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
211
|
+
"""Gets the allow_credits_auto_replenish of this V1UpdateUserRequest. # noqa: E501
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:return: The allow_credits_auto_replenish of this V1UpdateUserRequest. # noqa: E501
|
|
215
|
+
:rtype: bool
|
|
216
|
+
"""
|
|
217
|
+
return self._allow_credits_auto_replenish
|
|
218
|
+
|
|
219
|
+
@allow_credits_auto_replenish.setter
|
|
220
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
221
|
+
"""Sets the allow_credits_auto_replenish of this V1UpdateUserRequest.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1UpdateUserRequest. # noqa: E501
|
|
225
|
+
:type: bool
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def auto_replenish_amount(self) -> 'float':
|
|
232
|
+
"""Gets the auto_replenish_amount of this V1UpdateUserRequest. # noqa: E501
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
:return: The auto_replenish_amount of this V1UpdateUserRequest. # noqa: E501
|
|
236
|
+
:rtype: float
|
|
237
|
+
"""
|
|
238
|
+
return self._auto_replenish_amount
|
|
239
|
+
|
|
240
|
+
@auto_replenish_amount.setter
|
|
241
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'float'):
|
|
242
|
+
"""Sets the auto_replenish_amount of this V1UpdateUserRequest.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:param auto_replenish_amount: The auto_replenish_amount of this V1UpdateUserRequest. # noqa: E501
|
|
246
|
+
:type: float
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def auto_replenish_threshold(self) -> 'float':
|
|
253
|
+
"""Gets the auto_replenish_threshold of this V1UpdateUserRequest. # noqa: E501
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:return: The auto_replenish_threshold of this V1UpdateUserRequest. # noqa: E501
|
|
257
|
+
:rtype: float
|
|
258
|
+
"""
|
|
259
|
+
return self._auto_replenish_threshold
|
|
260
|
+
|
|
261
|
+
@auto_replenish_threshold.setter
|
|
262
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
|
|
263
|
+
"""Sets the auto_replenish_threshold of this V1UpdateUserRequest.
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this V1UpdateUserRequest. # noqa: E501
|
|
267
|
+
:type: float
|
|
268
|
+
"""
|
|
269
|
+
|
|
270
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
271
|
+
|
|
194
272
|
@property
|
|
195
273
|
def complete_sign_up(self) -> 'bool':
|
|
196
274
|
"""Gets the complete_sign_up of this V1UpdateUserRequest. # noqa: E501
|