lightning-sdk 2025.7.17__py3-none-any.whl → 2025.7.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/api/cloud_account_api.py +154 -0
  3. lightning_sdk/api/deployment_api.py +11 -0
  4. lightning_sdk/api/job_api.py +9 -0
  5. lightning_sdk/api/mmt_api.py +9 -0
  6. lightning_sdk/api/pipeline_api.py +4 -3
  7. lightning_sdk/api/studio_api.py +19 -5
  8. lightning_sdk/cli/clusters_menu.py +3 -3
  9. lightning_sdk/cli/create.py +22 -10
  10. lightning_sdk/cli/deploy/_auth.py +19 -3
  11. lightning_sdk/cli/deploy/serve.py +18 -4
  12. lightning_sdk/cli/entrypoint.py +1 -1
  13. lightning_sdk/cli/start.py +37 -7
  14. lightning_sdk/deployment/deployment.py +8 -0
  15. lightning_sdk/job/base.py +27 -3
  16. lightning_sdk/job/job.py +28 -4
  17. lightning_sdk/job/v1.py +10 -1
  18. lightning_sdk/job/v2.py +15 -1
  19. lightning_sdk/lightning_cloud/openapi/__init__.py +9 -1
  20. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +335 -0
  21. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +153 -48
  22. lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -1
  23. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
  24. lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
  25. lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +29 -3
  27. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +175 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +53 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +29 -3
  35. lightning_sdk/lightning_cloud/openapi/models/{v1_get_clickhouse_assistant_session_daily_aggregated_response.py → v1_get_assistant_session_daily_aggregated_response.py} +22 -22
  36. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +79 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoint_models_response.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1 -261
  45. lightning_sdk/llm/llm.py +29 -5
  46. lightning_sdk/machine.py +12 -0
  47. lightning_sdk/mmt/base.py +20 -2
  48. lightning_sdk/mmt/mmt.py +25 -3
  49. lightning_sdk/mmt/v1.py +7 -1
  50. lightning_sdk/mmt/v2.py +21 -2
  51. lightning_sdk/organization.py +4 -0
  52. lightning_sdk/pipeline/pipeline.py +16 -5
  53. lightning_sdk/pipeline/printer.py +5 -3
  54. lightning_sdk/pipeline/schedule.py +844 -1
  55. lightning_sdk/pipeline/steps.py +19 -4
  56. lightning_sdk/sandbox.py +4 -1
  57. lightning_sdk/serve.py +2 -0
  58. lightning_sdk/studio.py +79 -39
  59. lightning_sdk/teamspace.py +14 -8
  60. lightning_sdk/utils/resolve.py +29 -2
  61. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/METADATA +1 -1
  62. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/RECORD +67 -59
  63. lightning_sdk/api/cluster_api.py +0 -119
  64. /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
  65. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/LICENSE +0 -0
  66. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/WHEEL +0 -0
  67. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/entry_points.txt +0 -0
  68. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.22.dist-info}/top_level.txt +0 -0
@@ -140,6 +140,111 @@ class BillingServiceApi(object):
140
140
  _request_timeout=params.get('_request_timeout'),
141
141
  collection_formats=collection_formats)
142
142
 
