lightning-sdk 0.1.35__py3-none-any.whl → 0.1.36__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 (28) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +10 -5
  3. lightning_sdk/api/ai_hub_api.py +49 -19
  4. lightning_sdk/api/utils.py +1 -0
  5. lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
  6. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
  7. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  8. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
  9. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  10. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  11. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +27 -1
  12. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +1 -0
  13. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +27 -1
  14. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  16. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +1 -27
  18. lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -1
  21. lightning_sdk/lightning_cloud/rest_client.py +1 -4
  22. lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
  23. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/METADATA +1 -2
  24. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/RECORD +28 -28
  25. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/LICENSE +0 -0
  26. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/WHEEL +0 -0
  27. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/entry_points.txt +0 -0
  28. {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.36.dist-info}/top_level.txt +0 -0
@@ -44,6 +44,7 @@ class V1GetModelFilesResponse(object):
44
44
  'filepaths': 'list[str]',
45
45
  'model_id': 'str',
46
46
  'project_id': 'str',
47
+ 'size_bytes': 'str',
47
48
  'version': 'str'
48
49
  }
49
50
 
@@ -51,14 +52,16 @@ class V1GetModelFilesResponse(object):
51
52
  'filepaths': 'filepaths',
52
53
  'model_id': 'modelId',
53
54
  'project_id': 'projectId',
55
+ 'size_bytes': 'sizeBytes',
54
56
  'version': 'version'
55
57
  }
56
58
 
57
- def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, version: 'str' =None): # noqa: E501
59
+ def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, version: 'str' =None): # noqa: E501
58
60
  """V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
59
61
  self._filepaths = None
60
62
  self._model_id = None
61
63
  self._project_id = None
64
+ self._size_bytes = None
62
65
  self._version = None
63
66
  self.discriminator = None
64
67
  if filepaths is not None:
@@ -67,6 +70,8 @@ class V1GetModelFilesResponse(object):
67
70
  self.model_id = model_id
68
71
  if project_id is not None:
69
72
  self.project_id = project_id
73
+ if size_bytes is not None:
74
+ self.size_bytes = size_bytes
70
75
  if version is not None:
71
76
  self.version = version
72
77
 
@@ -133,6 +138,27 @@ class V1GetModelFilesResponse(object):
133
138
 
134
139
  self._project_id = project_id
135
140
 
141
+ @property
142
+ def size_bytes(self) -> 'str':
143
+ """Gets the size_bytes of this V1GetModelFilesResponse. # noqa: E501
144
+
145
+
146
+ :return: The size_bytes of this V1GetModelFilesResponse. # noqa: E501
147
+ :rtype: str
148
+ """
149
+ return self._size_bytes
150
+
151
+ @size_bytes.setter
152
+ def size_bytes(self, size_bytes: 'str'):
153
+ """Sets the size_bytes of this V1GetModelFilesResponse.
154
+
155
+
156
+ :param size_bytes: The size_bytes of this V1GetModelFilesResponse. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._size_bytes = size_bytes
161
+
136
162
  @property
137
163
  def version(self) -> 'str':
