lightning-sdk 0.1.37__py3-none-any.whl → 0.1.39__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 (72) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +21 -23
  3. lightning_sdk/api/ai_hub_api.py +29 -4
  4. lightning_sdk/api/deployment_api.py +0 -2
  5. lightning_sdk/api/job_api.py +10 -2
  6. lightning_sdk/api/teamspace_api.py +22 -16
  7. lightning_sdk/api/utils.py +25 -3
  8. lightning_sdk/cli/ai_hub.py +1 -1
  9. lightning_sdk/cli/download.py +3 -5
  10. lightning_sdk/cli/run.py +24 -0
  11. lightning_sdk/cli/upload.py +3 -10
  12. lightning_sdk/job/base.py +35 -0
  13. lightning_sdk/job/job.py +18 -1
  14. lightning_sdk/job/v1.py +10 -1
  15. lightning_sdk/job/v2.py +16 -0
  16. lightning_sdk/lightning_cloud/openapi/__init__.py +13 -2
  17. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
  18. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +6 -1
  19. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +680 -62
  20. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  21. lightning_sdk/lightning_cloud/openapi/models/__init__.py +13 -2
  22. lightning_sdk/lightning_cloud/openapi/models/create.py +6 -32
  23. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +32 -6
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
  26. lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
  27. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +201 -0
  30. lightning_sdk/lightning_cloud/openapi/models/update.py +6 -32
  31. lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +32 -6
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +6 -32
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +29 -3
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +43 -17
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +32 -6
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/{v1_efs_data_connection.py → v1_efs_config.py} +22 -22
  44. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -53
  47. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +6 -6
  51. lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
  52. lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +53 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +409 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +106 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +279 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +2 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +6 -32
  62. lightning_sdk/lightning_cloud/openapi/models/validate.py +6 -32
  63. lightning_sdk/models.py +132 -0
  64. lightning_sdk/teamspace.py +8 -2
  65. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/METADATA +1 -1
  66. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/RECORD +70 -59
  67. lightning_sdk/cli/models.py +0 -68
  68. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +0 -201
  69. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/LICENSE +0 -0
  70. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/WHEEL +0 -0
  71. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/entry_points.txt +0 -0
  72. {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,279 @@
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 V1MultiMachineJobStatus(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
+ 'deleting_machines': 'str',
45
+ 'failing_machines': 'str',
46
+ 'message': 'str',
47
+ 'pending_machines': 'str',
48
+ 'ready_machines': 'str',
49
+ 'started_at': 'datetime',
50
+ 'stopped_at': 'datetime'
51
+ }
52
+
53
+ attribute_map = {
54
+ 'deleting_machines': 'deletingMachines',
55
+ 'failing_machines': 'failingMachines',
56
+ 'message': 'message',
57
+ 'pending_machines': 'pendingMachines',
58
+ 'ready_machines': 'readyMachines',
59
+ 'started_at': 'startedAt',
60
+ 'stopped_at': 'stoppedAt'
61
+ }
62
+
63
+ def __init__(self, deleting_machines: 'str' =None, failing_machines: 'str' =None, message: 'str' =None, pending_machines: 'str' =None, ready_machines: 'str' =None, started_at: 'datetime' =None, stopped_at: 'datetime' =None): # noqa: E501
64
+ """V1MultiMachineJobStatus - a model defined in Swagger""" # noqa: E501
65
+ self._deleting_machines = None
66
+ self._failing_machines = None
67
+ self._message = None
68
+ self._pending_machines = None
69
+ self._ready_machines = None
70
+ self._started_at = None
71
+ self._stopped_at = None
72
+ self.discriminator = None
73
+ if deleting_machines is not None:
74
+ self.deleting_machines = deleting_machines
75
+ if failing_machines is not None:
76
+ self.failing_machines = failing_machines
77
+ if message is not None:
78
+ self.message = message
79
+ if pending_machines is not None:
80
+ self.pending_machines = pending_machines
81
+ if ready_machines is not None:
82
+ self.ready_machines = ready_machines
83
+ if started_at is not None:
84
+ self.started_at = started_at
85
+ if stopped_at is not None:
86
+ self.stopped_at = stopped_at
87
+
88
+ @property
89
+ def deleting_machines(self) -> 'str':
90
+ """Gets the deleting_machines of this V1MultiMachineJobStatus. # noqa: E501
91
+
92
+
93
+ :return: The deleting_machines of this V1MultiMachineJobStatus. # noqa: E501
94
+ :rtype: str
95
+ """
96
+ return self._deleting_machines
97
+
98
+ @deleting_machines.setter
99
+ def deleting_machines(self, deleting_machines: 'str'):
100
+ """Sets the deleting_machines of this V1MultiMachineJobStatus.
101
+
102
+
103
+ :param deleting_machines: The deleting_machines of this V1MultiMachineJobStatus. # noqa: E501
104
+ :type: str
105
+ """
106
+
107
+ self._deleting_machines = deleting_machines
108
+
109
+ @property
110
+ def failing_machines(self) -> 'str':
111
+ """Gets the failing_machines of this V1MultiMachineJobStatus. # noqa: E501
112
+
113
+
114
+ :return: The failing_machines of this V1MultiMachineJobStatus. # noqa: E501
115
+ :rtype: str
116
+ """
117
+ return self._failing_machines
118
+
119
+ @failing_machines.setter
120
+ def failing_machines(self, failing_machines: 'str'):
121
+ """Sets the failing_machines of this V1MultiMachineJobStatus.
122
+
123
+
124
+ :param failing_machines: The failing_machines of this V1MultiMachineJobStatus. # noqa: E501
125
+ :type: str
126
+ """
127
+
128
+ self._failing_machines = failing_machines
129
+
130
+ @property
131
+ def message(self) -> 'str':
132
+ """Gets the message of this V1MultiMachineJobStatus. # noqa: E501
133
+
134
+
135
+ :return: The message of this V1MultiMachineJobStatus. # noqa: E501
136
+ :rtype: str
137
+ """
138
+ return self._message
139
+
140
+ @message.setter
141
+ def message(self, message: 'str'):
142
+ """Sets the message of this V1MultiMachineJobStatus.
143
+
144
+
145
+ :param message: The message of this V1MultiMachineJobStatus. # noqa: E501
146
+ :type: str
147
+ """
148
+
149
+ self._message = message
150
+
151
+ @property
152
+ def pending_machines(self) -> 'str':
153
+ """Gets the pending_machines of this V1MultiMachineJobStatus. # noqa: E501
154
+
155
+
156
+ :return: The pending_machines of this V1MultiMachineJobStatus. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._pending_machines
160
+
161
+ @pending_machines.setter
162
+ def pending_machines(self, pending_machines: 'str'):
163
+ """Sets the pending_machines of this V1MultiMachineJobStatus.
164
+
165
+
166
+ :param pending_machines: The pending_machines of this V1MultiMachineJobStatus. # noqa: E501
167
+ :type: str
168
+ """
169
+
170
+ self._pending_machines = pending_machines
171
+
172
+ @property
173
+ def ready_machines(self) -> 'str':
174
+ """Gets the ready_machines of this V1MultiMachineJobStatus. # noqa: E501
175
+
176
+
177
+ :return: The ready_machines of this V1MultiMachineJobStatus. # noqa: E501
178
+ :rtype: str
179
+ """
180
+ return self._ready_machines
181
+
182
+ @ready_machines.setter
183
+ def ready_machines(self, ready_machines: 'str'):
184
+ """Sets the ready_machines of this V1MultiMachineJobStatus.
185
+
186
+
187
+ :param ready_machines: The ready_machines of this V1MultiMachineJobStatus. # noqa: E501
188
+ :type: str
189
+ """
190
+
191
+ self._ready_machines = ready_machines
192
+
193
+ @property
194
+ def started_at(self) -> 'datetime':
195
+ """Gets the started_at of this V1MultiMachineJobStatus. # noqa: E501
196
+
197
+
198
+ :return: The started_at of this V1MultiMachineJobStatus. # noqa: E501
199
+ :rtype: datetime
200
+ """
201
+ return self._started_at
202
+
203
+ @started_at.setter
204
+ def started_at(self, started_at: 'datetime'):
205
+ """Sets the started_at of this V1MultiMachineJobStatus.
206
+
207
+
208
+ :param started_at: The started_at of this V1MultiMachineJobStatus. # noqa: E501
209
+ :type: datetime
210
+ """
211
+
212
+ self._started_at = started_at
213
+
214
+ @property
215
+ def stopped_at(self) -> 'datetime':
216
+ """Gets the stopped_at of this V1MultiMachineJobStatus. # noqa: E501
217
+
218
+
219
+ :return: The stopped_at of this V1MultiMachineJobStatus. # noqa: E501
220
+ :rtype: datetime
221
+ """
222
+ return self._stopped_at
223
+
224
+ @stopped_at.setter
225
+ def stopped_at(self, stopped_at: 'datetime'):
226
+ """Sets the stopped_at of this V1MultiMachineJobStatus.
227
+
228
+
229
+ :param stopped_at: The stopped_at of this V1MultiMachineJobStatus. # noqa: E501
230
+ :type: datetime
231
+ """
232
+
233
+ self._stopped_at = stopped_at
234
+
235
+ def to_dict(self) -> dict:
236
+ """Returns the model properties as a dict"""
237
+ result = {}
238
+
239
+ for attr, _ in six.iteritems(self.swagger_types):
240
+ value = getattr(self, attr)
241
+ if isinstance(value, list):
242
+ result[attr] = list(map(
243
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
244
+ value
245
+ ))
246
+ elif hasattr(value, "to_dict"):
247
+ result[attr] = value.to_dict()
248
+ elif isinstance(value, dict):
249
+ result[attr] = dict(map(
250
+ lambda item: (item[0], item[1].to_dict())
251
+ if hasattr(item[1], "to_dict") else item,
252
+ value.items()
253
+ ))
254
+ else:
255
+ result[attr] = value
256
+ if issubclass(V1MultiMachineJobStatus, dict):
257
+ for key, value in self.items():
258
+ result[key] = value
259
+
260
+ return result
261
+
262
+ def to_str(self) -> str:
263
+ """Returns the string representation of the model"""
264
+ return pprint.pformat(self.to_dict())
265
+
266
+ def __repr__(self) -> str:
267
+ """For `print` and `pprint`"""
268
+ return self.to_str()
269
+
270
+ def __eq__(self, other: 'V1MultiMachineJobStatus') -> bool:
271
+ """Returns true if both objects are equal"""
272
+ if not isinstance(other, V1MultiMachineJobStatus):
273
+ return False
274
+
275
+ return self.__dict__ == other.__dict__
276
+
277
+ def __ne__(self, other: 'V1MultiMachineJobStatus') -> bool:
278
+ """Returns true if both objects are not equal"""
279
+ return not self == other
@@ -70,6 +70,8 @@ class V1RuleResource(object):
70
70
  MANAGEDENDPOINT = "managedEndpoint"
71
71
  JOB = "job"
72
72
  DEPLOYMENT = "deployment"
73
+ MODEL = "model"
74
+ SLURMJOB = "slurmJob"
73
75
  """
74
76
  Attributes:
75
77
  swagger_types (dict): The key is attribute name
@@ -54,6 +54,7 @@ class V1SystemInfo(object):
54
54
  'gpu_count': 'int',
55
55
  'gpu_memory_gb': 'int',
56
56
  'gpu_name': 'str',
57
+ 'hostname': 'str',
57
58
  'hyperparameters': 'str',
58
59
  'installed_packages': 'str',
59
60
  'litlogger_version': 'str',
@@ -76,6 +77,7 @@ class V1SystemInfo(object):
76
77
  'gpu_count': 'gpuCount',
77
78
  'gpu_memory_gb': 'gpuMemoryGb',
78
79
  'gpu_name': 'gpuName',
80
+ 'hostname': 'hostname',
79
81
  'hyperparameters': 'hyperparameters',
80
82
  'installed_packages': 'installedPackages',
81
83
  'litlogger_version': 'litloggerVersion',
@@ -84,7 +86,7 @@ class V1SystemInfo(object):
84
86
  'system_memory_gb': 'systemMemoryGb'
85
87
  }
