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
@@ -350,6 +350,111 @@ class ClusterServiceApi(object):
350
350
  _request_timeout=params.get('_request_timeout'),
351
351
  collection_formats=collection_formats)
352
352
 
353
+ def cluster_service_create_cluster_proxy(self, body: 'ClusterIdProxiesBody', cluster_id: 'str', **kwargs) -> 'V1ClusterProxy': # noqa: E501
354
+ """cluster_service_create_cluster_proxy # noqa: E501
355
+
356
+ This method makes a synchronous HTTP request by default. To make an
357
+ asynchronous HTTP request, please pass async_req=True
358
+ >>> thread = api.cluster_service_create_cluster_proxy(body, cluster_id, async_req=True)
359
+ >>> result = thread.get()
360
+
361
+ :param async_req bool
362
+ :param ClusterIdProxiesBody body: (required)
363
+ :param str cluster_id: (required)
364
+ :return: V1ClusterProxy
365
+ If the method is called asynchronously,
366
+ returns the request thread.
367
+ """
368
+ kwargs['_return_http_data_only'] = True
369
+ if kwargs.get('async_req'):
370
+ return self.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, **kwargs) # noqa: E501
371
+ else:
372
+ (data) = self.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, **kwargs) # noqa: E501
373
+ return data
374
+
375
+ def cluster_service_create_cluster_proxy_with_http_info(self, body: 'ClusterIdProxiesBody', cluster_id: 'str', **kwargs) -> 'V1ClusterProxy': # noqa: E501
376
+ """cluster_service_create_cluster_proxy # noqa: E501
377
+
378
+ This method makes a synchronous HTTP request by default. To make an
379
+ asynchronous HTTP request, please pass async_req=True
380
+ >>> thread = api.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, async_req=True)
381
+ >>> result = thread.get()
382
+
383
+ :param async_req bool
384
+ :param ClusterIdProxiesBody body: (required)
385
+ :param str cluster_id: (required)
386
+ :return: V1ClusterProxy
387
+ If the method is called asynchronously,
388
+ returns the request thread.
389
+ """
390
+
391
+ all_params = ['body', 'cluster_id'] # noqa: E501
392
+ all_params.append('async_req')
393
+ all_params.append('_return_http_data_only')
394
+ all_params.append('_preload_content')
395
+ all_params.append('_request_timeout')
396
+
397
+ params = locals()
398
+ for key, val in six.iteritems(params['kwargs']):
399
+ if key not in all_params:
400
+ raise TypeError(
401
+ "Got an unexpected keyword argument '%s'"
402
+ " to method cluster_service_create_cluster_proxy" % key
403
+ )
404
+ params[key] = val
405
+ del params['kwargs']
406
+ # verify the required parameter 'body' is set
407
+ if ('body' not in params or
408
+ params['body'] is None):
409
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_cluster_proxy`") # noqa: E501
410
+ # verify the required parameter 'cluster_id' is set
411
+ if ('cluster_id' not in params or
412
+ params['cluster_id'] is None):
413
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_cluster_proxy`") # noqa: E501
414
+
415
+ collection_formats = {}
416
+
417
+ path_params = {}
418
+ if 'cluster_id' in params:
419
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
420
+
421
+ query_params = []
422
+
423
+ header_params = {}
424
+
425
+ form_params = []
426
+ local_var_files = {}
427
+
428
+ body_params = None
429
+ if 'body' in params:
430
+ body_params = params['body']
431
+ # HTTP header `Accept`
432
+ header_params['Accept'] = self.api_client.select_header_accept(
433
+ ['application/json']) # noqa: E501
434
+
435
+ # HTTP header `Content-Type`
436
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
437
+ ['application/json']) # noqa: E501
438
+
439
+ # Authentication setting
440
+ auth_settings = [] # noqa: E501
441
+
442
+ return self.api_client.call_api(
443
+ '/v1/core/clusters/{clusterId}/proxies', 'POST',
444
+ path_params,
445
+ query_params,
446
+ header_params,
447
+ body=body_params,
448
+ post_params=form_params,
449
+ files=local_var_files,
450
+ response_type='V1ClusterProxy', # noqa: E501
451
+ auth_settings=auth_settings,
452
+ async_req=params.get('async_req'),
453
+ _return_http_data_only=params.get('_return_http_data_only'),
454
+ _preload_content=params.get('_preload_content', True),
455
+ _request_timeout=params.get('_request_timeout'),
456
+ collection_formats=collection_formats)
457
+
353
458
  def cluster_service_create_project_cluster(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
354
459
  """cluster_service_create_project_cluster # noqa: E501
355
460
 
@@ -770,6 +875,111 @@ class ClusterServiceApi(object):
770
875
  _request_timeout=params.get('_request_timeout'),
771
876
  collection_formats=collection_formats)
772
877
 
878
+ def cluster_service_delete_cluster_proxy(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
879
+ """cluster_service_delete_cluster_proxy # noqa: E501
880
+
881
+ This method makes a synchronous HTTP request by default. To make an
882
+ asynchronous HTTP request, please pass async_req=True
883
+ >>> thread = api.cluster_service_delete_cluster_proxy(cluster_id, proxy_id, async_req=True)
884
+ >>> result = thread.get()
885
+
886
+ :param async_req bool
887
+ :param str cluster_id: (required)
888
+ :param str proxy_id: (required)
889
+ :param str org_id:
890
+ :return: V1DeleteClusterProxyResponse
891
+ If the method is called asynchronously,
892
+ returns the request thread.
893
+ """
894
+ kwargs['_return_http_data_only'] = True
895
+ if kwargs.get('async_req'):
896
+ return self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
897
+ else:
898
+ (data) = self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
899
+ return data
900
+
901
+ def cluster_service_delete_cluster_proxy_with_http_info(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
902
+ """cluster_service_delete_cluster_proxy # noqa: E501
903
+
904
+ This method makes a synchronous HTTP request by default. To make an
905
+ asynchronous HTTP request, please pass async_req=True
906
+ >>> thread = api.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, async_req=True)
907
+ >>> result = thread.get()
908
+
909
+ :param async_req bool
910
+ :param str cluster_id: (required)
911
+ :param str proxy_id: (required)
912
+ :param str org_id:
913
+ :return: V1DeleteClusterProxyResponse
914
+ If the method is called asynchronously,
915
+ returns the request thread.
916
+ """
917
+
918
+ all_params = ['cluster_id', 'proxy_id', 'org_id'] # noqa: E501
919
+ all_params.append('async_req')
920
+ all_params.append('_return_http_data_only')
921
+ all_params.append('_preload_content')
922
+ all_params.append('_request_timeout')
923
+
924
+ params = locals()
925
+ for key, val in six.iteritems(params['kwargs']):
926
+ if key not in all_params:
927
+ raise TypeError(
928
+ "Got an unexpected keyword argument '%s'"
929
+ " to method cluster_service_delete_cluster_proxy" % key
930
+ )
931
+ params[key] = val
932
+ del params['kwargs']
933
+ # verify the required parameter 'cluster_id' is set
934
+ if ('cluster_id' not in params or
935
+ params['cluster_id'] is None):
936
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
937
+ # verify the required parameter 'proxy_id' is set
938
+ if ('proxy_id' not in params or
939
+ params['proxy_id'] is None):
940
+ raise ValueError("Missing the required parameter `proxy_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
941
+
942
+ collection_formats = {}
943
+
944
+ path_params = {}
945
+ if 'cluster_id' in params:
946
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
947
+ if 'proxy_id' in params:
948
+ path_params['proxyId'] = params['proxy_id'] # noqa: E501
949
+
950
+ query_params = []
951
+ if 'org_id' in params:
952
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
953
+
954
+ header_params = {}
955
+
956
+ form_params = []
957
+ local_var_files = {}
958
+
959
+ body_params = None
960
+ # HTTP header `Accept`
961
+ header_params['Accept'] = self.api_client.select_header_accept(
962
+ ['application/json']) # noqa: E501
963
+
964
+ # Authentication setting
965
+ auth_settings = [] # noqa: E501
966
+
967
+ return self.api_client.call_api(
968
+ '/v1/core/clusters/{clusterId}/proxies/{proxyId}', 'DELETE',
969
+ path_params,
970
+ query_params,
971
+ header_params,
972
+ body=body_params,
973
+ post_params=form_params,
974
+ files=local_var_files,
975
+ response_type='V1DeleteClusterProxyResponse', # noqa: E501
976
+ auth_settings=auth_settings,
977
+ async_req=params.get('async_req'),
978
+ _return_http_data_only=params.get('_return_http_data_only'),
979
+ _preload_content=params.get('_preload_content', True),
980
+ _request_timeout=params.get('_request_timeout'),
981
+ collection_formats=collection_formats)
982
+
773
983
  def cluster_service_delete_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
774
984
  """cluster_service_delete_project_cluster # noqa: E501