138
164
  """Gets the version of this V1GetModelFilesResponse. # noqa: E501
@@ -45,6 +45,7 @@ class V1GetUserResponse(object):
45
45
  'api_key': 'str',
46
46
  'country': 'str',
47
47
  'email': 'str',
48
+ 'experimentation_id': 'str',
48
49
  'features': 'V1UserFeatures',
49
50
  'first_name': 'str',
50
51
  'general_audience_mode': 'bool',
@@ -80,6 +81,7 @@ class V1GetUserResponse(object):
80
81
  'api_key': 'apiKey',
81
82
  'country': 'country',
82
83
  'email': 'email',
84
+ 'experimentation_id': 'experimentationId',
83
85
  'features': 'features',
84
86
  'first_name': 'firstName',
85
87
  'general_audience_mode': 'generalAudienceMode',
@@ -110,12 +112,13 @@ class V1GetUserResponse(object):
110
112
  'website': 'website'
111
113
  }
112
114
 
113
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, email: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =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
115
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =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, 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
114
116
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
115
117
  self._agree_to_terms_and_conditions = None
116
118
  self._api_key = None
117
119
  self._country = None
118
120
  self._email = None
121
+ self._experimentation_id = None
119
122
  self._features = None
120
123
  self._first_name = None
121
124
  self._general_audience_mode = None
@@ -153,6 +156,8 @@ class V1GetUserResponse(object):
153
156
  self.country = country
154
157
  if email is not None:
155
158
  self.email = email
159
+ if experimentation_id is not None:
160
+ self.experimentation_id = experimentation_id
156
161
  if features is not None:
157
162
  self.features = features
158
163
  if first_name is not None:
@@ -294,6 +299,27 @@ class V1GetUserResponse(object):
294
299
 
295
300
  self._email = email
296
301
 
302
+ @property
303
+ def experimentation_id(self) -> 'str':
304
+ """Gets the experimentation_id of this V1GetUserResponse. # noqa: E501
305
+
306
+
307
+ :return: The experimentation_id of this V1GetUserResponse. # noqa: E501
308
+ :rtype: str
309
+ """
310
+ return self._experimentation_id
311
+
312
+ @experimentation_id.setter
313
+ def experimentation_id(self, experimentation_id: 'str'):
314
+ """Sets the experimentation_id of this V1GetUserResponse.
315
+
316
+
317
+ :param experimentation_id: The experimentation_id of this V1GetUserResponse. # noqa: E501
318
+ :type: str
319
+ """
320
+
321
+ self._experimentation_id = experimentation_id
322
+
297
323
  @property
298
324
  def features(self) -> 'V1UserFeatures':
299
325
  """Gets the features of this V1GetUserResponse. # noqa: E501