86
88
 
87
- def __init__(self, cli_args: 'str' =None, cpu_count_logical: 'int' =None, cpu_count_physical: 'int' =None, cpu_name: 'str' =None, cuda_version: 'str' =None, cudnn_version: 'str' =None, execution_command: 'str' =None, git_branch: 'str' =None, git_commit_hash: 'str' =None, git_repo_name: 'str' =None, gpu_count: 'int' =None, gpu_memory_gb: 'int' =None, gpu_name: 'str' =None, hyperparameters: 'str' =None, installed_packages: 'str' =None, litlogger_version: 'str' =None, os_name: 'str' =None, python_version: 'str' =None, system_memory_gb: 'int' =None): # noqa: E501
89
+ def __init__(self, cli_args: 'str' =None, cpu_count_logical: 'int' =None, cpu_count_physical: 'int' =None, cpu_name: 'str' =None, cuda_version: 'str' =None, cudnn_version: 'str' =None, execution_command: 'str' =None, git_branch: 'str' =None, git_commit_hash: 'str' =None, git_repo_name: 'str' =None, gpu_count: 'int' =None, gpu_memory_gb: 'int' =None, gpu_name: 'str' =None, hostname: 'str' =None, hyperparameters: 'str' =None, installed_packages: 'str' =None, litlogger_version: 'str' =None, os_name: 'str' =None, python_version: 'str' =None, system_memory_gb: 'int' =None): # noqa: E501
88
90
  """V1SystemInfo - a model defined in Swagger""" # noqa: E501