143
+ def billing_service_create_billing_upgrade_trigger_record(self, body: 'UserIdUpgradetriggerBody', user_id: 'str', **kwargs) -> 'V1CreateBillingUpgradeTriggerRecordResponse': # noqa: E501
144
+ """billing_service_create_billing_upgrade_trigger_record # noqa: E501
145
+
146
+ This method makes a synchronous HTTP request by default. To make an
147
+ asynchronous HTTP request, please pass async_req=True
148
+ >>> thread = api.billing_service_create_billing_upgrade_trigger_record(body, user_id, async_req=True)
149
+ >>> result = thread.get()
150
+
151
+ :param async_req bool
152
+ :param UserIdUpgradetriggerBody body: (required)
153
+ :param str user_id: (required)
154
+ :return: V1CreateBillingUpgradeTriggerRecordResponse
155
+ If the method is called asynchronously,
156
+ returns the request thread.
157
+ """
158
+ kwargs['_return_http_data_only'] = True
159
+ if kwargs.get('async_req'):
160
+ return self.billing_service_create_billing_upgrade_trigger_record_with_http_info(body, user_id, **kwargs) # noqa: E501
161
+ else:
162
+ (data) = self.billing_service_create_billing_upgrade_trigger_record_with_http_info(body, user_id, **kwargs) # noqa: E501
163
+ return data
164
+
165
+ def billing_service_create_billing_upgrade_trigger_record_with_http_info(self, body: 'UserIdUpgradetriggerBody', user_id: 'str', **kwargs) -> 'V1CreateBillingUpgradeTriggerRecordResponse': # noqa: E501
166
+ """billing_service_create_billing_upgrade_trigger_record # noqa: E501
167
+
168
+ This method makes a synchronous HTTP request by default. To make an
169
+ asynchronous HTTP request, please pass async_req=True
170
+ >>> thread = api.billing_service_create_billing_upgrade_trigger_record_with_http_info(body, user_id, async_req=True)
171
+ >>> result = thread.get()
172
+
173
+ :param async_req bool
174
+ :param UserIdUpgradetriggerBody body: (required)
175
+ :param str user_id: (required)
176
+ :return: V1CreateBillingUpgradeTriggerRecordResponse
177
+ If the method is called asynchronously,
178
+ returns the request thread.
179
+ """
180
+
181
+ all_params = ['body', 'user_id'] # noqa: E501
182
+ all_params.append('async_req')
183
+ all_params.append('_return_http_data_only')
184
+ all_params.append('_preload_content')
185
+ all_params.append('_request_timeout')
186
+
187
+ params = locals()
188
+ for key, val in six.iteritems(params['kwargs']):
189
+ if key not in all_params:
190
+ raise TypeError(
191
+ "Got an unexpected keyword argument '%s'"
192
+ " to method billing_service_create_billing_upgrade_trigger_record" % key
193
+ )
194
+ params[key] = val
195
+ del params['kwargs']
196
+ # verify the required parameter 'body' is set
197
+ if ('body' not in params or
198
+ params['body'] is None):
199
+ raise ValueError("Missing the required parameter `body` when calling `billing_service_create_billing_upgrade_trigger_record`") # noqa: E501
200
+ # verify the required parameter 'user_id' is set
201
+ if ('user_id' not in params or
202
+ params['user_id'] is None):
203
+ raise ValueError("Missing the required parameter `user_id` when calling `billing_service_create_billing_upgrade_trigger_record`") # noqa: E501
204
+
205
+ collection_formats = {}
206
+
207
+ path_params = {}
208
+ if 'user_id' in params:
209
+ path_params['userId'] = params['user_id'] # noqa: E501
210
+
211
+ query_params = []
212
+
213
+ header_params = {}
214
+
215
+ form_params = []
216
+ local_var_files = {}
217
+
218
+ body_params = None
219
+ if 'body' in params:
220
+ body_params = params['body']
221
+ # HTTP header `Accept`
222
+ header_params['Accept'] = self.api_client.select_header_accept(
223
+ ['application/json']) # noqa: E501
224
+
225
+ # HTTP header `Content-Type`
226
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
227
+ ['application/json']) # noqa: E501
228
+
229
+ # Authentication setting
230
+ auth_settings = [] # noqa: E501
231
+
232
+ return self.api_client.call_api(
233
+ '/v1/billing/{userId}/upgrade-trigger', 'POST',
234
+ path_params,
235
+ query_params,
236
+ header_params,
237
+ body=body_params,
238
+ post_params=form_params,
239
+ files=local_var_files,
240
+ response_type='V1CreateBillingUpgradeTriggerRecordResponse', # noqa: E501
241
+ auth_settings=auth_settings,
242
+ async_req=params.get('async_req'),
243
+ _return_http_data_only=params.get('_return_http_data_only'),
244
+ _preload_content=params.get('_preload_content', True),
245
+ _request_timeout=params.get('_request_timeout'),
246
+ collection_formats=collection_formats)
247
+
143
248
  def billing_service_create_checkout_session(self, body: 'V1CreateCheckoutSessionRequest', **kwargs) -> 'V1CreateCheckoutSessionResponse': # noqa: E501
