lightning-sdk 0.1.51__py3-none-any.whl → 0.1.53__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/ai_hub.py +16 -27
- lightning_sdk/api/ai_hub_api.py +7 -1
- lightning_sdk/cli/run.py +25 -20
- lightning_sdk/job/base.py +16 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
- lightning_sdk/mmt/mmt.py +1 -1
- lightning_sdk/studio.py +68 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/RECORD +44 -30
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/top_level.txt +0 -0
|
@@ -43,20 +43,23 @@ class V1ClusterTaggingOptions(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'custom_tags': 'list[V1ClusterResourceTag]',
|
|
45
45
|
'tag_instances_with_teamspace_name': 'bool',
|
|
46
|
-
'tag_instances_with_username': 'bool'
|
|
46
|
+
'tag_instances_with_username': 'bool',
|
|
47
|
+
'tag_instances_with_workload_name': 'bool'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'custom_tags': 'customTags',
|
|
51
52
|
'tag_instances_with_teamspace_name': 'tagInstancesWithTeamspaceName',
|
|
52
|
-
'tag_instances_with_username': 'tagInstancesWithUsername'
|
|
53
|
+
'tag_instances_with_username': 'tagInstancesWithUsername',
|
|
54
|
+
'tag_instances_with_workload_name': 'tagInstancesWithWorkloadName'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None): # noqa: E501
|
|
57
|
+
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
|
|
56
58
|
"""V1ClusterTaggingOptions - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._custom_tags = None
|
|
58
60
|
self._tag_instances_with_teamspace_name = None
|
|
59
61
|
self._tag_instances_with_username = None
|
|
62
|
+
self._tag_instances_with_workload_name = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if custom_tags is not None:
|
|
62
65
|
self.custom_tags = custom_tags
|
|
@@ -64,6 +67,8 @@ class V1ClusterTaggingOptions(object):
|
|
|
64
67
|
self.tag_instances_with_teamspace_name = tag_instances_with_teamspace_name
|
|
65
68
|
if tag_instances_with_username is not None:
|
|
66
69
|
self.tag_instances_with_username = tag_instances_with_username
|
|
70
|
+
if tag_instances_with_workload_name is not None:
|
|
71
|
+
self.tag_instances_with_workload_name = tag_instances_with_workload_name
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def custom_tags(self) -> 'list[V1ClusterResourceTag]':
|
|
@@ -128,6 +133,27 @@ class V1ClusterTaggingOptions(object):
|
|
|
128
133
|
|
|
129
134
|
self._tag_instances_with_username = tag_instances_with_username
|
|
130
135
|
|
|
136
|
+
@property
|
|
137
|
+
def tag_instances_with_workload_name(self) -> 'bool':
|
|
138
|
+
"""Gets the tag_instances_with_workload_name of this V1ClusterTaggingOptions. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The tag_instances_with_workload_name of this V1ClusterTaggingOptions. # noqa: E501
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
144
|
+
return self._tag_instances_with_workload_name
|
|
145
|
+
|
|
146
|
+
@tag_instances_with_workload_name.setter
|
|
147
|
+
def tag_instances_with_workload_name(self, tag_instances_with_workload_name: 'bool'):
|
|
148
|
+
"""Sets the tag_instances_with_workload_name of this V1ClusterTaggingOptions.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param tag_instances_with_workload_name: The tag_instances_with_workload_name of this V1ClusterTaggingOptions. # noqa: E501
|
|
152
|
+
:type: bool
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._tag_instances_with_workload_name = tag_instances_with_workload_name
|
|
156
|
+
|
|
131
157
|
def to_dict(self) -> dict:
|
|
132
158
|
"""Returns the model properties as a dict"""
|
|
133
159
|
result = {}
|
|
@@ -0,0 +1,227 @@
|
|
|
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 V1ClusterUsageRestriction(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
|
+
'cluster_id': 'str',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'instance_type': 'str',
|
|
47
|
+
'max_instances': 'int',
|
|
48
|
+
'restriction_type': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'cluster_id': 'clusterId',
|
|
53
|
+
'id': 'id',
|
|
54
|
+
'instance_type': 'instanceType',
|
|
55
|
+
'max_instances': 'maxInstances',
|
|
56
|
+
'restriction_type': 'restrictionType'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, id: 'str' =None, instance_type: 'str' =None, max_instances: 'int' =None, restriction_type: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1ClusterUsageRestriction - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._cluster_id = None
|
|
62
|
+
self._id = None
|
|
63
|
+
self._instance_type = None
|
|
64
|
+
self._max_instances = None
|
|
65
|
+
self._restriction_type = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if cluster_id is not None:
|
|
68
|
+
self.cluster_id = cluster_id
|
|
69
|
+
if id is not None:
|
|
70
|
+
self.id = id
|
|
71
|
+
if instance_type is not None:
|
|
72
|
+
self.instance_type = instance_type
|
|
73
|
+
if max_instances is not None:
|
|
74
|
+
self.max_instances = max_instances
|
|
75
|
+
if restriction_type is not None:
|
|
76
|
+
self.restriction_type = restriction_type
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cluster_id(self) -> 'str':
|
|
80
|
+
"""Gets the cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._cluster_id
|
|
87
|
+
|
|
88
|
+
@cluster_id.setter
|
|
89
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
90
|
+
"""Sets the cluster_id of this V1ClusterUsageRestriction.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param cluster_id: The cluster_id of this V1ClusterUsageRestriction. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._cluster_id = cluster_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def id(self) -> 'str':
|
|
101
|
+
"""Gets the id of this V1ClusterUsageRestriction. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The id of this V1ClusterUsageRestriction. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._id
|
|
108
|
+
|
|
109
|
+
@id.setter
|
|
110
|
+
def id(self, id: 'str'):
|
|
111
|
+
"""Sets the id of this V1ClusterUsageRestriction.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param id: The id of this V1ClusterUsageRestriction. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._id = id
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def instance_type(self) -> 'str':
|
|
122
|
+
"""Gets the instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._instance_type
|
|
129
|
+
|
|
130
|
+
@instance_type.setter
|
|
131
|
+
def instance_type(self, instance_type: 'str'):
|
|
132
|
+
"""Sets the instance_type of this V1ClusterUsageRestriction.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param instance_type: The instance_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._instance_type = instance_type
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def max_instances(self) -> 'int':
|
|
143
|
+
"""Gets the max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
147
|
+
:rtype: int
|
|
148
|
+
"""
|
|
149
|
+
return self._max_instances
|
|
150
|
+
|
|
151
|
+
@max_instances.setter
|
|
152
|
+
def max_instances(self, max_instances: 'int'):
|
|
153
|
+
"""Sets the max_instances of this V1ClusterUsageRestriction.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param max_instances: The max_instances of this V1ClusterUsageRestriction. # noqa: E501
|
|
157
|
+
:type: int
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._max_instances = max_instances
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def restriction_type(self) -> 'str':
|
|
164
|
+
"""Gets the restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._restriction_type
|
|
171
|
+
|
|
172
|
+
@restriction_type.setter
|
|
173
|
+
def restriction_type(self, restriction_type: 'str'):
|
|
174
|
+
"""Sets the restriction_type of this V1ClusterUsageRestriction.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param restriction_type: The restriction_type of this V1ClusterUsageRestriction. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._restriction_type = restriction_type
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(V1ClusterUsageRestriction, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'V1ClusterUsageRestriction') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1ClusterUsageRestriction):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1ClusterUsageRestriction') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -0,0 +1,102 @@
|
|
|
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 V1ContactAssistantOwnerReason(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
BUG = "BUG"
|
|
41
|
+
"""
|
|
42
|
+
Attributes:
|
|
43
|
+
swagger_types (dict): The key is attribute name
|
|
44
|
+
and the value is attribute type.
|
|
45
|
+
attribute_map (dict): The key is attribute name
|
|
46
|
+
and the value is json key in definition.
|
|
47
|
+
"""
|
|
48
|
+
swagger_types = {
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
def __init__(self): # noqa: E501
|
|
55
|
+
"""V1ContactAssistantOwnerReason - a model defined in Swagger""" # noqa: E501
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> dict:
|
|
59
|
+
"""Returns the model properties as a dict"""
|
|
60
|
+
result = {}
|
|
61
|
+
|
|
62
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
63
|
+
value = getattr(self, attr)
|
|
64
|
+
if isinstance(value, list):
|
|
65
|
+
result[attr] = list(map(
|
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
67
|
+
value
|
|
68
|
+
))
|
|
69
|
+
elif hasattr(value, "to_dict"):
|
|
70
|
+
result[attr] = value.to_dict()
|
|
71
|
+
elif isinstance(value, dict):
|
|
72
|
+
result[attr] = dict(map(
|
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
|
75
|
+
value.items()
|
|
76
|
+
))
|
|
77
|
+
else:
|
|
78
|
+
result[attr] = value
|
|
79
|
+
if issubclass(V1ContactAssistantOwnerReason, dict):
|
|
80
|
+
for key, value in self.items():
|
|
81
|
+
result[key] = value
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def to_str(self) -> str:
|
|
86
|
+
"""Returns the string representation of the model"""
|
|
87
|
+
return pprint.pformat(self.to_dict())
|
|
88
|
+
|
|
89
|
+
def __repr__(self) -> str:
|
|
90
|
+
"""For `print` and `pprint`"""
|
|
91
|
+
return self.to_str()
|
|
92
|
+
|
|
93
|
+
def __eq__(self, other: 'V1ContactAssistantOwnerReason') -> bool:
|
|
94
|
+
"""Returns true if both objects are equal"""
|
|
95
|
+
if not isinstance(other, V1ContactAssistantOwnerReason):
|
|
96
|
+
return False
|
|
97
|
+
|
|
98
|
+
return self.__dict__ == other.__dict__
|
|
99
|
+
|
|
100
|
+
def __ne__(self, other: 'V1ContactAssistantOwnerReason') -> bool:
|
|
101
|
+
"""Returns true if both objects are not equal"""
|
|
102
|
+
return not self == other
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1ContactAssistantOwnerResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1ContactAssistantOwnerResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1ContactAssistantOwnerResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1ContactAssistantOwnerResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ContactAssistantOwnerResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ContactAssistantOwnerResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1DeleteClusterUsageRestrictionResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1DeleteClusterUsageRestrictionResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1DeleteClusterUsageRestrictionResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1DeleteClusterUsageRestrictionResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteClusterUsageRestrictionResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteClusterUsageRestrictionResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -44,6 +44,7 @@ class V1DeploymentAPI(object):
|
|
|
44
44
|
'body': 'V1Body',
|
|
45
45
|
'description': 'str',
|
|
46
46
|
'headers': 'list[V1Header]',
|
|
47
|
+
'id': 'str',
|
|
47
48
|
'method': 'str',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'path': 'str',
|
|
@@ -54,17 +55,19 @@ class V1DeploymentAPI(object):
|
|
|
54
55
|
'body': 'body',
|
|
55
56
|
'description': 'description',
|
|
56
57
|
'headers': 'headers',
|
|
58
|
+
'id': 'id',
|
|
57
59
|
'method': 'method',
|
|
58
60
|
'name': 'name',
|
|
59
61
|
'path': 'path',
|
|
60
62
|
'_query_params': 'queryParams'
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
65
|
+
def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, id: 'str' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
|
|
64
66
|
"""V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
|
|
65
67
|
self._body = None
|
|
66
68
|
self._description = None
|
|
67
69
|
self._headers = None
|
|
70
|
+
self._id = None
|
|
68
71
|
self._method = None
|
|
69
72
|
self._name = None
|
|
70
73
|
self._path = None
|
|
@@ -76,6 +79,8 @@ class V1DeploymentAPI(object):
|
|
|
76
79
|
self.description = description
|
|
77
80
|
if headers is not None:
|
|
78
81
|
self.headers = headers
|
|
82
|
+
if id is not None:
|
|
83
|
+
self.id = id
|
|
79
84
|
if method is not None:
|
|
80
85
|
self.method = method
|
|
81
86
|
if name is not None:
|
|
@@ -148,6 +153,27 @@ class V1DeploymentAPI(object):
|
|
|
148
153
|
|
|
149
154
|
self._headers = headers
|
|
150
155
|
|
|
156
|
+
@property
|
|
157
|
+
def id(self) -> 'str':
|
|
158
|
+
"""Gets the id of this V1DeploymentAPI. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The id of this V1DeploymentAPI. # noqa: E501
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._id
|
|
165
|
+
|
|
166
|
+
@id.setter
|
|
167
|
+
def id(self, id: 'str'):
|
|
168
|
+
"""Sets the id of this V1DeploymentAPI.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param id: The id of this V1DeploymentAPI. # noqa: E501
|
|
172
|
+
:type: str
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._id = id
|
|
176
|
+
|
|
151
177
|
@property
|
|
152
178
|
def method(self) -> 'str':
|
|
153
179
|
"""Gets the method of this V1DeploymentAPI. # noqa: E501
|