89
91
  self._cli_args = None
90
92
  self._cpu_count_logical = None
@@ -99,6 +101,7 @@ class V1SystemInfo(object):
99
101
  self._gpu_count = None
100
102
  self._gpu_memory_gb = None
101
103
  self._gpu_name = None
104
+ self._hostname = None
102
105
  self._hyperparameters = None
103
106
  self._installed_packages = None
104
107
  self._litlogger_version = None
@@ -132,6 +135,8 @@ class V1SystemInfo(object):
132
135
  self.gpu_memory_gb = gpu_memory_gb
133
136
  if gpu_name is not None:
134
137
  self.gpu_name = gpu_name
138
+ if hostname is not None:
139
+ self.hostname = hostname
135
140
  if hyperparameters is not None:
136
141
  self.hyperparameters = hyperparameters
137
142
  if installed_packages is not None:
@@ -418,6 +423,27 @@ class V1SystemInfo(object):
418
423
 
419
424
  self._gpu_name = gpu_name
420
425
 
426
+ @property
427
+ def hostname(self) -> 'str':
428
+ """Gets the hostname of this V1SystemInfo. # noqa: E501
429
+
430
+
431
+ :return: The hostname of this V1SystemInfo. # noqa: E501
432
+ :rtype: str
433
+ """
434
+ return self._hostname
435
+
436
+ @hostname.setter
437
+ def hostname(self, hostname: 'str'):
438
+ """Sets the hostname of this V1SystemInfo.
439
+
440
+
441
+ :param hostname: The hostname of this V1SystemInfo. # noqa: E501
442
+ :type: str
443
+ """
444
+
445
+ self._hostname = hostname
446
+
421
447
  @property
