lightning-sdk 2025.8.6rc2__py3-none-any.whl → 2025.11.5__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 (330) hide show
  1. lightning_sdk/__init__.py +13 -7
  2. lightning_sdk/__version__.py +3 -0
  3. lightning_sdk/agents.py +2 -1
  4. lightning_sdk/ai_hub.py +2 -1
  5. lightning_sdk/api/__init__.py +2 -0
  6. lightning_sdk/api/base_studio_api.py +13 -9
  7. lightning_sdk/api/cloud_account_api.py +31 -10
  8. lightning_sdk/api/deployment_api.py +27 -1
  9. lightning_sdk/api/job_api.py +16 -12
  10. lightning_sdk/api/license_api.py +26 -59
  11. lightning_sdk/api/llm_api.py +25 -2
  12. lightning_sdk/api/mmt_api.py +5 -2
  13. lightning_sdk/api/studio_api.py +252 -55
  14. lightning_sdk/api/teamspace_api.py +106 -30
  15. lightning_sdk/api/user_api.py +56 -2
  16. lightning_sdk/api/utils.py +108 -18
  17. lightning_sdk/base_studio.py +51 -27
  18. lightning_sdk/cli/__init__.py +1 -0
  19. lightning_sdk/cli/base_studio/__init__.py +10 -0
  20. lightning_sdk/cli/base_studio/list.py +43 -0
  21. lightning_sdk/cli/config/__init__.py +14 -0
  22. lightning_sdk/cli/config/get.py +57 -0
  23. lightning_sdk/cli/config/set.py +92 -0
  24. lightning_sdk/cli/config/show.py +9 -0
  25. lightning_sdk/cli/entrypoint.py +71 -71
  26. lightning_sdk/cli/groups.py +56 -0
  27. lightning_sdk/cli/job/__init__.py +7 -0
  28. lightning_sdk/cli/{clusters_menu.py → legacy/clusters_menu.py} +9 -6
  29. lightning_sdk/cli/{configure.py → legacy/configure.py} +2 -2
  30. lightning_sdk/cli/{connect.py → legacy/connect.py} +2 -2
  31. lightning_sdk/cli/{create.py → legacy/create.py} +12 -14
  32. lightning_sdk/cli/{delete.py → legacy/delete.py} +5 -5
  33. lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
  34. lightning_sdk/cli/{deploy → legacy/deploy}/_auth.py +5 -6
  35. lightning_sdk/cli/{deploy → legacy/deploy}/devbox.py +8 -2
  36. lightning_sdk/cli/{deploy → legacy/deploy}/serve.py +19 -8
  37. lightning_sdk/cli/{download.py → legacy/download.py} +14 -15
  38. lightning_sdk/cli/legacy/entrypoint.py +110 -0
  39. lightning_sdk/cli/{generate.py → legacy/generate.py} +1 -1
  40. lightning_sdk/cli/{inspection.py → legacy/inspection.py} +1 -1
  41. lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
  42. lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +1 -1
  43. lightning_sdk/cli/{list.py → legacy/list.py} +12 -13
  44. lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +1 -1
  45. lightning_sdk/cli/{open.py → legacy/open.py} +4 -4
  46. lightning_sdk/cli/{start.py → legacy/start.py} +1 -0
  47. lightning_sdk/cli/{stop.py → legacy/stop.py} +1 -1
  48. lightning_sdk/cli/{switch.py → legacy/switch.py} +1 -0
  49. lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +1 -1
  50. lightning_sdk/cli/{upload.py → legacy/upload.py} +7 -8
  51. lightning_sdk/cli/license/__init__.py +14 -0
  52. lightning_sdk/cli/license/get.py +15 -0
  53. lightning_sdk/cli/license/list.py +45 -0
  54. lightning_sdk/cli/license/set.py +13 -0
  55. lightning_sdk/cli/mmt/__init__.py +7 -0
  56. lightning_sdk/cli/studio/__init__.py +24 -0
  57. lightning_sdk/cli/studio/connect.py +139 -0
  58. lightning_sdk/cli/studio/create.py +96 -0
  59. lightning_sdk/cli/studio/delete.py +49 -0
  60. lightning_sdk/cli/studio/list.py +85 -0
  61. lightning_sdk/cli/studio/ssh.py +64 -0
  62. lightning_sdk/cli/studio/start.py +115 -0
  63. lightning_sdk/cli/studio/stop.py +45 -0
  64. lightning_sdk/cli/studio/switch.py +66 -0
  65. lightning_sdk/cli/utils/__init__.py +7 -0
  66. lightning_sdk/cli/utils/cloud_account_map.py +10 -0
  67. lightning_sdk/cli/utils/get_base_studio.py +24 -0
  68. lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
  69. lightning_sdk/cli/utils/logging.py +122 -0
  70. lightning_sdk/cli/utils/owner_selection.py +110 -0
  71. lightning_sdk/cli/utils/resolve.py +28 -0
  72. lightning_sdk/cli/utils/richt_print.py +35 -0
  73. lightning_sdk/cli/utils/save_to_config.py +27 -0
  74. lightning_sdk/cli/utils/ssh_connection.py +59 -0
  75. lightning_sdk/cli/utils/studio_selection.py +113 -0
  76. lightning_sdk/cli/utils/teamspace_selection.py +125 -0
  77. lightning_sdk/cli/vm/__init__.py +20 -0
  78. lightning_sdk/cli/vm/create.py +33 -0
  79. lightning_sdk/cli/vm/delete.py +25 -0
  80. lightning_sdk/cli/vm/list.py +30 -0
  81. lightning_sdk/cli/vm/ssh.py +31 -0
  82. lightning_sdk/cli/vm/start.py +60 -0
  83. lightning_sdk/cli/vm/stop.py +25 -0
  84. lightning_sdk/cli/vm/switch.py +38 -0
  85. lightning_sdk/constants.py +1 -0
  86. lightning_sdk/deployment/__init__.py +2 -0
  87. lightning_sdk/deployment/deployment.py +17 -2
  88. lightning_sdk/helpers.py +56 -37
  89. lightning_sdk/job/base.py +21 -6
  90. lightning_sdk/job/job.py +13 -0
  91. lightning_sdk/job/v1.py +11 -0
  92. lightning_sdk/job/v2.py +12 -0
  93. lightning_sdk/lightning_cloud/login.py +320 -10
  94. lightning_sdk/lightning_cloud/openapi/__init__.py +113 -3
  95. lightning_sdk/lightning_cloud/openapi/api/__init__.py +3 -0
  96. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +713 -75
  97. lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
  98. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +191 -1
  99. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +5 -1
  100. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +420 -0
  101. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +0 -97
  102. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +420 -0
  103. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
  104. lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
  105. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
  106. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1742 -94
  107. lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
  108. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
  109. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +108 -108
  110. lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +105 -0
  111. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +347 -0
  112. lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
  113. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +761 -1
  114. lightning_sdk/lightning_cloud/openapi/configuration.py +3 -19
  115. lightning_sdk/lightning_cloud/openapi/models/__init__.py +110 -3
  116. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +15 -15
  117. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
  118. lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
  119. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +131 -1
  120. lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
  121. lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
  122. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  123. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +105 -1
  124. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
  125. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +3 -81
  126. lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
  127. lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
  128. lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
  129. lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
  130. lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
  131. lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
  132. lightning_sdk/lightning_cloud/openapi/models/job_id_reportroutingtelemetry_body.py +123 -0
  133. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
  134. lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
  135. lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
  136. lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
  137. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  138. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
  139. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
  140. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  141. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  142. lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
  143. lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
  144. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  145. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
  146. lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
  147. lightning_sdk/lightning_cloud/openapi/models/update1.py +27 -1
  148. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +27 -1
  149. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
  150. lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
  151. lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
  152. lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
  153. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +27 -1
  154. lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +0 -1
  155. lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
  156. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  157. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
  158. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -0
  159. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +147 -17
  160. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
  161. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +53 -1
  162. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  163. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
  164. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  165. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
  166. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
  167. lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +21 -21
  168. lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
  169. lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
  170. lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
  171. lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
  172. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
  173. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
  174. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
  175. lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
  176. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +53 -1
  177. lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
  178. lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
  179. lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
  180. lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
  181. lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
  182. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  183. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +53 -1
  184. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  185. lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
  186. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
  187. lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
  188. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
  189. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
  190. lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
  191. lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
  192. lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
  193. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
  194. lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
  195. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +41 -15
  196. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  197. lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
  198. lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
  199. lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
  200. lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
  201. lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
  202. lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
  203. lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
  204. lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
  205. lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
  206. lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
  207. lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
  208. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
  209. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  210. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
  211. lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
  212. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
  213. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
  214. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +107 -3
  215. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
  216. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
  217. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
  218. lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
  219. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
  220. lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
  221. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
  222. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
  223. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
  224. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
  225. lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
  226. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
  227. lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
  228. lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
  229. lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
  230. lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
  231. lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
  232. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
  233. lightning_sdk/lightning_cloud/openapi/models/{v1_list_product_licenses_response.py → v1_list_license_response.py} +16 -16
  234. lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
  235. lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
  236. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
  237. lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
  238. lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
  239. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
  240. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
  241. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +1 -27
  242. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  243. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +29 -3
  244. lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
  245. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +53 -1
  246. lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
  247. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  248. lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
  249. lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
  250. lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
  251. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  252. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +361 -23
  253. lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
  254. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  255. lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
  256. lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
  257. lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +335 -23
  258. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  259. lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
  260. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +53 -1
  261. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
  262. lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
  263. lightning_sdk/lightning_cloud/openapi/models/{v1_product_license_check_response.py → v1_purchase_annual_upsell_request.py} +23 -23
  264. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
  265. lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
  266. lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
  267. lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
  268. lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
  269. lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
  270. lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
  271. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
  272. lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
  273. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +79 -1
  274. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  275. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
  276. lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
  277. lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
  278. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  279. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  280. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
  281. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
  282. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +133 -3
  283. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
  284. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
  285. lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
  286. lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
  287. lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
  288. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +3 -81
  289. lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
  290. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +41 -15
  291. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +444 -600
  292. lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
  293. lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
  294. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
  295. lightning_sdk/lightning_cloud/rest_client.py +48 -45
  296. lightning_sdk/lightning_cloud/utils/data_connection.py +51 -1
  297. lightning_sdk/llm/llm.py +175 -56
  298. lightning_sdk/llm/public_assistants.py +44 -7
  299. lightning_sdk/machine.py +21 -2
  300. lightning_sdk/mmt/base.py +7 -0
  301. lightning_sdk/mmt/mmt.py +11 -3
  302. lightning_sdk/mmt/v1.py +3 -1
  303. lightning_sdk/mmt/v2.py +4 -0
  304. lightning_sdk/owner.py +2 -1
  305. lightning_sdk/pipeline/steps.py +6 -0
  306. lightning_sdk/plugin.py +6 -1
  307. lightning_sdk/studio.py +294 -53
  308. lightning_sdk/teamspace.py +167 -7
  309. lightning_sdk/user.py +19 -1
  310. lightning_sdk/utils/config.py +179 -0
  311. lightning_sdk/utils/license.py +13 -0
  312. lightning_sdk/utils/logging.py +79 -0
  313. lightning_sdk/utils/names.py +1179 -0
  314. lightning_sdk/utils/progress.py +283 -0
  315. lightning_sdk/utils/resolve.py +82 -7
  316. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +2 -1
  317. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +328 -169
  318. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
  319. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +0 -435
  320. lightning_sdk/services/license.py +0 -363
  321. /lightning_sdk/cli/{deploy → legacy}/__init__.py +0 -0
  322. /lightning_sdk/cli/{ai_hub.py → legacy/ai_hub.py} +0 -0
  323. /lightning_sdk/cli/{docker_cli.py → legacy/docker_cli.py} +0 -0
  324. /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
  325. /lightning_sdk/cli/{run.py → legacy/run.py} +0 -0
  326. /lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +0 -0
  327. /lightning_sdk/cli/{coloring.py → utils/coloring.py} +0 -0
  328. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
  329. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +0 -0
  330. {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
@@ -43,53 +43,1521 @@ class K8SClusterServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
- def k8_s_cluster_service_list_container_metrics(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
46
+ def k8_s_cluster_service_create_kubernetes_template(self, body: 'ClusterIdKubernetestemplatesBody', cluster_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
47
+ """k8_s_cluster_service_create_kubernetes_template # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.k8_s_cluster_service_create_kubernetes_template(body, cluster_id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param ClusterIdKubernetestemplatesBody body: (required)
56
+ :param str cluster_id: (required)
57
+ :return: V1KubernetesTemplate
58
+ If the method is called asynchronously,
59
+ returns the request thread.
60
+ """
61
+ kwargs['_return_http_data_only'] = True
62
+ if kwargs.get('async_req'):
63
+ return self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, **kwargs) # noqa: E501
64
+ else:
65
+ (data) = self.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, **kwargs) # noqa: E501
66
+ return data
67
+
68
+ def k8_s_cluster_service_create_kubernetes_template_with_http_info(self, body: 'ClusterIdKubernetestemplatesBody', cluster_id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
69
+ """k8_s_cluster_service_create_kubernetes_template # noqa: E501
70
+
71
+ This method makes a synchronous HTTP request by default. To make an
72
+ asynchronous HTTP request, please pass async_req=True
73
+ >>> thread = api.k8_s_cluster_service_create_kubernetes_template_with_http_info(body, cluster_id, async_req=True)
74
+ >>> result = thread.get()
75
+
76
+ :param async_req bool
77
+ :param ClusterIdKubernetestemplatesBody body: (required)
78
+ :param str cluster_id: (required)
79
+ :return: V1KubernetesTemplate
80
+ If the method is called asynchronously,
81
+ returns the request thread.
82
+ """
83
+
84
+ all_params = ['body', 'cluster_id'] # noqa: E501
85
+ all_params.append('async_req')
86
+ all_params.append('_return_http_data_only')
87
+ all_params.append('_preload_content')
88
+ all_params.append('_request_timeout')
89
+
90
+ params = locals()
91
+ for key, val in six.iteritems(params['kwargs']):
92
+ if key not in all_params:
93
+ raise TypeError(
94
+ "Got an unexpected keyword argument '%s'"
95
+ " to method k8_s_cluster_service_create_kubernetes_template" % key
96
+ )
97
+ params[key] = val
98
+ del params['kwargs']
99
+ # verify the required parameter 'body' is set
100
+ if ('body' not in params or
101
+ params['body'] is None):
102
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_create_kubernetes_template`") # noqa: E501
103
+ # verify the required parameter 'cluster_id' is set
104
+ if ('cluster_id' not in params or
105
+ params['cluster_id'] is None):
106
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_create_kubernetes_template`") # noqa: E501
107
+
108
+ collection_formats = {}
109
+
110
+ path_params = {}
111
+ if 'cluster_id' in params:
112
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
113
+
114
+ query_params = []
115
+
116
+ header_params = {}
117
+
118
+ form_params = []
119
+ local_var_files = {}
120
+
121
+ body_params = None
122
+ if 'body' in params:
123
+ body_params = params['body']
124
+ # HTTP header `Accept`
125
+ header_params['Accept'] = self.api_client.select_header_accept(
126
+ ['application/json']) # noqa: E501
127
+
128
+ # HTTP header `Content-Type`
129
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
130
+ ['application/json']) # noqa: E501
131
+
132
+ # Authentication setting
133
+ auth_settings = [] # noqa: E501
134
+
135
+ return self.api_client.call_api(
136
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates', 'POST',
137
+ path_params,
138
+ query_params,
139
+ header_params,
140
+ body=body_params,
141
+ post_params=form_params,
142
+ files=local_var_files,
143
+ response_type='V1KubernetesTemplate', # noqa: E501
144
+ auth_settings=auth_settings,
145
+ async_req=params.get('async_req'),
146
+ _return_http_data_only=params.get('_return_http_data_only'),
147
+ _preload_content=params.get('_preload_content', True),
148
+ _request_timeout=params.get('_request_timeout'),
149
+ collection_formats=collection_formats)
150
+
151
+ def k8_s_cluster_service_delete_kubernetes_template(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
152
+ """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
153
+
154
+ This method makes a synchronous HTTP request by default. To make an
155
+ asynchronous HTTP request, please pass async_req=True
156
+ >>> thread = api.k8_s_cluster_service_delete_kubernetes_template(cluster_id, id, async_req=True)
157
+ >>> result = thread.get()
158
+
159
+ :param async_req bool
160
+ :param str cluster_id: (required)
161
+ :param str id: (required)
162
+ :return: V1DeleteKubernetesTemplateResponse
163
+ If the method is called asynchronously,
164
+ returns the request thread.
165
+ """
166
+ kwargs['_return_http_data_only'] = True
167
+ if kwargs.get('async_req'):
168
+ return self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
169
+ else:
170
+ (data) = self.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
171
+ return data
172
+
173
+ def k8_s_cluster_service_delete_kubernetes_template_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteKubernetesTemplateResponse': # noqa: E501
174
+ """k8_s_cluster_service_delete_kubernetes_template # noqa: E501
175
+
176
+ This method makes a synchronous HTTP request by default. To make an
177
+ asynchronous HTTP request, please pass async_req=True
178
+ >>> thread = api.k8_s_cluster_service_delete_kubernetes_template_with_http_info(cluster_id, id, async_req=True)
179
+ >>> result = thread.get()
180
+
181
+ :param async_req bool
182
+ :param str cluster_id: (required)
183
+ :param str id: (required)
184
+ :return: V1DeleteKubernetesTemplateResponse
185
+ If the method is called asynchronously,
186
+ returns the request thread.
187
+ """
188
+
189
+ all_params = ['cluster_id', 'id'] # noqa: E501
190
+ all_params.append('async_req')
191
+ all_params.append('_return_http_data_only')
192
+ all_params.append('_preload_content')
193
+ all_params.append('_request_timeout')
194
+
195
+ params = locals()
196
+ for key, val in six.iteritems(params['kwargs']):
197
+ if key not in all_params:
198
+ raise TypeError(
199
+ "Got an unexpected keyword argument '%s'"
200
+ " to method k8_s_cluster_service_delete_kubernetes_template" % key
201
+ )
202
+ params[key] = val
203
+ del params['kwargs']
204
+ # verify the required parameter 'cluster_id' is set
205
+ if ('cluster_id' not in params or
206
+ params['cluster_id'] is None):
207
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
208
+ # verify the required parameter 'id' is set
209
+ if ('id' not in params or
210
+ params['id'] is None):
211
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_delete_kubernetes_template`") # noqa: E501
212
+
213
+ collection_formats = {}
214
+
215
+ path_params = {}
216
+ if 'cluster_id' in params:
217
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
218
+ if 'id' in params:
219
+ path_params['id'] = params['id'] # noqa: E501
220
+
221
+ query_params = []
222
+
223
+ header_params = {}
224
+
225
+ form_params = []
226
+ local_var_files = {}
227
+
228
+ body_params = None
229
+ # HTTP header `Accept`
230
+ header_params['Accept'] = self.api_client.select_header_accept(
231
+ ['application/json']) # noqa: E501
232
+
233
+ # Authentication setting
234
+ auth_settings = [] # noqa: E501
235
+
236
+ return self.api_client.call_api(
237
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'DELETE',
238
+ path_params,
239
+ query_params,
240
+ header_params,
241
+ body=body_params,
242
+ post_params=form_params,
243
+ files=local_var_files,
244
+ response_type='V1DeleteKubernetesTemplateResponse', # noqa: E501
245
+ auth_settings=auth_settings,
246
+ async_req=params.get('async_req'),
247
+ _return_http_data_only=params.get('_return_http_data_only'),
248
+ _preload_content=params.get('_preload_content', True),
249
+ _request_timeout=params.get('_request_timeout'),
250
+ collection_formats=collection_formats)
251
+
252
+ def k8_s_cluster_service_get_kubernetes_template(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
253
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
254
+
255
+ This method makes a synchronous HTTP request by default. To make an
256
+ asynchronous HTTP request, please pass async_req=True
257
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template(cluster_id, id, async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ :param async_req bool
261
+ :param str cluster_id: (required)
262
+ :param str id: (required)
263
+ :return: V1KubernetesTemplate
264
+ If the method is called asynchronously,
265
+ returns the request thread.
266
+ """
267
+ kwargs['_return_http_data_only'] = True
268
+ if kwargs.get('async_req'):
269
+ return self.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
270
+ else:
271
+ (data) = self.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, **kwargs) # noqa: E501
272
+ return data
273
+
274
+ def k8_s_cluster_service_get_kubernetes_template_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
275
+ """k8_s_cluster_service_get_kubernetes_template # noqa: E501
276
+
277
+ This method makes a synchronous HTTP request by default. To make an
278
+ asynchronous HTTP request, please pass async_req=True
279
+ >>> thread = api.k8_s_cluster_service_get_kubernetes_template_with_http_info(cluster_id, id, async_req=True)
280
+ >>> result = thread.get()
281
+
282
+ :param async_req bool
283
+ :param str cluster_id: (required)
284
+ :param str id: (required)
285
+ :return: V1KubernetesTemplate
286
+ If the method is called asynchronously,
287
+ returns the request thread.
288
+ """
289
+
290
+ all_params = ['cluster_id', 'id'] # noqa: E501
291
+ all_params.append('async_req')
292
+ all_params.append('_return_http_data_only')
293
+ all_params.append('_preload_content')
294
+ all_params.append('_request_timeout')
295
+
296
+ params = locals()
297
+ for key, val in six.iteritems(params['kwargs']):
298
+ if key not in all_params:
299
+ raise TypeError(
300
+ "Got an unexpected keyword argument '%s'"
301
+ " to method k8_s_cluster_service_get_kubernetes_template" % key
302
+ )
303
+ params[key] = val
304
+ del params['kwargs']
305
+ # verify the required parameter 'cluster_id' is set
306
+ if ('cluster_id' not in params or
307
+ params['cluster_id'] is None):
308
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
309
+ # verify the required parameter 'id' is set
310
+ if ('id' not in params or
311
+ params['id'] is None):
312
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_get_kubernetes_template`") # noqa: E501
313
+
314
+ collection_formats = {}
315
+
316
+ path_params = {}
317
+ if 'cluster_id' in params:
318
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
319
+ if 'id' in params:
320
+ path_params['id'] = params['id'] # noqa: E501
321
+
322
+ query_params = []
323
+
324
+ header_params = {}
325
+
326
+ form_params = []
327
+ local_var_files = {}
328
+
329
+ body_params = None
330
+ # HTTP header `Accept`
331
+ header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json']) # noqa: E501
333
+
334
+ # Authentication setting
335
+ auth_settings = [] # noqa: E501
336
+
337
+ return self.api_client.call_api(
338
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'GET',
339
+ path_params,
340
+ query_params,
341
+ header_params,
342
+ body=body_params,
343
+ post_params=form_params,
344
+ files=local_var_files,
345
+ response_type='V1KubernetesTemplate', # noqa: E501
346
+ auth_settings=auth_settings,
347
+ async_req=params.get('async_req'),
348
+ _return_http_data_only=params.get('_return_http_data_only'),
349
+ _preload_content=params.get('_preload_content', True),
350
+ _request_timeout=params.get('_request_timeout'),
351
+ collection_formats=collection_formats)
352
+
353
+ def k8_s_cluster_service_list_aggregated_node_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
354
+ """k8_s_cluster_service_list_aggregated_node_metrics # 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.k8_s_cluster_service_list_aggregated_node_metrics(cluster_id, node_name, async_req=True)
359
+ >>> result = thread.get()
360
+
361
+ :param async_req bool
362
+ :param str cluster_id: (required)
363
+ :param str node_name: (required)
364
+ :param datetime start: Date range.
365
+ :param datetime end:
366
+ :return: V1ListNodeMetricsResponse
367
+ If the method is called asynchronously,
368
+ returns the request thread.
369
+ """
370
+ kwargs['_return_http_data_only'] = True
371
+ if kwargs.get('async_req'):
372
+ return self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
373
+ else:
374
+ (data) = self.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
375
+ return data
376
+
377
+ def k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
378
+ """k8_s_cluster_service_list_aggregated_node_metrics # noqa: E501
379
+
380
+ This method makes a synchronous HTTP request by default. To make an
381
+ asynchronous HTTP request, please pass async_req=True
382
+ >>> thread = api.k8_s_cluster_service_list_aggregated_node_metrics_with_http_info(cluster_id, node_name, async_req=True)
383
+ >>> result = thread.get()
384
+
385
+ :param async_req bool
386
+ :param str cluster_id: (required)
387
+ :param str node_name: (required)
388
+ :param datetime start: Date range.
389
+ :param datetime end:
390
+ :return: V1ListNodeMetricsResponse
391
+ If the method is called asynchronously,
392
+ returns the request thread.
393
+ """
394
+
395
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
396
+ all_params.append('async_req')
397
+ all_params.append('_return_http_data_only')
398
+ all_params.append('_preload_content')
399
+ all_params.append('_request_timeout')
400
+
401
+ params = locals()
402
+ for key, val in six.iteritems(params['kwargs']):
403
+ if key not in all_params:
404
+ raise TypeError(
405
+ "Got an unexpected keyword argument '%s'"
406
+ " to method k8_s_cluster_service_list_aggregated_node_metrics" % key
407
+ )
408
+ params[key] = val
409
+ del params['kwargs']
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 `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
414
+ # verify the required parameter 'node_name' is set
415
+ if ('node_name' not in params or
416
+ params['node_name'] is None):
417
+ raise ValueError("Missing the required parameter `node_name` when calling `k8_s_cluster_service_list_aggregated_node_metrics`") # noqa: E501
418
+
419
+ collection_formats = {}
420
+
421
+ path_params = {}
422
+ if 'cluster_id' in params:
423
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
424
+ if 'node_name' in params:
425
+ path_params['nodeName'] = params['node_name'] # noqa: E501
426
+
427
+ query_params = []
428
+ if 'start' in params:
429
+ query_params.append(('start', params['start'])) # noqa: E501
430
+ if 'end' in params:
431
+ query_params.append(('end', params['end'])) # noqa: E501
432
+
433
+ header_params = {}
434
+
435
+ form_params = []
436
+ local_var_files = {}
437
+
438
+ body_params = None
439
+ # HTTP header `Accept`
440
+ header_params['Accept'] = self.api_client.select_header_accept(
441
+ ['application/json']) # noqa: E501
442
+
443
+ # Authentication setting
444
+ auth_settings = [] # noqa: E501
445
+
446
+ return self.api_client.call_api(
447
+ '/v1/k8s-clusters/{clusterId}/aggregated-metrics/nodes/{nodeName}', 'GET',
448
+ path_params,
449
+ query_params,
450
+ header_params,
451
+ body=body_params,
452
+ post_params=form_params,
453
+ files=local_var_files,
454
+ response_type='V1ListNodeMetricsResponse', # noqa: E501
455
+ auth_settings=auth_settings,
456
+ async_req=params.get('async_req'),
457
+ _return_http_data_only=params.get('_return_http_data_only'),
458
+ _preload_content=params.get('_preload_content', True),
459
+ _request_timeout=params.get('_request_timeout'),
460
+ collection_formats=collection_formats)
461
+
462
+ def k8_s_cluster_service_list_aggregated_pod_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
463
+ """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
464
+
465
+ This method makes a synchronous HTTP request by default. To make an
466
+ asynchronous HTTP request, please pass async_req=True
467
+ >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics(cluster_id, async_req=True)
468
+ >>> result = thread.get()
469
+
470
+ :param async_req bool
471
+ :param str cluster_id: (required)
472
+ :param str namespace:
473
+ :param datetime start: Date range.
474
+ :param datetime end:
475
+ :return: V1ListAggregatedPodMetricsResponse
476
+ If the method is called asynchronously,
477
+ returns the request thread.
478
+ """
479
+ kwargs['_return_http_data_only'] = True
480
+ if kwargs.get('async_req'):
481
+ return self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
482
+ else:
483
+ (data) = self.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
484
+ return data
485
+
486
+ def k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListAggregatedPodMetricsResponse': # noqa: E501
487
+ """k8_s_cluster_service_list_aggregated_pod_metrics # noqa: E501
488
+
489
+ This method makes a synchronous HTTP request by default. To make an
490
+ asynchronous HTTP request, please pass async_req=True
491
+ >>> thread = api.k8_s_cluster_service_list_aggregated_pod_metrics_with_http_info(cluster_id, async_req=True)
492
+ >>> result = thread.get()
493
+
494
+ :param async_req bool
495
+ :param str cluster_id: (required)
496
+ :param str namespace:
497
+ :param datetime start: Date range.
498
+ :param datetime end:
499
+ :return: V1ListAggregatedPodMetricsResponse
500
+ If the method is called asynchronously,
501
+ returns the request thread.
502
+ """
503
+
504
+ all_params = ['cluster_id', 'namespace', 'start', 'end'] # noqa: E501
505
+ all_params.append('async_req')
506
+ all_params.append('_return_http_data_only')
507
+ all_params.append('_preload_content')
508
+ all_params.append('_request_timeout')
509
+
510
+ params = locals()
511
+ for key, val in six.iteritems(params['kwargs']):
512
+ if key not in all_params:
513
+ raise TypeError(
514
+ "Got an unexpected keyword argument '%s'"
515
+ " to method k8_s_cluster_service_list_aggregated_pod_metrics" % key
516
+ )
517
+ params[key] = val
518
+ del params['kwargs']
519
+ # verify the required parameter 'cluster_id' is set
520
+ if ('cluster_id' not in params or
521
+ params['cluster_id'] is None):
522
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_aggregated_pod_metrics`") # noqa: E501
523
+
524
+ collection_formats = {}
525
+
526
+ path_params = {}
527
+ if 'cluster_id' in params:
528
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
529
+
530
+ query_params = []
531
+ if 'namespace' in params:
532
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
533
+ if 'start' in params:
534
+ query_params.append(('start', params['start'])) # noqa: E501
535
+ if 'end' in params:
536
+ query_params.append(('end', params['end'])) # noqa: E501
537
+
538
+ header_params = {}
539
+
540
+ form_params = []
541
+ local_var_files = {}
542
+
543
+ body_params = None
544
+ # HTTP header `Accept`
545
+ header_params['Accept'] = self.api_client.select_header_accept(
546
+ ['application/json']) # noqa: E501
547
+
548
+ # Authentication setting
549
+ auth_settings = [] # noqa: E501
550
+
551
+ return self.api_client.call_api(
552
+ '/v1/k8s-clusters/{clusterId}/aggregated-metrics/pods', 'GET',
553
+ path_params,
554
+ query_params,
555
+ header_params,
556
+ body=body_params,
557
+ post_params=form_params,
558
+ files=local_var_files,
559
+ response_type='V1ListAggregatedPodMetricsResponse', # noqa: E501
560
+ auth_settings=auth_settings,
561
+ async_req=params.get('async_req'),
562
+ _return_http_data_only=params.get('_return_http_data_only'),
563
+ _preload_content=params.get('_preload_content', True),
564
+ _request_timeout=params.get('_request_timeout'),
565
+ collection_formats=collection_formats)
566
+
567
+ def k8_s_cluster_service_list_cluster_metric_timestamps(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
568
+ """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
569
+
570
+ This method makes a synchronous HTTP request by default. To make an
571
+ asynchronous HTTP request, please pass async_req=True
572
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps(cluster_id, async_req=True)
573
+ >>> result = thread.get()
574
+
575
+ :param async_req bool
576
+ :param str cluster_id: (required)
577
+ :param str project_id:
578
+ :return: V1ListClusterMetricTimestampsResponse
579
+ If the method is called asynchronously,
580
+ returns the request thread.
581
+ """
582
+ kwargs['_return_http_data_only'] = True
583
+ if kwargs.get('async_req'):
584
+ return self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, **kwargs) # noqa: E501
585
+ else:
586
+ (data) = self.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, **kwargs) # noqa: E501
587
+ return data
588
+
589
+ def k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
590
+ """k8_s_cluster_service_list_cluster_metric_timestamps # noqa: E501
591
+
592
+ This method makes a synchronous HTTP request by default. To make an
593
+ asynchronous HTTP request, please pass async_req=True
594
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps_with_http_info(cluster_id, async_req=True)
595
+ >>> result = thread.get()
596
+
597
+ :param async_req bool
598
+ :param str cluster_id: (required)
599
+ :param str project_id:
600
+ :return: V1ListClusterMetricTimestampsResponse
601
+ If the method is called asynchronously,
602
+ returns the request thread.
603
+ """
604
+
605
+ all_params = ['cluster_id', 'project_id'] # noqa: E501
606
+ all_params.append('async_req')
607
+ all_params.append('_return_http_data_only')
608
+ all_params.append('_preload_content')
609
+ all_params.append('_request_timeout')
610
+
611
+ params = locals()
612
+ for key, val in six.iteritems(params['kwargs']):
613
+ if key not in all_params:
614
+ raise TypeError(
615
+ "Got an unexpected keyword argument '%s'"
616
+ " to method k8_s_cluster_service_list_cluster_metric_timestamps" % key
617
+ )
618
+ params[key] = val
619
+ del params['kwargs']
620
+ # verify the required parameter 'cluster_id' is set
621
+ if ('cluster_id' not in params or
622
+ params['cluster_id'] is None):
623
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps`") # noqa: E501
624
+
625
+ collection_formats = {}
626
+
627
+ path_params = {}
628
+ if 'cluster_id' in params:
629
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
630
+
631
+ query_params = []
632
+ if 'project_id' in params:
633
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
634
+
635
+ header_params = {}
636
+
637
+ form_params = []
638
+ local_var_files = {}
639
+
640
+ body_params = None
641
+ # HTTP header `Accept`
642
+ header_params['Accept'] = self.api_client.select_header_accept(
643
+ ['application/json']) # noqa: E501
644
+
645
+ # Authentication setting
646
+ auth_settings = [] # noqa: E501
647
+
648
+ return self.api_client.call_api(
649
+ '/v1/k8s-clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
650
+ path_params,
651
+ query_params,
652
+ header_params,
653
+ body=body_params,
654
+ post_params=form_params,
655
+ files=local_var_files,
656
+ response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
657
+ auth_settings=auth_settings,
658
+ async_req=params.get('async_req'),
659
+ _return_http_data_only=params.get('_return_http_data_only'),
660
+ _preload_content=params.get('_preload_content', True),
661
+ _request_timeout=params.get('_request_timeout'),
662
+ collection_formats=collection_formats)
663
+
664
+ def k8_s_cluster_service_list_cluster_metric_timestamps2(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
665
+ """k8_s_cluster_service_list_cluster_metric_timestamps2 # noqa: E501
666
+
667
+ This method makes a synchronous HTTP request by default. To make an
668
+ asynchronous HTTP request, please pass async_req=True
669
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps2(project_id, cluster_id, async_req=True)
670
+ >>> result = thread.get()
671
+
672
+ :param async_req bool
673
+ :param str project_id: (required)
674
+ :param str cluster_id: (required)
675
+ :return: V1ListClusterMetricTimestampsResponse
676
+ If the method is called asynchronously,
677
+ returns the request thread.
678
+ """
679
+ kwargs['_return_http_data_only'] = True
680
+ if kwargs.get('async_req'):
681
+ return self.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
682
+ else:
683
+ (data) = self.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
684
+ return data
685
+
686
+ def k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricTimestampsResponse': # noqa: E501
687
+ """k8_s_cluster_service_list_cluster_metric_timestamps2 # noqa: E501
688
+
689
+ This method makes a synchronous HTTP request by default. To make an
690
+ asynchronous HTTP request, please pass async_req=True
691
+ >>> thread = api.k8_s_cluster_service_list_cluster_metric_timestamps2_with_http_info(project_id, cluster_id, async_req=True)
692
+ >>> result = thread.get()
693
+
694
+ :param async_req bool
695
+ :param str project_id: (required)
696
+ :param str cluster_id: (required)
697
+ :return: V1ListClusterMetricTimestampsResponse
698
+ If the method is called asynchronously,
699
+ returns the request thread.
700
+ """
701
+
702
+ all_params = ['project_id', 'cluster_id'] # noqa: E501
703
+ all_params.append('async_req')
704
+ all_params.append('_return_http_data_only')
705
+ all_params.append('_preload_content')
706
+ all_params.append('_request_timeout')
707
+
708
+ params = locals()
709
+ for key, val in six.iteritems(params['kwargs']):
710
+ if key not in all_params:
711
+ raise TypeError(
712
+ "Got an unexpected keyword argument '%s'"
713
+ " to method k8_s_cluster_service_list_cluster_metric_timestamps2" % key
714
+ )
715
+ params[key] = val
716
+ del params['kwargs']
717
+ # verify the required parameter 'project_id' is set
718
+ if ('project_id' not in params or
719
+ params['project_id'] is None):
720
+ raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps2`") # noqa: E501
721
+ # verify the required parameter 'cluster_id' is set
722
+ if ('cluster_id' not in params or
723
+ params['cluster_id'] is None):
724
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metric_timestamps2`") # noqa: E501
725
+
726
+ collection_formats = {}
727
+
728
+ path_params = {}
729
+ if 'project_id' in params:
730
+ path_params['projectId'] = params['project_id'] # noqa: E501
731
+ if 'cluster_id' in params:
732
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
733
+
734
+ query_params = []
735
+
736
+ header_params = {}
737
+
738
+ form_params = []
739
+ local_var_files = {}
740
+
741
+ body_params = None
742
+ # HTTP header `Accept`
743
+ header_params['Accept'] = self.api_client.select_header_accept(
744
+ ['application/json']) # noqa: E501
745
+
746
+ # Authentication setting
747
+ auth_settings = [] # noqa: E501
748
+
749
+ return self.api_client.call_api(
750
+ '/v1/projects/{projectId}/clusters/{clusterId}/cluster-metrics-timestamps', 'GET',
751
+ path_params,
752
+ query_params,
753
+ header_params,
754
+ body=body_params,
755
+ post_params=form_params,
756
+ files=local_var_files,
757
+ response_type='V1ListClusterMetricTimestampsResponse', # noqa: E501
758
+ auth_settings=auth_settings,
759
+ async_req=params.get('async_req'),
760
+ _return_http_data_only=params.get('_return_http_data_only'),
761
+ _preload_content=params.get('_preload_content', True),
762
+ _request_timeout=params.get('_request_timeout'),
763
+ collection_formats=collection_formats)
764
+
765
+ def k8_s_cluster_service_list_cluster_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
766
+ """k8_s_cluster_service_list_cluster_metrics # noqa: E501
767
+
768
+ This method makes a synchronous HTTP request by default. To make an
769
+ asynchronous HTTP request, please pass async_req=True
770
+ >>> thread = api.k8_s_cluster_service_list_cluster_metrics(cluster_id, async_req=True)
771
+ >>> result = thread.get()
772
+
773
+ :param async_req bool
774
+ :param str cluster_id: (required)
775
+ :param datetime start: Date range.
776
+ :param datetime end:
777
+ :return: V1ListClusterMetricsResponse
778
+ If the method is called asynchronously,
779
+ returns the request thread.
780
+ """
781
+ kwargs['_return_http_data_only'] = True
782
+ if kwargs.get('async_req'):
783
+ return self.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
784
+ else:
785
+ (data) = self.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
786
+ return data
787
+
788
+ def k8_s_cluster_service_list_cluster_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterMetricsResponse': # noqa: E501
789
+ """k8_s_cluster_service_list_cluster_metrics # noqa: E501
790
+
791
+ This method makes a synchronous HTTP request by default. To make an
792
+ asynchronous HTTP request, please pass async_req=True
793
+ >>> thread = api.k8_s_cluster_service_list_cluster_metrics_with_http_info(cluster_id, async_req=True)
794
+ >>> result = thread.get()
795
+
796
+ :param async_req bool
797
+ :param str cluster_id: (required)
798
+ :param datetime start: Date range.
799
+ :param datetime end:
800
+ :return: V1ListClusterMetricsResponse
801
+ If the method is called asynchronously,
802
+ returns the request thread.
803
+ """
804
+
805
+ all_params = ['cluster_id', 'start', 'end'] # noqa: E501
806
+ all_params.append('async_req')
807
+ all_params.append('_return_http_data_only')
808
+ all_params.append('_preload_content')
809
+ all_params.append('_request_timeout')
810
+
811
+ params = locals()
812
+ for key, val in six.iteritems(params['kwargs']):
813
+ if key not in all_params:
814
+ raise TypeError(
815
+ "Got an unexpected keyword argument '%s'"
816
+ " to method k8_s_cluster_service_list_cluster_metrics" % key
817
+ )
818
+ params[key] = val
819
+ del params['kwargs']
820
+ # verify the required parameter 'cluster_id' is set
821
+ if ('cluster_id' not in params or
822
+ params['cluster_id'] is None):
823
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_metrics`") # noqa: E501
824
+
825
+ collection_formats = {}
826
+
827
+ path_params = {}
828
+ if 'cluster_id' in params:
829
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
830
+
831
+ query_params = []
832
+ if 'start' in params:
833
+ query_params.append(('start', params['start'])) # noqa: E501
834
+ if 'end' in params:
835
+ query_params.append(('end', params['end'])) # noqa: E501
836
+
837
+ header_params = {}
838
+
839
+ form_params = []
840
+ local_var_files = {}
841
+
842
+ body_params = None
843
+ # HTTP header `Accept`
844
+ header_params['Accept'] = self.api_client.select_header_accept(
845
+ ['application/json']) # noqa: E501
846
+
847
+ # Authentication setting
848
+ auth_settings = [] # noqa: E501
849
+
850
+ return self.api_client.call_api(
851
+ '/v1/k8s-clusters/{clusterId}/cluster-metrics', 'GET',
852
+ path_params,
853
+ query_params,
854
+ header_params,
855
+ body=body_params,
856
+ post_params=form_params,
857
+ files=local_var_files,
858
+ response_type='V1ListClusterMetricsResponse', # noqa: E501
859
+ auth_settings=auth_settings,
860
+ async_req=params.get('async_req'),
861
+ _return_http_data_only=params.get('_return_http_data_only'),
862
+ _preload_content=params.get('_preload_content', True),
863
+ _request_timeout=params.get('_request_timeout'),
864
+ collection_formats=collection_formats)
865
+
866
+ def k8_s_cluster_service_list_cluster_namespace_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
867
+ """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
868
+
869
+ This method makes a synchronous HTTP request by default. To make an
870
+ asynchronous HTTP request, please pass async_req=True
871
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics(cluster_id, async_req=True)
872
+ >>> result = thread.get()
873
+
874
+ :param async_req bool
875
+ :param str cluster_id: (required)
876
+ :param str namespace:
877
+ :param datetime start: Date range.
878
+ :param datetime end:
879
+ :return: V1ListClusterNamespaceMetricsResponse
880
+ If the method is called asynchronously,
881
+ returns the request thread.
882
+ """
883
+ kwargs['_return_http_data_only'] = True
884
+ if kwargs.get('async_req'):
885
+ return self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
886
+ else:
887
+ (data) = self.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
888
+ return data
889
+
890
+ def k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceMetricsResponse': # noqa: E501
891
+ """k8_s_cluster_service_list_cluster_namespace_metrics # noqa: E501
892
+
893
+ This method makes a synchronous HTTP request by default. To make an
894
+ asynchronous HTTP request, please pass async_req=True
895
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_metrics_with_http_info(cluster_id, async_req=True)
896
+ >>> result = thread.get()
897
+
898
+ :param async_req bool
899
+ :param str cluster_id: (required)
900
+ :param str namespace:
901
+ :param datetime start: Date range.
902
+ :param datetime end:
903
+ :return: V1ListClusterNamespaceMetricsResponse
904
+ If the method is called asynchronously,
905
+ returns the request thread.
906
+ """
907
+
908
+ all_params = ['cluster_id', 'namespace', 'start', 'end'] # noqa: E501
909
+ all_params.append('async_req')
910
+ all_params.append('_return_http_data_only')
911
+ all_params.append('_preload_content')
912
+ all_params.append('_request_timeout')
913
+
914
+ params = locals()
915
+ for key, val in six.iteritems(params['kwargs']):
916
+ if key not in all_params:
917
+ raise TypeError(
918
+ "Got an unexpected keyword argument '%s'"
919
+ " to method k8_s_cluster_service_list_cluster_namespace_metrics" % key
920
+ )
921
+ params[key] = val
922
+ del params['kwargs']
923
+ # verify the required parameter 'cluster_id' is set
924
+ if ('cluster_id' not in params or
925
+ params['cluster_id'] is None):
926
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_metrics`") # noqa: E501
927
+
928
+ collection_formats = {}
929
+
930
+ path_params = {}
931
+ if 'cluster_id' in params:
932
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
933
+
934
+ query_params = []
935
+ if 'namespace' in params:
936
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
937
+ if 'start' in params:
938
+ query_params.append(('start', params['start'])) # noqa: E501
939
+ if 'end' in params:
940
+ query_params.append(('end', params['end'])) # noqa: E501
941
+
942
+ header_params = {}
943
+
944
+ form_params = []
945
+ local_var_files = {}
946
+
947
+ body_params = None
948
+ # HTTP header `Accept`
949
+ header_params['Accept'] = self.api_client.select_header_accept(
950
+ ['application/json']) # noqa: E501
951
+
952
+ # Authentication setting
953
+ auth_settings = [] # noqa: E501
954
+
955
+ return self.api_client.call_api(
956
+ '/v1/k8s-clusters/{clusterId}/cluster-namespace-metrics', 'GET',
957
+ path_params,
958
+ query_params,
959
+ header_params,
960
+ body=body_params,
961
+ post_params=form_params,
962
+ files=local_var_files,
963
+ response_type='V1ListClusterNamespaceMetricsResponse', # noqa: E501
964
+ auth_settings=auth_settings,
965
+ async_req=params.get('async_req'),
966
+ _return_http_data_only=params.get('_return_http_data_only'),
967
+ _preload_content=params.get('_preload_content', True),
968
+ _request_timeout=params.get('_request_timeout'),
969
+ collection_formats=collection_formats)
970
+
971
+ def k8_s_cluster_service_list_cluster_namespace_user_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
972
+ """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
973
+
974
+ This method makes a synchronous HTTP request by default. To make an
975
+ asynchronous HTTP request, please pass async_req=True
976
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics(cluster_id, async_req=True)
977
+ >>> result = thread.get()
978
+
979
+ :param async_req bool
980
+ :param str cluster_id: (required)
981
+ :param str namespace:
982
+ :param str user_id:
983
+ :param datetime start: Date range.
984
+ :param datetime end:
985
+ :return: V1ListClusterNamespaceUserMetricsResponse
986
+ If the method is called asynchronously,
987
+ returns the request thread.
988
+ """
989
+ kwargs['_return_http_data_only'] = True
990
+ if kwargs.get('async_req'):
991
+ return self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
992
+ else:
993
+ (data) = self.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
994
+ return data
995
+
996
+ def k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterNamespaceUserMetricsResponse': # noqa: E501
997
+ """k8_s_cluster_service_list_cluster_namespace_user_metrics # noqa: E501
998
+
999
+ This method makes a synchronous HTTP request by default. To make an
1000
+ asynchronous HTTP request, please pass async_req=True
1001
+ >>> thread = api.k8_s_cluster_service_list_cluster_namespace_user_metrics_with_http_info(cluster_id, async_req=True)
1002
+ >>> result = thread.get()
1003
+
1004
+ :param async_req bool
1005
+ :param str cluster_id: (required)
1006
+ :param str namespace:
1007
+ :param str user_id:
1008
+ :param datetime start: Date range.
1009
+ :param datetime end:
1010
+ :return: V1ListClusterNamespaceUserMetricsResponse
1011
+ If the method is called asynchronously,
1012
+ returns the request thread.
1013
+ """
1014
+
1015
+ all_params = ['cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
1016
+ all_params.append('async_req')
1017
+ all_params.append('_return_http_data_only')
1018
+ all_params.append('_preload_content')
1019
+ all_params.append('_request_timeout')
1020
+
1021
+ params = locals()
1022
+ for key, val in six.iteritems(params['kwargs']):
1023
+ if key not in all_params:
1024
+ raise TypeError(
1025
+ "Got an unexpected keyword argument '%s'"
1026
+ " to method k8_s_cluster_service_list_cluster_namespace_user_metrics" % key
1027
+ )
1028
+ params[key] = val
1029
+ del params['kwargs']
1030
+ # verify the required parameter 'cluster_id' is set
1031
+ if ('cluster_id' not in params or
1032
+ params['cluster_id'] is None):
1033
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_cluster_namespace_user_metrics`") # noqa: E501
1034
+
1035
+ collection_formats = {}
1036
+
1037
+ path_params = {}
1038
+ if 'cluster_id' in params:
1039
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1040
+
1041
+ query_params = []
1042
+ if 'namespace' in params:
1043
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
1044
+ if 'user_id' in params:
1045
+ query_params.append(('userId', params['user_id'])) # noqa: E501
1046
+ if 'start' in params:
1047
+ query_params.append(('start', params['start'])) # noqa: E501
1048
+ if 'end' in params:
1049
+ query_params.append(('end', params['end'])) # noqa: E501
1050
+
1051
+ header_params = {}
1052
+
1053
+ form_params = []
1054
+ local_var_files = {}
1055
+
1056
+ body_params = None
1057
+ # HTTP header `Accept`
1058
+ header_params['Accept'] = self.api_client.select_header_accept(
1059
+ ['application/json']) # noqa: E501
1060
+
1061
+ # Authentication setting
1062
+ auth_settings = [] # noqa: E501
1063
+
1064
+ return self.api_client.call_api(
1065
+ '/v1/k8s-clusters/{clusterId}/cluster-namespace-user-metrics', 'GET',
1066
+ path_params,
1067
+ query_params,
1068
+ header_params,
1069
+ body=body_params,
1070
+ post_params=form_params,
1071
+ files=local_var_files,
1072
+ response_type='V1ListClusterNamespaceUserMetricsResponse', # noqa: E501
1073
+ auth_settings=auth_settings,
1074
+ async_req=params.get('async_req'),
1075
+ _return_http_data_only=params.get('_return_http_data_only'),
1076
+ _preload_content=params.get('_preload_content', True),
1077
+ _request_timeout=params.get('_request_timeout'),
1078
+ collection_formats=collection_formats)
1079
+
1080
+ def k8_s_cluster_service_list_container_metrics(self, cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
1081
+ """k8_s_cluster_service_list_container_metrics # noqa: E501
1082
+
1083
+ This method makes a synchronous HTTP request by default. To make an
1084
+ asynchronous HTTP request, please pass async_req=True
1085
+ >>> thread = api.k8_s_cluster_service_list_container_metrics(cluster_id, pod_id, container_id, async_req=True)
1086
+ >>> result = thread.get()
1087
+
1088
+ :param async_req bool
1089
+ :param str cluster_id: (required)
1090
+ :param str pod_id: (required)
1091
+ :param str container_id: (required)
1092
+ :param datetime start: Date range.
1093
+ :param datetime end:
1094
+ :return: V1ListContainerMetricsResponse
1095
+ If the method is called asynchronously,
1096
+ returns the request thread.
1097
+ """
1098
+ kwargs['_return_http_data_only'] = True
1099
+ if kwargs.get('async_req'):
1100
+ return self.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1101
+ else:
1102
+ (data) = self.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1103
+ return data
1104
+
1105
+ def k8_s_cluster_service_list_container_metrics_with_http_info(self, cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
47
1106
  """k8_s_cluster_service_list_container_metrics # noqa: E501
48
1107
 
49
1108
  This method makes a synchronous HTTP request by default. To make an
50
1109
  asynchronous HTTP request, please pass async_req=True
51
- >>> thread = api.k8_s_cluster_service_list_container_metrics(project_id, cluster_id, pod_id, container_id, async_req=True)
1110
+ >>> thread = api.k8_s_cluster_service_list_container_metrics_with_http_info(cluster_id, pod_id, container_id, async_req=True)
1111
+ >>> result = thread.get()
1112
+
1113
+ :param async_req bool
1114
+ :param str cluster_id: (required)
1115
+ :param str pod_id: (required)
1116
+ :param str container_id: (required)
1117
+ :param datetime start: Date range.
1118
+ :param datetime end:
1119
+ :return: V1ListContainerMetricsResponse
1120
+ If the method is called asynchronously,
1121
+ returns the request thread.
1122
+ """
1123
+
1124
+ all_params = ['cluster_id', 'pod_id', 'container_id', 'start', 'end'] # noqa: E501
1125
+ all_params.append('async_req')
1126
+ all_params.append('_return_http_data_only')
1127
+ all_params.append('_preload_content')
1128
+ all_params.append('_request_timeout')
1129
+
1130
+ params = locals()
1131
+ for key, val in six.iteritems(params['kwargs']):
1132
+ if key not in all_params:
1133
+ raise TypeError(
1134
+ "Got an unexpected keyword argument '%s'"
1135
+ " to method k8_s_cluster_service_list_container_metrics" % key
1136
+ )
1137
+ params[key] = val
1138
+ del params['kwargs']
1139
+ # verify the required parameter 'cluster_id' is set
1140
+ if ('cluster_id' not in params or
1141
+ params['cluster_id'] is None):
1142
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1143
+ # verify the required parameter 'pod_id' is set
1144
+ if ('pod_id' not in params or
1145
+ params['pod_id'] is None):
1146
+ raise ValueError("Missing the required parameter `pod_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1147
+ # verify the required parameter 'container_id' is set
1148
+ if ('container_id' not in params or
1149
+ params['container_id'] is None):
1150
+ raise ValueError("Missing the required parameter `container_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1151
+
1152
+ collection_formats = {}
1153
+
1154
+ path_params = {}
1155
+ if 'cluster_id' in params:
1156
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1157
+ if 'pod_id' in params:
1158
+ path_params['podId'] = params['pod_id'] # noqa: E501
1159
+ if 'container_id' in params:
1160
+ path_params['containerId'] = params['container_id'] # noqa: E501
1161
+
1162
+ query_params = []
1163
+ if 'start' in params:
1164
+ query_params.append(('start', params['start'])) # noqa: E501
1165
+ if 'end' in params:
1166
+ query_params.append(('end', params['end'])) # noqa: E501
1167
+
1168
+ header_params = {}
1169
+
1170
+ form_params = []
1171
+ local_var_files = {}
1172
+
1173
+ body_params = None
1174
+ # HTTP header `Accept`
1175
+ header_params['Accept'] = self.api_client.select_header_accept(
1176
+ ['application/json']) # noqa: E501
1177
+
1178
+ # Authentication setting
1179
+ auth_settings = [] # noqa: E501
1180
+
1181
+ return self.api_client.call_api(
1182
+ '/v1/k8s-clusters/{clusterId}/metrics/pods/{podId}/containers/{containerId}', 'GET',
1183
+ path_params,
1184
+ query_params,
1185
+ header_params,
1186
+ body=body_params,
1187
+ post_params=form_params,
1188
+ files=local_var_files,
1189
+ response_type='V1ListContainerMetricsResponse', # noqa: E501
1190
+ auth_settings=auth_settings,
1191
+ async_req=params.get('async_req'),
1192
+ _return_http_data_only=params.get('_return_http_data_only'),
1193
+ _preload_content=params.get('_preload_content', True),
1194
+ _request_timeout=params.get('_request_timeout'),
1195
+ collection_formats=collection_formats)
1196
+
1197
+ def k8_s_cluster_service_list_filesystem_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1198
+ """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
1199
+
1200
+ This method makes a synchronous HTTP request by default. To make an
1201
+ asynchronous HTTP request, please pass async_req=True
1202
+ >>> thread = api.k8_s_cluster_service_list_filesystem_metrics(cluster_id, async_req=True)
1203
+ >>> result = thread.get()
1204
+
1205
+ :param async_req bool
1206
+ :param str cluster_id: (required)
1207
+ :param str fstype:
1208
+ :param str mountpoint:
1209
+ :param datetime start: Date range.
1210
+ :param datetime end:
1211
+ :return: V1ListFilesystemMetricsResponse
1212
+ If the method is called asynchronously,
1213
+ returns the request thread.
1214
+ """
1215
+ kwargs['_return_http_data_only'] = True
1216
+ if kwargs.get('async_req'):
1217
+ return self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1218
+ else:
1219
+ (data) = self.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1220
+ return data
1221
+
1222
+ def k8_s_cluster_service_list_filesystem_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListFilesystemMetricsResponse': # noqa: E501
1223
+ """k8_s_cluster_service_list_filesystem_metrics # noqa: E501
1224
+
1225
+ This method makes a synchronous HTTP request by default. To make an
1226
+ asynchronous HTTP request, please pass async_req=True
1227
+ >>> thread = api.k8_s_cluster_service_list_filesystem_metrics_with_http_info(cluster_id, async_req=True)
1228
+ >>> result = thread.get()
1229
+
1230
+ :param async_req bool
1231
+ :param str cluster_id: (required)
1232
+ :param str fstype:
1233
+ :param str mountpoint:
1234
+ :param datetime start: Date range.
1235
+ :param datetime end:
1236
+ :return: V1ListFilesystemMetricsResponse
1237
+ If the method is called asynchronously,
1238
+ returns the request thread.
1239
+ """
1240
+
1241
+ all_params = ['cluster_id', 'fstype', 'mountpoint', 'start', 'end'] # noqa: E501
1242
+ all_params.append('async_req')
1243
+ all_params.append('_return_http_data_only')
1244
+ all_params.append('_preload_content')
1245
+ all_params.append('_request_timeout')
1246
+
1247
+ params = locals()
1248
+ for key, val in six.iteritems(params['kwargs']):
1249
+ if key not in all_params:
1250
+ raise TypeError(
1251
+ "Got an unexpected keyword argument '%s'"
1252
+ " to method k8_s_cluster_service_list_filesystem_metrics" % key
1253
+ )
1254
+ params[key] = val
1255
+ del params['kwargs']
1256
+ # verify the required parameter 'cluster_id' is set
1257
+ if ('cluster_id' not in params or
1258
+ params['cluster_id'] is None):
1259
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_filesystem_metrics`") # noqa: E501
1260
+
1261
+ collection_formats = {}
1262
+
1263
+ path_params = {}
1264
+ if 'cluster_id' in params:
1265
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1266
+
1267
+ query_params = []
1268
+ if 'fstype' in params:
1269
+ query_params.append(('fstype', params['fstype'])) # noqa: E501
1270
+ if 'mountpoint' in params:
1271
+ query_params.append(('mountpoint', params['mountpoint'])) # noqa: E501
1272
+ if 'start' in params:
1273
+ query_params.append(('start', params['start'])) # noqa: E501
1274
+ if 'end' in params:
1275
+ query_params.append(('end', params['end'])) # noqa: E501
1276
+
1277
+ header_params = {}
1278
+
1279
+ form_params = []
1280
+ local_var_files = {}
1281
+
1282
+ body_params = None
1283
+ # HTTP header `Accept`
1284
+ header_params['Accept'] = self.api_client.select_header_accept(
1285
+ ['application/json']) # noqa: E501
1286
+
1287
+ # Authentication setting
1288
+ auth_settings = [] # noqa: E501
1289
+
1290
+ return self.api_client.call_api(
1291
+ '/v1/k8s-clusters/{clusterId}/filesystem', 'GET',
1292
+ path_params,
1293
+ query_params,
1294
+ header_params,
1295
+ body=body_params,
1296
+ post_params=form_params,
1297
+ files=local_var_files,
1298
+ response_type='V1ListFilesystemMetricsResponse', # noqa: E501
1299
+ auth_settings=auth_settings,
1300
+ async_req=params.get('async_req'),
1301
+ _return_http_data_only=params.get('_return_http_data_only'),
1302
+ _preload_content=params.get('_preload_content', True),
1303
+ _request_timeout=params.get('_request_timeout'),
1304
+ collection_formats=collection_formats)
1305
+
1306
+ def k8_s_cluster_service_list_group_pod_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1307
+ """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
1308
+
1309
+ This method makes a synchronous HTTP request by default. To make an
1310
+ asynchronous HTTP request, please pass async_req=True
1311
+ >>> thread = api.k8_s_cluster_service_list_group_pod_metrics(cluster_id, async_req=True)
1312
+ >>> result = thread.get()
1313
+
1314
+ :param async_req bool
1315
+ :param str cluster_id: (required)
1316
+ :param str key:
1317
+ :param str value:
1318
+ :param datetime start: Date range.
1319
+ :param datetime end:
1320
+ :return: V1ListGroupPodMetricsResponse
1321
+ If the method is called asynchronously,
1322
+ returns the request thread.
1323
+ """
1324
+ kwargs['_return_http_data_only'] = True
1325
+ if kwargs.get('async_req'):
1326
+ return self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1327
+ else:
1328
+ (data) = self.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1329
+ return data
1330
+
1331
+ def k8_s_cluster_service_list_group_pod_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListGroupPodMetricsResponse': # noqa: E501
1332
+ """k8_s_cluster_service_list_group_pod_metrics # noqa: E501
1333
+
1334
+ This method makes a synchronous HTTP request by default. To make an
1335
+ asynchronous HTTP request, please pass async_req=True
1336
+ >>> thread = api.k8_s_cluster_service_list_group_pod_metrics_with_http_info(cluster_id, async_req=True)
1337
+ >>> result = thread.get()
1338
+
1339
+ :param async_req bool
1340
+ :param str cluster_id: (required)
1341
+ :param str key:
1342
+ :param str value:
1343
+ :param datetime start: Date range.
1344
+ :param datetime end:
1345
+ :return: V1ListGroupPodMetricsResponse
1346
+ If the method is called asynchronously,
1347
+ returns the request thread.
1348
+ """
1349
+
1350
+ all_params = ['cluster_id', 'key', 'value', 'start', 'end'] # noqa: E501
1351
+ all_params.append('async_req')
1352
+ all_params.append('_return_http_data_only')
1353
+ all_params.append('_preload_content')
1354
+ all_params.append('_request_timeout')
1355
+
1356
+ params = locals()
1357
+ for key, val in six.iteritems(params['kwargs']):
1358
+ if key not in all_params:
1359
+ raise TypeError(
1360
+ "Got an unexpected keyword argument '%s'"
1361
+ " to method k8_s_cluster_service_list_group_pod_metrics" % key
1362
+ )
1363
+ params[key] = val
1364
+ del params['kwargs']
1365
+ # verify the required parameter 'cluster_id' is set
1366
+ if ('cluster_id' not in params or
1367
+ params['cluster_id'] is None):
1368
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_group_pod_metrics`") # noqa: E501
1369
+
1370
+ collection_formats = {}
1371
+
1372
+ path_params = {}
1373
+ if 'cluster_id' in params:
1374
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1375
+
1376
+ query_params = []
1377
+ if 'key' in params:
1378
+ query_params.append(('key', params['key'])) # noqa: E501
1379
+ if 'value' in params:
1380
+ query_params.append(('value', params['value'])) # noqa: E501
1381
+ if 'start' in params:
1382
+ query_params.append(('start', params['start'])) # noqa: E501
1383
+ if 'end' in params:
1384
+ query_params.append(('end', params['end'])) # noqa: E501
1385
+
1386
+ header_params = {}
1387
+
1388
+ form_params = []
1389
+ local_var_files = {}
1390
+
1391
+ body_params = None
1392
+ # HTTP header `Accept`
1393
+ header_params['Accept'] = self.api_client.select_header_accept(
1394
+ ['application/json']) # noqa: E501
1395
+
1396
+ # Authentication setting
1397
+ auth_settings = [] # noqa: E501
1398
+
1399
+ return self.api_client.call_api(
1400
+ '/v1/k8s-clusters/{clusterId}/metrics/group-pod', 'GET',
1401
+ path_params,
1402
+ query_params,
1403
+ header_params,
1404
+ body=body_params,
1405
+ post_params=form_params,
1406
+ files=local_var_files,
1407
+ response_type='V1ListGroupPodMetricsResponse', # noqa: E501
1408
+ auth_settings=auth_settings,
1409
+ async_req=params.get('async_req'),
1410
+ _return_http_data_only=params.get('_return_http_data_only'),
1411
+ _preload_content=params.get('_preload_content', True),
1412
+ _request_timeout=params.get('_request_timeout'),
1413
+ collection_formats=collection_formats)
1414
+
1415
+ def k8_s_cluster_service_list_kai_scheduler_queues_metrics(self, cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
1416
+ """k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
1417
+
1418
+ This method makes a synchronous HTTP request by default. To make an
1419
+ asynchronous HTTP request, please pass async_req=True
1420
+ >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics(cluster_id, async_req=True)
1421
+ >>> result = thread.get()
1422
+
1423
+ :param async_req bool
1424
+ :param str cluster_id: (required)
1425
+ :param str namespace:
1426
+ :param str user_id:
1427
+ :param datetime start: Date range.
1428
+ :param datetime end:
1429
+ :return: V1ListKaiSchedulerQueuesMetricsResponse
1430
+ If the method is called asynchronously,
1431
+ returns the request thread.
1432
+ """
1433
+ kwargs['_return_http_data_only'] = True
1434
+ if kwargs.get('async_req'):
1435
+ return self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1436
+ else:
1437
+ (data) = self.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, **kwargs) # noqa: E501
1438
+ return data
1439
+
1440
+ def k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListKaiSchedulerQueuesMetricsResponse': # noqa: E501
1441
+ """k8_s_cluster_service_list_kai_scheduler_queues_metrics # noqa: E501
1442
+
1443
+ This method makes a synchronous HTTP request by default. To make an
1444
+ asynchronous HTTP request, please pass async_req=True
1445
+ >>> thread = api.k8_s_cluster_service_list_kai_scheduler_queues_metrics_with_http_info(cluster_id, async_req=True)
1446
+ >>> result = thread.get()
1447
+
1448
+ :param async_req bool
1449
+ :param str cluster_id: (required)
1450
+ :param str namespace:
1451
+ :param str user_id:
1452
+ :param datetime start: Date range.
1453
+ :param datetime end:
1454
+ :return: V1ListKaiSchedulerQueuesMetricsResponse
1455
+ If the method is called asynchronously,
1456
+ returns the request thread.
1457
+ """
1458
+
1459
+ all_params = ['cluster_id', 'namespace', 'user_id', 'start', 'end'] # noqa: E501
1460
+ all_params.append('async_req')
1461
+ all_params.append('_return_http_data_only')
1462
+ all_params.append('_preload_content')
1463
+ all_params.append('_request_timeout')
1464
+
1465
+ params = locals()
1466
+ for key, val in six.iteritems(params['kwargs']):
1467
+ if key not in all_params:
1468
+ raise TypeError(
1469
+ "Got an unexpected keyword argument '%s'"
1470
+ " to method k8_s_cluster_service_list_kai_scheduler_queues_metrics" % key
1471
+ )
1472
+ params[key] = val
1473
+ del params['kwargs']
1474
+ # verify the required parameter 'cluster_id' is set
1475
+ if ('cluster_id' not in params or
1476
+ params['cluster_id'] is None):
1477
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_kai_scheduler_queues_metrics`") # noqa: E501
1478
+
1479
+ collection_formats = {}
1480
+
1481
+ path_params = {}
1482
+ if 'cluster_id' in params:
1483
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
1484
+
1485
+ query_params = []
1486
+ if 'namespace' in params:
1487
+ query_params.append(('namespace', params['namespace'])) # noqa: E501
1488
+ if 'user_id' in params:
1489
+ query_params.append(('userId', params['user_id'])) # noqa: E501
1490
+ if 'start' in params:
1491
+ query_params.append(('start', params['start'])) # noqa: E501
1492
+ if 'end' in params:
1493
+ query_params.append(('end', params['end'])) # noqa: E501
1494
+
1495
+ header_params = {}
1496
+
1497
+ form_params = []
1498
+ local_var_files = {}
1499
+
1500
+ body_params = None
1501
+ # HTTP header `Accept`
1502
+ header_params['Accept'] = self.api_client.select_header_accept(
1503
+ ['application/json']) # noqa: E501
1504
+
1505
+ # Authentication setting
1506
+ auth_settings = [] # noqa: E501
1507
+
1508
+ return self.api_client.call_api(
1509
+ '/v1/k8s-clusters/{clusterId}/cluster-kai-scheduler-queues-metrics', 'GET',
1510
+ path_params,
1511
+ query_params,
1512
+ header_params,
1513
+ body=body_params,
1514
+ post_params=form_params,
1515
+ files=local_var_files,
1516
+ response_type='V1ListKaiSchedulerQueuesMetricsResponse', # noqa: E501
1517
+ auth_settings=auth_settings,
1518
+ async_req=params.get('async_req'),
1519
+ _return_http_data_only=params.get('_return_http_data_only'),
1520
+ _preload_content=params.get('_preload_content', True),
1521
+ _request_timeout=params.get('_request_timeout'),
1522
+ collection_formats=collection_formats)
1523
+
1524
+ def k8_s_cluster_service_list_kubernetes_templates(self, cluster_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1525
+ """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
1526
+
1527
+ This method makes a synchronous HTTP request by default. To make an
1528
+ asynchronous HTTP request, please pass async_req=True
1529
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates(cluster_id, async_req=True)
52
1530
  >>> result = thread.get()
53
1531
 
54
1532
  :param async_req bool
55
- :param str project_id: (required)
56
1533
  :param str cluster_id: (required)
57
- :param str pod_id: (required)
58
- :param str container_id: (required)
59
- :param datetime start: Date range.
60
- :param datetime end:
61
- :return: V1ListContainerMetricsResponse
1534
+ :return: V1ListKubernetesTemplatesResponse
62
1535
  If the method is called asynchronously,
63
1536
  returns the request thread.
64
1537
  """
65
1538
  kwargs['_return_http_data_only'] = True
66
1539
  if kwargs.get('async_req'):
67
- return self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1540
+ return self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, **kwargs) # noqa: E501
68
1541
  else:
69
- (data) = self.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, **kwargs) # noqa: E501
1542
+ (data) = self.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, **kwargs) # noqa: E501
70
1543
  return data
71
1544
 
72
- def k8_s_cluster_service_list_container_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', container_id: 'str', **kwargs) -> 'V1ListContainerMetricsResponse': # noqa: E501
73
- """k8_s_cluster_service_list_container_metrics # noqa: E501
1545
+ def k8_s_cluster_service_list_kubernetes_templates_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListKubernetesTemplatesResponse': # noqa: E501
1546
+ """k8_s_cluster_service_list_kubernetes_templates # noqa: E501
74
1547
 
75
1548
  This method makes a synchronous HTTP request by default. To make an
76
1549
  asynchronous HTTP request, please pass async_req=True
77
- >>> thread = api.k8_s_cluster_service_list_container_metrics_with_http_info(project_id, cluster_id, pod_id, container_id, async_req=True)
1550
+ >>> thread = api.k8_s_cluster_service_list_kubernetes_templates_with_http_info(cluster_id, async_req=True)
78
1551
  >>> result = thread.get()
79
1552
 
80
1553
  :param async_req bool
81
- :param str project_id: (required)
82
1554
  :param str cluster_id: (required)
83
- :param str pod_id: (required)
84
- :param str container_id: (required)
85
- :param datetime start: Date range.
86
- :param datetime end:
87
- :return: V1ListContainerMetricsResponse
1555
+ :return: V1ListKubernetesTemplatesResponse
88
1556
  If the method is called asynchronously,
89
1557
  returns the request thread.
90
1558
  """
91
1559
 
92
- all_params = ['project_id', 'cluster_id', 'pod_id', 'container_id', 'start', 'end'] # noqa: E501
1560
+ all_params = ['cluster_id'] # noqa: E501
93
1561
  all_params.append('async_req')
94
1562
  all_params.append('_return_http_data_only')
95
1563
  all_params.append('_preload_content')
@@ -100,44 +1568,22 @@ class K8SClusterServiceApi(object):
100
1568
  if key not in all_params:
101
1569
  raise TypeError(
102
1570
  "Got an unexpected keyword argument '%s'"
103
- " to method k8_s_cluster_service_list_container_metrics" % key
1571
+ " to method k8_s_cluster_service_list_kubernetes_templates" % key
104
1572
  )
105
1573
  params[key] = val
106
1574
  del params['kwargs']
107
- # verify the required parameter 'project_id' is set
108
- if ('project_id' not in params or
109
- params['project_id'] is None):
110
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
111
1575
  # verify the required parameter 'cluster_id' is set
112
1576
  if ('cluster_id' not in params or
113
1577
  params['cluster_id'] is None):
114
- raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
115
- # verify the required parameter 'pod_id' is set
116
- if ('pod_id' not in params or
117
- params['pod_id'] is None):
118
- raise ValueError("Missing the required parameter `pod_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
119
- # verify the required parameter 'container_id' is set
120
- if ('container_id' not in params or
121
- params['container_id'] is None):
122
- raise ValueError("Missing the required parameter `container_id` when calling `k8_s_cluster_service_list_container_metrics`") # noqa: E501
1578
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_list_kubernetes_templates`") # noqa: E501
123
1579
 
124
1580
  collection_formats = {}
125
1581
 
126
1582
  path_params = {}
127
- if 'project_id' in params:
128
- path_params['projectId'] = params['project_id'] # noqa: E501
129
1583
  if 'cluster_id' in params:
130
1584
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
131
- if 'pod_id' in params:
132
- path_params['podId'] = params['pod_id'] # noqa: E501
133
- if 'container_id' in params:
134
- path_params['containerId'] = params['container_id'] # noqa: E501
135
1585
 
136
1586
  query_params = []
137
- if 'start' in params:
138
- query_params.append(('start', params['start'])) # noqa: E501
139
- if 'end' in params:
140
- query_params.append(('end', params['end'])) # noqa: E501
141
1587
 
142
1588
  header_params = {}
143
1589
 
@@ -153,14 +1599,14 @@ class K8SClusterServiceApi(object):
153
1599
  auth_settings = [] # noqa: E501
154
1600
 
155
1601
  return self.api_client.call_api(
156
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/pods/{podId}/containers/{containerId}', 'GET',
1602
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates', 'GET',
157
1603
  path_params,
158
1604
  query_params,
159
1605
  header_params,
160
1606
  body=body_params,
161
1607
  post_params=form_params,
162
1608
  files=local_var_files,
163
- response_type='V1ListContainerMetricsResponse', # noqa: E501
1609
+ response_type='V1ListKubernetesTemplatesResponse', # noqa: E501
164
1610
  auth_settings=auth_settings,
165
1611
  async_req=params.get('async_req'),
166
1612
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -168,16 +1614,15 @@ class K8SClusterServiceApi(object):
168
1614
  _request_timeout=params.get('_request_timeout'),
169
1615
  collection_formats=collection_formats)
170
1616
 
171
- def k8_s_cluster_service_list_node_file_system_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
1617
+ def k8_s_cluster_service_list_node_file_system_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
172
1618
  """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
173
1619
 
174
1620
  This method makes a synchronous HTTP request by default. To make an
175
1621
  asynchronous HTTP request, please pass async_req=True
176
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(project_id, cluster_id, node_name, async_req=True)
1622
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics(cluster_id, node_name, async_req=True)
177
1623
  >>> result = thread.get()
178
1624
 
179
1625
  :param async_req bool
180
- :param str project_id: (required)
181
1626
  :param str cluster_id: (required)
182
1627
  :param str node_name: (required)
183
1628
  :param datetime start: Date range.
@@ -188,21 +1633,20 @@ class K8SClusterServiceApi(object):
188
1633
  """
189
1634
  kwargs['_return_http_data_only'] = True
190
1635
  if kwargs.get('async_req'):
191
- return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1636
+ return self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
192
1637
  else:
193
- (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1638
+ (data) = self.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
194
1639
  return data
195
1640
 
196
- def k8_s_cluster_service_list_node_file_system_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
1641
+ def k8_s_cluster_service_list_node_file_system_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeFileSystemMetricsResponse': # noqa: E501
197
1642
  """k8_s_cluster_service_list_node_file_system_metrics # noqa: E501
198
1643
 
199
1644
  This method makes a synchronous HTTP request by default. To make an
200
1645
  asynchronous HTTP request, please pass async_req=True
201
- >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1646
+ >>> thread = api.k8_s_cluster_service_list_node_file_system_metrics_with_http_info(cluster_id, node_name, async_req=True)
202
1647
  >>> result = thread.get()
203
1648
 
204
1649
  :param async_req bool
205
- :param str project_id: (required)
206
1650
  :param str cluster_id: (required)
207
1651
  :param str node_name: (required)
208
1652
  :param datetime start: Date range.
@@ -212,7 +1656,7 @@ class K8SClusterServiceApi(object):
212
1656
  returns the request thread.
213
1657
  """
214
1658
 
215
- all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
1659
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
216
1660
  all_params.append('async_req')
217
1661
  all_params.append('_return_http_data_only')
218
1662
  all_params.append('_preload_content')
@@ -227,10 +1671,6 @@ class K8SClusterServiceApi(object):
227
1671
  )
228
1672
  params[key] = val
229
1673
  del params['kwargs']
230
- # verify the required parameter 'project_id' is set
231
- if ('project_id' not in params or
232
- params['project_id'] is None):
233
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_node_file_system_metrics`") # noqa: E501
234
1674
  # verify the required parameter 'cluster_id' is set
235
1675
  if ('cluster_id' not in params or
236
1676
  params['cluster_id'] is None):
@@ -243,8 +1683,6 @@ class K8SClusterServiceApi(object):
243
1683
  collection_formats = {}
244
1684
 
245
1685
  path_params = {}
246
- if 'project_id' in params:
247
- path_params['projectId'] = params['project_id'] # noqa: E501
248
1686
  if 'cluster_id' in params:
249
1687
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
250
1688
  if 'node_name' in params:
@@ -270,7 +1708,7 @@ class K8SClusterServiceApi(object):
270
1708
  auth_settings = [] # noqa: E501
271
1709
 
272
1710
  return self.api_client.call_api(
273
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics-filesystem/nodes/{nodeName}', 'GET',
1711
+ '/v1/k8s-clusters/{clusterId}/metrics-filesystem/nodes/{nodeName}', 'GET',
274
1712
  path_params,
275
1713
  query_params,
276
1714
  header_params,
@@ -285,16 +1723,15 @@ class K8SClusterServiceApi(object):
285
1723
  _request_timeout=params.get('_request_timeout'),
286
1724
  collection_formats=collection_formats)
287
1725
 
288
- def k8_s_cluster_service_list_node_metrics(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
1726
+ def k8_s_cluster_service_list_node_metrics(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
289
1727
  """k8_s_cluster_service_list_node_metrics # noqa: E501
290
1728
 
291
1729
  This method makes a synchronous HTTP request by default. To make an
292
1730
  asynchronous HTTP request, please pass async_req=True
293
- >>> thread = api.k8_s_cluster_service_list_node_metrics(project_id, cluster_id, node_name, async_req=True)
1731
+ >>> thread = api.k8_s_cluster_service_list_node_metrics(cluster_id, node_name, async_req=True)
294
1732
  >>> result = thread.get()
295
1733
 
296
1734
  :param async_req bool
297
- :param str project_id: (required)
298
1735
  :param str cluster_id: (required)
299
1736
  :param str node_name: (required)
300
1737
  :param datetime start: Date range.
@@ -305,21 +1742,20 @@ class K8SClusterServiceApi(object):
305
1742
  """
306
1743
  kwargs['_return_http_data_only'] = True
307
1744
  if kwargs.get('async_req'):
308
- return self.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1745
+ return self.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
309
1746
  else:
310
- (data) = self.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, **kwargs) # noqa: E501
1747
+ (data) = self.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, **kwargs) # noqa: E501
311
1748
  return data
312
1749
 
313
- def k8_s_cluster_service_list_node_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
1750
+ def k8_s_cluster_service_list_node_metrics_with_http_info(self, cluster_id: 'str', node_name: 'str', **kwargs) -> 'V1ListNodeMetricsResponse': # noqa: E501
314
1751
  """k8_s_cluster_service_list_node_metrics # noqa: E501
315
1752
 
316
1753
  This method makes a synchronous HTTP request by default. To make an
317
1754
  asynchronous HTTP request, please pass async_req=True
318
- >>> thread = api.k8_s_cluster_service_list_node_metrics_with_http_info(project_id, cluster_id, node_name, async_req=True)
1755
+ >>> thread = api.k8_s_cluster_service_list_node_metrics_with_http_info(cluster_id, node_name, async_req=True)
319
1756
  >>> result = thread.get()
320
1757
 
321
1758
  :param async_req bool
322
- :param str project_id: (required)
323
1759
  :param str cluster_id: (required)
324
1760
  :param str node_name: (required)
325
1761
  :param datetime start: Date range.
@@ -329,7 +1765,7 @@ class K8SClusterServiceApi(object):
329
1765
  returns the request thread.
330
1766
  """
331
1767
 
332
- all_params = ['project_id', 'cluster_id', 'node_name', 'start', 'end'] # noqa: E501
1768
+ all_params = ['cluster_id', 'node_name', 'start', 'end'] # noqa: E501
333
1769
  all_params.append('async_req')
334
1770
  all_params.append('_return_http_data_only')
335
1771
  all_params.append('_preload_content')
@@ -344,10 +1780,6 @@ class K8SClusterServiceApi(object):
344
1780
  )
345
1781
  params[key] = val
346
1782
  del params['kwargs']
347
- # verify the required parameter 'project_id' is set
348
- if ('project_id' not in params or
349
- params['project_id'] is None):
350
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_node_metrics`") # noqa: E501
351
1783
  # verify the required parameter 'cluster_id' is set
352
1784
  if ('cluster_id' not in params or
353
1785
  params['cluster_id'] is None):
@@ -360,8 +1792,6 @@ class K8SClusterServiceApi(object):
360
1792
  collection_formats = {}
361
1793
 
362
1794
  path_params = {}
363
- if 'project_id' in params:
364
- path_params['projectId'] = params['project_id'] # noqa: E501
365
1795
  if 'cluster_id' in params:
366
1796
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
367
1797
  if 'node_name' in params:
@@ -387,7 +1817,7 @@ class K8SClusterServiceApi(object):
387
1817
  auth_settings = [] # noqa: E501
388
1818
 
389
1819
  return self.api_client.call_api(
390
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/nodes/{nodeName}', 'GET',
1820
+ '/v1/k8s-clusters/{clusterId}/metrics/nodes/{nodeName}', 'GET',
391
1821
  path_params,
392
1822
  query_params,
393
1823
  header_params,
@@ -402,16 +1832,15 @@ class K8SClusterServiceApi(object):
402
1832
  _request_timeout=params.get('_request_timeout'),
403
1833
  collection_formats=collection_formats)
404
1834
 
405
- def k8_s_cluster_service_list_pod_metrics(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
1835
+ def k8_s_cluster_service_list_pod_metrics(self, cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
406
1836
  """k8_s_cluster_service_list_pod_metrics # noqa: E501
407
1837
 
408
1838
  This method makes a synchronous HTTP request by default. To make an
409
1839
  asynchronous HTTP request, please pass async_req=True
410
- >>> thread = api.k8_s_cluster_service_list_pod_metrics(project_id, cluster_id, pod_id, async_req=True)
1840
+ >>> thread = api.k8_s_cluster_service_list_pod_metrics(cluster_id, pod_id, async_req=True)
411
1841
  >>> result = thread.get()
412
1842
 
413
1843
  :param async_req bool
414
- :param str project_id: (required)
415
1844
  :param str cluster_id: (required)
416
1845
  :param str pod_id: (required)
417
1846
  :param datetime start: Date range.
@@ -422,21 +1851,20 @@ class K8SClusterServiceApi(object):
422
1851
  """
423
1852
  kwargs['_return_http_data_only'] = True
424
1853
  if kwargs.get('async_req'):
425
- return self.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, **kwargs) # noqa: E501
1854
+ return self.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, **kwargs) # noqa: E501
426
1855
  else:
427
- (data) = self.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, **kwargs) # noqa: E501
1856
+ (data) = self.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, **kwargs) # noqa: E501
428
1857
  return data
429
1858
 
430
- def k8_s_cluster_service_list_pod_metrics_with_http_info(self, project_id: 'str', cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
1859
+ def k8_s_cluster_service_list_pod_metrics_with_http_info(self, cluster_id: 'str', pod_id: 'str', **kwargs) -> 'V1ListPodMetricsResponse': # noqa: E501
431
1860
  """k8_s_cluster_service_list_pod_metrics # noqa: E501
432
1861
 
433
1862
  This method makes a synchronous HTTP request by default. To make an
434
1863
  asynchronous HTTP request, please pass async_req=True
435
- >>> thread = api.k8_s_cluster_service_list_pod_metrics_with_http_info(project_id, cluster_id, pod_id, async_req=True)
1864
+ >>> thread = api.k8_s_cluster_service_list_pod_metrics_with_http_info(cluster_id, pod_id, async_req=True)
436
1865
  >>> result = thread.get()
437
1866
 
438
1867
  :param async_req bool
439
- :param str project_id: (required)
440
1868
  :param str cluster_id: (required)
441
1869
  :param str pod_id: (required)
442
1870
  :param datetime start: Date range.
@@ -446,7 +1874,7 @@ class K8SClusterServiceApi(object):
446
1874
  returns the request thread.
447
1875
  """
448
1876
 
449
- all_params = ['project_id', 'cluster_id', 'pod_id', 'start', 'end'] # noqa: E501
1877
+ all_params = ['cluster_id', 'pod_id', 'start', 'end'] # noqa: E501
450
1878
  all_params.append('async_req')
451
1879
  all_params.append('_return_http_data_only')
452
1880
  all_params.append('_preload_content')
@@ -461,10 +1889,6 @@ class K8SClusterServiceApi(object):
461
1889
  )
462
1890
  params[key] = val
463
1891
  del params['kwargs']
464
- # verify the required parameter 'project_id' is set
465
- if ('project_id' not in params or
466
- params['project_id'] is None):
467
- raise ValueError("Missing the required parameter `project_id` when calling `k8_s_cluster_service_list_pod_metrics`") # noqa: E501
468
1892
  # verify the required parameter 'cluster_id' is set
469
1893
  if ('cluster_id' not in params or
470
1894
  params['cluster_id'] is None):
@@ -477,8 +1901,6 @@ class K8SClusterServiceApi(object):
477
1901
  collection_formats = {}
478
1902
 
479
1903
  path_params = {}
480
- if 'project_id' in params:
481
- path_params['projectId'] = params['project_id'] # noqa: E501
482
1904
  if 'cluster_id' in params:
483
1905
  path_params['clusterId'] = params['cluster_id'] # noqa: E501
484
1906
  if 'pod_id' in params:
@@ -504,7 +1926,7 @@ class K8SClusterServiceApi(object):
504
1926
  auth_settings = [] # noqa: E501
505
1927
 
506
1928
  return self.api_client.call_api(
507
- '/v1/projects/{projectId}/clusters/{clusterId}/metrics/pods/{podId}', 'GET',
1929
+ '/v1/k8s-clusters/{clusterId}/metrics/pods/{podId}', 'GET',
508
1930
  path_params,
509
1931
  query_params,
510
1932
  header_params,
@@ -519,6 +1941,119 @@ class K8SClusterServiceApi(object):
519
1941
  _request_timeout=params.get('_request_timeout'),
520
1942
  collection_formats=collection_formats)
521
1943
 
1944
+ def k8_s_cluster_service_render_kubernetes_template(self, body: 'IdRenderBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1945
+ """k8_s_cluster_service_render_kubernetes_template # noqa: E501
1946
+
1947
+ This method makes a synchronous HTTP request by default. To make an
1948
+ asynchronous HTTP request, please pass async_req=True
1949
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template(body, cluster_id, id, async_req=True)
1950
+ >>> result = thread.get()
1951
+
1952
+ :param async_req bool
1953
+ :param IdRenderBody body: (required)
1954
+ :param str cluster_id: (required)
1955
+ :param str id: (required)
1956
+ :return: V1RenderKubernetesTemplateResponse
1957
+ If the method is called asynchronously,
1958
+ returns the request thread.
1959
+ """
1960
+ kwargs['_return_http_data_only'] = True
1961
+ if kwargs.get('async_req'):
1962
+ return self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
1963
+ else:
1964
+ (data) = self.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
1965
+ return data
1966
+
1967
+ def k8_s_cluster_service_render_kubernetes_template_with_http_info(self, body: 'IdRenderBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1RenderKubernetesTemplateResponse': # noqa: E501
1968
+ """k8_s_cluster_service_render_kubernetes_template # noqa: E501
1969
+
1970
+ This method makes a synchronous HTTP request by default. To make an
1971
+ asynchronous HTTP request, please pass async_req=True
1972
+ >>> thread = api.k8_s_cluster_service_render_kubernetes_template_with_http_info(body, cluster_id, id, async_req=True)
1973
+ >>> result = thread.get()
1974
+
1975
+ :param async_req bool
1976
+ :param IdRenderBody body: (required)
1977
+ :param str cluster_id: (required)
1978
+ :param str id: (required)
1979
+ :return: V1RenderKubernetesTemplateResponse
1980
+ If the method is called asynchronously,
1981
+ returns the request thread.
1982
+ """
1983
+
1984
+ all_params = ['body', 'cluster_id', 'id'] # noqa: E501
1985
+ all_params.append('async_req')
1986
+ all_params.append('_return_http_data_only')
1987
+ all_params.append('_preload_content')
1988
+ all_params.append('_request_timeout')
1989
+
1990
+ params = locals()
1991
+ for key, val in six.iteritems(params['kwargs']):
1992
+ if key not in all_params:
1993
+ raise TypeError(
1994
+ "Got an unexpected keyword argument '%s'"
1995
+ " to method k8_s_cluster_service_render_kubernetes_template" % key
1996
+ )
1997
+ params[key] = val
1998
+ del params['kwargs']
1999
+ # verify the required parameter 'body' is set
2000
+ if ('body' not in params or
2001
+ params['body'] is None):
2002
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2003
+ # verify the required parameter 'cluster_id' is set
2004
+ if ('cluster_id' not in params or
2005
+ params['cluster_id'] is None):
2006
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2007
+ # verify the required parameter 'id' is set
2008
+ if ('id' not in params or
2009
+ params['id'] is None):
2010
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_render_kubernetes_template`") # noqa: E501
2011
+
2012
+ collection_formats = {}
2013
+
2014
+ path_params = {}
2015
+ if 'cluster_id' in params:
2016
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2017
+ if 'id' in params:
2018
+ path_params['id'] = params['id'] # noqa: E501
2019
+
2020
+ query_params = []
2021
+
2022
+ header_params = {}
2023
+
2024
+ form_params = []
2025
+ local_var_files = {}
2026
+
2027
+ body_params = None
2028
+ if 'body' in params:
2029
+ body_params = params['body']
2030
+ # HTTP header `Accept`
2031
+ header_params['Accept'] = self.api_client.select_header_accept(
2032
+ ['application/json']) # noqa: E501
2033
+
2034
+ # HTTP header `Content-Type`
2035
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2036
+ ['application/json']) # noqa: E501
2037
+
2038
+ # Authentication setting
2039
+ auth_settings = [] # noqa: E501
2040
+
2041
+ return self.api_client.call_api(
2042
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}/render', 'POST',
2043
+ path_params,
2044
+ query_params,
2045
+ header_params,
2046
+ body=body_params,
2047
+ post_params=form_params,
2048
+ files=local_var_files,
2049
+ response_type='V1RenderKubernetesTemplateResponse', # noqa: E501
2050
+ auth_settings=auth_settings,
2051
+ async_req=params.get('async_req'),
2052
+ _return_http_data_only=params.get('_return_http_data_only'),
2053
+ _preload_content=params.get('_preload_content', True),
2054
+ _request_timeout=params.get('_request_timeout'),
2055
+ collection_formats=collection_formats)
2056
+
522
2057
  def k8_s_cluster_service_report_k8_s_cluster_metrics(self, body: 'ClusterIdMetricsBody', cluster_id: 'str', **kwargs) -> 'V1ReportK8sClusterMetricsResponse': # noqa: E501
523
2058
  """k8_s_cluster_service_report_k8_s_cluster_metrics # noqa: E501
524
2059
 
@@ -623,3 +2158,116 @@ class K8SClusterServiceApi(object):
623
2158
  _preload_content=params.get('_preload_content', True),
624
2159
  _request_timeout=params.get('_request_timeout'),
625
2160
  collection_formats=collection_formats)
2161
+
2162
+ def k8_s_cluster_service_update_kubernetes_template(self, body: 'KubernetestemplatesIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
2163
+ """k8_s_cluster_service_update_kubernetes_template # noqa: E501
2164
+
2165
+ This method makes a synchronous HTTP request by default. To make an
2166
+ asynchronous HTTP request, please pass async_req=True
2167
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template(body, cluster_id, id, async_req=True)
2168
+ >>> result = thread.get()
2169
+
2170
+ :param async_req bool
2171
+ :param KubernetestemplatesIdBody body: (required)
2172
+ :param str cluster_id: (required)
2173
+ :param str id: (required)
2174
+ :return: V1KubernetesTemplate
2175
+ If the method is called asynchronously,
2176
+ returns the request thread.
2177
+ """
2178
+ kwargs['_return_http_data_only'] = True
2179
+ if kwargs.get('async_req'):
2180
+ return self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
2181
+ else:
2182
+ (data) = self.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
2183
+ return data
2184
+
2185
+ def k8_s_cluster_service_update_kubernetes_template_with_http_info(self, body: 'KubernetestemplatesIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
2186
+ """k8_s_cluster_service_update_kubernetes_template # noqa: E501
2187
+
2188
+ This method makes a synchronous HTTP request by default. To make an
2189
+ asynchronous HTTP request, please pass async_req=True
2190
+ >>> thread = api.k8_s_cluster_service_update_kubernetes_template_with_http_info(body, cluster_id, id, async_req=True)
2191
+ >>> result = thread.get()
2192
+
2193
+ :param async_req bool
2194
+ :param KubernetestemplatesIdBody body: (required)
2195
+ :param str cluster_id: (required)
2196
+ :param str id: (required)
2197
+ :return: V1KubernetesTemplate
2198
+ If the method is called asynchronously,
2199
+ returns the request thread.
2200
+ """
2201
+
2202
+ all_params = ['body', 'cluster_id', 'id'] # noqa: E501
2203
+ all_params.append('async_req')
2204
+ all_params.append('_return_http_data_only')
2205
+ all_params.append('_preload_content')
2206
+ all_params.append('_request_timeout')
2207
+
2208
+ params = locals()
2209
+ for key, val in six.iteritems(params['kwargs']):
2210
+ if key not in all_params:
2211
+ raise TypeError(
2212
+ "Got an unexpected keyword argument '%s'"
2213
+ " to method k8_s_cluster_service_update_kubernetes_template" % key
2214
+ )
2215
+ params[key] = val
2216
+ del params['kwargs']
2217
+ # verify the required parameter 'body' is set
2218
+ if ('body' not in params or
2219
+ params['body'] is None):
2220
+ raise ValueError("Missing the required parameter `body` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
2221
+ # verify the required parameter 'cluster_id' is set
2222
+ if ('cluster_id' not in params or
2223
+ params['cluster_id'] is None):
2224
+ raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
2225
+ # verify the required parameter 'id' is set
2226
+ if ('id' not in params or
2227
+ params['id'] is None):
2228
+ raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_update_kubernetes_template`") # noqa: E501
2229
+
2230
+ collection_formats = {}
2231
+
2232
+ path_params = {}
2233
+ if 'cluster_id' in params:
2234
+ path_params['clusterId'] = params['cluster_id'] # noqa: E501
2235
+ if 'id' in params:
2236
+ path_params['id'] = params['id'] # noqa: E501
2237
+
2238
+ query_params = []
2239
+
2240
+ header_params = {}
2241
+
2242
+ form_params = []
2243
+ local_var_files = {}
2244
+
2245
+ body_params = None
2246
+ if 'body' in params:
2247
+ body_params = params['body']
2248
+ # HTTP header `Accept`
2249
+ header_params['Accept'] = self.api_client.select_header_accept(
2250
+ ['application/json']) # noqa: E501
2251
+
2252
+ # HTTP header `Content-Type`
2253
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2254
+ ['application/json']) # noqa: E501
2255
+
2256
+ # Authentication setting
2257
+ auth_settings = [] # noqa: E501
2258
+
2259
+ return self.api_client.call_api(
2260
+ '/v1/k8s-clusters/{clusterId}/kubernetes-templates/{id}', 'PUT',
2261
+ path_params,
2262
+ query_params,
2263
+ header_params,
2264
+ body=body_params,
2265
+ post_params=form_params,
2266
+ files=local_var_files,
2267
+ response_type='V1KubernetesTemplate', # noqa: E501
2268
+ auth_settings=auth_settings,
2269
+ async_req=params.get('async_req'),
2270
+ _return_http_data_only=params.get('_return_http_data_only'),
2271
+ _preload_content=params.get('_preload_content', True),
2272
+ _request_timeout=params.get('_request_timeout'),
2273
+ collection_formats=collection_formats)