lightning-sdk 0.2.23__py3-none-any.whl → 0.2.24rc0__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 +5 -11
- 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 +12 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -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/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/models/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -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 +79 -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/update.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- 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 +27 -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_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_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -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_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
- 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_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_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +185 -29
- lightning_sdk/llm/llm.py +113 -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.24rc0.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +70 -57
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
|
@@ -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 V1KubernetesDirectV1(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
|
+
'kubeconfig': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'kubeconfig': 'kubeconfig'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, kubeconfig: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._kubeconfig = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if kubeconfig is not None:
|
|
56
|
+
self.kubeconfig = kubeconfig
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def kubeconfig(self) -> 'str':
|
|
60
|
+
"""Gets the kubeconfig of this V1KubernetesDirectV1. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The kubeconfig of this V1KubernetesDirectV1. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._kubeconfig
|
|
67
|
+
|
|
68
|
+
@kubeconfig.setter
|
|
69
|
+
def kubeconfig(self, kubeconfig: 'str'):
|
|
70
|
+
"""Sets the kubeconfig of this V1KubernetesDirectV1.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param kubeconfig: The kubeconfig of this V1KubernetesDirectV1. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._kubeconfig = kubeconfig
|
|
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(V1KubernetesDirectV1, 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: 'V1KubernetesDirectV1') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1KubernetesDirectV1):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1KubernetesDirectV1') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,149 @@
|
|
|
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 V1KubernetesDirectV1Status(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
|
+
'reason': 'str',
|
|
45
|
+
'state': 'V1RegionState'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'reason': 'reason',
|
|
50
|
+
'state': 'state'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, reason: 'str' =None, state: 'V1RegionState' =None): # noqa: E501
|
|
54
|
+
"""V1KubernetesDirectV1Status - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._reason = None
|
|
56
|
+
self._state = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if reason is not None:
|
|
59
|
+
self.reason = reason
|
|
60
|
+
if state is not None:
|
|
61
|
+
self.state = state
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def reason(self) -> 'str':
|
|
65
|
+
"""Gets the reason of this V1KubernetesDirectV1Status. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The reason of this V1KubernetesDirectV1Status. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._reason
|
|
72
|
+
|
|
73
|
+
@reason.setter
|
|
74
|
+
def reason(self, reason: 'str'):
|
|
75
|
+
"""Sets the reason of this V1KubernetesDirectV1Status.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param reason: The reason of this V1KubernetesDirectV1Status. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._reason = reason
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def state(self) -> 'V1RegionState':
|
|
86
|
+
"""Gets the state of this V1KubernetesDirectV1Status. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The state of this V1KubernetesDirectV1Status. # noqa: E501
|
|
90
|
+
:rtype: V1RegionState
|
|
91
|
+
"""
|
|
92
|
+
return self._state
|
|
93
|
+
|
|
94
|
+
@state.setter
|
|
95
|
+
def state(self, state: 'V1RegionState'):
|
|
96
|
+
"""Sets the state of this V1KubernetesDirectV1Status.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param state: The state of this V1KubernetesDirectV1Status. # noqa: E501
|
|
100
|
+
:type: V1RegionState
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._state = state
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(V1KubernetesDirectV1Status, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'V1KubernetesDirectV1Status') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1KubernetesDirectV1Status):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1KubernetesDirectV1Status') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -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 V1ListCloudyExpertsResponse(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
|
+
'experts': 'list[V1CloudyExpert]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'experts': 'experts'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, experts: 'list[V1CloudyExpert]' =None): # noqa: E501
|
|
52
|
+
"""V1ListCloudyExpertsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._experts = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if experts is not None:
|
|
56
|
+
self.experts = experts
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def experts(self) -> 'list[V1CloudyExpert]':
|
|
60
|
+
"""Gets the experts of this V1ListCloudyExpertsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The experts of this V1ListCloudyExpertsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1CloudyExpert]
|
|
65
|
+
"""
|
|
66
|
+
return self._experts
|
|
67
|
+
|
|
68
|
+
@experts.setter
|
|
69
|
+
def experts(self, experts: 'list[V1CloudyExpert]'):
|
|
70
|
+
"""Sets the experts of this V1ListCloudyExpertsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param experts: The experts of this V1ListCloudyExpertsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1CloudyExpert]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._experts = experts
|
|
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(V1ListCloudyExpertsResponse, 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: 'V1ListCloudyExpertsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListCloudyExpertsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListCloudyExpertsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -43,25 +43,30 @@ class V1LoginRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'api_key': 'str',
|
|
45
45
|
'duration': 'str',
|
|
46
|
+
'should_auto_verify': 'bool',
|
|
46
47
|
'username': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'api_key': 'apiKey',
|
|
51
52
|
'duration': 'duration',
|
|
53
|
+
'should_auto_verify': 'shouldAutoVerify',
|
|
52
54
|
'username': 'username'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, api_key: 'str' =None, duration: 'str' =None, username: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, api_key: 'str' =None, duration: 'str' =None, should_auto_verify: 'bool' =None, username: 'str' =None): # noqa: E501
|
|
56
58
|
"""V1LoginRequest - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._api_key = None
|
|
58
60
|
self._duration = None
|
|
61
|
+
self._should_auto_verify = None
|
|
59
62
|
self._username = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if api_key is not None:
|
|
62
65
|
self.api_key = api_key
|
|
63
66
|
if duration is not None:
|
|
64
67
|
self.duration = duration
|
|
68
|
+
if should_auto_verify is not None:
|
|
69
|
+
self.should_auto_verify = should_auto_verify
|
|
65
70
|
if username is not None:
|
|
66
71
|
self.username = username
|
|
67
72
|
|
|
@@ -107,6 +112,27 @@ class V1LoginRequest(object):
|
|
|
107
112
|
|
|
108
113
|
self._duration = duration
|
|
109
114
|
|
|
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
|
+
|
|
110
136
|
@property
|
|
111
137
|
def username(self) -> 'str':
|
|
112
138
|
"""Gets the username of this V1LoginRequest. # noqa: E501
|
|
@@ -47,7 +47,8 @@ class V1MagicLinkLoginRequest(object):
|
|
|
47
47
|
'experimentation_id': 'str',
|
|
48
48
|
'invite_code': 'str',
|
|
49
49
|
'redirect_url': 'str',
|
|
50
|
-
'referrer_params': 'str'
|
|
50
|
+
'referrer_params': 'str',
|
|
51
|
+
'should_auto_verify': 'bool'
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
attribute_map = {
|
|
@@ -57,10 +58,11 @@ class V1MagicLinkLoginRequest(object):
|
|
|
57
58
|
'experimentation_id': 'experimentationId',
|
|
58
59
|
'invite_code': 'inviteCode',
|
|
59
60
|
'redirect_url': 'redirectUrl',
|
|
60
|
-
'referrer_params': 'referrerParams'
|
|
61
|
+
'referrer_params': 'referrerParams',
|
|
62
|
+
'should_auto_verify': 'shouldAutoVerify'
|
|
61
63
|
}
|
|
62
64
|
|
|
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
|
|
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, should_auto_verify: 'bool' =None): # noqa: E501
|
|
64
66
|
"""V1MagicLinkLoginRequest - a model defined in Swagger""" # noqa: E501
|
|
65
67
|
self._collab_session_id = None
|
|
66
68
|
self._discounted_pro_plan = None
|
|
@@ -69,6 +71,7 @@ class V1MagicLinkLoginRequest(object):
|
|
|
69
71
|
self._invite_code = None
|
|
70
72
|
self._redirect_url = None
|
|
71
73
|
self._referrer_params = None
|
|
74
|
+
self._should_auto_verify = None
|
|
72
75
|
self.discriminator = None
|
|
73
76
|
if collab_session_id is not None:
|
|
74
77
|
self.collab_session_id = collab_session_id
|
|
@@ -84,6 +87,8 @@ class V1MagicLinkLoginRequest(object):
|
|
|
84
87
|
self.redirect_url = redirect_url
|
|
85
88
|
if referrer_params is not None:
|
|
86
89
|
self.referrer_params = referrer_params
|
|
90
|
+
if should_auto_verify is not None:
|
|
91
|
+
self.should_auto_verify = should_auto_verify
|
|
87
92
|
|
|
88
93
|
@property
|
|
89
94
|
def collab_session_id(self) -> 'str':
|
|
@@ -232,6 +237,27 @@ class V1MagicLinkLoginRequest(object):
|
|
|
232
237
|
|
|
233
238
|
self._referrer_params = referrer_params
|
|
234
239
|
|
|
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
|
+
|
|
235
261
|
def to_dict(self) -> dict:
|
|
236
262
|
"""Returns the model properties as a dict"""
|
|
237
263
|
result = {}
|
|
@@ -43,25 +43,30 @@ class V1MagicLinkLoginResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'auth_start_url': 'str',
|
|
45
45
|
'sso_enabled': 'bool',
|
|
46
|
+
'verified': 'bool',
|
|
46
47
|
'waitlisted': 'bool'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'auth_start_url': 'authStartUrl',
|
|
51
52
|
'sso_enabled': 'ssoEnabled',
|
|
53
|
+
'verified': 'verified',
|
|
52
54
|
'waitlisted': 'waitlisted'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, auth_start_url: 'str' =None, sso_enabled: 'bool' =None, waitlisted: 'bool' =None): # noqa: E501
|
|
57
|
+
def __init__(self, auth_start_url: 'str' =None, sso_enabled: 'bool' =None, verified: 'bool' =None, waitlisted: 'bool' =None): # noqa: E501
|
|
56
58
|
"""V1MagicLinkLoginResponse - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._auth_start_url = None
|
|
58
60
|
self._sso_enabled = None
|
|
61
|
+
self._verified = None
|
|
59
62
|
self._waitlisted = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if auth_start_url is not None:
|
|
62
65
|
self.auth_start_url = auth_start_url
|
|
63
66
|
if sso_enabled is not None:
|
|
64
67
|
self.sso_enabled = sso_enabled
|
|
68
|
+
if verified is not None:
|
|
69
|
+
self.verified = verified
|
|
65
70
|
if waitlisted is not None:
|
|
66
71
|
self.waitlisted = waitlisted
|
|
67
72
|
|
|
@@ -107,6 +112,27 @@ class V1MagicLinkLoginResponse(object):
|
|
|
107
112
|
|
|
108
113
|
self._sso_enabled = sso_enabled
|
|
109
114
|
|
|
115
|
+
@property
|
|
116
|
+
def verified(self) -> 'bool':
|
|
117
|
+
"""Gets the verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
121
|
+
:rtype: bool
|
|
122
|
+
"""
|
|
123
|
+
return self._verified
|
|
124
|
+
|
|
125
|
+
@verified.setter
|
|
126
|
+
def verified(self, verified: 'bool'):
|
|
127
|
+
"""Sets the verified of this V1MagicLinkLoginResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param verified: The verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
131
|
+
:type: bool
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._verified = verified
|
|
135
|
+
|
|
110
136
|
@property
|
|
111
137
|
def waitlisted(self) -> 'bool':
|
|
112
138
|
"""Gets the waitlisted of this V1MagicLinkLoginResponse. # noqa: E501
|
|
@@ -58,6 +58,7 @@ class V1Organization(object):
|
|
|
58
58
|
'created_at': 'datetime',
|
|
59
59
|
'default_machine_image_version': 'str',
|
|
60
60
|
'default_machine_type': 'str',
|
|
61
|
+
'default_project_id': 'str',
|
|
61
62
|
'description': 'str',
|
|
62
63
|
'disallow_aws_saas': 'bool',
|
|
63
64
|
'disallow_dgx_saas': 'bool',
|
|
@@ -108,6 +109,7 @@ class V1Organization(object):
|
|
|
108
109
|
'created_at': 'createdAt',
|
|
109
110
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
110
111
|
'default_machine_type': 'defaultMachineType',
|
|
112
|
+
'default_project_id': 'defaultProjectId',
|
|
111
113
|
'description': 'description',
|
|
112
114
|
'disallow_aws_saas': 'disallowAwsSaas',
|
|
113
115
|
'disallow_dgx_saas': 'disallowDgxSaas',
|
|
@@ -140,7 +142,7 @@ class V1Organization(object):
|
|
|
140
142
|
'workload_max_run_duration': 'workloadMaxRunDuration'
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
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_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =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, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, last_storage_overuse_notification_sent_at: 'datetime' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
145
|
+
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_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =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, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, last_storage_overuse_notification_sent_at: 'datetime' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
144
146
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
145
147
|
self._alerts_config = None
|
|
146
148
|
self._allow_budgeting = None
|
|
@@ -159,6 +161,7 @@ class V1Organization(object):
|
|
|
159
161
|
self._created_at = None
|
|
160
162
|
self._default_machine_image_version = None
|
|
161
163
|
self._default_machine_type = None
|
|
164
|
+
self._default_project_id = None
|
|
162
165
|
self._description = None
|
|
163
166
|
self._disallow_aws_saas = None
|
|
164
167
|
self._disallow_dgx_saas = None
|
|
@@ -224,6 +227,8 @@ class V1Organization(object):
|
|
|
224
227
|
self.default_machine_image_version = default_machine_image_version
|
|
225
228
|
if default_machine_type is not None:
|
|
226
229
|
self.default_machine_type = default_machine_type
|
|
230
|
+
if default_project_id is not None:
|
|
231
|
+
self.default_project_id = default_project_id
|
|
227
232
|
if description is not None:
|
|
228
233
|
self.description = description
|
|
229
234
|
if disallow_aws_saas is not None:
|
|
@@ -644,6 +649,27 @@ class V1Organization(object):
|
|
|
644
649
|
|
|
645
650
|
self._default_machine_type = default_machine_type
|
|
646
651
|
|
|
652
|
+
@property
|
|
653
|
+
def default_project_id(self) -> 'str':
|
|
654
|
+
"""Gets the default_project_id of this V1Organization. # noqa: E501
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
:return: The default_project_id of this V1Organization. # noqa: E501
|
|
658
|
+
:rtype: str
|
|
659
|
+
"""
|
|
660
|
+
return self._default_project_id
|
|
661
|
+
|
|
662
|
+
@default_project_id.setter
|
|
663
|
+
def default_project_id(self, default_project_id: 'str'):
|
|
664
|
+
"""Sets the default_project_id of this V1Organization.
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
:param default_project_id: The default_project_id of this V1Organization. # noqa: E501
|
|
668
|
+
:type: str
|
|
669
|
+
"""
|
|
670
|
+
|
|
671
|
+
self._default_project_id = default_project_id
|
|
672
|
+
|
|
647
673
|
@property
|
|
648
674
|
def description(self) -> 'str':
|
|
649
675
|
"""Gets the description of this V1Organization. # noqa: E501
|