422
448
  def hyperparameters(self) -> 'str':
423
449
  """Gets the hyperparameters of this V1SystemInfo. # noqa: E501
@@ -44,6 +44,7 @@ class V1UserFeatures(object):
44
44
  'advanced_deployment_autoscaling': 'bool',
45
45
  'affiliate_links': 'bool',
46
46
  'agents_v2': 'bool',
47
+ 'ai_hub_monetization': 'bool',
47
48
  'auto_fast_load': 'bool',
48
49
  'auto_join_orgs': 'bool',
49
50
  'aws_trainium': 'bool',
@@ -112,6 +113,7 @@ class V1UserFeatures(object):
112
113
  'show_dev_admin': 'bool',
113
114
  'slurm': 'bool',
114
115
  'slurm_machine_selector': 'bool',
116
+ 'snapshotter_service': 'bool',
115
117
  'snowflake_connection': 'bool',
116
118
  'spot_v2': 'bool',
117
119
  'studio_config': 'bool',
@@ -126,6 +128,7 @@ class V1UserFeatures(object):
126
128
  'advanced_deployment_autoscaling': 'advancedDeploymentAutoscaling',
127
129
  'affiliate_links': 'affiliateLinks',
128
130
  'agents_v2': 'agentsV2',
131
+ 'ai_hub_monetization': 'aiHubMonetization',
129
132
  'auto_fast_load': 'autoFastLoad',
130
133
  'auto_join_orgs': 'autoJoinOrgs',
131
134
  'aws_trainium': 'awsTrainium',
@@ -194,6 +197,7 @@ class V1UserFeatures(object):
194
197
  'show_dev_admin': 'showDevAdmin',
195
198
  'slurm': 'slurm',
196
199
  'slurm_machine_selector': 'slurmMachineSelector',
200
+ 'snapshotter_service': 'snapshotterService',
197
201
  'snowflake_connection': 'snowflakeConnection',
198
202
  'spot_v2': 'spotV2',
199
203
  'studio_config': 'studioConfig',
@@ -204,11 +208,12 @@ class V1UserFeatures(object):
204
208
  'writable_data_connections': 'writableDataConnections'
205
209
  }
206
210
 
207
- def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, aws_trainium: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, cluster_proxy: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, crypto_monitoring: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, dynamic_workload_scheduling: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, s3_folders: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
211
+ def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, aws_trainium: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, cluster_proxy: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, crypto_monitoring: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, dynamic_workload_scheduling: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, s3_folders: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snapshotter_service: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
208
212
  """V1UserFeatures - a model defined in Swagger""" # noqa: E501
209
213
  self._advanced_deployment_autoscaling = None
210
214
  self._affiliate_links = None
211
215
  self._agents_v2 = None
216
+ self._ai_hub_monetization = None
212
217
  self._auto_fast_load = None
213
218
  self._auto_join_orgs = None
214
219
  self._aws_trainium = None
@@ -277,6 +282,7 @@ class V1UserFeatures(object):
277
282
  self._show_dev_admin = None
278
283
  self._slurm = None
279
284
  self._slurm_machine_selector = None
285
+ self._snapshotter_service = None
280
286
  self._snowflake_connection = None
281
287
  self._spot_v2 = None
282
288
  self._studio_config = None
@@ -292,6 +298,8 @@ class V1UserFeatures(object):
292
298
  self.affiliate_links = affiliate_links
293
299
  if agents_v2 is not None:
294
300
  self.agents_v2 = agents_v2
301
+ if ai_hub_monetization is not None:
302
+ self.ai_hub_monetization = ai_hub_monetization
295
303
  if auto_fast_load is not None:
296
304
  self.auto_fast_load = auto_fast_load
297
305
  if auto_join_orgs is not None:
@@ -428,6 +436,8 @@ class V1UserFeatures(object):
428
436
  self.slurm = slurm
429
437
  if slurm_machine_selector is not None:
430
438
  self.slurm_machine_selector = slurm_machine_selector
439
+ if snapshotter_service is not None:
440
+ self.snapshotter_service = snapshotter_service
431
441
  if snowflake_connection is not None:
432
442
  self.snowflake_connection = snowflake_connection
433
443
  if spot_v2 is not None:
@@ -508,6 +518,27 @@ class V1UserFeatures(object):
508
518
 
509
519
  self._agents_v2 = agents_v2
510
520
 
521
+ @property
522
+ def ai_hub_monetization(self) -> 'bool':
523
+ """Gets the ai_hub_monetization of this V1UserFeatures. # noqa: E501
524
+
525
+
526
+ :return: The ai_hub_monetization of this V1UserFeatures. # noqa: E501
527
+ :rtype: bool
528
+ """
529
+ return self._ai_hub_monetization
530
+
531
+ @ai_hub_monetization.setter
532
+ def ai_hub_monetization(self, ai_hub_monetization: 'bool'):
533
+ """Sets the ai_hub_monetization of this V1UserFeatures.
534
+
535
+
536
+ :param ai_hub_monetization: The ai_hub_monetization of this V1UserFeatures. # noqa: E501
537
+ :type: bool
538
+ """
539
+
540
+ self._ai_hub_monetization = ai_hub_monetization
541
+
511
542
  @property
512
543
  def auto_fast_load(self) -> 'bool':
513
544
  """Gets the auto_fast_load of this V1UserFeatures. # noqa: E501
