lightning-sdk 0.1.3__py3-none-any.whl → 0.1.46__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 (498) hide show
  1. lightning_sdk/__init__.py +12 -2
  2. lightning_sdk/agents.py +46 -0
  3. lightning_sdk/ai_hub.py +185 -0
  4. lightning_sdk/api/__init__.py +4 -0
  5. lightning_sdk/api/agents_api.py +107 -0
  6. lightning_sdk/api/ai_hub_api.py +130 -0
  7. lightning_sdk/api/deployment_api.py +574 -0
  8. lightning_sdk/api/job_api.py +308 -0
  9. lightning_sdk/api/mmt_api.py +188 -0
  10. lightning_sdk/api/org_api.py +1 -3
  11. lightning_sdk/api/studio_api.py +172 -81
  12. lightning_sdk/api/teamspace_api.py +219 -20
  13. lightning_sdk/api/user_api.py +24 -9
  14. lightning_sdk/api/utils.py +429 -48
  15. lightning_sdk/cli/ai_hub.py +49 -0
  16. lightning_sdk/cli/download.py +132 -0
  17. lightning_sdk/cli/entrypoint.py +11 -3
  18. lightning_sdk/cli/run.py +206 -0
  19. lightning_sdk/cli/serve.py +218 -0
  20. lightning_sdk/cli/studios_menu.py +78 -0
  21. lightning_sdk/cli/upload.py +79 -89
  22. lightning_sdk/constants.py +29 -1
  23. lightning_sdk/deployment/__init__.py +25 -0
  24. lightning_sdk/deployment/deployment.py +389 -0
  25. lightning_sdk/helpers.py +49 -0
  26. lightning_sdk/job/__init__.py +5 -0
  27. lightning_sdk/job/base.py +295 -0
  28. lightning_sdk/job/job.py +266 -0
  29. lightning_sdk/job/v1.py +241 -0
  30. lightning_sdk/job/v2.py +193 -0
  31. lightning_sdk/job/work.py +72 -0
  32. lightning_sdk/lightning_cloud/__version__.py +1 -1
  33. lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
  34. lightning_sdk/lightning_cloud/env.py +1 -0
  35. lightning_sdk/lightning_cloud/login.py +12 -8
  36. lightning_sdk/lightning_cloud/openapi/__init__.py +288 -42
  37. lightning_sdk/lightning_cloud/openapi/api/__init__.py +10 -0
  38. lightning_sdk/lightning_cloud/openapi/api/analytics_service_api.py +141 -0
  39. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1075 -227
  40. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  41. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +992 -233
  42. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +883 -120
  43. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +10 -5
  44. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +756 -0
  45. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +422 -1
  46. lightning_sdk/lightning_cloud/openapi/api/experiments_service_api.py +242 -0
  47. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  48. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +3823 -0
  49. lightning_sdk/lightning_cloud/openapi/api/lightningapp_instance_service_api.py +158 -594
  50. lightning_sdk/lightning_cloud/openapi/api/lightningapp_v2_service_api.py +0 -1086
  51. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +113 -0
  52. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +1753 -0
  53. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +242 -0
  54. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1423 -108
  55. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +421 -1
  56. lightning_sdk/lightning_cloud/openapi/api/profiler_service_api.py +663 -0
  57. lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
  58. lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +478 -1
  59. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +9 -5
  60. lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +686 -0
  61. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1094 -0
  62. lightning_sdk/lightning_cloud/openapi/api/studio_jobs_service_api.py +4 -4
  63. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +1081 -34
  64. lightning_sdk/lightning_cloud/openapi/models/__init__.py +278 -40
  65. lightning_sdk/lightning_cloud/openapi/models/affiliatelinks_id_body.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +305 -0
  67. lightning_sdk/lightning_cloud/openapi/models/{assistants_id_body.py → agents_id_body.py} +201 -71
  68. lightning_sdk/lightning_cloud/openapi/models/app_id_works_body.py +149 -0
  69. lightning_sdk/lightning_cloud/openapi/models/approveautojoindomain_domain_body.py +123 -0
  70. lightning_sdk/lightning_cloud/openapi/models/apps_id_body1.py +107 -3
  71. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +1 -27
  72. lightning_sdk/lightning_cloud/openapi/models/{v1_get_cluster_health_response.py → captures_id_body.py} +16 -16
  73. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
  74. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_runs_body.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +58 -6
  76. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +253 -0
  77. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
  78. lightning_sdk/lightning_cloud/openapi/models/cluster_id_proxies_body.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/create.py +157 -1
  80. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +383 -0
  81. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +565 -0
  82. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +513 -0
  83. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +43 -17
  84. lightning_sdk/lightning_cloud/openapi/models/experiment_name_variant_name_body.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +107 -1
  86. lightning_sdk/lightning_cloud/openapi/models/externalv1_lightningapp_instance.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +79 -1
  89. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -55
  90. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  91. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  92. lightning_sdk/lightning_cloud/openapi/models/id_execute_body.py +3 -55
  93. lightning_sdk/lightning_cloud/openapi/models/id_execute_body1.py +175 -0
  94. lightning_sdk/lightning_cloud/openapi/models/id_get_body.py +133 -3
  95. lightning_sdk/lightning_cloud/openapi/models/id_index_body.py +67 -15
  96. lightning_sdk/lightning_cloud/openapi/models/id_index_body2.py +123 -0
  97. lightning_sdk/lightning_cloud/openapi/models/id_index_body3.py +175 -0
  98. lightning_sdk/lightning_cloud/openapi/models/id_reportlogsactivity_body.py +123 -0
  99. lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
  100. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +52 -26
  101. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
  102. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body1.py +27 -1
  103. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body2.py +17 -43
  104. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body3.py +149 -0
  105. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  106. lightning_sdk/lightning_cloud/openapi/models/litpages_id_body.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/loggermetrics_id_body.py +123 -0
  108. lightning_sdk/lightning_cloud/openapi/models/metrics_stream_id_loggerartifacts_body.py +123 -0
  109. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +383 -0
  110. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_id_list.py → metricsstream_delete_body.py} +10 -10
  111. lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +175 -0
  112. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_response.py → model_id_versions_body.py} +25 -51
  113. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
  114. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +149 -0
  115. lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
  116. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  117. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  118. lightning_sdk/lightning_cloud/openapi/models/profiler_captures_body.py +279 -0
  119. lightning_sdk/lightning_cloud/openapi/models/profiler_enabled_body.py +149 -0
  120. lightning_sdk/lightning_cloud/openapi/models/project_id_agentmanagedendpoints_body.py +149 -0
  121. lightning_sdk/lightning_cloud/openapi/models/{project_id_assistants_body.py → project_id_agents_body.py} +159 -55
  122. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +71 -19
  123. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +27 -1
  124. lightning_sdk/lightning_cloud/openapi/models/project_id_jobs_body.py +175 -0
  125. lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +123 -0
  126. lightning_sdk/lightning_cloud/openapi/models/project_id_memberships_body.py +53 -1
  127. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_request.py → project_id_models_body.py} +70 -70
  128. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +227 -0
  129. lightning_sdk/lightning_cloud/openapi/models/project_id_secrets_body.py +27 -1
  130. lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +123 -0
  131. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  132. lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +175 -0
  133. lightning_sdk/lightning_cloud/openapi/models/secrets_id_body1.py +123 -0
  134. lightning_sdk/lightning_cloud/openapi/models/servers_server_id_body.py +123 -0
  135. lightning_sdk/lightning_cloud/openapi/models/service_artifact_artifact_kind.py +104 -0
  136. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +43 -43
  137. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  138. lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +305 -0
  139. lightning_sdk/lightning_cloud/openapi/models/{v1_download_model_response.py → snowflake_query_body.py} +51 -51
  140. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  141. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  142. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body.py +149 -0
  143. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body.py +149 -0
  144. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +149 -0
  145. lightning_sdk/lightning_cloud/openapi/models/v1_accelerator_quota_info.py +201 -0
  146. lightning_sdk/lightning_cloud/openapi/models/v1_ack_user_storage_violation_response.py +97 -0
  147. lightning_sdk/lightning_cloud/openapi/models/v1_add_job_timing_response.py +97 -0
  148. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +435 -0
  149. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +131 -1
  150. lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
  151. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  152. lightning_sdk/lightning_cloud/openapi/models/v1_append_logger_metrics_response.py +97 -0
  153. lightning_sdk/lightning_cloud/openapi/models/v1_approve_auto_join_domain_response.py +123 -0
  154. lightning_sdk/lightning_cloud/openapi/models/v1_assign_variant_response.py +97 -0
  155. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +131 -1
  156. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_item_status.py +253 -0
  157. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_status.py +123 -0
  158. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +104 -0
  159. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_domain_validation.py +175 -0
  160. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_org_response.py +149 -0
  161. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_spec.py +305 -0
  162. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_target_metric.py +149 -0
  163. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +133 -3
  164. lightning_sdk/lightning_cloud/openapi/models/v1_batch_update_lightningwork_response.py +97 -0
  165. lightning_sdk/lightning_cloud/openapi/models/v1_body.py +123 -0
  166. lightning_sdk/lightning_cloud/openapi/models/v1_cancellation_metadata.py +149 -0
  167. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +383 -0
  168. lightning_sdk/lightning_cloud/openapi/models/v1_check_snowflake_connection_response.py +123 -0
  169. lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +201 -0
  170. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +136 -6
  171. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version.py +27 -1
  172. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_config.py +1 -53
  173. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_startup_status.py +79 -1
  174. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_log_service.py → v1_cloud_space_session.py} +49 -49
  175. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
  176. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
  177. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
  178. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_names.py +123 -0
  179. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_proxy.py +201 -0
  180. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_resource_tag.py +149 -0
  181. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +357 -0
  182. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -107
  183. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_state.py +1 -0
  184. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +17 -43
  185. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +175 -0
  186. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  187. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +79 -1
  188. lightning_sdk/lightning_cloud/openapi/models/v1_complete_model_upload_response.py +97 -0
  189. lightning_sdk/lightning_cloud/openapi/models/v1_complete_multi_part_upload_response.py +97 -0
  190. lightning_sdk/lightning_cloud/openapi/models/v1_completed_part.py +149 -0
  191. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +15 -15
  192. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +26 -26
  193. lightning_sdk/lightning_cloud/openapi/models/v1_count_metrics_streams_response.py +123 -0
  194. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +53 -1
  195. lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_request.py +27 -1
  196. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +539 -0
  197. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_part_upload_response.py +123 -0
  198. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +159 -3
  199. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  200. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  201. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  202. lightning_sdk/lightning_cloud/openapi/models/v1_create_snowflake_connection_response.py +123 -0
  203. lightning_sdk/lightning_cloud/openapi/models/v1_create_user_secret_request.py +149 -0
  204. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +365 -1
  205. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_performance_profile.py → v1_data_connection_state.py} +11 -9
  206. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +201 -0
  207. lightning_sdk/lightning_cloud/openapi/models/v1_delete_affiliate_link_response.py +97 -0
  208. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_session_response.py +97 -0
  209. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_proxy_response.py +97 -0
  210. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_release_response.py +97 -0
  211. lightning_sdk/lightning_cloud/openapi/models/{v1_azure_cluster_driver_status.py → v1_delete_deployment_response.py} +6 -6
  212. lightning_sdk/lightning_cloud/openapi/models/v1_delete_index_response.py +97 -0
  213. lightning_sdk/lightning_cloud/openapi/models/{v1_byom_cluster_driver.py → v1_delete_job_response.py} +6 -6
  214. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_v2_response.py → v1_delete_logger_artifact_response.py} +6 -6
  215. lightning_sdk/lightning_cloud/openapi/models/v1_delete_managed_endpoint_response.py +97 -0
  216. lightning_sdk/lightning_cloud/openapi/models/v1_delete_metrics_stream_response.py +97 -0
  217. lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
  218. lightning_sdk/lightning_cloud/openapi/models/v1_delete_profiler_capture_response.py +97 -0
  219. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_release_response.py → v1_delete_shared_metrics_stream_response.py} +6 -6
  220. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +617 -0
  221. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +227 -0
  222. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event.py +357 -0
  223. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event_type.py +104 -0
  224. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +149 -0
  225. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
  226. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +331 -0
  227. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +201 -0
  228. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +105 -0
  229. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
  230. lightning_sdk/lightning_cloud/openapi/models/{appsv2_id_body.py → v1_deployment_strategy.py} +39 -39
  231. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +721 -0
  232. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  233. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_gallery_response.py +591 -0
  234. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +435 -0
  235. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +106 -0
  236. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +106 -0
  237. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +591 -0
  238. lightning_sdk/lightning_cloud/openapi/models/{instance_type_availability.py → v1_deployment_template_type.py} +10 -10
  239. lightning_sdk/lightning_cloud/openapi/models/{v1_get_lightningapp_source_code_download_url_response.py → v1_download_job_logs_response.py} +10 -10
  240. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +175 -0
  241. lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +279 -0
  242. lightning_sdk/lightning_cloud/openapi/models/v1_efs_config.py +201 -0
  243. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +53 -27
  244. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_auth.py +27 -1
  245. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_type.py +104 -0
  246. lightning_sdk/lightning_cloud/openapi/models/v1_execute_cloud_space_command_response.py +29 -3
  247. lightning_sdk/lightning_cloud/openapi/models/v1_execute_in_cloud_space_session_response.py +97 -0
  248. lightning_sdk/lightning_cloud/openapi/models/v1_execute_snowflake_query_response.py +149 -0
  249. lightning_sdk/lightning_cloud/openapi/models/v1_experiment.py +409 -0
  250. lightning_sdk/lightning_cloud/openapi/models/v1_export_snowflake_query_response.py +123 -0
  251. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +79 -1
  252. lightning_sdk/lightning_cloud/openapi/models/{v1_instance_spec.py → v1_filesystem_app.py} +85 -59
  253. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  254. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  255. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  256. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  257. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  258. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  259. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +123 -0
  260. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection.py +27 -1
  261. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  262. lightning_sdk/lightning_cloud/openapi/models/v1_get_affiliate_link_response.py +123 -0
  263. lightning_sdk/lightning_cloud/openapi/models/{v1_list_cluster_instance_types_response.py → v1_get_deployment_routing_telemetry_aggregated_response.py} +23 -23
  264. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_response.py +123 -0
  265. lightning_sdk/lightning_cloud/openapi/models/v1_get_folder_index_response.py +27 -1
  266. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_driver_status.py → v1_get_job_stats_response.py} +39 -39
  267. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_system_metrics_response.py +123 -0
  268. lightning_sdk/lightning_cloud/openapi/models/v1_get_lightningapp_instance_open_ports_response.py +123 -0
  269. lightning_sdk/lightning_cloud/openapi/models/v1_get_logger_metrics_response.py +123 -0
  270. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_upload_urls_response.py +123 -0
  271. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +175 -0
  272. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +279 -0
  273. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
  274. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningwork_cluster_driver.py → v1_get_project_artifact_response.py} +33 -14
  275. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
  276. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +383 -0
  277. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +67 -15
  278. lightning_sdk/lightning_cloud/openapi/models/v1_get_snowflake_query_response.py +149 -0
  279. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_balance_response.py +27 -1
  280. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
  281. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +279 -0
  282. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +201 -0
  283. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +163 -3
  284. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1_status.py +123 -0
  285. lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
  286. lightning_sdk/lightning_cloud/openapi/models/{v1_external_kubeconfig.py → v1_health_check_exec.py} +21 -21
  287. lightning_sdk/lightning_cloud/openapi/models/v1_health_check_http_get.py +149 -0
  288. lightning_sdk/lightning_cloud/openapi/models/v1_ids_logger_metrics.py +123 -0
  289. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +175 -0
  290. lightning_sdk/lightning_cloud/openapi/models/v1_interrupt_server_response.py +97 -0
  291. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +697 -0
  292. lightning_sdk/lightning_cloud/openapi/models/v1_job_health_check_config.py +253 -0
  293. lightning_sdk/lightning_cloud/openapi/models/v1_job_log_entry.py +175 -0
  294. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_page.py +227 -0
  295. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_response.py +149 -0
  296. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +669 -0
  297. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +201 -0
  298. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +331 -0
  299. lightning_sdk/lightning_cloud/openapi/models/v1_knowledge_configuration.py +279 -0
  300. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
  301. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +27 -1
  302. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_spec.py +105 -27
  303. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_status.py +53 -1
  304. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -27
  305. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +81 -3
  306. lightning_sdk/lightning_cloud/openapi/models/v1_list_affiliate_links_response.py +123 -0
  307. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  308. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_sessions_response.py +123 -0
  309. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_tags_response.py +6 -6
  310. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_availabilities_response.py +123 -0
  311. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_proxies_response.py +123 -0
  312. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_events_response.py +123 -0
  313. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_releases_response.py +123 -0
  314. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_tags_response.py +123 -0
  315. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_templates_response.py +175 -0
  316. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployments_response.py +123 -0
  317. lightning_sdk/lightning_cloud/openapi/models/v1_list_experiments_response.py +149 -0
  318. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  319. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  320. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  321. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  322. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  323. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  324. lightning_sdk/lightning_cloud/openapi/models/{v1_list_lightningapps_v2_response.py → v1_list_jobs_response.py} +31 -31
  325. lightning_sdk/lightning_cloud/openapi/models/v1_list_joinable_organizations_response.py +123 -0
  326. lightning_sdk/lightning_cloud/openapi/models/v1_list_logger_artifact_response.py +123 -0
  327. lightning_sdk/lightning_cloud/openapi/models/v1_list_metrics_streams_response.py +123 -0
  328. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
  329. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
  330. lightning_sdk/lightning_cloud/openapi/models/v1_list_new_features_for_user_response.py +123 -0
  331. lightning_sdk/lightning_cloud/openapi/models/v1_list_profiler_captures_response.py +123 -0
  332. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_locked_resources_response.py +123 -0
  333. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_cloud_spaces_response.py +3 -29
  334. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_deployment_templates_response.py +175 -0
  335. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +175 -0
  336. lightning_sdk/lightning_cloud/openapi/models/v1_lit_page.py +27 -1
  337. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +227 -0
  338. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +279 -0
  339. lightning_sdk/lightning_cloud/openapi/models/v1_locked_resource.py +227 -0
  340. lightning_sdk/lightning_cloud/openapi/models/v1_logger_artifact.py +227 -0
  341. lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
  342. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +81 -3
  343. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
  344. lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +175 -19
  345. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +305 -0
  346. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
  347. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +79 -1
  348. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +138 -8
  349. lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
  350. lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
  351. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +131 -1
  352. lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +175 -0
  353. lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +175 -0
  354. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +799 -0
  355. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tags.py +201 -0
  356. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tracker.py +383 -0
  357. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +95 -17
  358. lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
  359. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +131 -1
  360. lightning_sdk/lightning_cloud/openapi/models/v1_mount_target.py +201 -0
  361. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +487 -0
  362. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
  363. lightning_sdk/lightning_cloud/openapi/models/{get_cluster_health_response_health_status.py → v1_multi_machine_job_event_type.py} +9 -9
  364. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
  365. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
  366. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
  367. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +305 -0
  368. lightning_sdk/lightning_cloud/openapi/models/v1_named_get_logger_metrics.py +123 -0
  369. lightning_sdk/lightning_cloud/openapi/models/v1_new_feature.py +383 -0
  370. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_request.py +175 -0
  371. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_response.py +97 -0
  372. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
  373. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  374. lightning_sdk/lightning_cloud/openapi/models/v1_path_telemetry.py +123 -0
  375. lightning_sdk/lightning_cloud/openapi/models/v1_phase_type.py +104 -0
  376. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_capture.py +357 -0
  377. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_enabled_response.py +123 -0
  378. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +131 -1
  379. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +263 -3
  380. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  381. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +279 -0
  382. lightning_sdk/lightning_cloud/openapi/models/v1_published_cloud_space_response.py +188 -6
  383. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_capacity_block_response.py +175 -0
  384. lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
  385. lightning_sdk/lightning_cloud/openapi/models/v1_query_result.py +123 -0
  386. lightning_sdk/lightning_cloud/openapi/models/v1_query_result_row.py +123 -0
  387. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_path_response.py +97 -0
  388. lightning_sdk/lightning_cloud/openapi/models/v1_regional_load_balancer.py +149 -0
  389. lightning_sdk/lightning_cloud/openapi/models/v1_report_logs_activity_response.py +97 -0
  390. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_request.py +175 -0
  391. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_response.py +97 -0
  392. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_tag.py → v1_resource_tag.py} +18 -18
  393. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +123 -0
  394. lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +37 -11
  395. lightning_sdk/lightning_cloud/openapi/models/v1_restore_deployment_release_response.py +97 -0
  396. lightning_sdk/lightning_cloud/openapi/models/v1_rolling_update_strategy.py +149 -0
  397. lightning_sdk/lightning_cloud/openapi/models/v1_rule_condition.py +29 -3
  398. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +11 -0
  399. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  400. lightning_sdk/lightning_cloud/openapi/models/v1_search_job_logs_response.py +149 -0
  401. lightning_sdk/lightning_cloud/openapi/models/v1_secret.py +107 -3
  402. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningapp_cluster_driver.py → v1_secret_type.py} +10 -9
  403. lightning_sdk/lightning_cloud/openapi/models/v1_select.py +149 -0
  404. lightning_sdk/lightning_cloud/openapi/models/v1_server_check_in_response.py +97 -0
  405. lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +201 -0
  406. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +43 -43
  407. lightning_sdk/lightning_cloud/openapi/models/v1_should_start_syncing_response.py +123 -0
  408. lightning_sdk/lightning_cloud/openapi/models/v1_signed_url.py +149 -0
  409. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +131 -1
  410. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +53 -1
  411. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +27 -1
  412. lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +253 -0
  413. lightning_sdk/lightning_cloud/openapi/models/v1_status_code_telemetry.py +123 -0
  414. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +253 -0
  415. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +105 -0
  416. lightning_sdk/lightning_cloud/openapi/models/v1_studio_job_app.py +1 -0
  417. lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +617 -0
  418. lightning_sdk/lightning_cloud/openapi/models/v1_telemetry.py +331 -0
  419. lightning_sdk/lightning_cloud/openapi/models/v1_timestamp_code_telemetry.py +123 -0
  420. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  421. lightning_sdk/lightning_cloud/openapi/models/v1_transfer_user_balance_request.py +27 -1
  422. lightning_sdk/lightning_cloud/openapi/models/v1_update_billing_subscription_request.py +27 -1
  423. lightning_sdk/lightning_cloud/openapi/models/v1_update_cluster_accelerators_request.py +149 -0
  424. lightning_sdk/lightning_cloud/openapi/models/v1_update_index_response.py +97 -0
  425. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
  426. lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +97 -0
  427. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  428. lightning_sdk/lightning_cloud/openapi/models/v1_update_snowflake_query_response.py +97 -0
  429. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +53 -1
  430. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_request.py +123 -0
  431. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_response.py +97 -0
  432. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_cloud_space.py +97 -19
  433. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_job.py +227 -0
  434. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
  435. lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +107 -3
  436. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1006 -330
  437. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +45 -45
  438. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_flow_compute_config.py +29 -29
  439. lightning_sdk/lightning_cloud/openapi/models/v1_validate_assistant_status_response.py +149 -0
  440. lightning_sdk/lightning_cloud/openapi/models/v1_validate_auto_join_domain_response.py +97 -0
  441. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +107 -3
  442. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
  443. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
  444. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_request.py +175 -0
  445. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +123 -0
  446. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_model_response.py +123 -0
  447. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +175 -0
  448. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +125 -0
  449. lightning_sdk/lightning_cloud/openapi/models/validate.py +97 -19
  450. lightning_sdk/lightning_cloud/openapi/models/validateautojoindomain_domain_body.py +123 -0
  451. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body.py +123 -0
  452. lightning_sdk/lightning_cloud/rest_client.py +47 -23
  453. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +1 -1
  454. lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
  455. lightning_sdk/lightning_cloud/utils/data_connection.py +145 -7
  456. lightning_sdk/machine.py +17 -4
  457. lightning_sdk/mmt/__init__.py +4 -0
  458. lightning_sdk/mmt/base.py +288 -0
  459. lightning_sdk/mmt/mmt.py +282 -0
  460. lightning_sdk/mmt/v1.py +185 -0
  461. lightning_sdk/mmt/v2.py +193 -0
  462. lightning_sdk/models.py +153 -0
  463. lightning_sdk/organization.py +1 -1
  464. lightning_sdk/plugin.py +207 -41
  465. lightning_sdk/services/__init__.py +2 -1
  466. lightning_sdk/services/file_endpoint.py +116 -213
  467. lightning_sdk/services/finetune/__init__.py +13 -15
  468. lightning_sdk/services/utilities.py +99 -26
  469. lightning_sdk/status.py +2 -1
  470. lightning_sdk/studio.py +90 -17
  471. lightning_sdk/teamspace.py +189 -11
  472. lightning_sdk/user.py +1 -1
  473. lightning_sdk/utils/__init__.py +0 -0
  474. lightning_sdk/utils/dynamic.py +61 -0
  475. lightning_sdk/utils/enum.py +116 -0
  476. lightning_sdk/{utils.py → utils/resolve.py} +41 -4
  477. lightning_sdk-0.1.46.dist-info/LICENSE +21 -0
  478. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/METADATA +30 -4
  479. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/RECORD +482 -204
  480. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/WHEEL +1 -1
  481. lightning_sdk/lightning_cloud/openapi/models/app_id_releases_body.py +0 -541
  482. lightning_sdk/lightning_cloud/openapi/models/id_endpoint_body.py +0 -409
  483. lightning_sdk/lightning_cloud/openapi/models/id_get_body1.py +0 -333
  484. lightning_sdk/lightning_cloud/openapi/models/project_id_appsv2_body.py +0 -201
  485. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_driver_spec.py +0 -1039
  486. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_secondary_region_spec.py +0 -253
  487. lightning_sdk/lightning_cloud/openapi/models/v1_azure_cluster_driver_spec.py +0 -227
  488. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_driver.py +0 -175
  489. lightning_sdk/lightning_cloud/openapi/models/v1_container_resources.py +0 -201
  490. lightning_sdk/lightning_cloud/openapi/models/v1_eks_custer_driver_status.py +0 -387
  491. lightning_sdk/lightning_cloud/openapi/models/v1_instance_type.py +0 -305
  492. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_driver.py +0 -359
  493. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_status.py +0 -279
  494. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_release.py +0 -697
  495. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_v2.py +0 -331
  496. lightning_sdk/services/uploader.py +0 -123
  497. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/entry_points.txt +0 -0
  498. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/top_level.txt +0 -0