144
249
  """billing_service_create_checkout_session # noqa: E501
145
250
 
@@ -439,43 +544,53 @@ class BillingServiceApi(object):
439
544
  _request_timeout=params.get('_request_timeout'),
440
545
  collection_formats=collection_formats)
441
546
 
442
- def billing_service_get_billing_subscription(self, **kwargs) -> 'V1BillingSubscription': # noqa: E501
443
- """Billing subscription endpoint that returns the organization's current subscription and its features # noqa: E501
547
+ def billing_service_get_assistant_session_daily_aggregated(self, **kwargs) -> 'V1GetAssistantSessionDailyAggregatedResponse': # noqa: E501
548
+ """Aggregated assistant session endpoint to get credits spending information. Provides credits consumption data by particular project according to filters given. # noqa: E501
444
549
 
445
550
  This method makes a synchronous HTTP request by default. To make an
446
551
  asynchronous HTTP request, please pass async_req=True
447
- >>> thread = api.billing_service_get_billing_subscription(async_req=True)
552
+ >>> thread = api.billing_service_get_assistant_session_daily_aggregated(async_req=True)
448
553
  >>> result = thread.get()
449
554
 
450
555
  :param async_req bool
556
+ :param str project_id:
557
+ :param datetime _from:
558
+ :param datetime to:
559
+ :param str user_id:
451
560
  :param str org_id:
452
- :return: V1BillingSubscription
561
+ :param bool details:
562
+ :return: V1GetAssistantSessionDailyAggregatedResponse
453
563
  If the method is called asynchronously,
454
564
  returns the request thread.
455
565
  """
456
566
  kwargs['_return_http_data_only'] = True
457
567
  if kwargs.get('async_req'):
458
- return self.billing_service_get_billing_subscription_with_http_info(**kwargs) # noqa: E501
568
+ return self.billing_service_get_assistant_session_daily_aggregated_with_http_info(**kwargs) # noqa: E501
459
569
  else:
460
- (data) = self.billing_service_get_billing_subscription_with_http_info(**kwargs) # noqa: E501
570
+ (data) = self.billing_service_get_assistant_session_daily_aggregated_with_http_info(**kwargs) # noqa: E501
461
571
  return data
462
572
 
463
- def billing_service_get_billing_subscription_with_http_info(self, **kwargs) -> 'V1BillingSubscription': # noqa: E501
464
- """Billing subscription endpoint that returns the organization's current subscription and its features # noqa: E501
573
+ def billing_service_get_assistant_session_daily_aggregated_with_http_info(self, **kwargs) -> 'V1GetAssistantSessionDailyAggregatedResponse': # noqa: E501
574
+ """Aggregated assistant session endpoint to get credits spending information. Provides credits consumption data by particular project according to filters given. # noqa: E501
465
575
 
466
576
  This method makes a synchronous HTTP request by default. To make an
467
577
  asynchronous HTTP request, please pass async_req=True
468
- >>> thread = api.billing_service_get_billing_subscription_with_http_info(async_req=True)
578
+ >>> thread = api.billing_service_get_assistant_session_daily_aggregated_with_http_info(async_req=True)
469
579
  >>> result = thread.get()
470
580
 
471
581
  :param async_req bool
582
+ :param str project_id:
583
+ :param datetime _from:
584
+ :param datetime to:
585
+ :param str user_id:
472
586
  :param str org_id:
473
- :return: V1BillingSubscription
587
+ :param bool details:
588
+ :return: V1GetAssistantSessionDailyAggregatedResponse
474
589
  If the method is called asynchronously,
475
590
  returns the request thread.
