lightning-sdk 0.1.2__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 (521) 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 +174 -83
  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 -47
  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 +314 -43
  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 +3115 -895
  42. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +908 -141
  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 +1658 -159
  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 -590
  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 +304 -41
  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/agents_id_body.py +643 -0
  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_body.py +175 -0
  74. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +175 -0
  75. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versions_body.py +409 -0
  76. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_runs_body.py +27 -1
  77. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +84 -6
  78. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +253 -0
  79. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
  80. lightning_sdk/lightning_cloud/openapi/models/cluster_id_proxies_body.py +123 -0
  81. lightning_sdk/lightning_cloud/openapi/models/clusters_id_body.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/create.py +157 -1
  83. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +383 -0
  84. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +565 -0
  85. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +513 -0
  86. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +43 -17
  87. lightning_sdk/lightning_cloud/openapi/models/experiment_name_variant_name_body.py +123 -0
  88. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +107 -1
  89. lightning_sdk/lightning_cloud/openapi/models/externalv1_lightningapp_instance.py +27 -1
  90. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
  91. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +131 -1
  92. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -55
  93. lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +175 -0
  94. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  95. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  96. lightning_sdk/lightning_cloud/openapi/models/id_execute_body.py +3 -55
  97. lightning_sdk/lightning_cloud/openapi/models/id_execute_body1.py +175 -0
  98. lightning_sdk/lightning_cloud/openapi/models/id_fork_body.py +31 -31
  99. lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +175 -0
  100. lightning_sdk/lightning_cloud/openapi/models/id_get_body.py +133 -3
  101. lightning_sdk/lightning_cloud/openapi/models/id_index_body.py +67 -15
  102. lightning_sdk/lightning_cloud/openapi/models/id_index_body2.py +123 -0
  103. lightning_sdk/lightning_cloud/openapi/models/id_index_body3.py +175 -0
  104. lightning_sdk/lightning_cloud/openapi/models/id_reportlogsactivity_body.py +123 -0
  105. lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
  106. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +175 -0
  107. lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +175 -0
  108. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
  109. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body1.py +27 -1
  110. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body2.py +17 -43
  111. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body3.py +149 -0
  112. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  113. lightning_sdk/lightning_cloud/openapi/models/litpages_id_body.py +27 -1
  114. lightning_sdk/lightning_cloud/openapi/models/loggermetrics_id_body.py +123 -0
  115. lightning_sdk/lightning_cloud/openapi/models/metrics_stream_id_loggerartifacts_body.py +123 -0
  116. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +383 -0
  117. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_id_list.py → metricsstream_delete_body.py} +10 -10
  118. lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +175 -0
  119. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_response.py → model_id_versions_body.py} +25 -51
  120. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
  121. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +149 -0
  122. lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
  123. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  124. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  125. lightning_sdk/lightning_cloud/openapi/models/profiler_captures_body.py +279 -0
  126. lightning_sdk/lightning_cloud/openapi/models/profiler_enabled_body.py +149 -0
  127. lightning_sdk/lightning_cloud/openapi/models/project_id_agentmanagedendpoints_body.py +149 -0
  128. lightning_sdk/lightning_cloud/openapi/models/{project_id_assistants_body.py → project_id_agents_body.py} +181 -51
  129. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +71 -19
  130. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +79 -1
  131. lightning_sdk/lightning_cloud/openapi/models/project_id_jobs_body.py +175 -0
  132. lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +123 -0
  133. lightning_sdk/lightning_cloud/openapi/models/project_id_memberships_body.py +53 -1
  134. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_request.py → project_id_models_body.py} +70 -70
  135. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +227 -0
  136. lightning_sdk/lightning_cloud/openapi/models/project_id_secrets_body.py +27 -1
  137. lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +175 -0
  138. lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +123 -0
  139. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  140. lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +175 -0
  141. lightning_sdk/lightning_cloud/openapi/models/secrets_id_body1.py +123 -0
  142. lightning_sdk/lightning_cloud/openapi/models/servers_server_id_body.py +123 -0
  143. lightning_sdk/lightning_cloud/openapi/models/service_artifact_artifact_kind.py +104 -0
  144. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +331 -0
  145. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  146. lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +305 -0
  147. lightning_sdk/lightning_cloud/openapi/models/{v1_download_model_response.py → snowflake_query_body.py} +51 -51
  148. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  149. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  150. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body.py +149 -0
  151. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body.py +149 -0
  152. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +149 -0
  153. lightning_sdk/lightning_cloud/openapi/models/v1_accelerator_quota_info.py +201 -0
  154. lightning_sdk/lightning_cloud/openapi/models/v1_ack_user_storage_violation_response.py +97 -0
  155. lightning_sdk/lightning_cloud/openapi/models/v1_add_job_timing_response.py +97 -0
  156. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +435 -0
  157. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +131 -1
  158. lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
  159. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  160. lightning_sdk/lightning_cloud/openapi/models/v1_append_logger_metrics_response.py +97 -0
  161. lightning_sdk/lightning_cloud/openapi/models/v1_approve_auto_join_domain_response.py +123 -0
  162. lightning_sdk/lightning_cloud/openapi/models/v1_assign_variant_response.py +97 -0
  163. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +157 -1
  164. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_item_status.py +253 -0
  165. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_status.py +123 -0
  166. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +104 -0
  167. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_domain_validation.py +175 -0
  168. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_org_response.py +149 -0
  169. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_spec.py +305 -0
  170. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_target_metric.py +149 -0
  171. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +133 -3
  172. lightning_sdk/lightning_cloud/openapi/models/v1_batch_update_lightningwork_response.py +97 -0
  173. lightning_sdk/lightning_cloud/openapi/models/v1_body.py +123 -0
  174. lightning_sdk/lightning_cloud/openapi/models/v1_cancellation_metadata.py +149 -0
  175. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +383 -0
  176. lightning_sdk/lightning_cloud/openapi/models/v1_check_snowflake_connection_response.py +123 -0
  177. lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +201 -0
  178. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +162 -6
  179. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version.py +383 -0
  180. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version_status.py +105 -0
  181. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_config.py +1 -53
  182. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_startup_status.py +79 -1
  183. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_log_service.py → v1_cloud_space_session.py} +49 -49
  184. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +669 -0
  185. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version_publication.py +201 -0
  186. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
  187. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
  188. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_names.py +123 -0
  189. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_proxy.py +201 -0
  190. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_resource_tag.py +149 -0
  191. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +357 -0
  192. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -107
  193. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_state.py +1 -0
  194. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +17 -43
  195. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +175 -0
  196. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  197. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +131 -1
  198. lightning_sdk/lightning_cloud/openapi/models/v1_complete_model_upload_response.py +97 -0
  199. lightning_sdk/lightning_cloud/openapi/models/v1_complete_multi_part_upload_response.py +97 -0
  200. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_service_execution_artifact_response.py +97 -0
  201. lightning_sdk/lightning_cloud/openapi/models/v1_completed_part.py +149 -0
  202. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +15 -15
  203. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +26 -26
  204. lightning_sdk/lightning_cloud/openapi/models/v1_count_metrics_streams_response.py +123 -0
  205. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +53 -1
  206. lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_request.py +27 -1
  207. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +539 -0
  208. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_part_upload_response.py +123 -0
  209. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +159 -3
  210. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  211. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  212. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  213. lightning_sdk/lightning_cloud/openapi/models/v1_create_snowflake_connection_response.py +123 -0
  214. lightning_sdk/lightning_cloud/openapi/models/v1_create_user_secret_request.py +149 -0
  215. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +365 -1
  216. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_performance_profile.py → v1_data_connection_state.py} +11 -9
  217. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +201 -0
  218. lightning_sdk/lightning_cloud/openapi/models/v1_delete_affiliate_link_response.py +97 -0
  219. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_session_response.py +97 -0
  220. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_version_publication_response.py +97 -0
  221. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_version_response.py +97 -0
  222. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_proxy_response.py +97 -0
  223. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_release_response.py +97 -0
  224. lightning_sdk/lightning_cloud/openapi/models/{v1_azure_cluster_driver_status.py → v1_delete_deployment_response.py} +6 -6
  225. lightning_sdk/lightning_cloud/openapi/models/v1_delete_index_response.py +97 -0
  226. lightning_sdk/lightning_cloud/openapi/models/{v1_byom_cluster_driver.py → v1_delete_job_response.py} +6 -6
  227. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_v2_response.py → v1_delete_logger_artifact_response.py} +6 -6
  228. lightning_sdk/lightning_cloud/openapi/models/v1_delete_managed_endpoint_response.py +97 -0
  229. lightning_sdk/lightning_cloud/openapi/models/v1_delete_metrics_stream_response.py +97 -0
  230. lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
  231. lightning_sdk/lightning_cloud/openapi/models/v1_delete_profiler_capture_response.py +97 -0
  232. lightning_sdk/lightning_cloud/openapi/models/v1_delete_service_execution_response.py +97 -0
  233. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_release_response.py → v1_delete_shared_metrics_stream_response.py} +6 -6
  234. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +617 -0
  235. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +227 -0
  236. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event.py +357 -0
  237. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event_type.py +104 -0
  238. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +149 -0
  239. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
  240. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +331 -0
  241. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +201 -0
  242. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +105 -0
  243. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
  244. lightning_sdk/lightning_cloud/openapi/models/{appsv2_id_body.py → v1_deployment_strategy.py} +39 -39
  245. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +721 -0
  246. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  247. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_gallery_response.py +591 -0
  248. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +435 -0
  249. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +106 -0
  250. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +106 -0
  251. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +591 -0
  252. lightning_sdk/lightning_cloud/openapi/models/{instance_type_availability.py → v1_deployment_template_type.py} +10 -10
  253. lightning_sdk/lightning_cloud/openapi/models/{v1_get_lightningapp_source_code_download_url_response.py → v1_download_job_logs_response.py} +10 -10
  254. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +175 -0
  255. lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +279 -0
  256. lightning_sdk/lightning_cloud/openapi/models/v1_efs_config.py +201 -0
  257. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +53 -27
  258. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_auth.py +27 -1
  259. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_type.py +104 -0
  260. lightning_sdk/lightning_cloud/openapi/models/v1_execute_cloud_space_command_response.py +29 -3
  261. lightning_sdk/lightning_cloud/openapi/models/v1_execute_in_cloud_space_session_response.py +97 -0
  262. lightning_sdk/lightning_cloud/openapi/models/v1_execute_snowflake_query_response.py +149 -0
  263. lightning_sdk/lightning_cloud/openapi/models/v1_experiment.py +409 -0
  264. lightning_sdk/lightning_cloud/openapi/models/v1_export_snowflake_query_response.py +123 -0
  265. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +279 -0
  266. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +131 -1
  267. lightning_sdk/lightning_cloud/openapi/models/{v1_instance_spec.py → v1_filesystem_app.py} +85 -59
  268. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  269. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  270. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  271. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  272. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  273. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  274. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +123 -0
  275. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection.py +27 -1
  276. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  277. lightning_sdk/lightning_cloud/openapi/models/v1_get_affiliate_link_response.py +123 -0
  278. lightning_sdk/lightning_cloud/openapi/models/{v1_list_cluster_instance_types_response.py → v1_get_deployment_routing_telemetry_aggregated_response.py} +23 -23
  279. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_response.py +123 -0
  280. lightning_sdk/lightning_cloud/openapi/models/v1_get_folder_index_response.py +27 -1
  281. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_driver_status.py → v1_get_job_stats_response.py} +39 -39
  282. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_system_metrics_response.py +123 -0
  283. lightning_sdk/lightning_cloud/openapi/models/v1_get_lightningapp_instance_open_ports_response.py +123 -0
  284. lightning_sdk/lightning_cloud/openapi/models/v1_get_logger_metrics_response.py +123 -0
  285. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_upload_urls_response.py +123 -0
  286. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +175 -0
  287. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +279 -0
  288. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
  289. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningwork_cluster_driver.py → v1_get_project_artifact_response.py} +33 -14
  290. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
  291. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +383 -0
  292. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +175 -0
  293. lightning_sdk/lightning_cloud/openapi/models/v1_get_snowflake_query_response.py +149 -0
  294. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_balance_response.py +27 -1
  295. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
  296. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +279 -0
  297. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +201 -0
  298. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +163 -3
  299. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1_status.py +123 -0
  300. lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
  301. lightning_sdk/lightning_cloud/openapi/models/{v1_external_kubeconfig.py → v1_health_check_exec.py} +21 -21
  302. lightning_sdk/lightning_cloud/openapi/models/v1_health_check_http_get.py +149 -0
  303. lightning_sdk/lightning_cloud/openapi/models/v1_ids_logger_metrics.py +123 -0
  304. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +175 -0
  305. lightning_sdk/lightning_cloud/openapi/models/v1_interrupt_server_response.py +97 -0
  306. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +697 -0
  307. lightning_sdk/lightning_cloud/openapi/models/v1_job_health_check_config.py +253 -0
  308. lightning_sdk/lightning_cloud/openapi/models/v1_job_log_entry.py +175 -0
  309. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_page.py +227 -0
  310. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_response.py +149 -0
  311. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +669 -0
  312. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +201 -0
  313. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +331 -0
  314. lightning_sdk/lightning_cloud/openapi/models/v1_knowledge_configuration.py +279 -0
  315. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
  316. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +27 -1
  317. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_spec.py +105 -27
  318. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_status.py +53 -1
  319. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -27
  320. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +81 -3
  321. lightning_sdk/lightning_cloud/openapi/models/v1_list_affiliate_links_response.py +123 -0
  322. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  323. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_sessions_response.py +123 -0
  324. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_tags_response.py +6 -6
  325. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_version_publications_response.py +123 -0
  326. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_versions_response.py +123 -0
  327. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_availabilities_response.py +123 -0
  328. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_proxies_response.py +123 -0
  329. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_events_response.py +123 -0
  330. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_releases_response.py +123 -0
  331. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_tags_response.py +123 -0
  332. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_templates_response.py +175 -0
  333. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployments_response.py +123 -0
  334. lightning_sdk/lightning_cloud/openapi/models/v1_list_experiments_response.py +149 -0
  335. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  336. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  337. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  338. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  339. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  340. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  341. lightning_sdk/lightning_cloud/openapi/models/{v1_list_lightningapps_v2_response.py → v1_list_jobs_response.py} +31 -31
  342. lightning_sdk/lightning_cloud/openapi/models/v1_list_joinable_organizations_response.py +123 -0
  343. lightning_sdk/lightning_cloud/openapi/models/v1_list_logger_artifact_response.py +123 -0
  344. lightning_sdk/lightning_cloud/openapi/models/v1_list_metrics_streams_response.py +123 -0
  345. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
  346. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
  347. lightning_sdk/lightning_cloud/openapi/models/v1_list_new_features_for_user_response.py +123 -0
  348. lightning_sdk/lightning_cloud/openapi/models/v1_list_profiler_captures_response.py +123 -0
  349. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_locked_resources_response.py +123 -0
  350. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_cloud_spaces_response.py +3 -29
  351. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_deployment_templates_response.py +175 -0
  352. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +175 -0
  353. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +123 -0
  354. lightning_sdk/lightning_cloud/openapi/models/v1_lit_page.py +27 -1
  355. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +227 -0
  356. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +279 -0
  357. lightning_sdk/lightning_cloud/openapi/models/v1_locked_resource.py +227 -0
  358. lightning_sdk/lightning_cloud/openapi/models/v1_logger_artifact.py +227 -0
  359. lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
  360. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +81 -3
  361. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
  362. lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +175 -19
  363. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +305 -0
  364. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
  365. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +79 -1
  366. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +138 -8
  367. lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
  368. lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
  369. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +131 -1
  370. lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +175 -0
  371. lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +175 -0
  372. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +799 -0
  373. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tags.py +201 -0
  374. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tracker.py +383 -0
  375. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +95 -17
  376. lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
  377. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +131 -1
  378. lightning_sdk/lightning_cloud/openapi/models/v1_mount_target.py +201 -0
  379. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +487 -0
  380. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
  381. lightning_sdk/lightning_cloud/openapi/models/{get_cluster_health_response_health_status.py → v1_multi_machine_job_event_type.py} +9 -9
  382. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
  383. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
  384. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
  385. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +305 -0
  386. lightning_sdk/lightning_cloud/openapi/models/v1_named_get_logger_metrics.py +123 -0
  387. lightning_sdk/lightning_cloud/openapi/models/v1_new_feature.py +383 -0
  388. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_request.py +175 -0
  389. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_response.py +97 -0
  390. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
  391. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  392. lightning_sdk/lightning_cloud/openapi/models/v1_path_telemetry.py +123 -0
  393. lightning_sdk/lightning_cloud/openapi/models/v1_phase_type.py +104 -0
  394. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_capture.py +357 -0
  395. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_enabled_response.py +123 -0
  396. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +131 -1
  397. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +263 -3
  398. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  399. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +279 -0
  400. lightning_sdk/lightning_cloud/openapi/models/v1_published_cloud_space_response.py +188 -6
  401. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_capacity_block_response.py +175 -0
  402. lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
  403. lightning_sdk/lightning_cloud/openapi/models/v1_query_result.py +123 -0
  404. lightning_sdk/lightning_cloud/openapi/models/v1_query_result_row.py +123 -0
  405. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_path_response.py +97 -0
  406. lightning_sdk/lightning_cloud/openapi/models/v1_regional_load_balancer.py +149 -0
  407. lightning_sdk/lightning_cloud/openapi/models/v1_report_logs_activity_response.py +97 -0
  408. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_request.py +175 -0
  409. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_response.py +97 -0
  410. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_tag.py → v1_resource_tag.py} +18 -18
  411. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +123 -0
  412. lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +37 -11
  413. lightning_sdk/lightning_cloud/openapi/models/v1_restore_deployment_release_response.py +97 -0
  414. lightning_sdk/lightning_cloud/openapi/models/v1_rolling_update_strategy.py +149 -0
  415. lightning_sdk/lightning_cloud/openapi/models/v1_rule_condition.py +29 -3
  416. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +11 -0
  417. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  418. lightning_sdk/lightning_cloud/openapi/models/v1_search_job_logs_response.py +149 -0
  419. lightning_sdk/lightning_cloud/openapi/models/v1_search_users_response.py +6 -6
  420. lightning_sdk/lightning_cloud/openapi/models/v1_secret.py +107 -3
  421. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningapp_cluster_driver.py → v1_secret_type.py} +10 -9
  422. lightning_sdk/lightning_cloud/openapi/models/v1_select.py +149 -0
  423. lightning_sdk/lightning_cloud/openapi/models/v1_server_check_in_response.py +97 -0
  424. lightning_sdk/lightning_cloud/openapi/models/{v1_update_cluster_response.py → v1_service_artifact.py} +54 -54
  425. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +383 -0
  426. lightning_sdk/lightning_cloud/openapi/models/v1_should_start_syncing_response.py +123 -0
  427. lightning_sdk/lightning_cloud/openapi/models/v1_signed_url.py +149 -0
  428. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +131 -1
  429. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +53 -1
  430. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +27 -1
  431. lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +253 -0
  432. lightning_sdk/lightning_cloud/openapi/models/v1_status_code_telemetry.py +123 -0
  433. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +253 -0
  434. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +105 -0
  435. lightning_sdk/lightning_cloud/openapi/models/v1_studio_job_app.py +1 -0
  436. lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +617 -0
  437. lightning_sdk/lightning_cloud/openapi/models/v1_telemetry.py +331 -0
  438. lightning_sdk/lightning_cloud/openapi/models/v1_timestamp_code_telemetry.py +123 -0
  439. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  440. lightning_sdk/lightning_cloud/openapi/models/v1_transfer_user_balance_request.py +27 -1
  441. lightning_sdk/lightning_cloud/openapi/models/v1_update_billing_subscription_request.py +53 -1
  442. lightning_sdk/lightning_cloud/openapi/models/v1_update_cluster_accelerators_request.py +149 -0
  443. lightning_sdk/lightning_cloud/openapi/models/v1_update_index_response.py +97 -0
  444. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
  445. lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +97 -0
  446. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  447. lightning_sdk/lightning_cloud/openapi/models/v1_update_snowflake_query_response.py +97 -0
  448. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +53 -1
  449. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_request.py +123 -0
  450. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_response.py +97 -0
  451. lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_parts_response.py +123 -0
  452. lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +149 -0
  453. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_cloud_space.py +97 -19
  454. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_job.py +227 -0
  455. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
  456. lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +107 -3
  457. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1030 -302
  458. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +45 -45
  459. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_flow_compute_config.py +29 -29
  460. lightning_sdk/lightning_cloud/openapi/models/v1_validate_assistant_status_response.py +149 -0
  461. lightning_sdk/lightning_cloud/openapi/models/v1_validate_auto_join_domain_response.py +97 -0
  462. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +107 -3
  463. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
  464. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
  465. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_request.py +175 -0
  466. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +123 -0
  467. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_model_response.py +123 -0
  468. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +175 -0
  469. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +125 -0
  470. lightning_sdk/lightning_cloud/openapi/models/validate.py +97 -19
  471. lightning_sdk/lightning_cloud/openapi/models/validateautojoindomain_domain_body.py +123 -0
  472. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body.py +123 -0
  473. lightning_sdk/lightning_cloud/openapi/models/versions_id_body.py +357 -0
  474. lightning_sdk/lightning_cloud/rest_client.py +49 -23
  475. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +1 -1
  476. lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
  477. lightning_sdk/lightning_cloud/utils/data_connection.py +145 -7
  478. lightning_sdk/machine.py +17 -4
  479. lightning_sdk/mmt/__init__.py +4 -0
  480. lightning_sdk/mmt/base.py +288 -0
  481. lightning_sdk/mmt/mmt.py +282 -0
  482. lightning_sdk/mmt/v1.py +185 -0
  483. lightning_sdk/mmt/v2.py +193 -0
  484. lightning_sdk/models.py +153 -0
  485. lightning_sdk/organization.py +1 -1
  486. lightning_sdk/plugin.py +207 -41
  487. lightning_sdk/services/__init__.py +5 -0
  488. lightning_sdk/services/file_endpoint.py +223 -0
  489. lightning_sdk/services/finetune/__init__.py +35 -0
  490. lightning_sdk/services/utilities.py +111 -0
  491. lightning_sdk/status.py +2 -1
  492. lightning_sdk/studio.py +90 -17
  493. lightning_sdk/teamspace.py +189 -11
  494. lightning_sdk/user.py +1 -1
  495. lightning_sdk/utils/__init__.py +0 -0
  496. lightning_sdk/utils/dynamic.py +61 -0
  497. lightning_sdk/utils/enum.py +116 -0
  498. lightning_sdk/{utils.py → utils/resolve.py} +41 -4
  499. lightning_sdk-0.1.46.dist-info/LICENSE +21 -0
  500. {lightning_sdk-0.1.2.dist-info → lightning_sdk-0.1.46.dist-info}/METADATA +30 -4
  501. lightning_sdk-0.1.46.dist-info/RECORD +858 -0
  502. {lightning_sdk-0.1.2.dist-info → lightning_sdk-0.1.46.dist-info}/WHEEL +1 -1
  503. lightning_sdk/lightning_cloud/openapi/models/app_id_releases_body.py +0 -541
  504. lightning_sdk/lightning_cloud/openapi/models/assistants_id_body.py +0 -487
  505. lightning_sdk/lightning_cloud/openapi/models/id_endpoint_body.py +0 -409
  506. lightning_sdk/lightning_cloud/openapi/models/id_get_body1.py +0 -333
  507. lightning_sdk/lightning_cloud/openapi/models/project_id_appsv2_body.py +0 -201
  508. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_driver_spec.py +0 -1039
  509. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_secondary_region_spec.py +0 -253
  510. lightning_sdk/lightning_cloud/openapi/models/v1_azure_cluster_driver_spec.py +0 -227
  511. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_driver.py +0 -175
  512. lightning_sdk/lightning_cloud/openapi/models/v1_container_resources.py +0 -201
  513. lightning_sdk/lightning_cloud/openapi/models/v1_eks_custer_driver_status.py +0 -387
  514. lightning_sdk/lightning_cloud/openapi/models/v1_instance_type.py +0 -305
  515. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_driver.py +0 -359
  516. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_status.py +0 -279
  517. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_release.py +0 -697
  518. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_v2.py +0 -331
  519. lightning_sdk-0.1.2.dist-info/RECORD +0 -550
  520. {lightning_sdk-0.1.2.dist-info → lightning_sdk-0.1.46.dist-info}/entry_points.txt +0 -0
  521. {lightning_sdk-0.1.2.dist-info → lightning_sdk-0.1.46.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1753 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ from __future__ import absolute_import
21
+
22
+ import re # noqa: F401
23
+ from typing import TYPE_CHECKING, Any
24
+
25
+ # python 2 and python 3 compatibility library
26
+ import six
27
+
28
+ from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
29
+
30
+ if TYPE_CHECKING:
31
+ from datetime import datetime
32
+ from lightning_sdk.lightning_cloud.openapi.models import *
33
+
34
+ class LitLoggerServiceApi(object):
35
+ """NOTE: This class is auto generated by the swagger code generator program.
36
+
37
+ Do not edit the class manually.
38
+ Ref: https://github.com/swagger-api/swagger-codegen
39
+ """
40
+
41
+ def __init__(self, api_client=None):
42
+ if api_client is None:
43
+ api_client = ApiClient()
44
+ self.api_client = api_client
45
+
46
+ def lit_logger_service_append_logger_metrics(self, body: 'LoggermetricsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1AppendLoggerMetricsResponse': # noqa: E501
47
+ """lit_logger_service_append_logger_metrics # 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.lit_logger_service_append_logger_metrics(body, project_id, id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param LoggermetricsIdBody body: (required)
56
+ :param str project_id: (required)
57
+ :param str id: (required)
58
+ :return: V1AppendLoggerMetricsResponse
59
+ If the method is called asynchronously,
60
+ returns the request thread.
61
+ """
62
+ kwargs['_return_http_data_only'] = True
63
+ if kwargs.get('async_req'):
64
+ return self.lit_logger_service_append_logger_metrics_with_http_info(body, project_id, id, **kwargs) # noqa: E501
65
+ else:
66
+ (data) = self.lit_logger_service_append_logger_metrics_with_http_info(body, project_id, id, **kwargs) # noqa: E501
67
+ return data
68
+
69
+ def lit_logger_service_append_logger_metrics_with_http_info(self, body: 'LoggermetricsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1AppendLoggerMetricsResponse': # noqa: E501
70
+ """lit_logger_service_append_logger_metrics # noqa: E501
71
+
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.lit_logger_service_append_logger_metrics_with_http_info(body, project_id, id, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool
78
+ :param LoggermetricsIdBody body: (required)
79
+ :param str project_id: (required)
80
+ :param str id: (required)
81
+ :return: V1AppendLoggerMetricsResponse
82
+ If the method is called asynchronously,
83
+ returns the request thread.
84
+ """
85
+
86
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
87
+ all_params.append('async_req')
88
+ all_params.append('_return_http_data_only')
89
+ all_params.append('_preload_content')
90
+ all_params.append('_request_timeout')
91
+
92
+ params = locals()
93
+ for key, val in six.iteritems(params['kwargs']):
94
+ if key not in all_params:
95
+ raise TypeError(
96
+ "Got an unexpected keyword argument '%s'"
97
+ " to method lit_logger_service_append_logger_metrics" % key
98
+ )
99
+ params[key] = val
100
+ del params['kwargs']
101
+ # verify the required parameter 'body' is set
102
+ if ('body' not in params or
103
+ params['body'] is None):
104
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_append_logger_metrics`") # noqa: E501
105
+ # verify the required parameter 'project_id' is set
106
+ if ('project_id' not in params or
107
+ params['project_id'] is None):
108
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_append_logger_metrics`") # noqa: E501
109
+ # verify the required parameter 'id' is set
110
+ if ('id' not in params or
111
+ params['id'] is None):
112
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_append_logger_metrics`") # noqa: E501
113
+
114
+ collection_formats = {}
115
+
116
+ path_params = {}
117
+ if 'project_id' in params:
118
+ path_params['projectId'] = params['project_id'] # noqa: E501
119
+ if 'id' in params:
120
+ path_params['id'] = params['id'] # noqa: E501
121
+
122
+ query_params = []
123
+
124
+ header_params = {}
125
+
126
+ form_params = []
127
+ local_var_files = {}
128
+
129
+ body_params = None
130
+ if 'body' in params:
131
+ body_params = params['body']
132
+ # HTTP header `Accept`
133
+ header_params['Accept'] = self.api_client.select_header_accept(
134
+ ['application/json']) # noqa: E501
135
+
136
+ # HTTP header `Content-Type`
137
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
138
+ ['application/json']) # noqa: E501
139
+
140
+ # Authentication setting
141
+ auth_settings = [] # noqa: E501
142
+
143
+ return self.api_client.call_api(
144
+ '/v1/projects/{projectId}/logger-metrics/{id}', 'PUT',
145
+ path_params,
146
+ query_params,
147
+ header_params,
148
+ body=body_params,
149
+ post_params=form_params,
150
+ files=local_var_files,
151
+ response_type='V1AppendLoggerMetricsResponse', # noqa: E501
152
+ auth_settings=auth_settings,
153
+ async_req=params.get('async_req'),
154
+ _return_http_data_only=params.get('_return_http_data_only'),
155
+ _preload_content=params.get('_preload_content', True),
156
+ _request_timeout=params.get('_request_timeout'),
157
+ collection_formats=collection_formats)
158
+
159
+ def lit_logger_service_count_metrics_streams(self, project_id: 'str', **kwargs) -> 'V1CountMetricsStreamsResponse': # noqa: E501
160
+ """Used to avoid fetching all the metrics in the UI when not needed # noqa: E501
161
+
162
+ This method makes a synchronous HTTP request by default. To make an
163
+ asynchronous HTTP request, please pass async_req=True
164
+ >>> thread = api.lit_logger_service_count_metrics_streams(project_id, async_req=True)
165
+ >>> result = thread.get()
166
+
167
+ :param async_req bool
168
+ :param str project_id: (required)
169
+ :param str user_id:
170
+ :param str cloud_space_id:
171
+ :param str app_id:
172
+ :return: V1CountMetricsStreamsResponse
173
+ If the method is called asynchronously,
174
+ returns the request thread.
175
+ """
176
+ kwargs['_return_http_data_only'] = True
177
+ if kwargs.get('async_req'):
178
+ return self.lit_logger_service_count_metrics_streams_with_http_info(project_id, **kwargs) # noqa: E501
179
+ else:
180
+ (data) = self.lit_logger_service_count_metrics_streams_with_http_info(project_id, **kwargs) # noqa: E501
181
+ return data
182
+
183
+ def lit_logger_service_count_metrics_streams_with_http_info(self, project_id: 'str', **kwargs) -> 'V1CountMetricsStreamsResponse': # noqa: E501
184
+ """Used to avoid fetching all the metrics in the UI when not needed # noqa: E501
185
+
186
+ This method makes a synchronous HTTP request by default. To make an
187
+ asynchronous HTTP request, please pass async_req=True
188
+ >>> thread = api.lit_logger_service_count_metrics_streams_with_http_info(project_id, async_req=True)
189
+ >>> result = thread.get()
190
+
191
+ :param async_req bool
192
+ :param str project_id: (required)
193
+ :param str user_id:
194
+ :param str cloud_space_id:
195
+ :param str app_id:
196
+ :return: V1CountMetricsStreamsResponse
197
+ If the method is called asynchronously,
198
+ returns the request thread.
199
+ """
200
+
201
+ all_params = ['project_id', 'user_id', 'cloud_space_id', 'app_id'] # noqa: E501
202
+ all_params.append('async_req')
203
+ all_params.append('_return_http_data_only')
204
+ all_params.append('_preload_content')
205
+ all_params.append('_request_timeout')
206
+
207
+ params = locals()
208
+ for key, val in six.iteritems(params['kwargs']):
209
+ if key not in all_params:
210
+ raise TypeError(
211
+ "Got an unexpected keyword argument '%s'"
212
+ " to method lit_logger_service_count_metrics_streams" % key
213
+ )
214
+ params[key] = val
215
+ del params['kwargs']
216
+ # verify the required parameter 'project_id' is set
217
+ if ('project_id' not in params or
218
+ params['project_id'] is None):
219
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_count_metrics_streams`") # noqa: E501
220
+
221
+ collection_formats = {}
222
+
223
+ path_params = {}
224
+ if 'project_id' in params:
225
+ path_params['projectId'] = params['project_id'] # noqa: E501
226
+
227
+ query_params = []
228
+ if 'user_id' in params:
229
+ query_params.append(('userId', params['user_id'])) # noqa: E501
230
+ if 'cloud_space_id' in params:
231
+ query_params.append(('cloudSpaceId', params['cloud_space_id'])) # noqa: E501
232
+ if 'app_id' in params:
233
+ query_params.append(('appId', params['app_id'])) # noqa: E501
234
+
235
+ header_params = {}
236
+
237
+ form_params = []
238
+ local_var_files = {}
239
+
240
+ body_params = None
241
+ # HTTP header `Accept`
242
+ header_params['Accept'] = self.api_client.select_header_accept(
243
+ ['application/json']) # noqa: E501
244
+
245
+ # Authentication setting
246
+ auth_settings = [] # noqa: E501
247
+
248
+ return self.api_client.call_api(
249
+ '/v1/projects/{projectId}/metrics-stream/count', 'GET',
250
+ path_params,
251
+ query_params,
252
+ header_params,
253
+ body=body_params,
254
+ post_params=form_params,
255
+ files=local_var_files,
256
+ response_type='V1CountMetricsStreamsResponse', # noqa: E501
257
+ auth_settings=auth_settings,
258
+ async_req=params.get('async_req'),
259
+ _return_http_data_only=params.get('_return_http_data_only'),
260
+ _preload_content=params.get('_preload_content', True),
261
+ _request_timeout=params.get('_request_timeout'),
262
+ collection_formats=collection_formats)
263
+
264
+ def lit_logger_service_create_logger_artifact(self, body: 'MetricsStreamIdLoggerartifactsBody', project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1LoggerArtifact': # noqa: E501
265
+ """Artifact tracking # noqa: E501
266
+
267
+ This method makes a synchronous HTTP request by default. To make an
268
+ asynchronous HTTP request, please pass async_req=True
269
+ >>> thread = api.lit_logger_service_create_logger_artifact(body, project_id, metrics_stream_id, async_req=True)
270
+ >>> result = thread.get()
271
+
272
+ :param async_req bool
273
+ :param MetricsStreamIdLoggerartifactsBody body: (required)
274
+ :param str project_id: (required)
275
+ :param str metrics_stream_id: (required)
276
+ :return: V1LoggerArtifact
277
+ If the method is called asynchronously,
278
+ returns the request thread.
279
+ """
280
+ kwargs['_return_http_data_only'] = True
281
+ if kwargs.get('async_req'):
282
+ return self.lit_logger_service_create_logger_artifact_with_http_info(body, project_id, metrics_stream_id, **kwargs) # noqa: E501
283
+ else:
284
+ (data) = self.lit_logger_service_create_logger_artifact_with_http_info(body, project_id, metrics_stream_id, **kwargs) # noqa: E501
285
+ return data
286
+
287
+ def lit_logger_service_create_logger_artifact_with_http_info(self, body: 'MetricsStreamIdLoggerartifactsBody', project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1LoggerArtifact': # noqa: E501
288
+ """Artifact tracking # noqa: E501
289
+
290
+ This method makes a synchronous HTTP request by default. To make an
291
+ asynchronous HTTP request, please pass async_req=True
292
+ >>> thread = api.lit_logger_service_create_logger_artifact_with_http_info(body, project_id, metrics_stream_id, async_req=True)
293
+ >>> result = thread.get()
294
+
295
+ :param async_req bool
296
+ :param MetricsStreamIdLoggerartifactsBody body: (required)
297
+ :param str project_id: (required)
298
+ :param str metrics_stream_id: (required)
299
+ :return: V1LoggerArtifact
300
+ If the method is called asynchronously,
301
+ returns the request thread.
302
+ """
303
+
304
+ all_params = ['body', 'project_id', 'metrics_stream_id'] # noqa: E501
305
+ all_params.append('async_req')
306
+ all_params.append('_return_http_data_only')
307
+ all_params.append('_preload_content')
308
+ all_params.append('_request_timeout')
309
+
310
+ params = locals()
311
+ for key, val in six.iteritems(params['kwargs']):
312
+ if key not in all_params:
313
+ raise TypeError(
314
+ "Got an unexpected keyword argument '%s'"
315
+ " to method lit_logger_service_create_logger_artifact" % key
316
+ )
317
+ params[key] = val
318
+ del params['kwargs']
319
+ # verify the required parameter 'body' is set
320
+ if ('body' not in params or
321
+ params['body'] is None):
322
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_create_logger_artifact`") # noqa: E501
323
+ # verify the required parameter 'project_id' is set
324
+ if ('project_id' not in params or
325
+ params['project_id'] is None):
326
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_create_logger_artifact`") # noqa: E501
327
+ # verify the required parameter 'metrics_stream_id' is set
328
+ if ('metrics_stream_id' not in params or
329
+ params['metrics_stream_id'] is None):
330
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_create_logger_artifact`") # noqa: E501
331
+
332
+ collection_formats = {}
333
+
334
+ path_params = {}
335
+ if 'project_id' in params:
336
+ path_params['projectId'] = params['project_id'] # noqa: E501
337
+ if 'metrics_stream_id' in params:
338
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
339
+
340
+ query_params = []
341
+
342
+ header_params = {}
343
+
344
+ form_params = []
345
+ local_var_files = {}
346
+
347
+ body_params = None
348
+ if 'body' in params:
349
+ body_params = params['body']
350
+ # HTTP header `Accept`
351
+ header_params['Accept'] = self.api_client.select_header_accept(
352
+ ['application/json']) # noqa: E501
353
+
354
+ # HTTP header `Content-Type`
355
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
356
+ ['application/json']) # noqa: E501
357
+
358
+ # Authentication setting
359
+ auth_settings = [] # noqa: E501
360
+
361
+ return self.api_client.call_api(
362
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/logger-artifacts', 'POST',
363
+ path_params,
364
+ query_params,
365
+ header_params,
366
+ body=body_params,
367
+ post_params=form_params,
368
+ files=local_var_files,
369
+ response_type='V1LoggerArtifact', # noqa: E501
370
+ auth_settings=auth_settings,
371
+ async_req=params.get('async_req'),
372
+ _return_http_data_only=params.get('_return_http_data_only'),
373
+ _preload_content=params.get('_preload_content', True),
374
+ _request_timeout=params.get('_request_timeout'),
375
+ collection_formats=collection_formats)
376
+
377
+ def lit_logger_service_create_metrics_stream(self, body: 'MetricsstreamCreateBody', project_id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
378
+ """lit_logger_service_create_metrics_stream # noqa: E501
379
+
380
+ This method makes a synchronous HTTP request by default. To make an
381
+ asynchronous HTTP request, please pass async_req=True
382
+ >>> thread = api.lit_logger_service_create_metrics_stream(body, project_id, async_req=True)
383
+ >>> result = thread.get()
384
+
385
+ :param async_req bool
386
+ :param MetricsstreamCreateBody body: (required)
387
+ :param str project_id: (required)
388
+ :return: V1MetricsStream
389
+ If the method is called asynchronously,
390
+ returns the request thread.
391
+ """
392
+ kwargs['_return_http_data_only'] = True
393
+ if kwargs.get('async_req'):
394
+ return self.lit_logger_service_create_metrics_stream_with_http_info(body, project_id, **kwargs) # noqa: E501
395
+ else:
396
+ (data) = self.lit_logger_service_create_metrics_stream_with_http_info(body, project_id, **kwargs) # noqa: E501
397
+ return data
398
+
399
+ def lit_logger_service_create_metrics_stream_with_http_info(self, body: 'MetricsstreamCreateBody', project_id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
400
+ """lit_logger_service_create_metrics_stream # noqa: E501
401
+
402
+ This method makes a synchronous HTTP request by default. To make an
403
+ asynchronous HTTP request, please pass async_req=True
404
+ >>> thread = api.lit_logger_service_create_metrics_stream_with_http_info(body, project_id, async_req=True)
405
+ >>> result = thread.get()
406
+
407
+ :param async_req bool
408
+ :param MetricsstreamCreateBody body: (required)
409
+ :param str project_id: (required)
410
+ :return: V1MetricsStream
411
+ If the method is called asynchronously,
412
+ returns the request thread.
413
+ """
414
+
415
+ all_params = ['body', 'project_id'] # noqa: E501
416
+ all_params.append('async_req')
417
+ all_params.append('_return_http_data_only')
418
+ all_params.append('_preload_content')
419
+ all_params.append('_request_timeout')
420
+
421
+ params = locals()
422
+ for key, val in six.iteritems(params['kwargs']):
423
+ if key not in all_params:
424
+ raise TypeError(
425
+ "Got an unexpected keyword argument '%s'"
426
+ " to method lit_logger_service_create_metrics_stream" % key
427
+ )
428
+ params[key] = val
429
+ del params['kwargs']
430
+ # verify the required parameter 'body' is set
431
+ if ('body' not in params or
432
+ params['body'] is None):
433
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_create_metrics_stream`") # noqa: E501
434
+ # verify the required parameter 'project_id' is set
435
+ if ('project_id' not in params or
436
+ params['project_id'] is None):
437
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_create_metrics_stream`") # noqa: E501
438
+
439
+ collection_formats = {}
440
+
441
+ path_params = {}
442
+ if 'project_id' in params:
443
+ path_params['projectId'] = params['project_id'] # noqa: E501
444
+
445
+ query_params = []
446
+
447
+ header_params = {}
448
+
449
+ form_params = []
450
+ local_var_files = {}
451
+
452
+ body_params = None
453
+ if 'body' in params:
454
+ body_params = params['body']
455
+ # HTTP header `Accept`
456
+ header_params['Accept'] = self.api_client.select_header_accept(
457
+ ['application/json']) # noqa: E501
458
+
459
+ # HTTP header `Content-Type`
460
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
461
+ ['application/json']) # noqa: E501
462
+
463
+ # Authentication setting
464
+ auth_settings = [] # noqa: E501
465
+
466
+ return self.api_client.call_api(
467
+ '/v1/projects/{projectId}/metrics-stream/create', 'POST',
468
+ path_params,
469
+ query_params,
470
+ header_params,
471
+ body=body_params,
472
+ post_params=form_params,
473
+ files=local_var_files,
474
+ response_type='V1MetricsStream', # noqa: E501
475
+ auth_settings=auth_settings,
476
+ async_req=params.get('async_req'),
477
+ _return_http_data_only=params.get('_return_http_data_only'),
478
+ _preload_content=params.get('_preload_content', True),
479
+ _request_timeout=params.get('_request_timeout'),
480
+ collection_formats=collection_formats)
481
+
482
+ def lit_logger_service_create_shared_metrics_stream(self, body: 'V1CreateSharedMetricsStreamRequest', **kwargs) -> 'V1CreateSharedMetricsStreamResponse': # noqa: E501
483
+ """lit_logger_service_create_shared_metrics_stream # noqa: E501
484
+
485
+ This method makes a synchronous HTTP request by default. To make an
486
+ asynchronous HTTP request, please pass async_req=True
487
+ >>> thread = api.lit_logger_service_create_shared_metrics_stream(body, async_req=True)
488
+ >>> result = thread.get()
489
+
490
+ :param async_req bool
491
+ :param V1CreateSharedMetricsStreamRequest body: (required)
492
+ :return: V1CreateSharedMetricsStreamResponse
493
+ If the method is called asynchronously,
494
+ returns the request thread.
495
+ """
496
+ kwargs['_return_http_data_only'] = True
497
+ if kwargs.get('async_req'):
498
+ return self.lit_logger_service_create_shared_metrics_stream_with_http_info(body, **kwargs) # noqa: E501
499
+ else:
500
+ (data) = self.lit_logger_service_create_shared_metrics_stream_with_http_info(body, **kwargs) # noqa: E501
501
+ return data
502
+
503
+ def lit_logger_service_create_shared_metrics_stream_with_http_info(self, body: 'V1CreateSharedMetricsStreamRequest', **kwargs) -> 'V1CreateSharedMetricsStreamResponse': # noqa: E501
504
+ """lit_logger_service_create_shared_metrics_stream # noqa: E501
505
+
506
+ This method makes a synchronous HTTP request by default. To make an
507
+ asynchronous HTTP request, please pass async_req=True
508
+ >>> thread = api.lit_logger_service_create_shared_metrics_stream_with_http_info(body, async_req=True)
509
+ >>> result = thread.get()
510
+
511
+ :param async_req bool
512
+ :param V1CreateSharedMetricsStreamRequest body: (required)
513
+ :return: V1CreateSharedMetricsStreamResponse
514
+ If the method is called asynchronously,
515
+ returns the request thread.
516
+ """
517
+
518
+ all_params = ['body'] # noqa: E501
519
+ all_params.append('async_req')
520
+ all_params.append('_return_http_data_only')
521
+ all_params.append('_preload_content')
522
+ all_params.append('_request_timeout')
523
+
524
+ params = locals()
525
+ for key, val in six.iteritems(params['kwargs']):
526
+ if key not in all_params:
527
+ raise TypeError(
528
+ "Got an unexpected keyword argument '%s'"
529
+ " to method lit_logger_service_create_shared_metrics_stream" % key
530
+ )
531
+ params[key] = val
532
+ del params['kwargs']
533
+ # verify the required parameter 'body' is set
534
+ if ('body' not in params or
535
+ params['body'] is None):
536
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_create_shared_metrics_stream`") # noqa: E501
537
+
538
+ collection_formats = {}
539
+
540
+ path_params = {}
541
+
542
+ query_params = []
543
+
544
+ header_params = {}
545
+
546
+ form_params = []
547
+ local_var_files = {}
548
+
549
+ body_params = None
550
+ if 'body' in params:
551
+ body_params = params['body']
552
+ # HTTP header `Accept`
553
+ header_params['Accept'] = self.api_client.select_header_accept(
554
+ ['application/json']) # noqa: E501
555
+
556
+ # HTTP header `Content-Type`
557
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
558
+ ['application/json']) # noqa: E501
559
+
560
+ # Authentication setting
561
+ auth_settings = [] # noqa: E501
562
+
563
+ return self.api_client.call_api(
564
+ '/v1/share/litlogger-metrics', 'POST',
565
+ path_params,
566
+ query_params,
567
+ header_params,
568
+ body=body_params,
569
+ post_params=form_params,
570
+ files=local_var_files,
571
+ response_type='V1CreateSharedMetricsStreamResponse', # noqa: E501
572
+ auth_settings=auth_settings,
573
+ async_req=params.get('async_req'),
574
+ _return_http_data_only=params.get('_return_http_data_only'),
575
+ _preload_content=params.get('_preload_content', True),
576
+ _request_timeout=params.get('_request_timeout'),
577
+ collection_formats=collection_formats)
578
+
579
+ def lit_logger_service_delete_logger_artifact(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLoggerArtifactResponse': # noqa: E501
580
+ """lit_logger_service_delete_logger_artifact # noqa: E501
581
+
582
+ This method makes a synchronous HTTP request by default. To make an
583
+ asynchronous HTTP request, please pass async_req=True
584
+ >>> thread = api.lit_logger_service_delete_logger_artifact(project_id, metrics_stream_id, id, async_req=True)
585
+ >>> result = thread.get()
586
+
587
+ :param async_req bool
588
+ :param str project_id: (required)
589
+ :param str metrics_stream_id: (required)
590
+ :param str id: (required)
591
+ :return: V1DeleteLoggerArtifactResponse
592
+ If the method is called asynchronously,
593
+ returns the request thread.
594
+ """
595
+ kwargs['_return_http_data_only'] = True
596
+ if kwargs.get('async_req'):
597
+ return self.lit_logger_service_delete_logger_artifact_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
598
+ else:
599
+ (data) = self.lit_logger_service_delete_logger_artifact_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
600
+ return data
601
+
602
+ def lit_logger_service_delete_logger_artifact_with_http_info(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLoggerArtifactResponse': # noqa: E501
603
+ """lit_logger_service_delete_logger_artifact # noqa: E501
604
+
605
+ This method makes a synchronous HTTP request by default. To make an
606
+ asynchronous HTTP request, please pass async_req=True
607
+ >>> thread = api.lit_logger_service_delete_logger_artifact_with_http_info(project_id, metrics_stream_id, id, async_req=True)
608
+ >>> result = thread.get()
609
+
610
+ :param async_req bool
611
+ :param str project_id: (required)
612
+ :param str metrics_stream_id: (required)
613
+ :param str id: (required)
614
+ :return: V1DeleteLoggerArtifactResponse
615
+ If the method is called asynchronously,
616
+ returns the request thread.
617
+ """
618
+
619
+ all_params = ['project_id', 'metrics_stream_id', 'id'] # noqa: E501
620
+ all_params.append('async_req')
621
+ all_params.append('_return_http_data_only')
622
+ all_params.append('_preload_content')
623
+ all_params.append('_request_timeout')
624
+
625
+ params = locals()
626
+ for key, val in six.iteritems(params['kwargs']):
627
+ if key not in all_params:
628
+ raise TypeError(
629
+ "Got an unexpected keyword argument '%s'"
630
+ " to method lit_logger_service_delete_logger_artifact" % key
631
+ )
632
+ params[key] = val
633
+ del params['kwargs']
634
+ # verify the required parameter 'project_id' is set
635
+ if ('project_id' not in params or
636
+ params['project_id'] is None):
637
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_delete_logger_artifact`") # noqa: E501
638
+ # verify the required parameter 'metrics_stream_id' is set
639
+ if ('metrics_stream_id' not in params or
640
+ params['metrics_stream_id'] is None):
641
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_delete_logger_artifact`") # noqa: E501
642
+ # verify the required parameter 'id' is set
643
+ if ('id' not in params or
644
+ params['id'] is None):
645
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_delete_logger_artifact`") # noqa: E501
646
+
647
+ collection_formats = {}
648
+
649
+ path_params = {}
650
+ if 'project_id' in params:
651
+ path_params['projectId'] = params['project_id'] # noqa: E501
652
+ if 'metrics_stream_id' in params:
653
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
654
+ if 'id' in params:
655
+ path_params['id'] = params['id'] # noqa: E501
656
+
657
+ query_params = []
658
+
659
+ header_params = {}
660
+
661
+ form_params = []
662
+ local_var_files = {}
663
+
664
+ body_params = None
665
+ # HTTP header `Accept`
666
+ header_params['Accept'] = self.api_client.select_header_accept(
667
+ ['application/json']) # noqa: E501
668
+
669
+ # Authentication setting
670
+ auth_settings = [] # noqa: E501
671
+
672
+ return self.api_client.call_api(
673
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/logger-artifacts/{id}', 'DELETE',
674
+ path_params,
675
+ query_params,
676
+ header_params,
677
+ body=body_params,
678
+ post_params=form_params,
679
+ files=local_var_files,
680
+ response_type='V1DeleteLoggerArtifactResponse', # noqa: E501
681
+ auth_settings=auth_settings,
682
+ async_req=params.get('async_req'),
683
+ _return_http_data_only=params.get('_return_http_data_only'),
684
+ _preload_content=params.get('_preload_content', True),
685
+ _request_timeout=params.get('_request_timeout'),
686
+ collection_formats=collection_formats)
687
+
688
+ def lit_logger_service_delete_metrics_stream(self, body: 'MetricsstreamDeleteBody', project_id: 'str', **kwargs) -> 'V1DeleteMetricsStreamResponse': # noqa: E501
689
+ """lit_logger_service_delete_metrics_stream # noqa: E501
690
+
691
+ This method makes a synchronous HTTP request by default. To make an
692
+ asynchronous HTTP request, please pass async_req=True
693
+ >>> thread = api.lit_logger_service_delete_metrics_stream(body, project_id, async_req=True)
694
+ >>> result = thread.get()
695
+
696
+ :param async_req bool
697
+ :param MetricsstreamDeleteBody body: (required)
698
+ :param str project_id: (required)
699
+ :return: V1DeleteMetricsStreamResponse
700
+ If the method is called asynchronously,
701
+ returns the request thread.
702
+ """
703
+ kwargs['_return_http_data_only'] = True
704
+ if kwargs.get('async_req'):
705
+ return self.lit_logger_service_delete_metrics_stream_with_http_info(body, project_id, **kwargs) # noqa: E501
706
+ else:
707
+ (data) = self.lit_logger_service_delete_metrics_stream_with_http_info(body, project_id, **kwargs) # noqa: E501
708
+ return data
709
+
710
+ def lit_logger_service_delete_metrics_stream_with_http_info(self, body: 'MetricsstreamDeleteBody', project_id: 'str', **kwargs) -> 'V1DeleteMetricsStreamResponse': # noqa: E501
711
+ """lit_logger_service_delete_metrics_stream # noqa: E501
712
+
713
+ This method makes a synchronous HTTP request by default. To make an
714
+ asynchronous HTTP request, please pass async_req=True
715
+ >>> thread = api.lit_logger_service_delete_metrics_stream_with_http_info(body, project_id, async_req=True)
716
+ >>> result = thread.get()
717
+
718
+ :param async_req bool
719
+ :param MetricsstreamDeleteBody body: (required)
720
+ :param str project_id: (required)
721
+ :return: V1DeleteMetricsStreamResponse
722
+ If the method is called asynchronously,
723
+ returns the request thread.
724
+ """
725
+
726
+ all_params = ['body', 'project_id'] # noqa: E501
727
+ all_params.append('async_req')
728
+ all_params.append('_return_http_data_only')
729
+ all_params.append('_preload_content')
730
+ all_params.append('_request_timeout')
731
+
732
+ params = locals()
733
+ for key, val in six.iteritems(params['kwargs']):
734
+ if key not in all_params:
735
+ raise TypeError(
736
+ "Got an unexpected keyword argument '%s'"
737
+ " to method lit_logger_service_delete_metrics_stream" % key
738
+ )
739
+ params[key] = val
740
+ del params['kwargs']
741
+ # verify the required parameter 'body' is set
742
+ if ('body' not in params or
743
+ params['body'] is None):
744
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_delete_metrics_stream`") # noqa: E501
745
+ # verify the required parameter 'project_id' is set
746
+ if ('project_id' not in params or
747
+ params['project_id'] is None):
748
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_delete_metrics_stream`") # noqa: E501
749
+
750
+ collection_formats = {}
751
+
752
+ path_params = {}
753
+ if 'project_id' in params:
754
+ path_params['projectId'] = params['project_id'] # noqa: E501
755
+
756
+ query_params = []
757
+
758
+ header_params = {}
759
+
760
+ form_params = []
761
+ local_var_files = {}
762
+
763
+ body_params = None
764
+ if 'body' in params:
765
+ body_params = params['body']
766
+ # HTTP header `Accept`
767
+ header_params['Accept'] = self.api_client.select_header_accept(
768
+ ['application/json']) # noqa: E501
769
+
770
+ # HTTP header `Content-Type`
771
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
772
+ ['application/json']) # noqa: E501
773
+
774
+ # Authentication setting
775
+ auth_settings = [] # noqa: E501
776
+
777
+ return self.api_client.call_api(
778
+ '/v1/projects/{projectId}/metrics-stream/delete', 'POST',
779
+ path_params,
780
+ query_params,
781
+ header_params,
782
+ body=body_params,
783
+ post_params=form_params,
784
+ files=local_var_files,
785
+ response_type='V1DeleteMetricsStreamResponse', # noqa: E501
786
+ auth_settings=auth_settings,
787
+ async_req=params.get('async_req'),
788
+ _return_http_data_only=params.get('_return_http_data_only'),
789
+ _preload_content=params.get('_preload_content', True),
790
+ _request_timeout=params.get('_request_timeout'),
791
+ collection_formats=collection_formats)
792
+
793
+ def lit_logger_service_delete_shared_metrics_stream(self, id: 'str', **kwargs) -> 'V1DeleteSharedMetricsStreamResponse': # noqa: E501
794
+ """lit_logger_service_delete_shared_metrics_stream # noqa: E501
795
+
796
+ This method makes a synchronous HTTP request by default. To make an
797
+ asynchronous HTTP request, please pass async_req=True
798
+ >>> thread = api.lit_logger_service_delete_shared_metrics_stream(id, async_req=True)
799
+ >>> result = thread.get()
800
+
801
+ :param async_req bool
802
+ :param str id: (required)
803
+ :return: V1DeleteSharedMetricsStreamResponse
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.lit_logger_service_delete_shared_metrics_stream_with_http_info(id, **kwargs) # noqa: E501
810
+ else:
811
+ (data) = self.lit_logger_service_delete_shared_metrics_stream_with_http_info(id, **kwargs) # noqa: E501
812
+ return data
813
+
814
+ def lit_logger_service_delete_shared_metrics_stream_with_http_info(self, id: 'str', **kwargs) -> 'V1DeleteSharedMetricsStreamResponse': # noqa: E501
815
+ """lit_logger_service_delete_shared_metrics_stream # 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.lit_logger_service_delete_shared_metrics_stream_with_http_info(id, async_req=True)
820
+ >>> result = thread.get()
821
+
822
+ :param async_req bool
823
+ :param str id: (required)
824
+ :return: V1DeleteSharedMetricsStreamResponse
825
+ If the method is called asynchronously,
826
+ returns the request thread.
827
+ """
828
+
829
+ all_params = ['id'] # noqa: E501
830
+ all_params.append('async_req')
831
+ all_params.append('_return_http_data_only')
832
+ all_params.append('_preload_content')
833
+ all_params.append('_request_timeout')
834
+
835
+ params = locals()
836
+ for key, val in six.iteritems(params['kwargs']):
837
+ if key not in all_params:
838
+ raise TypeError(
839
+ "Got an unexpected keyword argument '%s'"
840
+ " to method lit_logger_service_delete_shared_metrics_stream" % key
841
+ )
842
+ params[key] = val
843
+ del params['kwargs']
844
+ # verify the required parameter 'id' is set
845
+ if ('id' not in params or
846
+ params['id'] is None):
847
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_delete_shared_metrics_stream`") # noqa: E501
848
+
849
+ collection_formats = {}
850
+
851
+ path_params = {}
852
+ if 'id' in params:
853
+ path_params['id'] = params['id'] # noqa: E501
854
+
855
+ query_params = []
856
+
857
+ header_params = {}
858
+
859
+ form_params = []
860
+ local_var_files = {}
861
+
862
+ body_params = None
863
+ # HTTP header `Accept`
864
+ header_params['Accept'] = self.api_client.select_header_accept(
865
+ ['application/json']) # noqa: E501
866
+
867
+ # Authentication setting
868
+ auth_settings = [] # noqa: E501
869
+
870
+ return self.api_client.call_api(
871
+ '/v1/share/litlogger-metrics/{id}', 'DELETE',
872
+ path_params,
873
+ query_params,
874
+ header_params,
875
+ body=body_params,
876
+ post_params=form_params,
877
+ files=local_var_files,
878
+ response_type='V1DeleteSharedMetricsStreamResponse', # noqa: E501
879
+ auth_settings=auth_settings,
880
+ async_req=params.get('async_req'),
881
+ _return_http_data_only=params.get('_return_http_data_only'),
882
+ _preload_content=params.get('_preload_content', True),
883
+ _request_timeout=params.get('_request_timeout'),
884
+ collection_formats=collection_formats)
885
+
886
+ def lit_logger_service_get_logger_metrics(self, project_id: 'str', **kwargs) -> 'V1GetLoggerMetricsResponse': # noqa: E501
887
+ """lit_logger_service_get_logger_metrics # noqa: E501
888
+
889
+ This method makes a synchronous HTTP request by default. To make an
890
+ asynchronous HTTP request, please pass async_req=True
891
+ >>> thread = api.lit_logger_service_get_logger_metrics(project_id, async_req=True)
892
+ >>> result = thread.get()
893
+
894
+ :param async_req bool
895
+ :param str project_id: (required)
896
+ :param list[str] user_ids:
897
+ :param list[str] cloudspace_ids:
898
+ :param list[str] app_ids:
899
+ :param list[str] ids:
900
+ :param list[str] names:
901
+ :param datetime start:
902
+ :param datetime end:
903
+ :return: V1GetLoggerMetricsResponse
904
+ If the method is called asynchronously,
905
+ returns the request thread.
906
+ """
907
+ kwargs['_return_http_data_only'] = True
908
+ if kwargs.get('async_req'):
909
+ return self.lit_logger_service_get_logger_metrics_with_http_info(project_id, **kwargs) # noqa: E501
910
+ else:
911
+ (data) = self.lit_logger_service_get_logger_metrics_with_http_info(project_id, **kwargs) # noqa: E501
912
+ return data
913
+
914
+ def lit_logger_service_get_logger_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetLoggerMetricsResponse': # noqa: E501
915
+ """lit_logger_service_get_logger_metrics # noqa: E501
916
+
917
+ This method makes a synchronous HTTP request by default. To make an
918
+ asynchronous HTTP request, please pass async_req=True
919
+ >>> thread = api.lit_logger_service_get_logger_metrics_with_http_info(project_id, async_req=True)
920
+ >>> result = thread.get()
921
+
922
+ :param async_req bool
923
+ :param str project_id: (required)
924
+ :param list[str] user_ids:
925
+ :param list[str] cloudspace_ids:
926
+ :param list[str] app_ids:
927
+ :param list[str] ids:
928
+ :param list[str] names:
929
+ :param datetime start:
930
+ :param datetime end:
931
+ :return: V1GetLoggerMetricsResponse
932
+ If the method is called asynchronously,
933
+ returns the request thread.
934
+ """
935
+
936
+ all_params = ['project_id', 'user_ids', 'cloudspace_ids', 'app_ids', 'ids', 'names', 'start', 'end'] # noqa: E501
937
+ all_params.append('async_req')
938
+ all_params.append('_return_http_data_only')
939
+ all_params.append('_preload_content')
940
+ all_params.append('_request_timeout')
941
+
942
+ params = locals()
943
+ for key, val in six.iteritems(params['kwargs']):
944
+ if key not in all_params:
945
+ raise TypeError(
946
+ "Got an unexpected keyword argument '%s'"
947
+ " to method lit_logger_service_get_logger_metrics" % key
948
+ )
949
+ params[key] = val
950
+ del params['kwargs']
951
+ # verify the required parameter 'project_id' is set
952
+ if ('project_id' not in params or
953
+ params['project_id'] is None):
954
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_get_logger_metrics`") # noqa: E501
955
+
956
+ collection_formats = {}
957
+
958
+ path_params = {}
959
+ if 'project_id' in params:
960
+ path_params['projectId'] = params['project_id'] # noqa: E501
961
+
962
+ query_params = []
963
+ if 'user_ids' in params:
964
+ query_params.append(('userIds', params['user_ids'])) # noqa: E501
965
+ collection_formats['userIds'] = 'multi' # noqa: E501
966
+ if 'cloudspace_ids' in params:
967
+ query_params.append(('cloudspaceIds', params['cloudspace_ids'])) # noqa: E501
968
+ collection_formats['cloudspaceIds'] = 'multi' # noqa: E501
969
+ if 'app_ids' in params:
970
+ query_params.append(('appIds', params['app_ids'])) # noqa: E501
971
+ collection_formats['appIds'] = 'multi' # noqa: E501
972
+ if 'ids' in params:
973
+ query_params.append(('ids', params['ids'])) # noqa: E501
974
+ collection_formats['ids'] = 'multi' # noqa: E501
975
+ if 'names' in params:
976
+ query_params.append(('names', params['names'])) # noqa: E501
977
+ collection_formats['names'] = 'multi' # noqa: E501
978
+ if 'start' in params:
979
+ query_params.append(('start', params['start'])) # noqa: E501
980
+ if 'end' in params:
981
+ query_params.append(('end', params['end'])) # noqa: E501
982
+
983
+ header_params = {}
984
+
985
+ form_params = []
986
+ local_var_files = {}
987
+
988
+ body_params = None
989
+ # HTTP header `Accept`
990
+ header_params['Accept'] = self.api_client.select_header_accept(
991
+ ['application/json']) # noqa: E501
992
+
993
+ # Authentication setting
994
+ auth_settings = [] # noqa: E501
995
+
996
+ return self.api_client.call_api(
997
+ '/v1/projects/{projectId}/logger-metrics', 'GET',
998
+ path_params,
999
+ query_params,
1000
+ header_params,
1001
+ body=body_params,
1002
+ post_params=form_params,
1003
+ files=local_var_files,
1004
+ response_type='V1GetLoggerMetricsResponse', # noqa: E501
1005
+ auth_settings=auth_settings,
1006
+ async_req=params.get('async_req'),
1007
+ _return_http_data_only=params.get('_return_http_data_only'),
1008
+ _preload_content=params.get('_preload_content', True),
1009
+ _request_timeout=params.get('_request_timeout'),
1010
+ collection_formats=collection_formats)
1011
+
1012
+ def lit_logger_service_get_metrics_stream(self, **kwargs) -> 'V1MetricsStream': # noqa: E501
1013
+ """lit_logger_service_get_metrics_stream # noqa: E501
1014
+
1015
+ This method makes a synchronous HTTP request by default. To make an
1016
+ asynchronous HTTP request, please pass async_req=True
1017
+ >>> thread = api.lit_logger_service_get_metrics_stream(async_req=True)
1018
+ >>> result = thread.get()
1019
+
1020
+ :param async_req bool
1021
+ :param str project_name:
1022
+ :param str project_owner_name:
1023
+ :param str name:
1024
+ :param str id:
1025
+ :param int version_number:
1026
+ :return: V1MetricsStream
1027
+ If the method is called asynchronously,
1028
+ returns the request thread.
1029
+ """
1030
+ kwargs['_return_http_data_only'] = True
1031
+ if kwargs.get('async_req'):
1032
+ return self.lit_logger_service_get_metrics_stream_with_http_info(**kwargs) # noqa: E501
1033
+ else:
1034
+ (data) = self.lit_logger_service_get_metrics_stream_with_http_info(**kwargs) # noqa: E501
1035
+ return data
1036
+
1037
+ def lit_logger_service_get_metrics_stream_with_http_info(self, **kwargs) -> 'V1MetricsStream': # noqa: E501
1038
+ """lit_logger_service_get_metrics_stream # noqa: E501
1039
+
1040
+ This method makes a synchronous HTTP request by default. To make an
1041
+ asynchronous HTTP request, please pass async_req=True
1042
+ >>> thread = api.lit_logger_service_get_metrics_stream_with_http_info(async_req=True)
1043
+ >>> result = thread.get()
1044
+
1045
+ :param async_req bool
1046
+ :param str project_name:
1047
+ :param str project_owner_name:
1048
+ :param str name:
1049
+ :param str id:
1050
+ :param int version_number:
1051
+ :return: V1MetricsStream
1052
+ If the method is called asynchronously,
1053
+ returns the request thread.
1054
+ """
1055
+
1056
+ all_params = ['project_name', 'project_owner_name', 'name', 'id', 'version_number'] # noqa: E501
1057
+ all_params.append('async_req')
1058
+ all_params.append('_return_http_data_only')
1059
+ all_params.append('_preload_content')
1060
+ all_params.append('_request_timeout')
1061
+
1062
+ params = locals()
1063
+ for key, val in six.iteritems(params['kwargs']):
1064
+ if key not in all_params:
1065
+ raise TypeError(
1066
+ "Got an unexpected keyword argument '%s'"
1067
+ " to method lit_logger_service_get_metrics_stream" % key
1068
+ )
1069
+ params[key] = val
1070
+ del params['kwargs']
1071
+
1072
+ collection_formats = {}
1073
+
1074
+ path_params = {}
1075
+
1076
+ query_params = []
1077
+ if 'project_name' in params:
1078
+ query_params.append(('projectName', params['project_name'])) # noqa: E501
1079
+ if 'project_owner_name' in params:
1080
+ query_params.append(('projectOwnerName', params['project_owner_name'])) # noqa: E501
1081
+ if 'name' in params:
1082
+ query_params.append(('name', params['name'])) # noqa: E501
1083
+ if 'id' in params:
1084
+ query_params.append(('id', params['id'])) # noqa: E501
1085
+ if 'version_number' in params:
1086
+ query_params.append(('versionNumber', params['version_number'])) # noqa: E501
1087
+
1088
+ header_params = {}
1089
+
1090
+ form_params = []
1091
+ local_var_files = {}
1092
+
1093
+ body_params = None
1094
+ # HTTP header `Accept`
1095
+ header_params['Accept'] = self.api_client.select_header_accept(
1096
+ ['application/json']) # noqa: E501
1097
+
1098
+ # Authentication setting
1099
+ auth_settings = [] # noqa: E501
1100
+
1101
+ return self.api_client.call_api(
1102
+ '/v1/metrics-streams', 'GET',
1103
+ path_params,
1104
+ query_params,
1105
+ header_params,
1106
+ body=body_params,
1107
+ post_params=form_params,
1108
+ files=local_var_files,
1109
+ response_type='V1MetricsStream', # noqa: E501
1110
+ auth_settings=auth_settings,
1111
+ async_req=params.get('async_req'),
1112
+ _return_http_data_only=params.get('_return_http_data_only'),
1113
+ _preload_content=params.get('_preload_content', True),
1114
+ _request_timeout=params.get('_request_timeout'),
1115
+ collection_formats=collection_formats)
1116
+
1117
+ def lit_logger_service_get_shared_metrics_stream(self, id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
1118
+ """lit_logger_service_get_shared_metrics_stream # noqa: E501
1119
+
1120
+ This method makes a synchronous HTTP request by default. To make an
1121
+ asynchronous HTTP request, please pass async_req=True
1122
+ >>> thread = api.lit_logger_service_get_shared_metrics_stream(id, async_req=True)
1123
+ >>> result = thread.get()
1124
+
1125
+ :param async_req bool
1126
+ :param str id: (required)
1127
+ :param str org_id:
1128
+ :param str user_id:
1129
+ :return: V1MetricsStream
1130
+ If the method is called asynchronously,
1131
+ returns the request thread.
1132
+ """
1133
+ kwargs['_return_http_data_only'] = True
1134
+ if kwargs.get('async_req'):
1135
+ return self.lit_logger_service_get_shared_metrics_stream_with_http_info(id, **kwargs) # noqa: E501
1136
+ else:
1137
+ (data) = self.lit_logger_service_get_shared_metrics_stream_with_http_info(id, **kwargs) # noqa: E501
1138
+ return data
1139
+
1140
+ def lit_logger_service_get_shared_metrics_stream_with_http_info(self, id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
1141
+ """lit_logger_service_get_shared_metrics_stream # noqa: E501
1142
+
1143
+ This method makes a synchronous HTTP request by default. To make an
1144
+ asynchronous HTTP request, please pass async_req=True
1145
+ >>> thread = api.lit_logger_service_get_shared_metrics_stream_with_http_info(id, async_req=True)
1146
+ >>> result = thread.get()
1147
+
1148
+ :param async_req bool
1149
+ :param str id: (required)
1150
+ :param str org_id:
1151
+ :param str user_id:
1152
+ :return: V1MetricsStream
1153
+ If the method is called asynchronously,
1154
+ returns the request thread.
1155
+ """
1156
+
1157
+ all_params = ['id', 'org_id', 'user_id'] # noqa: E501
1158
+ all_params.append('async_req')
1159
+ all_params.append('_return_http_data_only')
1160
+ all_params.append('_preload_content')
1161
+ all_params.append('_request_timeout')
1162
+
1163
+ params = locals()
1164
+ for key, val in six.iteritems(params['kwargs']):
1165
+ if key not in all_params:
1166
+ raise TypeError(
1167
+ "Got an unexpected keyword argument '%s'"
1168
+ " to method lit_logger_service_get_shared_metrics_stream" % key
1169
+ )
1170
+ params[key] = val
1171
+ del params['kwargs']
1172
+ # verify the required parameter 'id' is set
1173
+ if ('id' not in params or
1174
+ params['id'] is None):
1175
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_get_shared_metrics_stream`") # noqa: E501
1176
+
1177
+ collection_formats = {}
1178
+
1179
+ path_params = {}
1180
+ if 'id' in params:
1181
+ path_params['id'] = params['id'] # noqa: E501
1182
+
1183
+ query_params = []
1184
+ if 'org_id' in params:
1185
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1186
+ if 'user_id' in params:
1187
+ query_params.append(('userId', params['user_id'])) # noqa: E501
1188
+
1189
+ header_params = {}
1190
+
1191
+ form_params = []
1192
+ local_var_files = {}
1193
+
1194
+ body_params = None
1195
+ # HTTP header `Accept`
1196
+ header_params['Accept'] = self.api_client.select_header_accept(
1197
+ ['application/json']) # noqa: E501
1198
+
1199
+ # Authentication setting
1200
+ auth_settings = [] # noqa: E501
1201
+
1202
+ return self.api_client.call_api(
1203
+ '/v1/share/litlogger-metrics/{id}', 'GET',
1204
+ path_params,
1205
+ query_params,
1206
+ header_params,
1207
+ body=body_params,
1208
+ post_params=form_params,
1209
+ files=local_var_files,
1210
+ response_type='V1MetricsStream', # noqa: E501
1211
+ auth_settings=auth_settings,
1212
+ async_req=params.get('async_req'),
1213
+ _return_http_data_only=params.get('_return_http_data_only'),
1214
+ _preload_content=params.get('_preload_content', True),
1215
+ _request_timeout=params.get('_request_timeout'),
1216
+ collection_formats=collection_formats)
1217
+
1218
+ def lit_logger_service_list_logger_artifacts(self, project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1ListLoggerArtifactResponse': # noqa: E501
1219
+ """lit_logger_service_list_logger_artifacts # noqa: E501
1220
+
1221
+ This method makes a synchronous HTTP request by default. To make an
1222
+ asynchronous HTTP request, please pass async_req=True
1223
+ >>> thread = api.lit_logger_service_list_logger_artifacts(project_id, metrics_stream_id, async_req=True)
1224
+ >>> result = thread.get()
1225
+
1226
+ :param async_req bool
1227
+ :param str project_id: (required)
1228
+ :param str metrics_stream_id: (required)
1229
+ :return: V1ListLoggerArtifactResponse
1230
+ If the method is called asynchronously,
1231
+ returns the request thread.
1232
+ """
1233
+ kwargs['_return_http_data_only'] = True
1234
+ if kwargs.get('async_req'):
1235
+ return self.lit_logger_service_list_logger_artifacts_with_http_info(project_id, metrics_stream_id, **kwargs) # noqa: E501
1236
+ else:
1237
+ (data) = self.lit_logger_service_list_logger_artifacts_with_http_info(project_id, metrics_stream_id, **kwargs) # noqa: E501
1238
+ return data
1239
+
1240
+ def lit_logger_service_list_logger_artifacts_with_http_info(self, project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1ListLoggerArtifactResponse': # noqa: E501
1241
+ """lit_logger_service_list_logger_artifacts # noqa: E501
1242
+
1243
+ This method makes a synchronous HTTP request by default. To make an
1244
+ asynchronous HTTP request, please pass async_req=True
1245
+ >>> thread = api.lit_logger_service_list_logger_artifacts_with_http_info(project_id, metrics_stream_id, async_req=True)
1246
+ >>> result = thread.get()
1247
+
1248
+ :param async_req bool
1249
+ :param str project_id: (required)
1250
+ :param str metrics_stream_id: (required)
1251
+ :return: V1ListLoggerArtifactResponse
1252
+ If the method is called asynchronously,
1253
+ returns the request thread.
1254
+ """
1255
+
1256
+ all_params = ['project_id', 'metrics_stream_id'] # noqa: E501
1257
+ all_params.append('async_req')
1258
+ all_params.append('_return_http_data_only')
1259
+ all_params.append('_preload_content')
1260
+ all_params.append('_request_timeout')
1261
+
1262
+ params = locals()
1263
+ for key, val in six.iteritems(params['kwargs']):
1264
+ if key not in all_params:
1265
+ raise TypeError(
1266
+ "Got an unexpected keyword argument '%s'"
1267
+ " to method lit_logger_service_list_logger_artifacts" % key
1268
+ )
1269
+ params[key] = val
1270
+ del params['kwargs']
1271
+ # verify the required parameter 'project_id' is set
1272
+ if ('project_id' not in params or
1273
+ params['project_id'] is None):
1274
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_list_logger_artifacts`") # noqa: E501
1275
+ # verify the required parameter 'metrics_stream_id' is set
1276
+ if ('metrics_stream_id' not in params or
1277
+ params['metrics_stream_id'] is None):
1278
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_list_logger_artifacts`") # noqa: E501
1279
+
1280
+ collection_formats = {}
1281
+
1282
+ path_params = {}
1283
+ if 'project_id' in params:
1284
+ path_params['projectId'] = params['project_id'] # noqa: E501
1285
+ if 'metrics_stream_id' in params:
1286
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
1287
+
1288
+ query_params = []
1289
+
1290
+ header_params = {}
1291
+
1292
+ form_params = []
1293
+ local_var_files = {}
1294
+
1295
+ body_params = None
1296
+ # HTTP header `Accept`
1297
+ header_params['Accept'] = self.api_client.select_header_accept(
1298
+ ['application/json']) # noqa: E501
1299
+
1300
+ # Authentication setting
1301
+ auth_settings = [] # noqa: E501
1302
+
1303
+ return self.api_client.call_api(
1304
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/logger-artifacts', 'GET',
1305
+ path_params,
1306
+ query_params,
1307
+ header_params,
1308
+ body=body_params,
1309
+ post_params=form_params,
1310
+ files=local_var_files,
1311
+ response_type='V1ListLoggerArtifactResponse', # noqa: E501
1312
+ auth_settings=auth_settings,
1313
+ async_req=params.get('async_req'),
1314
+ _return_http_data_only=params.get('_return_http_data_only'),
1315
+ _preload_content=params.get('_preload_content', True),
1316
+ _request_timeout=params.get('_request_timeout'),
1317
+ collection_formats=collection_formats)
1318
+
1319
+ def lit_logger_service_list_metrics_streams(self, project_id: 'str', **kwargs) -> 'V1ListMetricsStreamsResponse': # noqa: E501
1320
+ """lit_logger_service_list_metrics_streams # noqa: E501
1321
+
1322
+ This method makes a synchronous HTTP request by default. To make an
1323
+ asynchronous HTTP request, please pass async_req=True
1324
+ >>> thread = api.lit_logger_service_list_metrics_streams(project_id, async_req=True)
1325
+ >>> result = thread.get()
1326
+
1327
+ :param async_req bool
1328
+ :param str project_id: (required)
1329
+ :param str user_id:
1330
+ :param str cloud_space_id:
1331
+ :param str app_id:
1332
+ :return: V1ListMetricsStreamsResponse
1333
+ If the method is called asynchronously,
1334
+ returns the request thread.
1335
+ """
1336
+ kwargs['_return_http_data_only'] = True
1337
+ if kwargs.get('async_req'):
1338
+ return self.lit_logger_service_list_metrics_streams_with_http_info(project_id, **kwargs) # noqa: E501
1339
+ else:
1340
+ (data) = self.lit_logger_service_list_metrics_streams_with_http_info(project_id, **kwargs) # noqa: E501
1341
+ return data
1342
+
1343
+ def lit_logger_service_list_metrics_streams_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListMetricsStreamsResponse': # noqa: E501
1344
+ """lit_logger_service_list_metrics_streams # noqa: E501
1345
+
1346
+ This method makes a synchronous HTTP request by default. To make an
1347
+ asynchronous HTTP request, please pass async_req=True
1348
+ >>> thread = api.lit_logger_service_list_metrics_streams_with_http_info(project_id, async_req=True)
1349
+ >>> result = thread.get()
1350
+
1351
+ :param async_req bool
1352
+ :param str project_id: (required)
1353
+ :param str user_id:
1354
+ :param str cloud_space_id:
1355
+ :param str app_id:
1356
+ :return: V1ListMetricsStreamsResponse
1357
+ If the method is called asynchronously,
1358
+ returns the request thread.
1359
+ """
1360
+
1361
+ all_params = ['project_id', 'user_id', 'cloud_space_id', 'app_id'] # noqa: E501
1362
+ all_params.append('async_req')
1363
+ all_params.append('_return_http_data_only')
1364
+ all_params.append('_preload_content')
1365
+ all_params.append('_request_timeout')
1366
+
1367
+ params = locals()
1368
+ for key, val in six.iteritems(params['kwargs']):
1369
+ if key not in all_params:
1370
+ raise TypeError(
1371
+ "Got an unexpected keyword argument '%s'"
1372
+ " to method lit_logger_service_list_metrics_streams" % key
1373
+ )
1374
+ params[key] = val
1375
+ del params['kwargs']
1376
+ # verify the required parameter 'project_id' is set
1377
+ if ('project_id' not in params or
1378
+ params['project_id'] is None):
1379
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_list_metrics_streams`") # noqa: E501
1380
+
1381
+ collection_formats = {}
1382
+
1383
+ path_params = {}
1384
+ if 'project_id' in params:
1385
+ path_params['projectId'] = params['project_id'] # noqa: E501
1386
+
1387
+ query_params = []
1388
+ if 'user_id' in params:
1389
+ query_params.append(('userId', params['user_id'])) # noqa: E501
1390
+ if 'cloud_space_id' in params:
1391
+ query_params.append(('cloudSpaceId', params['cloud_space_id'])) # noqa: E501
1392
+ if 'app_id' in params:
1393
+ query_params.append(('appId', params['app_id'])) # noqa: E501
1394
+
1395
+ header_params = {}
1396
+
1397
+ form_params = []
1398
+ local_var_files = {}
1399
+
1400
+ body_params = None
1401
+ # HTTP header `Accept`
1402
+ header_params['Accept'] = self.api_client.select_header_accept(
1403
+ ['application/json']) # noqa: E501
1404
+
1405
+ # Authentication setting
1406
+ auth_settings = [] # noqa: E501
1407
+
1408
+ return self.api_client.call_api(
1409
+ '/v1/projects/{projectId}/metrics-stream/list', 'GET',
1410
+ path_params,
1411
+ query_params,
1412
+ header_params,
1413
+ body=body_params,
1414
+ post_params=form_params,
1415
+ files=local_var_files,
1416
+ response_type='V1ListMetricsStreamsResponse', # noqa: E501
1417
+ auth_settings=auth_settings,
1418
+ async_req=params.get('async_req'),
1419
+ _return_http_data_only=params.get('_return_http_data_only'),
1420
+ _preload_content=params.get('_preload_content', True),
1421
+ _request_timeout=params.get('_request_timeout'),
1422
+ collection_formats=collection_formats)
1423
+
1424
+ def lit_logger_service_update_metrics_stream(self, body: 'MetricsstreamIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
1425
+ """lit_logger_service_update_metrics_stream # noqa: E501
1426
+
1427
+ This method makes a synchronous HTTP request by default. To make an
1428
+ asynchronous HTTP request, please pass async_req=True
1429
+ >>> thread = api.lit_logger_service_update_metrics_stream(body, project_id, id, async_req=True)
1430
+ >>> result = thread.get()
1431
+
1432
+ :param async_req bool
1433
+ :param MetricsstreamIdBody body: (required)
1434
+ :param str project_id: (required)
1435
+ :param str id: (required)
1436
+ :return: V1MetricsStream
1437
+ If the method is called asynchronously,
1438
+ returns the request thread.
1439
+ """
1440
+ kwargs['_return_http_data_only'] = True
1441
+ if kwargs.get('async_req'):
1442
+ return self.lit_logger_service_update_metrics_stream_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1443
+ else:
1444
+ (data) = self.lit_logger_service_update_metrics_stream_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1445
+ return data
1446
+
1447
+ def lit_logger_service_update_metrics_stream_with_http_info(self, body: 'MetricsstreamIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
1448
+ """lit_logger_service_update_metrics_stream # noqa: E501
1449
+
1450
+ This method makes a synchronous HTTP request by default. To make an
1451
+ asynchronous HTTP request, please pass async_req=True
1452
+ >>> thread = api.lit_logger_service_update_metrics_stream_with_http_info(body, project_id, id, async_req=True)
1453
+ >>> result = thread.get()
1454
+
1455
+ :param async_req bool
1456
+ :param MetricsstreamIdBody body: (required)
1457
+ :param str project_id: (required)
1458
+ :param str id: (required)
1459
+ :return: V1MetricsStream
1460
+ If the method is called asynchronously,
1461
+ returns the request thread.
1462
+ """
1463
+
1464
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1465
+ all_params.append('async_req')
1466
+ all_params.append('_return_http_data_only')
1467
+ all_params.append('_preload_content')
1468
+ all_params.append('_request_timeout')
1469
+
1470
+ params = locals()
1471
+ for key, val in six.iteritems(params['kwargs']):
1472
+ if key not in all_params:
1473
+ raise TypeError(
1474
+ "Got an unexpected keyword argument '%s'"
1475
+ " to method lit_logger_service_update_metrics_stream" % key
1476
+ )
1477
+ params[key] = val
1478
+ del params['kwargs']
1479
+ # verify the required parameter 'body' is set
1480
+ if ('body' not in params or
1481
+ params['body'] is None):
1482
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_update_metrics_stream`") # noqa: E501
1483
+ # verify the required parameter 'project_id' is set
1484
+ if ('project_id' not in params or
1485
+ params['project_id'] is None):
1486
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_update_metrics_stream`") # noqa: E501
1487
+ # verify the required parameter 'id' is set
1488
+ if ('id' not in params or
1489
+ params['id'] is None):
1490
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_update_metrics_stream`") # noqa: E501
1491
+
1492
+ collection_formats = {}
1493
+
1494
+ path_params = {}
1495
+ if 'project_id' in params:
1496
+ path_params['projectId'] = params['project_id'] # noqa: E501
1497
+ if 'id' in params:
1498
+ path_params['id'] = params['id'] # noqa: E501
1499
+
1500
+ query_params = []
1501
+
1502
+ header_params = {}
1503
+
1504
+ form_params = []
1505
+ local_var_files = {}
1506
+
1507
+ body_params = None
1508
+ if 'body' in params:
1509
+ body_params = params['body']
1510
+ # HTTP header `Accept`
1511
+ header_params['Accept'] = self.api_client.select_header_accept(
1512
+ ['application/json']) # noqa: E501
1513
+
1514
+ # HTTP header `Content-Type`
1515
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1516
+ ['application/json']) # noqa: E501
1517
+
1518
+ # Authentication setting
1519
+ auth_settings = [] # noqa: E501
1520
+
1521
+ return self.api_client.call_api(
1522
+ '/v1/projects/{projectId}/metrics-stream/{id}', 'PUT',
1523
+ path_params,
1524
+ query_params,
1525
+ header_params,
1526
+ body=body_params,
1527
+ post_params=form_params,
1528
+ files=local_var_files,
1529
+ response_type='V1MetricsStream', # noqa: E501
1530
+ auth_settings=auth_settings,
1531
+ async_req=params.get('async_req'),
1532
+ _return_http_data_only=params.get('_return_http_data_only'),
1533
+ _preload_content=params.get('_preload_content', True),
1534
+ _request_timeout=params.get('_request_timeout'),
1535
+ collection_formats=collection_formats)
1536
+
1537
+ def lit_logger_service_update_metrics_stream_visibility(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1538
+ """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1539
+
1540
+ This method makes a synchronous HTTP request by default. To make an
1541
+ asynchronous HTTP request, please pass async_req=True
1542
+ >>> thread = api.lit_logger_service_update_metrics_stream_visibility(body, project_id, id, async_req=True)
1543
+ >>> result = thread.get()
1544
+
1545
+ :param async_req bool
1546
+ :param IdVisibilityBody body: (required)
1547
+ :param str project_id: (required)
1548
+ :param str id: (required)
1549
+ :return: V1UpdateMetricsStreamVisibilityResponse
1550
+ If the method is called asynchronously,
1551
+ returns the request thread.
1552
+ """
1553
+ kwargs['_return_http_data_only'] = True
1554
+ if kwargs.get('async_req'):
1555
+ return self.lit_logger_service_update_metrics_stream_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1556
+ else:
1557
+ (data) = self.lit_logger_service_update_metrics_stream_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1558
+ return data
1559
+
1560
+ def lit_logger_service_update_metrics_stream_visibility_with_http_info(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1561
+ """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1562
+
1563
+ This method makes a synchronous HTTP request by default. To make an
1564
+ asynchronous HTTP request, please pass async_req=True
1565
+ >>> thread = api.lit_logger_service_update_metrics_stream_visibility_with_http_info(body, project_id, id, async_req=True)
1566
+ >>> result = thread.get()
1567
+
1568
+ :param async_req bool
1569
+ :param IdVisibilityBody body: (required)
1570
+ :param str project_id: (required)
1571
+ :param str id: (required)
1572
+ :return: V1UpdateMetricsStreamVisibilityResponse
1573
+ If the method is called asynchronously,
1574
+ returns the request thread.
1575
+ """
1576
+
1577
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1578
+ all_params.append('async_req')
1579
+ all_params.append('_return_http_data_only')
1580
+ all_params.append('_preload_content')
1581
+ all_params.append('_request_timeout')
1582
+
1583
+ params = locals()
1584
+ for key, val in six.iteritems(params['kwargs']):
1585
+ if key not in all_params:
1586
+ raise TypeError(
1587
+ "Got an unexpected keyword argument '%s'"
1588
+ " to method lit_logger_service_update_metrics_stream_visibility" % key
1589
+ )
1590
+ params[key] = val
1591
+ del params['kwargs']
1592
+ # verify the required parameter 'body' is set
1593
+ if ('body' not in params or
1594
+ params['body'] is None):
1595
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_update_metrics_stream_visibility`") # noqa: E501
1596
+ # verify the required parameter 'project_id' is set
1597
+ if ('project_id' not in params or
1598
+ params['project_id'] is None):
1599
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_update_metrics_stream_visibility`") # noqa: E501
1600
+ # verify the required parameter 'id' is set
1601
+ if ('id' not in params or
1602
+ params['id'] is None):
1603
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_update_metrics_stream_visibility`") # noqa: E501
1604
+
1605
+ collection_formats = {}
1606
+
1607
+ path_params = {}
1608
+ if 'project_id' in params:
1609
+ path_params['projectId'] = params['project_id'] # noqa: E501
1610
+ if 'id' in params:
1611
+ path_params['id'] = params['id'] # noqa: E501
1612
+
1613
+ query_params = []
1614
+
1615
+ header_params = {}
1616
+
1617
+ form_params = []
1618
+ local_var_files = {}
1619
+
1620
+ body_params = None
1621
+ if 'body' in params:
1622
+ body_params = params['body']
1623
+ # HTTP header `Accept`
1624
+ header_params['Accept'] = self.api_client.select_header_accept(
1625
+ ['application/json']) # noqa: E501
1626
+
1627
+ # HTTP header `Content-Type`
1628
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1629
+ ['application/json']) # noqa: E501
1630
+
1631
+ # Authentication setting
1632
+ auth_settings = [] # noqa: E501
1633
+
1634
+ return self.api_client.call_api(
1635
+ '/v1/projects/{projectId}/metrics-streams/{id}/visibility', 'PUT',
1636
+ path_params,
1637
+ query_params,
1638
+ header_params,
1639
+ body=body_params,
1640
+ post_params=form_params,
1641
+ files=local_var_files,
1642
+ response_type='V1UpdateMetricsStreamVisibilityResponse', # noqa: E501
1643
+ auth_settings=auth_settings,
1644
+ async_req=params.get('async_req'),
1645
+ _return_http_data_only=params.get('_return_http_data_only'),
1646
+ _preload_content=params.get('_preload_content', True),
1647
+ _request_timeout=params.get('_request_timeout'),
1648
+ collection_formats=collection_formats)
1649
+
1650
+ def lit_logger_service_update_shared_metrics_stream(self, body: 'LitloggermetricsIdBody', id: 'str', **kwargs) -> 'V1UpdateSharedMetricsStreamResponse': # noqa: E501
1651
+ """lit_logger_service_update_shared_metrics_stream # noqa: E501
1652
+
1653
+ This method makes a synchronous HTTP request by default. To make an
1654
+ asynchronous HTTP request, please pass async_req=True
1655
+ >>> thread = api.lit_logger_service_update_shared_metrics_stream(body, id, async_req=True)
1656
+ >>> result = thread.get()
1657
+
1658
+ :param async_req bool
1659
+ :param LitloggermetricsIdBody body: (required)
1660
+ :param str id: (required)
1661
+ :return: V1UpdateSharedMetricsStreamResponse
1662
+ If the method is called asynchronously,
1663
+ returns the request thread.
1664
+ """
1665
+ kwargs['_return_http_data_only'] = True
1666
+ if kwargs.get('async_req'):
1667
+ return self.lit_logger_service_update_shared_metrics_stream_with_http_info(body, id, **kwargs) # noqa: E501
1668
+ else:
1669
+ (data) = self.lit_logger_service_update_shared_metrics_stream_with_http_info(body, id, **kwargs) # noqa: E501
1670
+ return data
1671
+
1672
+ def lit_logger_service_update_shared_metrics_stream_with_http_info(self, body: 'LitloggermetricsIdBody', id: 'str', **kwargs) -> 'V1UpdateSharedMetricsStreamResponse': # noqa: E501
1673
+ """lit_logger_service_update_shared_metrics_stream # noqa: E501
1674
+
1675
+ This method makes a synchronous HTTP request by default. To make an
1676
+ asynchronous HTTP request, please pass async_req=True
1677
+ >>> thread = api.lit_logger_service_update_shared_metrics_stream_with_http_info(body, id, async_req=True)
1678
+ >>> result = thread.get()
1679
+
1680
+ :param async_req bool
1681
+ :param LitloggermetricsIdBody body: (required)
1682
+ :param str id: (required)
1683
+ :return: V1UpdateSharedMetricsStreamResponse
1684
+ If the method is called asynchronously,
1685
+ returns the request thread.
1686
+ """
1687
+
1688
+ all_params = ['body', 'id'] # noqa: E501
1689
+ all_params.append('async_req')
1690
+ all_params.append('_return_http_data_only')
1691
+ all_params.append('_preload_content')
1692
+ all_params.append('_request_timeout')
1693
+
1694
+ params = locals()
1695
+ for key, val in six.iteritems(params['kwargs']):
1696
+ if key not in all_params:
1697
+ raise TypeError(
1698
+ "Got an unexpected keyword argument '%s'"
1699
+ " to method lit_logger_service_update_shared_metrics_stream" % key
1700
+ )
1701
+ params[key] = val
1702
+ del params['kwargs']
1703
+ # verify the required parameter 'body' is set
1704
+ if ('body' not in params or
1705
+ params['body'] is None):
1706
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_update_shared_metrics_stream`") # noqa: E501
1707
+ # verify the required parameter 'id' is set
1708
+ if ('id' not in params or
1709
+ params['id'] is None):
1710
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_update_shared_metrics_stream`") # noqa: E501
1711
+
1712
+ collection_formats = {}
1713
+
1714
+ path_params = {}
1715
+ if 'id' in params:
1716
+ path_params['id'] = params['id'] # noqa: E501
1717
+
1718
+ query_params = []
1719
+
1720
+ header_params = {}
1721
+
1722
+ form_params = []
1723
+ local_var_files = {}
1724
+
1725
+ body_params = None
1726
+ if 'body' in params:
1727
+ body_params = params['body']
1728
+ # HTTP header `Accept`
1729
+ header_params['Accept'] = self.api_client.select_header_accept(
1730
+ ['application/json']) # noqa: E501
1731
+
1732
+ # HTTP header `Content-Type`
1733
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1734
+ ['application/json']) # noqa: E501
1735
+
1736
+ # Authentication setting
1737
+ auth_settings = [] # noqa: E501
1738
+
1739
+ return self.api_client.call_api(
1740
+ '/v1/share/litlogger-metrics/{id}', 'PUT',
1741
+ path_params,
1742
+ query_params,
1743
+ header_params,
1744
+ body=body_params,
1745
+ post_params=form_params,
1746
+ files=local_var_files,
1747
+ response_type='V1UpdateSharedMetricsStreamResponse', # noqa: E501
1748
+ auth_settings=auth_settings,
1749
+ async_req=params.get('async_req'),
1750
+ _return_http_data_only=params.get('_return_http_data_only'),
1751
+ _preload_content=params.get('_preload_content', True),
1752
+ _request_timeout=params.get('_request_timeout'),
1753
+ collection_formats=collection_formats)