@@ -43,7 +43,7 @@ class AssistantsServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
- def assistants_service_create_assistant(self, body: 'ProjectIdAssistantsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
46
+ def assistants_service_create_assistant(self, body: 'ProjectIdAgentsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
47
47
  """assistants_service_create_assistant # noqa: E501
48
48
 
49
49
  This method makes a synchronous HTTP request by default. To make an
@@ -52,7 +52,7 @@ class AssistantsServiceApi(object):
52
52
  >>> result = thread.get()
53
53
 
54
54
  :param async_req bool
55
- :param ProjectIdAssistantsBody body: (required)
55
+ :param ProjectIdAgentsBody body: (required)
56
56
  :param str project_id: (required)
57
57
  :return: V1Assistant
58
58
  If the method is called asynchronously,
@@ -65,7 +65,7 @@ class AssistantsServiceApi(object):
65
65
  (data) = self.assistants_service_create_assistant_with_http_info(body, project_id, **kwargs) # noqa: E501
66
66
  return data
67
67
 
68
- def assistants_service_create_assistant_with_http_info(self, body: 'ProjectIdAssistantsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
68
+ def assistants_service_create_assistant_with_http_info(self, body: 'ProjectIdAgentsBody', project_id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
69
69
  """assistants_service_create_assistant # noqa: E501
70
70
 
71
71
  This method makes a synchronous HTTP request by default. To make an
@@ -74,7 +74,7 @@ class AssistantsServiceApi(object):
74
74
  >>> result = thread.get()
75
75
 
76
76
  :param async_req bool
77
- :param ProjectIdAssistantsBody body: (required)
77
+ :param ProjectIdAgentsBody body: (required)
78
78
  :param str project_id: (required)
79
79
  :return: V1Assistant
80
80
  If the method is called asynchronously,
@@ -133,7 +133,7 @@ class AssistantsServiceApi(object):
133
133
  auth_settings = [] # noqa: E501
134
134
 
135
135
  return self.api_client.call_api(
136
- '/v1/projects/{projectId}/assistants', 'POST',
136
+ '/v1/projects/{projectId}/agents', 'POST',
137
137
  path_params,
138
138
  query_params,
139
139
  header_params,
@@ -148,45 +148,45 @@ class AssistantsServiceApi(object):
148
148
  _request_timeout=params.get('_request_timeout'),
149
149
  collection_formats=collection_formats)
150
150
 
151
- def assistants_service_delete_assistant(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
152
- """assistants_service_delete_assistant # noqa: E501
151
+ def assistants_service_create_assistant_managed_endpoint(self, body: 'ProjectIdAgentmanagedendpointsBody', project_id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
152
+ """assistants_service_create_assistant_managed_endpoint # noqa: E501
153
153
 
154
154
  This method makes a synchronous HTTP request by default. To make an
155
155
  asynchronous HTTP request, please pass async_req=True
156
- >>> thread = api.assistants_service_delete_assistant(project_id, id, async_req=True)
156
+ >>> thread = api.assistants_service_create_assistant_managed_endpoint(body, project_id, async_req=True)
157
157
  >>> result = thread.get()
158
158
 
159
159
  :param async_req bool
160
+ :param ProjectIdAgentmanagedendpointsBody body: (required)
160
161
  :param str project_id: (required)
161
- :param str id: (required)
162
- :return: V1DeleteAssistantResponse
162
+ :return: V1ManagedEndpoint
163
163
  If the method is called asynchronously,
164
164
  returns the request thread.
165
165
  """
166
166
  kwargs['_return_http_data_only'] = True
167
167
  if kwargs.get('async_req'):
168
- return self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
168
+ return self.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
169
169
  else:
170
- (data) = self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
170
+ (data) = self.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, **kwargs) # noqa: E501
171
171
  return data
172
172
 
173
- def assistants_service_delete_assistant_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
174
- """assistants_service_delete_assistant # noqa: E501
173
+ def assistants_service_create_assistant_managed_endpoint_with_http_info(self, body: 'ProjectIdAgentmanagedendpointsBody', project_id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
174
+ """assistants_service_create_assistant_managed_endpoint # noqa: E501
175
175
 
176
176
  This method makes a synchronous HTTP request by default. To make an
177
177
  asynchronous HTTP request, please pass async_req=True
178
- >>> thread = api.assistants_service_delete_assistant_with_http_info(project_id, id, async_req=True)
178
+ >>> thread = api.assistants_service_create_assistant_managed_endpoint_with_http_info(body, project_id, async_req=True)
179
179
  >>> result = thread.get()
180
180
 
181
181
  :param async_req bool
182
+ :param ProjectIdAgentmanagedendpointsBody body: (required)
182
183
  :param str project_id: (required)
183
- :param str id: (required)
184
- :return: V1DeleteAssistantResponse
184
+ :return: V1ManagedEndpoint
185
185
  If the method is called asynchronously,
186
186
  returns the request thread.
187
187
  """
188
188
 
189
- all_params = ['project_id', 'id'] # noqa: E501
189
+ all_params = ['body', 'project_id'] # noqa: E501
190
190
  all_params.append('async_req')
191
191
  all_params.append('_return_http_data_only')
192
192
  all_params.append('_preload_content')
@@ -197,26 +197,24 @@ class AssistantsServiceApi(object):
197
197
  if key not in all_params:
198
198
  raise TypeError(
199
199
  "Got an unexpected keyword argument '%s'"
200
- " to method assistants_service_delete_assistant" % key
200
+ " to method assistants_service_create_assistant_managed_endpoint" % key
201
201
  )
202
202
  params[key] = val
203
203
  del params['kwargs']
204
+ # verify the required parameter 'body' is set
205
+ if ('body' not in params or
206
+ params['body'] is None):
207
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_create_assistant_managed_endpoint`") # noqa: E501
204
208
  # verify the required parameter 'project_id' is set
205
209
  if ('project_id' not in params or
206
210
  params['project_id'] is None):
207
- raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_delete_assistant`") # noqa: E501
208
- # verify the required parameter 'id' is set
209
- if ('id' not in params or
210
- params['id'] is None):
211
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant`") # noqa: E501
211
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_create_assistant_managed_endpoint`") # noqa: E501
212
212
 
213
213
  collection_formats = {}
214
214
 
215
215
  path_params = {}
216
216
  if 'project_id' in params:
217
217
  path_params['projectId'] = params['project_id'] # noqa: E501
218
- if 'id' in params:
219
- path_params['id'] = params['id'] # noqa: E501
220
218
 
221
219
  query_params = []
222
220
 
@@ -226,22 +224,28 @@ class AssistantsServiceApi(object):
226
224
  local_var_files = {}
227
225
 
228
226
  body_params = None
227
+ if 'body' in params:
228
+ body_params = params['body']
229
229
  # HTTP header `Accept`
230
230
  header_params['Accept'] = self.api_client.select_header_accept(
231
231
  ['application/json']) # noqa: E501
232
232
 
233
+ # HTTP header `Content-Type`
234
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
235
+ ['application/json']) # noqa: E501
236
+
233
237
  # Authentication setting
234
238
  auth_settings = [] # noqa: E501
235
239
 
236
240
  return self.api_client.call_api(
237
- '/v1/projects/{projectId}/assistants/{id}', 'DELETE',
241
+ '/v1/projects/{projectId}/agent-managed-endpoints', 'POST',
238
242
  path_params,
239
243
  query_params,
240
244
  header_params,
241
245
  body=body_params,
242
246
  post_params=form_params,
243
247
  files=local_var_files,
244
- response_type='V1DeleteAssistantResponse', # noqa: E501
248
+ response_type='V1ManagedEndpoint', # noqa: E501
245
249
  auth_settings=auth_settings,
246
250
  async_req=params.get('async_req'),
247
251
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -249,47 +253,45 @@ class AssistantsServiceApi(object):
249
253
  _request_timeout=params.get('_request_timeout'),
250
254
  collection_formats=collection_formats)
251
255
 
252
- def assistants_service_delete_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
253
- """assistants_service_delete_conversation # noqa: E501
256
+ def assistants_service_delete_assistant(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
257
+ """assistants_service_delete_assistant # noqa: E501
254
258
 
255
259
  This method makes a synchronous HTTP request by default. To make an
256
260
  asynchronous HTTP request, please pass async_req=True
257
- >>> thread = api.assistants_service_delete_conversation(assistant_id, id, async_req=True)
261
+ >>> thread = api.assistants_service_delete_assistant(project_id, id, async_req=True)
258
262
  >>> result = thread.get()
259
263
 
260
264
  :param async_req bool
261
- :param str assistant_id: (required)
265
+ :param str project_id: (required)
262
266
  :param str id: (required)
263
- :param bool delete_data:
264
- :return: V1DeleteConversationResponse
267
+ :return: V1DeleteAssistantResponse
265
268
  If the method is called asynchronously,
266
269
  returns the request thread.
267
270
  """
268
271
  kwargs['_return_http_data_only'] = True
269
272
  if kwargs.get('async_req'):
270
- return self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
273
+ return self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
271
274
  else:
272
- (data) = self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
275
+ (data) = self.assistants_service_delete_assistant_with_http_info(project_id, id, **kwargs) # noqa: E501
273
276
  return data
274
277
 
275
- def assistants_service_delete_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
276
- """assistants_service_delete_conversation # noqa: E501
278
+ def assistants_service_delete_assistant_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
279
+ """assistants_service_delete_assistant # noqa: E501
277
280
 
278
281
  This method makes a synchronous HTTP request by default. To make an
279
282
  asynchronous HTTP request, please pass async_req=True
280
- >>> thread = api.assistants_service_delete_conversation_with_http_info(assistant_id, id, async_req=True)
283
+ >>> thread = api.assistants_service_delete_assistant_with_http_info(project_id, id, async_req=True)
281
284
  >>> result = thread.get()
282
285
 
283
286
  :param async_req bool
284
- :param str assistant_id: (required)
287
+ :param str project_id: (required)
285
288
  :param str id: (required)
286
- :param bool delete_data:
287
- :return: V1DeleteConversationResponse
289
+ :return: V1DeleteAssistantResponse
288
290
  If the method is called asynchronously,
289
291
  returns the request thread.
290
292
  """
291
293
 
292
- all_params = ['assistant_id', 'id', 'delete_data'] # noqa: E501
294
+ all_params = ['project_id', 'id'] # noqa: E501
293
295
  all_params.append('async_req')
294
296
  all_params.append('_return_http_data_only')
295
297
  all_params.append('_preload_content')
@@ -300,30 +302,28 @@ class AssistantsServiceApi(object):
300
302
  if key not in all_params:
301
303
  raise TypeError(
302
304
  "Got an unexpected keyword argument '%s'"
303
- " to method assistants_service_delete_conversation" % key
305
+ " to method assistants_service_delete_assistant" % key
304
306
  )
305
307
  params[key] = val
306
308
  del params['kwargs']
307
- # verify the required parameter 'assistant_id' is set
308
- if ('assistant_id' not in params or
309
- params['assistant_id'] is None):
310
- raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_delete_conversation`") # noqa: E501
309
+ # verify the required parameter 'project_id' is set
310
+ if ('project_id' not in params or
311
+ params['project_id'] is None):
312
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_delete_assistant`") # noqa: E501
311
313
  # verify the required parameter 'id' is set
312
314
  if ('id' not in params or
313
315
  params['id'] is None):
314
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_conversation`") # noqa: E501
316
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant`") # noqa: E501
315
317
 
316
318
  collection_formats = {}
317
319
 
318
320
  path_params = {}
319
- if 'assistant_id' in params:
320
- path_params['assistantId'] = params['assistant_id'] # noqa: E501
321
+ if 'project_id' in params:
322
+ path_params['projectId'] = params['project_id'] # noqa: E501
321
323
  if 'id' in params:
322
324
  path_params['id'] = params['id'] # noqa: E501
323
325
 
324
326
  query_params = []
325
- if 'delete_data' in params:
326
- query_params.append(('deleteData', params['delete_data'])) # noqa: E501
327
327
 
328
328
  header_params = {}
329
329
 
@@ -339,14 +339,14 @@ class AssistantsServiceApi(object):
339
339
  auth_settings = [] # noqa: E501
340
340
 
341
341
  return self.api_client.call_api(
342
- '/v1/assistants/{assistantId}/conversations/{id}', 'DELETE',
342
+ '/v1/projects/{projectId}/agents/{id}', 'DELETE',
343
343
  path_params,
344
344
  query_params,
345
345
  header_params,
346
346
  body=body_params,
347
347
  post_params=form_params,
348
348
  files=local_var_files,
349
- response_type='V1DeleteConversationResponse', # noqa: E501
349
+ response_type='V1DeleteAssistantResponse', # noqa: E501
350
350
  auth_settings=auth_settings,
351
351
  async_req=params.get('async_req'),
352
352
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -354,43 +354,45 @@ class AssistantsServiceApi(object):
354
354
  _request_timeout=params.get('_request_timeout'),
355
355
  collection_formats=collection_formats)
356
356
 
357
- def assistants_service_get_assistant(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
358
- """assistants_service_get_assistant # noqa: E501
357
+ def assistants_service_delete_assistant_managed_endpoint(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteManagedEndpointResponse': # noqa: E501
358
+ """assistants_service_delete_assistant_managed_endpoint # noqa: E501
359
359
 
360
360
  This method makes a synchronous HTTP request by default. To make an
361
361
  asynchronous HTTP request, please pass async_req=True
362
- >>> thread = api.assistants_service_get_assistant(id, async_req=True)
362
+ >>> thread = api.assistants_service_delete_assistant_managed_endpoint(project_id, id, async_req=True)
363
363
  >>> result = thread.get()
364
364
 
365
365
  :param async_req bool
366
+ :param str project_id: (required)
366
367
  :param str id: (required)
367
- :return: V1Assistant
368
+ :return: V1DeleteManagedEndpointResponse
368
369
  If the method is called asynchronously,
369
370
  returns the request thread.
370
371
  """
371
372
  kwargs['_return_http_data_only'] = True
372
373
  if kwargs.get('async_req'):
373
- return self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
374
+ return self.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
374
375
  else:
375
- (data) = self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
376
+ (data) = self.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, **kwargs) # noqa: E501
376
377
  return data
377
378
 
378
- def assistants_service_get_assistant_with_http_info(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
379
- """assistants_service_get_assistant # noqa: E501
379
+ def assistants_service_delete_assistant_managed_endpoint_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteManagedEndpointResponse': # noqa: E501
380
+ """assistants_service_delete_assistant_managed_endpoint # noqa: E501
380
381
 
381
382
  This method makes a synchronous HTTP request by default. To make an
382
383
  asynchronous HTTP request, please pass async_req=True
383
- >>> thread = api.assistants_service_get_assistant_with_http_info(id, async_req=True)
384
+ >>> thread = api.assistants_service_delete_assistant_managed_endpoint_with_http_info(project_id, id, async_req=True)
384
385
  >>> result = thread.get()
385
386
 
386
387
  :param async_req bool
388
+ :param str project_id: (required)
387
389
  :param str id: (required)
388
- :return: V1Assistant
390
+ :return: V1DeleteManagedEndpointResponse
389
391
  If the method is called asynchronously,
390
392
  returns the request thread.
391
393
  """
392
394
 
393
- all_params = ['id'] # noqa: E501
395
+ all_params = ['project_id', 'id'] # noqa: E501
394
396
  all_params.append('async_req')
395
397
  all_params.append('_return_http_data_only')
396
398
  all_params.append('_preload_content')
@@ -401,18 +403,24 @@ class AssistantsServiceApi(object):
401
403
  if key not in all_params:
402
404
  raise TypeError(
403
405
  "Got an unexpected keyword argument '%s'"
404
- " to method assistants_service_get_assistant" % key
406
+ " to method assistants_service_delete_assistant_managed_endpoint" % key
405
407
  )
406
408
  params[key] = val
407
409
  del params['kwargs']
410
+ # verify the required parameter 'project_id' is set
411
+ if ('project_id' not in params or
412
+ params['project_id'] is None):
413
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_delete_assistant_managed_endpoint`") # noqa: E501
408
414
  # verify the required parameter 'id' is set
409
415
  if ('id' not in params or
410
416
  params['id'] is None):
411
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_assistant`") # noqa: E501
417
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_assistant_managed_endpoint`") # noqa: E501
412
418
 
413
419
  collection_formats = {}
414
420
 
415
421
  path_params = {}
422
+ if 'project_id' in params:
423
+ path_params['projectId'] = params['project_id'] # noqa: E501
416
424
  if 'id' in params:
417
425
  path_params['id'] = params['id'] # noqa: E501
418
426
 
@@ -432,14 +440,14 @@ class AssistantsServiceApi(object):
432
440
  auth_settings = [] # noqa: E501
433
441
 
434
442
  return self.api_client.call_api(
435
- '/v1/assistants/{id}', 'GET',
443
+ '/v1/projects/{projectId}/agent-managed-endpoints/{id}', 'DELETE',
436
444
  path_params,
437
445
  query_params,
438
446
  header_params,
439
447
  body=body_params,
440
448
  post_params=form_params,
441
449
  files=local_var_files,
442
- response_type='V1Assistant', # noqa: E501
450
+ response_type='V1DeleteManagedEndpointResponse', # noqa: E501
443
451
  auth_settings=auth_settings,
444
452
  async_req=params.get('async_req'),
445
453
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -447,45 +455,47 @@ class AssistantsServiceApi(object):
447
455
  _request_timeout=params.get('_request_timeout'),
448
456
  collection_formats=collection_formats)
449
457
 
450
- def assistants_service_get_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
451
- """assistants_service_get_conversation # noqa: E501
458
+ def assistants_service_delete_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
459
+ """assistants_service_delete_conversation # noqa: E501
452
460
 
453
461
  This method makes a synchronous HTTP request by default. To make an
454
462
  asynchronous HTTP request, please pass async_req=True
455
- >>> thread = api.assistants_service_get_conversation(assistant_id, id, async_req=True)
463
+ >>> thread = api.assistants_service_delete_conversation(assistant_id, id, async_req=True)
456
464
  >>> result = thread.get()
457
465
 
458
466
  :param async_req bool
459
467
  :param str assistant_id: (required)
460
468
  :param str id: (required)
461
- :return: V1Conversation
469
+ :param bool delete_data:
470
+ :return: V1DeleteConversationResponse
462
471
  If the method is called asynchronously,
463
472
  returns the request thread.
464
473
  """
465
474
  kwargs['_return_http_data_only'] = True
466
475
  if kwargs.get('async_req'):
467
- return self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
476
+ return self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
468
477
  else:
469
- (data) = self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
478
+ (data) = self.assistants_service_delete_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
470
479
  return data
471
480
 
472
- def assistants_service_get_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
473
- """assistants_service_get_conversation # noqa: E501
481
+ def assistants_service_delete_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1DeleteConversationResponse': # noqa: E501
482
+ """assistants_service_delete_conversation # noqa: E501
474
483
 
475
484
  This method makes a synchronous HTTP request by default. To make an
476
485
  asynchronous HTTP request, please pass async_req=True
477
- >>> thread = api.assistants_service_get_conversation_with_http_info(assistant_id, id, async_req=True)
486
+ >>> thread = api.assistants_service_delete_conversation_with_http_info(assistant_id, id, async_req=True)
478
487
  >>> result = thread.get()
479
488
 
480
489
  :param async_req bool
481
490
  :param str assistant_id: (required)
482
491
  :param str id: (required)
483
- :return: V1Conversation
492
+ :param bool delete_data:
493
+ :return: V1DeleteConversationResponse
484
494
  If the method is called asynchronously,
485
495
  returns the request thread.
486
496
  """
487
497
 
488
- all_params = ['assistant_id', 'id'] # noqa: E501
498
+ all_params = ['assistant_id', 'id', 'delete_data'] # noqa: E501
489
499
  all_params.append('async_req')
490
500
  all_params.append('_return_http_data_only')
491
501
  all_params.append('_preload_content')
@@ -496,18 +506,18 @@ class AssistantsServiceApi(object):
496
506
  if key not in all_params:
497
507
  raise TypeError(
498
508
  "Got an unexpected keyword argument '%s'"
499
- " to method assistants_service_get_conversation" % key
509
+ " to method assistants_service_delete_conversation" % key
500
510
  )
501
511
  params[key] = val
502
512
  del params['kwargs']
503
513
  # verify the required parameter 'assistant_id' is set
504
514
  if ('assistant_id' not in params or
505
515
  params['assistant_id'] is None):
506
- raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_get_conversation`") # noqa: E501
516
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_delete_conversation`") # noqa: E501
507
517
  # verify the required parameter 'id' is set
508
518
  if ('id' not in params or
509
519
  params['id'] is None):
510
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_conversation`") # noqa: E501
520
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_delete_conversation`") # noqa: E501
511
521
 
512
522
  collection_formats = {}
513
523
 
@@ -518,6 +528,8 @@ class AssistantsServiceApi(object):
518
528
  path_params['id'] = params['id'] # noqa: E501
519
529
 
520
530
  query_params = []
531
+ if 'delete_data' in params:
532
+ query_params.append(('deleteData', params['delete_data'])) # noqa: E501
521
533
 
522
534
  header_params = {}
523
535
 
@@ -533,14 +545,14 @@ class AssistantsServiceApi(object):
533
545
  auth_settings = [] # noqa: E501
534
546
 
535
547
  return self.api_client.call_api(
536
- '/v1/assistants/{assistantId}/conversations/{id}', 'GET',
548
+ '/v1/agents/{assistantId}/conversations/{id}', 'DELETE',
537
549
  path_params,
538
550
  query_params,
539
551
  header_params,
540
552
  body=body_params,
541
553
  post_params=form_params,
542
554
  files=local_var_files,
543
- response_type='V1Conversation', # noqa: E501
555
+ response_type='V1DeleteConversationResponse', # noqa: E501
544
556
  auth_settings=auth_settings,
545
557
  async_req=params.get('async_req'),
546
558
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -548,43 +560,43 @@ class AssistantsServiceApi(object):
548
560
  _request_timeout=params.get('_request_timeout'),
549
561
  collection_formats=collection_formats)
550
562
 
551
- def assistants_service_list_assistant_managed_endpoints(self, project_id: 'str', **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
552
- """ListAssistantManagedEndpoints returns a list of managed endpoint that users can use when creating their own assistant. These are served and managed by Lightning or 3rd parties # noqa: E501
563
+ def assistants_service_get_assistant(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
564
+ """assistants_service_get_assistant # noqa: E501
553
565
 
554
566
  This method makes a synchronous HTTP request by default. To make an
555
567
  asynchronous HTTP request, please pass async_req=True
556
- >>> thread = api.assistants_service_list_assistant_managed_endpoints(project_id, async_req=True)
568
+ >>> thread = api.assistants_service_get_assistant(id, async_req=True)
557
569
  >>> result = thread.get()
558
570
 
559
571
  :param async_req bool
560
- :param str project_id: (required)
561
- :return: V1ListManagedEndpointsResponse
572
+ :param str id: (required)
573
+ :return: V1Assistant
562
574
  If the method is called asynchronously,
563
575
  returns the request thread.
564
576
  """
565
577
  kwargs['_return_http_data_only'] = True
566
578
  if kwargs.get('async_req'):
567
- return self.assistants_service_list_assistant_managed_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
579
+ return self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
568
580
  else:
569
- (data) = self.assistants_service_list_assistant_managed_endpoints_with_http_info(project_id, **kwargs) # noqa: E501
581
+ (data) = self.assistants_service_get_assistant_with_http_info(id, **kwargs) # noqa: E501
570
582
  return data
571
583
 
572
- def assistants_service_list_assistant_managed_endpoints_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
573
- """ListAssistantManagedEndpoints returns a list of managed endpoint that users can use when creating their own assistant. These are served and managed by Lightning or 3rd parties # noqa: E501
584
+ def assistants_service_get_assistant_with_http_info(self, id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
585
+ """assistants_service_get_assistant # noqa: E501
574
586
 
575
587
  This method makes a synchronous HTTP request by default. To make an
576
588
  asynchronous HTTP request, please pass async_req=True
577
- >>> thread = api.assistants_service_list_assistant_managed_endpoints_with_http_info(project_id, async_req=True)
589
+ >>> thread = api.assistants_service_get_assistant_with_http_info(id, async_req=True)
578
590
  >>> result = thread.get()
579
591
 
580
592
  :param async_req bool
581
- :param str project_id: (required)
582
- :return: V1ListManagedEndpointsResponse
593
+ :param str id: (required)
594
+ :return: V1Assistant
583
595
  If the method is called asynchronously,
584
596
  returns the request thread.
585
597
  """
586
598
 
587
- all_params = ['project_id'] # noqa: E501
599
+ all_params = ['id'] # noqa: E501
588
600
  all_params.append('async_req')
589
601
  all_params.append('_return_http_data_only')
590
602
  all_params.append('_preload_content')
@@ -595,20 +607,20 @@ class AssistantsServiceApi(object):
595
607
  if key not in all_params:
596
608
  raise TypeError(
597
609
  "Got an unexpected keyword argument '%s'"
598
- " to method assistants_service_list_assistant_managed_endpoints" % key
610
+ " to method assistants_service_get_assistant" % key
599
611
  )
600
612
  params[key] = val
601
613
  del params['kwargs']
602
- # verify the required parameter 'project_id' is set
603
- if ('project_id' not in params or
604
- params['project_id'] is None):
605
- raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_list_assistant_managed_endpoints`") # noqa: E501
614
+ # verify the required parameter 'id' is set
615
+ if ('id' not in params or
616
+ params['id'] is None):
617
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_assistant`") # noqa: E501
606
618
 
607
619
  collection_formats = {}
608
620
 
609
621
  path_params = {}
610
- if 'project_id' in params:
611
- path_params['projectId'] = params['project_id'] # noqa: E501
622
+ if 'id' in params:
623
+ path_params['id'] = params['id'] # noqa: E501
612
624
 
613
625
  query_params = []
614
626
 
@@ -626,14 +638,14 @@ class AssistantsServiceApi(object):
626
638
  auth_settings = [] # noqa: E501
627
639
 
628
640
  return self.api_client.call_api(
629
- '/v1/projects/{projectId}/assistant-managed-endpoints', 'GET',
641
+ '/v1/agents/{id}', 'GET',
630
642
  path_params,
631
643
  query_params,
632
644
  header_params,
633
645
  body=body_params,
634
646
  post_params=form_params,
635
647
  files=local_var_files,
636
- response_type='V1ListManagedEndpointsResponse', # noqa: E501
648
+ response_type='V1Assistant', # noqa: E501
637
649
  auth_settings=auth_settings,
638
650
  async_req=params.get('async_req'),
639
651
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -641,49 +653,43 @@ class AssistantsServiceApi(object):
641
653
  _request_timeout=params.get('_request_timeout'),
642
654
  collection_formats=collection_formats)
643
655
 
644
- def assistants_service_list_assistants(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
645
- """assistants_service_list_assistants # noqa: E501
656
+ def assistants_service_get_assistant_knowledge_status(self, id: 'str', **kwargs) -> 'V1AssistantKnowledgeStatus': # noqa: E501
657
+ """GetAssistantKnowledgeStatus get the status of current uploads. For new uploads (direct binary uploads ) there is a dedicated HTTP handler registered on POST /v1/agents/{id}/knowledge # noqa: E501
646
658
 
647
659
  This method makes a synchronous HTTP request by default. To make an
648
660
  asynchronous HTTP request, please pass async_req=True
649
- >>> thread = api.assistants_service_list_assistants(async_req=True)
661
+ >>> thread = api.assistants_service_get_assistant_knowledge_status(id, async_req=True)
650
662
  >>> result = thread.get()
651
663
 
652
664
  :param async_req bool
653
- :param str org_id:
654
- :param str project_id:
655
- :param str cloudspace_id:
656
- :param bool published:
657
- :return: V1ListAssistantsResponse
665
+ :param str id: (required)
666
+ :return: V1AssistantKnowledgeStatus
658
667
  If the method is called asynchronously,
659
668
  returns the request thread.
660
669
  """
661
670
  kwargs['_return_http_data_only'] = True
662
671
  if kwargs.get('async_req'):
663
- return self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
672
+ return self.assistants_service_get_assistant_knowledge_status_with_http_info(id, **kwargs) # noqa: E501
664
673
  else:
665
- (data) = self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
674
+ (data) = self.assistants_service_get_assistant_knowledge_status_with_http_info(id, **kwargs) # noqa: E501
666
675
  return data
667
676
 
668
- def assistants_service_list_assistants_with_http_info(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
669
- """assistants_service_list_assistants # noqa: E501
677
+ def assistants_service_get_assistant_knowledge_status_with_http_info(self, id: 'str', **kwargs) -> 'V1AssistantKnowledgeStatus': # noqa: E501
678
+ """GetAssistantKnowledgeStatus get the status of current uploads. For new uploads (direct binary uploads ) there is a dedicated HTTP handler registered on POST /v1/agents/{id}/knowledge # noqa: E501
670
679
 
671
680
  This method makes a synchronous HTTP request by default. To make an
672
681
  asynchronous HTTP request, please pass async_req=True
673
- >>> thread = api.assistants_service_list_assistants_with_http_info(async_req=True)
682
+ >>> thread = api.assistants_service_get_assistant_knowledge_status_with_http_info(id, async_req=True)
674
683
  >>> result = thread.get()
675
684
 
676
685
  :param async_req bool
677
- :param str org_id:
678
- :param str project_id:
679
- :param str cloudspace_id:
680
- :param bool published:
681
- :return: V1ListAssistantsResponse
686
+ :param str id: (required)
687
+ :return: V1AssistantKnowledgeStatus
682
688
  If the method is called asynchronously,
683
689
  returns the request thread.
684
690
  """
685
691
 
686
- all_params = ['org_id', 'project_id', 'cloudspace_id', 'published'] # noqa: E501
692
+ all_params = ['id'] # noqa: E501
687
693
  all_params.append('async_req')
688
694
  all_params.append('_return_http_data_only')
689
695
  all_params.append('_preload_content')
@@ -694,24 +700,22 @@ class AssistantsServiceApi(object):
694
700
  if key not in all_params:
695
701
  raise TypeError(
696
702
  "Got an unexpected keyword argument '%s'"
697
- " to method assistants_service_list_assistants" % key
703
+ " to method assistants_service_get_assistant_knowledge_status" % key
698
704
  )
699
705
  params[key] = val
700
706
  del params['kwargs']
707
+ # verify the required parameter 'id' is set
708
+ if ('id' not in params or
709
+ params['id'] is None):
710
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_assistant_knowledge_status`") # noqa: E501
701
711
 
702
712
  collection_formats = {}
703
713
 
704
714
  path_params = {}
715
+ if 'id' in params:
716
+ path_params['id'] = params['id'] # noqa: E501
705
717
 
706
718
  query_params = []
707
- if 'org_id' in params:
708
- query_params.append(('orgId', params['org_id'])) # noqa: E501
709
- if 'project_id' in params:
710
- query_params.append(('projectId', params['project_id'])) # noqa: E501
711
- if 'cloudspace_id' in params:
712
- query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
713
- if 'published' in params:
714
- query_params.append(('published', params['published'])) # noqa: E501
715
719
 
716
720
  header_params = {}
717
721
 
@@ -727,14 +731,14 @@ class AssistantsServiceApi(object):
727
731
  auth_settings = [] # noqa: E501
728
732
 
729
733
  return self.api_client.call_api(
730
- '/v1/assistants', 'GET',
734
+ '/v1/agents/{id}/knowledge', 'GET',
731
735
  path_params,
732
736
  query_params,
733
737
  header_params,
734
738
  body=body_params,
735
739
  post_params=form_params,
736
740
  files=local_var_files,
737
- response_type='V1ListAssistantsResponse', # noqa: E501
741
+ response_type='V1AssistantKnowledgeStatus', # noqa: E501
738
742
  auth_settings=auth_settings,
739
743
  async_req=params.get('async_req'),
740
744
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -742,45 +746,45 @@ class AssistantsServiceApi(object):
742
746
  _request_timeout=params.get('_request_timeout'),
743
747
  collection_formats=collection_formats)
744
748
 
745
- def assistants_service_list_conversations(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
746
- """Conversations # noqa: E501
749
+ def assistants_service_get_conversation(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
750
+ """assistants_service_get_conversation # noqa: E501
747
751
 
748
752
  This method makes a synchronous HTTP request by default. To make an
749
753
  asynchronous HTTP request, please pass async_req=True
750
- >>> thread = api.assistants_service_list_conversations(assistant_id, async_req=True)
754
+ >>> thread = api.assistants_service_get_conversation(assistant_id, id, async_req=True)
751
755
  >>> result = thread.get()
752
756
 
753
757
  :param async_req bool
754
758
  :param str assistant_id: (required)
755
- :param str page_token:
756
- :return: V1ListConversationsResponse
759
+ :param str id: (required)
760
+ :return: V1Conversation
757
761
  If the method is called asynchronously,
758
762
  returns the request thread.
759
763
  """
760
764
  kwargs['_return_http_data_only'] = True
761
765
  if kwargs.get('async_req'):
762
- return self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
766
+ return self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
763
767
  else:
764
- (data) = self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
768
+ (data) = self.assistants_service_get_conversation_with_http_info(assistant_id, id, **kwargs) # noqa: E501
765
769
  return data
766
770
 
767
- def assistants_service_list_conversations_with_http_info(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
768
- """Conversations # noqa: E501
771
+ def assistants_service_get_conversation_with_http_info(self, assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
772
+ """assistants_service_get_conversation # noqa: E501
769
773
 
770
774
  This method makes a synchronous HTTP request by default. To make an
771
775
  asynchronous HTTP request, please pass async_req=True
772
- >>> thread = api.assistants_service_list_conversations_with_http_info(assistant_id, async_req=True)
776
+ >>> thread = api.assistants_service_get_conversation_with_http_info(assistant_id, id, async_req=True)
773
777
  >>> result = thread.get()
774
778
 
775
779
  :param async_req bool
776
780
  :param str assistant_id: (required)
777
- :param str page_token:
778
- :return: V1ListConversationsResponse
781
+ :param str id: (required)
782
+ :return: V1Conversation
779
783
  If the method is called asynchronously,
780
784
  returns the request thread.
781
785
  """
782
786
 
783
- all_params = ['assistant_id', 'page_token'] # noqa: E501
787
+ all_params = ['assistant_id', 'id'] # noqa: E501
784
788
  all_params.append('async_req')
785
789
  all_params.append('_return_http_data_only')
786
790
  all_params.append('_preload_content')
@@ -791,24 +795,28 @@ class AssistantsServiceApi(object):
791
795
  if key not in all_params:
792
796
  raise TypeError(
793
797
  "Got an unexpected keyword argument '%s'"
794
- " to method assistants_service_list_conversations" % key
798
+ " to method assistants_service_get_conversation" % key
795
799
  )
796
800
  params[key] = val
797
801
  del params['kwargs']
798
802
  # verify the required parameter 'assistant_id' is set
799
803
  if ('assistant_id' not in params or
800
804
  params['assistant_id'] is None):
801
- raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_list_conversations`") # noqa: E501
805
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_get_conversation`") # noqa: E501
806
+ # verify the required parameter 'id' is set
807
+ if ('id' not in params or
808
+ params['id'] is None):
809
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_get_conversation`") # noqa: E501
802
810
 
803
811
  collection_formats = {}
804
812
 
805
813
  path_params = {}
806
814
  if 'assistant_id' in params:
807
815
  path_params['assistantId'] = params['assistant_id'] # noqa: E501
816
+ if 'id' in params:
817
+ path_params['id'] = params['id'] # noqa: E501
808
818
 
809
819
  query_params = []
810
- if 'page_token' in params:
811
- query_params.append(('pageToken', params['page_token'])) # noqa: E501
812
820
 
813
821
  header_params = {}
814
822
 
@@ -824,14 +832,14 @@ class AssistantsServiceApi(object):
824
832
  auth_settings = [] # noqa: E501
825
833
 
826
834
  return self.api_client.call_api(
827
- '/v1/assistants/{assistantId}/conversations', 'GET',
835
+ '/v1/agents/{assistantId}/conversations/{id}', 'GET',
828
836
  path_params,
829
837
  query_params,
830
838
  header_params,
831
839
  body=body_params,
832
840
  post_params=form_params,
833
841
  files=local_var_files,
834
- response_type='V1ListConversationsResponse', # noqa: E501
842
+ response_type='V1Conversation', # noqa: E501
835
843
  auth_settings=auth_settings,
836
844
  async_req=params.get('async_req'),
837
845
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -839,45 +847,782 @@ class AssistantsServiceApi(object):
839
847
  _request_timeout=params.get('_request_timeout'),
840
848
  collection_formats=collection_formats)
841
849
 
842
- def assistants_service_start_conversation(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
843
- """assistants_service_start_conversation # noqa: E501
850
+ def assistants_service_get_managed_model_by_name(self, project_id: 'str', managed_endpoint_id: 'str', name: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
851
+ """assistants_service_get_managed_model_by_name # noqa: E501
844
852
 
845
853
  This method makes a synchronous HTTP request by default. To make an
846
854
  asynchronous HTTP request, please pass async_req=True
847
- >>> thread = api.assistants_service_start_conversation(body, assistant_id, async_req=True)
855
+ >>> thread = api.assistants_service_get_managed_model_by_name(project_id, managed_endpoint_id, name, async_req=True)
848
856
  >>> result = thread.get()
849
857
 
850
858
  :param async_req bool
851
- :param AssistantIdConversationsBody body: (required)
852
- :param str assistant_id: (required)
853
- :return: StreamResultOfV1ConversationResponseChunk
859
+ :param str project_id: (required)
860
+ :param str managed_endpoint_id: (required)
861
+ :param str name: (required)
862
+ :return: V1ManagedModel
854
863
  If the method is called asynchronously,
855
864
  returns the request thread.
856
865
  """
857
866
  kwargs['_return_http_data_only'] = True
858
867
  if kwargs.get('async_req'):
859
- return self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
868
+ return self.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, **kwargs) # noqa: E501
860
869
  else:
861
- (data) = self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
870
+ (data) = self.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, **kwargs) # noqa: E501
862
871
  return data
863
872
 
864
- def assistants_service_start_conversation_with_http_info(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
873
+ def assistants_service_get_managed_model_by_name_with_http_info(self, project_id: 'str', managed_endpoint_id: 'str', name: 'str', **kwargs) -> 'V1ManagedModel': # noqa: E501
874
+ """assistants_service_get_managed_model_by_name # noqa: E501
875
+
876
+ This method makes a synchronous HTTP request by default. To make an
877
+ asynchronous HTTP request, please pass async_req=True
878
+ >>> thread = api.assistants_service_get_managed_model_by_name_with_http_info(project_id, managed_endpoint_id, name, async_req=True)
879
+ >>> result = thread.get()
880
+
881
+ :param async_req bool
882
+ :param str project_id: (required)
883
+ :param str managed_endpoint_id: (required)
884
+ :param str name: (required)
885
+ :return: V1ManagedModel
886
+ If the method is called asynchronously,
887
+ returns the request thread.
888
+ """
889
+
890
+ all_params = ['project_id', 'managed_endpoint_id', 'name'] # noqa: E501
891
+ all_params.append('async_req')
892
+ all_params.append('_return_http_data_only')
893
+ all_params.append('_preload_content')
894
+ all_params.append('_request_timeout')
895
+
896
+ params = locals()
897
+ for key, val in six.iteritems(params['kwargs']):
898
+ if key not in all_params:
899
+ raise TypeError(
900
+ "Got an unexpected keyword argument '%s'"
901
+ " to method assistants_service_get_managed_model_by_name" % key
902
+ )
903
+ params[key] = val
904
+ del params['kwargs']
905
+ # verify the required parameter 'project_id' is set
906
+ if ('project_id' not in params or
907
+ params['project_id'] is None):
908
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
909
+ # verify the required parameter 'managed_endpoint_id' is set
910
+ if ('managed_endpoint_id' not in params or
911
+ params['managed_endpoint_id'] is None):
912
+ raise ValueError("Missing the required parameter `managed_endpoint_id` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
913
+ # verify the required parameter 'name' is set
914
+ if ('name' not in params or
915
+ params['name'] is None):
916
+ raise ValueError("Missing the required parameter `name` when calling `assistants_service_get_managed_model_by_name`") # noqa: E501
917
+
918
+ collection_formats = {}
919
+
920
+ path_params = {}
921
+ if 'project_id' in params:
922
+ path_params['projectId'] = params['project_id'] # noqa: E501
923
+ if 'managed_endpoint_id' in params:
924
+ path_params['managedEndpointId'] = params['managed_endpoint_id'] # noqa: E501
925
+ if 'name' in params:
926
+ path_params['name'] = params['name'] # noqa: E501
927
+
928
+ query_params = []
929
+
930
+ header_params = {}
931
+
932
+ form_params = []
933
+ local_var_files = {}
934
+
935
+ body_params = None
936
+ # HTTP header `Accept`
937
+ header_params['Accept'] = self.api_client.select_header_accept(
938
+ ['application/json']) # noqa: E501
939
+
940
+ # Authentication setting
941
+ auth_settings = [] # noqa: E501
942
+
943
+ return self.api_client.call_api(
944
+ '/v1/projects/{projectId}/agent-managed-endpoints/{managedEndpointId}/model/{name}', 'GET',
945
+ path_params,
946
+ query_params,
947
+ header_params,
948
+ body=body_params,
949
+ post_params=form_params,
950
+ files=local_var_files,
951
+ response_type='V1ManagedModel', # noqa: E501
952
+ auth_settings=auth_settings,
953
+ async_req=params.get('async_req'),
954
+ _return_http_data_only=params.get('_return_http_data_only'),
955
+ _preload_content=params.get('_preload_content', True),
956
+ _request_timeout=params.get('_request_timeout'),
957
+ collection_formats=collection_formats)
958
+
959
+ def assistants_service_list_assistant_managed_endpoints(self, **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
960
+ """ListAssistantManagedEndpoints returns a list of managed endpoint that users can use when creating their own assistant. These are served and managed by Lightning or 3rd parties # noqa: E501
961
+
962
+ This method makes a synchronous HTTP request by default. To make an
963
+ asynchronous HTTP request, please pass async_req=True
964
+ >>> thread = api.assistants_service_list_assistant_managed_endpoints(async_req=True)
965
+ >>> result = thread.get()
966
+
967
+ :param async_req bool
968
+ :param str project_id:
969
+ :param str org_id:
970
+ :return: V1ListManagedEndpointsResponse
971
+ If the method is called asynchronously,
972
+ returns the request thread.
973
+ """
974
+ kwargs['_return_http_data_only'] = True
975
+ if kwargs.get('async_req'):
976
+ return self.assistants_service_list_assistant_managed_endpoints_with_http_info(**kwargs) # noqa: E501
977
+ else:
978
+ (data) = self.assistants_service_list_assistant_managed_endpoints_with_http_info(**kwargs) # noqa: E501
979
+ return data
980
+
981
+ def assistants_service_list_assistant_managed_endpoints_with_http_info(self, **kwargs) -> 'V1ListManagedEndpointsResponse': # noqa: E501
982
+ """ListAssistantManagedEndpoints returns a list of managed endpoint that users can use when creating their own assistant. These are served and managed by Lightning or 3rd parties # noqa: E501
983
+
984
+ This method makes a synchronous HTTP request by default. To make an
985
+ asynchronous HTTP request, please pass async_req=True
986
+ >>> thread = api.assistants_service_list_assistant_managed_endpoints_with_http_info(async_req=True)
987
+ >>> result = thread.get()
988
+
989
+ :param async_req bool
990
+ :param str project_id:
991
+ :param str org_id:
992
+ :return: V1ListManagedEndpointsResponse
993
+ If the method is called asynchronously,
994
+ returns the request thread.
995
+ """
996
+
997
+ all_params = ['project_id', 'org_id'] # noqa: E501
998
+ all_params.append('async_req')
999
+ all_params.append('_return_http_data_only')
1000
+ all_params.append('_preload_content')
1001
+ all_params.append('_request_timeout')
1002
+
1003
+ params = locals()
1004
+ for key, val in six.iteritems(params['kwargs']):
1005
+ if key not in all_params:
1006
+ raise TypeError(
1007
+ "Got an unexpected keyword argument '%s'"
1008
+ " to method assistants_service_list_assistant_managed_endpoints" % key
1009
+ )
1010
+ params[key] = val
1011
+ del params['kwargs']
1012
+
1013
+ collection_formats = {}
1014
+
1015
+ path_params = {}
1016
+
1017
+ query_params = []
1018
+ if 'project_id' in params:
1019
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
1020
+ if 'org_id' in params:
1021
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1022
+
1023
+ header_params = {}
1024
+
1025
+ form_params = []
1026
+ local_var_files = {}
1027
+
1028
+ body_params = None
1029
+ # HTTP header `Accept`
1030
+ header_params['Accept'] = self.api_client.select_header_accept(
1031
+ ['application/json']) # noqa: E501
1032
+
1033
+ # Authentication setting
1034
+ auth_settings = [] # noqa: E501
1035
+
1036
+ return self.api_client.call_api(
1037
+ '/v1/agent-managed-endpoints', 'GET',
1038
+ path_params,
1039
+ query_params,
1040
+ header_params,
1041
+ body=body_params,
1042
+ post_params=form_params,
1043
+ files=local_var_files,
1044
+ response_type='V1ListManagedEndpointsResponse', # noqa: E501
1045
+ auth_settings=auth_settings,
1046
+ async_req=params.get('async_req'),
1047
+ _return_http_data_only=params.get('_return_http_data_only'),
1048
+ _preload_content=params.get('_preload_content', True),
1049
+ _request_timeout=params.get('_request_timeout'),
1050
+ collection_formats=collection_formats)
1051
+
1052
+ def assistants_service_list_assistants(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
1053
+ """assistants_service_list_assistants # noqa: E501
1054
+
1055
+ This method makes a synchronous HTTP request by default. To make an
1056
+ asynchronous HTTP request, please pass async_req=True
1057
+ >>> thread = api.assistants_service_list_assistants(async_req=True)
1058
+ >>> result = thread.get()
1059
+
1060
+ :param async_req bool
1061
+ :param str org_id:
1062
+ :param str project_id:
1063
+ :param str cloudspace_id:
1064
+ :param bool published:
1065
+ :param str internal_name:
1066
+ :return: V1ListAssistantsResponse
1067
+ If the method is called asynchronously,
1068
+ returns the request thread.
1069
+ """
1070
+ kwargs['_return_http_data_only'] = True
1071
+ if kwargs.get('async_req'):
1072
+ return self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
1073
+ else:
1074
+ (data) = self.assistants_service_list_assistants_with_http_info(**kwargs) # noqa: E501
1075
+ return data
1076
+
1077
+ def assistants_service_list_assistants_with_http_info(self, **kwargs) -> 'V1ListAssistantsResponse': # noqa: E501
1078
+ """assistants_service_list_assistants # noqa: E501
1079
+
1080
+ This method makes a synchronous HTTP request by default. To make an
1081
+ asynchronous HTTP request, please pass async_req=True
1082
+ >>> thread = api.assistants_service_list_assistants_with_http_info(async_req=True)
1083
+ >>> result = thread.get()
1084
+
1085
+ :param async_req bool
1086
+ :param str org_id:
1087
+ :param str project_id:
1088
+ :param str cloudspace_id:
1089
+ :param bool published:
1090
+ :param str internal_name:
1091
+ :return: V1ListAssistantsResponse
1092
+ If the method is called asynchronously,
1093
+ returns the request thread.
1094
+ """
1095
+
1096
+ all_params = ['org_id', 'project_id', 'cloudspace_id', 'published', 'internal_name'] # noqa: E501
1097
+ all_params.append('async_req')
1098
+ all_params.append('_return_http_data_only')
1099
+ all_params.append('_preload_content')
1100
+ all_params.append('_request_timeout')
1101
+
1102
+ params = locals()
1103
+ for key, val in six.iteritems(params['kwargs']):
1104
+ if key not in all_params:
1105
+ raise TypeError(
1106
+ "Got an unexpected keyword argument '%s'"
1107
+ " to method assistants_service_list_assistants" % key
1108
+ )
1109
+ params[key] = val
1110
+ del params['kwargs']
1111
+
1112
+ collection_formats = {}
1113
+
1114
+ path_params = {}
1115
+
1116
+ query_params = []
1117
+ if 'org_id' in params:
1118
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1119
+ if 'project_id' in params:
1120
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
1121
+ if 'cloudspace_id' in params:
1122
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
1123
+ if 'published' in params:
1124
+ query_params.append(('published', params['published'])) # noqa: E501
1125
+ if 'internal_name' in params:
1126
+ query_params.append(('internalName', params['internal_name'])) # noqa: E501
1127
+
1128
+ header_params = {}
1129
+
1130
+ form_params = []
1131
+ local_var_files = {}
1132
+
1133
+ body_params = None
1134
+ # HTTP header `Accept`
1135
+ header_params['Accept'] = self.api_client.select_header_accept(
1136
+ ['application/json']) # noqa: E501
1137
+
1138
+ # Authentication setting
1139
+ auth_settings = [] # noqa: E501
1140
+
1141
+ return self.api_client.call_api(
1142
+ '/v1/agents', 'GET',
1143
+ path_params,
1144
+ query_params,
1145
+ header_params,
1146
+ body=body_params,
1147
+ post_params=form_params,
1148
+ files=local_var_files,
1149
+ response_type='V1ListAssistantsResponse', # noqa: E501
1150
+ auth_settings=auth_settings,
1151
+ async_req=params.get('async_req'),
1152
+ _return_http_data_only=params.get('_return_http_data_only'),
1153
+ _preload_content=params.get('_preload_content', True),
1154
+ _request_timeout=params.get('_request_timeout'),
1155
+ collection_formats=collection_formats)
1156
+
1157
+ def assistants_service_list_conversations(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
1158
+ """Conversations # noqa: E501
1159
+
1160
+ This method makes a synchronous HTTP request by default. To make an
1161
+ asynchronous HTTP request, please pass async_req=True
1162
+ >>> thread = api.assistants_service_list_conversations(assistant_id, async_req=True)
1163
+ >>> result = thread.get()
1164
+
1165
+ :param async_req bool
1166
+ :param str assistant_id: (required)
1167
+ :param str page_token:
1168
+ :return: V1ListConversationsResponse
1169
+ If the method is called asynchronously,
1170
+ returns the request thread.
1171
+ """
1172
+ kwargs['_return_http_data_only'] = True
1173
+ if kwargs.get('async_req'):
1174
+ return self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
1175
+ else:
1176
+ (data) = self.assistants_service_list_conversations_with_http_info(assistant_id, **kwargs) # noqa: E501
1177
+ return data
1178
+
1179
+ def assistants_service_list_conversations_with_http_info(self, assistant_id: 'str', **kwargs) -> 'V1ListConversationsResponse': # noqa: E501
1180
+ """Conversations # noqa: E501
1181
+
1182
+ This method makes a synchronous HTTP request by default. To make an
1183
+ asynchronous HTTP request, please pass async_req=True
1184
+ >>> thread = api.assistants_service_list_conversations_with_http_info(assistant_id, async_req=True)
1185
+ >>> result = thread.get()
1186
+
1187
+ :param async_req bool
1188
+ :param str assistant_id: (required)
1189
+ :param str page_token:
1190
+ :return: V1ListConversationsResponse
1191
+ If the method is called asynchronously,
1192
+ returns the request thread.
1193
+ """
1194
+
1195
+ all_params = ['assistant_id', 'page_token'] # noqa: E501
1196
+ all_params.append('async_req')
1197
+ all_params.append('_return_http_data_only')
1198
+ all_params.append('_preload_content')
1199
+ all_params.append('_request_timeout')
1200
+
1201
+ params = locals()
1202
+ for key, val in six.iteritems(params['kwargs']):
1203
+ if key not in all_params:
1204
+ raise TypeError(
1205
+ "Got an unexpected keyword argument '%s'"
1206
+ " to method assistants_service_list_conversations" % key
1207
+ )
1208
+ params[key] = val
1209
+ del params['kwargs']
1210
+ # verify the required parameter 'assistant_id' is set
1211
+ if ('assistant_id' not in params or
1212
+ params['assistant_id'] is None):
1213
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_list_conversations`") # noqa: E501
1214
+
1215
+ collection_formats = {}
1216
+
1217
+ path_params = {}
1218
+ if 'assistant_id' in params:
1219
+ path_params['assistantId'] = params['assistant_id'] # noqa: E501
1220
+
1221
+ query_params = []
1222
+ if 'page_token' in params:
1223
+ query_params.append(('pageToken', params['page_token'])) # noqa: E501
1224
+
1225
+ header_params = {}
1226
+
1227
+ form_params = []
1228
+ local_var_files = {}
1229
+
1230
+ body_params = None
1231
+ # HTTP header `Accept`
1232
+ header_params['Accept'] = self.api_client.select_header_accept(
1233
+ ['application/json']) # noqa: E501
1234
+
1235
+ # Authentication setting
1236
+ auth_settings = [] # noqa: E501
1237
+
1238
+ return self.api_client.call_api(
1239
+ '/v1/agents/{assistantId}/conversations', 'GET',
1240
+ path_params,
1241
+ query_params,
1242
+ header_params,
1243
+ body=body_params,
1244
+ post_params=form_params,
1245
+ files=local_var_files,
1246
+ response_type='V1ListConversationsResponse', # noqa: E501
1247
+ auth_settings=auth_settings,
1248
+ async_req=params.get('async_req'),
1249
+ _return_http_data_only=params.get('_return_http_data_only'),
1250
+ _preload_content=params.get('_preload_content', True),
1251
+ _request_timeout=params.get('_request_timeout'),
1252
+ collection_formats=collection_formats)
1253
+
1254
+ def assistants_service_start_conversation(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
1255
+ """assistants_service_start_conversation # noqa: E501
1256
+
1257
+ This method makes a synchronous HTTP request by default. To make an
1258
+ asynchronous HTTP request, please pass async_req=True
1259
+ >>> thread = api.assistants_service_start_conversation(body, assistant_id, async_req=True)
1260
+ >>> result = thread.get()
1261
+
1262
+ :param async_req bool
1263
+ :param AssistantIdConversationsBody body: (required)
1264
+ :param str assistant_id: (required)
1265
+ :return: StreamResultOfV1ConversationResponseChunk
1266
+ If the method is called asynchronously,
1267
+ returns the request thread.
1268
+ """
1269
+ kwargs['_return_http_data_only'] = True
1270
+ if kwargs.get('async_req'):
1271
+ return self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
1272
+ else:
1273
+ (data) = self.assistants_service_start_conversation_with_http_info(body, assistant_id, **kwargs) # noqa: E501
1274
+ return data
1275
+
1276
+ def assistants_service_start_conversation_with_http_info(self, body: 'AssistantIdConversationsBody', assistant_id: 'str', **kwargs) -> 'StreamResultOfV1ConversationResponseChunk': # noqa: E501
865
1277
  """assistants_service_start_conversation # noqa: E501
866
1278
 
867
1279
  This method makes a synchronous HTTP request by default. To make an
868
1280
  asynchronous HTTP request, please pass async_req=True
869
- >>> thread = api.assistants_service_start_conversation_with_http_info(body, assistant_id, async_req=True)
1281
+ >>> thread = api.assistants_service_start_conversation_with_http_info(body, assistant_id, async_req=True)
1282
+ >>> result = thread.get()
1283
+
1284
+ :param async_req bool
1285
+ :param AssistantIdConversationsBody body: (required)
1286
+ :param str assistant_id: (required)
1287
+ :return: StreamResultOfV1ConversationResponseChunk
1288
+ If the method is called asynchronously,
1289
+ returns the request thread.
1290
+ """
1291
+
1292
+ all_params = ['body', 'assistant_id'] # noqa: E501
1293
+ all_params.append('async_req')
1294
+ all_params.append('_return_http_data_only')
1295
+ all_params.append('_preload_content')
1296
+ all_params.append('_request_timeout')
1297
+
1298
+ params = locals()
1299
+ for key, val in six.iteritems(params['kwargs']):
1300
+ if key not in all_params:
1301
+ raise TypeError(
1302
+ "Got an unexpected keyword argument '%s'"
1303
+ " to method assistants_service_start_conversation" % key
1304
+ )
1305
+ params[key] = val
1306
+ del params['kwargs']
1307
+ # verify the required parameter 'body' is set
1308
+ if ('body' not in params or
1309
+ params['body'] is None):
1310
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_start_conversation`") # noqa: E501
1311
+ # verify the required parameter 'assistant_id' is set
1312
+ if ('assistant_id' not in params or
1313
+ params['assistant_id'] is None):
1314
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_start_conversation`") # noqa: E501
1315
+
1316
+ collection_formats = {}
1317
+
1318
+ path_params = {}
1319
+ if 'assistant_id' in params:
1320
+ path_params['assistantId'] = params['assistant_id'] # noqa: E501
1321
+
1322
+ query_params = []
1323
+
1324
+ header_params = {}
1325
+
1326
+ form_params = []
1327
+ local_var_files = {}
1328
+
1329
+ body_params = None
1330
+ if 'body' in params:
1331
+ body_params = params['body']
1332
+ # HTTP header `Accept`
1333
+ header_params['Accept'] = self.api_client.select_header_accept(
1334
+ ['application/json']) # noqa: E501
1335
+
1336
+ # HTTP header `Content-Type`
1337
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1338
+ ['application/json']) # noqa: E501
1339
+
1340
+ # Authentication setting
1341
+ auth_settings = [] # noqa: E501
1342
+
1343
+ return self.api_client.call_api(
1344
+ '/v1/agents/{assistantId}/conversations', 'POST',
1345
+ path_params,
1346
+ query_params,
1347
+ header_params,
1348
+ body=body_params,
1349
+ post_params=form_params,
1350
+ files=local_var_files,
1351
+ response_type='StreamResultOfV1ConversationResponseChunk', # noqa: E501
1352
+ auth_settings=auth_settings,
1353
+ async_req=params.get('async_req'),
1354
+ _return_http_data_only=params.get('_return_http_data_only'),
1355
+ _preload_content=params.get('_preload_content', True),
1356
+ _request_timeout=params.get('_request_timeout'),
1357
+ collection_formats=collection_formats)
1358
+
1359
+ def assistants_service_update_assistant(self, body: 'AgentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
1360
+ """assistants_service_update_assistant # noqa: E501
1361
+
1362
+ This method makes a synchronous HTTP request by default. To make an
1363
+ asynchronous HTTP request, please pass async_req=True
1364
+ >>> thread = api.assistants_service_update_assistant(body, project_id, id, async_req=True)
1365
+ >>> result = thread.get()
1366
+
1367
+ :param async_req bool
1368
+ :param AgentsIdBody body: (required)
1369
+ :param str project_id: (required)
1370
+ :param str id: (required)
1371
+ :return: V1Assistant
1372
+ If the method is called asynchronously,
1373
+ returns the request thread.
1374
+ """
1375
+ kwargs['_return_http_data_only'] = True
1376
+ if kwargs.get('async_req'):
1377
+ return self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1378
+ else:
1379
+ (data) = self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1380
+ return data
1381
+
1382
+ def assistants_service_update_assistant_with_http_info(self, body: 'AgentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
1383
+ """assistants_service_update_assistant # noqa: E501
1384
+
1385
+ This method makes a synchronous HTTP request by default. To make an
1386
+ asynchronous HTTP request, please pass async_req=True
1387
+ >>> thread = api.assistants_service_update_assistant_with_http_info(body, project_id, id, async_req=True)
1388
+ >>> result = thread.get()
1389
+
1390
+ :param async_req bool
1391
+ :param AgentsIdBody body: (required)
1392
+ :param str project_id: (required)
1393
+ :param str id: (required)
1394
+ :return: V1Assistant
1395
+ If the method is called asynchronously,
1396
+ returns the request thread.
1397
+ """
1398
+
1399
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1400
+ all_params.append('async_req')
1401
+ all_params.append('_return_http_data_only')
1402
+ all_params.append('_preload_content')
1403
+ all_params.append('_request_timeout')
1404
+
1405
+ params = locals()
1406
+ for key, val in six.iteritems(params['kwargs']):
1407
+ if key not in all_params:
1408
+ raise TypeError(
1409
+ "Got an unexpected keyword argument '%s'"
1410
+ " to method assistants_service_update_assistant" % key
1411
+ )
1412
+ params[key] = val
1413
+ del params['kwargs']
1414
+ # verify the required parameter 'body' is set
1415
+ if ('body' not in params or
1416
+ params['body'] is None):
1417
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant`") # noqa: E501
1418
+ # verify the required parameter 'project_id' is set
1419
+ if ('project_id' not in params or
1420
+ params['project_id'] is None):
1421
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant`") # noqa: E501
1422
+ # verify the required parameter 'id' is set
1423
+ if ('id' not in params or
1424
+ params['id'] is None):
1425
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant`") # noqa: E501
1426
+
1427
+ collection_formats = {}
1428
+
1429
+ path_params = {}
1430
+ if 'project_id' in params:
1431
+ path_params['projectId'] = params['project_id'] # noqa: E501
1432
+ if 'id' in params:
1433
+ path_params['id'] = params['id'] # noqa: E501
1434
+
1435
+ query_params = []
1436
+
1437
+ header_params = {}
1438
+
1439
+ form_params = []
1440
+ local_var_files = {}
1441
+
1442
+ body_params = None
1443
+ if 'body' in params:
1444
+ body_params = params['body']
1445
+ # HTTP header `Accept`
1446
+ header_params['Accept'] = self.api_client.select_header_accept(
1447
+ ['application/json']) # noqa: E501
1448
+
1449
+ # HTTP header `Content-Type`
1450
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1451
+ ['application/json']) # noqa: E501
1452
+
1453
+ # Authentication setting
1454
+ auth_settings = [] # noqa: E501
1455
+
1456
+ return self.api_client.call_api(
1457
+ '/v1/projects/{projectId}/agents/{id}', 'PUT',
1458
+ path_params,
1459
+ query_params,
1460
+ header_params,
1461
+ body=body_params,
1462
+ post_params=form_params,
1463
+ files=local_var_files,
1464
+ response_type='V1Assistant', # noqa: E501
1465
+ auth_settings=auth_settings,
1466
+ async_req=params.get('async_req'),
1467
+ _return_http_data_only=params.get('_return_http_data_only'),
1468
+ _preload_content=params.get('_preload_content', True),
1469
+ _request_timeout=params.get('_request_timeout'),
1470
+ collection_formats=collection_formats)
1471
+
1472
+ def assistants_service_update_assistant_managed_endpoint(self, body: 'AgentmanagedendpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
1473
+ """assistants_service_update_assistant_managed_endpoint # noqa: E501
1474
+
1475
+ This method makes a synchronous HTTP request by default. To make an
1476
+ asynchronous HTTP request, please pass async_req=True
1477
+ >>> thread = api.assistants_service_update_assistant_managed_endpoint(body, project_id, id, async_req=True)
1478
+ >>> result = thread.get()
1479
+
1480
+ :param async_req bool
1481
+ :param AgentmanagedendpointsIdBody body: (required)
1482
+ :param str project_id: (required)
1483
+ :param str id: (required)
1484
+ :return: V1ManagedEndpoint
1485
+ If the method is called asynchronously,
1486
+ returns the request thread.
1487
+ """
1488
+ kwargs['_return_http_data_only'] = True
1489
+ if kwargs.get('async_req'):
1490
+ return self.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1491
+ else:
1492
+ (data) = self.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1493
+ return data
1494
+
1495
+ def assistants_service_update_assistant_managed_endpoint_with_http_info(self, body: 'AgentmanagedendpointsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ManagedEndpoint': # noqa: E501
1496
+ """assistants_service_update_assistant_managed_endpoint # noqa: E501
1497
+
1498
+ This method makes a synchronous HTTP request by default. To make an
1499
+ asynchronous HTTP request, please pass async_req=True
1500
+ >>> thread = api.assistants_service_update_assistant_managed_endpoint_with_http_info(body, project_id, id, async_req=True)
1501
+ >>> result = thread.get()
1502
+
1503
+ :param async_req bool
1504
+ :param AgentmanagedendpointsIdBody body: (required)
1505
+ :param str project_id: (required)
1506
+ :param str id: (required)
1507
+ :return: V1ManagedEndpoint
1508
+ If the method is called asynchronously,
1509
+ returns the request thread.
1510
+ """
1511
+
1512
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1513
+ all_params.append('async_req')
1514
+ all_params.append('_return_http_data_only')
1515
+ all_params.append('_preload_content')
1516
+ all_params.append('_request_timeout')
1517
+
1518
+ params = locals()
1519
+ for key, val in six.iteritems(params['kwargs']):
1520
+ if key not in all_params:
1521
+ raise TypeError(
1522
+ "Got an unexpected keyword argument '%s'"
1523
+ " to method assistants_service_update_assistant_managed_endpoint" % key
1524
+ )
1525
+ params[key] = val
1526
+ del params['kwargs']
1527
+ # verify the required parameter 'body' is set
1528
+ if ('body' not in params or
1529
+ params['body'] is None):
1530
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
1531
+ # verify the required parameter 'project_id' is set
1532
+ if ('project_id' not in params or
1533
+ params['project_id'] is None):
1534
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
1535
+ # verify the required parameter 'id' is set
1536
+ if ('id' not in params or
1537
+ params['id'] is None):
1538
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant_managed_endpoint`") # noqa: E501
1539
+
1540
+ collection_formats = {}
1541
+
1542
+ path_params = {}
1543
+ if 'project_id' in params:
1544
+ path_params['projectId'] = params['project_id'] # noqa: E501
1545
+ if 'id' in params:
1546
+ path_params['id'] = params['id'] # noqa: E501
1547
+
1548
+ query_params = []
1549
+
1550
+ header_params = {}
1551
+
1552
+ form_params = []
1553
+ local_var_files = {}
1554
+
1555
+ body_params = None
1556
+ if 'body' in params:
1557
+ body_params = params['body']
1558
+ # HTTP header `Accept`
1559
+ header_params['Accept'] = self.api_client.select_header_accept(
1560
+ ['application/json']) # noqa: E501
1561
+
1562
+ # HTTP header `Content-Type`
1563
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1564
+ ['application/json']) # noqa: E501
1565
+
1566
+ # Authentication setting
1567
+ auth_settings = [] # noqa: E501
1568
+
1569
+ return self.api_client.call_api(
1570
+ '/v1/projects/{projectId}/agent-managed-endpoints/{id}', 'PUT',
1571
+ path_params,
1572
+ query_params,
1573
+ header_params,
1574
+ body=body_params,
1575
+ post_params=form_params,
1576
+ files=local_var_files,
1577
+ response_type='V1ManagedEndpoint', # noqa: E501
1578
+ auth_settings=auth_settings,
1579
+ async_req=params.get('async_req'),
1580
+ _return_http_data_only=params.get('_return_http_data_only'),
1581
+ _preload_content=params.get('_preload_content', True),
1582
+ _request_timeout=params.get('_request_timeout'),
1583
+ collection_formats=collection_formats)
1584
+
1585
+ def assistants_service_update_conversation(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
1586
+ """assistants_service_update_conversation # noqa: E501
1587
+
1588
+ This method makes a synchronous HTTP request by default. To make an
1589
+ asynchronous HTTP request, please pass async_req=True
1590
+ >>> thread = api.assistants_service_update_conversation(body, assistant_id, id, async_req=True)
870
1591
  >>> result = thread.get()
871
1592
 
872
1593
  :param async_req bool
873
- :param AssistantIdConversationsBody body: (required)
1594
+ :param ConversationsIdBody body: (required)
874
1595
  :param str assistant_id: (required)
875
- :return: StreamResultOfV1ConversationResponseChunk
1596
+ :param str id: (required)
1597
+ :return: V1Conversation
876
1598
  If the method is called asynchronously,
877
1599
  returns the request thread.
878
1600
  """
1601
+ kwargs['_return_http_data_only'] = True
1602
+ if kwargs.get('async_req'):
1603
+ return self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
1604
+ else:
1605
+ (data) = self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
1606
+ return data
879
1607
 
880
- all_params = ['body', 'assistant_id'] # noqa: E501
1608
+ def assistants_service_update_conversation_with_http_info(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
1609
+ """assistants_service_update_conversation # noqa: E501
1610
+
1611
+ This method makes a synchronous HTTP request by default. To make an
1612
+ asynchronous HTTP request, please pass async_req=True
1613
+ >>> thread = api.assistants_service_update_conversation_with_http_info(body, assistant_id, id, async_req=True)
1614
+ >>> result = thread.get()
1615
+
1616
+ :param async_req bool
1617
+ :param ConversationsIdBody body: (required)
1618
+ :param str assistant_id: (required)
1619
+ :param str id: (required)
1620
+ :return: V1Conversation
1621
+ If the method is called asynchronously,
1622
+ returns the request thread.
1623
+ """
1624
+
1625
+ all_params = ['body', 'assistant_id', 'id'] # noqa: E501
881
1626
  all_params.append('async_req')
882
1627
  all_params.append('_return_http_data_only')
883
1628
  all_params.append('_preload_content')
@@ -888,24 +1633,30 @@ class AssistantsServiceApi(object):
888
1633
  if key not in all_params:
889
1634
  raise TypeError(
890
1635
  "Got an unexpected keyword argument '%s'"
891
- " to method assistants_service_start_conversation" % key
1636
+ " to method assistants_service_update_conversation" % key
892
1637
  )
893
1638
  params[key] = val
894
1639
  del params['kwargs']
895
1640
  # verify the required parameter 'body' is set
896
1641
  if ('body' not in params or
897
1642
  params['body'] is None):
898
- raise ValueError("Missing the required parameter `body` when calling `assistants_service_start_conversation`") # noqa: E501
1643
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation`") # noqa: E501
899
1644
  # verify the required parameter 'assistant_id' is set
900
1645
  if ('assistant_id' not in params or
901
1646
  params['assistant_id'] is None):
902
- raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_start_conversation`") # noqa: E501
1647
+ raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation`") # noqa: E501
1648
+ # verify the required parameter 'id' is set
1649
+ if ('id' not in params or
1650
+ params['id'] is None):
1651
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation`") # noqa: E501
903
1652
 
904
1653
  collection_formats = {}
905
1654
 
906
1655
  path_params = {}
907
1656
  if 'assistant_id' in params:
908
1657
  path_params['assistantId'] = params['assistant_id'] # noqa: E501
1658
+ if 'id' in params:
1659
+ path_params['id'] = params['id'] # noqa: E501
909
1660
 
910
1661
  query_params = []
911
1662
 
@@ -929,14 +1680,14 @@ class AssistantsServiceApi(object):
929
1680
  auth_settings = [] # noqa: E501
930
1681
 
931
1682
  return self.api_client.call_api(
932
- '/v1/assistants/{assistantId}/conversations', 'POST',
1683
+ '/v1/agents/{assistantId}/conversations/{id}', 'PUT',
933
1684
  path_params,
934
1685
  query_params,
935
1686
  header_params,
936
1687
  body=body_params,
937
1688
  post_params=form_params,
938
1689
  files=local_var_files,
939
- response_type='StreamResultOfV1ConversationResponseChunk', # noqa: E501
1690
+ response_type='V1Conversation', # noqa: E501
940
1691
  auth_settings=auth_settings,
941
1692
  async_req=params.get('async_req'),
942
1693
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -944,47 +1695,142 @@ class AssistantsServiceApi(object):
944
1695
  _request_timeout=params.get('_request_timeout'),
945
1696
  collection_formats=collection_formats)
946
1697
 
947
- def assistants_service_update_assistant(self, body: 'AssistantsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
948
- """assistants_service_update_assistant # noqa: E501
1698
+ def assistants_service_validate_assistant_managed_endpoint(self, body: 'V1ValidateManagedEndpointRequest', **kwargs) -> 'V1ValidateManagedEndpointResponse': # noqa: E501
1699
+ """assistants_service_validate_assistant_managed_endpoint # noqa: E501
949
1700
 
950
1701
  This method makes a synchronous HTTP request by default. To make an
951
1702
  asynchronous HTTP request, please pass async_req=True
952
- >>> thread = api.assistants_service_update_assistant(body, project_id, id, async_req=True)
1703
+ >>> thread = api.assistants_service_validate_assistant_managed_endpoint(body, async_req=True)
953
1704
  >>> result = thread.get()
954
1705
 
955
1706
  :param async_req bool
956
- :param AssistantsIdBody body: (required)
957
- :param str project_id: (required)
1707
+ :param V1ValidateManagedEndpointRequest body: (required)
1708
+ :return: V1ValidateManagedEndpointResponse
1709
+ If the method is called asynchronously,
1710
+ returns the request thread.
1711
+ """
1712
+ kwargs['_return_http_data_only'] = True
1713
+ if kwargs.get('async_req'):
1714
+ return self.assistants_service_validate_assistant_managed_endpoint_with_http_info(body, **kwargs) # noqa: E501
1715
+ else:
1716
+ (data) = self.assistants_service_validate_assistant_managed_endpoint_with_http_info(body, **kwargs) # noqa: E501
1717
+ return data
1718
+
1719
+ def assistants_service_validate_assistant_managed_endpoint_with_http_info(self, body: 'V1ValidateManagedEndpointRequest', **kwargs) -> 'V1ValidateManagedEndpointResponse': # noqa: E501
1720
+ """assistants_service_validate_assistant_managed_endpoint # noqa: E501
1721
+
1722
+ This method makes a synchronous HTTP request by default. To make an
1723
+ asynchronous HTTP request, please pass async_req=True
1724
+ >>> thread = api.assistants_service_validate_assistant_managed_endpoint_with_http_info(body, async_req=True)
1725
+ >>> result = thread.get()
1726
+
1727
+ :param async_req bool
1728
+ :param V1ValidateManagedEndpointRequest body: (required)
1729
+ :return: V1ValidateManagedEndpointResponse
1730
+ If the method is called asynchronously,
1731
+ returns the request thread.
1732
+ """
1733
+
1734
+ all_params = ['body'] # noqa: E501
1735
+ all_params.append('async_req')
1736
+ all_params.append('_return_http_data_only')
1737
+ all_params.append('_preload_content')
1738
+ all_params.append('_request_timeout')
1739
+
1740
+ params = locals()
1741
+ for key, val in six.iteritems(params['kwargs']):
1742
+ if key not in all_params:
1743
+ raise TypeError(
1744
+ "Got an unexpected keyword argument '%s'"
1745
+ " to method assistants_service_validate_assistant_managed_endpoint" % key
1746
+ )
1747
+ params[key] = val
1748
+ del params['kwargs']
1749
+ # verify the required parameter 'body' is set
1750
+ if ('body' not in params or
1751
+ params['body'] is None):
1752
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_validate_assistant_managed_endpoint`") # noqa: E501
1753
+
1754
+ collection_formats = {}
1755
+
1756
+ path_params = {}
1757
+
1758
+ query_params = []
1759
+
1760
+ header_params = {}
1761
+
1762
+ form_params = []
1763
+ local_var_files = {}
1764
+
1765
+ body_params = None
1766
+ if 'body' in params:
1767
+ body_params = params['body']
1768
+ # HTTP header `Accept`
1769
+ header_params['Accept'] = self.api_client.select_header_accept(
1770
+ ['application/json']) # noqa: E501
1771
+
1772
+ # HTTP header `Content-Type`
1773
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1774
+ ['application/json']) # noqa: E501
1775
+
1776
+ # Authentication setting
1777
+ auth_settings = [] # noqa: E501
1778
+
1779
+ return self.api_client.call_api(
1780
+ '/v1/agent-managed-endpoints/valid', 'POST',
1781
+ path_params,
1782
+ query_params,
1783
+ header_params,
1784
+ body=body_params,
1785
+ post_params=form_params,
1786
+ files=local_var_files,
1787
+ response_type='V1ValidateManagedEndpointResponse', # noqa: E501
1788
+ auth_settings=auth_settings,
1789
+ async_req=params.get('async_req'),
1790
+ _return_http_data_only=params.get('_return_http_data_only'),
1791
+ _preload_content=params.get('_preload_content', True),
1792
+ _request_timeout=params.get('_request_timeout'),
1793
+ collection_formats=collection_formats)
1794
+
1795
+ def assistants_service_validate_assistant_status(self, body: 'object', id: 'str', **kwargs) -> 'V1ValidateAssistantStatusResponse': # noqa: E501
1796
+ """ValidateAssistantStatus validates the status of the assistant This is used to check if the assistant is online and ready to be used or not # noqa: E501
1797
+
1798
+ This method makes a synchronous HTTP request by default. To make an
1799
+ asynchronous HTTP request, please pass async_req=True
1800
+ >>> thread = api.assistants_service_validate_assistant_status(body, id, async_req=True)
1801
+ >>> result = thread.get()
1802
+
1803
+ :param async_req bool
1804
+ :param object body: (required)
958
1805
  :param str id: (required)
959
- :return: V1Assistant
1806
+ :return: V1ValidateAssistantStatusResponse
960
1807
  If the method is called asynchronously,
961
1808
  returns the request thread.
962
1809
  """
963
1810
  kwargs['_return_http_data_only'] = True
964
1811
  if kwargs.get('async_req'):
965
- return self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1812
+ return self.assistants_service_validate_assistant_status_with_http_info(body, id, **kwargs) # noqa: E501
966
1813
  else:
967
- (data) = self.assistants_service_update_assistant_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1814
+ (data) = self.assistants_service_validate_assistant_status_with_http_info(body, id, **kwargs) # noqa: E501
968
1815
  return data
969
1816
 
970
- def assistants_service_update_assistant_with_http_info(self, body: 'AssistantsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Assistant': # noqa: E501
971
- """assistants_service_update_assistant # noqa: E501
1817
+ def assistants_service_validate_assistant_status_with_http_info(self, body: 'object', id: 'str', **kwargs) -> 'V1ValidateAssistantStatusResponse': # noqa: E501
1818
+ """ValidateAssistantStatus validates the status of the assistant This is used to check if the assistant is online and ready to be used or not # noqa: E501
972
1819
 
973
1820
  This method makes a synchronous HTTP request by default. To make an
974
1821
  asynchronous HTTP request, please pass async_req=True
975
- >>> thread = api.assistants_service_update_assistant_with_http_info(body, project_id, id, async_req=True)
1822
+ >>> thread = api.assistants_service_validate_assistant_status_with_http_info(body, id, async_req=True)
976
1823
  >>> result = thread.get()
977
1824
 
978
1825
  :param async_req bool
979
- :param AssistantsIdBody body: (required)
980
- :param str project_id: (required)
1826
+ :param object body: (required)
981
1827
  :param str id: (required)
982
- :return: V1Assistant
1828
+ :return: V1ValidateAssistantStatusResponse
983
1829
  If the method is called asynchronously,
984
1830
  returns the request thread.
985
1831
  """
986
1832
 
987
- all_params = ['body', 'project_id', 'id'] # noqa: E501
1833
+ all_params = ['body', 'id'] # noqa: E501
988
1834
  all_params.append('async_req')
989
1835
  all_params.append('_return_http_data_only')
990
1836
  all_params.append('_preload_content')
@@ -995,28 +1841,22 @@ class AssistantsServiceApi(object):
995
1841
  if key not in all_params:
996
1842
  raise TypeError(
997
1843
  "Got an unexpected keyword argument '%s'"
998
- " to method assistants_service_update_assistant" % key
1844
+ " to method assistants_service_validate_assistant_status" % key
999
1845
  )
1000
1846
  params[key] = val
1001
1847
  del params['kwargs']
1002
1848
  # verify the required parameter 'body' is set
1003
1849
  if ('body' not in params or
1004
1850
  params['body'] is None):
1005
- raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_assistant`") # noqa: E501
1006
- # verify the required parameter 'project_id' is set
1007
- if ('project_id' not in params or
1008
- params['project_id'] is None):
1009
- raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_update_assistant`") # noqa: E501
1851
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_validate_assistant_status`") # noqa: E501
1010
1852
  # verify the required parameter 'id' is set
1011
1853
  if ('id' not in params or
1012
1854
  params['id'] is None):
1013
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_assistant`") # noqa: E501
1855
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_validate_assistant_status`") # noqa: E501
1014
1856
 
1015
1857
  collection_formats = {}
1016
1858
 
1017
1859
  path_params = {}
1018
- if 'project_id' in params:
1019
- path_params['projectId'] = params['project_id'] # noqa: E501
1020
1860
  if 'id' in params:
1021
1861
  path_params['id'] = params['id'] # noqa: E501
1022
1862
 
@@ -1042,14 +1882,14 @@ class AssistantsServiceApi(object):
1042
1882
  auth_settings = [] # noqa: E501
1043
1883
 
1044
1884
  return self.api_client.call_api(
1045
- '/v1/projects/{projectId}/assistants/{id}', 'PUT',
1885
+ '/v1/agents/{id}/valid', 'POST',
1046
1886
  path_params,
1047
1887
  query_params,
1048
1888
  header_params,
1049
1889
  body=body_params,
1050
1890
  post_params=form_params,
1051
1891
  files=local_var_files,
1052
- response_type='V1Assistant', # noqa: E501
1892
+ response_type='V1ValidateAssistantStatusResponse', # noqa: E501
1053
1893
  auth_settings=auth_settings,
1054
1894
  async_req=params.get('async_req'),
1055
1895
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1057,47 +1897,49 @@ class AssistantsServiceApi(object):
1057
1897
  _request_timeout=params.get('_request_timeout'),
1058
1898
  collection_formats=collection_formats)
1059
1899
 
1060
- def assistants_service_update_conversation(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
1061
- """assistants_service_update_conversation # noqa: E501
1900
+ def assistants_service_validate_managed_model(self, body: 'object', project_id: 'str', id: 'str', model_id: 'str', **kwargs) -> 'V1ValidateManagedModelResponse': # noqa: E501
1901
+ """assistants_service_validate_managed_model # noqa: E501
1062
1902
 
1063
1903
  This method makes a synchronous HTTP request by default. To make an
1064
1904
  asynchronous HTTP request, please pass async_req=True
1065
- >>> thread = api.assistants_service_update_conversation(body, assistant_id, id, async_req=True)
1905
+ >>> thread = api.assistants_service_validate_managed_model(body, project_id, id, model_id, async_req=True)
1066
1906
  >>> result = thread.get()
1067
1907
 
1068
1908
  :param async_req bool
1069
- :param ConversationsIdBody body: (required)
1070
- :param str assistant_id: (required)
1909
+ :param object body: (required)
1910
+ :param str project_id: (required)
1071
1911
  :param str id: (required)
1072
- :return: V1Conversation
1912
+ :param str model_id: (required)
1913
+ :return: V1ValidateManagedModelResponse
1073
1914
  If the method is called asynchronously,
1074
1915
  returns the request thread.
1075
1916
  """
1076
1917
  kwargs['_return_http_data_only'] = True
1077
1918
  if kwargs.get('async_req'):
1078
- return self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
1919
+ return self.assistants_service_validate_managed_model_with_http_info(body, project_id, id, model_id, **kwargs) # noqa: E501
1079
1920
  else:
1080
- (data) = self.assistants_service_update_conversation_with_http_info(body, assistant_id, id, **kwargs) # noqa: E501
1921
+ (data) = self.assistants_service_validate_managed_model_with_http_info(body, project_id, id, model_id, **kwargs) # noqa: E501
1081
1922
  return data
1082
1923
 
1083
- def assistants_service_update_conversation_with_http_info(self, body: 'ConversationsIdBody', assistant_id: 'str', id: 'str', **kwargs) -> 'V1Conversation': # noqa: E501
1084
- """assistants_service_update_conversation # noqa: E501
1924
+ def assistants_service_validate_managed_model_with_http_info(self, body: 'object', project_id: 'str', id: 'str', model_id: 'str', **kwargs) -> 'V1ValidateManagedModelResponse': # noqa: E501
1925
+ """assistants_service_validate_managed_model # noqa: E501
1085
1926
 
1086
1927
  This method makes a synchronous HTTP request by default. To make an
1087
1928
  asynchronous HTTP request, please pass async_req=True
1088
- >>> thread = api.assistants_service_update_conversation_with_http_info(body, assistant_id, id, async_req=True)
1929
+ >>> thread = api.assistants_service_validate_managed_model_with_http_info(body, project_id, id, model_id, async_req=True)
1089
1930
  >>> result = thread.get()
1090
1931
 
1091
1932
  :param async_req bool
1092
- :param ConversationsIdBody body: (required)
1093
- :param str assistant_id: (required)
1933
+ :param object body: (required)
1934
+ :param str project_id: (required)
1094
1935
  :param str id: (required)
1095
- :return: V1Conversation
1936
+ :param str model_id: (required)
1937
+ :return: V1ValidateManagedModelResponse
1096
1938
  If the method is called asynchronously,
1097
1939
  returns the request thread.
1098
1940
  """
1099
1941
 
1100
- all_params = ['body', 'assistant_id', 'id'] # noqa: E501
1942
+ all_params = ['body', 'project_id', 'id', 'model_id'] # noqa: E501
1101
1943
  all_params.append('async_req')
1102
1944
  all_params.append('_return_http_data_only')
1103
1945
  all_params.append('_preload_content')
@@ -1108,30 +1950,36 @@ class AssistantsServiceApi(object):
1108
1950
  if key not in all_params:
1109
1951
  raise TypeError(
1110
1952
  "Got an unexpected keyword argument '%s'"
1111
- " to method assistants_service_update_conversation" % key
1953
+ " to method assistants_service_validate_managed_model" % key
1112
1954
  )
1113
1955
  params[key] = val
1114
1956
  del params['kwargs']
1115
1957
  # verify the required parameter 'body' is set
1116
1958
  if ('body' not in params or
1117
1959
  params['body'] is None):
1118
- raise ValueError("Missing the required parameter `body` when calling `assistants_service_update_conversation`") # noqa: E501
1119
- # verify the required parameter 'assistant_id' is set
1120
- if ('assistant_id' not in params or
1121
- params['assistant_id'] is None):
1122
- raise ValueError("Missing the required parameter `assistant_id` when calling `assistants_service_update_conversation`") # noqa: E501
1960
+ raise ValueError("Missing the required parameter `body` when calling `assistants_service_validate_managed_model`") # noqa: E501
1961
+ # verify the required parameter 'project_id' is set
1962
+ if ('project_id' not in params or
1963
+ params['project_id'] is None):
1964
+ raise ValueError("Missing the required parameter `project_id` when calling `assistants_service_validate_managed_model`") # noqa: E501
1123
1965
  # verify the required parameter 'id' is set
1124
1966
  if ('id' not in params or
1125
1967
  params['id'] is None):
1126
- raise ValueError("Missing the required parameter `id` when calling `assistants_service_update_conversation`") # noqa: E501
1968
+ raise ValueError("Missing the required parameter `id` when calling `assistants_service_validate_managed_model`") # noqa: E501
1969
+ # verify the required parameter 'model_id' is set
1970
+ if ('model_id' not in params or
1971
+ params['model_id'] is None):
1972
+ raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_validate_managed_model`") # noqa: E501
1127
1973
 
1128
1974
  collection_formats = {}
1129
1975
 
1130
1976
  path_params = {}
1131
- if 'assistant_id' in params:
1132
- path_params['assistantId'] = params['assistant_id'] # noqa: E501
1977
+ if 'project_id' in params:
1978
+ path_params['projectId'] = params['project_id'] # noqa: E501
1133
1979
  if 'id' in params:
1134
1980
  path_params['id'] = params['id'] # noqa: E501
1981
+ if 'model_id' in params:
1982
+ path_params['modelId'] = params['model_id'] # noqa: E501
1135
1983
 
1136
1984
  query_params = []
1137
1985
 
@@ -1155,14 +2003,14 @@ class AssistantsServiceApi(object):
1155
2003
  auth_settings = [] # noqa: E501
1156
2004
 
1157
2005
  return self.api_client.call_api(
1158
- '/v1/assistants/{assistantId}/conversations/{id}', 'PUT',
2006
+ '/v1/projects/{projectId}/agent-managed-models/{id}/model/{modelId}/valid', 'POST',
1159
2007
  path_params,
1160
2008
  query_params,
1161
2009
  header_params,
1162
2010
  body=body_params,
1163
2011
  post_params=form_params,
1164
2012
  files=local_var_files,
1165
- response_type='V1Conversation', # noqa: E501
2013
+ response_type='V1ValidateManagedModelResponse', # noqa: E501
1166
2014
  auth_settings=auth_settings,
1167
2015
  async_req=params.get('async_req'),
1168
2016
  _return_http_data_only=params.get('_return_http_data_only'),