@@ -43,6 +43,7 @@ class V1MagicLinkLoginRequest(object):
43
43
  swagger_types = {
44
44
  'collab_session_id': 'str',
45
45
  'email': 'str',
46
+ 'experimentation_id': 'str',
46
47
  'invite_code': 'str',
47
48
  'redirect_url': 'str',
48
49
  'referrer_params': 'str'
@@ -51,15 +52,17 @@ class V1MagicLinkLoginRequest(object):
51
52
  attribute_map = {
52
53
  'collab_session_id': 'collabSessionId',
53
54
  'email': 'email',
55
+ 'experimentation_id': 'experimentationId',
54
56
  'invite_code': 'inviteCode',
55
57
  'redirect_url': 'redirectUrl',
56
58
  'referrer_params': 'referrerParams'
57
59
  }
58
60
 
59
- def __init__(self, collab_session_id: 'str' =None, email: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None): # noqa: E501
61
+ def __init__(self, collab_session_id: 'str' =None, email: 'str' =None, experimentation_id: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None): # noqa: E501
60
62
  """V1MagicLinkLoginRequest - a model defined in Swagger""" # noqa: E501
61
63
  self._collab_session_id = None
62
64
  self._email = None
65
+ self._experimentation_id = None
63
66
  self._invite_code = None
64
67
  self._redirect_url = None
65
68
  self._referrer_params = None
@@ -68,6 +71,8 @@ class V1MagicLinkLoginRequest(object):
68
71
  self.collab_session_id = collab_session_id
69
72
  if email is not None:
70
73
  self.email = email
74
+ if experimentation_id is not None:
75
+ self.experimentation_id = experimentation_id
71
76
  if invite_code is not None:
72
77
  self.invite_code = invite_code
73
78
  if redirect_url is not None:
@@ -117,6 +122,27 @@ class V1MagicLinkLoginRequest(object):
117
122
 
118
123
  self._email = email
119
124
 
125
+ @property
126
+ def experimentation_id(self) -> 'str':
127
+ """Gets the experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
128
+
129
+
130
+ :return: The experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._experimentation_id
134
+
135
+ @experimentation_id.setter
136
+ def experimentation_id(self, experimentation_id: 'str'):
137
+ """Sets the experimentation_id of this V1MagicLinkLoginRequest.
138
+
139
+
140
+ :param experimentation_id: The experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
141
+ :type: str
142
+ """
143
+
144
+ self._experimentation_id = experimentation_id
145
+
120
146
  @property
121
147
  def invite_code(self) -> 'str':
122
148
  """Gets the invite_code of this V1MagicLinkLoginRequest. # noqa: E501
@@ -42,29 +42,24 @@ class V1MetricValue(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'created_at': 'datetime',
45
- 'internal_step': 'str',
46
45
  'step': 'str',
47
46
  'value': 'float'
48
47
  }
49
48
 
50
49
  attribute_map = {
51
50
  'created_at': 'createdAt',
52
- 'internal_step': 'internalStep',
53
51
  'step': 'step',
54
52
  'value': 'value'
55
53
  }
56
54
 
57
- def __init__(self, created_at: 'datetime' =None, internal_step: 'str' =None, step: 'str' =None, value: 'float' =None): # noqa: E501
55
+ def __init__(self, created_at: 'datetime' =None, step: 'str' =None, value: 'float' =None): # noqa: E501
58
56
  """V1MetricValue - a model defined in Swagger""" # noqa: E501
59
57
  self._created_at = None
60
- self._internal_step = None
61
58
  self._step = None
62
59
  self._value = None
63
60
  self.discriminator = None
64
61
  if created_at is not None:
65
62
  self.created_at = created_at
66
- if internal_step is not None:
67
- self.internal_step = internal_step
68
63
  if step is not None:
69
64
  self.step = step
70
65
  if value is not None:
@@ -91,27 +86,6 @@ class V1MetricValue(object):
91
86
 
92
87
  self._created_at = created_at
93
88
 
94
- @property
95
- def internal_step(self) -> 'str':
96
- """Gets the internal_step of this V1MetricValue. # noqa: E501
97
-
98
-
99
- :return: The internal_step of this V1MetricValue. # noqa: E501
100
- :rtype: str
101
- """
102
- return self._internal_step
103
-
104
- @internal_step.setter
105
- def internal_step(self, internal_step: 'str'):
106
- """Sets the internal_step of this V1MetricValue.
107
-
108
-
109
- :param internal_step: The internal_step of this V1MetricValue. # noqa: E501
110
- :type: str
111
- """
112
-
113
- self._internal_step = internal_step
114
-
115
89
  @property
116
90
  def step(self) -> 'str':
117
91
  """Gets the step of this V1MetricValue. # noqa: E501
@@ -41,25 +41,51 @@ class V1Metrics(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'internal_start_step': 'int',
44
45
  'name': 'str',
45
46
  'values': 'list[V1MetricValue]'
46
47
  }
47
48
 
48
49
  attribute_map = {
50
+ 'internal_start_step': 'internalStartStep',
49
51
  'name': 'name',
50
52
  'values': 'values'
51
53
  }
52
54
 
53
- def __init__(self, name: 'str' =None, values: 'list[V1MetricValue]' =None): # noqa: E501
55
+ def __init__(self, internal_start_step: 'int' =None, name: 'str' =None, values: 'list[V1MetricValue]' =None): # noqa: E501
54
56
  """V1Metrics - a model defined in Swagger""" # noqa: E501
57
+ self._internal_start_step = None
55
58
  self._name = None
56
59
  self._values = None
57
60
  self.discriminator = None
61
+ if internal_start_step is not None:
62
+ self.internal_start_step = internal_start_step
58
63
  if name is not None:
59
64
  self.name = name
60
65
  if values is not None:
61
66
  self.values = values
62
67
 
68
+ @property
69
+ def internal_start_step(self) -> 'int':
70
+ """Gets the internal_start_step of this V1Metrics. # noqa: E501
71
+
72
+
73
+ :return: The internal_start_step of this V1Metrics. # noqa: E501
74
+ :rtype: int
75
+ """
76
+ return self._internal_start_step
77
+
78
+ @internal_start_step.setter
79
+ def internal_start_step(self, internal_start_step: 'int'):
80
+ """Sets the internal_start_step of this V1Metrics.
81
+
82
+
83
+ :param internal_start_step: The internal_start_step of this V1Metrics. # noqa: E501
84
+ :type: int
85
+ """
86
+
87
+ self._internal_start_step = internal_start_step
88
+
63
89
  @property
64
90
  def name(self) -> 'str':
65
91
  """Gets the name of this V1Metrics. # noqa: E501
@@ -46,6 +46,7 @@ class V1UpdateUserRequest(object):
46
46
  'completed_project_onboarding': 'bool',
47
47
  'country': 'str',
48
48
  'email': 'str',
49
+ 'experimentation_id': 'str',
49
50
  'first_name': 'str',
50
51
  'general_audience_mode': 'bool',
51
52
  'last_name': 'str',
@@ -71,6 +72,7 @@ class V1UpdateUserRequest(object):
71
72
  'completed_project_onboarding': 'completedProjectOnboarding',
72
73
  'country': 'country',
73
74
  'email': 'email',
75
+ 'experimentation_id': 'experimentationId',
74
76
  'first_name': 'firstName',
75
77
  'general_audience_mode': 'generalAudienceMode',
76
78
  'last_name': 'lastName',
@@ -90,13 +92,14 @@ class V1UpdateUserRequest(object):
90
92
  'website': 'website'
91
93
  }