@@ -1936,6 +1967,27 @@ class V1UserFeatures(object):
1936
1967
 
1937
1968
  self._slurm_machine_selector = slurm_machine_selector
1938
1969
 
1970
+ @property
1971
+ def snapshotter_service(self) -> 'bool':
1972
+ """Gets the snapshotter_service of this V1UserFeatures. # noqa: E501
1973
+
1974
+
1975
+ :return: The snapshotter_service of this V1UserFeatures. # noqa: E501
1976
+ :rtype: bool
1977
+ """
1978
+ return self._snapshotter_service
1979
+
1980
+ @snapshotter_service.setter
1981
+ def snapshotter_service(self, snapshotter_service: 'bool'):
1982
+ """Sets the snapshotter_service of this V1UserFeatures.
1983
+
1984
+
1985
+ :param snapshotter_service: The snapshotter_service of this V1UserFeatures. # noqa: E501
1986
+ :type: bool
1987
+ """
1988
+
1989
+ self._snapshotter_service = snapshotter_service
1990
+
1939
1991
  @property
1940
1992
  def snowflake_connection(self) -> 'bool':
1941
1993
  """Gets the snowflake_connection of this V1UserFeatures. # noqa: E501
@@ -48,6 +48,7 @@ class V1UserRequestedComputeConfig(object):
48
48
  'gpu_image_override': 'str',
49
49
  'id': 'str',
50
50
  'name': 'str',
51
+ 'requested_run_duration_seconds': 'str',
51
52
  'same_compute_on_resume': 'bool',
52
53
  'shm_size': 'int',
53
54
  'spot': 'bool'
@@ -61,12 +62,13 @@ class V1UserRequestedComputeConfig(object):
61
62
  'gpu_image_override': 'gpuImageOverride',
62
63
  'id': 'id',
63
64
  'name': 'name',
65
+ 'requested_run_duration_seconds': 'requestedRunDurationSeconds',
64
66
  'same_compute_on_resume': 'sameComputeOnResume',
65
67
  'shm_size': 'shmSize',
66
68
  'spot': 'spot'
67
69
  }
68
70
 
69
- def __init__(self, affinity_identifier: 'str' =None, count: 'int' =None, cpu_image_override: 'str' =None, disk_size: 'int' =None, gpu_image_override: 'str' =None, id: 'str' =None, name: 'str' =None, same_compute_on_resume: 'bool' =None, shm_size: 'int' =None, spot: 'bool' =None): # noqa: E501
71
+ def __init__(self, affinity_identifier: 'str' =None, count: 'int' =None, cpu_image_override: 'str' =None, disk_size: 'int' =None, gpu_image_override: 'str' =None, id: 'str' =None, name: 'str' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, shm_size: 'int' =None, spot: 'bool' =None): # noqa: E501
70
72
  """V1UserRequestedComputeConfig - a model defined in Swagger""" # noqa: E501
71
73
  self._affinity_identifier = None
72
74
  self._count = None
@@ -75,6 +77,7 @@ class V1UserRequestedComputeConfig(object):
75
77
  self._gpu_image_override = None
76
78
  self._id = None
77
79
  self._name = None
80
+ self._requested_run_duration_seconds = None
78
81
  self._same_compute_on_resume = None
79
82
  self._shm_size = None
80
83
  self._spot = None
@@ -93,6 +96,8 @@ class V1UserRequestedComputeConfig(object):
93
96
  self.id = id
94
97
  if name is not None:
95
98
  self.name = name
99
+ if requested_run_duration_seconds is not None:
100
+ self.requested_run_duration_seconds = requested_run_duration_seconds
96
101
  if same_compute_on_resume is not None:
97
102
  self.same_compute_on_resume = same_compute_on_resume
98
103
  if shm_size is not None:
@@ -253,6 +258,27 @@ class V1UserRequestedComputeConfig(object):
253
258
 
254
259
  self._name = name
255
260
 
261
+ @property
262
+ def requested_run_duration_seconds(self) -> 'str':
263
+ """Gets the requested_run_duration_seconds of this V1UserRequestedComputeConfig. # noqa: E501
264
+
265
+
266
+ :return: The requested_run_duration_seconds of this V1UserRequestedComputeConfig. # noqa: E501
267
+ :rtype: str
268
+ """
269
+ return self._requested_run_duration_seconds
270
+
271
+ @requested_run_duration_seconds.setter
272
+ def requested_run_duration_seconds(self, requested_run_duration_seconds: 'str'):
273
+ """Sets the requested_run_duration_seconds of this V1UserRequestedComputeConfig.
274
+
275
+
276
+ :param requested_run_duration_seconds: The requested_run_duration_seconds of this V1UserRequestedComputeConfig. # noqa: E501
277
+ :type: str
278
+ """
279
+
280
+ self._requested_run_duration_seconds = requested_run_duration_seconds
281
+
256
282
  @property
257
283
  def same_compute_on_resume(self) -> 'bool':
258
284
  """Gets the same_compute_on_resume of this V1UserRequestedComputeConfig. # noqa: E501
