lightning-sdk 0.2.23__py3-none-any.whl → 0.2.24rc1__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/base_studio_api.py +9 -2
- lightning_sdk/api/deployment_api.py +9 -9
- lightning_sdk/api/llm_api.py +23 -13
- lightning_sdk/api/pipeline_api.py +31 -11
- lightning_sdk/api/studio_api.py +4 -0
- lightning_sdk/base_studio.py +22 -6
- lightning_sdk/deployment/deployment.py +17 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -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/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_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_schedules_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- 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_instance_overprovisioning_spec.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- 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_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +317 -31
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/llm/llm.py +118 -115
- lightning_sdk/llm/public_assistants.json +8 -0
- lightning_sdk/pipeline/pipeline.py +17 -2
- lightning_sdk/pipeline/printer.py +11 -10
- lightning_sdk/pipeline/steps.py +4 -1
- lightning_sdk/pipeline/utils.py +29 -4
- lightning_sdk/studio.py +3 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/RECORD +83 -64
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
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 CreditsAutoreplenishBody(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
|
+
'allow_credits_auto_replenish': 'bool',
|
|
45
|
+
'auto_replenish_amount': 'str',
|
|
46
|
+
'auto_replenish_threshold': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
51
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
52
|
+
'auto_replenish_threshold': 'autoReplenishThreshold'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'str' =None, auto_replenish_threshold: 'str' =None): # noqa: E501
|
|
56
|
+
"""CreditsAutoreplenishBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._allow_credits_auto_replenish = None
|
|
58
|
+
self._auto_replenish_amount = None
|
|
59
|
+
self._auto_replenish_threshold = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if allow_credits_auto_replenish is not None:
|
|
62
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
63
|
+
if auto_replenish_amount is not None:
|
|
64
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
65
|
+
if auto_replenish_threshold is not None:
|
|
66
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
70
|
+
"""Gets the allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
|
|
74
|
+
:rtype: bool
|
|
75
|
+
"""
|
|
76
|
+
return self._allow_credits_auto_replenish
|
|
77
|
+
|
|
78
|
+
@allow_credits_auto_replenish.setter
|
|
79
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
80
|
+
"""Sets the allow_credits_auto_replenish of this CreditsAutoreplenishBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
|
|
84
|
+
:type: bool
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def auto_replenish_amount(self) -> 'str':
|
|
91
|
+
"""Gets the auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._auto_replenish_amount
|
|
98
|
+
|
|
99
|
+
@auto_replenish_amount.setter
|
|
100
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'str'):
|
|
101
|
+
"""Sets the auto_replenish_amount of this CreditsAutoreplenishBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param auto_replenish_amount: The auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def auto_replenish_threshold(self) -> 'str':
|
|
112
|
+
"""Gets the auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._auto_replenish_threshold
|
|
119
|
+
|
|
120
|
+
@auto_replenish_threshold.setter
|
|
121
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'str'):
|
|
122
|
+
"""Sets the auto_replenish_threshold of this CreditsAutoreplenishBody.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(CreditsAutoreplenishBody, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'CreditsAutoreplenishBody') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, CreditsAutoreplenishBody):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'CreditsAutoreplenishBody') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -0,0 +1,175 @@
|
|
|
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 CreditsAutoreplenishBody1(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
|
+
'allow_credits_auto_replenish': 'bool',
|
|
45
|
+
'auto_replenish_amount': 'str',
|
|
46
|
+
'auto_replenish_threshold': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
51
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
52
|
+
'auto_replenish_threshold': 'autoReplenishThreshold'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'str' =None, auto_replenish_threshold: 'str' =None): # noqa: E501
|
|
56
|
+
"""CreditsAutoreplenishBody1 - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._allow_credits_auto_replenish = None
|
|
58
|
+
self._auto_replenish_amount = None
|
|
59
|
+
self._auto_replenish_threshold = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if allow_credits_auto_replenish is not None:
|
|
62
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
63
|
+
if auto_replenish_amount is not None:
|
|
64
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
65
|
+
if auto_replenish_threshold is not None:
|
|
66
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
70
|
+
"""Gets the allow_credits_auto_replenish of this CreditsAutoreplenishBody1. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The allow_credits_auto_replenish of this CreditsAutoreplenishBody1. # noqa: E501
|
|
74
|
+
:rtype: bool
|
|
75
|
+
"""
|
|
76
|
+
return self._allow_credits_auto_replenish
|
|
77
|
+
|
|
78
|
+
@allow_credits_auto_replenish.setter
|
|
79
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
80
|
+
"""Sets the allow_credits_auto_replenish of this CreditsAutoreplenishBody1.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this CreditsAutoreplenishBody1. # noqa: E501
|
|
84
|
+
:type: bool
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def auto_replenish_amount(self) -> 'str':
|
|
91
|
+
"""Gets the auto_replenish_amount of this CreditsAutoreplenishBody1. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The auto_replenish_amount of this CreditsAutoreplenishBody1. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._auto_replenish_amount
|
|
98
|
+
|
|
99
|
+
@auto_replenish_amount.setter
|
|
100
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'str'):
|
|
101
|
+
"""Sets the auto_replenish_amount of this CreditsAutoreplenishBody1.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param auto_replenish_amount: The auto_replenish_amount of this CreditsAutoreplenishBody1. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def auto_replenish_threshold(self) -> 'str':
|
|
112
|
+
"""Gets the auto_replenish_threshold of this CreditsAutoreplenishBody1. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The auto_replenish_threshold of this CreditsAutoreplenishBody1. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._auto_replenish_threshold
|
|
119
|
+
|
|
120
|
+
@auto_replenish_threshold.setter
|
|
121
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'str'):
|
|
122
|
+
"""Sets the auto_replenish_threshold of this CreditsAutoreplenishBody1.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this CreditsAutoreplenishBody1. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(CreditsAutoreplenishBody1, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'CreditsAutoreplenishBody1') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, CreditsAutoreplenishBody1):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'CreditsAutoreplenishBody1') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -42,6 +42,8 @@ class Externalv1UserStatus(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'acked_storage_violation': 'bool',
|
|
45
|
+
'auto_verify_reason': 'str',
|
|
46
|
+
'auto_verify_response': 'bool',
|
|
45
47
|
'completed_project_onboarding': 'bool',
|
|
46
48
|
'completed_signup': 'bool',
|
|
47
49
|
'has_received_free_months': 'bool',
|
|
@@ -52,6 +54,8 @@ class Externalv1UserStatus(object):
|
|
|
52
54
|
|
|
53
55
|
attribute_map = {
|
|
54
56
|
'acked_storage_violation': 'ackedStorageViolation',
|
|
57
|
+
'auto_verify_reason': 'autoVerifyReason',
|
|
58
|
+
'auto_verify_response': 'autoVerifyResponse',
|
|
55
59
|
'completed_project_onboarding': 'completedProjectOnboarding',
|
|
56
60
|
'completed_signup': 'completedSignup',
|
|
57
61
|
'has_received_free_months': 'hasReceivedFreeMonths',
|
|
@@ -60,9 +64,11 @@ class Externalv1UserStatus(object):
|
|
|
60
64
|
'verified_at': 'verifiedAt'
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
def __init__(self, acked_storage_violation: 'bool' =None, completed_project_onboarding: 'bool' =None, completed_signup: 'bool' =None, has_received_free_months: 'bool' =None, installed_grid: 'bool' =None, verified: 'bool' =None, verified_at: 'datetime' =None): # noqa: E501
|
|
67
|
+
def __init__(self, acked_storage_violation: 'bool' =None, auto_verify_reason: 'str' =None, auto_verify_response: 'bool' =None, completed_project_onboarding: 'bool' =None, completed_signup: 'bool' =None, has_received_free_months: 'bool' =None, installed_grid: 'bool' =None, verified: 'bool' =None, verified_at: 'datetime' =None): # noqa: E501
|
|
64
68
|
"""Externalv1UserStatus - a model defined in Swagger""" # noqa: E501
|
|
65
69
|
self._acked_storage_violation = None
|
|
70
|
+
self._auto_verify_reason = None
|
|
71
|
+
self._auto_verify_response = None
|
|
66
72
|
self._completed_project_onboarding = None
|
|
67
73
|
self._completed_signup = None
|
|
68
74
|
self._has_received_free_months = None
|
|
@@ -72,6 +78,10 @@ class Externalv1UserStatus(object):
|
|
|
72
78
|
self.discriminator = None
|
|
73
79
|
if acked_storage_violation is not None:
|
|
74
80
|
self.acked_storage_violation = acked_storage_violation
|
|
81
|
+
if auto_verify_reason is not None:
|
|
82
|
+
self.auto_verify_reason = auto_verify_reason
|
|
83
|
+
if auto_verify_response is not None:
|
|
84
|
+
self.auto_verify_response = auto_verify_response
|
|
75
85
|
if completed_project_onboarding is not None:
|
|
76
86
|
self.completed_project_onboarding = completed_project_onboarding
|
|
77
87
|
if completed_signup is not None:
|
|
@@ -106,6 +116,48 @@ class Externalv1UserStatus(object):
|
|
|
106
116
|
|
|
107
117
|
self._acked_storage_violation = acked_storage_violation
|
|
108
118
|
|
|
119
|
+
@property
|
|
120
|
+
def auto_verify_reason(self) -> 'str':
|
|
121
|
+
"""Gets the auto_verify_reason of this Externalv1UserStatus. # noqa: E501
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:return: The auto_verify_reason of this Externalv1UserStatus. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._auto_verify_reason
|
|
128
|
+
|
|
129
|
+
@auto_verify_reason.setter
|
|
130
|
+
def auto_verify_reason(self, auto_verify_reason: 'str'):
|
|
131
|
+
"""Sets the auto_verify_reason of this Externalv1UserStatus.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param auto_verify_reason: The auto_verify_reason of this Externalv1UserStatus. # noqa: E501
|
|
135
|
+
:type: str
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
self._auto_verify_reason = auto_verify_reason
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def auto_verify_response(self) -> 'bool':
|
|
142
|
+
"""Gets the auto_verify_response of this Externalv1UserStatus. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The auto_verify_response of this Externalv1UserStatus. # noqa: E501
|
|
146
|
+
:rtype: bool
|
|
147
|
+
"""
|
|
148
|
+
return self._auto_verify_response
|
|
149
|
+
|
|
150
|
+
@auto_verify_response.setter
|
|
151
|
+
def auto_verify_response(self, auto_verify_response: 'bool'):
|
|
152
|
+
"""Sets the auto_verify_response of this Externalv1UserStatus.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param auto_verify_response: The auto_verify_response of this Externalv1UserStatus. # noqa: E501
|
|
156
|
+
:type: bool
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._auto_verify_response = auto_verify_response
|
|
160
|
+
|
|
109
161
|
@property
|
|
110
162
|
def completed_project_onboarding(self) -> 'bool':
|
|
111
163
|
"""Gets the completed_project_onboarding of this Externalv1UserStatus. # noqa: E501
|
|
@@ -55,6 +55,7 @@ class OrgsIdBody(object):
|
|
|
55
55
|
'auto_replenish_threshold': 'float',
|
|
56
56
|
'auto_switch_machine': 'bool',
|
|
57
57
|
'default_machine_type': 'str',
|
|
58
|
+
'default_project_id': 'str',
|
|
58
59
|
'description': 'str',
|
|
59
60
|
'disallow_aws_saas': 'bool',
|
|
60
61
|
'disallow_dgx_saas': 'bool',
|
|
@@ -92,6 +93,7 @@ class OrgsIdBody(object):
|
|
|
92
93
|
'auto_replenish_threshold': 'autoReplenishThreshold',
|
|
93
94
|
'auto_switch_machine': 'autoSwitchMachine',
|
|
94
95
|
'default_machine_type': 'defaultMachineType',
|
|
96
|
+
'default_project_id': 'defaultProjectId',
|
|
95
97
|
'description': 'description',
|
|
96
98
|
'disallow_aws_saas': 'disallowAwsSaas',
|
|
97
99
|
'disallow_dgx_saas': 'disallowDgxSaas',
|
|
@@ -114,7 +116,7 @@ class OrgsIdBody(object):
|
|
|
114
116
|
'workload_max_run_duration': 'workloadMaxRunDuration'
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, default_machine_type: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
119
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, default_machine_type: 'str' =None, default_project_id: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
118
120
|
"""OrgsIdBody - a model defined in Swagger""" # noqa: E501
|
|
119
121
|
self._alerts_config = None
|
|
120
122
|
self._allow_budgeting = None
|
|
@@ -130,6 +132,7 @@ class OrgsIdBody(object):
|
|
|
130
132
|
self._auto_replenish_threshold = None
|
|
131
133
|
self._auto_switch_machine = None
|
|
132
134
|
self._default_machine_type = None
|
|
135
|
+
self._default_project_id = None
|
|
133
136
|
self._description = None
|
|
134
137
|
self._disallow_aws_saas = None
|
|
135
138
|
self._disallow_dgx_saas = None
|
|
@@ -179,6 +182,8 @@ class OrgsIdBody(object):
|
|
|
179
182
|
self.auto_switch_machine = auto_switch_machine
|
|
180
183
|
if default_machine_type is not None:
|
|
181
184
|
self.default_machine_type = default_machine_type
|
|
185
|
+
if default_project_id is not None:
|
|
186
|
+
self.default_project_id = default_project_id
|
|
182
187
|
if description is not None:
|
|
183
188
|
self.description = description
|
|
184
189
|
if disallow_aws_saas is not None:
|
|
@@ -514,6 +519,27 @@ class OrgsIdBody(object):
|
|
|
514
519
|
|
|
515
520
|
self._default_machine_type = default_machine_type
|
|
516
521
|
|
|
522
|
+
@property
|
|
523
|
+
def default_project_id(self) -> 'str':
|
|
524
|
+
"""Gets the default_project_id of this OrgsIdBody. # noqa: E501
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
:return: The default_project_id of this OrgsIdBody. # noqa: E501
|
|
528
|
+
:rtype: str
|
|
529
|
+
"""
|
|
530
|
+
return self._default_project_id
|
|
531
|
+
|
|
532
|
+
@default_project_id.setter
|
|
533
|
+
def default_project_id(self, default_project_id: 'str'):
|
|
534
|
+
"""Sets the default_project_id of this OrgsIdBody.
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
:param default_project_id: The default_project_id of this OrgsIdBody. # noqa: E501
|
|
538
|
+
:type: str
|
|
539
|
+
"""
|
|
540
|
+
|
|
541
|
+
self._default_project_id = default_project_id
|
|
542
|
+
|
|
517
543
|
@property
|
|
518
544
|
def description(self) -> 'str':
|
|
519
545
|
"""Gets the description of this OrgsIdBody. # 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 PipelinesIdBody1(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
|
+
'skipped_steps': 'list[str]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'skipped_steps': 'skippedSteps'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, skipped_steps: 'list[str]' =None): # noqa: E501
|
|
52
|
+
"""PipelinesIdBody1 - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._skipped_steps = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if skipped_steps is not None:
|
|
56
|
+
self.skipped_steps = skipped_steps
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def skipped_steps(self) -> 'list[str]':
|
|
60
|
+
"""Gets the skipped_steps of this PipelinesIdBody1. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The skipped_steps of this PipelinesIdBody1. # noqa: E501
|
|
64
|
+
:rtype: list[str]
|
|
65
|
+
"""
|
|
66
|
+
return self._skipped_steps
|
|
67
|
+
|
|
68
|
+
@skipped_steps.setter
|
|
69
|
+
def skipped_steps(self, skipped_steps: 'list[str]'):
|
|
70
|
+
"""Sets the skipped_steps of this PipelinesIdBody1.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param skipped_steps: The skipped_steps of this PipelinesIdBody1. # noqa: E501
|
|
74
|
+
:type: list[str]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._skipped_steps = skipped_steps
|
|
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(PipelinesIdBody1, 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: 'PipelinesIdBody1') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, PipelinesIdBody1):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'PipelinesIdBody1') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|