476
591
  """
477
592
 
478
- all_params = ['org_id'] # noqa: E501
593
+ all_params = ['project_id', '_from', 'to', 'user_id', 'org_id', 'details'] # noqa: E501
479
594
  all_params.append('async_req')
480
595
  all_params.append('_return_http_data_only')
481
596
  all_params.append('_preload_content')
@@ -486,7 +601,7 @@ class BillingServiceApi(object):
486
601
  if key not in all_params:
487
602
  raise TypeError(
488
603
  "Got an unexpected keyword argument '%s'"
489
- " to method billing_service_get_billing_subscription" % key
604
+ " to method billing_service_get_assistant_session_daily_aggregated" % key
490
605
  )
491
606
  params[key] = val
492
607
  del params['kwargs']
@@ -496,8 +611,18 @@ class BillingServiceApi(object):
496
611
  path_params = {}
497
612
 
498
613
  query_params = []
614
+ if 'project_id' in params:
615
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
616
+ if '_from' in params:
617
+ query_params.append(('from', params['_from'])) # noqa: E501
618
+ if 'to' in params:
619
+ query_params.append(('to', params['to'])) # noqa: E501
620
+ if 'user_id' in params:
621
+ query_params.append(('userId', params['user_id'])) # noqa: E501
499
622
  if 'org_id' in params:
500
623
  query_params.append(('orgId', params['org_id'])) # noqa: E501
624
+ if 'details' in params:
625
+ query_params.append(('details', params['details'])) # noqa: E501
501
626
 
502
627
  header_params = {}
503
628
 
@@ -513,14 +638,14 @@ class BillingServiceApi(object):
513
638
  auth_settings = [] # noqa: E501
514
639
 
515
640
  return self.api_client.call_api(
516
- '/v1/billing/subscription', 'GET',
641
+ '/v1/billing/assistant-session', 'GET',
517
642
  path_params,
518
643
  query_params,
519
644
  header_params,
520
645
  body=body_params,
521
646
  post_params=form_params,
522
647
  files=local_var_files,
523
- response_type='V1BillingSubscription', # noqa: E501
648
+ response_type='V1GetAssistantSessionDailyAggregatedResponse', # noqa: E501
524
649
  auth_settings=auth_settings,
525
650
  async_req=params.get('async_req'),
526
651
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -528,53 +653,43 @@ class BillingServiceApi(object):
528
653
  _request_timeout=params.get('_request_timeout'),
529
654
  collection_formats=collection_formats)
530
655
 
531
- def billing_service_get_clickhouse_assistant_session_daily_aggregated(self, **kwargs) -> 'V1GetClickhouseAssistantSessionDailyAggregatedResponse': # noqa: E501
532
- """Aggregated assistant session endpoint to get credits spending information. Provides credits consumption data by particular project according to filters given. # noqa: E501
656
+ def billing_service_get_billing_subscription(self, **kwargs) -> 'V1BillingSubscription': # noqa: E501
657
+ """Billing subscription endpoint that returns the organization's current subscription and its features # noqa: E501
533
658
 
534
659
  This method makes a synchronous HTTP request by default. To make an
535
660
  asynchronous HTTP request, please pass async_req=True
536
- >>> thread = api.billing_service_get_clickhouse_assistant_session_daily_aggregated(async_req=True)
661
+ >>> thread = api.billing_service_get_billing_subscription(async_req=True)
537
662
  >>> result = thread.get()
538
663
 
539
664
  :param async_req bool
540
- :param str project_id:
541
- :param datetime _from:
542
- :param datetime to:
543
- :param str user_id:
544
665
  :param str org_id:
545
- :param bool details:
546
- :return: V1GetClickhouseAssistantSessionDailyAggregatedResponse
666
+ :return: V1BillingSubscription
547
667
  If the method is called asynchronously,
548
668
  returns the request thread.
549
669
  """
550
670
  kwargs['_return_http_data_only'] = True
551
671
  if kwargs.get('async_req'):
552
- return self.billing_service_get_clickhouse_assistant_session_daily_aggregated_with_http_info(**kwargs) # noqa: E501
672
+ return self.billing_service_get_billing_subscription_with_http_info(**kwargs) # noqa: E501
553
673
  else:
554
- (data) = self.billing_service_get_clickhouse_assistant_session_daily_aggregated_with_http_info(**kwargs) # noqa: E501
674
+ (data) = self.billing_service_get_billing_subscription_with_http_info(**kwargs) # noqa: E501
555
675
  return data
556
676
 
557
- def billing_service_get_clickhouse_assistant_session_daily_aggregated_with_http_info(self, **kwargs) -> 'V1GetClickhouseAssistantSessionDailyAggregatedResponse': # noqa: E501
558
- """Aggregated assistant session endpoint to get credits spending information. Provides credits consumption data by particular project according to filters given. # noqa: E501
677
+ def billing_service_get_billing_subscription_with_http_info(self, **kwargs) -> 'V1BillingSubscription': # noqa: E501
678
+ """Billing subscription endpoint that returns the organization's current subscription and its features # noqa: E501
559
679
 