@@ -42,8 +42,7 @@ class V1ValidateDataConnectionResponse(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'aws': 'V1AwsDataConnection',
45
- 'efs': 'V1EfsDataConnection',
46
- 'efs_folder': 'V1EFSFolderDataConnection',
45
+ 'efs': 'V1EfsConfig',
47
46
  'gcp': 'V1GcpDataConnection',
48
47
  'gcs_folder': 'V1GCSFolderDataConnection',
49
48
  's3_folder': 'V1S3FolderDataConnection'
@@ -52,17 +51,15 @@ class V1ValidateDataConnectionResponse(object):
52
51
  attribute_map = {
53
52
  'aws': 'aws',
54
53
  'efs': 'efs',
55
- 'efs_folder': 'efsFolder',
56
54
  'gcp': 'gcp',
57
55
  'gcs_folder': 'gcsFolder',
58
56
  's3_folder': 's3Folder'
59
57
  }
60
58
 
61
- def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, s3_folder: 'V1S3FolderDataConnection' =None): # noqa: E501
59
+ def __init__(self, aws: 'V1AwsDataConnection' =None, efs: 'V1EfsConfig' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, s3_folder: 'V1S3FolderDataConnection' =None): # noqa: E501
62
60
  """V1ValidateDataConnectionResponse - a model defined in Swagger""" # noqa: E501
