lightning-sdk 0.1.50__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.
Files changed (69) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +16 -27
  3. lightning_sdk/api/ai_hub_api.py +7 -1
  4. lightning_sdk/api/job_api.py +12 -7
  5. lightning_sdk/api/lit_container_api.py +24 -7
  6. lightning_sdk/api/mmt_api.py +12 -7
  7. lightning_sdk/api/utils.py +52 -0
  8. lightning_sdk/cli/run.py +65 -18
  9. lightning_sdk/cli/serve.py +1 -5
  10. lightning_sdk/cli/upload.py +33 -15
  11. lightning_sdk/helpers.py +1 -1
  12. lightning_sdk/job/base.py +28 -1
  13. lightning_sdk/job/job.py +27 -25
  14. lightning_sdk/job/v1.py +6 -2
  15. lightning_sdk/job/v2.py +12 -12
  16. lightning_sdk/lightning_cloud/login.py +4 -1
  17. lightning_sdk/lightning_cloud/openapi/__init__.py +17 -0
  18. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
  19. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
  20. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
  21. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  22. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
  23. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
  24. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
  25. lightning_sdk/lightning_cloud/openapi/models/__init__.py +17 -0
  26. lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
  27. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +53 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +128 -76
  56. lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
  57. lightning_sdk/mmt/base.py +36 -26
  58. lightning_sdk/mmt/mmt.py +28 -26
  59. lightning_sdk/mmt/v1.py +4 -1
  60. lightning_sdk/mmt/v2.py +14 -13
  61. lightning_sdk/models.py +5 -4
  62. lightning_sdk/studio.py +68 -1
  63. lightning_sdk/utils/resolve.py +7 -0
  64. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/METADATA +2 -2
  65. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/RECORD +69 -52
  66. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/LICENSE +0 -0
  67. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/WHEEL +0 -0
  68. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/entry_points.txt +0 -0
  69. {lightning_sdk-0.1.50.dist-info → lightning_sdk-0.1.53.dist-info}/top_level.txt +0 -0