560
680
  This method makes a synchronous HTTP request by default. To make an
561
681
  asynchronous HTTP request, please pass async_req=True
562
- >>> thread = api.billing_service_get_clickhouse_assistant_session_daily_aggregated_with_http_info(async_req=True)
682
+ >>> thread = api.billing_service_get_billing_subscription_with_http_info(async_req=True)
563
683
  >>> result = thread.get()
564
684
 
565
685
  :param async_req bool
566
- :param str project_id:
567
- :param datetime _from:
568
- :param datetime to:
569
- :param str user_id:
570
686
  :param str org_id:
571
- :param bool details:
572
- :return: V1GetClickhouseAssistantSessionDailyAggregatedResponse
687
+ :return: V1BillingSubscription
573
688
  If the method is called asynchronously,
574
689
  returns the request thread.
575
690
  """
576
691
 
577
- all_params = ['project_id', '_from', 'to', 'user_id', 'org_id', 'details'] # noqa: E501
692
+ all_params = ['org_id'] # noqa: E501
578
693
  all_params.append('async_req')
579
694
  all_params.append('_return_http_data_only')
580
695
  all_params.append('_preload_content')
@@ -585,7 +700,7 @@ class BillingServiceApi(object):
585
700
  if key not in all_params:
586
701
  raise TypeError(
587
702
  "Got an unexpected keyword argument '%s'"
588
- " to method billing_service_get_clickhouse_assistant_session_daily_aggregated" % key
703
+ " to method billing_service_get_billing_subscription" % key
589
704
  )
590
705
  params[key] = val
591
706
  del params['kwargs']
@@ -595,18 +710,8 @@ class BillingServiceApi(object):
595
710
  path_params = {}
596
711
 
597
712
  query_params = []
598
- if 'project_id' in params:
599
- query_params.append(('projectId', params['project_id'])) # noqa: E501
600
- if '_from' in params:
601
- query_params.append(('from', params['_from'])) # noqa: E501
602
- if 'to' in params:
603
- query_params.append(('to', params['to'])) # noqa: E501
604
- if 'user_id' in params:
605
- query_params.append(('userId', params['user_id'])) # noqa: E501
606
713
  if 'org_id' in params:
607
714
  query_params.append(('orgId', params['org_id'])) # noqa: E501
608
- if 'details' in params:
609
- query_params.append(('details', params['details'])) # noqa: E501
610
715
 
611
716
  header_params = {}
612
717
 
@@ -622,14 +727,14 @@ class BillingServiceApi(object):
622
727
  auth_settings = [] # noqa: E501
623
728
 
624
729
  return self.api_client.call_api(
625
- '/v1/billing/clickhouse-assistant-session', 'GET',
730
+ '/v1/billing/subscription', 'GET',
626
731
  path_params,
627
732
  query_params,
628
733
  header_params,
629
734
  body=body_params,
630
735
  post_params=form_params,
631
736
  files=local_var_files,
632
- response_type='V1GetClickhouseAssistantSessionDailyAggregatedResponse', # noqa: E501
737
+ response_type='V1BillingSubscription', # noqa: E501
633
738
  auth_settings=auth_settings,
634
739
  async_req=params.get('async_req'),
635
740
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -55,6 +55,7 @@ from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body import Cluste
55
55
  from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body1 import ClustersIdBody1
56
56
  from lightning_sdk.lightning_cloud.openapi.models.command_argument_command_argument_type import CommandArgumentCommandArgumentType
57
57
  from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body import ConversationsIdBody
58
+ from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body1 import ConversationsIdBody1
58
59
  from lightning_sdk.lightning_cloud.openapi.models.create import Create
59
60
  from lightning_sdk.lightning_cloud.openapi.models.create_checkout_session_request_wallet_type import CreateCheckoutSessionRequestWalletType
60
61
  from lightning_sdk.lightning_cloud.openapi.models.create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs import CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs
@@ -118,6 +119,7 @@ from lightning_sdk.lightning_cloud.openapi.models.litloggermetrics_id_body impor
118
119
  from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import LitpagesIdBody
119
120
  from lightning_sdk.lightning_cloud.openapi.models.litregistry_lit_repo_name_body import LitregistryLitRepoNameBody
120
121
  from lightning_sdk.lightning_cloud.openapi.models.loggermetrics_id_body import LoggermetricsIdBody
122
+ from lightning_sdk.lightning_cloud.openapi.models.messages_id_body import MessagesIdBody
121
123
  from lightning_sdk.lightning_cloud.openapi.models.metrics_stream_id_loggerartifacts_body import MetricsStreamIdLoggerartifactsBody
122
124
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body import MetricsstreamCreateBody
123
125
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
@@ -193,6 +195,7 @@ from lightning_sdk.lightning_cloud.openapi.models.usagerestrictions_id_body impo
193
195
  from lightning_sdk.lightning_cloud.openapi.models.user_id_affiliatelinks_body import UserIdAffiliatelinksBody
194
196
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body import UserIdMembershiprolebindingsBody
195
197
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body1 import UserIdMembershiprolebindingsBody1
198
+ from lightning_sdk.lightning_cloud.openapi.models.user_id_upgradetrigger_body import UserIdUpgradetriggerBody
196
199
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_cluster_credentials import V1AWSClusterCredentials
197
200
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1 import V1AWSDirectV1
198
201
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1_status import V1AWSDirectV1Status
@@ -314,6 +317,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_respo
314
317
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_agent_multipart_upload_response import V1CreateAgentMultipartUploadResponse
315
318
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_request import V1CreateBillingPortalSessionRequest
316
319
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_response import V1CreateBillingPortalSessionResponse
320
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_upgrade_trigger_record_response import V1CreateBillingUpgradeTriggerRecordResponse
317
321
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_blog_post_request import V1CreateBlogPostRequest
318
322
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_request import V1CreateCheckoutSessionRequest
319
323
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_response import V1CreateCheckoutSessionResponse
@@ -496,7 +500,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response
496
500
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
497
501
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_logs_metadata_response import V1GetAgentJobLogsMetadataResponse
498
502
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_artifacts_page_response import V1GetArtifactsPageResponse
499
- from lightning_sdk.lightning_cloud.openapi.models.v1_get_clickhouse_assistant_session_daily_aggregated_response import V1GetClickhouseAssistantSessionDailyAggregatedResponse
503
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_assistant_session_daily_aggregated_response import V1GetAssistantSessionDailyAggregatedResponse
500
504
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_metrics_stats_response import V1GetCloudSpaceColdStartMetricsStatsResponse
501
505
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
502
506
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
@@ -587,6 +591,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_spec import V
587
591
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_state import V1LightningworkState
588
592
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status import V1LightningworkStatus
589
593
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status_reason import V1LightningworkStatusReason
594
+ from lightning_sdk.lightning_cloud.openapi.models.v1_like_status import V1LikeStatus
590
595
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_affiliate_links_response import V1ListAffiliateLinksResponse
591
596
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_response import V1ListAgentJobArtifactsResponse
592
597
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
@@ -677,6 +682,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_memberships_re
677
682
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_roles_response import V1ListProjectRolesResponse
678
683
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_cloud_spaces_response import V1ListPublishedCloudSpacesResponse
679
684
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_deployment_templates_response import V1ListPublishedDeploymentTemplatesResponse
685
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_managed_endpoint_models_response import V1ListPublishedManagedEndpointModelsResponse
680
686
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_quests_response import V1ListQuestsResponse
681
687
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_slurm_cluster_users_response import V1ListSLURMClusterUsersResponse
682
688
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_ssh_public_keys_response import V1ListSSHPublicKeysResponse
@@ -894,6 +900,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cloud_space_visibili
894
900
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_request import V1UpdateClusterAcceleratorsRequest
895
901
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_response import V1UpdateClusterAcceleratorsResponse
896
902
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
903
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_like_response import V1UpdateConversationLikeResponse
904
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_message_like_response import V1UpdateConversationMessageLikeResponse
897
905
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_deployment_visibility_response import V1UpdateDeploymentVisibilityResponse
898
906
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
899
907
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_job_visibility_response import V1UpdateJobVisibilityResponse
@@ -43,6 +43,8 @@ class BlogpostsIdBody(object):
43
43
  swagger_types = {
44
44
  'author_id': 'str',
45
45
  'category': 'str',
46
+ 'customer_logo_url': 'str',
47
+ 'customer_name': 'str',
46
48
  'description': 'str',
47
49
  'image_url': 'str',
48
50
  'lit_page_id': 'str',
@@ -52,16 +54,20 @@ class BlogpostsIdBody(object):
52
54
  attribute_map = {
53
55
  'author_id': 'authorId',
54
56
  'category': 'category',
57
+ 'customer_logo_url': 'customerLogoUrl',
58
+ 'customer_name': 'customerName',
55
59
  'description': 'description',
56
60
  'image_url': 'imageUrl',
57
61
  'lit_page_id': 'litPageId',
58
62
  'title': 'title'
59
63
  }
60
64
 
61
- def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
65
+ def __init__(self, author_id: 'str' =None, category: 'str' =None, customer_logo_url: 'str' =None, customer_name: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
62
66
  """BlogpostsIdBody - a model defined in Swagger""" # noqa: E501
63
67
  self._author_id = None
64
68
  self._category = None
69
+ self._customer_logo_url = None
70
+ self._customer_name = None
65
71
  self._description = None
66
72
  self._image_url = None
67
73
  self._lit_page_id = None
@@ -71,6 +77,10 @@ class BlogpostsIdBody(object):
71
77
  self.author_id = author_id
72
78
  if category is not None:
73
79
  self.category = category
80
+ if customer_logo_url is not None:
81
+ self.customer_logo_url = customer_logo_url
82
+ if customer_name is not None:
83
+ self.customer_name = customer_name
74
84
  if description is not None:
75
85
  self.description = description
76
86
  if image_url is not None:
@@ -122,6 +132,48 @@ class BlogpostsIdBody(object):
122
132
 
123
133
  self._category = category
124
134
 
135
+ @property
136
+ def customer_logo_url(self) -> 'str':
137
+ """Gets the customer_logo_url of this BlogpostsIdBody. # noqa: E501
138
+
139
+
140
+ :return: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._customer_logo_url
144
+
145
+ @customer_logo_url.setter
146
+ def customer_logo_url(self, customer_logo_url: 'str'):
147
+ """Sets the customer_logo_url of this BlogpostsIdBody.
148
+
149
+
150
+ :param customer_logo_url: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
151
+ :type: str
152
+ """
153
+
154
+ self._customer_logo_url = customer_logo_url
155
+
156
+ @property
157
+ def customer_name(self) -> 'str':
158
+ """Gets the customer_name of this BlogpostsIdBody. # noqa: E501
159
+
160
+
161
+ :return: The customer_name of this BlogpostsIdBody. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._customer_name
165
+
166
+ @customer_name.setter
167
+ def customer_name(self, customer_name: 'str'):
168
+ """Sets the customer_name of this BlogpostsIdBody.
169
+
170
+
171
+ :param customer_name: The customer_name of this BlogpostsIdBody. # noqa: E501
172
+ :type: str
173
+ """
174
+
175
+ self._customer_name = customer_name
176
+
125
177
  @property
126
178
  def description(self) -> 'str':
127
179
  """Gets the description of this BlogpostsIdBody. # noqa: E501
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class ConversationsIdBody1(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
+ 'like': 'V1LikeStatus'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'like': 'like'
49
+ }
50
+
51
+ def __init__(self, like: 'V1LikeStatus' =None): # noqa: E501
52
+ """ConversationsIdBody1 - a model defined in Swagger""" # noqa: E501
53
+ self._like = None
54
+ self.discriminator = None
55
+ if like is not None:
56
+ self.like = like
57
+
58
+ @property
59
+ def like(self) -> 'V1LikeStatus':
60
+ """Gets the like of this ConversationsIdBody1. # noqa: E501
61
+
62
+
63
+ :return: The like of this ConversationsIdBody1. # noqa: E501
64
+ :rtype: V1LikeStatus
65
+ """
66
+ return self._like
67
+
68
+ @like.setter
69
+ def like(self, like: 'V1LikeStatus'):
70
+ """Sets the like of this ConversationsIdBody1.
71
+
72
+
73
+ :param like: The like of this ConversationsIdBody1. # noqa: E501
74
+ :type: V1LikeStatus
75
+ """
76
+
77
+ self._like = like
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(ConversationsIdBody1, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'ConversationsIdBody1') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, ConversationsIdBody1):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'ConversationsIdBody1') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other