lightning-sdk 0.2.24rc0__py3-none-any.whl → 2025.7.9__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/cluster_api.py +15 -0
- lightning_sdk/api/llm_api.py +18 -2
- lightning_sdk/api/pipeline_api.py +15 -7
- lightning_sdk/api/studio_api.py +0 -17
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +13 -1
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +1 -27
- 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_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_action_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +183 -53
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/llm/llm.py +6 -1
- lightning_sdk/machine.py +1 -4
- lightning_sdk/pipeline/pipeline.py +1 -15
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/RECORD +42 -36
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-2025.7.9.dist-info}/top_level.txt +0 -0
|
@@ -54,6 +54,7 @@ class V1GetUserResponse(object):
|
|
|
54
54
|
'first_name': 'str',
|
|
55
55
|
'general_audience_mode': 'bool',
|
|
56
56
|
'id': 'str',
|
|
57
|
+
'internal_blog_admin': 'bool',
|
|
57
58
|
'internal_docs_admin': 'bool',
|
|
58
59
|
'invite_code': 'str',
|
|
59
60
|
'is_internal': 'bool',
|
|
@@ -96,6 +97,7 @@ class V1GetUserResponse(object):
|
|
|
96
97
|
'first_name': 'firstName',
|
|
97
98
|
'general_audience_mode': 'generalAudienceMode',
|
|
98
99
|
'id': 'id',
|
|
100
|
+
'internal_blog_admin': 'internalBlogAdmin',
|
|
99
101
|
'internal_docs_admin': 'internalDocsAdmin',
|
|
100
102
|
'invite_code': 'inviteCode',
|
|
101
103
|
'is_internal': 'isInternal',
|
|
@@ -124,7 +126,7 @@ class V1GetUserResponse(object):
|
|
|
124
126
|
'website': 'website'
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
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, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
129
|
+
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_blog_admin: 'bool' =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, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
128
130
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
129
131
|
self._agree_to_terms_and_conditions = None
|
|
130
132
|
self._allow_credits_auto_replenish = None
|
|
@@ -139,6 +141,7 @@ class V1GetUserResponse(object):
|
|
|
139
141
|
self._first_name = None
|
|
140
142
|
self._general_audience_mode = None
|
|
141
143
|
self._id = None
|
|
144
|
+
self._internal_blog_admin = None
|
|
142
145
|
self._internal_docs_admin = None
|
|
143
146
|
self._invite_code = None
|
|
144
147
|
self._is_internal = None
|
|
@@ -192,6 +195,8 @@ class V1GetUserResponse(object):
|
|
|
192
195
|
self.general_audience_mode = general_audience_mode
|
|
193
196
|
if id is not None:
|
|
194
197
|
self.id = id
|
|
198
|
+
if internal_blog_admin is not None:
|
|
199
|
+
self.internal_blog_admin = internal_blog_admin
|
|
195
200
|
if internal_docs_admin is not None:
|
|
196
201
|
self.internal_docs_admin = internal_docs_admin
|
|
197
202
|
if invite_code is not None:
|
|
@@ -518,6 +523,27 @@ class V1GetUserResponse(object):
|
|
|
518
523
|
|
|
519
524
|
self._id = id
|
|
520
525
|
|
|
526
|
+
@property
|
|
527
|
+
def internal_blog_admin(self) -> 'bool':
|
|
528
|
+
"""Gets the internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
:return: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
532
|
+
:rtype: bool
|
|
533
|
+
"""
|
|
534
|
+
return self._internal_blog_admin
|
|
535
|
+
|
|
536
|
+
@internal_blog_admin.setter
|
|
537
|
+
def internal_blog_admin(self, internal_blog_admin: 'bool'):
|
|
538
|
+
"""Sets the internal_blog_admin of this V1GetUserResponse.
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
:param internal_blog_admin: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
542
|
+
:type: bool
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
self._internal_blog_admin = internal_blog_admin
|
|
546
|
+
|
|
521
547
|
@property
|
|
522
548
|
def internal_docs_admin(self) -> 'bool':
|
|
523
549
|
"""Gets the internal_docs_admin of this V1GetUserResponse. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1GetVolumeResponse(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
|
+
'volume': 'V1Volume'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'volume': 'volume'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, volume: 'V1Volume' =None): # noqa: E501
|
|
52
|
+
"""V1GetVolumeResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._volume = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if volume is not None:
|
|
56
|
+
self.volume = volume
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def volume(self) -> 'V1Volume':
|
|
60
|
+
"""Gets the volume of this V1GetVolumeResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The volume of this V1GetVolumeResponse. # noqa: E501
|
|
64
|
+
:rtype: V1Volume
|
|
65
|
+
"""
|
|
66
|
+
return self._volume
|
|
67
|
+
|
|
68
|
+
@volume.setter
|
|
69
|
+
def volume(self, volume: 'V1Volume'):
|
|
70
|
+
"""Sets the volume of this V1GetVolumeResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param volume: The volume of this V1GetVolumeResponse. # noqa: E501
|
|
74
|
+
:type: V1Volume
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._volume = volume
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1GetVolumeResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1GetVolumeResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GetVolumeResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GetVolumeResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -41,19 +41,24 @@ class V1KubernetesDirectV1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'kubeconfig': 'str'
|
|
44
|
+
'kubeconfig': 'str',
|
|
45
|
+
'kubeconfig_elevated': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'kubeconfig': 'kubeconfig'
|
|
49
|
+
'kubeconfig': 'kubeconfig',
|
|
50
|
+
'kubeconfig_elevated': 'kubeconfigElevated'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, kubeconfig: 'str' =None): # noqa: E501
|
|
53
|
+
def __init__(self, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
52
54
|
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._kubeconfig = None
|
|
56
|
+
self._kubeconfig_elevated = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if kubeconfig is not None:
|
|
56
59
|
self.kubeconfig = kubeconfig
|
|
60
|
+
if kubeconfig_elevated is not None:
|
|
61
|
+
self.kubeconfig_elevated = kubeconfig_elevated
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def kubeconfig(self) -> 'str':
|
|
@@ -76,6 +81,27 @@ class V1KubernetesDirectV1(object):
|
|
|
76
81
|
|
|
77
82
|
self._kubeconfig = kubeconfig
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def kubeconfig_elevated(self) -> 'str':
|
|
86
|
+
"""Gets the kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._kubeconfig_elevated
|
|
93
|
+
|
|
94
|
+
@kubeconfig_elevated.setter
|
|
95
|
+
def kubeconfig_elevated(self, kubeconfig_elevated: 'str'):
|
|
96
|
+
"""Sets the kubeconfig_elevated of this V1KubernetesDirectV1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param kubeconfig_elevated: The kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._kubeconfig_elevated = kubeconfig_elevated
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|
|
@@ -43,30 +43,25 @@ class V1LoginRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'api_key': 'str',
|
|
45
45
|
'duration': 'str',
|
|
46
|
-
'should_auto_verify': 'bool',
|
|
47
46
|
'username': 'str'
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
attribute_map = {
|
|
51
50
|
'api_key': 'apiKey',
|
|
52
51
|
'duration': 'duration',
|
|
53
|
-
'should_auto_verify': 'shouldAutoVerify',
|
|
54
52
|
'username': 'username'
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
def __init__(self, api_key: 'str' =None, duration: 'str' =None,
|
|
55
|
+
def __init__(self, api_key: 'str' =None, duration: 'str' =None, username: 'str' =None): # noqa: E501
|
|
58
56
|
"""V1LoginRequest - a model defined in Swagger""" # noqa: E501
|
|
59
57
|
self._api_key = None
|
|
60
58
|
self._duration = None
|
|
61
|
-
self._should_auto_verify = None
|
|
62
59
|
self._username = None
|
|
63
60
|
self.discriminator = None
|
|
64
61
|
if api_key is not None:
|
|
65
62
|
self.api_key = api_key
|
|
66
63
|
if duration is not None:
|
|
67
64
|
self.duration = duration
|
|
68
|
-
if should_auto_verify is not None:
|
|
69
|
-
self.should_auto_verify = should_auto_verify
|
|
70
65
|
if username is not None:
|
|
71
66
|
self.username = username
|
|
72
67
|
|
|
@@ -112,27 +107,6 @@ class V1LoginRequest(object):
|
|
|
112
107
|
|
|
113
108
|
self._duration = duration
|
|
114
109
|
|
|
115
|
-
@property
|
|
116
|
-
def should_auto_verify(self) -> 'bool':
|
|
117
|
-
"""Gets the should_auto_verify of this V1LoginRequest. # noqa: E501
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
:return: The should_auto_verify of this V1LoginRequest. # noqa: E501
|
|
121
|
-
:rtype: bool
|
|
122
|
-
"""
|
|
123
|
-
return self._should_auto_verify
|
|
124
|
-
|
|
125
|
-
@should_auto_verify.setter
|
|
126
|
-
def should_auto_verify(self, should_auto_verify: 'bool'):
|
|
127
|
-
"""Sets the should_auto_verify of this V1LoginRequest.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
:param should_auto_verify: The should_auto_verify of this V1LoginRequest. # noqa: E501
|
|
131
|
-
:type: bool
|
|
132
|
-
"""
|
|
133
|
-
|
|
134
|
-
self._should_auto_verify = should_auto_verify
|
|
135
|
-
|
|
136
110
|
@property
|
|
137
111
|
def username(self) -> 'str':
|
|
138
112
|
"""Gets the username of this V1LoginRequest. # noqa: E501
|
|
@@ -47,8 +47,7 @@ class V1MagicLinkLoginRequest(object):
|
|
|
47
47
|
'experimentation_id': 'str',
|
|
48
48
|
'invite_code': 'str',
|
|
49
49
|
'redirect_url': 'str',
|
|
50
|
-
'referrer_params': 'str'
|
|
51
|
-
'should_auto_verify': 'bool'
|
|
50
|
+
'referrer_params': 'str'
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
attribute_map = {
|
|
@@ -58,11 +57,10 @@ class V1MagicLinkLoginRequest(object):
|
|
|
58
57
|
'experimentation_id': 'experimentationId',
|
|
59
58
|
'invite_code': 'inviteCode',
|
|
60
59
|
'redirect_url': 'redirectUrl',
|
|
61
|
-
'referrer_params': 'referrerParams'
|
|
62
|
-
'should_auto_verify': 'shouldAutoVerify'
|
|
60
|
+
'referrer_params': 'referrerParams'
|
|
63
61
|
}
|
|
64
62
|
|
|
65
|
-
def __init__(self, collab_session_id: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None
|
|
63
|
+
def __init__(self, collab_session_id: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None): # noqa: E501
|
|
66
64
|
"""V1MagicLinkLoginRequest - a model defined in Swagger""" # noqa: E501
|
|
67
65
|
self._collab_session_id = None
|
|
68
66
|
self._discounted_pro_plan = None
|
|
@@ -71,7 +69,6 @@ class V1MagicLinkLoginRequest(object):
|
|
|
71
69
|
self._invite_code = None
|
|
72
70
|
self._redirect_url = None
|
|
73
71
|
self._referrer_params = None
|
|
74
|
-
self._should_auto_verify = None
|
|
75
72
|
self.discriminator = None
|
|
76
73
|
if collab_session_id is not None:
|
|
77
74
|
self.collab_session_id = collab_session_id
|
|
@@ -87,8 +84,6 @@ class V1MagicLinkLoginRequest(object):
|
|
|
87
84
|
self.redirect_url = redirect_url
|
|
88
85
|
if referrer_params is not None:
|
|
89
86
|
self.referrer_params = referrer_params
|
|
90
|
-
if should_auto_verify is not None:
|
|
91
|
-
self.should_auto_verify = should_auto_verify
|
|
92
87
|
|
|
93
88
|
@property
|
|
94
89
|
def collab_session_id(self) -> 'str':
|
|
@@ -237,27 +232,6 @@ class V1MagicLinkLoginRequest(object):
|
|
|
237
232
|
|
|
238
233
|
self._referrer_params = referrer_params
|
|
239
234
|
|
|
240
|
-
@property
|
|
241
|
-
def should_auto_verify(self) -> 'bool':
|
|
242
|
-
"""Gets the should_auto_verify of this V1MagicLinkLoginRequest. # noqa: E501
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
:return: The should_auto_verify of this V1MagicLinkLoginRequest. # noqa: E501
|
|
246
|
-
:rtype: bool
|
|
247
|
-
"""
|
|
248
|
-
return self._should_auto_verify
|
|
249
|
-
|
|
250
|
-
@should_auto_verify.setter
|
|
251
|
-
def should_auto_verify(self, should_auto_verify: 'bool'):
|
|
252
|
-
"""Sets the should_auto_verify of this V1MagicLinkLoginRequest.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
:param should_auto_verify: The should_auto_verify of this V1MagicLinkLoginRequest. # noqa: E501
|
|
256
|
-
:type: bool
|
|
257
|
-
"""
|
|
258
|
-
|
|
259
|
-
self._should_auto_verify = should_auto_verify
|
|
260
|
-
|
|
261
235
|
def to_dict(self) -> dict:
|
|
262
236
|
"""Returns the model properties as a dict"""
|
|
263
237
|
result = {}
|
|
@@ -77,6 +77,7 @@ class V1RuleResource(object):
|
|
|
77
77
|
PIPELINE = "pipeline"
|
|
78
78
|
CLOUDSPACEENVIRONMENTTEMPLATE = "cloudSpaceEnvironmentTemplate"
|
|
79
79
|
ORGSTORAGE = "orgStorage"
|
|
80
|
+
KUBERNETESCLUSTER = "kubernetesCluster"
|
|
80
81
|
"""
|
|
81
82
|
Attributes:
|
|
82
83
|
swagger_types (dict): The key is attribute name
|
|
@@ -41,6 +41,7 @@ class V1Schedule(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'action_type': 'V1ScheduleActionType',
|
|
44
45
|
'created_at': 'datetime',
|
|
45
46
|
'cron_expression': 'str',
|
|
46
47
|
'display_name': 'str',
|
|
@@ -58,6 +59,7 @@ class V1Schedule(object):
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
attribute_map = {
|
|
62
|
+
'action_type': 'actionType',
|
|
61
63
|
'created_at': 'createdAt',
|
|
62
64
|
'cron_expression': 'cronExpression',
|
|
63
65
|
'display_name': 'displayName',
|
|
@@ -74,8 +76,9 @@ class V1Schedule(object):
|
|
|
74
76
|
'user_id': 'userId'
|
|
75
77
|
}
|
|
76
78
|
|
|
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
|
|
79
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, 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
|
|
78
80
|
"""V1Schedule - a model defined in Swagger""" # noqa: E501
|
|
81
|
+
self._action_type = None
|
|
79
82
|
self._created_at = None
|
|
80
83
|
self._cron_expression = None
|
|
81
84
|
self._display_name = None
|
|
@@ -91,6 +94,8 @@ class V1Schedule(object):
|
|
|
91
94
|
self._updated_at = None
|
|
92
95
|
self._user_id = None
|
|
93
96
|
self.discriminator = None
|
|
97
|
+
if action_type is not None:
|
|
98
|
+
self.action_type = action_type
|
|
94
99
|
if created_at is not None:
|
|
95
100
|
self.created_at = created_at
|
|
96
101
|
if cron_expression is not None:
|
|
@@ -120,6 +125,27 @@ class V1Schedule(object):
|
|
|
120
125
|
if user_id is not None:
|
|
121
126
|
self.user_id = user_id
|
|
122
127
|
|
|
128
|
+
@property
|
|
129
|
+
def action_type(self) -> 'V1ScheduleActionType':
|
|
130
|
+
"""Gets the action_type of this V1Schedule. # noqa: E501
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:return: The action_type of this V1Schedule. # noqa: E501
|
|
134
|
+
:rtype: V1ScheduleActionType
|
|
135
|
+
"""
|
|
136
|
+
return self._action_type
|
|
137
|
+
|
|
138
|
+
@action_type.setter
|
|
139
|
+
def action_type(self, action_type: 'V1ScheduleActionType'):
|
|
140
|
+
"""Sets the action_type of this V1Schedule.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param action_type: The action_type of this V1Schedule. # noqa: E501
|
|
144
|
+
:type: V1ScheduleActionType
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
self._action_type = action_type
|
|
148
|
+
|
|
123
149
|
@property
|
|
124
150
|
def created_at(self) -> 'datetime':
|
|
125
151
|
"""Gets the created_at of this V1Schedule. # noqa: E501
|
|
@@ -0,0 +1,104 @@
|
|
|
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 V1ScheduleActionType(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
UNSPECIFIED_ACTION = "UNSPECIFIED_ACTION"
|
|
41
|
+
START = "START"
|
|
42
|
+
STOP = "STOP"
|
|
43
|
+
"""
|
|
44
|
+
Attributes:
|
|
45
|
+
swagger_types (dict): The key is attribute name
|
|
46
|
+
and the value is attribute type.
|
|
47
|
+
attribute_map (dict): The key is attribute name
|
|
48
|
+
and the value is json key in definition.
|
|
49
|
+
"""
|
|
50
|
+
swagger_types = {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
attribute_map = {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
def __init__(self): # noqa: E501
|
|
57
|
+
"""V1ScheduleActionType - a model defined in Swagger""" # noqa: E501
|
|
58
|
+
self.discriminator = None
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> dict:
|
|
61
|
+
"""Returns the model properties as a dict"""
|
|
62
|
+
result = {}
|
|
63
|
+
|
|
64
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
65
|
+
value = getattr(self, attr)
|
|
66
|
+
if isinstance(value, list):
|
|
67
|
+
result[attr] = list(map(
|
|
68
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
69
|
+
value
|
|
70
|
+
))
|
|
71
|
+
elif hasattr(value, "to_dict"):
|
|
72
|
+
result[attr] = value.to_dict()
|
|
73
|
+
elif isinstance(value, dict):
|
|
74
|
+
result[attr] = dict(map(
|
|
75
|
+
lambda item: (item[0], item[1].to_dict())
|
|
76
|
+
if hasattr(item[1], "to_dict") else item,
|
|
77
|
+
value.items()
|
|
78
|
+
))
|
|
79
|
+
else:
|
|
80
|
+
result[attr] = value
|
|
81
|
+
if issubclass(V1ScheduleActionType, dict):
|
|
82
|
+
for key, value in self.items():
|
|
83
|
+
result[key] = value
|
|
84
|
+
|
|
85
|
+
return result
|
|
86
|
+
|
|
87
|
+
def to_str(self) -> str:
|
|
88
|
+
"""Returns the string representation of the model"""
|
|
89
|
+
return pprint.pformat(self.to_dict())
|
|
90
|
+
|
|
91
|
+
def __repr__(self) -> str:
|
|
92
|
+
"""For `print` and `pprint`"""
|
|
93
|
+
return self.to_str()
|
|
94
|
+
|
|
95
|
+
def __eq__(self, other: 'V1ScheduleActionType') -> bool:
|
|
96
|
+
"""Returns true if both objects are equal"""
|
|
97
|
+
if not isinstance(other, V1ScheduleActionType):
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
return self.__dict__ == other.__dict__
|
|
101
|
+
|
|
102
|
+
def __ne__(self, other: 'V1ScheduleActionType') -> bool:
|
|
103
|
+
"""Returns true if both objects are not equal"""
|
|
104
|
+
return not self == other
|
|
@@ -65,7 +65,6 @@ class V1UpdateUserRequest(object):
|
|
|
65
65
|
'saw_create_first_project_dialog': 'bool',
|
|
66
66
|
'saw_forums_login_merge_dialog': 'bool',
|
|
67
67
|
'saw_free_credits_notification': 'bool',
|
|
68
|
-
'should_auto_verify': 'bool',
|
|
69
68
|
'user_metadata': 'str',
|
|
70
69
|
'username': 'str',
|
|
71
70
|
'website': 'str'
|
|
@@ -96,13 +95,12 @@ class V1UpdateUserRequest(object):
|
|
|
96
95
|
'saw_create_first_project_dialog': 'sawCreateFirstProjectDialog',
|
|
97
96
|
'saw_forums_login_merge_dialog': 'sawForumsLoginMergeDialog',
|
|
98
97
|
'saw_free_credits_notification': 'sawFreeCreditsNotification',
|
|
99
|
-
'should_auto_verify': 'shouldAutoVerify',
|
|
100
98
|
'user_metadata': 'userMetadata',
|
|
101
99
|
'username': 'username',
|
|
102
100
|
'website': 'website'
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
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,
|
|
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
|
|
106
104
|
"""V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
|
|
107
105
|
self._agree_to_terms_and_conditions = None
|
|
108
106
|
self._allow_credits_auto_replenish = None
|
|
@@ -128,7 +126,6 @@ class V1UpdateUserRequest(object):
|
|
|
128
126
|
self._saw_create_first_project_dialog = None
|
|
129
127
|
self._saw_forums_login_merge_dialog = None
|
|
130
128
|
self._saw_free_credits_notification = None
|
|
131
|
-
self._should_auto_verify = None
|
|
132
129
|
self._user_metadata = None
|
|
133
130
|
self._username = None
|
|
134
131
|
self._website = None
|
|
@@ -181,8 +178,6 @@ class V1UpdateUserRequest(object):
|
|
|
181
178
|
self.saw_forums_login_merge_dialog = saw_forums_login_merge_dialog
|
|
182
179
|
if saw_free_credits_notification is not None:
|
|
183
180
|
self.saw_free_credits_notification = saw_free_credits_notification
|
|
184
|
-
if should_auto_verify is not None:
|
|
185
|
-
self.should_auto_verify = should_auto_verify
|
|
186
181
|
if user_metadata is not None:
|
|
187
182
|
self.user_metadata = user_metadata
|
|
188
183
|
if username is not None:
|
|
@@ -694,27 +689,6 @@ class V1UpdateUserRequest(object):
|
|
|
694
689
|
|
|
695
690
|
self._saw_free_credits_notification = saw_free_credits_notification
|
|
696
691
|
|
|
697
|
-
@property
|
|
698
|
-
def should_auto_verify(self) -> 'bool':
|
|
699
|
-
"""Gets the should_auto_verify of this V1UpdateUserRequest. # noqa: E501
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
:return: The should_auto_verify of this V1UpdateUserRequest. # noqa: E501
|
|
703
|
-
:rtype: bool
|
|
704
|
-
"""
|
|
705
|
-
return self._should_auto_verify
|
|
706
|
-
|
|
707
|
-
@should_auto_verify.setter
|
|
708
|
-
def should_auto_verify(self, should_auto_verify: 'bool'):
|
|
709
|
-
"""Sets the should_auto_verify of this V1UpdateUserRequest.
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
:param should_auto_verify: The should_auto_verify of this V1UpdateUserRequest. # noqa: E501
|
|
713
|
-
:type: bool
|
|
714
|
-
"""
|
|
715
|
-
|
|
716
|
-
self._should_auto_verify = should_auto_verify
|
|
717
|
-
|
|
718
692
|
@property
|
|
719
693
|
def user_metadata(self) -> 'str':
|
|
720
694
|
"""Gets the user_metadata of this V1UpdateUserRequest. # noqa: E501
|