lightning-sdk 0.2.21rc0__py3-none-any.whl → 0.2.22__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/deployment_api.py +7 -2
- lightning_sdk/api/license_api.py +1 -1
- lightning_sdk/api/llm_api.py +67 -27
- lightning_sdk/api/pipeline_api.py +48 -9
- lightning_sdk/cli/configure.py +34 -27
- lightning_sdk/cli/connect.py +2 -2
- lightning_sdk/cli/download.py +38 -2
- lightning_sdk/deployment/deployment.py +17 -3
- lightning_sdk/lightning_cloud/openapi/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1 -105
- lightning_sdk/llm/__init__.py +1 -2
- lightning_sdk/llm/llm.py +52 -1
- lightning_sdk/pipeline/__init__.py +2 -1
- lightning_sdk/pipeline/pipeline.py +23 -6
- lightning_sdk/pipeline/printer.py +102 -0
- lightning_sdk/pipeline/schedule.py +7 -0
- lightning_sdk/pipeline/types.py +3 -3
- lightning_sdk/pipeline/utils.py +1 -16
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/RECORD +39 -37
- lightning_sdk/llm/asyncllm.py +0 -48
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.21rc0.dist-info → lightning_sdk-0.2.22.dist-info}/top_level.txt +0 -0
|
@@ -44,6 +44,7 @@ class ProjectIdPipelinesBody(object):
|
|
|
44
44
|
'cluster_id': 'str',
|
|
45
45
|
'name': 'str',
|
|
46
46
|
'parameters': 'list[V1PipelineParameter]',
|
|
47
|
+
'parent_pipeline_id': 'str',
|
|
47
48
|
'shared_filesystem': 'V1SharedFilesystem',
|
|
48
49
|
'steps': 'list[V1PipelineStep]'
|
|
49
50
|
}
|
|
@@ -52,15 +53,17 @@ class ProjectIdPipelinesBody(object):
|
|
|
52
53
|
'cluster_id': 'clusterId',
|
|
53
54
|
'name': 'name',
|
|
54
55
|
'parameters': 'parameters',
|
|
56
|
+
'parent_pipeline_id': 'parentPipelineId',
|
|
55
57
|
'shared_filesystem': 'sharedFilesystem',
|
|
56
58
|
'steps': 'steps'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, cluster_id: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, shared_filesystem: 'V1SharedFilesystem' =None, steps: 'list[V1PipelineStep]' =None): # noqa: E501
|
|
61
|
+
def __init__(self, cluster_id: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, steps: 'list[V1PipelineStep]' =None): # noqa: E501
|
|
60
62
|
"""ProjectIdPipelinesBody - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._cluster_id = None
|
|
62
64
|
self._name = None
|
|
63
65
|
self._parameters = None
|
|
66
|
+
self._parent_pipeline_id = None
|
|
64
67
|
self._shared_filesystem = None
|
|
65
68
|
self._steps = None
|
|
66
69
|
self.discriminator = None
|
|
@@ -70,6 +73,8 @@ class ProjectIdPipelinesBody(object):
|
|
|
70
73
|
self.name = name
|
|
71
74
|
if parameters is not None:
|
|
72
75
|
self.parameters = parameters
|
|
76
|
+
if parent_pipeline_id is not None:
|
|
77
|
+
self.parent_pipeline_id = parent_pipeline_id
|
|
73
78
|
if shared_filesystem is not None:
|
|
74
79
|
self.shared_filesystem = shared_filesystem
|
|
75
80
|
if steps is not None:
|
|
@@ -138,6 +143,27 @@ class ProjectIdPipelinesBody(object):
|
|
|
138
143
|
|
|
139
144
|
self._parameters = parameters
|
|
140
145
|
|
|
146
|
+
@property
|
|
147
|
+
def parent_pipeline_id(self) -> 'str':
|
|
148
|
+
"""Gets the parent_pipeline_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The parent_pipeline_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._parent_pipeline_id
|
|
155
|
+
|
|
156
|
+
@parent_pipeline_id.setter
|
|
157
|
+
def parent_pipeline_id(self, parent_pipeline_id: 'str'):
|
|
158
|
+
"""Sets the parent_pipeline_id of this ProjectIdPipelinesBody.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param parent_pipeline_id: The parent_pipeline_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._parent_pipeline_id = parent_pipeline_id
|
|
166
|
+
|
|
141
167
|
@property
|
|
142
168
|
def shared_filesystem(self) -> 'V1SharedFilesystem':
|
|
143
169
|
"""Gets the shared_filesystem of this ProjectIdPipelinesBody. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class ProjectIdSchedulesBody(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cron_expression': 'str',
|
|
45
45
|
'display_name': 'str',
|
|
46
|
+
'parent_resource_id': 'str',
|
|
46
47
|
'resource_id': 'str',
|
|
47
48
|
'resource_type': 'V1ScheduleResourceType'
|
|
48
49
|
}
|
|
@@ -50,14 +51,16 @@ class ProjectIdSchedulesBody(object):
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'cron_expression': 'cronExpression',
|
|
52
53
|
'display_name': 'displayName',
|
|
54
|
+
'parent_resource_id': 'parentResourceId',
|
|
53
55
|
'resource_id': 'resourceId',
|
|
54
56
|
'resource_type': 'resourceType'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, cron_expression: 'str' =None, display_name: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None): # noqa: E501
|
|
59
|
+
def __init__(self, cron_expression: 'str' =None, display_name: 'str' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None): # noqa: E501
|
|
58
60
|
"""ProjectIdSchedulesBody - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._cron_expression = None
|
|
60
62
|
self._display_name = None
|
|
63
|
+
self._parent_resource_id = None
|
|
61
64
|
self._resource_id = None
|
|
62
65
|
self._resource_type = None
|
|
63
66
|
self.discriminator = None
|
|
@@ -65,6 +68,8 @@ class ProjectIdSchedulesBody(object):
|
|
|
65
68
|
self.cron_expression = cron_expression
|
|
66
69
|
if display_name is not None:
|
|
67
70
|
self.display_name = display_name
|
|
71
|
+
if parent_resource_id is not None:
|
|
72
|
+
self.parent_resource_id = parent_resource_id
|
|
68
73
|
if resource_id is not None:
|
|
69
74
|
self.resource_id = resource_id
|
|
70
75
|
if resource_type is not None:
|
|
@@ -112,6 +117,27 @@ class ProjectIdSchedulesBody(object):
|
|
|
112
117
|
|
|
113
118
|
self._display_name = display_name
|
|
114
119
|
|
|
120
|
+
@property
|
|
121
|
+
def parent_resource_id(self) -> 'str':
|
|
122
|
+
"""Gets the parent_resource_id of this ProjectIdSchedulesBody. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The parent_resource_id of this ProjectIdSchedulesBody. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._parent_resource_id
|
|
129
|
+
|
|
130
|
+
@parent_resource_id.setter
|
|
131
|
+
def parent_resource_id(self, parent_resource_id: 'str'):
|
|
132
|
+
"""Sets the parent_resource_id of this ProjectIdSchedulesBody.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param parent_resource_id: The parent_resource_id of this ProjectIdSchedulesBody. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._parent_resource_id = parent_resource_id
|
|
140
|
+
|
|
115
141
|
@property
|
|
116
142
|
def resource_id(self) -> 'str':
|
|
117
143
|
"""Gets the resource_id of this ProjectIdSchedulesBody. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class SchedulesIdBody(object):
|
|
|
46
46
|
'display_name': 'str',
|
|
47
47
|
'name': 'str',
|
|
48
48
|
'next': 'datetime',
|
|
49
|
+
'parent_resource_id': 'str',
|
|
49
50
|
'resource_id': 'str',
|
|
50
51
|
'resource_type': 'V1ScheduleResourceType',
|
|
51
52
|
'state': 'str',
|
|
@@ -60,6 +61,7 @@ class SchedulesIdBody(object):
|
|
|
60
61
|
'display_name': 'displayName',
|
|
61
62
|
'name': 'name',
|
|
62
63
|
'next': 'next',
|
|
64
|
+
'parent_resource_id': 'parentResourceId',
|
|
63
65
|
'resource_id': 'resourceId',
|
|
64
66
|
'resource_type': 'resourceType',
|
|
65
67
|
'state': 'state',
|
|
@@ -68,13 +70,14 @@ class SchedulesIdBody(object):
|
|
|
68
70
|
'user_id': 'userId'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
73
|
+
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
72
74
|
"""SchedulesIdBody - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
self._created_at = None
|
|
74
76
|
self._cron_expression = None
|
|
75
77
|
self._display_name = None
|
|
76
78
|
self._name = None
|
|
77
79
|
self._next = None
|
|
80
|
+
self._parent_resource_id = None
|
|
78
81
|
self._resource_id = None
|
|
79
82
|
self._resource_type = None
|
|
80
83
|
self._state = None
|
|
@@ -92,6 +95,8 @@ class SchedulesIdBody(object):
|
|
|
92
95
|
self.name = name
|
|
93
96
|
if next is not None:
|
|
94
97
|
self.next = next
|
|
98
|
+
if parent_resource_id is not None:
|
|
99
|
+
self.parent_resource_id = parent_resource_id
|
|
95
100
|
if resource_id is not None:
|
|
96
101
|
self.resource_id = resource_id
|
|
97
102
|
if resource_type is not None:
|
|
@@ -210,6 +215,27 @@ class SchedulesIdBody(object):
|
|
|
210
215
|
|
|
211
216
|
self._next = next
|
|
212
217
|
|
|
218
|
+
@property
|
|
219
|
+
def parent_resource_id(self) -> 'str':
|
|
220
|
+
"""Gets the parent_resource_id of this SchedulesIdBody. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The parent_resource_id of this SchedulesIdBody. # noqa: E501
|
|
224
|
+
:rtype: str
|
|
225
|
+
"""
|
|
226
|
+
return self._parent_resource_id
|
|
227
|
+
|
|
228
|
+
@parent_resource_id.setter
|
|
229
|
+
def parent_resource_id(self, parent_resource_id: 'str'):
|
|
230
|
+
"""Sets the parent_resource_id of this SchedulesIdBody.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param parent_resource_id: The parent_resource_id of this SchedulesIdBody. # noqa: E501
|
|
234
|
+
:type: str
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._parent_resource_id = parent_resource_id
|
|
238
|
+
|
|
213
239
|
@property
|
|
214
240
|
def resource_id(self) -> 'str':
|
|
215
241
|
"""Gets the resource_id of this SchedulesIdBody. # noqa: E501
|
|
@@ -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 V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse(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
|
+
"""V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse - 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(V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse, 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: 'V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -42,6 +42,7 @@ class V1GetProjectStorageMetadataResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'account_limit_bytes': 'str',
|
|
45
|
+
'billable_bytes': 'str',
|
|
45
46
|
'cloudspace_storage_bytes': 'str',
|
|
46
47
|
'cloudspaces': 'list[V1StorageAsset]',
|
|
47
48
|
'container_registry_repositories': 'list[V1StorageAsset]',
|
|
@@ -65,6 +66,7 @@ class V1GetProjectStorageMetadataResponse(object):
|
|
|
65
66
|
|
|
66
67
|
attribute_map = {
|
|
67
68
|
'account_limit_bytes': 'accountLimitBytes',
|
|
69
|
+
'billable_bytes': 'billableBytes',
|
|
68
70
|
'cloudspace_storage_bytes': 'cloudspaceStorageBytes',
|
|
69
71
|
'cloudspaces': 'cloudspaces',
|
|
70
72
|
'container_registry_repositories': 'containerRegistryRepositories',
|
|
@@ -86,9 +88,10 @@ class V1GetProjectStorageMetadataResponse(object):
|
|
|
86
88
|
'uploads': 'uploads'
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
def __init__(self, account_limit_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, cloudspaces: 'list[V1StorageAsset]' =None, container_registry_repositories: 'list[V1StorageAsset]' =None, container_registry_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, data_connections: 'list[V1StorageAsset]' =None, display_name: 'str' =None, estimated_daily_cost: 'float' =None, estimated_daily_efs_cost: 'float' =None, folder_storage_bytes: 'str' =None, folders: 'list[V1StorageAsset]' =None, id: 'str' =None, job_storage_bytes: 'str' =None, jobs: 'list[V1StorageAsset]' =None, model_storage_bytes: 'str' =None, models: 'list[V1StorageAsset]' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None, uploads: 'V1StorageAsset' =None): # noqa: E501
|
|
91
|
+
def __init__(self, account_limit_bytes: 'str' =None, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, cloudspaces: 'list[V1StorageAsset]' =None, container_registry_repositories: 'list[V1StorageAsset]' =None, container_registry_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, data_connections: 'list[V1StorageAsset]' =None, display_name: 'str' =None, estimated_daily_cost: 'float' =None, estimated_daily_efs_cost: 'float' =None, folder_storage_bytes: 'str' =None, folders: 'list[V1StorageAsset]' =None, id: 'str' =None, job_storage_bytes: 'str' =None, jobs: 'list[V1StorageAsset]' =None, model_storage_bytes: 'str' =None, models: 'list[V1StorageAsset]' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None, uploads: 'V1StorageAsset' =None): # noqa: E501
|
|
90
92
|
"""V1GetProjectStorageMetadataResponse - a model defined in Swagger""" # noqa: E501
|
|
91
93
|
self._account_limit_bytes = None
|
|
94
|
+
self._billable_bytes = None
|
|
92
95
|
self._cloudspace_storage_bytes = None
|
|
93
96
|
self._cloudspaces = None
|
|
94
97
|
self._container_registry_repositories = None
|
|
@@ -111,6 +114,8 @@ class V1GetProjectStorageMetadataResponse(object):
|
|
|
111
114
|
self.discriminator = None
|
|
112
115
|
if account_limit_bytes is not None:
|
|
113
116
|
self.account_limit_bytes = account_limit_bytes
|
|
117
|
+
if billable_bytes is not None:
|
|
118
|
+
self.billable_bytes = billable_bytes
|
|
114
119
|
if cloudspace_storage_bytes is not None:
|
|
115
120
|
self.cloudspace_storage_bytes = cloudspace_storage_bytes
|
|
116
121
|
if cloudspaces is not None:
|
|
@@ -171,6 +176,27 @@ class V1GetProjectStorageMetadataResponse(object):
|
|
|
171
176
|
|
|
172
177
|
self._account_limit_bytes = account_limit_bytes
|
|
173
178
|
|
|
179
|
+
@property
|
|
180
|
+
def billable_bytes(self) -> 'str':
|
|
181
|
+
"""Gets the billable_bytes of this V1GetProjectStorageMetadataResponse. # noqa: E501
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:return: The billable_bytes of this V1GetProjectStorageMetadataResponse. # noqa: E501
|
|
185
|
+
:rtype: str
|
|
186
|
+
"""
|
|
187
|
+
return self._billable_bytes
|
|
188
|
+
|
|
189
|
+
@billable_bytes.setter
|
|
190
|
+
def billable_bytes(self, billable_bytes: 'str'):
|
|
191
|
+
"""Sets the billable_bytes of this V1GetProjectStorageMetadataResponse.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param billable_bytes: The billable_bytes of this V1GetProjectStorageMetadataResponse. # noqa: E501
|
|
195
|
+
:type: str
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
self._billable_bytes = billable_bytes
|
|
199
|
+
|
|
174
200
|
@property
|
|
175
201
|
def cloudspace_storage_bytes(self) -> 'str':
|
|
176
202
|
"""Gets the cloudspace_storage_bytes of this V1GetProjectStorageMetadataResponse. # noqa: E501
|
|
@@ -42,7 +42,10 @@ class V1GetUserResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'agree_to_terms_and_conditions': 'bool',
|
|
45
|
+
'allow_credits_auto_replenish': 'bool',
|
|
45
46
|
'api_key': 'str',
|
|
47
|
+
'auto_replenish_amount': 'float',
|
|
48
|
+
'auto_replenish_threshold': 'float',
|
|
46
49
|
'country': 'str',
|
|
47
50
|
'discounted_pro_plan': 'bool',
|
|
48
51
|
'email': 'str',
|
|
@@ -80,7 +83,10 @@ class V1GetUserResponse(object):
|
|
|
80
83
|
|
|
81
84
|
attribute_map = {
|
|
82
85
|
'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
|
|
86
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
83
87
|
'api_key': 'apiKey',
|
|
88
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
89
|
+
'auto_replenish_threshold': 'autoReplenishThreshold',
|
|
84
90
|
'country': 'country',
|
|
85
91
|
'discounted_pro_plan': 'discountedProPlan',
|
|
86
92
|
'email': 'email',
|
|
@@ -116,10 +122,13 @@ class V1GetUserResponse(object):
|
|
|
116
122
|
'website': 'website'
|
|
117
123
|
}
|
|
118
124
|
|
|
119
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
125
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
120
126
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
121
127
|
self._agree_to_terms_and_conditions = None
|
|
128
|
+
self._allow_credits_auto_replenish = None
|
|
122
129
|
self._api_key = None
|
|
130
|
+
self._auto_replenish_amount = None
|
|
131
|
+
self._auto_replenish_threshold = None
|
|
123
132
|
self._country = None
|
|
124
133
|
self._discounted_pro_plan = None
|
|
125
134
|
self._email = None
|
|
@@ -156,8 +165,14 @@ class V1GetUserResponse(object):
|
|
|
156
165
|
self.discriminator = None
|
|
157
166
|
if agree_to_terms_and_conditions is not None:
|
|
158
167
|
self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
168
|
+
if allow_credits_auto_replenish is not None:
|
|
169
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
159
170
|
if api_key is not None:
|
|
160
171
|
self.api_key = api_key
|
|
172
|
+
if auto_replenish_amount is not None:
|
|
173
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
174
|
+
if auto_replenish_threshold is not None:
|
|
175
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
161
176
|
if country is not None:
|
|
162
177
|
self.country = country
|
|
163
178
|
if discounted_pro_plan is not None:
|
|
@@ -246,6 +261,27 @@ class V1GetUserResponse(object):
|
|
|
246
261
|
|
|
247
262
|
self._agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
248
263
|
|
|
264
|
+
@property
|
|
265
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
266
|
+
"""Gets the allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
:return: The allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
270
|
+
:rtype: bool
|
|
271
|
+
"""
|
|
272
|
+
return self._allow_credits_auto_replenish
|
|
273
|
+
|
|
274
|
+
@allow_credits_auto_replenish.setter
|
|
275
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
276
|
+
"""Sets the allow_credits_auto_replenish of this V1GetUserResponse.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1GetUserResponse. # noqa: E501
|
|
280
|
+
:type: bool
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
284
|
+
|
|
249
285
|
@property
|
|
250
286
|
def api_key(self) -> 'str':
|
|
251
287
|
"""Gets the api_key of this V1GetUserResponse. # noqa: E501
|
|
@@ -267,6 +303,48 @@ class V1GetUserResponse(object):
|
|
|
267
303
|
|
|
268
304
|
self._api_key = api_key
|
|
269
305
|
|
|
306
|
+
@property
|
|
307
|
+
def auto_replenish_amount(self) -> 'float':
|
|
308
|
+
"""Gets the auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
:return: The auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
312
|
+
:rtype: float
|
|
313
|
+
"""
|
|
314
|
+
return self._auto_replenish_amount
|
|
315
|
+
|
|
316
|
+
@auto_replenish_amount.setter
|
|
317
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'float'):
|
|
318
|
+
"""Sets the auto_replenish_amount of this V1GetUserResponse.
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
:param auto_replenish_amount: The auto_replenish_amount of this V1GetUserResponse. # noqa: E501
|
|
322
|
+
:type: float
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def auto_replenish_threshold(self) -> 'float':
|
|
329
|
+
"""Gets the auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
:return: The auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
333
|
+
:rtype: float
|
|
334
|
+
"""
|
|
335
|
+
return self._auto_replenish_threshold
|
|
336
|
+
|
|
337
|
+
@auto_replenish_threshold.setter
|
|
338
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
|
|
339
|
+
"""Sets the auto_replenish_threshold of this V1GetUserResponse.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this V1GetUserResponse. # noqa: E501
|
|
343
|
+
:type: float
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
347
|
+
|
|
270
348
|
@property
|
|
271
349
|
def country(self) -> 'str':
|
|
272
350
|
"""Gets the country of this V1GetUserResponse. # noqa: E501
|
|
@@ -47,6 +47,8 @@ class V1GetUserStorageBreakdownResponse(object):
|
|
|
47
47
|
'job_storage_bytes': 'str',
|
|
48
48
|
'limit_bytes': 'str',
|
|
49
49
|
'projects': 'list[V1ProjectStorage]',
|
|
50
|
+
'total_billable_bytes': 'str',
|
|
51
|
+
'total_free_bytes': 'str',
|
|
50
52
|
'total_model_storage_bytes': 'str',
|
|
51
53
|
'total_storage_bytes': 'str',
|
|
52
54
|
'upload_storage_bytes': 'str'
|
|
@@ -59,12 +61,14 @@ class V1GetUserStorageBreakdownResponse(object):
|
|
|
59
61
|
'job_storage_bytes': 'jobStorageBytes',
|
|
60
62
|
'limit_bytes': 'limitBytes',
|
|
61
63
|
'projects': 'projects',
|
|
64
|
+
'total_billable_bytes': 'totalBillableBytes',
|
|
65
|
+
'total_free_bytes': 'totalFreeBytes',
|
|
62
66
|
'total_model_storage_bytes': 'totalModelStorageBytes',
|
|
63
67
|
'total_storage_bytes': 'totalStorageBytes',
|
|
64
68
|
'upload_storage_bytes': 'uploadStorageBytes'
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
def __init__(self, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, folder_storage_bytes: 'str' =None, job_storage_bytes: 'str' =None, limit_bytes: 'str' =None, projects: 'list[V1ProjectStorage]' =None, total_model_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
71
|
+
def __init__(self, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, folder_storage_bytes: 'str' =None, job_storage_bytes: 'str' =None, limit_bytes: 'str' =None, projects: 'list[V1ProjectStorage]' =None, total_billable_bytes: 'str' =None, total_free_bytes: 'str' =None, total_model_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
68
72
|
"""V1GetUserStorageBreakdownResponse - a model defined in Swagger""" # noqa: E501
|
|
69
73
|
self._cloudspace_storage_bytes = None
|
|
70
74
|
self._data_connection_storage_bytes = None
|
|
@@ -72,6 +76,8 @@ class V1GetUserStorageBreakdownResponse(object):
|
|
|
72
76
|
self._job_storage_bytes = None
|
|
73
77
|
self._limit_bytes = None
|
|
74
78
|
self._projects = None
|
|
79
|
+
self._total_billable_bytes = None
|
|
80
|
+
self._total_free_bytes = None
|
|
75
81
|
self._total_model_storage_bytes = None
|
|
76
82
|
self._total_storage_bytes = None
|
|
77
83
|
self._upload_storage_bytes = None
|
|
@@ -88,6 +94,10 @@ class V1GetUserStorageBreakdownResponse(object):
|
|
|
88
94
|
self.limit_bytes = limit_bytes
|
|
89
95
|
if projects is not None:
|
|
90
96
|
self.projects = projects
|
|
97
|
+
if total_billable_bytes is not None:
|
|
98
|
+
self.total_billable_bytes = total_billable_bytes
|
|
99
|
+
if total_free_bytes is not None:
|
|
100
|
+
self.total_free_bytes = total_free_bytes
|
|
91
101
|
if total_model_storage_bytes is not None:
|
|
92
102
|
self.total_model_storage_bytes = total_model_storage_bytes
|
|
93
103
|
if total_storage_bytes is not None:
|
|
@@ -221,6 +231,48 @@ class V1GetUserStorageBreakdownResponse(object):
|
|
|
221
231
|
|
|
222
232
|
self._projects = projects
|
|
223
233
|
|
|
234
|
+
@property
|
|
235
|
+
def total_billable_bytes(self) -> 'str':
|
|
236
|
+
"""Gets the total_billable_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:return: The total_billable_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
240
|
+
:rtype: str
|
|
241
|
+
"""
|
|
242
|
+
return self._total_billable_bytes
|
|
243
|
+
|
|
244
|
+
@total_billable_bytes.setter
|
|
245
|
+
def total_billable_bytes(self, total_billable_bytes: 'str'):
|
|
246
|
+
"""Sets the total_billable_bytes of this V1GetUserStorageBreakdownResponse.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:param total_billable_bytes: The total_billable_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
250
|
+
:type: str
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
self._total_billable_bytes = total_billable_bytes
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
def total_free_bytes(self) -> 'str':
|
|
257
|
+
"""Gets the total_free_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:return: The total_free_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
261
|
+
:rtype: str
|
|
262
|
+
"""
|
|
263
|
+
return self._total_free_bytes
|
|
264
|
+
|
|
265
|
+
@total_free_bytes.setter
|
|
266
|
+
def total_free_bytes(self, total_free_bytes: 'str'):
|
|
267
|
+
"""Sets the total_free_bytes of this V1GetUserStorageBreakdownResponse.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:param total_free_bytes: The total_free_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
271
|
+
:type: str
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
self._total_free_bytes = total_free_bytes
|
|
275
|
+
|
|
224
276
|
@property
|
|
225
277
|
def total_model_storage_bytes(self) -> 'str':
|
|
226
278
|
"""Gets the total_model_storage_bytes of this V1GetUserStorageBreakdownResponse. # noqa: E501
|
|
@@ -47,6 +47,7 @@ class V1Schedule(object):
|
|
|
47
47
|
'id': 'str',
|
|
48
48
|
'name': 'str',
|
|
49
49
|
'next': 'datetime',
|
|
50
|
+
'parent_resource_id': 'str',
|
|
50
51
|
'project_id': 'str',
|
|
51
52
|
'resource_id': 'str',
|
|
52
53
|
'resource_type': 'V1ScheduleResourceType',
|
|
@@ -63,6 +64,7 @@ class V1Schedule(object):
|
|
|
63
64
|
'id': 'id',
|
|
64
65
|
'name': 'name',
|
|
65
66
|
'next': 'next',
|
|
67
|
+
'parent_resource_id': 'parentResourceId',
|
|
66
68
|
'project_id': 'projectId',
|
|
67
69
|
'resource_id': 'resourceId',
|
|
68
70
|
'resource_type': 'resourceType',
|
|
@@ -72,7 +74,7 @@ class V1Schedule(object):
|
|
|
72
74
|
'user_id': 'userId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, project_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, project_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""V1Schedule - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._created_at = None
|
|
78
80
|
self._cron_expression = None
|
|
@@ -80,6 +82,7 @@ class V1Schedule(object):
|
|
|
80
82
|
self._id = None
|
|
81
83
|
self._name = None
|
|
82
84
|
self._next = None
|
|
85
|
+
self._parent_resource_id = None
|
|
83
86
|
self._project_id = None
|
|
84
87
|
self._resource_id = None
|
|
85
88
|
self._resource_type = None
|
|
@@ -100,6 +103,8 @@ class V1Schedule(object):
|
|
|
100
103
|
self.name = name
|
|
101
104
|
if next is not None:
|
|
102
105
|
self.next = next
|
|
106
|
+
if parent_resource_id is not None:
|
|
107
|
+
self.parent_resource_id = parent_resource_id
|
|
103
108
|
if project_id is not None:
|
|
104
109
|
self.project_id = project_id
|
|
105
110
|
if resource_id is not None:
|
|
@@ -241,6 +246,27 @@ class V1Schedule(object):
|
|
|
241
246
|
|
|
242
247
|
self._next = next
|
|
243
248
|
|
|
249
|
+
@property
|
|
250
|
+
def parent_resource_id(self) -> 'str':
|
|
251
|
+
"""Gets the parent_resource_id of this V1Schedule. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The parent_resource_id of this V1Schedule. # noqa: E501
|
|
255
|
+
:rtype: str
|
|
256
|
+
"""
|
|
257
|
+
return self._parent_resource_id
|
|
258
|
+
|
|
259
|
+
@parent_resource_id.setter
|
|
260
|
+
def parent_resource_id(self, parent_resource_id: 'str'):
|
|
261
|
+
"""Sets the parent_resource_id of this V1Schedule.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param parent_resource_id: The parent_resource_id of this V1Schedule. # noqa: E501
|
|
265
|
+
:type: str
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._parent_resource_id = parent_resource_id
|
|
269
|
+
|
|
244
270
|
@property
|
|
245
271
|
def project_id(self) -> 'str':
|
|
246
272
|
"""Gets the project_id of this V1Schedule. # noqa: E501
|