lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__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 (122) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +79 -0
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/license_api.py +48 -0
  5. lightning_sdk/api/llm_api.py +73 -12
  6. lightning_sdk/api/studio_api.py +50 -1
  7. lightning_sdk/api/teamspace_api.py +127 -1
  8. lightning_sdk/api/utils.py +4 -0
  9. lightning_sdk/base_studio.py +83 -0
  10. lightning_sdk/cli/create.py +21 -1
  11. lightning_sdk/cli/delete.py +6 -8
  12. lightning_sdk/cli/deploy/__init__.py +0 -0
  13. lightning_sdk/cli/deploy/_auth.py +189 -0
  14. lightning_sdk/cli/deploy/devbox.py +157 -0
  15. lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
  16. lightning_sdk/cli/download.py +69 -16
  17. lightning_sdk/cli/entrypoint.py +1 -1
  18. lightning_sdk/cli/open.py +21 -2
  19. lightning_sdk/cli/start.py +12 -3
  20. lightning_sdk/cli/teamspace_menu.py +9 -1
  21. lightning_sdk/cli/upload.py +2 -5
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  24. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  25. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  26. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
  27. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  29. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
  30. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  31. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  32. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  33. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
  34. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  37. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  42. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  43. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
  47. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  62. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  74. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  82. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  84. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
  89. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  97. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
  98. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  100. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  101. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  105. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  106. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  108. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
  109. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  110. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  111. lightning_sdk/llm/llm.py +132 -40
  112. lightning_sdk/services/__init__.py +1 -1
  113. lightning_sdk/services/license.py +236 -0
  114. lightning_sdk/studio.py +62 -1
  115. lightning_sdk/teamspace.py +68 -0
  116. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  117. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
  118. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  119. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  120. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  121. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  122. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,253 @@
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 V1RoutingTelemetry(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
+ 'duration': 'float',
45
+ 'id': 'str',
46
+ 'method': 'str',
47
+ 'path': 'str',
48
+ 'received_at': 'datetime',
49
+ 'status_code': 'int'
50
+ }
51
+
52
+ attribute_map = {
53
+ 'duration': 'duration',
54
+ 'id': 'id',
55
+ 'method': 'method',
56
+ 'path': 'path',
57
+ 'received_at': 'receivedAt',
58
+ 'status_code': 'statusCode'
59
+ }
60
+
61
+ def __init__(self, duration: 'float' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, received_at: 'datetime' =None, status_code: 'int' =None): # noqa: E501
62
+ """V1RoutingTelemetry - a model defined in Swagger""" # noqa: E501
63
+ self._duration = None
64
+ self._id = None
65
+ self._method = None
66
+ self._path = None
67
+ self._received_at = None
68
+ self._status_code = None
69
+ self.discriminator = None
70
+ if duration is not None:
71
+ self.duration = duration
72
+ if id is not None:
73
+ self.id = id
74
+ if method is not None:
75
+ self.method = method
76
+ if path is not None:
77
+ self.path = path
78
+ if received_at is not None:
79
+ self.received_at = received_at
80
+ if status_code is not None:
81
+ self.status_code = status_code
82
+
83
+ @property
84
+ def duration(self) -> 'float':
85
+ """Gets the duration of this V1RoutingTelemetry. # noqa: E501
86
+
87
+
88
+ :return: The duration of this V1RoutingTelemetry. # noqa: E501
89
+ :rtype: float
90
+ """
91
+ return self._duration
92
+
93
+ @duration.setter
94
+ def duration(self, duration: 'float'):
95
+ """Sets the duration of this V1RoutingTelemetry.
96
+
97
+
98
+ :param duration: The duration of this V1RoutingTelemetry. # noqa: E501
99
+ :type: float
100
+ """
101
+
102
+ self._duration = duration
103
+
104
+ @property
105
+ def id(self) -> 'str':
106
+ """Gets the id of this V1RoutingTelemetry. # noqa: E501
107
+
108
+
109
+ :return: The id of this V1RoutingTelemetry. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._id
113
+
114
+ @id.setter
115
+ def id(self, id: 'str'):
116
+ """Sets the id of this V1RoutingTelemetry.
117
+
118
+
119
+ :param id: The id of this V1RoutingTelemetry. # noqa: E501
120
+ :type: str
121
+ """
122
+
123
+ self._id = id
124
+
125
+ @property
126
+ def method(self) -> 'str':
127
+ """Gets the method of this V1RoutingTelemetry. # noqa: E501
128
+
129
+
130
+ :return: The method of this V1RoutingTelemetry. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._method
134
+
135
+ @method.setter
136
+ def method(self, method: 'str'):
137
+ """Sets the method of this V1RoutingTelemetry.
138
+
139
+
140
+ :param method: The method of this V1RoutingTelemetry. # noqa: E501
141
+ :type: str
142
+ """
143
+
144
+ self._method = method
145
+
146
+ @property
147
+ def path(self) -> 'str':
148
+ """Gets the path of this V1RoutingTelemetry. # noqa: E501
149
+
150
+
151
+ :return: The path of this V1RoutingTelemetry. # noqa: E501
152
+ :rtype: str
153
+ """
154
+ return self._path
155
+
156
+ @path.setter
157
+ def path(self, path: 'str'):
158
+ """Sets the path of this V1RoutingTelemetry.
159
+
160
+
161
+ :param path: The path of this V1RoutingTelemetry. # noqa: E501
162
+ :type: str
163
+ """
164
+
165
+ self._path = path
166
+
167
+ @property
168
+ def received_at(self) -> 'datetime':
169
+ """Gets the received_at of this V1RoutingTelemetry. # noqa: E501
170
+
171
+
172
+ :return: The received_at of this V1RoutingTelemetry. # noqa: E501
173
+ :rtype: datetime
174
+ """
175
+ return self._received_at
176
+
177
+ @received_at.setter
178
+ def received_at(self, received_at: 'datetime'):
179
+ """Sets the received_at of this V1RoutingTelemetry.
180
+
181
+
182
+ :param received_at: The received_at of this V1RoutingTelemetry. # noqa: E501
183
+ :type: datetime
184
+ """
185
+
186
+ self._received_at = received_at
187
+
188
+ @property
189
+ def status_code(self) -> 'int':
190
+ """Gets the status_code of this V1RoutingTelemetry. # noqa: E501
191
+
192
+
193
+ :return: The status_code of this V1RoutingTelemetry. # noqa: E501
194
+ :rtype: int
195
+ """
196
+ return self._status_code
197
+
198
+ @status_code.setter
199
+ def status_code(self, status_code: 'int'):
200
+ """Sets the status_code of this V1RoutingTelemetry.
201
+
202
+
203
+ :param status_code: The status_code of this V1RoutingTelemetry. # noqa: E501
204
+ :type: int
205
+ """
206
+
207
+ self._status_code = status_code
208
+
209
+ def to_dict(self) -> dict:
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.swagger_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ result[attr] = value
230
+ if issubclass(V1RoutingTelemetry, dict):
231
+ for key, value in self.items():
232
+ result[key] = value
233
+
234
+ return result
235
+
236
+ def to_str(self) -> str:
237
+ """Returns the string representation of the model"""
238
+ return pprint.pformat(self.to_dict())
239
+
240
+ def __repr__(self) -> str:
241
+ """For `print` and `pprint`"""
242
+ return self.to_str()
243
+
244
+ def __eq__(self, other: 'V1RoutingTelemetry') -> bool:
245
+ """Returns true if both objects are equal"""
246
+ if not isinstance(other, V1RoutingTelemetry):
247
+ return False
248
+
249
+ return self.__dict__ == other.__dict__
250
+
251
+ def __ne__(self, other: 'V1RoutingTelemetry') -> bool:
252
+ """Returns true if both objects are not equal"""
253
+ return not self == other
@@ -41,6 +41,7 @@ class V1SecretType(object):
41
41
  DOCKER_REGISTRY = "SECRET_TYPE_DOCKER_REGISTRY"