@@ -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 IdContactownerBody(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
+ 'message': 'str',
45
+ 'reason': 'V1ContactAssistantOwnerReason'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'message': 'message',
50
+ 'reason': 'reason'
51
+ }
52
+
53
+ def __init__(self, message: 'str' =None, reason: 'V1ContactAssistantOwnerReason' =None): # noqa: E501
54
+ """IdContactownerBody - a model defined in Swagger""" # noqa: E501
55
+ self._message = None
56
+ self._reason = None
57
+ self.discriminator = None
58
+ if message is not None:
59
+ self.message = message
60
+ if reason is not None:
61
+ self.reason = reason
62
+
63
+ @property
64
+ def message(self) -> 'str':
65
+ """Gets the message of this IdContactownerBody. # noqa: E501
66
+
67
+
68
+ :return: The message of this IdContactownerBody. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._message
72
+
73
+ @message.setter
74
+ def message(self, message: 'str'):
75
+ """Sets the message of this IdContactownerBody.
76
+
77
+
78
+ :param message: The message of this IdContactownerBody. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._message = message
83
+
84
+ @property
85
+ def reason(self) -> 'V1ContactAssistantOwnerReason':
86
+ """Gets the reason of this IdContactownerBody. # noqa: E501
87
+
88
+
89
+ :return: The reason of this IdContactownerBody. # noqa: E501
90
+ :rtype: V1ContactAssistantOwnerReason
91
+ """
92
+ return self._reason
93
+
94
+ @reason.setter
95
+ def reason(self, reason: 'V1ContactAssistantOwnerReason'):
96
+ """Sets the reason of this IdContactownerBody.
97
+
98
+
99
+ :param reason: The reason of this IdContactownerBody. # noqa: E501
100
+ :type: V1ContactAssistantOwnerReason
101
+ """
102
+
103
+ self._reason = reason
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(IdContactownerBody, 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: 'IdContactownerBody') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, IdContactownerBody):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'IdContactownerBody') -> 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 LitregistryLitRepoNameBody(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
+ 'lit_repo_description': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'lit_repo_description': 'litRepoDescription'
49
+ }
50
+
51
+ def __init__(self, lit_repo_description: 'str' =None): # noqa: E501
52
+ """LitregistryLitRepoNameBody - a model defined in Swagger""" # noqa: E501
53
+ self._lit_repo_description = None
54
+ self.discriminator = None
55
+ if lit_repo_description is not None:
56
+ self.lit_repo_description = lit_repo_description
57
+
58
+ @property
59
+ def lit_repo_description(self) -> 'str':
60
+ """Gets the lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
61
+
62
+
63
+ :return: The lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._lit_repo_description
67
+
68
+ @lit_repo_description.setter
69
+ def lit_repo_description(self, lit_repo_description: 'str'):
70
+ """Sets the lit_repo_description of this LitregistryLitRepoNameBody.
71
+
72
+
73
+ :param lit_repo_description: The lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._lit_repo_description = lit_repo_description
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(LitregistryLitRepoNameBody, 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: 'LitregistryLitRepoNameBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, LitregistryLitRepoNameBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'LitregistryLitRepoNameBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -44,6 +44,7 @@ class MetricsstreamCreateBody(object):
44
44
  'app_id': 'str',
45
45
  'cloudspace_id': 'str',
46
46
  'dark_color': 'str',
47
+ 'job_id': 'str',
47
48
  'light_color': 'str',
48
49
  'name': 'str',
49
50
  'store_created_at': 'bool',
@@ -58,6 +59,7 @@ class MetricsstreamCreateBody(object):
58
59
  'app_id': 'appId',
59
60
  'cloudspace_id': 'cloudspaceId',
60
61
  'dark_color': 'darkColor',
62
+ 'job_id': 'jobId',
61
63
  'light_color': 'lightColor',
62
64
  'name': 'name',
63
65
  'store_created_at': 'storeCreatedAt',
@@ -68,11 +70,12 @@ class MetricsstreamCreateBody(object):
68
70
  'work_id': 'workId'
69
71
  }
70
72
 
71
- def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
73
+ def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
72
74
  """MetricsstreamCreateBody - a model defined in Swagger""" # noqa: E501
73
75
  self._app_id = None
74
76
  self._cloudspace_id = None
75
77
  self._dark_color = None
78
+ self._job_id = None
76
79
  self._light_color = None
77
80
  self._name = None
78
81
  self._store_created_at = None
@@ -88,6 +91,8 @@ class MetricsstreamCreateBody(object):
88
91
  self.cloudspace_id = cloudspace_id
89
92
  if dark_color is not None:
90
93
  self.dark_color = dark_color
94
+ if job_id is not None:
95
+ self.job_id = job_id
91
96
  if light_color is not None:
92
97
  self.light_color = light_color
93
98
  if name is not None:
@@ -168,6 +173,27 @@ class MetricsstreamCreateBody(object):
168
173
 
169
174
  self._dark_color = dark_color
170
175
 
176
+ @property
177
+ def job_id(self) -> 'str':
178
+ """Gets the job_id of this MetricsstreamCreateBody. # noqa: E501
179
+
180
+
181
+ :return: The job_id of this MetricsstreamCreateBody. # noqa: E501
182
+ :rtype: str
183
+ """
184
+ return self._job_id
185
+
186
+ @job_id.setter
187
+ def job_id(self, job_id: 'str'):
188
+ """Sets the job_id of this MetricsstreamCreateBody.
189
+
190
+
191
+ :param job_id: The job_id of this MetricsstreamCreateBody. # noqa: E501
192
+ :type: str
193
+ """
194
+
195
+ self._job_id = job_id
196
+
171
197
  @property
172
198
  def light_color(self) -> 'str':
