lightning-sdk 0.2.19__py3-none-any.whl → 0.2.20__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/license_api.py +28 -6
- lightning_sdk/cli/deploy/_auth.py +11 -19
- lightning_sdk/cli/entrypoint.py +20 -2
- lightning_sdk/lightning_cloud/login.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +2 -2
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +2 -2
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -79
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
- lightning_sdk/lightning_cloud/rest_client.py +13 -11
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/services/license.py +78 -22
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/RECORD +39 -39
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.20.dist-info}/top_level.txt +0 -0
|
@@ -73,12 +73,16 @@ class V1Organization(object):
|
|
|
73
73
|
'full_story_start_date': 'datetime',
|
|
74
74
|
'general_teamspace': 'bool',
|
|
75
75
|
'id': 'str',
|
|
76
|
+
'last_storage_overuse_notification_sent_at': 'datetime',
|
|
76
77
|
'location': 'str',
|
|
77
78
|
'name': 'str',
|
|
78
79
|
'preferred_cluster': 'str',
|
|
79
80
|
'preferred_deployment_provider': 'str',
|
|
80
81
|
'preferred_studio_provider': 'str',
|
|
81
82
|
'start_studios_on_spot_instance': 'bool',
|
|
83
|
+
'storage_overuse_bytes': 'str',
|
|
84
|
+
'storage_overuse_deletion_at': 'datetime',
|
|
85
|
+
'storage_overuse_notification_count': 'int',
|
|
82
86
|
'switch_to_default_machine_on_idle': 'bool',
|
|
83
87
|
'teamspace_default_credits': 'float',
|
|
84
88
|
'twitter_username': 'str',
|
|
@@ -119,12 +123,16 @@ class V1Organization(object):
|
|
|
119
123
|
'full_story_start_date': 'fullStoryStartDate',
|
|
120
124
|
'general_teamspace': 'generalTeamspace',
|
|
121
125
|
'id': 'id',
|
|
126
|
+
'last_storage_overuse_notification_sent_at': 'lastStorageOveruseNotificationSentAt',
|
|
122
127
|
'location': 'location',
|
|
123
128
|
'name': 'name',
|
|
124
129
|
'preferred_cluster': 'preferredCluster',
|
|
125
130
|
'preferred_deployment_provider': 'preferredDeploymentProvider',
|
|
126
131
|
'preferred_studio_provider': 'preferredStudioProvider',
|
|
127
132
|
'start_studios_on_spot_instance': 'startStudiosOnSpotInstance',
|
|
133
|
+
'storage_overuse_bytes': 'storageOveruseBytes',
|
|
134
|
+
'storage_overuse_deletion_at': 'storageOveruseDeletionAt',
|
|
135
|
+
'storage_overuse_notification_count': 'storageOveruseNotificationCount',
|
|
128
136
|
'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
|
|
129
137
|
'teamspace_default_credits': 'teamspaceDefaultCredits',
|
|
130
138
|
'twitter_username': 'twitterUsername',
|
|
@@ -132,7 +140,7 @@ class V1Organization(object):
|
|
|
132
140
|
'workload_max_run_duration': 'workloadMaxRunDuration'
|
|
133
141
|
}
|
|
134
142
|
|
|
135
|
-
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
143
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, last_storage_overuse_notification_sent_at: 'datetime' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
136
144
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
137
145
|
self._alerts_config = None
|
|
138
146
|
self._allow_budgeting = None
|
|
@@ -166,12 +174,16 @@ class V1Organization(object):
|
|
|
166
174
|
self._full_story_start_date = None
|
|
167
175
|
self._general_teamspace = None
|
|
168
176
|
self._id = None
|
|
177
|
+
self._last_storage_overuse_notification_sent_at = None
|
|
169
178
|
self._location = None
|
|
170
179
|
self._name = None
|
|
171
180
|
self._preferred_cluster = None
|
|
172
181
|
self._preferred_deployment_provider = None
|
|
173
182
|
self._preferred_studio_provider = None
|
|
174
183
|
self._start_studios_on_spot_instance = None
|
|
184
|
+
self._storage_overuse_bytes = None
|
|
185
|
+
self._storage_overuse_deletion_at = None
|
|
186
|
+
self._storage_overuse_notification_count = None
|
|
175
187
|
self._switch_to_default_machine_on_idle = None
|
|
176
188
|
self._teamspace_default_credits = None
|
|
177
189
|
self._twitter_username = None
|
|
@@ -242,6 +254,8 @@ class V1Organization(object):
|
|
|
242
254
|
self.general_teamspace = general_teamspace
|
|
243
255
|
if id is not None:
|
|
244
256
|
self.id = id
|
|
257
|
+
if last_storage_overuse_notification_sent_at is not None:
|
|
258
|
+
self.last_storage_overuse_notification_sent_at = last_storage_overuse_notification_sent_at
|
|
245
259
|
if location is not None:
|
|
246
260
|
self.location = location
|
|
247
261
|
if name is not None:
|
|
@@ -254,6 +268,12 @@ class V1Organization(object):
|
|
|
254
268
|
self.preferred_studio_provider = preferred_studio_provider
|
|
255
269
|
if start_studios_on_spot_instance is not None:
|
|
256
270
|
self.start_studios_on_spot_instance = start_studios_on_spot_instance
|
|
271
|
+
if storage_overuse_bytes is not None:
|
|
272
|
+
self.storage_overuse_bytes = storage_overuse_bytes
|
|
273
|
+
if storage_overuse_deletion_at is not None:
|
|
274
|
+
self.storage_overuse_deletion_at = storage_overuse_deletion_at
|
|
275
|
+
if storage_overuse_notification_count is not None:
|
|
276
|
+
self.storage_overuse_notification_count = storage_overuse_notification_count
|
|
257
277
|
if switch_to_default_machine_on_idle is not None:
|
|
258
278
|
self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
259
279
|
if teamspace_default_credits is not None:
|
|
@@ -939,6 +959,27 @@ class V1Organization(object):
|
|
|
939
959
|
|
|
940
960
|
self._id = id
|
|
941
961
|
|
|
962
|
+
@property
|
|
963
|
+
def last_storage_overuse_notification_sent_at(self) -> 'datetime':
|
|
964
|
+
"""Gets the last_storage_overuse_notification_sent_at of this V1Organization. # noqa: E501
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
:return: The last_storage_overuse_notification_sent_at of this V1Organization. # noqa: E501
|
|
968
|
+
:rtype: datetime
|
|
969
|
+
"""
|
|
970
|
+
return self._last_storage_overuse_notification_sent_at
|
|
971
|
+
|
|
972
|
+
@last_storage_overuse_notification_sent_at.setter
|
|
973
|
+
def last_storage_overuse_notification_sent_at(self, last_storage_overuse_notification_sent_at: 'datetime'):
|
|
974
|
+
"""Sets the last_storage_overuse_notification_sent_at of this V1Organization.
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
:param last_storage_overuse_notification_sent_at: The last_storage_overuse_notification_sent_at of this V1Organization. # noqa: E501
|
|
978
|
+
:type: datetime
|
|
979
|
+
"""
|
|
980
|
+
|
|
981
|
+
self._last_storage_overuse_notification_sent_at = last_storage_overuse_notification_sent_at
|
|
982
|
+
|
|
942
983
|
@property
|
|
943
984
|
def location(self) -> 'str':
|
|
944
985
|
"""Gets the location of this V1Organization. # noqa: E501
|
|
@@ -1065,6 +1106,69 @@ class V1Organization(object):
|
|
|
1065
1106
|
|
|
1066
1107
|
self._start_studios_on_spot_instance = start_studios_on_spot_instance
|
|
1067
1108
|
|
|
1109
|
+
@property
|
|
1110
|
+
def storage_overuse_bytes(self) -> 'str':
|
|
1111
|
+
"""Gets the storage_overuse_bytes of this V1Organization. # noqa: E501
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
:return: The storage_overuse_bytes of this V1Organization. # noqa: E501
|
|
1115
|
+
:rtype: str
|
|
1116
|
+
"""
|
|
1117
|
+
return self._storage_overuse_bytes
|
|
1118
|
+
|
|
1119
|
+
@storage_overuse_bytes.setter
|
|
1120
|
+
def storage_overuse_bytes(self, storage_overuse_bytes: 'str'):
|
|
1121
|
+
"""Sets the storage_overuse_bytes of this V1Organization.
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
:param storage_overuse_bytes: The storage_overuse_bytes of this V1Organization. # noqa: E501
|
|
1125
|
+
:type: str
|
|
1126
|
+
"""
|
|
1127
|
+
|
|
1128
|
+
self._storage_overuse_bytes = storage_overuse_bytes
|
|
1129
|
+
|
|
1130
|
+
@property
|
|
1131
|
+
def storage_overuse_deletion_at(self) -> 'datetime':
|
|
1132
|
+
"""Gets the storage_overuse_deletion_at of this V1Organization. # noqa: E501
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
:return: The storage_overuse_deletion_at of this V1Organization. # noqa: E501
|
|
1136
|
+
:rtype: datetime
|
|
1137
|
+
"""
|
|
1138
|
+
return self._storage_overuse_deletion_at
|
|
1139
|
+
|
|
1140
|
+
@storage_overuse_deletion_at.setter
|
|
1141
|
+
def storage_overuse_deletion_at(self, storage_overuse_deletion_at: 'datetime'):
|
|
1142
|
+
"""Sets the storage_overuse_deletion_at of this V1Organization.
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
:param storage_overuse_deletion_at: The storage_overuse_deletion_at of this V1Organization. # noqa: E501
|
|
1146
|
+
:type: datetime
|
|
1147
|
+
"""
|
|
1148
|
+
|
|
1149
|
+
self._storage_overuse_deletion_at = storage_overuse_deletion_at
|
|
1150
|
+
|
|
1151
|
+
@property
|
|
1152
|
+
def storage_overuse_notification_count(self) -> 'int':
|
|
1153
|
+
"""Gets the storage_overuse_notification_count of this V1Organization. # noqa: E501
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
:return: The storage_overuse_notification_count of this V1Organization. # noqa: E501
|
|
1157
|
+
:rtype: int
|
|
1158
|
+
"""
|
|
1159
|
+
return self._storage_overuse_notification_count
|
|
1160
|
+
|
|
1161
|
+
@storage_overuse_notification_count.setter
|
|
1162
|
+
def storage_overuse_notification_count(self, storage_overuse_notification_count: 'int'):
|
|
1163
|
+
"""Sets the storage_overuse_notification_count of this V1Organization.
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
:param storage_overuse_notification_count: The storage_overuse_notification_count of this V1Organization. # noqa: E501
|
|
1167
|
+
:type: int
|
|
1168
|
+
"""
|
|
1169
|
+
|
|
1170
|
+
self._storage_overuse_notification_count = storage_overuse_notification_count
|
|
1171
|
+
|
|
1068
1172
|
@property
|
|
1069
1173
|
def switch_to_default_machine_on_idle(self) -> 'bool':
|
|
1070
1174
|
"""Gets the switch_to_default_machine_on_idle of this V1Organization. # noqa: E501
|
|
@@ -44,12 +44,17 @@ class V1ProjectStorage(object):
|
|
|
44
44
|
'billable_bytes': 'str',
|
|
45
45
|
'cloudspace_storage_bytes': 'str',
|
|
46
46
|
'container_registry_storage_bytes': 'str',
|
|
47
|
+
'daily_read_bytes': 'str',
|
|
48
|
+
'daily_write_bytes': 'str',
|
|
47
49
|
'data_connection_storage_bytes': 'str',
|
|
48
50
|
'display_name': 'str',
|
|
51
|
+
'efs_folder_bytes': 'str',
|
|
49
52
|
'estimated_daily_cost': 'float',
|
|
53
|
+
'estimated_efs_cost': 'float',
|
|
50
54
|
'folder_storage_bytes': 'str',
|
|
51
55
|
'id': 'str',
|
|
52
56
|
'job_storage_bytes': 'str',
|
|
57
|
+
'model_storage_bytes': 'str',
|
|
53
58
|
'total_storage_bytes': 'str',
|
|
54
59
|
'upload_storage_bytes': 'str'
|
|
55
60
|
}
|
|
@@ -58,27 +63,37 @@ class V1ProjectStorage(object):
|
|
|
58
63
|
'billable_bytes': 'billableBytes',
|
|
59
64
|
'cloudspace_storage_bytes': 'cloudspaceStorageBytes',
|
|
60
65
|
'container_registry_storage_bytes': 'containerRegistryStorageBytes',
|
|
66
|
+
'daily_read_bytes': 'dailyReadBytes',
|
|
67
|
+
'daily_write_bytes': 'dailyWriteBytes',
|
|
61
68
|
'data_connection_storage_bytes': 'dataConnectionStorageBytes',
|
|
62
69
|
'display_name': 'displayName',
|
|
70
|
+
'efs_folder_bytes': 'efsFolderBytes',
|
|
63
71
|
'estimated_daily_cost': 'estimatedDailyCost',
|
|
72
|
+
'estimated_efs_cost': 'estimatedEfsCost',
|
|
64
73
|
'folder_storage_bytes': 'folderStorageBytes',
|
|
65
74
|
'id': 'id',
|
|
66
75
|
'job_storage_bytes': 'jobStorageBytes',
|
|
76
|
+
'model_storage_bytes': 'modelStorageBytes',
|
|
67
77
|
'total_storage_bytes': 'totalStorageBytes',
|
|
68
78
|
'upload_storage_bytes': 'uploadStorageBytes'
|
|
69
79
|
}
|
|
70
80
|
|
|
71
|
-
def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, container_registry_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, estimated_daily_cost: 'float' =None, folder_storage_bytes: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, container_registry_storage_bytes: 'str' =None, daily_read_bytes: 'str' =None, daily_write_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, efs_folder_bytes: 'str' =None, estimated_daily_cost: 'float' =None, estimated_efs_cost: 'float' =None, folder_storage_bytes: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, model_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
72
82
|
"""V1ProjectStorage - a model defined in Swagger""" # noqa: E501
|
|
73
83
|
self._billable_bytes = None
|
|
74
84
|
self._cloudspace_storage_bytes = None
|
|
75
85
|
self._container_registry_storage_bytes = None
|
|
86
|
+
self._daily_read_bytes = None
|
|
87
|
+
self._daily_write_bytes = None
|
|
76
88
|
self._data_connection_storage_bytes = None
|
|
77
89
|
self._display_name = None
|
|
90
|
+
self._efs_folder_bytes = None
|
|
78
91
|
self._estimated_daily_cost = None
|
|
92
|
+
self._estimated_efs_cost = None
|
|
79
93
|
self._folder_storage_bytes = None
|
|
80
94
|
self._id = None
|
|
81
95
|
self._job_storage_bytes = None
|
|
96
|
+
self._model_storage_bytes = None
|
|
82
97
|
self._total_storage_bytes = None
|
|
83
98
|
self._upload_storage_bytes = None
|
|
84
99
|
self.discriminator = None
|
|
@@ -88,18 +103,28 @@ class V1ProjectStorage(object):
|
|
|
88
103
|
self.cloudspace_storage_bytes = cloudspace_storage_bytes
|
|
89
104
|
if container_registry_storage_bytes is not None:
|
|
90
105
|
self.container_registry_storage_bytes = container_registry_storage_bytes
|
|
106
|
+
if daily_read_bytes is not None:
|
|
107
|
+
self.daily_read_bytes = daily_read_bytes
|
|
108
|
+
if daily_write_bytes is not None:
|
|
109
|
+
self.daily_write_bytes = daily_write_bytes
|
|
91
110
|
if data_connection_storage_bytes is not None:
|
|
92
111
|
self.data_connection_storage_bytes = data_connection_storage_bytes
|
|
93
112
|
if display_name is not None:
|
|
94
113
|
self.display_name = display_name
|
|
114
|
+
if efs_folder_bytes is not None:
|
|
115
|
+
self.efs_folder_bytes = efs_folder_bytes
|
|
95
116
|
if estimated_daily_cost is not None:
|
|
96
117
|
self.estimated_daily_cost = estimated_daily_cost
|
|
118
|
+
if estimated_efs_cost is not None:
|
|
119
|
+
self.estimated_efs_cost = estimated_efs_cost
|
|
97
120
|
if folder_storage_bytes is not None:
|
|
98
121
|
self.folder_storage_bytes = folder_storage_bytes
|
|
99
122
|
if id is not None:
|
|
100
123
|
self.id = id
|
|
101
124
|
if job_storage_bytes is not None:
|
|
102
125
|
self.job_storage_bytes = job_storage_bytes
|
|
126
|
+
if model_storage_bytes is not None:
|
|
127
|
+
self.model_storage_bytes = model_storage_bytes
|
|
103
128
|
if total_storage_bytes is not None:
|
|
104
129
|
self.total_storage_bytes = total_storage_bytes
|
|
105
130
|
if upload_storage_bytes is not None:
|
|
@@ -168,6 +193,48 @@ class V1ProjectStorage(object):
|
|
|
168
193
|
|
|
169
194
|
self._container_registry_storage_bytes = container_registry_storage_bytes
|
|
170
195
|
|
|
196
|
+
@property
|
|
197
|
+
def daily_read_bytes(self) -> 'str':
|
|
198
|
+
"""Gets the daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:return: The daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
202
|
+
:rtype: str
|
|
203
|
+
"""
|
|
204
|
+
return self._daily_read_bytes
|
|
205
|
+
|
|
206
|
+
@daily_read_bytes.setter
|
|
207
|
+
def daily_read_bytes(self, daily_read_bytes: 'str'):
|
|
208
|
+
"""Sets the daily_read_bytes of this V1ProjectStorage.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:param daily_read_bytes: The daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
self._daily_read_bytes = daily_read_bytes
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def daily_write_bytes(self) -> 'str':
|
|
219
|
+
"""Gets the daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:return: The daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._daily_write_bytes
|
|
226
|
+
|
|
227
|
+
@daily_write_bytes.setter
|
|
228
|
+
def daily_write_bytes(self, daily_write_bytes: 'str'):
|
|
229
|
+
"""Sets the daily_write_bytes of this V1ProjectStorage.
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:param daily_write_bytes: The daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
233
|
+
:type: str
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
self._daily_write_bytes = daily_write_bytes
|
|
237
|
+
|
|
171
238
|
@property
|
|
172
239
|
def data_connection_storage_bytes(self) -> 'str':
|
|
173
240
|
"""Gets the data_connection_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -210,6 +277,27 @@ class V1ProjectStorage(object):
|
|
|
210
277
|
|
|
211
278
|
self._display_name = display_name
|
|
212
279
|
|
|
280
|
+
@property
|
|
281
|
+
def efs_folder_bytes(self) -> 'str':
|
|
282
|
+
"""Gets the efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:return: The efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
286
|
+
:rtype: str
|
|
287
|
+
"""
|
|
288
|
+
return self._efs_folder_bytes
|
|
289
|
+
|
|
290
|
+
@efs_folder_bytes.setter
|
|
291
|
+
def efs_folder_bytes(self, efs_folder_bytes: 'str'):
|
|
292
|
+
"""Sets the efs_folder_bytes of this V1ProjectStorage.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:param efs_folder_bytes: The efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
296
|
+
:type: str
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
self._efs_folder_bytes = efs_folder_bytes
|
|
300
|
+
|
|
213
301
|
@property
|
|
214
302
|
def estimated_daily_cost(self) -> 'float':
|
|
215
303
|
"""Gets the estimated_daily_cost of this V1ProjectStorage. # noqa: E501
|
|
@@ -231,6 +319,27 @@ class V1ProjectStorage(object):
|
|
|
231
319
|
|
|
232
320
|
self._estimated_daily_cost = estimated_daily_cost
|
|
233
321
|
|
|
322
|
+
@property
|
|
323
|
+
def estimated_efs_cost(self) -> 'float':
|
|
324
|
+
"""Gets the estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:return: The estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
328
|
+
:rtype: float
|
|
329
|
+
"""
|
|
330
|
+
return self._estimated_efs_cost
|
|
331
|
+
|
|
332
|
+
@estimated_efs_cost.setter
|
|
333
|
+
def estimated_efs_cost(self, estimated_efs_cost: 'float'):
|
|
334
|
+
"""Sets the estimated_efs_cost of this V1ProjectStorage.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param estimated_efs_cost: The estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
338
|
+
:type: float
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
self._estimated_efs_cost = estimated_efs_cost
|
|
342
|
+
|
|
234
343
|
@property
|
|
235
344
|
def folder_storage_bytes(self) -> 'str':
|
|
236
345
|
"""Gets the folder_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -294,6 +403,27 @@ class V1ProjectStorage(object):
|
|
|
294
403
|
|
|
295
404
|
self._job_storage_bytes = job_storage_bytes
|
|
296
405
|
|
|
406
|
+
@property
|
|
407
|
+
def model_storage_bytes(self) -> 'str':
|
|
408
|
+
"""Gets the model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._model_storage_bytes
|
|
415
|
+
|
|
416
|
+
@model_storage_bytes.setter
|
|
417
|
+
def model_storage_bytes(self, model_storage_bytes: 'str'):
|
|
418
|
+
"""Sets the model_storage_bytes of this V1ProjectStorage.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param model_storage_bytes: The model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
422
|
+
:type: str
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._model_storage_bytes = model_storage_bytes
|
|
426
|
+
|
|
297
427
|
@property
|
|
298
428
|
def total_storage_bytes(self) -> 'str':
|
|
299
429
|
"""Gets the total_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1StorageAsset(object):
|
|
|
46
46
|
'id': 'str',
|
|
47
47
|
'name': 'str',
|
|
48
48
|
'storage_bytes': 'str',
|
|
49
|
+
'sub_type': 'str',
|
|
49
50
|
'type': 'V1StorageAssetType'
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -55,16 +56,18 @@ class V1StorageAsset(object):
|
|
|
55
56
|
'id': 'id',
|
|
56
57
|
'name': 'name',
|
|
57
58
|
'storage_bytes': 'storageBytes',
|
|
59
|
+
'sub_type': 'subType',
|
|
58
60
|
'type': 'type'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, created_at: 'datetime' =None, created_by: 'str' =None, id: 'str' =None, name: 'str' =None, storage_bytes: 'str' =None, type: 'V1StorageAssetType' =None): # noqa: E501
|
|
63
|
+
def __init__(self, created_at: 'datetime' =None, created_by: 'str' =None, id: 'str' =None, name: 'str' =None, storage_bytes: 'str' =None, sub_type: 'str' =None, type: 'V1StorageAssetType' =None): # noqa: E501
|
|
62
64
|
"""V1StorageAsset - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._created_at = None
|
|
64
66
|
self._created_by = None
|
|
65
67
|
self._id = None
|
|
66
68
|
self._name = None
|
|
67
69
|
self._storage_bytes = None
|
|
70
|
+
self._sub_type = None
|
|
68
71
|
self._type = None
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if created_at is not None:
|
|
@@ -77,6 +80,8 @@ class V1StorageAsset(object):
|
|
|
77
80
|
self.name = name
|
|
78
81
|
if storage_bytes is not None:
|
|
79
82
|
self.storage_bytes = storage_bytes
|
|
83
|
+
if sub_type is not None:
|
|
84
|
+
self.sub_type = sub_type
|
|
80
85
|
if type is not None:
|
|
81
86
|
self.type = type
|
|
82
87
|
|
|
@@ -185,6 +190,27 @@ class V1StorageAsset(object):
|
|
|
185
190
|
|
|
186
191
|
self._storage_bytes = storage_bytes
|
|
187
192
|
|
|
193
|
+
@property
|
|
194
|
+
def sub_type(self) -> 'str':
|
|
195
|
+
"""Gets the sub_type of this V1StorageAsset. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The sub_type of this V1StorageAsset. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._sub_type
|
|
202
|
+
|
|
203
|
+
@sub_type.setter
|
|
204
|
+
def sub_type(self, sub_type: 'str'):
|
|
205
|
+
"""Sets the sub_type of this V1StorageAsset.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param sub_type: The sub_type of this V1StorageAsset. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._sub_type = sub_type
|
|
213
|
+
|
|
188
214
|
@property
|
|
189
215
|
def type(self) -> 'V1StorageAssetType':
|
|
190
216
|
"""Gets the type of this V1StorageAsset. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1Transaction(object):
|
|
|
44
44
|
'amount': 'float',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'display_name': 'str',
|
|
47
|
+
'project_name': 'str',
|
|
47
48
|
'type': 'str'
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -51,14 +52,16 @@ class V1Transaction(object):
|
|
|
51
52
|
'amount': 'amount',
|
|
52
53
|
'created_at': 'createdAt',
|
|
53
54
|
'display_name': 'displayName',
|
|
55
|
+
'project_name': 'projectName',
|
|
54
56
|
'type': 'type'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, display_name: 'str' =None, type: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, display_name: 'str' =None, project_name: 'str' =None, type: 'str' =None): # noqa: E501
|
|
58
60
|
"""V1Transaction - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._amount = None
|
|
60
62
|
self._created_at = None
|
|
61
63
|
self._display_name = None
|
|
64
|
+
self._project_name = None
|
|
62
65
|
self._type = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if amount is not None:
|
|
@@ -67,6 +70,8 @@ class V1Transaction(object):
|
|
|
67
70
|
self.created_at = created_at
|
|
68
71
|
if display_name is not None:
|
|
69
72
|
self.display_name = display_name
|
|
73
|
+
if project_name is not None:
|
|
74
|
+
self.project_name = project_name
|
|
70
75
|
if type is not None:
|
|
71
76
|
self.type = type
|
|
72
77
|
|
|
@@ -133,6 +138,27 @@ class V1Transaction(object):
|
|
|
133
138
|
|
|
134
139
|
self._display_name = display_name
|
|
135
140
|
|
|
141
|
+
@property
|
|
142
|
+
def project_name(self) -> 'str':
|
|
143
|
+
"""Gets the project_name of this V1Transaction. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The project_name of this V1Transaction. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._project_name
|
|
150
|
+
|
|
151
|
+
@project_name.setter
|
|
152
|
+
def project_name(self, project_name: 'str'):
|
|
153
|
+
"""Sets the project_name of this V1Transaction.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param project_name: The project_name of this V1Transaction. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._project_name = project_name
|
|
161
|
+
|
|
136
162
|
@property
|
|
137
163
|
def type(self) -> 'str':
|
|
138
164
|
"""Gets the type of this V1Transaction. # noqa: E501
|
|
@@ -48,9 +48,9 @@ class V1Usage(object):
|
|
|
48
48
|
'deleted_at': 'datetime',
|
|
49
49
|
'free': 'bool',
|
|
50
50
|
'id': 'str',
|
|
51
|
+
'instance_type': 'str',
|
|
51
52
|
'name': 'str',
|
|
52
53
|
'project_id': 'str',
|
|
53
|
-
'reservations': 'list[V1ReservationBillingSession]',
|
|
54
54
|
'resource_type': 'str',
|
|
55
55
|
'saved_cost': 'float',
|
|
56
56
|
'session_ended_at': 'datetime',
|
|
@@ -70,9 +70,9 @@ class V1Usage(object):
|
|
|
70
70
|
'deleted_at': 'deletedAt',
|
|
71
71
|
'free': 'free',
|
|
72
72
|
'id': 'id',
|
|
73
|
+
'instance_type': 'instanceType',
|
|
73
74
|
'name': 'name',
|
|
74
75
|
'project_id': 'projectId',
|
|
75
|
-
'reservations': 'reservations',
|
|
76
76
|
'resource_type': 'resourceType',
|
|
77
77
|
'saved_cost': 'savedCost',
|
|
78
78
|
'session_ended_at': 'sessionEndedAt',
|
|
@@ -84,7 +84,7 @@ class V1Usage(object):
|
|
|
84
84
|
'user_id': 'userId'
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None,
|
|
87
|
+
def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None, instance_type: 'str' =None, name: 'str' =None, project_id: 'str' =None, resource_type: 'str' =None, saved_cost: 'float' =None, session_ended_at: 'datetime' =None, session_started_at: 'datetime' =None, spot: 'bool' =None, total_completion_tokens: 'str' =None, total_num_messages: 'str' =None, total_prompt_tokens: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
88
88
|
"""V1Usage - a model defined in Swagger""" # noqa: E501
|
|
89
89
|
self._billed_time_seconds = None
|
|
90
90
|
self._cluster_id = None
|
|
@@ -93,9 +93,9 @@ class V1Usage(object):
|
|
|
93
93
|
self._deleted_at = None
|
|
94
94
|
self._free = None
|
|
95
95
|
self._id = None
|
|
96
|
+
self._instance_type = None
|
|
96
97
|
self._name = None
|
|
97
98
|
self._project_id = None
|
|
98
|
-
self._reservations = None
|
|
99
99
|
self._resource_type = None
|
|
100
100
|
self._saved_cost = None
|
|
101
101
|
self._session_ended_at = None
|
|
@@ -120,12 +120,12 @@ class V1Usage(object):
|
|
|
120
120
|
self.free = free
|
|
121
121
|
if id is not None:
|
|
122
122
|
self.id = id
|
|
123
|
+
if instance_type is not None:
|
|
124
|
+
self.instance_type = instance_type
|
|
123
125
|
if name is not None:
|
|
124
126
|
self.name = name
|
|
125
127
|
if project_id is not None:
|
|
126
128
|
self.project_id = project_id
|
|
127
|
-
if reservations is not None:
|
|
128
|
-
self.reservations = reservations
|
|
129
129
|
if resource_type is not None:
|
|
130
130
|
self.resource_type = resource_type
|
|
131
131
|
if saved_cost is not None:
|
|
@@ -292,6 +292,27 @@ class V1Usage(object):
|
|
|
292
292
|
|
|
293
293
|
self._id = id
|
|
294
294
|
|
|
295
|
+
@property
|
|
296
|
+
def instance_type(self) -> 'str':
|
|
297
|
+
"""Gets the instance_type of this V1Usage. # noqa: E501
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
:return: The instance_type of this V1Usage. # noqa: E501
|
|
301
|
+
:rtype: str
|
|
302
|
+
"""
|
|
303
|
+
return self._instance_type
|
|
304
|
+
|
|
305
|
+
@instance_type.setter
|
|
306
|
+
def instance_type(self, instance_type: 'str'):
|
|
307
|
+
"""Sets the instance_type of this V1Usage.
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
:param instance_type: The instance_type of this V1Usage. # noqa: E501
|
|
311
|
+
:type: str
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
self._instance_type = instance_type
|
|
315
|
+
|
|
295
316
|
@property
|
|
296
317
|
def name(self) -> 'str':
|
|
297
318
|
"""Gets the name of this V1Usage. # noqa: E501
|
|
@@ -334,27 +355,6 @@ class V1Usage(object):
|
|
|
334
355
|
|
|
335
356
|
self._project_id = project_id
|
|
336
357
|
|
|
337
|
-
@property
|
|
338
|
-
def reservations(self) -> 'list[V1ReservationBillingSession]':
|
|
339
|
-
"""Gets the reservations of this V1Usage. # noqa: E501
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
:return: The reservations of this V1Usage. # noqa: E501
|
|
343
|
-
:rtype: list[V1ReservationBillingSession]
|
|
344
|
-
"""
|
|
345
|
-
return self._reservations
|
|
346
|
-
|
|
347
|
-
@reservations.setter
|
|
348
|
-
def reservations(self, reservations: 'list[V1ReservationBillingSession]'):
|
|
349
|
-
"""Sets the reservations of this V1Usage.
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
:param reservations: The reservations of this V1Usage. # noqa: E501
|
|
353
|
-
:type: list[V1ReservationBillingSession]
|
|
354
|
-
"""
|
|
355
|
-
|
|
356
|
-
self._reservations = reservations
|
|
357
|
-
|
|
358
358
|
@property
|
|
359
359
|
def resource_type(self) -> 'str':
|
|
360
360
|
"""Gets the resource_type of this V1Usage. # noqa: E501
|