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,41 +43,876 @@ class UserServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
+ def user_service_ack_user_storage_violation(self, **kwargs) -> 'V1AckUserStorageViolationResponse': # noqa: E501
47
+ """user_service_ack_user_storage_violation # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.user_service_ack_user_storage_violation(async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :return: V1AckUserStorageViolationResponse
56
+ If the method is called asynchronously,
57
+ returns the request thread.
58
+ """
59
+ kwargs['_return_http_data_only'] = True
60
+ if kwargs.get('async_req'):
61
+ return self.user_service_ack_user_storage_violation_with_http_info(**kwargs) # noqa: E501
62
+ else:
63
+ (data) = self.user_service_ack_user_storage_violation_with_http_info(**kwargs) # noqa: E501
64
+ return data
65
+
66
+ def user_service_ack_user_storage_violation_with_http_info(self, **kwargs) -> 'V1AckUserStorageViolationResponse': # noqa: E501
67
+ """user_service_ack_user_storage_violation # noqa: E501
68
+
69
+ This method makes a synchronous HTTP request by default. To make an
70
+ asynchronous HTTP request, please pass async_req=True
71
+ >>> thread = api.user_service_ack_user_storage_violation_with_http_info(async_req=True)
72
+ >>> result = thread.get()
73
+
74
+ :param async_req bool
75
+ :return: V1AckUserStorageViolationResponse
76
+ If the method is called asynchronously,
77
+ returns the request thread.
78
+ """
79
+
80
+ all_params = [] # noqa: E501
81
+ all_params.append('async_req')
82
+ all_params.append('_return_http_data_only')
83
+ all_params.append('_preload_content')
84
+ all_params.append('_request_timeout')
85
+
86
+ params = locals()
87
+ for key, val in six.iteritems(params['kwargs']):
88
+ if key not in all_params:
89
+ raise TypeError(
90
+ "Got an unexpected keyword argument '%s'"
91
+ " to method user_service_ack_user_storage_violation" % key
92
+ )
93
+ params[key] = val
94
+ del params['kwargs']
95
+
96
+ collection_formats = {}
97
+
98
+ path_params = {}
99
+
100
+ query_params = []
101
+
102
+ header_params = {}
103
+
104
+ form_params = []
105
+ local_var_files = {}
106
+
107
+ body_params = None
108
+ # HTTP header `Accept`
109
+ header_params['Accept'] = self.api_client.select_header_accept(
110
+ ['application/json']) # noqa: E501
111
+
112
+ # Authentication setting
113
+ auth_settings = [] # noqa: E501
114
+
115
+ return self.api_client.call_api(
116
+ '/v1/users/storage/ack-violation', 'PUT',
117
+ path_params,
118
+ query_params,
119
+ header_params,
120
+ body=body_params,
121
+ post_params=form_params,
122
+ files=local_var_files,
123
+ response_type='V1AckUserStorageViolationResponse', # noqa: E501
124
+ auth_settings=auth_settings,
125
+ async_req=params.get('async_req'),
126
+ _return_http_data_only=params.get('_return_http_data_only'),
127
+ _preload_content=params.get('_preload_content', True),
128
+ _request_timeout=params.get('_request_timeout'),
129
+ collection_formats=collection_formats)
130
+
46
131
  def user_service_complete_onboarding(self, **kwargs) -> 'V1CompleteOnboardingResponse': # noqa: E501