173
199
  """Gets the light_color of this MetricsstreamCreateBody. # noqa: E501
@@ -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 UsagerestrictionsIdBody(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
+ 'instance_type': 'str',
45
+ 'max_instances': 'int',
46
+ 'restriction_type': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'instance_type': 'instanceType',
51
+ 'max_instances': 'maxInstances',
52
+ 'restriction_type': 'restrictionType'
53
+ }
54
+
55
+ def __init__(self, instance_type: 'str' =None, max_instances: 'int' =None, restriction_type: 'str' =None): # noqa: E501
56
+ """UsagerestrictionsIdBody - a model defined in Swagger""" # noqa: E501
57
+ self._instance_type = None
58
+ self._max_instances = None
59
+ self._restriction_type = None
60
+ self.discriminator = None
61
+ if instance_type is not None:
62
+ self.instance_type = instance_type
63
+ if max_instances is not None:
64
+ self.max_instances = max_instances
65
+ if restriction_type is not None:
66
+ self.restriction_type = restriction_type
67
+
68
+ @property
69
+ def instance_type(self) -> 'str':
70
+ """Gets the instance_type of this UsagerestrictionsIdBody. # noqa: E501
71
+
72
+
73
+ :return: The instance_type of this UsagerestrictionsIdBody. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._instance_type
77
+
78
+ @instance_type.setter
79
+ def instance_type(self, instance_type: 'str'):
80
+ """Sets the instance_type of this UsagerestrictionsIdBody.
81
+
82
+
83
+ :param instance_type: The instance_type of this UsagerestrictionsIdBody. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._instance_type = instance_type
88
+
89
+ @property
90
+ def max_instances(self) -> 'int':
91
+ """Gets the max_instances of this UsagerestrictionsIdBody. # noqa: E501
92
+
93
+
94
+ :return: The max_instances of this UsagerestrictionsIdBody. # noqa: E501
95
+ :rtype: int
96
+ """
97
+ return self._max_instances
98
+
99
+ @max_instances.setter
100
+ def max_instances(self, max_instances: 'int'):
101
+ """Sets the max_instances of this UsagerestrictionsIdBody.
102
+
103
+
104
+ :param max_instances: The max_instances of this UsagerestrictionsIdBody. # noqa: E501
105
+ :type: int
106
+ """
107
+
108
+ self._max_instances = max_instances
109
+
110
+ @property
111
+ def restriction_type(self) -> 'str':
112
+ """Gets the restriction_type of this UsagerestrictionsIdBody. # noqa: E501
113
+
114
+
115
+ :return: The restriction_type of this UsagerestrictionsIdBody. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._restriction_type
119
+
120
+ @restriction_type.setter
121
+ def restriction_type(self, restriction_type: 'str'):
122
+ """Sets the restriction_type of this UsagerestrictionsIdBody.
123
+
124
+
125
+ :param restriction_type: The restriction_type of this UsagerestrictionsIdBody. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._restriction_type = restriction_type
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(UsagerestrictionsIdBody, 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: 'UsagerestrictionsIdBody') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, UsagerestrictionsIdBody):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'UsagerestrictionsIdBody') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -40,6 +40,10 @@ class V1AssistantModelStatus(object):
40
40
  UNKNOWN_STATUS = "UNKNOWN_STATUS"
41
41
  ONLINE = "ONLINE"
42
42
  OFFLINE = "OFFLINE"
43
+ MODEL_DELETED = "MODEL_DELETED"
44
+ PENDING = "PENDING"
45
+ ENDPOINT_DELETED = "ENDPOINT_DELETED"
46
+ STOPPED = "STOPPED"
43
47
  """
44
48
  Attributes:
45
49
  swagger_types (dict): The key is attribute name
@@ -0,0 +1,104 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1CloudProvider(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
+ AWS = "AWS"
41
+ GCP = "GCP"
42
+ VULTR = "VULTR"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1CloudProvider - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1CloudProvider, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1CloudProvider') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1CloudProvider):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1CloudProvider') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other