lightning-sdk 2025.8.26__py3-none-any.whl → 2025.9.2__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/teamspace_api.py +2 -0
- lightning_sdk/cli/studio/create.py +2 -1
- lightning_sdk/cli/studio/list.py +25 -10
- lightning_sdk/cli/studio/start.py +3 -2
- lightning_sdk/cli/studio/stop.py +2 -1
- lightning_sdk/cli/studio/switch.py +2 -1
- lightning_sdk/cli/utils/richt_print.py +24 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_total_usage_metrics_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
- lightning_sdk/studio.py +1 -0
- lightning_sdk/utils/resolve.py +11 -0
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.dist-info}/RECORD +42 -31
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.26.dist-info → lightning_sdk-2025.9.2.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 V1GetLatestModelMetricsResponse(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
|
+
'metrics': 'list[V1ModelMetrics]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'metrics': 'metrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, metrics: 'list[V1ModelMetrics]' =None): # noqa: E501
|
|
52
|
+
"""V1GetLatestModelMetricsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._metrics = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if metrics is not None:
|
|
56
|
+
self.metrics = metrics
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def metrics(self) -> 'list[V1ModelMetrics]':
|
|
60
|
+
"""Gets the metrics of this V1GetLatestModelMetricsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The metrics of this V1GetLatestModelMetricsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1ModelMetrics]
|
|
65
|
+
"""
|
|
66
|
+
return self._metrics
|
|
67
|
+
|
|
68
|
+
@metrics.setter
|
|
69
|
+
def metrics(self, metrics: 'list[V1ModelMetrics]'):
|
|
70
|
+
"""Sets the metrics of this V1GetLatestModelMetricsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param metrics: The metrics of this V1GetLatestModelMetricsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1ModelMetrics]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._metrics = metrics
|
|
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(V1GetLatestModelMetricsResponse, 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: 'V1GetLatestModelMetricsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GetLatestModelMetricsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GetLatestModelMetricsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
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 V1GetModelMetricsResponse(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
|
+
'daily_metrics': 'list[V1DailyModelMetrics]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'daily_metrics': 'dailyMetrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, daily_metrics: 'list[V1DailyModelMetrics]' =None): # noqa: E501
|
|
52
|
+
"""V1GetModelMetricsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._daily_metrics = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if daily_metrics is not None:
|
|
56
|
+
self.daily_metrics = daily_metrics
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def daily_metrics(self) -> 'list[V1DailyModelMetrics]':
|
|
60
|
+
"""Gets the daily_metrics of this V1GetModelMetricsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The daily_metrics of this V1GetModelMetricsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1DailyModelMetrics]
|
|
65
|
+
"""
|
|
66
|
+
return self._daily_metrics
|
|
67
|
+
|
|
68
|
+
@daily_metrics.setter
|
|
69
|
+
def daily_metrics(self, daily_metrics: 'list[V1DailyModelMetrics]'):
|
|
70
|
+
"""Sets the daily_metrics of this V1GetModelMetricsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param daily_metrics: The daily_metrics of this V1GetModelMetricsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1DailyModelMetrics]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._daily_metrics = daily_metrics
|
|
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(V1GetModelMetricsResponse, 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: 'V1GetModelMetricsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GetModelMetricsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GetModelMetricsResponse') -> 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 V1GetModelTotalUsageMetricsResponse(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
|
+
'conversations': 'str',
|
|
45
|
+
'tokens': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'conversations': 'Conversations',
|
|
50
|
+
'tokens': 'Tokens'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, conversations: 'str' =None, tokens: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1GetModelTotalUsageMetricsResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._conversations = None
|
|
56
|
+
self._tokens = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if conversations is not None:
|
|
59
|
+
self.conversations = conversations
|
|
60
|
+
if tokens is not None:
|
|
61
|
+
self.tokens = tokens
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def conversations(self) -> 'str':
|
|
65
|
+
"""Gets the conversations of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The conversations of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._conversations
|
|
72
|
+
|
|
73
|
+
@conversations.setter
|
|
74
|
+
def conversations(self, conversations: 'str'):
|
|
75
|
+
"""Sets the conversations of this V1GetModelTotalUsageMetricsResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param conversations: The conversations of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._conversations = conversations
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def tokens(self) -> 'str':
|
|
86
|
+
"""Gets the tokens of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The tokens of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._tokens
|
|
93
|
+
|
|
94
|
+
@tokens.setter
|
|
95
|
+
def tokens(self, tokens: 'str'):
|
|
96
|
+
"""Sets the tokens of this V1GetModelTotalUsageMetricsResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param tokens: The tokens of this V1GetModelTotalUsageMetricsResponse. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._tokens = tokens
|
|
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(V1GetModelTotalUsageMetricsResponse, 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: 'V1GetModelTotalUsageMetricsResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1GetModelTotalUsageMetricsResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1GetModelTotalUsageMetricsResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -0,0 +1,177 @@
|
|
|
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 V1GuestLoginRequest(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
|
+
'api_key': 'str',
|
|
45
|
+
'collab_session_id': 'str',
|
|
46
|
+
'referrer_params': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'api_key': 'apiKey',
|
|
51
|
+
'collab_session_id': 'collabSessionId',
|
|
52
|
+
'referrer_params': 'referrerParams'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, api_key: 'str' =None, collab_session_id: 'str' =None, referrer_params: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1GuestLoginRequest - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._api_key = None
|
|
58
|
+
self._collab_session_id = None
|
|
59
|
+
self._referrer_params = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if api_key is not None:
|
|
62
|
+
self.api_key = api_key
|
|
63
|
+
if collab_session_id is not None:
|
|
64
|
+
self.collab_session_id = collab_session_id
|
|
65
|
+
if referrer_params is not None:
|
|
66
|
+
self.referrer_params = referrer_params
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def api_key(self) -> 'str':
|
|
70
|
+
"""Gets the api_key of this V1GuestLoginRequest. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The api_key of this V1GuestLoginRequest. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._api_key
|
|
77
|
+
|
|
78
|
+
@api_key.setter
|
|
79
|
+
def api_key(self, api_key: 'str'):
|
|
80
|
+
"""Sets the api_key of this V1GuestLoginRequest.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param api_key: The api_key of this V1GuestLoginRequest. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._api_key = api_key
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def collab_session_id(self) -> 'str':
|
|
91
|
+
"""Gets the collab_session_id of this V1GuestLoginRequest. # noqa: E501
|
|
92
|
+
|
|
93
|
+
Optional ID to associate the guest with a specific shared session. # noqa: E501
|
|
94
|
+
|
|
95
|
+
:return: The collab_session_id of this V1GuestLoginRequest. # noqa: E501
|
|
96
|
+
:rtype: str
|
|
97
|
+
"""
|
|
98
|
+
return self._collab_session_id
|
|
99
|
+
|
|
100
|
+
@collab_session_id.setter
|
|
101
|
+
def collab_session_id(self, collab_session_id: 'str'):
|
|
102
|
+
"""Sets the collab_session_id of this V1GuestLoginRequest.
|
|
103
|
+
|
|
104
|
+
Optional ID to associate the guest with a specific shared session. # noqa: E501
|
|
105
|
+
|
|
106
|
+
:param collab_session_id: The collab_session_id of this V1GuestLoginRequest. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._collab_session_id = collab_session_id
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def referrer_params(self) -> 'str':
|
|
114
|
+
"""Gets the referrer_params of this V1GuestLoginRequest. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The referrer_params of this V1GuestLoginRequest. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._referrer_params
|
|
121
|
+
|
|
122
|
+
@referrer_params.setter
|
|
123
|
+
def referrer_params(self, referrer_params: 'str'):
|
|
124
|
+
"""Sets the referrer_params of this V1GuestLoginRequest.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param referrer_params: The referrer_params of this V1GuestLoginRequest. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._referrer_params = referrer_params
|
|
132
|
+
|
|
133
|
+
def to_dict(self) -> dict:
|
|
134
|
+
"""Returns the model properties as a dict"""
|
|
135
|
+
result = {}
|
|
136
|
+
|
|
137
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
138
|
+
value = getattr(self, attr)
|
|
139
|
+
if isinstance(value, list):
|
|
140
|
+
result[attr] = list(map(
|
|
141
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
142
|
+
value
|
|
143
|
+
))
|
|
144
|
+
elif hasattr(value, "to_dict"):
|
|
145
|
+
result[attr] = value.to_dict()
|
|
146
|
+
elif isinstance(value, dict):
|
|
147
|
+
result[attr] = dict(map(
|
|
148
|
+
lambda item: (item[0], item[1].to_dict())
|
|
149
|
+
if hasattr(item[1], "to_dict") else item,
|
|
150
|
+
value.items()
|
|
151
|
+
))
|
|
152
|
+
else:
|
|
153
|
+
result[attr] = value
|
|
154
|
+
if issubclass(V1GuestLoginRequest, dict):
|
|
155
|
+
for key, value in self.items():
|
|
156
|
+
result[key] = value
|
|
157
|
+
|
|
158
|
+
return result
|
|
159
|
+
|
|
160
|
+
def to_str(self) -> str:
|
|
161
|
+
"""Returns the string representation of the model"""
|
|
162
|
+
return pprint.pformat(self.to_dict())
|
|
163
|
+
|
|
164
|
+
def __repr__(self) -> str:
|
|
165
|
+
"""For `print` and `pprint`"""
|
|
166
|
+
return self.to_str()
|
|
167
|
+
|
|
168
|
+
def __eq__(self, other: 'V1GuestLoginRequest') -> bool:
|
|
169
|
+
"""Returns true if both objects are equal"""
|
|
170
|
+
if not isinstance(other, V1GuestLoginRequest):
|
|
171
|
+
return False
|
|
172
|
+
|
|
173
|
+
return self.__dict__ == other.__dict__
|
|
174
|
+
|
|
175
|
+
def __ne__(self, other: 'V1GuestLoginRequest') -> bool:
|
|
176
|
+
"""Returns true if both objects are not equal"""
|
|
177
|
+
return not self == other
|