47
132
  """user_service_complete_onboarding # noqa: E501
48
133
 
49
134
  This method makes a synchronous HTTP request by default. To make an
50
135
  asynchronous HTTP request, please pass async_req=True
51
- >>> thread = api.user_service_complete_onboarding(async_req=True)
136
+ >>> thread = api.user_service_complete_onboarding(async_req=True)
137
+ >>> result = thread.get()
138
+
139
+ :param async_req bool
140
+ :return: V1CompleteOnboardingResponse
141
+ If the method is called asynchronously,
142
+ returns the request thread.
143
+ """
144
+ kwargs['_return_http_data_only'] = True
145
+ if kwargs.get('async_req'):
146
+ return self.user_service_complete_onboarding_with_http_info(**kwargs) # noqa: E501
147
+ else:
148
+ (data) = self.user_service_complete_onboarding_with_http_info(**kwargs) # noqa: E501
149
+ return data
150
+
151
+ def user_service_complete_onboarding_with_http_info(self, **kwargs) -> 'V1CompleteOnboardingResponse': # noqa: E501
152
+ """user_service_complete_onboarding # noqa: E501
153
+
154
+ This method makes a synchronous HTTP request by default. To make an
155
+ asynchronous HTTP request, please pass async_req=True
156
+ >>> thread = api.user_service_complete_onboarding_with_http_info(async_req=True)
157
+ >>> result = thread.get()
158
+
159
+ :param async_req bool
160
+ :return: V1CompleteOnboardingResponse
161
+ If the method is called asynchronously,
162
+ returns the request thread.
163
+ """
164
+
165
+ all_params = [] # noqa: E501
166
+ all_params.append('async_req')
167
+ all_params.append('_return_http_data_only')
168
+ all_params.append('_preload_content')
169
+ all_params.append('_request_timeout')
170
+
171
+ params = locals()
172
+ for key, val in six.iteritems(params['kwargs']):
173
+ if key not in all_params:
174
+ raise TypeError(
175
+ "Got an unexpected keyword argument '%s'"
176
+ " to method user_service_complete_onboarding" % key
177
+ )
178
+ params[key] = val
179
+ del params['kwargs']
180
+
181
+ collection_formats = {}
182
+
183
+ path_params = {}
184
+
185
+ query_params = []
186
+
187
+ header_params = {}
188
+
189
+ form_params = []
190
+ local_var_files = {}
191
+
192
+ body_params = None
193
+ # HTTP header `Accept`
194
+ header_params['Accept'] = self.api_client.select_header_accept(
195
+ ['application/json']) # noqa: E501
196
+
197
+ # Authentication setting
198
+ auth_settings = [] # noqa: E501
199
+
200
+ return self.api_client.call_api(
201
+ '/v1/users/complete-onboarding', 'GET',
202
+ path_params,
203
+ query_params,
204
+ header_params,
205
+ body=body_params,
206
+ post_params=form_params,
207
+ files=local_var_files,
208
+ response_type='V1CompleteOnboardingResponse', # noqa: E501
209
+ auth_settings=auth_settings,
210
+ async_req=params.get('async_req'),
211
+ _return_http_data_only=params.get('_return_http_data_only'),
212
+ _preload_content=params.get('_preload_content', True),
213
+ _request_timeout=params.get('_request_timeout'),
214
+ collection_formats=collection_formats)
215
+
216
+ def user_service_create_affiliate_link(self, body: 'UserIdAffiliatelinksBody', user_id: 'str', **kwargs) -> 'V1AffiliateLink': # noqa: E501
217
+ """create affiliate link # noqa: E501
218
+
219
+ This method makes a synchronous HTTP request by default. To make an
220
+ asynchronous HTTP request, please pass async_req=True
221
+ >>> thread = api.user_service_create_affiliate_link(body, user_id, async_req=True)
222
+ >>> result = thread.get()
223
+
224
+ :param async_req bool
225
+ :param UserIdAffiliatelinksBody body: (required)
226
+ :param str user_id: (required)
227
+ :return: V1AffiliateLink
228
+ If the method is called asynchronously,
229
+ returns the request thread.
230
+ """
231
+ kwargs['_return_http_data_only'] = True
232
+ if kwargs.get('async_req'):
233
+ return self.user_service_create_affiliate_link_with_http_info(body, user_id, **kwargs) # noqa: E501
234
+ else:
235
+ (data) = self.user_service_create_affiliate_link_with_http_info(body, user_id, **kwargs) # noqa: E501
236
+ return data
237
+
238
+ def user_service_create_affiliate_link_with_http_info(self, body: 'UserIdAffiliatelinksBody', user_id: 'str', **kwargs) -> 'V1AffiliateLink': # noqa: E501
239
+ """create affiliate link # noqa: E501
240
+
241
+ This method makes a synchronous HTTP request by default. To make an
242
+ asynchronous HTTP request, please pass async_req=True
243
+ >>> thread = api.user_service_create_affiliate_link_with_http_info(body, user_id, async_req=True)
244
+ >>> result = thread.get()
245
+
246
+ :param async_req bool
247
+ :param UserIdAffiliatelinksBody body: (required)
248
+ :param str user_id: (required)
249
+ :return: V1AffiliateLink
250
+ If the method is called asynchronously,
251
+ returns the request thread.
252
+ """
253
+
254
+ all_params = ['body', 'user_id'] # noqa: E501
255
+ all_params.append('async_req')
256
+ all_params.append('_return_http_data_only')
257
+ all_params.append('_preload_content')
258
+ all_params.append('_request_timeout')
259
+
260
+ params = locals()
261
+ for key, val in six.iteritems(params['kwargs']):
262
+ if key not in all_params:
263
+ raise TypeError(
264
+ "Got an unexpected keyword argument '%s'"
265
+ " to method user_service_create_affiliate_link" % key
266
+ )
267
+ params[key] = val
268
+ del params['kwargs']
269
+ # verify the required parameter 'body' is set
270
+ if ('body' not in params or
271
+ params['body'] is None):
272
+ raise ValueError("Missing the required parameter `body` when calling `user_service_create_affiliate_link`") # noqa: E501
273
+ # verify the required parameter 'user_id' is set
274
+ if ('user_id' not in params or
275
+ params['user_id'] is None):
276
+ raise ValueError("Missing the required parameter `user_id` when calling `user_service_create_affiliate_link`") # noqa: E501
277
+
278
+ collection_formats = {}
279
+
280
+ path_params = {}
281
+ if 'user_id' in params:
282
+ path_params['userId'] = params['user_id'] # noqa: E501
283
+
284
+ query_params = []
285
+
286
+ header_params = {}
287
+
288
+ form_params = []
289
+ local_var_files = {}
290
+
291
+ body_params = None
292
+ if 'body' in params:
293
+ body_params = params['body']
294
+ # HTTP header `Accept`
295
+ header_params['Accept'] = self.api_client.select_header_accept(
296
+ ['application/json']) # noqa: E501
297
+
298
+ # HTTP header `Content-Type`
299
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
300
+ ['application/json']) # noqa: E501
301
+
302
+ # Authentication setting
303
+ auth_settings = [] # noqa: E501
304
+
305
+ return self.api_client.call_api(
306
+ '/v1/users/{userId}/affiliate-links', 'POST',
307
+ path_params,
308
+ query_params,
309
+ header_params,
310
+ body=body_params,
311
+ post_params=form_params,
312
+ files=local_var_files,
313
+ response_type='V1AffiliateLink', # noqa: E501
314
+ auth_settings=auth_settings,
315
+ async_req=params.get('async_req'),
316
+ _return_http_data_only=params.get('_return_http_data_only'),
317
+ _preload_content=params.get('_preload_content', True),
318
+ _request_timeout=params.get('_request_timeout'),
319
+ collection_formats=collection_formats)
320
+
321
+ def user_service_delete_affiliate_link(self, user_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAffiliateLinkResponse': # noqa: E501
322
+ """delete affiliate link # noqa: E501
323
+
324
+ This method makes a synchronous HTTP request by default. To make an
325
+ asynchronous HTTP request, please pass async_req=True
326
+ >>> thread = api.user_service_delete_affiliate_link(user_id, id, async_req=True)
327
+ >>> result = thread.get()
328
+
329
+ :param async_req bool
330
+ :param str user_id: (required)
331
+ :param str id: (required)
332
+ :return: V1DeleteAffiliateLinkResponse
333
+ If the method is called asynchronously,
334
+ returns the request thread.
335
+ """
336
+ kwargs['_return_http_data_only'] = True
337
+ if kwargs.get('async_req'):
338
+ return self.user_service_delete_affiliate_link_with_http_info(user_id, id, **kwargs) # noqa: E501
339
+ else:
340
+ (data) = self.user_service_delete_affiliate_link_with_http_info(user_id, id, **kwargs) # noqa: E501
341
+ return data
342
+
343
+ def user_service_delete_affiliate_link_with_http_info(self, user_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAffiliateLinkResponse': # noqa: E501
344
+ """delete affiliate link # noqa: E501
345
+
346
+ This method makes a synchronous HTTP request by default. To make an
347
+ asynchronous HTTP request, please pass async_req=True
348
+ >>> thread = api.user_service_delete_affiliate_link_with_http_info(user_id, id, async_req=True)
349
+ >>> result = thread.get()
350
+
351
+ :param async_req bool
352
+ :param str user_id: (required)
353
+ :param str id: (required)
354
+ :return: V1DeleteAffiliateLinkResponse
355
+ If the method is called asynchronously,
356
+ returns the request thread.
357
+ """
358
+
359
+ all_params = ['user_id', 'id'] # noqa: E501
360
+ all_params.append('async_req')
361
+ all_params.append('_return_http_data_only')
362
+ all_params.append('_preload_content')
363
+ all_params.append('_request_timeout')
364
+
365
+ params = locals()
366
+ for key, val in six.iteritems(params['kwargs']):
367
+ if key not in all_params:
368
+ raise TypeError(
369
+ "Got an unexpected keyword argument '%s'"
370
+ " to method user_service_delete_affiliate_link" % key
371
+ )
372
+ params[key] = val
373
+ del params['kwargs']
374
+ # verify the required parameter 'user_id' is set
375
+ if ('user_id' not in params or
376
+ params['user_id'] is None):
377
+ raise ValueError("Missing the required parameter `user_id` when calling `user_service_delete_affiliate_link`") # noqa: E501
378
+ # verify the required parameter 'id' is set
379
+ if ('id' not in params or
380
+ params['id'] is None):
381
+ raise ValueError("Missing the required parameter `id` when calling `user_service_delete_affiliate_link`") # noqa: E501
382
+
383
+ collection_formats = {}
384
+
385
+ path_params = {}
386
+ if 'user_id' in params:
387
+ path_params['userId'] = params['user_id'] # noqa: E501
388
+ if 'id' in params:
389
+ path_params['id'] = params['id'] # noqa: E501
390
+
391
+ query_params = []
392
+
393
+ header_params = {}
394
+
395
+ form_params = []
396
+ local_var_files = {}
397
+
398
+ body_params = None
399
+ # HTTP header `Accept`
400
+ header_params['Accept'] = self.api_client.select_header_accept(
401
+ ['application/json']) # noqa: E501
402
+
403
+ # Authentication setting
404
+ auth_settings = [] # noqa: E501
405
+
406
+ return self.api_client.call_api(
407
+ '/v1/users/{userId}/affiliate-links/{id}', 'DELETE',
408
+ path_params,
409
+ query_params,
410
+ header_params,
411
+ body=body_params,
412
+ post_params=form_params,
413
+ files=local_var_files,
414
+ response_type='V1DeleteAffiliateLinkResponse', # noqa: E501
415
+ auth_settings=auth_settings,
416
+ async_req=params.get('async_req'),
417
+ _return_http_data_only=params.get('_return_http_data_only'),
418
+ _preload_content=params.get('_preload_content', True),
419
+ _request_timeout=params.get('_request_timeout'),
420
+ collection_formats=collection_formats)
421
+
422
+ def user_service_get_affiliate_link(self, user_id: 'str', id: 'str', **kwargs) -> 'V1GetAffiliateLinkResponse': # noqa: E501
423
+ """get affiliate link # noqa: E501
424
+
425
+ This method makes a synchronous HTTP request by default. To make an
426
+ asynchronous HTTP request, please pass async_req=True
427
+ >>> thread = api.user_service_get_affiliate_link(user_id, id, async_req=True)
428
+ >>> result = thread.get()
429
+
430
+ :param async_req bool
431
+ :param str user_id: (required)
432
+ :param str id: (required)
433
+ :return: V1GetAffiliateLinkResponse
434
+ If the method is called asynchronously,
435
+ returns the request thread.
436
+ """
437
+ kwargs['_return_http_data_only'] = True
438
+ if kwargs.get('async_req'):
439
+ return self.user_service_get_affiliate_link_with_http_info(user_id, id, **kwargs) # noqa: E501
440
+ else:
441
+ (data) = self.user_service_get_affiliate_link_with_http_info(user_id, id, **kwargs) # noqa: E501
442
+ return data
443
+
444
+ def user_service_get_affiliate_link_with_http_info(self, user_id: 'str', id: 'str', **kwargs) -> 'V1GetAffiliateLinkResponse': # noqa: E501
445
+ """get affiliate link # noqa: E501
446
+
447
+ This method makes a synchronous HTTP request by default. To make an
448
+ asynchronous HTTP request, please pass async_req=True
449
+ >>> thread = api.user_service_get_affiliate_link_with_http_info(user_id, id, async_req=True)
450
+ >>> result = thread.get()
451
+
452
+ :param async_req bool
453
+ :param str user_id: (required)
454
+ :param str id: (required)
455
+ :return: V1GetAffiliateLinkResponse
456
+ If the method is called asynchronously,
457
+ returns the request thread.
458
+ """
459
+
460
+ all_params = ['user_id', 'id'] # noqa: E501
461
+ all_params.append('async_req')
462
+ all_params.append('_return_http_data_only')
463
+ all_params.append('_preload_content')
464
+ all_params.append('_request_timeout')
465
+
466
+ params = locals()
467
+ for key, val in six.iteritems(params['kwargs']):
468
+ if key not in all_params:
469
+ raise TypeError(
470
+ "Got an unexpected keyword argument '%s'"
471
+ " to method user_service_get_affiliate_link" % key
472
+ )
473
+ params[key] = val
474
+ del params['kwargs']
475
+ # verify the required parameter 'user_id' is set
476
+ if ('user_id' not in params or
477
+ params['user_id'] is None):
478
+ raise ValueError("Missing the required parameter `user_id` when calling `user_service_get_affiliate_link`") # noqa: E501
479
+ # verify the required parameter 'id' is set
480
+ if ('id' not in params or
481
+ params['id'] is None):
482
+ raise ValueError("Missing the required parameter `id` when calling `user_service_get_affiliate_link`") # noqa: E501
483
+
484
+ collection_formats = {}
485
+
486
+ path_params = {}
487
+ if 'user_id' in params:
488
+ path_params['userId'] = params['user_id'] # noqa: E501
489
+ if 'id' in params:
490
+ path_params['id'] = params['id'] # noqa: E501
491
+
492
+ query_params = []
493
+
494
+ header_params = {}
495
+
496
+ form_params = []
497
+ local_var_files = {}
498
+
499
+ body_params = None
500
+ # HTTP header `Accept`
501
+ header_params['Accept'] = self.api_client.select_header_accept(
502
+ ['application/json']) # noqa: E501
503
+
504
+ # Authentication setting
505
+ auth_settings = [] # noqa: E501
506
+
507
+ return self.api_client.call_api(
508
+ '/v1/users/{userId}/affiliate-links/{id}', 'GET',
509
+ path_params,
510
+ query_params,
511
+ header_params,
512
+ body=body_params,
513
+ post_params=form_params,
514
+ files=local_var_files,
515
+ response_type='V1GetAffiliateLinkResponse', # noqa: E501
516
+ auth_settings=auth_settings,
517
+ async_req=params.get('async_req'),
518
+ _return_http_data_only=params.get('_return_http_data_only'),
519
+ _preload_content=params.get('_preload_content', True),
520
+ _request_timeout=params.get('_request_timeout'),
521
+ collection_formats=collection_formats)
522
+
523
+ def user_service_get_settings(self, filename: 'str', **kwargs) -> 'V1GetSettingsResponse': # noqa: E501
524
+ """user_service_get_settings # noqa: E501
525
+
526
+ This method makes a synchronous HTTP request by default. To make an
527
+ asynchronous HTTP request, please pass async_req=True
528
+ >>> thread = api.user_service_get_settings(filename, async_req=True)
529
+ >>> result = thread.get()
530
+
531
+ :param async_req bool
532
+ :param str filename: (required)
533
+ :return: V1GetSettingsResponse
534
+ If the method is called asynchronously,
535
+ returns the request thread.
536
+ """
537
+ kwargs['_return_http_data_only'] = True
538
+ if kwargs.get('async_req'):
539
+ return self.user_service_get_settings_with_http_info(filename, **kwargs) # noqa: E501
540
+ else:
541
+ (data) = self.user_service_get_settings_with_http_info(filename, **kwargs) # noqa: E501
542
+ return data
543
+
544
+ def user_service_get_settings_with_http_info(self, filename: 'str', **kwargs) -> 'V1GetSettingsResponse': # noqa: E501
545
+ """user_service_get_settings # noqa: E501
546
+
547
+ This method makes a synchronous HTTP request by default. To make an
548
+ asynchronous HTTP request, please pass async_req=True
549
+ >>> thread = api.user_service_get_settings_with_http_info(filename, async_req=True)
550
+ >>> result = thread.get()
551
+
552
+ :param async_req bool
553
+ :param str filename: (required)
554
+ :return: V1GetSettingsResponse
555
+ If the method is called asynchronously,
556
+ returns the request thread.
557
+ """
558
+
559
+ all_params = ['filename'] # noqa: E501
560
+ all_params.append('async_req')
561
+ all_params.append('_return_http_data_only')
562
+ all_params.append('_preload_content')
563
+ all_params.append('_request_timeout')
564
+
565
+ params = locals()
566
+ for key, val in six.iteritems(params['kwargs']):
567
+ if key not in all_params:
568
+ raise TypeError(
569
+ "Got an unexpected keyword argument '%s'"
570
+ " to method user_service_get_settings" % key
571
+ )
572
+ params[key] = val
573
+ del params['kwargs']
574
+ # verify the required parameter 'filename' is set
575
+ if ('filename' not in params or
576
+ params['filename'] is None):
577
+ raise ValueError("Missing the required parameter `filename` when calling `user_service_get_settings`") # noqa: E501
578
+
579
+ collection_formats = {}
580
+
581
+ path_params = {}
582
+ if 'filename' in params:
583
+ path_params['filename'] = params['filename'] # noqa: E501
584
+
585
+ query_params = []
586
+
587
+ header_params = {}
588
+
589
+ form_params = []
590
+ local_var_files = {}
591
+
592
+ body_params = None
593
+ # HTTP header `Accept`
594
+ header_params['Accept'] = self.api_client.select_header_accept(
595
+ ['application/json']) # noqa: E501
596
+
597
+ # Authentication setting
598
+ auth_settings = [] # noqa: E501
599
+
600
+ return self.api_client.call_api(
601
+ '/v1/users/settings/{filename}', 'GET',
602
+ path_params,
603
+ query_params,
604
+ header_params,
605
+ body=body_params,
606
+ post_params=form_params,
607
+ files=local_var_files,
608
+ response_type='V1GetSettingsResponse', # noqa: E501
609
+ auth_settings=auth_settings,
610
+ async_req=params.get('async_req'),
611
+ _return_http_data_only=params.get('_return_http_data_only'),
612
+ _preload_content=params.get('_preload_content', True),
613
+ _request_timeout=params.get('_request_timeout'),
614
+ collection_formats=collection_formats)
615
+
616
+ def user_service_get_user_profile(self, username: 'str', **kwargs) -> 'V1ExternalSearchUser': # noqa: E501
617
+ """user_service_get_user_profile # noqa: E501
618
+
619
+ This method makes a synchronous HTTP request by default. To make an
620
+ asynchronous HTTP request, please pass async_req=True
621
+ >>> thread = api.user_service_get_user_profile(username, async_req=True)
622
+ >>> result = thread.get()
623
+
624
+ :param async_req bool
625
+ :param str username: (required)
626
+ :return: V1ExternalSearchUser
627
+ If the method is called asynchronously,
628
+ returns the request thread.
629
+ """
630
+ kwargs['_return_http_data_only'] = True
631
+ if kwargs.get('async_req'):
632
+ return self.user_service_get_user_profile_with_http_info(username, **kwargs) # noqa: E501
633
+ else:
634
+ (data) = self.user_service_get_user_profile_with_http_info(username, **kwargs) # noqa: E501
635
+ return data
636
+
637
+ def user_service_get_user_profile_with_http_info(self, username: 'str', **kwargs) -> 'V1ExternalSearchUser': # noqa: E501
638
+ """user_service_get_user_profile # noqa: E501
639
+
640
+ This method makes a synchronous HTTP request by default. To make an
641
+ asynchronous HTTP request, please pass async_req=True
642
+ >>> thread = api.user_service_get_user_profile_with_http_info(username, async_req=True)
643
+ >>> result = thread.get()
644
+
645
+ :param async_req bool
646
+ :param str username: (required)
647
+ :return: V1ExternalSearchUser
648
+ If the method is called asynchronously,
649
+ returns the request thread.
650
+ """
651
+
652
+ all_params = ['username'] # noqa: E501
653
+ all_params.append('async_req')
654
+ all_params.append('_return_http_data_only')
655
+ all_params.append('_preload_content')
656
+ all_params.append('_request_timeout')
657
+
658
+ params = locals()
659
+ for key, val in six.iteritems(params['kwargs']):
660
+ if key not in all_params:
661
+ raise TypeError(
662
+ "Got an unexpected keyword argument '%s'"
663
+ " to method user_service_get_user_profile" % key
664
+ )
665
+ params[key] = val
666
+ del params['kwargs']
667
+ # verify the required parameter 'username' is set
668
+ if ('username' not in params or
669
+ params['username'] is None):
670
+ raise ValueError("Missing the required parameter `username` when calling `user_service_get_user_profile`") # noqa: E501
671
+
672
+ collection_formats = {}
673
+
674
+ path_params = {}
675
+ if 'username' in params:
676
+ path_params['username'] = params['username'] # noqa: E501
677
+
678
+ query_params = []
679
+
680
+ header_params = {}
681
+
682
+ form_params = []
683
+ local_var_files = {}
684
+
685
+ body_params = None
686
+ # HTTP header `Accept`
687
+ header_params['Accept'] = self.api_client.select_header_accept(
688
+ ['application/json']) # noqa: E501
689
+
690
+ # Authentication setting
691
+ auth_settings = [] # noqa: E501
692
+
693
+ return self.api_client.call_api(
694
+ '/v1/users/profile/{username}', 'GET',
695
+ path_params,
696
+ query_params,
697
+ header_params,
698
+ body=body_params,
699
+ post_params=form_params,
700
+ files=local_var_files,
701
+ response_type='V1ExternalSearchUser', # noqa: E501
702
+ auth_settings=auth_settings,
703
+ async_req=params.get('async_req'),
704
+ _return_http_data_only=params.get('_return_http_data_only'),
705
+ _preload_content=params.get('_preload_content', True),
706
+ _request_timeout=params.get('_request_timeout'),
707
+ collection_formats=collection_formats)
708
+
709
+ def user_service_get_user_storage(self, **kwargs) -> 'V1GetUserStorageResponse': # noqa: E501
710
+ """user_service_get_user_storage # noqa: E501
711
+
712
+ This method makes a synchronous HTTP request by default. To make an
713
+ asynchronous HTTP request, please pass async_req=True
714
+ >>> thread = api.user_service_get_user_storage(async_req=True)
715
+ >>> result = thread.get()
716
+
717
+ :param async_req bool
718
+ :return: V1GetUserStorageResponse
719
+ If the method is called asynchronously,
720
+ returns the request thread.
721
+ """
722
+ kwargs['_return_http_data_only'] = True
723
+ if kwargs.get('async_req'):
724
+ return self.user_service_get_user_storage_with_http_info(**kwargs) # noqa: E501
725
+ else:
726
+ (data) = self.user_service_get_user_storage_with_http_info(**kwargs) # noqa: E501
727
+ return data
728
+
729
+ def user_service_get_user_storage_with_http_info(self, **kwargs) -> 'V1GetUserStorageResponse': # noqa: E501
730
+ """user_service_get_user_storage # noqa: E501
731
+
732
+ This method makes a synchronous HTTP request by default. To make an
733
+ asynchronous HTTP request, please pass async_req=True
734
+ >>> thread = api.user_service_get_user_storage_with_http_info(async_req=True)
735
+ >>> result = thread.get()
736
+
737
+ :param async_req bool
738
+ :return: V1GetUserStorageResponse
739
+ If the method is called asynchronously,
740
+ returns the request thread.
741
+ """
742
+
743
+ all_params = [] # noqa: E501
744
+ all_params.append('async_req')
745
+ all_params.append('_return_http_data_only')
746
+ all_params.append('_preload_content')
747
+ all_params.append('_request_timeout')
748
+
749
+ params = locals()
750
+ for key, val in six.iteritems(params['kwargs']):
751
+ if key not in all_params:
752
+ raise TypeError(
753
+ "Got an unexpected keyword argument '%s'"
754
+ " to method user_service_get_user_storage" % key
755
+ )
756
+ params[key] = val
757
+ del params['kwargs']
758
+
759
+ collection_formats = {}
760
+
761
+ path_params = {}
762
+
763
+ query_params = []
764
+
765
+ header_params = {}
766
+
767
+ form_params = []
768
+ local_var_files = {}
769
+
770
+ body_params = None
771
+ # HTTP header `Accept`
772
+ header_params['Accept'] = self.api_client.select_header_accept(
773
+ ['application/json']) # noqa: E501
774
+
775
+ # Authentication setting
776
+ auth_settings = [] # noqa: E501
777
+
778
+ return self.api_client.call_api(
779
+ '/v1/users/storage', 'GET',
780
+ path_params,
781
+ query_params,
782
+ header_params,
783
+ body=body_params,
784
+ post_params=form_params,
785
+ files=local_var_files,
786
+ response_type='V1GetUserStorageResponse', # noqa: E501
787
+ auth_settings=auth_settings,
788
+ async_req=params.get('async_req'),
789
+ _return_http_data_only=params.get('_return_http_data_only'),
790
+ _preload_content=params.get('_preload_content', True),
791
+ _request_timeout=params.get('_request_timeout'),
792
+ collection_formats=collection_formats)
793
+
794
+ def user_service_get_user_storage_breakdown(self, **kwargs) -> 'V1GetUserStorageBreakdownResponse': # noqa: E501
795
+ """user_service_get_user_storage_breakdown # noqa: E501
796
+
797
+ This method makes a synchronous HTTP request by default. To make an
798
+ asynchronous HTTP request, please pass async_req=True
799
+ >>> thread = api.user_service_get_user_storage_breakdown(async_req=True)
800
+ >>> result = thread.get()
801
+
802
+ :param async_req bool
803
+ :return: V1GetUserStorageBreakdownResponse
804
+ If the method is called asynchronously,
805
+ returns the request thread.
806
+ """
807
+ kwargs['_return_http_data_only'] = True
808
+ if kwargs.get('async_req'):
809
+ return self.user_service_get_user_storage_breakdown_with_http_info(**kwargs) # noqa: E501
810
+ else:
811
+ (data) = self.user_service_get_user_storage_breakdown_with_http_info(**kwargs) # noqa: E501
812
+ return data
813
+
814
+ def user_service_get_user_storage_breakdown_with_http_info(self, **kwargs) -> 'V1GetUserStorageBreakdownResponse': # noqa: E501
815
+ """user_service_get_user_storage_breakdown # noqa: E501
816
+
817
+ This method makes a synchronous HTTP request by default. To make an
818
+ asynchronous HTTP request, please pass async_req=True
819
+ >>> thread = api.user_service_get_user_storage_breakdown_with_http_info(async_req=True)
52
820
  >>> result = thread.get()
53
821
 
54
822
  :param async_req bool
55
- :return: V1CompleteOnboardingResponse
823
+ :return: V1GetUserStorageBreakdownResponse
824
+ If the method is called asynchronously,
825
+ returns the request thread.
826
+ """
827
+
828
+ all_params = [] # noqa: E501
829
+ all_params.append('async_req')
830
+ all_params.append('_return_http_data_only')
831
+ all_params.append('_preload_content')
832
+ all_params.append('_request_timeout')
833
+
834
+ params = locals()
835
+ for key, val in six.iteritems(params['kwargs']):
836
+ if key not in all_params:
837
+ raise TypeError(
838
+ "Got an unexpected keyword argument '%s'"
839
+ " to method user_service_get_user_storage_breakdown" % key
840
+ )
841
+ params[key] = val
842
+ del params['kwargs']
843
+
844
+ collection_formats = {}
845
+
846
+ path_params = {}
847
+
848
+ query_params = []
849
+
850
+ header_params = {}
851
+
852
+ form_params = []
853
+ local_var_files = {}
854
+
855
+ body_params = None
856
+ # HTTP header `Accept`
857
+ header_params['Accept'] = self.api_client.select_header_accept(
858
+ ['application/json']) # noqa: E501
859
+
860
+ # Authentication setting
861
+ auth_settings = [] # noqa: E501
862
+
863
+ return self.api_client.call_api(
864
+ '/v1/users/storage/breakdown', 'GET',
865
+ path_params,
866
+ query_params,
867
+ header_params,
868
+ body=body_params,
869
+ post_params=form_params,
870
+ files=local_var_files,
871
+ response_type='V1GetUserStorageBreakdownResponse', # noqa: E501
872
+ auth_settings=auth_settings,
873
+ async_req=params.get('async_req'),
874
+ _return_http_data_only=params.get('_return_http_data_only'),
875
+ _preload_content=params.get('_preload_content', True),
876
+ _request_timeout=params.get('_request_timeout'),
877
+ collection_formats=collection_formats)
878
+
879
+ def user_service_list_affiliate_links(self, user_id: 'str', **kwargs) -> 'V1ListAffiliateLinksResponse': # noqa: E501
880
+ """list affiliate links # noqa: E501
881
+
882
+ This method makes a synchronous HTTP request by default. To make an
883
+ asynchronous HTTP request, please pass async_req=True
884
+ >>> thread = api.user_service_list_affiliate_links(user_id, async_req=True)
885
+ >>> result = thread.get()
886
+
887
+ :param async_req bool
888
+ :param str user_id: (required)
889
+ :return: V1ListAffiliateLinksResponse
56
890
  If the method is called asynchronously,
57
891
  returns the request thread.
58
892
  """
59
893
  kwargs['_return_http_data_only'] = True
60
894
  if kwargs.get('async_req'):
61
- return self.user_service_complete_onboarding_with_http_info(**kwargs) # noqa: E501
895
+ return self.user_service_list_affiliate_links_with_http_info(user_id, **kwargs) # noqa: E501
62
896
  else:
63
- (data) = self.user_service_complete_onboarding_with_http_info(**kwargs) # noqa: E501
897
+ (data) = self.user_service_list_affiliate_links_with_http_info(user_id, **kwargs) # noqa: E501
64
898
  return data
65
899
 
66
- def user_service_complete_onboarding_with_http_info(self, **kwargs) -> 'V1CompleteOnboardingResponse': # noqa: E501
67
- """user_service_complete_onboarding # noqa: E501
900
+ def user_service_list_affiliate_links_with_http_info(self, user_id: 'str', **kwargs) -> 'V1ListAffiliateLinksResponse': # noqa: E501
901
+ """list affiliate links # noqa: E501
68
902
 
69
903
  This method makes a synchronous HTTP request by default. To make an
70
904
  asynchronous HTTP request, please pass async_req=True
71
- >>> thread = api.user_service_complete_onboarding_with_http_info(async_req=True)
905
+ >>> thread = api.user_service_list_affiliate_links_with_http_info(user_id, async_req=True)
72
906
  >>> result = thread.get()
73
907
 
74
908
  :param async_req bool
75
- :return: V1CompleteOnboardingResponse
909
+ :param str user_id: (required)
910
+ :return: V1ListAffiliateLinksResponse
76
911
  If the method is called asynchronously,
77
912
  returns the request thread.
78
913
  """
79
914
 
80
- all_params = [] # noqa: E501
915
+ all_params = ['user_id'] # noqa: E501
81
916
  all_params.append('async_req')
82
917
  all_params.append('_return_http_data_only')
83
918
  all_params.append('_preload_content')
@@ -88,14 +923,20 @@ class UserServiceApi(object):
88
923
  if key not in all_params:
89
924
  raise TypeError(
90
925
  "Got an unexpected keyword argument '%s'"
91
- " to method user_service_complete_onboarding" % key
926
+ " to method user_service_list_affiliate_links" % key
92
927
  )
93
928
  params[key] = val
94
929
  del params['kwargs']
930
+ # verify the required parameter 'user_id' is set
931
+ if ('user_id' not in params or
932
+ params['user_id'] is None):
933
+ raise ValueError("Missing the required parameter `user_id` when calling `user_service_list_affiliate_links`") # noqa: E501
95
934
 
96
935
  collection_formats = {}
97
936
 
98
937
  path_params = {}
938
+ if 'user_id' in params:
939
+ path_params['userId'] = params['user_id'] # noqa: E501
99
940
 
100
941
  query_params = []
101
942
 
@@ -113,14 +954,14 @@ class UserServiceApi(object):
113
954
  auth_settings = [] # noqa: E501
114
955
 
115
956
  return self.api_client.call_api(
116
- '/v1/users/complete-onboarding', 'GET',
957
+ '/v1/users/{userId}/affiliate-links', 'GET',
117
958
  path_params,
118
959
  query_params,
119
960
  header_params,
120
961
  body=body_params,
121
962
  post_params=form_params,
122
963
  files=local_var_files,
123
- response_type='V1CompleteOnboardingResponse', # noqa: E501
964
+ response_type='V1ListAffiliateLinksResponse', # noqa: E501
124
965
  auth_settings=auth_settings,
125
966
  async_req=params.get('async_req'),
126
967
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -128,43 +969,43 @@ class UserServiceApi(object):
128
969
  _request_timeout=params.get('_request_timeout'),
129
970
  collection_formats=collection_formats)
130
971
 
131
- def user_service_get_settings(self, filename: 'str', **kwargs) -> 'V1GetSettingsResponse': # noqa: E501
132
- """user_service_get_settings # noqa: E501
972
+ def user_service_list_new_features_for_user(self, **kwargs) -> 'V1ListNewFeaturesForUserResponse': # noqa: E501
973
+ """we use this to show ne user unseen new features modal # noqa: E501
133
974
 
134
975
  This method makes a synchronous HTTP request by default. To make an
135
976
  asynchronous HTTP request, please pass async_req=True
136
- >>> thread = api.user_service_get_settings(filename, async_req=True)
977
+ >>> thread = api.user_service_list_new_features_for_user(async_req=True)
137
978
  >>> result = thread.get()
138
979
 
139
980
  :param async_req bool
140
- :param str filename: (required)
141
- :return: V1GetSettingsResponse
981
+ :param bool unseen:
982
+ :return: V1ListNewFeaturesForUserResponse
142
983
  If the method is called asynchronously,
143
984
  returns the request thread.
144
985
  """
145
986
  kwargs['_return_http_data_only'] = True
146
987
  if kwargs.get('async_req'):
147
- return self.user_service_get_settings_with_http_info(filename, **kwargs) # noqa: E501
988
+ return self.user_service_list_new_features_for_user_with_http_info(**kwargs) # noqa: E501
148
989
  else:
149
- (data) = self.user_service_get_settings_with_http_info(filename, **kwargs) # noqa: E501
990
+ (data) = self.user_service_list_new_features_for_user_with_http_info(**kwargs) # noqa: E501
150
991
  return data
151
992
 
152
- def user_service_get_settings_with_http_info(self, filename: 'str', **kwargs) -> 'V1GetSettingsResponse': # noqa: E501
153
- """user_service_get_settings # noqa: E501
993
+ def user_service_list_new_features_for_user_with_http_info(self, **kwargs) -> 'V1ListNewFeaturesForUserResponse': # noqa: E501
994
+ """we use this to show ne user unseen new features modal # noqa: E501
154
995
 
155
996
  This method makes a synchronous HTTP request by default. To make an
156
997
  asynchronous HTTP request, please pass async_req=True
157
- >>> thread = api.user_service_get_settings_with_http_info(filename, async_req=True)
998
+ >>> thread = api.user_service_list_new_features_for_user_with_http_info(async_req=True)
158
999
  >>> result = thread.get()
159
1000
 
160
1001
  :param async_req bool
161
- :param str filename: (required)
162
- :return: V1GetSettingsResponse
1002
+ :param bool unseen:
1003
+ :return: V1ListNewFeaturesForUserResponse
163
1004
  If the method is called asynchronously,
164
1005
  returns the request thread.
165
1006
  """
166
1007
 
167
- all_params = ['filename'] # noqa: E501
1008
+ all_params = ['unseen'] # noqa: E501
168
1009
  all_params.append('async_req')
169
1010
  all_params.append('_return_http_data_only')
170
1011
  all_params.append('_preload_content')
@@ -175,22 +1016,18 @@ class UserServiceApi(object):
175
1016
  if key not in all_params:
176
1017
  raise TypeError(
177
1018
  "Got an unexpected keyword argument '%s'"
178
- " to method user_service_get_settings" % key
1019
+ " to method user_service_list_new_features_for_user" % key
179
1020
  )
180
1021
  params[key] = val
181
1022
  del params['kwargs']
182
- # verify the required parameter 'filename' is set
183
- if ('filename' not in params or
184
- params['filename'] is None):
185
- raise ValueError("Missing the required parameter `filename` when calling `user_service_get_settings`") # noqa: E501
186
1023
 
187
1024
  collection_formats = {}
188
1025
 
189
1026
  path_params = {}
190
- if 'filename' in params:
191
- path_params['filename'] = params['filename'] # noqa: E501
192
1027
 
193
1028
  query_params = []
1029
+ if 'unseen' in params:
1030
+ query_params.append(('unseen', params['unseen'])) # noqa: E501
194
1031
 
195
1032
  header_params = {}
196
1033
 
@@ -206,14 +1043,14 @@ class UserServiceApi(object):
206
1043
  auth_settings = [] # noqa: E501
207
1044
 
208
1045
  return self.api_client.call_api(
209
- '/v1/users/settings/{filename}', 'GET',
1046
+ '/v1/users/new-features', 'GET',
210
1047
  path_params,
211
1048
  query_params,
212
1049
  header_params,
213
1050
  body=body_params,
214
1051
  post_params=form_params,
215
1052
  files=local_var_files,
216
- response_type='V1GetSettingsResponse', # noqa: E501
1053
+ response_type='V1ListNewFeaturesForUserResponse', # noqa: E501
217
1054
  auth_settings=auth_settings,
218
1055
  async_req=params.get('async_req'),
219
1056
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -415,6 +1252,216 @@ class UserServiceApi(object):
415
1252
  _request_timeout=params.get('_request_timeout'),
416
1253
  collection_formats=collection_formats)
417
1254
 
1255
+ def user_service_update_affiliate_link(self, body: 'AffiliatelinksIdBody', user_id: 'str', id: 'str', **kwargs) -> 'V1AffiliateLink': # noqa: E501
1256
+ """update affiliate link # noqa: E501
1257
+
1258
+ This method makes a synchronous HTTP request by default. To make an
1259
+ asynchronous HTTP request, please pass async_req=True
1260
+ >>> thread = api.user_service_update_affiliate_link(body, user_id, id, async_req=True)
1261
+ >>> result = thread.get()
1262
+
1263
+ :param async_req bool
1264
+ :param AffiliatelinksIdBody body: (required)
1265
+ :param str user_id: (required)
1266
+ :param str id: (required)
1267
+ :return: V1AffiliateLink
1268
+ If the method is called asynchronously,
1269
+ returns the request thread.
1270
+ """
1271
+ kwargs['_return_http_data_only'] = True
1272
+ if kwargs.get('async_req'):
1273
+ return self.user_service_update_affiliate_link_with_http_info(body, user_id, id, **kwargs) # noqa: E501
1274
+ else:
1275
+ (data) = self.user_service_update_affiliate_link_with_http_info(body, user_id, id, **kwargs) # noqa: E501
1276
+ return data
1277
+
1278
+ def user_service_update_affiliate_link_with_http_info(self, body: 'AffiliatelinksIdBody', user_id: 'str', id: 'str', **kwargs) -> 'V1AffiliateLink': # noqa: E501
1279
+ """update affiliate link # noqa: E501
1280
+
1281
+ This method makes a synchronous HTTP request by default. To make an
1282
+ asynchronous HTTP request, please pass async_req=True
1283
+ >>> thread = api.user_service_update_affiliate_link_with_http_info(body, user_id, id, async_req=True)
1284
+ >>> result = thread.get()
1285
+
1286
+ :param async_req bool
1287
+ :param AffiliatelinksIdBody body: (required)
1288
+ :param str user_id: (required)
1289
+ :param str id: (required)
1290
+ :return: V1AffiliateLink
1291
+ If the method is called asynchronously,
1292
+ returns the request thread.
1293
+ """
1294
+
1295
+ all_params = ['body', 'user_id', 'id'] # noqa: E501
1296
+ all_params.append('async_req')
1297
+ all_params.append('_return_http_data_only')
1298
+ all_params.append('_preload_content')
1299
+ all_params.append('_request_timeout')
1300
+
1301
+ params = locals()
1302
+ for key, val in six.iteritems(params['kwargs']):
1303
+ if key not in all_params:
1304
+ raise TypeError(
1305
+ "Got an unexpected keyword argument '%s'"
1306
+ " to method user_service_update_affiliate_link" % key
1307
+ )
1308
+ params[key] = val
1309
+ del params['kwargs']
1310
+ # verify the required parameter 'body' is set
1311
+ if ('body' not in params or
1312
+ params['body'] is None):
1313
+ raise ValueError("Missing the required parameter `body` when calling `user_service_update_affiliate_link`") # noqa: E501
1314
+ # verify the required parameter 'user_id' is set
1315
+ if ('user_id' not in params or
1316
+ params['user_id'] is None):
1317
+ raise ValueError("Missing the required parameter `user_id` when calling `user_service_update_affiliate_link`") # noqa: E501
1318
+ # verify the required parameter 'id' is set
1319
+ if ('id' not in params or
1320
+ params['id'] is None):
1321
+ raise ValueError("Missing the required parameter `id` when calling `user_service_update_affiliate_link`") # noqa: E501
1322
+
1323
+ collection_formats = {}
1324
+
1325
+ path_params = {}
1326
+ if 'user_id' in params:
1327
+ path_params['userId'] = params['user_id'] # noqa: E501
1328
+ if 'id' in params:
1329
+ path_params['id'] = params['id'] # noqa: E501
1330
+
1331
+ query_params = []
1332
+
1333
+ header_params = {}
1334
+
1335
+ form_params = []
1336
+ local_var_files = {}
1337
+
1338
+ body_params = None
1339
+ if 'body' in params:
1340
+ body_params = params['body']
1341
+ # HTTP header `Accept`
1342
+ header_params['Accept'] = self.api_client.select_header_accept(
1343
+ ['application/json']) # noqa: E501
1344
+
1345
+ # HTTP header `Content-Type`
1346
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1347
+ ['application/json']) # noqa: E501
1348
+
1349
+ # Authentication setting
1350
+ auth_settings = [] # noqa: E501
1351
+
1352
+ return self.api_client.call_api(
1353
+ '/v1/users/{userId}/affiliate-links/{id}', 'PUT',
1354
+ path_params,
1355
+ query_params,
1356
+ header_params,
1357
+ body=body_params,
1358
+ post_params=form_params,
1359
+ files=local_var_files,
1360
+ response_type='V1AffiliateLink', # noqa: E501
1361
+ auth_settings=auth_settings,
1362
+ async_req=params.get('async_req'),
1363
+ _return_http_data_only=params.get('_return_http_data_only'),
1364
+ _preload_content=params.get('_preload_content', True),
1365
+ _request_timeout=params.get('_request_timeout'),
1366
+ collection_formats=collection_formats)
1367
+
1368
+ def user_service_update_user_viewed_new_features(self, body: 'V1UpdateUserViewedNewFeaturesRequest', **kwargs) -> 'V1UpdateUserViewedNewFeaturesResponse': # noqa: E501
1369
+ """we use this to update user viewed new features # noqa: E501
1370
+
1371
+ This method makes a synchronous HTTP request by default. To make an
1372
+ asynchronous HTTP request, please pass async_req=True
1373
+ >>> thread = api.user_service_update_user_viewed_new_features(body, async_req=True)
1374
+ >>> result = thread.get()
1375
+
1376
+ :param async_req bool
1377
+ :param V1UpdateUserViewedNewFeaturesRequest body: (required)
1378
+ :return: V1UpdateUserViewedNewFeaturesResponse
1379
+ If the method is called asynchronously,
1380
+ returns the request thread.
1381
+ """
1382
+ kwargs['_return_http_data_only'] = True
1383
+ if kwargs.get('async_req'):
1384
+ return self.user_service_update_user_viewed_new_features_with_http_info(body, **kwargs) # noqa: E501
1385
+ else:
1386
+ (data) = self.user_service_update_user_viewed_new_features_with_http_info(body, **kwargs) # noqa: E501
1387
+ return data
1388
+
1389
+ def user_service_update_user_viewed_new_features_with_http_info(self, body: 'V1UpdateUserViewedNewFeaturesRequest', **kwargs) -> 'V1UpdateUserViewedNewFeaturesResponse': # noqa: E501
1390
+ """we use this to update user viewed new features # noqa: E501
1391
+
1392
+ This method makes a synchronous HTTP request by default. To make an
1393
+ asynchronous HTTP request, please pass async_req=True
1394
+ >>> thread = api.user_service_update_user_viewed_new_features_with_http_info(body, async_req=True)
1395
+ >>> result = thread.get()
1396
+
1397
+ :param async_req bool
1398
+ :param V1UpdateUserViewedNewFeaturesRequest body: (required)
1399
+ :return: V1UpdateUserViewedNewFeaturesResponse
1400
+ If the method is called asynchronously,
1401
+ returns the request thread.
1402
+ """
1403
+
1404
+ all_params = ['body'] # noqa: E501
1405
+ all_params.append('async_req')
1406
+ all_params.append('_return_http_data_only')
1407
+ all_params.append('_preload_content')
1408
+ all_params.append('_request_timeout')
1409
+
1410
+ params = locals()
1411
+ for key, val in six.iteritems(params['kwargs']):
1412
+ if key not in all_params:
1413
+ raise TypeError(
1414
+ "Got an unexpected keyword argument '%s'"
1415
+ " to method user_service_update_user_viewed_new_features" % key
1416
+ )
1417
+ params[key] = val
1418
+ del params['kwargs']
1419
+ # verify the required parameter 'body' is set
1420
+ if ('body' not in params or
1421
+ params['body'] is None):
1422
+ raise ValueError("Missing the required parameter `body` when calling `user_service_update_user_viewed_new_features`") # noqa: E501
1423
+
1424
+ collection_formats = {}
1425
+
1426
+ path_params = {}
1427
+
1428
+ query_params = []
1429
+
1430
+ header_params = {}
1431
+
1432
+ form_params = []
1433
+ local_var_files = {}
1434
+
1435
+ body_params = None
1436
+ if 'body' in params:
1437
+ body_params = params['body']
1438
+ # HTTP header `Accept`
1439
+ header_params['Accept'] = self.api_client.select_header_accept(
1440
+ ['application/json']) # noqa: E501
1441
+
1442
+ # HTTP header `Content-Type`
1443
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1444
+ ['application/json']) # noqa: E501
1445
+
1446
+ # Authentication setting
1447
+ auth_settings = [] # noqa: E501
1448
+
1449
+ return self.api_client.call_api(
1450
+ '/v1/users/new-features', 'PUT',
1451
+ path_params,
1452
+ query_params,
1453
+ header_params,
1454
+ body=body_params,
1455
+ post_params=form_params,
1456
+ files=local_var_files,
1457
+ response_type='V1UpdateUserViewedNewFeaturesResponse', # noqa: E501
1458
+ auth_settings=auth_settings,
1459
+ async_req=params.get('async_req'),
1460
+ _return_http_data_only=params.get('_return_http_data_only'),
1461
+ _preload_content=params.get('_preload_content', True),
1462
+ _request_timeout=params.get('_request_timeout'),
1463
+ collection_formats=collection_formats)
1464
+
418
1465
  def user_service_upload_settings(self, body: 'object', filename: 'str', **kwargs) -> 'V1UploadSettingsResponse': # noqa: E501
419
1466
  """user_service_upload_settings # noqa: E501
420
1467