63
61
  self._aws = None
64
62
  self._efs = None
65
- self._efs_folder = None
66
63
  self._gcp = None
67
64
  self._gcs_folder = None
68
65
  self._s3_folder = None
@@ -71,8 +68,6 @@ class V1ValidateDataConnectionResponse(object):
71
68
  self.aws = aws
72
69
  if efs is not None:
73
70
  self.efs = efs
74
- if efs_folder is not None:
75
- self.efs_folder = efs_folder
76
71
  if gcp is not None:
77
72
  self.gcp = gcp
78
73
  if gcs_folder is not None:
@@ -102,47 +97,26 @@ class V1ValidateDataConnectionResponse(object):
102
97
  self._aws = aws
103
98
 
104
99
  @property
105
- def efs(self) -> 'V1EfsDataConnection':
100
+ def efs(self) -> 'V1EfsConfig':
106
101
  """Gets the efs of this V1ValidateDataConnectionResponse. # noqa: E501
107
102
 
108
103
 
109
104
  :return: The efs of this V1ValidateDataConnectionResponse. # noqa: E501
110
- :rtype: V1EfsDataConnection
105
+ :rtype: V1EfsConfig
111
106
  """
112
107
  return self._efs
113
108
 
114
109
  @efs.setter
115
- def efs(self, efs: 'V1EfsDataConnection'):
110
+ def efs(self, efs: 'V1EfsConfig'):
116
111
  """Sets the efs of this V1ValidateDataConnectionResponse.
117
112
 
118
113
 
119
114
  :param efs: The efs of this V1ValidateDataConnectionResponse. # noqa: E501
120
- :type: V1EfsDataConnection
115
+ :type: V1EfsConfig
121
116
  """
122
117
 
123
118
  self._efs = efs
124
119
 
125
- @property
126
- def efs_folder(self) -> 'V1EFSFolderDataConnection':
127
- """Gets the efs_folder of this V1ValidateDataConnectionResponse. # noqa: E501
128
-
129
-
130
- :return: The efs_folder of this V1ValidateDataConnectionResponse. # noqa: E501
131
- :rtype: V1EFSFolderDataConnection
132
- """
133
- return self._efs_folder
134
-
135
- @efs_folder.setter
136
- def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
137
- """Sets the efs_folder of this V1ValidateDataConnectionResponse.
138
-
139
-
140
- :param efs_folder: The efs_folder of this V1ValidateDataConnectionResponse. # noqa: E501
141
- :type: V1EFSFolderDataConnection
142
- """
143
-
144
- self._efs_folder = efs_folder
145
-
146
120
  @property
147
121
  def gcp(self) -> 'V1GcpDataConnection':
148
122
  """Gets the gcp of this V1ValidateDataConnectionResponse. # noqa: E501