lightning-sdk 0.2.20__py3-none-any.whl → 0.2.21__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 +7 -2
- lightning_sdk/api/license_api.py +3 -3
- lightning_sdk/api/llm_api.py +118 -26
- lightning_sdk/api/studio_api.py +5 -0
- lightning_sdk/cli/configure.py +34 -27
- lightning_sdk/cli/connect.py +2 -2
- lightning_sdk/deployment/deployment.py +17 -3
- lightning_sdk/lightning_cloud/openapi/__init__.py +0 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +11 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +0 -85
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -365
- lightning_sdk/llm/llm.py +52 -1
- lightning_sdk/pipeline/pipeline.py +1 -1
- lightning_sdk/services/utilities.py +15 -1
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/RECORD +33 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/top_level.txt +0 -0
|
@@ -42,7 +42,10 @@ class V1GetUserResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'agree_to_terms_and_conditions': 'bool',
|
|
45
|
+
'allow_credits_auto_replenish': 'bool',
|
|
45
46
|
'api_key': 'str',
|
|
47
|
+
'auto_replenish_amount': 'float',
|
|
48
|
+
'auto_replenish_threshold': 'float',
|
|
46
49
|
'country': 'str',
|
|
47
50
|
'discounted_pro_plan': 'bool',
|
|
48
51
|
'email': 'str',
|
|
@@ -80,7 +83,10 @@ class V1GetUserResponse(object):
|
|
|
80
83
|
|
|
81
84
|
attribute_map = {
|
|
82
85
|
'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
|
|
86
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
83
87
|
'api_key': 'apiKey',
|
|
88
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
89
|
+
'auto_replenish_threshold': 'autoReplenishThreshold',
|
|
84
90
|
'country': 'country',
|
|
85
91
|
'discounted_pro_plan': 'discountedProPlan',
|
|
86
92
|
'email': 'email',
|
|
@@ -116,10 +122,13 @@ class V1GetUserResponse(object):
|
|
|
116
122
|
'website': 'website'
|
|
117
123
|
}
|
|
118
124
|
|
|
119
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: '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, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
125
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: '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, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
120
126
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
121
127
|
self._agree_to_terms_and_conditions = None
|
|
128
|
+
self._allow_credits_auto_replenish = None
|
|
122
129
|
self._api_key = None
|
|
130
|
+
self._auto_replenish_amount = None
|
|
131
|
+
self._auto_replenish_threshold = None
|
|
123
132
|
self._country = None
|
|
124
133
|
self._discounted_pro_plan = None
|
|
125
134
|
self._email = None
|
|
@@ -156,8 +165,14 @@ class V1GetUserResponse(object):
|
|
|
156
165
|
self.discriminator = None
|
|
157
166
|
if agree_to_terms_and_conditions is not None:
|
|
158
167
|
self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
168
|
+
if allow_credits_auto_replenish is not None:
|
|
169
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
159
170
|
if api_key is not None:
|
|
160
171
|
self.api_key = api_key
|
|
172
|
+
if auto_replenish_amount is not None:
|
|
173
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
174
|
+
if auto_replenish_threshold is not None:
|
|
175
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
161
176
|
if country is not None:
|
|
162
177
|
self.country = country
|
|
163
178
|
if discounted_pro_plan is not None:
|
|
@@ -246,6 +261,27 @@ class V1GetUserResponse(object):
|
|
|
246
261
|
|
|
247
262
|
self._agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
248
263
|
|
|
264
|
+
@property
|
|
265
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
266
|
+
"""Gets the allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
:return: The allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
270
|
+
:rtype: bool
|
|
271
|
+
"""
|
|
272
|
+
return self._allow_credits_auto_replenish
|
|
273
|
+
|
|
274
|
+
@allow_credits_auto_replenish.setter
|
|
275
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
276
|
+
"""Sets the allow_credits_auto_replenish of this V1GetUserResponse.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
280
|
+
:type: bool
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
284
|
+
|
|
249
285
|
@property
|
|
250
286
|
def api_key(self) -> 'str':
|
|
251
287
|
"""Gets the api_key of this V1GetUserResponse. # noqa: E501
|
|
@@ -267,6 +303,48 @@ class V1GetUserResponse(object):
|
|
|
267
303
|
|
|
268
304
|
self._api_key = api_key
|
|
269
305
|
|
|
306
|
+
@property
|
|
307
|
+
def auto_replenish_amount(self) -> 'float':
|
|
308
|
+
"""Gets the auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
:return: The auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
312
|
+
:rtype: float
|
|
313
|
+
"""
|
|
314
|
+
return self._auto_replenish_amount
|
|
315
|
+
|
|
316
|
+
@auto_replenish_amount.setter
|
|
317
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'float'):
|
|
318
|
+
"""Sets the auto_replenish_amount of this V1GetUserResponse.
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
:param auto_replenish_amount: The auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
322
|
+
:type: float
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def auto_replenish_threshold(self) -> 'float':
|
|
329
|
+
"""Gets the auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
:return: The auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
333
|
+
:rtype: float
|
|
334
|
+
"""
|
|
335
|
+
return self._auto_replenish_threshold
|
|
336
|
+
|
|
337
|
+
@auto_replenish_threshold.setter
|
|
338
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
|
|
339
|
+
"""Sets the auto_replenish_threshold of this V1GetUserResponse.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
343
|
+
:type: float
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
347
|
+
|
|
270
348
|
@property
|
|
271
349
|
def country(self) -> 'str':
|
|
272
350
|
"""Gets the country of this V1GetUserResponse. # noqa: E501
|
|
@@ -49,8 +49,10 @@ class V1Message(object):
|
|
|
49
49
|
'created_at': 'datetime',
|
|
50
50
|
'executable': 'bool',
|
|
51
51
|
'id': 'str',
|
|
52
|
+
'internal_message': 'bool',
|
|
52
53
|
'metadata': 'dict(str, str)',
|
|
53
54
|
'model': 'str',
|
|
55
|
+
'parent_message_id': 'str',
|
|
54
56
|
'prompt_tokens': 'str',
|
|
55
57
|
'throughput': 'float'
|
|
56
58
|
}
|
|
@@ -64,13 +66,15 @@ class V1Message(object):
|
|
|
64
66
|
'created_at': 'createdAt',
|
|
65
67
|
'executable': 'executable',
|
|
66
68
|
'id': 'id',
|
|
69
|
+
'internal_message': 'internalMessage',
|
|
67
70
|
'metadata': 'metadata',
|
|
68
71
|
'model': 'model',
|
|
72
|
+
'parent_message_id': 'parentMessageId',
|
|
69
73
|
'prompt_tokens': 'promptTokens',
|
|
70
74
|
'throughput': 'throughput'
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
def __init__(self, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, metadata: 'dict(str, str)' =None, model: 'str' =None, prompt_tokens: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
77
|
+
def __init__(self, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, internal_message: 'bool' =None, metadata: 'dict(str, str)' =None, model: 'str' =None, parent_message_id: 'str' =None, prompt_tokens: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
74
78
|
"""V1Message - a model defined in Swagger""" # noqa: E501
|
|
75
79
|
self._assistant_id = None
|
|
76
80
|
self._author = None
|
|
@@ -80,8 +84,10 @@ class V1Message(object):
|
|
|
80
84
|
self._created_at = None
|
|
81
85
|
self._executable = None
|
|
82
86
|
self._id = None
|
|
87
|
+
self._internal_message = None
|
|
83
88
|
self._metadata = None
|
|
84
89
|
self._model = None
|
|
90
|
+
self._parent_message_id = None
|
|
85
91
|
self._prompt_tokens = None
|
|
86
92
|
self._throughput = None
|
|
87
93
|
self.discriminator = None
|
|
@@ -101,10 +107,14 @@ class V1Message(object):
|
|
|
101
107
|
self.executable = executable
|
|
102
108
|
if id is not None:
|
|
103
109
|
self.id = id
|
|
110
|
+
if internal_message is not None:
|
|
111
|
+
self.internal_message = internal_message
|
|
104
112
|
if metadata is not None:
|
|
105
113
|
self.metadata = metadata
|
|
106
114
|
if model is not None:
|
|
107
115
|
self.model = model
|
|
116
|
+
if parent_message_id is not None:
|
|
117
|
+
self.parent_message_id = parent_message_id
|
|
108
118
|
if prompt_tokens is not None:
|
|
109
119
|
self.prompt_tokens = prompt_tokens
|
|
110
120
|
if throughput is not None:
|
|
@@ -278,6 +288,27 @@ class V1Message(object):
|
|
|
278
288
|
|
|
279
289
|
self._id = id
|
|
280
290
|
|
|
291
|
+
@property
|
|
292
|
+
def internal_message(self) -> 'bool':
|
|
293
|
+
"""Gets the internal_message of this V1Message. # noqa: E501
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:return: The internal_message of this V1Message. # noqa: E501
|
|
297
|
+
:rtype: bool
|
|
298
|
+
"""
|
|
299
|
+
return self._internal_message
|
|
300
|
+
|
|
301
|
+
@internal_message.setter
|
|
302
|
+
def internal_message(self, internal_message: 'bool'):
|
|
303
|
+
"""Sets the internal_message of this V1Message.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:param internal_message: The internal_message of this V1Message. # noqa: E501
|
|
307
|
+
:type: bool
|
|
308
|
+
"""
|
|
309
|
+
|
|
310
|
+
self._internal_message = internal_message
|
|
311
|
+
|
|
281
312
|
@property
|
|
282
313
|
def metadata(self) -> 'dict(str, str)':
|
|
283
314
|
"""Gets the metadata of this V1Message. # noqa: E501
|
|
@@ -320,6 +351,27 @@ class V1Message(object):
|
|
|
320
351
|
|
|
321
352
|
self._model = model
|
|
322
353
|
|
|
354
|
+
@property
|
|
355
|
+
def parent_message_id(self) -> 'str':
|
|
356
|
+
"""Gets the parent_message_id of this V1Message. # noqa: E501
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:return: The parent_message_id of this V1Message. # noqa: E501
|
|
360
|
+
:rtype: str
|
|
361
|
+
"""
|
|
362
|
+
return self._parent_message_id
|
|
363
|
+
|
|
364
|
+
@parent_message_id.setter
|
|
365
|
+
def parent_message_id(self, parent_message_id: 'str'):
|
|
366
|
+
"""Sets the parent_message_id of this V1Message.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param parent_message_id: The parent_message_id of this V1Message. # noqa: E501
|
|
370
|
+
:type: str
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
self._parent_message_id = parent_message_id
|
|
374
|
+
|
|
323
375
|
@property
|
|
324
376
|
def prompt_tokens(self) -> 'str':
|
|
325
377
|
"""Gets the prompt_tokens of this V1Message. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1RoutingTelemetry(object):
|
|
|
46
46
|
'method': 'str',
|
|
47
47
|
'path': 'str',
|
|
48
48
|
'received_at': 'datetime',
|
|
49
|
+
'resource_id': 'str',
|
|
49
50
|
'status_code': 'int'
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -55,16 +56,18 @@ class V1RoutingTelemetry(object):
|
|
|
55
56
|
'method': 'method',
|
|
56
57
|
'path': 'path',
|
|
57
58
|
'received_at': 'receivedAt',
|
|
59
|
+
'resource_id': 'resourceId',
|
|
58
60
|
'status_code': 'statusCode'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, duration: 'float' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, received_at: 'datetime' =None, status_code: 'int' =None): # noqa: E501
|
|
63
|
+
def __init__(self, duration: 'float' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, received_at: 'datetime' =None, resource_id: 'str' =None, status_code: 'int' =None): # noqa: E501
|
|
62
64
|
"""V1RoutingTelemetry - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._duration = None
|
|
64
66
|
self._id = None
|
|
65
67
|
self._method = None
|
|
66
68
|
self._path = None
|
|
67
69
|
self._received_at = None
|
|
70
|
+
self._resource_id = None
|
|
68
71
|
self._status_code = None
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if duration is not None:
|
|
@@ -77,6 +80,8 @@ class V1RoutingTelemetry(object):
|
|
|
77
80
|
self.path = path
|
|
78
81
|
if received_at is not None:
|
|
79
82
|
self.received_at = received_at
|
|
83
|
+
if resource_id is not None:
|
|
84
|
+
self.resource_id = resource_id
|
|
80
85
|
if status_code is not None:
|
|
81
86
|
self.status_code = status_code
|
|
82
87
|
|
|
@@ -185,6 +190,27 @@ class V1RoutingTelemetry(object):
|
|
|
185
190
|
|
|
186
191
|
self._received_at = received_at
|
|
187
192
|
|
|
193
|
+
@property
|
|
194
|
+
def resource_id(self) -> 'str':
|
|
195
|
+
"""Gets the resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._resource_id
|
|
202
|
+
|
|
203
|
+
@resource_id.setter
|
|
204
|
+
def resource_id(self, resource_id: 'str'):
|
|
205
|
+
"""Sets the resource_id of this V1RoutingTelemetry.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param resource_id: The resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._resource_id = resource_id
|
|
213
|
+
|
|
188
214
|
@property
|
|
189
215
|
def status_code(self) -> 'int':
|
|
190
216
|
"""Gets the status_code of this V1RoutingTelemetry. # noqa: E501
|
|
@@ -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
|