92
94
 
93
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, email: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: '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, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
95
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: '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, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
94
96
  """V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
95
97
  self._agree_to_terms_and_conditions = None
96
98
  self._complete_sign_up = None
97
99
  self._completed_project_onboarding = None
98
100
  self._country = None
99
101
  self._email = None
102
+ self._experimentation_id = None
100
103
  self._first_name = None
101
104
  self._general_audience_mode = None
102
105
  self._last_name = None
@@ -125,6 +128,8 @@ class V1UpdateUserRequest(object):
125
128
  self.country = country
126
129
  if email is not None:
127
130
  self.email = email
131
+ if experimentation_id is not None:
132
+ self.experimentation_id = experimentation_id
128
133
  if first_name is not None:
129
134
  self.first_name = first_name
130
135
  if general_audience_mode is not None:
@@ -265,6 +270,27 @@ class V1UpdateUserRequest(object):
265
270
 
266
271
  self._email = email
267
272
 
273
+ @property
274
+ def experimentation_id(self) -> 'str':
275
+ """Gets the experimentation_id of this V1UpdateUserRequest. # noqa: E501
276
+
277
+
278
+ :return: The experimentation_id of this V1UpdateUserRequest. # noqa: E501
279
+ :rtype: str
280
+ """
281
+ return self._experimentation_id
282
+
283
+ @experimentation_id.setter
284
+ def experimentation_id(self, experimentation_id: 'str'):
285
+ """Sets the experimentation_id of this V1UpdateUserRequest.
286
+
287
+
288
+ :param experimentation_id: The experimentation_id of this V1UpdateUserRequest. # noqa: E501
289
+ :type: str
290
+ """
291
+
292
+ self._experimentation_id = experimentation_id
293
+
268
294
  @property
269
295
  def first_name(self) -> 'str':
270
296
  """Gets the first_name of this V1UpdateUserRequest. # noqa: E501
@@ -76,6 +76,7 @@ class V1UserFeatures(object):
76
76
  'jobs_init': 'bool',
77
77
  'jobs_v2': 'bool',
78
78
  'landing_studios': 'bool',
79
+ 'lightning_registry': 'bool',
79
80
  'lit_logger': 'bool',
80
81
  'lit_logger_storage_v2': 'bool',
81
82
  'mmt_fault_tolerance': 'bool',
@@ -154,6 +155,7 @@ class V1UserFeatures(object):
154
155
  'jobs_init': 'jobsInit',
155
156
  'jobs_v2': 'jobsV2',
156
157
  'landing_studios': 'landingStudios',
158
+ 'lightning_registry': 'lightningRegistry',
157
159
  'lit_logger': 'litLogger',
158
160
  'lit_logger_storage_v2': 'litLoggerStorageV2',
159
161
  'mmt_fault_tolerance': 'mmtFaultTolerance',
@@ -196,7 +198,7 @@ class V1UserFeatures(object):
196
198
  'writable_data_connections': 'writableDataConnections'
197
199
  }
198
200
 
199
- 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, docs_agent: 'bool' =None, drive_v2: '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, 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, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
201
+ 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, docs_agent: 'bool' =None, drive_v2: '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, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
200
202
  """V1UserFeatures - a model defined in Swagger""" # noqa: E501
201
203
  self._advanced_deployment_autoscaling = None
202
204
  self._affiliate_links = None
@@ -233,6 +235,7 @@ class V1UserFeatures(object):
233
235
  self._jobs_init = None
234
236
  self._jobs_v2 = None
235
237
  self._landing_studios = None