42
42
  GCP_CREDENTIALS = "SECRET_TYPE_GCP_CREDENTIALS"
43
43
  SNOWFLAKE_CREDENTIALS = "SECRET_TYPE_SNOWFLAKE_CREDENTIALS"
44
+ R2_CREDENTIALS = "SECRET_TYPE_R2_CREDENTIALS"
44
45
  """
45
46
  Attributes:
46
47
  swagger_types (dict): The key is attribute name
@@ -41,6 +41,8 @@ class V1ServerAlertType(object):
41
41
  APT_RESTORE = "SERVER_ALERT_TYPE_APT_RESTORE"
42
42
  CONDA_RESTORE = "SERVER_ALERT_TYPE_CONDA_RESTORE"
43
43
  SETTINGS_RESTORE = "SERVER_ALERT_TYPE_SETTINGS_RESTORE"
44
+ BASE_STUDIO_SETUP = "SERVER_ALERT_TYPE_BASE_STUDIO_SETUP"
45
+ FILESYSTEM = "SERVER_ALERT_TYPE_FILESYSTEM"
44
46
  """
45
47
  Attributes:
46
48
  swagger_types (dict): The key is attribute name
@@ -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 V1SleepServerResponse(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
+ """V1SleepServerResponse - 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(V1SleepServerResponse, 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: 'V1SleepServerResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1SleepServerResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1SleepServerResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ 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 V1TriggerFilesystemUpgradeResponse(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
+ 'trigger_upgrade': 'bool'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'trigger_upgrade': 'triggerUpgrade'
49
+ }
50
+
51
+ def __init__(self, trigger_upgrade: 'bool' =None): # noqa: E501
52
+ """V1TriggerFilesystemUpgradeResponse - a model defined in Swagger""" # noqa: E501
53
+ self._trigger_upgrade = None
54
+ self.discriminator = None
55
+ if trigger_upgrade is not None:
56
+ self.trigger_upgrade = trigger_upgrade
57
+
58
+ @property
59
+ def trigger_upgrade(self) -> 'bool':
60
+ """Gets the trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
61
+
62
+
63
+ :return: The trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
64
+ :rtype: bool
65
+ """
66
+ return self._trigger_upgrade
67
+
68
+ @trigger_upgrade.setter
69
+ def trigger_upgrade(self, trigger_upgrade: 'bool'):
70
+ """Sets the trigger_upgrade of this V1TriggerFilesystemUpgradeResponse.
71
+
72
+
73
+ :param trigger_upgrade: The trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
74
+ :type: bool
75
+ """
76
+
77
+ self._trigger_upgrade = trigger_upgrade
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(V1TriggerFilesystemUpgradeResponse, 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: 'V1TriggerFilesystemUpgradeResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1TriggerFilesystemUpgradeResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1TriggerFilesystemUpgradeResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -42,21 +42,26 @@ class V1UploadProjectArtifactResponse(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'upload_id': 'str',
45
+ 'uploads': 'list[V1ClusterUpload]',
45
46
  'urls': 'list[V1PresignedUrl]'
46
47
  }
47
48
 
48
49
  attribute_map = {
49
50
  'upload_id': 'uploadId',
51
+ 'uploads': 'uploads',
50
52
  'urls': 'urls'
51
53
  }
52
54
 
53
- def __init__(self, upload_id: 'str' =None, urls: 'list[V1PresignedUrl]' =None): # noqa: E501
55
+ def __init__(self, upload_id: 'str' =None, uploads: 'list[V1ClusterUpload]' =None, urls: 'list[V1PresignedUrl]' =None): # noqa: E501
54
56
  """V1UploadProjectArtifactResponse - a model defined in Swagger""" # noqa: E501
55
57
  self._upload_id = None
58
+ self._uploads = None
56
59
  self._urls = None
57
60
  self.discriminator = None
58
61
  if upload_id is not None:
59
62
  self.upload_id = upload_id
63
+ if uploads is not None:
64
+ self.uploads = uploads
60
65
  if urls is not None:
61
66
  self.urls = urls
62
67
 
@@ -81,6 +86,27 @@ class V1UploadProjectArtifactResponse(object):
81
86
 
82
87
  self._upload_id = upload_id
83
88
 
89
+ @property
90
+ def uploads(self) -> 'list[V1ClusterUpload]':
91
+ """Gets the uploads of this V1UploadProjectArtifactResponse. # noqa: E501
92
+
93
+
94
+ :return: The uploads of this V1UploadProjectArtifactResponse. # noqa: E501
95
+ :rtype: list[V1ClusterUpload]
96
+ """
97
+ return self._uploads
98
+
99
+ @uploads.setter
100
+ def uploads(self, uploads: 'list[V1ClusterUpload]'):
101
+ """Sets the uploads of this V1UploadProjectArtifactResponse.
102
+
103
+
104
+ :param uploads: The uploads of this V1UploadProjectArtifactResponse. # noqa: E501
105
+ :type: list[V1ClusterUpload]
106
+ """
107
+
108
+ self._uploads = uploads
109
+
84
110
  @property
85
111
  def urls(self) -> 'list[V1PresignedUrl]':
86
112
  """Gets the urls of this V1UploadProjectArtifactResponse. # noqa: E501
@@ -42,31 +42,46 @@ class V1UsageReport(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'daily_usage': 'list[V1DailyUsage]',
45
+ 'has_more': 'bool',
46
+ 'search_after': 'datetime',
45
47
  'total_cost': 'float',
46
48
  'total_saved_cost': 'float',
49
+ 'total_users': 'int',
47
50
  'usage': 'list[V1Usage]'
48
51
  }
49
52
 
50
53
  attribute_map = {
51
54
  'daily_usage': 'dailyUsage',
55
+ 'has_more': 'hasMore',
56
+ 'search_after': 'searchAfter',
52
57
  'total_cost': 'totalCost',
53
58
  'total_saved_cost': 'totalSavedCost',
59
+ 'total_users': 'totalUsers',
54
60
  'usage': 'usage'
55
61
  }
56
62
 
57
- def __init__(self, daily_usage: 'list[V1DailyUsage]' =None, total_cost: 'float' =None, total_saved_cost: 'float' =None, usage: 'list[V1Usage]' =None): # noqa: E501
63
+ def __init__(self, daily_usage: 'list[V1DailyUsage]' =None, has_more: 'bool' =None, search_after: 'datetime' =None, total_cost: 'float' =None, total_saved_cost: 'float' =None, total_users: 'int' =None, usage: 'list[V1Usage]' =None): # noqa: E501
58
64
  """V1UsageReport - a model defined in Swagger""" # noqa: E501
59
65
  self._daily_usage = None
66
+ self._has_more = None
67
+ self._search_after = None
60
68
  self._total_cost = None
61
69
  self._total_saved_cost = None
70
+ self._total_users = None
62
71
  self._usage = None
63
72
  self.discriminator = None
64
73
  if daily_usage is not None:
65
74
  self.daily_usage = daily_usage
75
+ if has_more is not None:
76
+ self.has_more = has_more
77
+ if search_after is not None:
78
+ self.search_after = search_after
66
79
  if total_cost is not None:
67
80
  self.total_cost = total_cost
68
81
  if total_saved_cost is not None:
69
82
  self.total_saved_cost = total_saved_cost
83
+ if total_users is not None:
84
+ self.total_users = total_users
70
85
  if usage is not None:
71
86
  self.usage = usage
72
87
 
@@ -91,6 +106,48 @@ class V1UsageReport(object):
91
106
 
92
107
  self._daily_usage = daily_usage
93
108
 
109
+ @property
110
+ def has_more(self) -> 'bool':
111
+ """Gets the has_more of this V1UsageReport. # noqa: E501
112
+
113
+
114
+ :return: The has_more of this V1UsageReport. # noqa: E501
115
+ :rtype: bool
116
+ """
117
+ return self._has_more
118
+
119
+ @has_more.setter
120
+ def has_more(self, has_more: 'bool'):
121
+ """Sets the has_more of this V1UsageReport.
122
+
123
+
124
+ :param has_more: The has_more of this V1UsageReport. # noqa: E501
125
+ :type: bool
126
+ """
127
+
128
+ self._has_more = has_more
129
+
130
+ @property
131
+ def search_after(self) -> 'datetime':
132
+ """Gets the search_after of this V1UsageReport. # noqa: E501
133
+
134
+
135
+ :return: The search_after of this V1UsageReport. # noqa: E501
136
+ :rtype: datetime
137
+ """
138
+ return self._search_after
139
+
140
+ @search_after.setter
141
+ def search_after(self, search_after: 'datetime'):
142
+ """Sets the search_after of this V1UsageReport.
143
+
144
+
145
+ :param search_after: The search_after of this V1UsageReport. # noqa: E501
146
+ :type: datetime
147
+ """
148
+
149
+ self._search_after = search_after
150
+
94
151
  @property
95
152
  def total_cost(self) -> 'float':
96
153
  """Gets the total_cost of this V1UsageReport. # noqa: E501
@@ -133,6 +190,27 @@ class V1UsageReport(object):
133
190
 
134
191
  self._total_saved_cost = total_saved_cost
135
192
 
193
+ @property
194
+ def total_users(self) -> 'int':
195
+ """Gets the total_users of this V1UsageReport. # noqa: E501
196
+
197
+
198
+ :return: The total_users of this V1UsageReport. # noqa: E501
199
+ :rtype: int
200
+ """
201
+ return self._total_users
202
+
203
+ @total_users.setter
204
+ def total_users(self, total_users: 'int'):
205
+ """Sets the total_users of this V1UsageReport.
206
+
207
+
208
+ :param total_users: The total_users of this V1UsageReport. # noqa: E501
209
+ :type: int
210
+ """
211
+
212
+ self._total_users = total_users
213
+
136
214
  @property
137
215
  def usage(self) -> 'list[V1Usage]':
138
216
  """Gets the usage of this V1UsageReport. # noqa: E501