775
985
 
@@ -883,47 +1093,57 @@ class ClusterServiceApi(object):
883
1093
  _request_timeout=params.get('_request_timeout'),
884
1094
  collection_formats=collection_formats)
885
1095
 
886
- def cluster_service_get_cluster(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
887
- """cluster_service_get_cluster # noqa: E501
1096
+ def cluster_service_find_capacity_block_offering(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
1097
+ """cluster_service_find_capacity_block_offering # noqa: E501
888
1098
 
889
1099
  This method makes a synchronous HTTP request by default. To make an
890
1100
  asynchronous HTTP request, please pass async_req=True
891
- >>> thread = api.cluster_service_get_cluster(id, async_req=True)
1101
+ >>> thread = api.cluster_service_find_capacity_block_offering(project_id, cluster_id, async_req=True)
892
1102
  >>> result = thread.get()
893
1103
 
894
1104
  :param async_req bool
895
- :param str id: (required)
1105
+ :param str project_id: (required)
1106
+ :param str cluster_id: (required)
1107
+ :param str instance_type:
1108
+ :param int instance_count:
1109
+ :param datetime start_date:
1110
+ :param str timezone:
896
1111
  :param str org_id:
897
- :param str project_id:
898
- :return: Externalv1Cluster
1112
+ :param int capacity_block_duration_days:
1113
+ :return: V1FindCapacityBlockOfferingResponse
899
1114
  If the method is called asynchronously,
900
1115
  returns the request thread.
901
1116
  """
902
1117
  kwargs['_return_http_data_only'] = True
903
1118
  if kwargs.get('async_req'):
904
- return self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
1119
+ return self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
905
1120
  else:
906
- (data) = self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
1121
+ (data) = self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
907
1122
  return data
908
1123
 
909
- def cluster_service_get_cluster_with_http_info(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
910
- """cluster_service_get_cluster # noqa: E501
1124
+ def cluster_service_find_capacity_block_offering_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
1125
+ """cluster_service_find_capacity_block_offering # noqa: E501
911
1126
 
912
1127
  This method makes a synchronous HTTP request by default. To make an
913
1128
  asynchronous HTTP request, please pass async_req=True
914
- >>> thread = api.cluster_service_get_cluster_with_http_info(id, async_req=True)
1129
+ >>> thread = api.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, async_req=True)
915
1130
  >>> result = thread.get()
916
1131
 
917
1132
  :param async_req bool
918
- :param str id: (required)
1133
+ :param str project_id: (required)
1134
+ :param str cluster_id: (required)
1135
+ :param str instance_type:
1136
+ :param int instance_count:
1137
+ :param datetime start_date:
1138
+ :param str timezone:
919
1139
  :param str org_id:
920
- :param str project_id:
921
- :return: Externalv1Cluster
1140
+ :param int capacity_block_duration_days:
1141
+ :return: V1FindCapacityBlockOfferingResponse
922
1142
  If the method is called asynchronously,
923
1143
  returns the request thread.
924
1144
  """
925
1145
 
926
- all_params = ['id', 'org_id', 'project_id'] # noqa: E501
1146
+ all_params = ['project_id', 'cluster_id', 'instance_type', 'instance_count', 'start_date', 'timezone', 'org_id', 'capacity_block_duration_days'] # noqa: E501
927
1147
  all_params.append('async_req')
928
1148
  all_params.append('_return_http_data_only')
929
1149
  all_params.append('_preload_content')
@@ -934,26 +1154,40 @@ class ClusterServiceApi(object):
934
1154
  if key not in all_params:
935
1155
  raise TypeError(
936
1156
  "Got an unexpected keyword argument '%s'"
937
- " to method cluster_service_get_cluster" % key
1157
+ " to method cluster_service_find_capacity_block_offering" % key
938
1158
  )
939
1159
  params[key] = val
940
1160
  del params['kwargs']
941
- # verify the required parameter 'id' is set
942
- if ('id' not in params or
943
- params['id'] is None):
944
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster`") # noqa: E501
1161
+ # verify the required parameter 'project_id' is set
1162
+ if ('project_id' not in params or
1163
+ params['project_id'] is None):
1164
+ raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
1165
+ # verify the required parameter 'cluster_id' is set
1166
+ if ('cluster_id' not in params or
1167
+ params['cluster_id'] is None):
1168
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
945
1169
 
946
1170
  collection_formats = {}
947
1171
 
948
1172
  path_params = {}
949
- if 'id' in params:
950
- path_params['id'] = params['id'] # noqa: E501
1173
+ if 'project_id' in params:
1174
+ path_params['projectId'] = params['project_id'] # noqa: E501
1175
+ if 'cluster_id' in params:
1176
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
951
1177
 
952
1178
  query_params = []
1179
+ if 'instance_type' in params:
1180
+ query_params.append(('instanceType', params['instance_type'])) # noqa: E501
1181
+ if 'instance_count' in params:
1182
+ query_params.append(('instanceCount', params['instance_count'])) # noqa: E501
1183
+ if 'start_date' in params:
1184
+ query_params.append(('startDate', params['start_date'])) # noqa: E501
1185
+ if 'timezone' in params:
1186
+ query_params.append(('timezone', params['timezone'])) # noqa: E501
953
1187
  if 'org_id' in params:
954
1188
  query_params.append(('orgId', params['org_id'])) # noqa: E501
955
- if 'project_id' in params:
956
- query_params.append(('projectId', params['project_id'])) # noqa: E501
1189
+ if 'capacity_block_duration_days' in params:
1190
+ query_params.append(('capacityBlockDurationDays', params['capacity_block_duration_days'])) # noqa: E501
957
1191
 
958
1192
  header_params = {}
959
1193
 
@@ -969,14 +1203,14 @@ class ClusterServiceApi(object):
969
1203
  auth_settings = [] # noqa: E501
970
1204
 
971
1205
  return self.api_client.call_api(
972
- '/v1/core/clusters/{id}', 'GET',
1206
+ '/v1/projects/{projectId}/clusters/{clusterId}/capacity-block-offering', 'GET',
973
1207
  path_params,
974
1208
  query_params,
975
1209
  header_params,
976
1210
  body=body_params,
977
1211
  post_params=form_params,
978
1212
  files=local_var_files,
979
- response_type='Externalv1Cluster', # noqa: E501
1213
+ response_type='V1FindCapacityBlockOfferingResponse', # noqa: E501
980
1214
  auth_settings=auth_settings,
981
1215
  async_req=params.get('async_req'),
982
1216
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -984,45 +1218,47 @@ class ClusterServiceApi(object):
984
1218
  _request_timeout=params.get('_request_timeout'),
985
1219
  collection_formats=collection_formats)
986
1220
 
987
- def cluster_service_get_cluster_availability(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
988
- """cluster_service_get_cluster_availability # noqa: E501
1221
+ def cluster_service_get_cluster(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
1222
+ """cluster_service_get_cluster # noqa: E501
989
1223
 
990
1224
  This method makes a synchronous HTTP request by default. To make an
991
1225
  asynchronous HTTP request, please pass async_req=True
992
- >>> thread = api.cluster_service_get_cluster_availability(async_req=True)
1226
+ >>> thread = api.cluster_service_get_cluster(id, async_req=True)
993
1227
  >>> result = thread.get()
994
1228
 
995
1229
  :param async_req bool
1230
+ :param str id: (required)
996
1231
  :param str org_id:
997
- :param str cluster_id:
998
- :return: V1ClusterAvailability
1232
+ :param str project_id:
1233
+ :return: Externalv1Cluster
999
1234
  If the method is called asynchronously,
1000
1235
  returns the request thread.
1001
1236
  """
1002
1237
  kwargs['_return_http_data_only'] = True
1003
1238
  if kwargs.get('async_req'):
1004
- return self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
1239
+ return self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
1005
1240
  else:
1006
- (data) = self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
1241
+ (data) = self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
1007
1242
  return data
1008
1243
 
1009
- def cluster_service_get_cluster_availability_with_http_info(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
1010
- """cluster_service_get_cluster_availability # noqa: E501
1244
+ def cluster_service_get_cluster_with_http_info(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
1245
+ """cluster_service_get_cluster # noqa: E501
1011
1246
 
1012
1247
  This method makes a synchronous HTTP request by default. To make an
1013
1248
  asynchronous HTTP request, please pass async_req=True
1014
- >>> thread = api.cluster_service_get_cluster_availability_with_http_info(async_req=True)
1249
+ >>> thread = api.cluster_service_get_cluster_with_http_info(id, async_req=True)
1015
1250
  >>> result = thread.get()
1016
1251
 
1017
1252
  :param async_req bool
1253
+ :param str id: (required)
1018
1254
  :param str org_id:
1019
- :param str cluster_id:
1020
- :return: V1ClusterAvailability
1255
+ :param str project_id:
1256
+ :return: Externalv1Cluster
1021
1257
  If the method is called asynchronously,
1022
1258
  returns the request thread.
1023
1259
  """
1024
1260
 
1025
- all_params = ['org_id', 'cluster_id'] # noqa: E501
1261
+ all_params = ['id', 'org_id', 'project_id'] # noqa: E501
1026
1262
  all_params.append('async_req')
1027
1263
  all_params.append('_return_http_data_only')
1028
1264
  all_params.append('_preload_content')
@@ -1033,20 +1269,26 @@ class ClusterServiceApi(object):
1033
1269
  if key not in all_params:
1034
1270
  raise TypeError(
1035
1271
  "Got an unexpected keyword argument '%s'"
1036
- " to method cluster_service_get_cluster_availability" % key
1272
+ " to method cluster_service_get_cluster" % key
1037
1273
  )
1038
1274
  params[key] = val
1039
1275
  del params['kwargs']
1276
+ # verify the required parameter 'id' is set
1277
+ if ('id' not in params or
1278
+ params['id'] is None):
1279
+ raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster`") # noqa: E501
1040
1280
 
1041
1281
  collection_formats = {}
1042
1282
 
1043
1283
  path_params = {}
1284
+ if 'id' in params:
1285
+ path_params['id'] = params['id'] # noqa: E501
1044
1286
 
1045
1287
  query_params = []
1046
1288
  if 'org_id' in params:
1047
1289
  query_params.append(('orgId', params['org_id'])) # noqa: E501
1048
- if 'cluster_id' in params:
1049
- query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
1290
+ if 'project_id' in params:
1291
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
1050
1292
 
1051
1293
  header_params = {}
1052
1294
 
@@ -1062,14 +1304,14 @@ class ClusterServiceApi(object):
1062
1304
  auth_settings = [] # noqa: E501
1063
1305
 
1064
1306
  return self.api_client.call_api(
1065
- '/v1/core/cluster-availability', 'GET',
1307
+ '/v1/core/clusters/{id}', 'GET',
1066
1308
  path_params,
1067
1309
  query_params,
1068
1310
  header_params,
1069
1311
  body=body_params,
1070
1312
  post_params=form_params,
1071
1313
  files=local_var_files,
1072
- response_type='V1ClusterAvailability', # noqa: E501
1314
+ response_type='Externalv1Cluster', # noqa: E501
1073
1315
  auth_settings=auth_settings,
1074
1316
  async_req=params.get('async_req'),
1075
1317
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1077,41 +1319,45 @@ class ClusterServiceApi(object):
1077
1319
  _request_timeout=params.get('_request_timeout'),
1078
1320
  collection_formats=collection_formats)
1079
1321
 
1080
- def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
1081
- """cluster_service_get_cluster_credentials # noqa: E501
1082
-
1322
+ def cluster_service_get_cluster_availability(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
1323
+ """cluster_service_get_cluster_availability # noqa: E501
1324
+
1083
1325
  This method makes a synchronous HTTP request by default. To make an
1084
1326
  asynchronous HTTP request, please pass async_req=True
1085
- >>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
1327
+ >>> thread = api.cluster_service_get_cluster_availability(async_req=True)
1086
1328
  >>> result = thread.get()
1087
1329
 
1088
1330
  :param async_req bool
1089
- :return: V1GetClusterCredentialsResponse
1331
+ :param str org_id:
1332
+ :param str cluster_id:
1333
+ :return: V1ClusterAvailability
1090
1334
  If the method is called asynchronously,
1091
1335
  returns the request thread.
1092
1336
  """
1093
1337
  kwargs['_return_http_data_only'] = True
1094
1338
  if kwargs.get('async_req'):
1095
- return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
1339
+ return self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
1096
1340
  else:
1097
- (data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
1341
+ (data) = self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
1098
1342
  return data
1099
1343
 
1100
- def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
1101
- """cluster_service_get_cluster_credentials # noqa: E501
1344
+ def cluster_service_get_cluster_availability_with_http_info(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
1345
+ """cluster_service_get_cluster_availability # noqa: E501
1102
1346
 
1103
1347
  This method makes a synchronous HTTP request by default. To make an
1104
1348
  asynchronous HTTP request, please pass async_req=True
1105
- >>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
1349
+ >>> thread = api.cluster_service_get_cluster_availability_with_http_info(async_req=True)
1106
1350
  >>> result = thread.get()
1107
1351
 
1108
1352
  :param async_req bool
1109
- :return: V1GetClusterCredentialsResponse
1353
+ :param str org_id:
1354
+ :param str cluster_id:
1355
+ :return: V1ClusterAvailability
1110
1356
  If the method is called asynchronously,
1111
1357
  returns the request thread.
1112
1358
  """
1113
1359
 
1114
- all_params = [] # noqa: E501
1360
+ all_params = ['org_id', 'cluster_id'] # noqa: E501
1115
1361
  all_params.append('async_req')
1116
1362
  all_params.append('_return_http_data_only')
1117
1363
  all_params.append('_preload_content')
@@ -1122,7 +1368,7 @@ class ClusterServiceApi(object):
1122
1368
  if key not in all_params:
1123
1369
  raise TypeError(
1124
1370
  "Got an unexpected keyword argument '%s'"
1125
- " to method cluster_service_get_cluster_credentials" % key
1371
+ " to method cluster_service_get_cluster_availability" % key
1126
1372
  )
1127
1373
  params[key] = val
1128
1374
  del params['kwargs']
@@ -1132,6 +1378,10 @@ class ClusterServiceApi(object):
1132
1378
  path_params = {}
1133
1379
 
1134
1380
  query_params = []
1381
+ if 'org_id' in params:
1382
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1383
+ if 'cluster_id' in params:
1384
+ query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
1135
1385
 
1136
1386
  header_params = {}
1137
1387
 
@@ -1147,14 +1397,14 @@ class ClusterServiceApi(object):
1147
1397
  auth_settings = [] # noqa: E501
1148
1398
 
1149
1399
  return self.api_client.call_api(
1150
- '/v1/core/cluster-credentials', 'GET',
1400
+ '/v1/core/cluster-availability', 'GET',
1151
1401
  path_params,
1152
1402
  query_params,
1153
1403
  header_params,
1154
1404
  body=body_params,
1155
1405
  post_params=form_params,
1156
1406
  files=local_var_files,
1157
- response_type='V1GetClusterCredentialsResponse', # noqa: E501
1407
+ response_type='V1ClusterAvailability', # noqa: E501
1158
1408
  auth_settings=auth_settings,
1159
1409
  async_req=params.get('async_req'),
1160
1410
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1162,43 +1412,41 @@ class ClusterServiceApi(object):
1162
1412
  _request_timeout=params.get('_request_timeout'),
1163
1413
  collection_formats=collection_formats)
1164
1414
 
1165
- def cluster_service_get_cluster_health(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
1166
- """cluster_service_get_cluster_health # noqa: E501
1415
+ def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
1416
+ """cluster_service_get_cluster_credentials # noqa: E501
1167
1417
 
1168
1418
  This method makes a synchronous HTTP request by default. To make an
1169
1419
  asynchronous HTTP request, please pass async_req=True
1170
- >>> thread = api.cluster_service_get_cluster_health(id, async_req=True)
1420
+ >>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
1171
1421
  >>> result = thread.get()
1172
1422
 
1173
1423
  :param async_req bool
1174
- :param str id: (required)
1175
- :return: V1GetClusterHealthResponse
1424
+ :return: V1GetClusterCredentialsResponse
1176
1425
  If the method is called asynchronously,
1177
1426
  returns the request thread.
1178
1427
  """
1179
1428
  kwargs['_return_http_data_only'] = True
1180
1429
  if kwargs.get('async_req'):
1181
- return self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
1430
+ return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
1182
1431
  else:
1183
- (data) = self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
1432
+ (data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
1184
1433
  return data
1185
1434
 
1186
- def cluster_service_get_cluster_health_with_http_info(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
1187
- """cluster_service_get_cluster_health # noqa: E501
1435
+ def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
1436
+ """cluster_service_get_cluster_credentials # noqa: E501
1188
1437
 
1189
1438
  This method makes a synchronous HTTP request by default. To make an
1190
1439
  asynchronous HTTP request, please pass async_req=True
1191
- >>> thread = api.cluster_service_get_cluster_health_with_http_info(id, async_req=True)
1440
+ >>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
1192
1441
  >>> result = thread.get()
1193
1442
 
1194
1443
  :param async_req bool
1195
- :param str id: (required)
1196
- :return: V1GetClusterHealthResponse
1444
+ :return: V1GetClusterCredentialsResponse
1197
1445
  If the method is called asynchronously,
1198
1446
  returns the request thread.
1199
1447
  """
1200
1448
 
1201
- all_params = ['id'] # noqa: E501
1449
+ all_params = [] # noqa: E501
1202
1450
  all_params.append('async_req')
1203
1451
  all_params.append('_return_http_data_only')
1204
1452
  all_params.append('_preload_content')
@@ -1209,20 +1457,14 @@ class ClusterServiceApi(object):
1209
1457
  if key not in all_params:
1210
1458
  raise TypeError(
1211
1459
  "Got an unexpected keyword argument '%s'"
1212
- " to method cluster_service_get_cluster_health" % key
1460
+ " to method cluster_service_get_cluster_credentials" % key
1213
1461
  )
1214
1462
  params[key] = val
1215
1463
  del params['kwargs']
1216
- # verify the required parameter 'id' is set
1217
- if ('id' not in params or
1218
- params['id'] is None):
1219
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
1220
1464
 
1221
1465
  collection_formats = {}
1222
1466
 
1223
1467
  path_params = {}
1224
- if 'id' in params:
1225
- path_params['id'] = params['id'] # noqa: E501
1226
1468
 
1227
1469
  query_params = []
1228
1470
 
@@ -1240,14 +1482,14 @@ class ClusterServiceApi(object):
1240
1482
  auth_settings = [] # noqa: E501
1241
1483
 
1242
1484
  return self.api_client.call_api(
1243
- '/v1/core/clusters/{id}/health', 'GET',
1485
+ '/v1/core/cluster-credentials', 'GET',
1244
1486
  path_params,
1245
1487
  query_params,
1246
1488
  header_params,
1247
1489
  body=body_params,
1248
1490
  post_params=form_params,
1249
1491
  files=local_var_files,
1250
- response_type='V1GetClusterHealthResponse', # noqa: E501
1492
+ response_type='V1GetClusterCredentialsResponse', # noqa: E501
1251
1493
  auth_settings=auth_settings,
1252
1494
  async_req=params.get('async_req'),
1253
1495
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1356,6 +1598,111 @@ class ClusterServiceApi(object):
1356
1598
  _request_timeout=params.get('_request_timeout'),
1357
1599
  collection_formats=collection_formats)
1358
1600
 
1601
+ def cluster_service_interrupt_server(self, body: 'object', server_id: 'str', **kwargs) -> 'V1InterruptServerResponse': # noqa: E501
1602
+ """cluster_service_interrupt_server # noqa: E501
1603
+
1604
+ This method makes a synchronous HTTP request by default. To make an
1605
+ asynchronous HTTP request, please pass async_req=True
1606
+ >>> thread = api.cluster_service_interrupt_server(body, server_id, async_req=True)
1607
+ >>> result = thread.get()
1608
+
1609
+ :param async_req bool
1610
+ :param object body: (required)
1611
+ :param str server_id: (required)
1612
+ :return: V1InterruptServerResponse
1613
+ If the method is called asynchronously,
1614
+ returns the request thread.
1615
+ """
1616
+ kwargs['_return_http_data_only'] = True
1617
+ if kwargs.get('async_req'):
1618
+ return self.cluster_service_interrupt_server_with_http_info(body, server_id, **kwargs) # noqa: E501
1619
+ else:
1620
+ (data) = self.cluster_service_interrupt_server_with_http_info(body, server_id, **kwargs) # noqa: E501
1621
+ return data
1622
+
1623
+ def cluster_service_interrupt_server_with_http_info(self, body: 'object', server_id: 'str', **kwargs) -> 'V1InterruptServerResponse': # noqa: E501
1624
+ """cluster_service_interrupt_server # noqa: E501
1625
+
1626
+ This method makes a synchronous HTTP request by default. To make an
1627
+ asynchronous HTTP request, please pass async_req=True
1628
+ >>> thread = api.cluster_service_interrupt_server_with_http_info(body, server_id, async_req=True)
1629
+ >>> result = thread.get()
1630
+
1631
+ :param async_req bool
1632
+ :param object body: (required)
1633
+ :param str server_id: (required)
1634
+ :return: V1InterruptServerResponse
1635
+ If the method is called asynchronously,
1636
+ returns the request thread.
1637
+ """
1638
+
1639
+ all_params = ['body', 'server_id'] # noqa: E501
1640
+ all_params.append('async_req')
1641
+ all_params.append('_return_http_data_only')
1642
+ all_params.append('_preload_content')
1643
+ all_params.append('_request_timeout')
1644
+
1645
+ params = locals()
1646
+ for key, val in six.iteritems(params['kwargs']):
1647
+ if key not in all_params:
1648
+ raise TypeError(
1649
+ "Got an unexpected keyword argument '%s'"
1650
+ " to method cluster_service_interrupt_server" % key
1651
+ )
1652
+ params[key] = val
1653
+ del params['kwargs']
1654
+ # verify the required parameter 'body' is set
1655
+ if ('body' not in params or
1656
+ params['body'] is None):
1657
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_interrupt_server`") # noqa: E501
1658
+ # verify the required parameter 'server_id' is set
1659
+ if ('server_id' not in params or
1660
+ params['server_id'] is None):
1661
+ raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_interrupt_server`") # noqa: E501
1662
+
1663
+ collection_formats = {}
1664
+
1665
+ path_params = {}
1666
+ if 'server_id' in params:
1667
+ path_params['serverId'] = params['server_id'] # noqa: E501
1668
+
1669
+ query_params = []
1670
+
1671
+ header_params = {}
1672
+
1673
+ form_params = []
1674
+ local_var_files = {}
1675
+
1676
+ body_params = None
1677
+ if 'body' in params:
1678
+ body_params = params['body']
1679
+ # HTTP header `Accept`
1680
+ header_params['Accept'] = self.api_client.select_header_accept(
1681
+ ['application/json']) # noqa: E501
1682
+
1683
+ # HTTP header `Content-Type`
1684
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1685
+ ['application/json']) # noqa: E501
1686
+
1687
+ # Authentication setting
1688
+ auth_settings = [] # noqa: E501
1689
+
1690
+ return self.api_client.call_api(
1691
+ '/v1/core/servers/{serverId}/interrupt', 'POST',
1692
+ path_params,
1693
+ query_params,
1694
+ header_params,
1695
+ body=body_params,
1696
+ post_params=form_params,
1697
+ files=local_var_files,
1698
+ response_type='V1InterruptServerResponse', # noqa: E501
1699
+ auth_settings=auth_settings,
1700
+ async_req=params.get('async_req'),
1701
+ _return_http_data_only=params.get('_return_http_data_only'),
1702
+ _preload_content=params.get('_preload_content', True),
1703
+ _request_timeout=params.get('_request_timeout'),
1704
+ collection_formats=collection_formats)
1705
+
1359
1706
  def cluster_service_list_cluster_accelerators(self, id: 'str', **kwargs) -> 'V1ListClusterAcceleratorsResponse': # noqa: E501
1360
1707
  """cluster_service_list_cluster_accelerators # noqa: E501
1361
1708
 
@@ -1368,6 +1715,7 @@ class ClusterServiceApi(object):
1368
1715
  :param str id: (required)
1369
1716
  :param bool enabled_only:
1370
1717
  :param str region:
1718
+ :param str org_id:
1371
1719
  :return: V1ListClusterAcceleratorsResponse
1372
1720
  If the method is called asynchronously,
1373
1721
  returns the request thread.
@@ -1391,12 +1739,13 @@ class ClusterServiceApi(object):
1391
1739
  :param str id: (required)
1392
1740
  :param bool enabled_only:
1393
1741
  :param str region:
1742
+ :param str org_id:
1394
1743
  :return: V1ListClusterAcceleratorsResponse
1395
1744
  If the method is called asynchronously,
1396
1745
  returns the request thread.
1397
1746
  """
1398
1747
 
1399
- all_params = ['id', 'enabled_only', 'region'] # noqa: E501
1748
+ all_params = ['id', 'enabled_only', 'region', 'org_id'] # noqa: E501
1400
1749
  all_params.append('async_req')
1401
1750
  all_params.append('_return_http_data_only')
1402
1751
  all_params.append('_preload_content')
@@ -1427,6 +1776,8 @@ class ClusterServiceApi(object):
1427
1776
  query_params.append(('enabledOnly', params['enabled_only'])) # noqa: E501
1428
1777
  if 'region' in params:
1429
1778
  query_params.append(('region', params['region'])) # noqa: E501
1779
+ if 'org_id' in params:
1780
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1430
1781
 
1431
1782
  header_params = {}
1432
1783
 
@@ -1457,6 +1808,95 @@ class ClusterServiceApi(object):
1457
1808
  _request_timeout=params.get('_request_timeout'),
1458
1809
  collection_formats=collection_formats)
1459
1810
 
1811
+ def cluster_service_list_cluster_availabilities(self, **kwargs) -> 'V1ListClusterAvailabilitiesResponse': # noqa: E501
1812
+ """cluster_service_list_cluster_availabilities # noqa: E501
1813
+
1814
+ This method makes a synchronous HTTP request by default. To make an
1815
+ asynchronous HTTP request, please pass async_req=True
1816
+ >>> thread = api.cluster_service_list_cluster_availabilities(async_req=True)
1817
+ >>> result = thread.get()
1818
+
1819
+ :param async_req bool
1820
+ :param str org_id:
1821
+ :return: V1ListClusterAvailabilitiesResponse
1822
+ If the method is called asynchronously,
1823
+ returns the request thread.
1824
+ """
1825
+ kwargs['_return_http_data_only'] = True
1826
+ if kwargs.get('async_req'):
1827
+ return self.cluster_service_list_cluster_availabilities_with_http_info(**kwargs) # noqa: E501
1828
+ else:
1829
+ (data) = self.cluster_service_list_cluster_availabilities_with_http_info(**kwargs) # noqa: E501
1830
+ return data
1831
+
1832
+ def cluster_service_list_cluster_availabilities_with_http_info(self, **kwargs) -> 'V1ListClusterAvailabilitiesResponse': # noqa: E501
1833
+ """cluster_service_list_cluster_availabilities # noqa: E501
1834
+
1835
+ This method makes a synchronous HTTP request by default. To make an
1836
+ asynchronous HTTP request, please pass async_req=True
1837
+ >>> thread = api.cluster_service_list_cluster_availabilities_with_http_info(async_req=True)
1838
+ >>> result = thread.get()
1839
+
1840
+ :param async_req bool
1841
+ :param str org_id:
1842
+ :return: V1ListClusterAvailabilitiesResponse
1843
+ If the method is called asynchronously,
1844
+ returns the request thread.
1845
+ """
1846
+
1847
+ all_params = ['org_id'] # noqa: E501
1848
+ all_params.append('async_req')
1849
+ all_params.append('_return_http_data_only')
1850
+ all_params.append('_preload_content')
1851
+ all_params.append('_request_timeout')
1852
+
1853
+ params = locals()
1854
+ for key, val in six.iteritems(params['kwargs']):
1855
+ if key not in all_params:
1856
+ raise TypeError(
1857
+ "Got an unexpected keyword argument '%s'"
1858
+ " to method cluster_service_list_cluster_availabilities" % key
1859
+ )
1860
+ params[key] = val
1861
+ del params['kwargs']
1862
+
1863
+ collection_formats = {}
1864
+
1865
+ path_params = {}
1866
+
1867
+ query_params = []
1868
+ if 'org_id' in params:
1869
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1870
+
1871
+ header_params = {}
1872
+
1873
+ form_params = []
1874
+ local_var_files = {}
1875
+
1876
+ body_params = None
1877
+ # HTTP header `Accept`
1878
+ header_params['Accept'] = self.api_client.select_header_accept(
1879
+ ['application/json']) # noqa: E501
1880
+
1881
+ # Authentication setting
1882
+ auth_settings = [] # noqa: E501
1883
+
1884
+ return self.api_client.call_api(
1885
+ '/v1/core/cluster-availabilities', 'GET',
1886
+ path_params,
1887
+ query_params,
1888
+ header_params,
1889
+ body=body_params,
1890
+ post_params=form_params,
1891
+ files=local_var_files,
1892
+ response_type='V1ListClusterAvailabilitiesResponse', # noqa: E501
1893
+ auth_settings=auth_settings,
1894
+ async_req=params.get('async_req'),
1895
+ _return_http_data_only=params.get('_return_http_data_only'),
1896
+ _preload_content=params.get('_preload_content', True),
1897
+ _request_timeout=params.get('_request_timeout'),
1898
+ collection_formats=collection_formats)
1899
+
1460
1900
  def cluster_service_list_cluster_capacity_reservations(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
1461
1901
  """cluster_service_list_cluster_capacity_reservations # noqa: E501
1462
1902
 
@@ -1558,43 +1998,45 @@ class ClusterServiceApi(object):
1558
1998
  _request_timeout=params.get('_request_timeout'),
1559
1999
  collection_formats=collection_formats)
1560
2000
 
1561
- def cluster_service_list_cluster_instance_types(self, id: 'str', **kwargs) -> 'V1ListClusterInstanceTypesResponse': # noqa: E501
1562
- """cluster_service_list_cluster_instance_types # noqa: E501
2001
+ def cluster_service_list_cluster_proxies(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterProxiesResponse': # noqa: E501
2002
+ """cluster_service_list_cluster_proxies # noqa: E501
1563
2003
 
1564
2004
  This method makes a synchronous HTTP request by default. To make an
1565
2005
  asynchronous HTTP request, please pass async_req=True
1566
- >>> thread = api.cluster_service_list_cluster_instance_types(id, async_req=True)
2006
+ >>> thread = api.cluster_service_list_cluster_proxies(cluster_id, async_req=True)
1567
2007
  >>> result = thread.get()
1568
2008
 
1569
2009
  :param async_req bool
1570
- :param str id: (required)
1571
- :return: V1ListClusterInstanceTypesResponse
2010
+ :param str cluster_id: (required)
2011
+ :param str org_id:
2012
+ :return: V1ListClusterProxiesResponse
1572
2013
  If the method is called asynchronously,
1573
2014
  returns the request thread.
1574
2015
  """
1575
2016
  kwargs['_return_http_data_only'] = True
1576
2017
  if kwargs.get('async_req'):
1577
- return self.cluster_service_list_cluster_instance_types_with_http_info(id, **kwargs) # noqa: E501
2018
+ return self.cluster_service_list_cluster_proxies_with_http_info(cluster_id, **kwargs) # noqa: E501
1578
2019
  else:
1579
- (data) = self.cluster_service_list_cluster_instance_types_with_http_info(id, **kwargs) # noqa: E501
2020
+ (data) = self.cluster_service_list_cluster_proxies_with_http_info(cluster_id, **kwargs) # noqa: E501
1580
2021
  return data
1581
2022
 
1582
- def cluster_service_list_cluster_instance_types_with_http_info(self, id: 'str', **kwargs) -> 'V1ListClusterInstanceTypesResponse': # noqa: E501
1583
- """cluster_service_list_cluster_instance_types # noqa: E501
2023
+ def cluster_service_list_cluster_proxies_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterProxiesResponse': # noqa: E501
2024
+ """cluster_service_list_cluster_proxies # noqa: E501
1584
2025
 
1585
2026
  This method makes a synchronous HTTP request by default. To make an
1586
2027
  asynchronous HTTP request, please pass async_req=True
1587
- >>> thread = api.cluster_service_list_cluster_instance_types_with_http_info(id, async_req=True)
2028
+ >>> thread = api.cluster_service_list_cluster_proxies_with_http_info(cluster_id, async_req=True)
1588
2029
  >>> result = thread.get()
1589
2030
 
1590
2031
  :param async_req bool
1591
- :param str id: (required)
1592
- :return: V1ListClusterInstanceTypesResponse
2032
+ :param str cluster_id: (required)
2033
+ :param str org_id:
2034
+ :return: V1ListClusterProxiesResponse
1593
2035
  If the method is called asynchronously,
1594
2036
  returns the request thread.
1595
2037
  """
1596
2038
 
1597
- all_params = ['id'] # noqa: E501
2039
+ all_params = ['cluster_id', 'org_id'] # noqa: E501
1598
2040
  all_params.append('async_req')
1599
2041
  all_params.append('_return_http_data_only')
1600
2042
  all_params.append('_preload_content')
@@ -1605,22 +2047,24 @@ class ClusterServiceApi(object):
1605
2047
  if key not in all_params:
1606
2048
  raise TypeError(
1607
2049
  "Got an unexpected keyword argument '%s'"
1608
- " to method cluster_service_list_cluster_instance_types" % key
2050
+ " to method cluster_service_list_cluster_proxies" % key
1609
2051
  )
1610
2052
  params[key] = val
1611
2053
  del params['kwargs']
1612
- # verify the required parameter 'id' is set
1613
- if ('id' not in params or
1614
- params['id'] is None):
1615
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_list_cluster_instance_types`") # noqa: E501
2054
+ # verify the required parameter 'cluster_id' is set
2055
+ if ('cluster_id' not in params or
2056
+ params['cluster_id'] is None):
2057
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_cluster_proxies`") # noqa: E501
1616
2058
 
1617
2059
  collection_formats = {}
1618
2060
 
1619
2061
  path_params = {}
1620
- if 'id' in params:
1621
- path_params['id'] = params['id'] # noqa: E501
2062
+ if 'cluster_id' in params:
2063
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1622
2064
 
1623
2065
  query_params = []
2066
+ if 'org_id' in params:
2067
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1624
2068
 
1625
2069
  header_params = {}
1626
2070
 
@@ -1636,14 +2080,14 @@ class ClusterServiceApi(object):
1636
2080
  auth_settings = [] # noqa: E501
1637
2081
 
1638
2082
  return self.api_client.call_api(
1639
- '/v1/core/clusters/{id}/instance-types', 'GET',
2083
+ '/v1/core/clusters/{clusterId}/proxies', 'GET',
1640
2084
  path_params,
1641
2085
  query_params,
1642
2086
  header_params,
1643
2087
  body=body_params,
1644
2088
  post_params=form_params,
1645
2089
  files=local_var_files,
1646
- response_type='V1ListClusterInstanceTypesResponse', # noqa: E501
2090
+ response_type='V1ListClusterProxiesResponse', # noqa: E501
1647
2091
  auth_settings=auth_settings,
1648
2092
  async_req=params.get('async_req'),
1649
2093
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -1753,6 +2197,7 @@ class ClusterServiceApi(object):
1753
2197
  >>> result = thread.get()
1754
2198
 
1755
2199
  :param async_req bool
2200
+ :param bool include_pricing:
1756
2201
  :return: V1ListDefaultClusterAcceleratorsResponse
1757
2202
  If the method is called asynchronously,
1758
2203
  returns the request thread.
@@ -1773,12 +2218,13 @@ class ClusterServiceApi(object):
1773
2218
  >>> result = thread.get()
1774
2219
 
1775
2220
  :param async_req bool
2221
+ :param bool include_pricing:
1776
2222
  :return: V1ListDefaultClusterAcceleratorsResponse
1777
2223
  If the method is called asynchronously,
1778
2224
  returns the request thread.
1779
2225
  """
1780
2226
 
1781
- all_params = [] # noqa: E501
2227
+ all_params = ['include_pricing'] # noqa: E501
1782
2228
  all_params.append('async_req')
1783
2229
  all_params.append('_return_http_data_only')
1784
2230
  all_params.append('_preload_content')
@@ -1799,6 +2245,8 @@ class ClusterServiceApi(object):
1799
2245
  path_params = {}
1800
2246
 
1801
2247
  query_params = []
2248
+ if 'include_pricing' in params:
2249
+ query_params.append(('includePricing', params['include_pricing'])) # noqa: E501
1802
2250
 
1803
2251
  header_params = {}
1804
2252
 
@@ -2120,45 +2568,47 @@ class ClusterServiceApi(object):
2120
2568
  _request_timeout=params.get('_request_timeout'),
2121
2569
  collection_formats=collection_formats)
2122
2570
 
2123
- def cluster_service_update_cluster(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'V1UpdateClusterResponse': # noqa: E501
2124
- """cluster_service_update_cluster # noqa: E501
2571
+ def cluster_service_purchase_capacity_block(self, body: 'ClusterIdCapacityblockBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1PurchaseCapacityBlockResponse': # noqa: E501
2572
+ """cluster_service_purchase_capacity_block # noqa: E501
2125
2573
 
2126
2574
  This method makes a synchronous HTTP request by default. To make an
2127
2575
  asynchronous HTTP request, please pass async_req=True
2128
- >>> thread = api.cluster_service_update_cluster(body, id, async_req=True)
2576
+ >>> thread = api.cluster_service_purchase_capacity_block(body, project_id, cluster_id, async_req=True)
2129
2577
  >>> result = thread.get()
2130
2578
 
2131
2579
  :param async_req bool
2132
- :param ClustersIdBody body: (required)
2133
- :param str id: (required)
2134
- :return: V1UpdateClusterResponse
2580
+ :param ClusterIdCapacityblockBody body: (required)
2581
+ :param str project_id: (required)
2582
+ :param str cluster_id: (required)
2583
+ :return: V1PurchaseCapacityBlockResponse
2135
2584
  If the method is called asynchronously,
2136
2585
  returns the request thread.
2137
2586
  """
2138
2587
  kwargs['_return_http_data_only'] = True
2139
2588
  if kwargs.get('async_req'):
2140
- return self.cluster_service_update_cluster_with_http_info(body, id, **kwargs) # noqa: E501
2589
+ return self.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, **kwargs) # noqa: E501
2141
2590
  else:
2142
- (data) = self.cluster_service_update_cluster_with_http_info(body, id, **kwargs) # noqa: E501
2591
+ (data) = self.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, **kwargs) # noqa: E501
2143
2592
  return data
2144
2593
 
2145
- def cluster_service_update_cluster_with_http_info(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'V1UpdateClusterResponse': # noqa: E501
2146
- """cluster_service_update_cluster # noqa: E501
2594
+ def cluster_service_purchase_capacity_block_with_http_info(self, body: 'ClusterIdCapacityblockBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1PurchaseCapacityBlockResponse': # noqa: E501
2595
+ """cluster_service_purchase_capacity_block # noqa: E501
2147
2596
 
2148
2597
  This method makes a synchronous HTTP request by default. To make an
2149
2598
  asynchronous HTTP request, please pass async_req=True
2150
- >>> thread = api.cluster_service_update_cluster_with_http_info(body, id, async_req=True)
2599
+ >>> thread = api.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, async_req=True)
2151
2600
  >>> result = thread.get()
2152
2601
 
2153
2602
  :param async_req bool
2154
- :param ClustersIdBody body: (required)
2155
- :param str id: (required)
2156
- :return: V1UpdateClusterResponse
2603
+ :param ClusterIdCapacityblockBody body: (required)
2604
+ :param str project_id: (required)
2605
+ :param str cluster_id: (required)
2606
+ :return: V1PurchaseCapacityBlockResponse
2157
2607
  If the method is called asynchronously,
2158
2608
  returns the request thread.
2159
2609
  """
2160
2610
 
2161
- all_params = ['body', 'id'] # noqa: E501
2611
+ all_params = ['body', 'project_id', 'cluster_id'] # noqa: E501
2162
2612
  all_params.append('async_req')
2163
2613
  all_params.append('_return_http_data_only')
2164
2614
  all_params.append('_preload_content')
@@ -2169,16 +2619,329 @@ class ClusterServiceApi(object):
2169
2619
  if key not in all_params:
2170
2620
  raise TypeError(
2171
2621
  "Got an unexpected keyword argument '%s'"
2172
- " to method cluster_service_update_cluster" % key
2622
+ " to method cluster_service_purchase_capacity_block" % key
2173
2623
  )
2174
2624
  params[key] = val
2175
2625
  del params['kwargs']
2176
2626
  # verify the required parameter 'body' is set
2177
2627
  if ('body' not in params or
2178
2628
  params['body'] is None):
2179
- raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster`") # noqa: E501
2180
- # verify the required parameter 'id' is set
2181
- if ('id' not in params or
2629
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
2630
+ # verify the required parameter 'project_id' is set
2631
+ if ('project_id' not in params or
2632
+ params['project_id'] is None):
2633
+ raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
2634
+ # verify the required parameter 'cluster_id' is set
2635
+ if ('cluster_id' not in params or
2636
+ params['cluster_id'] is None):
2637
+ raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
2638
+
2639
+ collection_formats = {}
2640
+
2641
+ path_params = {}
2642
+ if 'project_id' in params:
2643
+ path_params['projectId'] = params['project_id'] # noqa: E501
2644
+ if 'cluster_id' in params:
2645
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2646
+
2647
+ query_params = []
2648
+
2649
+ header_params = {}
2650
+
2651
+ form_params = []
2652
+ local_var_files = {}
2653
+
2654
+ body_params = None
2655
+ if 'body' in params:
2656
+ body_params = params['body']
2657
+ # HTTP header `Accept`
2658
+ header_params['Accept'] = self.api_client.select_header_accept(
2659
+ ['application/json']) # noqa: E501
2660
+
2661
+ # HTTP header `Content-Type`
2662
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2663
+ ['application/json']) # noqa: E501
2664
+
2665
+ # Authentication setting
2666
+ auth_settings = [] # noqa: E501
2667
+
2668
+ return self.api_client.call_api(
2669
+ '/v1/projects/{projectId}/clusters/{clusterId}/capacity-block', 'POST',
2670
+ path_params,
2671
+ query_params,
2672
+ header_params,
2673
+ body=body_params,
2674
+ post_params=form_params,
2675
+ files=local_var_files,
2676
+ response_type='V1PurchaseCapacityBlockResponse', # noqa: E501
2677
+ auth_settings=auth_settings,
2678
+ async_req=params.get('async_req'),
2679
+ _return_http_data_only=params.get('_return_http_data_only'),
2680
+ _preload_content=params.get('_preload_content', True),
2681
+ _request_timeout=params.get('_request_timeout'),
2682
+ collection_formats=collection_formats)
2683
+
2684
+ def cluster_service_request_cluster_access(self, body: 'V1RequestClusterAccessRequest', **kwargs) -> 'V1RequestClusterAccessResponse': # noqa: E501
2685
+ """cluster_service_request_cluster_access # noqa: E501
2686
+
2687
+ This method makes a synchronous HTTP request by default. To make an
2688
+ asynchronous HTTP request, please pass async_req=True
2689
+ >>> thread = api.cluster_service_request_cluster_access(body, async_req=True)
2690
+ >>> result = thread.get()
2691
+
2692
+ :param async_req bool
2693
+ :param V1RequestClusterAccessRequest body: (required)
2694
+ :return: V1RequestClusterAccessResponse
2695
+ If the method is called asynchronously,
2696
+ returns the request thread.
2697
+ """
2698
+ kwargs['_return_http_data_only'] = True
2699
+ if kwargs.get('async_req'):
2700
+ return self.cluster_service_request_cluster_access_with_http_info(body, **kwargs) # noqa: E501
2701
+ else:
2702
+ (data) = self.cluster_service_request_cluster_access_with_http_info(body, **kwargs) # noqa: E501
2703
+ return data
2704
+
2705
+ def cluster_service_request_cluster_access_with_http_info(self, body: 'V1RequestClusterAccessRequest', **kwargs) -> 'V1RequestClusterAccessResponse': # noqa: E501
2706
+ """cluster_service_request_cluster_access # noqa: E501
2707
+
2708
+ This method makes a synchronous HTTP request by default. To make an
2709
+ asynchronous HTTP request, please pass async_req=True
2710
+ >>> thread = api.cluster_service_request_cluster_access_with_http_info(body, async_req=True)
2711
+ >>> result = thread.get()
2712
+
2713
+ :param async_req bool
2714
+ :param V1RequestClusterAccessRequest body: (required)
2715
+ :return: V1RequestClusterAccessResponse
2716
+ If the method is called asynchronously,
2717
+ returns the request thread.
2718
+ """
2719
+
2720
+ all_params = ['body'] # noqa: E501
2721
+ all_params.append('async_req')
2722
+ all_params.append('_return_http_data_only')
2723
+ all_params.append('_preload_content')
2724
+ all_params.append('_request_timeout')
2725
+
2726
+ params = locals()
2727
+ for key, val in six.iteritems(params['kwargs']):
2728
+ if key not in all_params:
2729
+ raise TypeError(
2730
+ "Got an unexpected keyword argument '%s'"
2731
+ " to method cluster_service_request_cluster_access" % key
2732
+ )
2733
+ params[key] = val
2734
+ del params['kwargs']
2735
+ # verify the required parameter 'body' is set
2736
+ if ('body' not in params or
2737
+ params['body'] is None):
2738
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_request_cluster_access`") # noqa: E501
2739
+
2740
+ collection_formats = {}
2741
+
2742
+ path_params = {}
2743
+
2744
+ query_params = []
2745
+
2746
+ header_params = {}
2747
+
2748
+ form_params = []
2749
+ local_var_files = {}
2750
+
2751
+ body_params = None
2752
+ if 'body' in params:
2753
+ body_params = params['body']
2754
+ # HTTP header `Accept`
2755
+ header_params['Accept'] = self.api_client.select_header_accept(
2756
+ ['application/json']) # noqa: E501
2757
+
2758
+ # HTTP header `Content-Type`
2759
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2760
+ ['application/json']) # noqa: E501
2761
+
2762
+ # Authentication setting
2763
+ auth_settings = [] # noqa: E501
2764
+
2765
+ return self.api_client.call_api(
2766
+ '/v1/core/request-cluster-access', 'POST',
2767
+ path_params,
2768
+ query_params,
2769
+ header_params,
2770
+ body=body_params,
2771
+ post_params=form_params,
2772
+ files=local_var_files,
2773
+ response_type='V1RequestClusterAccessResponse', # noqa: E501
2774
+ auth_settings=auth_settings,
2775
+ async_req=params.get('async_req'),
2776
+ _return_http_data_only=params.get('_return_http_data_only'),
2777
+ _preload_content=params.get('_preload_content', True),
2778
+ _request_timeout=params.get('_request_timeout'),
2779
+ collection_formats=collection_formats)
2780
+
2781
+ def cluster_service_server_check_in(self, body: 'ServersServerIdBody', server_id: 'str', **kwargs) -> 'V1ServerCheckInResponse': # noqa: E501
2782
+ """cluster_service_server_check_in # noqa: E501
2783
+
2784
+ This method makes a synchronous HTTP request by default. To make an
2785
+ asynchronous HTTP request, please pass async_req=True
2786
+ >>> thread = api.cluster_service_server_check_in(body, server_id, async_req=True)
2787
+ >>> result = thread.get()
2788
+
2789
+ :param async_req bool
2790
+ :param ServersServerIdBody body: (required)
2791
+ :param str server_id: (required)
2792
+ :return: V1ServerCheckInResponse
2793
+ If the method is called asynchronously,
2794
+ returns the request thread.
2795
+ """
2796
+ kwargs['_return_http_data_only'] = True
2797
+ if kwargs.get('async_req'):
2798
+ return self.cluster_service_server_check_in_with_http_info(body, server_id, **kwargs) # noqa: E501
2799
+ else:
2800
+ (data) = self.cluster_service_server_check_in_with_http_info(body, server_id, **kwargs) # noqa: E501
2801
+ return data
2802
+
2803
+ def cluster_service_server_check_in_with_http_info(self, body: 'ServersServerIdBody', server_id: 'str', **kwargs) -> 'V1ServerCheckInResponse': # noqa: E501
2804
+ """cluster_service_server_check_in # noqa: E501
2805
+
2806
+ This method makes a synchronous HTTP request by default. To make an
2807
+ asynchronous HTTP request, please pass async_req=True
2808
+ >>> thread = api.cluster_service_server_check_in_with_http_info(body, server_id, async_req=True)
2809
+ >>> result = thread.get()
2810
+
2811
+ :param async_req bool
2812
+ :param ServersServerIdBody body: (required)
2813
+ :param str server_id: (required)
2814
+ :return: V1ServerCheckInResponse
2815
+ If the method is called asynchronously,
2816
+ returns the request thread.
2817
+ """
2818
+
2819
+ all_params = ['body', 'server_id'] # noqa: E501
2820
+ all_params.append('async_req')
2821
+ all_params.append('_return_http_data_only')
2822
+ all_params.append('_preload_content')
2823
+ all_params.append('_request_timeout')
2824
+
2825
+ params = locals()
2826
+ for key, val in six.iteritems(params['kwargs']):
2827
+ if key not in all_params:
2828
+ raise TypeError(
2829
+ "Got an unexpected keyword argument '%s'"
2830
+ " to method cluster_service_server_check_in" % key
2831
+ )
2832
+ params[key] = val
2833
+ del params['kwargs']
2834
+ # verify the required parameter 'body' is set
2835
+ if ('body' not in params or
2836
+ params['body'] is None):
2837
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_server_check_in`") # noqa: E501
2838
+ # verify the required parameter 'server_id' is set
2839
+ if ('server_id' not in params or
2840
+ params['server_id'] is None):
2841
+ raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_server_check_in`") # noqa: E501
2842
+
2843
+ collection_formats = {}
2844
+
2845
+ path_params = {}
2846
+ if 'server_id' in params:
2847
+ path_params['serverId'] = params['server_id'] # noqa: E501
2848
+
2849
+ query_params = []
2850
+
2851
+ header_params = {}
2852
+
2853
+ form_params = []
2854
+ local_var_files = {}
2855
+
2856
+ body_params = None
2857
+ if 'body' in params:
2858
+ body_params = params['body']
2859
+ # HTTP header `Accept`
2860
+ header_params['Accept'] = self.api_client.select_header_accept(
2861
+ ['application/json']) # noqa: E501
2862
+
2863
+ # HTTP header `Content-Type`
2864
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2865
+ ['application/json']) # noqa: E501
2866
+
2867
+ # Authentication setting
2868
+ auth_settings = [] # noqa: E501
2869
+
2870
+ return self.api_client.call_api(
2871
+ '/v1/core/servers/{serverId}', 'POST',
2872
+ path_params,
2873
+ query_params,
2874
+ header_params,
2875
+ body=body_params,
2876
+ post_params=form_params,
2877
+ files=local_var_files,
2878
+ response_type='V1ServerCheckInResponse', # noqa: E501
2879
+ auth_settings=auth_settings,
2880
+ async_req=params.get('async_req'),
2881
+ _return_http_data_only=params.get('_return_http_data_only'),
2882
+ _preload_content=params.get('_preload_content', True),
2883
+ _request_timeout=params.get('_request_timeout'),
2884
+ collection_formats=collection_formats)
2885
+
2886
+ def cluster_service_update_cluster(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
2887
+ """cluster_service_update_cluster # noqa: E501
2888
+
2889
+ This method makes a synchronous HTTP request by default. To make an
2890
+ asynchronous HTTP request, please pass async_req=True
2891
+ >>> thread = api.cluster_service_update_cluster(body, id, async_req=True)
2892
+ >>> result = thread.get()
2893
+
2894
+ :param async_req bool
2895
+ :param ClustersIdBody body: (required)
2896
+ :param str id: (required)
2897
+ :return: Externalv1Cluster
2898
+ If the method is called asynchronously,
2899
+ returns the request thread.
2900
+ """
2901
+ kwargs['_return_http_data_only'] = True
2902
+ if kwargs.get('async_req'):
2903
+ return self.cluster_service_update_cluster_with_http_info(body, id, **kwargs) # noqa: E501
2904
+ else:
2905
+ (data) = self.cluster_service_update_cluster_with_http_info(body, id, **kwargs) # noqa: E501
2906
+ return data
2907
+
2908
+ def cluster_service_update_cluster_with_http_info(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
2909
+ """cluster_service_update_cluster # noqa: E501
2910
+
2911
+ This method makes a synchronous HTTP request by default. To make an
2912
+ asynchronous HTTP request, please pass async_req=True
2913
+ >>> thread = api.cluster_service_update_cluster_with_http_info(body, id, async_req=True)
2914
+ >>> result = thread.get()
2915
+
2916
+ :param async_req bool
2917
+ :param ClustersIdBody body: (required)
2918
+ :param str id: (required)
2919
+ :return: Externalv1Cluster
2920
+ If the method is called asynchronously,
2921
+ returns the request thread.
2922
+ """
2923
+
2924
+ all_params = ['body', 'id'] # noqa: E501
2925
+ all_params.append('async_req')
2926
+ all_params.append('_return_http_data_only')
2927
+ all_params.append('_preload_content')
2928
+ all_params.append('_request_timeout')
2929
+
2930
+ params = locals()
2931
+ for key, val in six.iteritems(params['kwargs']):
2932
+ if key not in all_params:
2933
+ raise TypeError(
2934
+ "Got an unexpected keyword argument '%s'"
2935
+ " to method cluster_service_update_cluster" % key
2936
+ )
2937
+ params[key] = val
2938
+ del params['kwargs']
2939
+ # verify the required parameter 'body' is set
2940
+ if ('body' not in params or
2941
+ params['body'] is None):
2942
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster`") # noqa: E501
2943
+ # verify the required parameter 'id' is set
2944
+ if ('id' not in params or
2182
2945
  params['id'] is None):
2183
2946
  raise ValueError("Missing the required parameter `id` when calling `cluster_service_update_cluster`") # noqa: E501
2184
2947
 
@@ -2217,7 +2980,7 @@ class ClusterServiceApi(object):
2217
2980
  body=body_params,
2218
2981
  post_params=form_params,
2219
2982
  files=local_var_files,
2220
- response_type='V1UpdateClusterResponse', # noqa: E501
2983
+ response_type='Externalv1Cluster', # noqa: E501
2221
2984
  auth_settings=auth_settings,
2222
2985
  async_req=params.get('async_req'),
2223
2986
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -2225,43 +2988,43 @@ class ClusterServiceApi(object):
2225
2988
  _request_timeout=params.get('_request_timeout'),
2226
2989
  collection_formats=collection_formats)
2227
2990
 
2228
- def cluster_service_update_cluster_accelerators(self, id: 'str', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
2991
+ def cluster_service_update_cluster_accelerators(self, body: 'V1UpdateClusterAcceleratorsRequest', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
2229
2992
  """cluster_service_update_cluster_accelerators # noqa: E501
2230
2993
 
2231
2994
  This method makes a synchronous HTTP request by default. To make an
2232
2995
  asynchronous HTTP request, please pass async_req=True
2233
- >>> thread = api.cluster_service_update_cluster_accelerators(id, async_req=True)
2996
+ >>> thread = api.cluster_service_update_cluster_accelerators(body, async_req=True)
2234
2997
  >>> result = thread.get()
2235
2998
 
2236
2999
  :param async_req bool
2237
- :param str id: (required)
3000
+ :param V1UpdateClusterAcceleratorsRequest body: (required)
2238
3001
  :return: V1UpdateClusterAcceleratorsResponse
2239
3002
  If the method is called asynchronously,
2240
3003
  returns the request thread.
2241
3004
  """
2242
3005
  kwargs['_return_http_data_only'] = True
2243
3006
  if kwargs.get('async_req'):
2244
- return self.cluster_service_update_cluster_accelerators_with_http_info(id, **kwargs) # noqa: E501
3007
+ return self.cluster_service_update_cluster_accelerators_with_http_info(body, **kwargs) # noqa: E501
2245
3008
  else:
2246
- (data) = self.cluster_service_update_cluster_accelerators_with_http_info(id, **kwargs) # noqa: E501
3009
+ (data) = self.cluster_service_update_cluster_accelerators_with_http_info(body, **kwargs) # noqa: E501
2247
3010
  return data
2248
3011
 
2249
- def cluster_service_update_cluster_accelerators_with_http_info(self, id: 'str', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
3012
+ def cluster_service_update_cluster_accelerators_with_http_info(self, body: 'V1UpdateClusterAcceleratorsRequest', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
2250
3013
  """cluster_service_update_cluster_accelerators # noqa: E501
2251
3014
 
2252
3015
  This method makes a synchronous HTTP request by default. To make an
2253
3016
  asynchronous HTTP request, please pass async_req=True
2254
- >>> thread = api.cluster_service_update_cluster_accelerators_with_http_info(id, async_req=True)
3017
+ >>> thread = api.cluster_service_update_cluster_accelerators_with_http_info(body, async_req=True)
2255
3018
  >>> result = thread.get()
2256
3019
 
2257
3020
  :param async_req bool
2258
- :param str id: (required)
3021
+ :param V1UpdateClusterAcceleratorsRequest body: (required)
2259
3022
  :return: V1UpdateClusterAcceleratorsResponse
2260
3023
  If the method is called asynchronously,
2261
3024
  returns the request thread.
2262
3025
  """
2263
3026
 
2264
- all_params = ['id'] # noqa: E501
3027
+ all_params = ['body'] # noqa: E501
2265
3028
  all_params.append('async_req')
2266
3029
  all_params.append('_return_http_data_only')
2267
3030
  all_params.append('_preload_content')
@@ -2276,16 +3039,14 @@ class ClusterServiceApi(object):
2276
3039
  )
2277
3040
  params[key] = val
2278
3041
  del params['kwargs']
2279
- # verify the required parameter 'id' is set
2280
- if ('id' not in params or
2281
- params['id'] is None):
2282
- raise ValueError("Missing the required parameter `id` when calling `cluster_service_update_cluster_accelerators`") # noqa: E501
3042
+ # verify the required parameter 'body' is set
3043
+ if ('body' not in params or
3044
+ params['body'] is None):
3045
+ raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster_accelerators`") # noqa: E501
2283
3046
 
2284
3047
  collection_formats = {}
2285
3048
 
2286
3049
  path_params = {}
2287
- if 'id' in params:
2288
- path_params['id'] = params['id'] # noqa: E501
2289
3050
 
2290
3051
  query_params = []
2291
3052
 
@@ -2295,15 +3056,21 @@ class ClusterServiceApi(object):
2295
3056
  local_var_files = {}
2296
3057
 
2297
3058
  body_params = None
3059
+ if 'body' in params:
3060
+ body_params = params['body']
2298
3061
  # HTTP header `Accept`
2299
3062
  header_params['Accept'] = self.api_client.select_header_accept(
2300
3063
  ['application/json']) # noqa: E501
2301
3064
 
3065
+ # HTTP header `Content-Type`
3066
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3067
+ ['application/json']) # noqa: E501
3068
+
2302
3069
  # Authentication setting
2303
3070
  auth_settings = [] # noqa: E501
2304
3071
 
2305
3072
  return self.api_client.call_api(
2306
- '/v1/core/clusters/{id}/accelerators', 'PUT',
3073
+ '/v1/core/clusters/accelerators', 'PUT',
2307
3074
  path_params,
2308
3075
  query_params,
2309
3076
  header_params,