238
+ self._lightning_registry = None
236
239
  self._lit_logger = None
237
240
  self._lit_logger_storage_v2 = None
238
241
  self._mmt_fault_tolerance = None
@@ -344,6 +347,8 @@ class V1UserFeatures(object):
344
347
  self.jobs_v2 = jobs_v2
345
348
  if landing_studios is not None:
346
349
  self.landing_studios = landing_studios
350
+ if lightning_registry is not None:
351
+ self.lightning_registry = lightning_registry
347
352
  if lit_logger is not None:
348
353
  self.lit_logger = lit_logger
349
354
  if lit_logger_storage_v2 is not None:
@@ -1160,6 +1165,27 @@ class V1UserFeatures(object):
1160
1165
 
1161
1166
  self._landing_studios = landing_studios
1162
1167
 
1168
+ @property
1169
+ def lightning_registry(self) -> 'bool':
1170
+ """Gets the lightning_registry of this V1UserFeatures. # noqa: E501
1171
+
1172
+
1173
+ :return: The lightning_registry of this V1UserFeatures. # noqa: E501
1174
+ :rtype: bool
1175
+ """
1176
+ return self._lightning_registry
1177
+
1178
+ @lightning_registry.setter
1179
+ def lightning_registry(self, lightning_registry: 'bool'):
1180
+ """Sets the lightning_registry of this V1UserFeatures.
1181
+
1182
+
1183
+ :param lightning_registry: The lightning_registry of this V1UserFeatures. # noqa: E501
1184
+ :type: bool
1185
+ """
1186
+
1187
+ self._lightning_registry = lightning_registry
1188
+
1163
1189
  @property
1164
1190
  def lit_logger(self) -> 'bool':
1165
1191
  """Gets the lit_logger of this V1UserFeatures. # noqa: E501
@@ -4,7 +4,6 @@ import time
4
4
  from functools import wraps
5
5
  from typing import Callable, Optional, Any
6
6
 
7
- import click
8
7
  import urllib3
9
8
  from lightning_sdk.lightning_cloud import env
10
9
  from lightning_sdk.lightning_cloud.login import Auth
@@ -28,7 +27,6 @@ from lightning_sdk.lightning_cloud.openapi import (
28
27
  EndpointServiceApi,
29
28
  SlurmJobsUserServiceApi,
30
29
  LitLoggerServiceApi,
31
- AssistantsServiceApi,
32
30
  JobsServiceApi,
33
31
  AssistantsServiceApi,
34
32
  StorageServiceApi,
@@ -199,8 +197,7 @@ def request_auth_warning_wrapper(func):
199
197
  return response
200
198
  except ApiException as err:
201
199
  if err.status == 401:
202
- raise click.ClickException(
203
- "Authentication failed. Please run `lightning login`.")
200
+ raise ConnectionError("Authentication failed. Please run `lightning login`.")
204
201
  raise err
205
202
 
206
203
  return wrap
@@ -5,8 +5,6 @@ import subprocess
5
5
  import tarfile
6
6
  from typing import Optional, Tuple
7
7
 
8
- import click
9
-
10
8
  MAX_SPLIT_COUNT = 999
11
9
 
12
10
 
@@ -85,7 +83,7 @@ def get_split_size(total_size: int,
85
83
  1 << 31
86
84
  ) # max size per part limited by Requests or urllib as shown in ref above
87
85
  if total_size > max_size:
88
- raise click.ClickException(
86
+ raise RuntimeError(
89
87
  f"The size of the datastore to be uploaded is bigger than our {max_size/(1 << 40):.2f} TBytes limit"
90
88
  )
91
89
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lightning_sdk
3
- Version: 0.1.35
3
+ Version: 0.1.36
4
4
  Summary: SDK to develop using Lightning AI Studios
5
5
  Author-email: Lightning-AI <justus@lightning.ai>
6
6
  License: MIT License
@@ -32,7 +32,6 @@ Requires-Python: >=3.8
32
32
  Description-Content-Type: text/markdown
33
33
  License-File: LICENSE
34
34
  Requires-Dist: backoff
35
- Requires-Dist: click
36
35
  Requires-Dist: fastapi
37
36
  Requires-Dist: pyjwt
38
37
  Requires-Dist: python-multipart