lightning-sdk 0.1.3__py3-none-any.whl → 0.1.46__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. lightning_sdk/__init__.py +12 -2
  2. lightning_sdk/agents.py +46 -0
  3. lightning_sdk/ai_hub.py +185 -0
  4. lightning_sdk/api/__init__.py +4 -0
  5. lightning_sdk/api/agents_api.py +107 -0
  6. lightning_sdk/api/ai_hub_api.py +130 -0
  7. lightning_sdk/api/deployment_api.py +574 -0
  8. lightning_sdk/api/job_api.py +308 -0
  9. lightning_sdk/api/mmt_api.py +188 -0
  10. lightning_sdk/api/org_api.py +1 -3
  11. lightning_sdk/api/studio_api.py +172 -81
  12. lightning_sdk/api/teamspace_api.py +219 -20
  13. lightning_sdk/api/user_api.py +24 -9
  14. lightning_sdk/api/utils.py +429 -48
  15. lightning_sdk/cli/ai_hub.py +49 -0
  16. lightning_sdk/cli/download.py +132 -0
  17. lightning_sdk/cli/entrypoint.py +11 -3
  18. lightning_sdk/cli/run.py +206 -0
  19. lightning_sdk/cli/serve.py +218 -0
  20. lightning_sdk/cli/studios_menu.py +78 -0
  21. lightning_sdk/cli/upload.py +79 -89
  22. lightning_sdk/constants.py +29 -1
  23. lightning_sdk/deployment/__init__.py +25 -0
  24. lightning_sdk/deployment/deployment.py +389 -0
  25. lightning_sdk/helpers.py +49 -0
  26. lightning_sdk/job/__init__.py +5 -0
  27. lightning_sdk/job/base.py +295 -0
  28. lightning_sdk/job/job.py +266 -0
  29. lightning_sdk/job/v1.py +241 -0
  30. lightning_sdk/job/v2.py +193 -0
  31. lightning_sdk/job/work.py +72 -0
  32. lightning_sdk/lightning_cloud/__version__.py +1 -1
  33. lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
  34. lightning_sdk/lightning_cloud/env.py +1 -0
  35. lightning_sdk/lightning_cloud/login.py +12 -8
  36. lightning_sdk/lightning_cloud/openapi/__init__.py +288 -42
  37. lightning_sdk/lightning_cloud/openapi/api/__init__.py +10 -0
  38. lightning_sdk/lightning_cloud/openapi/api/analytics_service_api.py +141 -0
  39. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1075 -227
  40. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  41. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +992 -233
  42. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +883 -120
  43. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +10 -5
  44. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +756 -0
  45. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +422 -1
  46. lightning_sdk/lightning_cloud/openapi/api/experiments_service_api.py +242 -0
  47. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  48. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +3823 -0
  49. lightning_sdk/lightning_cloud/openapi/api/lightningapp_instance_service_api.py +158 -594
  50. lightning_sdk/lightning_cloud/openapi/api/lightningapp_v2_service_api.py +0 -1086
  51. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +113 -0
  52. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +1753 -0
  53. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +242 -0
  54. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1423 -108
  55. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +421 -1
  56. lightning_sdk/lightning_cloud/openapi/api/profiler_service_api.py +663 -0
  57. lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
  58. lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +478 -1
  59. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +9 -5
  60. lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +686 -0
  61. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1094 -0
  62. lightning_sdk/lightning_cloud/openapi/api/studio_jobs_service_api.py +4 -4
  63. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +1081 -34
  64. lightning_sdk/lightning_cloud/openapi/models/__init__.py +278 -40
  65. lightning_sdk/lightning_cloud/openapi/models/affiliatelinks_id_body.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +305 -0
  67. lightning_sdk/lightning_cloud/openapi/models/{assistants_id_body.py → agents_id_body.py} +201 -71
  68. lightning_sdk/lightning_cloud/openapi/models/app_id_works_body.py +149 -0
  69. lightning_sdk/lightning_cloud/openapi/models/approveautojoindomain_domain_body.py +123 -0
  70. lightning_sdk/lightning_cloud/openapi/models/apps_id_body1.py +107 -3
  71. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +1 -27
  72. lightning_sdk/lightning_cloud/openapi/models/{v1_get_cluster_health_response.py → captures_id_body.py} +16 -16
  73. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
  74. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_runs_body.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +58 -6
  76. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +253 -0
  77. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
  78. lightning_sdk/lightning_cloud/openapi/models/cluster_id_proxies_body.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/create.py +157 -1
  80. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +383 -0
  81. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +565 -0
  82. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +513 -0
  83. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +43 -17
  84. lightning_sdk/lightning_cloud/openapi/models/experiment_name_variant_name_body.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +107 -1
  86. lightning_sdk/lightning_cloud/openapi/models/externalv1_lightningapp_instance.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +79 -1
  89. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -55
  90. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  91. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  92. lightning_sdk/lightning_cloud/openapi/models/id_execute_body.py +3 -55
  93. lightning_sdk/lightning_cloud/openapi/models/id_execute_body1.py +175 -0
  94. lightning_sdk/lightning_cloud/openapi/models/id_get_body.py +133 -3
  95. lightning_sdk/lightning_cloud/openapi/models/id_index_body.py +67 -15
  96. lightning_sdk/lightning_cloud/openapi/models/id_index_body2.py +123 -0
  97. lightning_sdk/lightning_cloud/openapi/models/id_index_body3.py +175 -0
  98. lightning_sdk/lightning_cloud/openapi/models/id_reportlogsactivity_body.py +123 -0
  99. lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
  100. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +52 -26
  101. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
  102. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body1.py +27 -1
  103. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body2.py +17 -43
  104. lightning_sdk/lightning_cloud/openapi/models/jobs_id_body3.py +149 -0
  105. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  106. lightning_sdk/lightning_cloud/openapi/models/litpages_id_body.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/loggermetrics_id_body.py +123 -0
  108. lightning_sdk/lightning_cloud/openapi/models/metrics_stream_id_loggerartifacts_body.py +123 -0
  109. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +383 -0
  110. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_id_list.py → metricsstream_delete_body.py} +10 -10
  111. lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +175 -0
  112. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_response.py → model_id_versions_body.py} +25 -51
  113. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
  114. lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +149 -0
  115. lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
  116. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  117. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  118. lightning_sdk/lightning_cloud/openapi/models/profiler_captures_body.py +279 -0
  119. lightning_sdk/lightning_cloud/openapi/models/profiler_enabled_body.py +149 -0
  120. lightning_sdk/lightning_cloud/openapi/models/project_id_agentmanagedendpoints_body.py +149 -0
  121. lightning_sdk/lightning_cloud/openapi/models/{project_id_assistants_body.py → project_id_agents_body.py} +159 -55
  122. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +71 -19
  123. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +27 -1
  124. lightning_sdk/lightning_cloud/openapi/models/project_id_jobs_body.py +175 -0
  125. lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +123 -0
  126. lightning_sdk/lightning_cloud/openapi/models/project_id_memberships_body.py +53 -1
  127. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_request.py → project_id_models_body.py} +70 -70
  128. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +227 -0
  129. lightning_sdk/lightning_cloud/openapi/models/project_id_secrets_body.py +27 -1
  130. lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +123 -0
  131. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  132. lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +175 -0
  133. lightning_sdk/lightning_cloud/openapi/models/secrets_id_body1.py +123 -0
  134. lightning_sdk/lightning_cloud/openapi/models/servers_server_id_body.py +123 -0
  135. lightning_sdk/lightning_cloud/openapi/models/service_artifact_artifact_kind.py +104 -0
  136. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +43 -43
  137. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  138. lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +305 -0
  139. lightning_sdk/lightning_cloud/openapi/models/{v1_download_model_response.py → snowflake_query_body.py} +51 -51
  140. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  141. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  142. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body.py +149 -0
  143. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body.py +149 -0
  144. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +149 -0
  145. lightning_sdk/lightning_cloud/openapi/models/v1_accelerator_quota_info.py +201 -0
  146. lightning_sdk/lightning_cloud/openapi/models/v1_ack_user_storage_violation_response.py +97 -0
  147. lightning_sdk/lightning_cloud/openapi/models/v1_add_job_timing_response.py +97 -0
  148. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +435 -0
  149. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +131 -1
  150. lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
  151. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  152. lightning_sdk/lightning_cloud/openapi/models/v1_append_logger_metrics_response.py +97 -0
  153. lightning_sdk/lightning_cloud/openapi/models/v1_approve_auto_join_domain_response.py +123 -0
  154. lightning_sdk/lightning_cloud/openapi/models/v1_assign_variant_response.py +97 -0
  155. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +131 -1
  156. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_item_status.py +253 -0
  157. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_status.py +123 -0
  158. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +104 -0
  159. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_domain_validation.py +175 -0
  160. lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_org_response.py +149 -0
  161. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_spec.py +305 -0
  162. lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_target_metric.py +149 -0
  163. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +133 -3
  164. lightning_sdk/lightning_cloud/openapi/models/v1_batch_update_lightningwork_response.py +97 -0
  165. lightning_sdk/lightning_cloud/openapi/models/v1_body.py +123 -0
  166. lightning_sdk/lightning_cloud/openapi/models/v1_cancellation_metadata.py +149 -0
  167. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +383 -0
  168. lightning_sdk/lightning_cloud/openapi/models/v1_check_snowflake_connection_response.py +123 -0
  169. lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +201 -0
  170. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +136 -6
  171. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version.py +27 -1
  172. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_config.py +1 -53
  173. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_startup_status.py +79 -1
  174. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_log_service.py → v1_cloud_space_session.py} +49 -49
  175. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
  176. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
  177. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
  178. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_names.py +123 -0
  179. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_proxy.py +201 -0
  180. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_resource_tag.py +149 -0
  181. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +357 -0
  182. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -107
  183. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_state.py +1 -0
  184. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +17 -43
  185. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +175 -0
  186. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  187. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +79 -1
  188. lightning_sdk/lightning_cloud/openapi/models/v1_complete_model_upload_response.py +97 -0
  189. lightning_sdk/lightning_cloud/openapi/models/v1_complete_multi_part_upload_response.py +97 -0
  190. lightning_sdk/lightning_cloud/openapi/models/v1_completed_part.py +149 -0
  191. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +15 -15
  192. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +26 -26
  193. lightning_sdk/lightning_cloud/openapi/models/v1_count_metrics_streams_response.py +123 -0
  194. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +53 -1
  195. lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_request.py +27 -1
  196. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +539 -0
  197. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_part_upload_response.py +123 -0
  198. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +159 -3
  199. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  200. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  201. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  202. lightning_sdk/lightning_cloud/openapi/models/v1_create_snowflake_connection_response.py +123 -0
  203. lightning_sdk/lightning_cloud/openapi/models/v1_create_user_secret_request.py +149 -0
  204. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +365 -1
  205. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_performance_profile.py → v1_data_connection_state.py} +11 -9
  206. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +201 -0
  207. lightning_sdk/lightning_cloud/openapi/models/v1_delete_affiliate_link_response.py +97 -0
  208. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_session_response.py +97 -0
  209. lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_proxy_response.py +97 -0
  210. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_release_response.py +97 -0
  211. lightning_sdk/lightning_cloud/openapi/models/{v1_azure_cluster_driver_status.py → v1_delete_deployment_response.py} +6 -6
  212. lightning_sdk/lightning_cloud/openapi/models/v1_delete_index_response.py +97 -0
  213. lightning_sdk/lightning_cloud/openapi/models/{v1_byom_cluster_driver.py → v1_delete_job_response.py} +6 -6
  214. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_v2_response.py → v1_delete_logger_artifact_response.py} +6 -6
  215. lightning_sdk/lightning_cloud/openapi/models/v1_delete_managed_endpoint_response.py +97 -0
  216. lightning_sdk/lightning_cloud/openapi/models/v1_delete_metrics_stream_response.py +97 -0
  217. lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
  218. lightning_sdk/lightning_cloud/openapi/models/v1_delete_profiler_capture_response.py +97 -0
  219. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_release_response.py → v1_delete_shared_metrics_stream_response.py} +6 -6
  220. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +617 -0
  221. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +227 -0
  222. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event.py +357 -0
  223. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event_type.py +104 -0
  224. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +149 -0
  225. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
  226. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +331 -0
  227. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +201 -0
  228. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +105 -0
  229. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
  230. lightning_sdk/lightning_cloud/openapi/models/{appsv2_id_body.py → v1_deployment_strategy.py} +39 -39
  231. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +721 -0
  232. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  233. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_gallery_response.py +591 -0
  234. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +435 -0
  235. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +106 -0
  236. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +106 -0
  237. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +591 -0
  238. lightning_sdk/lightning_cloud/openapi/models/{instance_type_availability.py → v1_deployment_template_type.py} +10 -10
  239. lightning_sdk/lightning_cloud/openapi/models/{v1_get_lightningapp_source_code_download_url_response.py → v1_download_job_logs_response.py} +10 -10
  240. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +175 -0
  241. lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +279 -0
  242. lightning_sdk/lightning_cloud/openapi/models/v1_efs_config.py +201 -0
  243. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +53 -27
  244. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_auth.py +27 -1
  245. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_type.py +104 -0
  246. lightning_sdk/lightning_cloud/openapi/models/v1_execute_cloud_space_command_response.py +29 -3
  247. lightning_sdk/lightning_cloud/openapi/models/v1_execute_in_cloud_space_session_response.py +97 -0
  248. lightning_sdk/lightning_cloud/openapi/models/v1_execute_snowflake_query_response.py +149 -0
  249. lightning_sdk/lightning_cloud/openapi/models/v1_experiment.py +409 -0
  250. lightning_sdk/lightning_cloud/openapi/models/v1_export_snowflake_query_response.py +123 -0
  251. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +79 -1
  252. lightning_sdk/lightning_cloud/openapi/models/{v1_instance_spec.py → v1_filesystem_app.py} +85 -59
  253. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  254. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  255. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  256. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  257. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  258. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  259. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +123 -0
  260. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection.py +27 -1
  261. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  262. lightning_sdk/lightning_cloud/openapi/models/v1_get_affiliate_link_response.py +123 -0
  263. lightning_sdk/lightning_cloud/openapi/models/{v1_list_cluster_instance_types_response.py → v1_get_deployment_routing_telemetry_aggregated_response.py} +23 -23
  264. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_response.py +123 -0
  265. lightning_sdk/lightning_cloud/openapi/models/v1_get_folder_index_response.py +27 -1
  266. lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_driver_status.py → v1_get_job_stats_response.py} +39 -39
  267. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_system_metrics_response.py +123 -0
  268. lightning_sdk/lightning_cloud/openapi/models/v1_get_lightningapp_instance_open_ports_response.py +123 -0
  269. lightning_sdk/lightning_cloud/openapi/models/v1_get_logger_metrics_response.py +123 -0
  270. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_upload_urls_response.py +123 -0
  271. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +175 -0
  272. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +279 -0
  273. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
  274. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningwork_cluster_driver.py → v1_get_project_artifact_response.py} +33 -14
  275. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
  276. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +383 -0
  277. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +67 -15
  278. lightning_sdk/lightning_cloud/openapi/models/v1_get_snowflake_query_response.py +149 -0
  279. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_balance_response.py +27 -1
  280. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
  281. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +279 -0
  282. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +201 -0
  283. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +163 -3
  284. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1_status.py +123 -0
  285. lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
  286. lightning_sdk/lightning_cloud/openapi/models/{v1_external_kubeconfig.py → v1_health_check_exec.py} +21 -21
  287. lightning_sdk/lightning_cloud/openapi/models/v1_health_check_http_get.py +149 -0
  288. lightning_sdk/lightning_cloud/openapi/models/v1_ids_logger_metrics.py +123 -0
  289. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +175 -0
  290. lightning_sdk/lightning_cloud/openapi/models/v1_interrupt_server_response.py +97 -0
  291. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +697 -0
  292. lightning_sdk/lightning_cloud/openapi/models/v1_job_health_check_config.py +253 -0
  293. lightning_sdk/lightning_cloud/openapi/models/v1_job_log_entry.py +175 -0
  294. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_page.py +227 -0
  295. lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_response.py +149 -0
  296. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +669 -0
  297. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +201 -0
  298. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +331 -0
  299. lightning_sdk/lightning_cloud/openapi/models/v1_knowledge_configuration.py +279 -0
  300. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
  301. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +27 -1
  302. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_spec.py +105 -27
  303. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_status.py +53 -1
  304. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -27
  305. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +81 -3
  306. lightning_sdk/lightning_cloud/openapi/models/v1_list_affiliate_links_response.py +123 -0
  307. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  308. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_sessions_response.py +123 -0
  309. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_tags_response.py +6 -6
  310. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_availabilities_response.py +123 -0
  311. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_proxies_response.py +123 -0
  312. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_events_response.py +123 -0
  313. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_releases_response.py +123 -0
  314. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_tags_response.py +123 -0
  315. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_templates_response.py +175 -0
  316. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployments_response.py +123 -0
  317. lightning_sdk/lightning_cloud/openapi/models/v1_list_experiments_response.py +149 -0
  318. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  319. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  320. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  321. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  322. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  323. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  324. lightning_sdk/lightning_cloud/openapi/models/{v1_list_lightningapps_v2_response.py → v1_list_jobs_response.py} +31 -31
  325. lightning_sdk/lightning_cloud/openapi/models/v1_list_joinable_organizations_response.py +123 -0
  326. lightning_sdk/lightning_cloud/openapi/models/v1_list_logger_artifact_response.py +123 -0
  327. lightning_sdk/lightning_cloud/openapi/models/v1_list_metrics_streams_response.py +123 -0
  328. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
  329. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
  330. lightning_sdk/lightning_cloud/openapi/models/v1_list_new_features_for_user_response.py +123 -0
  331. lightning_sdk/lightning_cloud/openapi/models/v1_list_profiler_captures_response.py +123 -0
  332. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_locked_resources_response.py +123 -0
  333. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_cloud_spaces_response.py +3 -29
  334. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_deployment_templates_response.py +175 -0
  335. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +175 -0
  336. lightning_sdk/lightning_cloud/openapi/models/v1_lit_page.py +27 -1
  337. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +227 -0
  338. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +279 -0
  339. lightning_sdk/lightning_cloud/openapi/models/v1_locked_resource.py +227 -0
  340. lightning_sdk/lightning_cloud/openapi/models/v1_logger_artifact.py +227 -0
  341. lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
  342. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +81 -3
  343. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
  344. lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +175 -19
  345. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +305 -0
  346. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
  347. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +79 -1
  348. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +138 -8
  349. lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
  350. lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
  351. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +131 -1
  352. lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +175 -0
  353. lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +175 -0
  354. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +799 -0
  355. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tags.py +201 -0
  356. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tracker.py +383 -0
  357. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +95 -17
  358. lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
  359. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +131 -1
  360. lightning_sdk/lightning_cloud/openapi/models/v1_mount_target.py +201 -0
  361. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +487 -0
  362. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
  363. lightning_sdk/lightning_cloud/openapi/models/{get_cluster_health_response_health_status.py → v1_multi_machine_job_event_type.py} +9 -9
  364. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
  365. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
  366. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
  367. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +305 -0
  368. lightning_sdk/lightning_cloud/openapi/models/v1_named_get_logger_metrics.py +123 -0
  369. lightning_sdk/lightning_cloud/openapi/models/v1_new_feature.py +383 -0
  370. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_request.py +175 -0
  371. lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_response.py +97 -0
  372. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
  373. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  374. lightning_sdk/lightning_cloud/openapi/models/v1_path_telemetry.py +123 -0
  375. lightning_sdk/lightning_cloud/openapi/models/v1_phase_type.py +104 -0
  376. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_capture.py +357 -0
  377. lightning_sdk/lightning_cloud/openapi/models/v1_profiler_enabled_response.py +123 -0
  378. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +131 -1
  379. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +263 -3
  380. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  381. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +279 -0
  382. lightning_sdk/lightning_cloud/openapi/models/v1_published_cloud_space_response.py +188 -6
  383. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_capacity_block_response.py +175 -0
  384. lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
  385. lightning_sdk/lightning_cloud/openapi/models/v1_query_result.py +123 -0
  386. lightning_sdk/lightning_cloud/openapi/models/v1_query_result_row.py +123 -0
  387. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_path_response.py +97 -0
  388. lightning_sdk/lightning_cloud/openapi/models/v1_regional_load_balancer.py +149 -0
  389. lightning_sdk/lightning_cloud/openapi/models/v1_report_logs_activity_response.py +97 -0
  390. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_request.py +175 -0
  391. lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_response.py +97 -0
  392. lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_tag.py → v1_resource_tag.py} +18 -18
  393. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +123 -0
  394. lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +37 -11
  395. lightning_sdk/lightning_cloud/openapi/models/v1_restore_deployment_release_response.py +97 -0
  396. lightning_sdk/lightning_cloud/openapi/models/v1_rolling_update_strategy.py +149 -0
  397. lightning_sdk/lightning_cloud/openapi/models/v1_rule_condition.py +29 -3
  398. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +11 -0
  399. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  400. lightning_sdk/lightning_cloud/openapi/models/v1_search_job_logs_response.py +149 -0
  401. lightning_sdk/lightning_cloud/openapi/models/v1_secret.py +107 -3
  402. lightning_sdk/lightning_cloud/openapi/models/{v1_lightningapp_cluster_driver.py → v1_secret_type.py} +10 -9
  403. lightning_sdk/lightning_cloud/openapi/models/v1_select.py +149 -0
  404. lightning_sdk/lightning_cloud/openapi/models/v1_server_check_in_response.py +97 -0
  405. lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +201 -0
  406. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +43 -43
  407. lightning_sdk/lightning_cloud/openapi/models/v1_should_start_syncing_response.py +123 -0
  408. lightning_sdk/lightning_cloud/openapi/models/v1_signed_url.py +149 -0
  409. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +131 -1
  410. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +53 -1
  411. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +27 -1
  412. lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +253 -0
  413. lightning_sdk/lightning_cloud/openapi/models/v1_status_code_telemetry.py +123 -0
  414. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +253 -0
  415. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +105 -0
  416. lightning_sdk/lightning_cloud/openapi/models/v1_studio_job_app.py +1 -0
  417. lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +617 -0
  418. lightning_sdk/lightning_cloud/openapi/models/v1_telemetry.py +331 -0
  419. lightning_sdk/lightning_cloud/openapi/models/v1_timestamp_code_telemetry.py +123 -0
  420. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  421. lightning_sdk/lightning_cloud/openapi/models/v1_transfer_user_balance_request.py +27 -1
  422. lightning_sdk/lightning_cloud/openapi/models/v1_update_billing_subscription_request.py +27 -1
  423. lightning_sdk/lightning_cloud/openapi/models/v1_update_cluster_accelerators_request.py +149 -0
  424. lightning_sdk/lightning_cloud/openapi/models/v1_update_index_response.py +97 -0
  425. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
  426. lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +97 -0
  427. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  428. lightning_sdk/lightning_cloud/openapi/models/v1_update_snowflake_query_response.py +97 -0
  429. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +53 -1
  430. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_request.py +123 -0
  431. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_response.py +97 -0
  432. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_cloud_space.py +97 -19
  433. lightning_sdk/lightning_cloud/openapi/models/v1_upstream_job.py +227 -0
  434. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
  435. lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +107 -3
  436. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1006 -330
  437. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +45 -45
  438. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_flow_compute_config.py +29 -29
  439. lightning_sdk/lightning_cloud/openapi/models/v1_validate_assistant_status_response.py +149 -0
  440. lightning_sdk/lightning_cloud/openapi/models/v1_validate_auto_join_domain_response.py +97 -0
  441. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +107 -3
  442. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
  443. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
  444. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_request.py +175 -0
  445. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +123 -0
  446. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_model_response.py +123 -0
  447. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +175 -0
  448. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +125 -0
  449. lightning_sdk/lightning_cloud/openapi/models/validate.py +97 -19
  450. lightning_sdk/lightning_cloud/openapi/models/validateautojoindomain_domain_body.py +123 -0
  451. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body.py +123 -0
  452. lightning_sdk/lightning_cloud/rest_client.py +47 -23
  453. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +1 -1
  454. lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
  455. lightning_sdk/lightning_cloud/utils/data_connection.py +145 -7
  456. lightning_sdk/machine.py +17 -4
  457. lightning_sdk/mmt/__init__.py +4 -0
  458. lightning_sdk/mmt/base.py +288 -0
  459. lightning_sdk/mmt/mmt.py +282 -0
  460. lightning_sdk/mmt/v1.py +185 -0
  461. lightning_sdk/mmt/v2.py +193 -0
  462. lightning_sdk/models.py +153 -0
  463. lightning_sdk/organization.py +1 -1
  464. lightning_sdk/plugin.py +207 -41
  465. lightning_sdk/services/__init__.py +2 -1
  466. lightning_sdk/services/file_endpoint.py +116 -213
  467. lightning_sdk/services/finetune/__init__.py +13 -15
  468. lightning_sdk/services/utilities.py +99 -26
  469. lightning_sdk/status.py +2 -1
  470. lightning_sdk/studio.py +90 -17
  471. lightning_sdk/teamspace.py +189 -11
  472. lightning_sdk/user.py +1 -1
  473. lightning_sdk/utils/__init__.py +0 -0
  474. lightning_sdk/utils/dynamic.py +61 -0
  475. lightning_sdk/utils/enum.py +116 -0
  476. lightning_sdk/{utils.py → utils/resolve.py} +41 -4
  477. lightning_sdk-0.1.46.dist-info/LICENSE +21 -0
  478. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/METADATA +30 -4
  479. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/RECORD +482 -204
  480. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/WHEEL +1 -1
  481. lightning_sdk/lightning_cloud/openapi/models/app_id_releases_body.py +0 -541
  482. lightning_sdk/lightning_cloud/openapi/models/id_endpoint_body.py +0 -409
  483. lightning_sdk/lightning_cloud/openapi/models/id_get_body1.py +0 -333
  484. lightning_sdk/lightning_cloud/openapi/models/project_id_appsv2_body.py +0 -201
  485. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_driver_spec.py +0 -1039
  486. lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_secondary_region_spec.py +0 -253
  487. lightning_sdk/lightning_cloud/openapi/models/v1_azure_cluster_driver_spec.py +0 -227
  488. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_driver.py +0 -175
  489. lightning_sdk/lightning_cloud/openapi/models/v1_container_resources.py +0 -201
  490. lightning_sdk/lightning_cloud/openapi/models/v1_eks_custer_driver_status.py +0 -387
  491. lightning_sdk/lightning_cloud/openapi/models/v1_instance_type.py +0 -305
  492. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_driver.py +0 -359
  493. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_status.py +0 -279
  494. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_release.py +0 -697
  495. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_v2.py +0 -331
  496. lightning_sdk/services/uploader.py +0 -123
  497. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/entry_points.txt +0 -0
  498. {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,3823 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ from __future__ import absolute_import
21
+
22
+ import re # noqa: F401
23
+ from typing import TYPE_CHECKING, Any
24
+
25
+ # python 2 and python 3 compatibility library
26
+ import six
27
+
28
+ from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
29
+
30
+ if TYPE_CHECKING:
31
+ from datetime import datetime
32
+ from lightning_sdk.lightning_cloud.openapi.models import *
33
+
34
+ class JobsServiceApi(object):
35
+ """NOTE: This class is auto generated by the swagger code generator program.
36
+
37
+ Do not edit the class manually.
38
+ Ref: https://github.com/swagger-api/swagger-codegen
39
+ """
40
+
41
+ def __init__(self, api_client=None):
42
+ if api_client is None:
43
+ api_client = ApiClient()
44
+ self.api_client = api_client
45
+
46
+ def jobs_service_add_job_timing(self, project_id: 'str', id: 'str', **kwargs) -> 'V1AddJobTimingResponse': # noqa: E501
47
+ """jobs_service_add_job_timing # 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.jobs_service_add_job_timing(project_id, id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param str project_id: (required)
56
+ :param str id: (required)
57
+ :return: V1AddJobTimingResponse
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.jobs_service_add_job_timing_with_http_info(project_id, id, **kwargs) # noqa: E501
64
+ else:
65
+ (data) = self.jobs_service_add_job_timing_with_http_info(project_id, id, **kwargs) # noqa: E501
66
+ return data
67
+
68
+ def jobs_service_add_job_timing_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1AddJobTimingResponse': # noqa: E501
69
+ """jobs_service_add_job_timing # 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.jobs_service_add_job_timing_with_http_info(project_id, id, async_req=True)
74
+ >>> result = thread.get()
75
+
76
+ :param async_req bool
77
+ :param str project_id: (required)
78
+ :param str id: (required)
79
+ :return: V1AddJobTimingResponse
80
+ If the method is called asynchronously,
81
+ returns the request thread.
82
+ """
83
+
84
+ all_params = ['project_id', '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 jobs_service_add_job_timing" % key
96
+ )
97
+ params[key] = val
98
+ del params['kwargs']
99
+ # verify the required parameter 'project_id' is set
100
+ if ('project_id' not in params or
101
+ params['project_id'] is None):
102
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_add_job_timing`") # noqa: E501
103
+ # verify the required parameter 'id' is set
104
+ if ('id' not in params or
105
+ params['id'] is None):
106
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_add_job_timing`") # noqa: E501
107
+
108
+ collection_formats = {}
109
+
110
+ path_params = {}
111
+ if 'project_id' in params:
112
+ path_params['projectId'] = params['project_id'] # noqa: E501
113
+ if 'id' in params:
114
+ path_params['id'] = params['id'] # noqa: E501
115
+
116
+ query_params = []
117
+
118
+ header_params = {}
119
+
120
+ form_params = []
121
+ local_var_files = {}
122
+
123
+ body_params = None
124
+ # HTTP header `Accept`
125
+ header_params['Accept'] = self.api_client.select_header_accept(
126
+ ['application/json']) # noqa: E501
127
+
128
+ # Authentication setting
129
+ auth_settings = [] # noqa: E501
130
+
131
+ return self.api_client.call_api(
132
+ '/v1/projects/{projectId}/jobs/{id}/timings', 'POST',
133
+ path_params,
134
+ query_params,
135
+ header_params,
136
+ body=body_params,
137
+ post_params=form_params,
138
+ files=local_var_files,
139
+ response_type='V1AddJobTimingResponse', # noqa: E501
140
+ auth_settings=auth_settings,
141
+ async_req=params.get('async_req'),
142
+ _return_http_data_only=params.get('_return_http_data_only'),
143
+ _preload_content=params.get('_preload_content', True),
144
+ _request_timeout=params.get('_request_timeout'),
145
+ collection_formats=collection_formats)
146
+
147
+ def jobs_service_create_deployment(self, body: 'CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs', project_id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
148
+ """jobs_service_create_deployment # noqa: E501
149
+
150
+ This method makes a synchronous HTTP request by default. To make an
151
+ asynchronous HTTP request, please pass async_req=True
152
+ >>> thread = api.jobs_service_create_deployment(body, project_id, async_req=True)
153
+ >>> result = thread.get()
154
+
155
+ :param async_req bool
156
+ :param CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs body: (required)
157
+ :param str project_id: (required)
158
+ :return: V1Deployment
159
+ If the method is called asynchronously,
160
+ returns the request thread.
161
+ """
162
+ kwargs['_return_http_data_only'] = True
163
+ if kwargs.get('async_req'):
164
+ return self.jobs_service_create_deployment_with_http_info(body, project_id, **kwargs) # noqa: E501
165
+ else:
166
+ (data) = self.jobs_service_create_deployment_with_http_info(body, project_id, **kwargs) # noqa: E501
167
+ return data
168
+
169
+ def jobs_service_create_deployment_with_http_info(self, body: 'CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs', project_id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
170
+ """jobs_service_create_deployment # noqa: E501
171
+
172
+ This method makes a synchronous HTTP request by default. To make an
173
+ asynchronous HTTP request, please pass async_req=True
174
+ >>> thread = api.jobs_service_create_deployment_with_http_info(body, project_id, async_req=True)
175
+ >>> result = thread.get()
176
+
177
+ :param async_req bool
178
+ :param CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs body: (required)
179
+ :param str project_id: (required)
180
+ :return: V1Deployment
181
+ If the method is called asynchronously,
182
+ returns the request thread.
183
+ """
184
+
185
+ all_params = ['body', 'project_id'] # noqa: E501
186
+ all_params.append('async_req')
187
+ all_params.append('_return_http_data_only')
188
+ all_params.append('_preload_content')
189
+ all_params.append('_request_timeout')
190
+
191
+ params = locals()
192
+ for key, val in six.iteritems(params['kwargs']):
193
+ if key not in all_params:
194
+ raise TypeError(
195
+ "Got an unexpected keyword argument '%s'"
196
+ " to method jobs_service_create_deployment" % key
197
+ )
198
+ params[key] = val
199
+ del params['kwargs']
200
+ # verify the required parameter 'body' is set
201
+ if ('body' not in params or
202
+ params['body'] is None):
203
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_create_deployment`") # noqa: E501
204
+ # verify the required parameter 'project_id' is set
205
+ if ('project_id' not in params or
206
+ params['project_id'] is None):
207
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_create_deployment`") # noqa: E501
208
+
209
+ collection_formats = {}
210
+
211
+ path_params = {}
212
+ if 'project_id' in params:
213
+ path_params['projectId'] = params['project_id'] # noqa: E501
214
+
215
+ query_params = []
216
+
217
+ header_params = {}
218
+
219
+ form_params = []
220
+ local_var_files = {}
221
+
222
+ body_params = None
223
+ if 'body' in params:
224
+ body_params = params['body']
225
+ # HTTP header `Accept`
226
+ header_params['Accept'] = self.api_client.select_header_accept(
227
+ ['application/json']) # noqa: E501
228
+
229
+ # HTTP header `Content-Type`
230
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
231
+ ['application/json']) # noqa: E501
232
+
233
+ # Authentication setting
234
+ auth_settings = [] # noqa: E501
235
+
236
+ return self.api_client.call_api(
237
+ '/v1/projects/{projectId}/deployments', 'POST',
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='V1Deployment', # 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 jobs_service_create_job(self, body: 'ProjectIdJobsBody', project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
253
+ """jobs_service_create_job # 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.jobs_service_create_job(body, project_id, async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ :param async_req bool
261
+ :param ProjectIdJobsBody body: (required)
262
+ :param str project_id: (required)
263
+ :return: V1Job
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.jobs_service_create_job_with_http_info(body, project_id, **kwargs) # noqa: E501
270
+ else:
271
+ (data) = self.jobs_service_create_job_with_http_info(body, project_id, **kwargs) # noqa: E501
272
+ return data
273
+
274
+ def jobs_service_create_job_with_http_info(self, body: 'ProjectIdJobsBody', project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
275
+ """jobs_service_create_job # 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.jobs_service_create_job_with_http_info(body, project_id, async_req=True)
280
+ >>> result = thread.get()
281
+
282
+ :param async_req bool
283
+ :param ProjectIdJobsBody body: (required)
284
+ :param str project_id: (required)
285
+ :return: V1Job
286
+ If the method is called asynchronously,
287
+ returns the request thread.
288
+ """
289
+
290
+ all_params = ['body', 'project_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 jobs_service_create_job" % key
302
+ )
303
+ params[key] = val
304
+ del params['kwargs']
305
+ # verify the required parameter 'body' is set
306
+ if ('body' not in params or
307
+ params['body'] is None):
308
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_create_job`") # noqa: E501
309
+ # verify the required parameter 'project_id' is set
310
+ if ('project_id' not in params or
311
+ params['project_id'] is None):
312
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_create_job`") # noqa: E501
313
+
314
+ collection_formats = {}
315
+
316
+ path_params = {}
317
+ if 'project_id' in params:
318
+ path_params['projectId'] = params['project_id'] # noqa: E501
319
+
320
+ query_params = []
321
+
322
+ header_params = {}
323
+
324
+ form_params = []
325
+ local_var_files = {}
326
+
327
+ body_params = None
328
+ if 'body' in params:
329
+ body_params = params['body']
330
+ # HTTP header `Accept`
331
+ header_params['Accept'] = self.api_client.select_header_accept(
332
+ ['application/json']) # noqa: E501
333
+
334
+ # HTTP header `Content-Type`
335
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
336
+ ['application/json']) # noqa: E501
337
+
338
+ # Authentication setting
339
+ auth_settings = [] # noqa: E501
340
+
341
+ return self.api_client.call_api(
342
+ '/v1/projects/{projectId}/jobs', 'POST',
343
+ path_params,
344
+ query_params,
345
+ header_params,
346
+ body=body_params,
347
+ post_params=form_params,
348
+ files=local_var_files,
349
+ response_type='V1Job', # noqa: E501
350
+ auth_settings=auth_settings,
351
+ async_req=params.get('async_req'),
352
+ _return_http_data_only=params.get('_return_http_data_only'),
353
+ _preload_content=params.get('_preload_content', True),
354
+ _request_timeout=params.get('_request_timeout'),
355
+ collection_formats=collection_formats)
356
+
357
+ def jobs_service_create_multi_machine_job(self, body: 'ProjectIdMultimachinejobsBody', project_id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
358
+ """MultiMachineJob # noqa: E501
359
+
360
+ This method makes a synchronous HTTP request by default. To make an
361
+ asynchronous HTTP request, please pass async_req=True
362
+ >>> thread = api.jobs_service_create_multi_machine_job(body, project_id, async_req=True)
363
+ >>> result = thread.get()
364
+
365
+ :param async_req bool
366
+ :param ProjectIdMultimachinejobsBody body: (required)
367
+ :param str project_id: (required)
368
+ :return: V1MultiMachineJob
369
+ If the method is called asynchronously,
370
+ returns the request thread.
371
+ """
372
+ kwargs['_return_http_data_only'] = True
373
+ if kwargs.get('async_req'):
374
+ return self.jobs_service_create_multi_machine_job_with_http_info(body, project_id, **kwargs) # noqa: E501
375
+ else:
376
+ (data) = self.jobs_service_create_multi_machine_job_with_http_info(body, project_id, **kwargs) # noqa: E501
377
+ return data
378
+
379
+ def jobs_service_create_multi_machine_job_with_http_info(self, body: 'ProjectIdMultimachinejobsBody', project_id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
380
+ """MultiMachineJob # noqa: E501
381
+
382
+ This method makes a synchronous HTTP request by default. To make an
383
+ asynchronous HTTP request, please pass async_req=True
384
+ >>> thread = api.jobs_service_create_multi_machine_job_with_http_info(body, project_id, async_req=True)
385
+ >>> result = thread.get()
386
+
387
+ :param async_req bool
388
+ :param ProjectIdMultimachinejobsBody body: (required)
389
+ :param str project_id: (required)
390
+ :return: V1MultiMachineJob
391
+ If the method is called asynchronously,
392
+ returns the request thread.
393
+ """
394
+
395
+ all_params = ['body', 'project_id'] # 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 jobs_service_create_multi_machine_job" % key
407
+ )
408
+ params[key] = val
409
+ del params['kwargs']
410
+ # verify the required parameter 'body' is set
411
+ if ('body' not in params or
412
+ params['body'] is None):
413
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_create_multi_machine_job`") # noqa: E501
414
+ # verify the required parameter 'project_id' is set
415
+ if ('project_id' not in params or
416
+ params['project_id'] is None):
417
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_create_multi_machine_job`") # noqa: E501
418
+
419
+ collection_formats = {}
420
+
421
+ path_params = {}
422
+ if 'project_id' in params:
423
+ path_params['projectId'] = params['project_id'] # noqa: E501
424
+
425
+ query_params = []
426
+
427
+ header_params = {}
428
+
429
+ form_params = []
430
+ local_var_files = {}
431
+
432
+ body_params = None
433
+ if 'body' in params:
434
+ body_params = params['body']
435
+ # HTTP header `Accept`
436
+ header_params['Accept'] = self.api_client.select_header_accept(
437
+ ['application/json']) # noqa: E501
438
+
439
+ # HTTP header `Content-Type`
440
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
441
+ ['application/json']) # noqa: E501
442
+
443
+ # Authentication setting
444
+ auth_settings = [] # noqa: E501
445
+
446
+ return self.api_client.call_api(
447
+ '/v1/projects/{projectId}/multi-machine-jobs', 'POST',
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='V1MultiMachineJob', # 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 jobs_service_delete_deployment(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentResponse': # noqa: E501
463
+ """jobs_service_delete_deployment # 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.jobs_service_delete_deployment(project_id, id, async_req=True)
468
+ >>> result = thread.get()
469
+
470
+ :param async_req bool
471
+ :param str project_id: (required)
472
+ :param str id: (required)
473
+ :param bool delete_templates:
474
+ :return: V1DeleteDeploymentResponse
475
+ If the method is called asynchronously,
476
+ returns the request thread.
477
+ """
478
+ kwargs['_return_http_data_only'] = True
479
+ if kwargs.get('async_req'):
480
+ return self.jobs_service_delete_deployment_with_http_info(project_id, id, **kwargs) # noqa: E501
481
+ else:
482
+ (data) = self.jobs_service_delete_deployment_with_http_info(project_id, id, **kwargs) # noqa: E501
483
+ return data
484
+
485
+ def jobs_service_delete_deployment_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentResponse': # noqa: E501
486
+ """jobs_service_delete_deployment # noqa: E501
487
+
488
+ This method makes a synchronous HTTP request by default. To make an
489
+ asynchronous HTTP request, please pass async_req=True
490
+ >>> thread = api.jobs_service_delete_deployment_with_http_info(project_id, id, async_req=True)
491
+ >>> result = thread.get()
492
+
493
+ :param async_req bool
494
+ :param str project_id: (required)
495
+ :param str id: (required)
496
+ :param bool delete_templates:
497
+ :return: V1DeleteDeploymentResponse
498
+ If the method is called asynchronously,
499
+ returns the request thread.
500
+ """
501
+
502
+ all_params = ['project_id', 'id', 'delete_templates'] # noqa: E501
503
+ all_params.append('async_req')
504
+ all_params.append('_return_http_data_only')
505
+ all_params.append('_preload_content')
506
+ all_params.append('_request_timeout')
507
+
508
+ params = locals()
509
+ for key, val in six.iteritems(params['kwargs']):
510
+ if key not in all_params:
511
+ raise TypeError(
512
+ "Got an unexpected keyword argument '%s'"
513
+ " to method jobs_service_delete_deployment" % key
514
+ )
515
+ params[key] = val
516
+ del params['kwargs']
517
+ # verify the required parameter 'project_id' is set
518
+ if ('project_id' not in params or
519
+ params['project_id'] is None):
520
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_deployment`") # noqa: E501
521
+ # verify the required parameter 'id' is set
522
+ if ('id' not in params or
523
+ params['id'] is None):
524
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_deployment`") # noqa: E501
525
+
526
+ collection_formats = {}
527
+
528
+ path_params = {}
529
+ if 'project_id' in params:
530
+ path_params['projectId'] = params['project_id'] # noqa: E501
531
+ if 'id' in params:
532
+ path_params['id'] = params['id'] # noqa: E501
533
+
534
+ query_params = []
535
+ if 'delete_templates' in params:
536
+ query_params.append(('deleteTemplates', params['delete_templates'])) # 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/projects/{projectId}/deployments/{id}', 'DELETE',
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='V1DeleteDeploymentResponse', # 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 jobs_service_delete_deployment_release(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentReleaseResponse': # noqa: E501
568
+ """jobs_service_delete_deployment_release # 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.jobs_service_delete_deployment_release(project_id, deployment_id, id, async_req=True)
573
+ >>> result = thread.get()
574
+
575
+ :param async_req bool
576
+ :param str project_id: (required)
577
+ :param str deployment_id: (required)
578
+ :param str id: (required)
579
+ :return: V1DeleteDeploymentReleaseResponse
580
+ If the method is called asynchronously,
581
+ returns the request thread.
582
+ """
583
+ kwargs['_return_http_data_only'] = True
584
+ if kwargs.get('async_req'):
585
+ return self.jobs_service_delete_deployment_release_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
586
+ else:
587
+ (data) = self.jobs_service_delete_deployment_release_with_http_info(project_id, deployment_id, id, **kwargs) # noqa: E501
588
+ return data
589
+
590
+ def jobs_service_delete_deployment_release_with_http_info(self, project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeleteDeploymentReleaseResponse': # noqa: E501
591
+ """jobs_service_delete_deployment_release # noqa: E501
592
+
593
+ This method makes a synchronous HTTP request by default. To make an
594
+ asynchronous HTTP request, please pass async_req=True
595
+ >>> thread = api.jobs_service_delete_deployment_release_with_http_info(project_id, deployment_id, id, async_req=True)
596
+ >>> result = thread.get()
597
+
598
+ :param async_req bool
599
+ :param str project_id: (required)
600
+ :param str deployment_id: (required)
601
+ :param str id: (required)
602
+ :return: V1DeleteDeploymentReleaseResponse
603
+ If the method is called asynchronously,
604
+ returns the request thread.
605
+ """
606
+
607
+ all_params = ['project_id', 'deployment_id', 'id'] # noqa: E501
608
+ all_params.append('async_req')
609
+ all_params.append('_return_http_data_only')
610
+ all_params.append('_preload_content')
611
+ all_params.append('_request_timeout')
612
+
613
+ params = locals()
614
+ for key, val in six.iteritems(params['kwargs']):
615
+ if key not in all_params:
616
+ raise TypeError(
617
+ "Got an unexpected keyword argument '%s'"
618
+ " to method jobs_service_delete_deployment_release" % key
619
+ )
620
+ params[key] = val
621
+ del params['kwargs']
622
+ # verify the required parameter 'project_id' is set
623
+ if ('project_id' not in params or
624
+ params['project_id'] is None):
625
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_deployment_release`") # noqa: E501
626
+ # verify the required parameter 'deployment_id' is set
627
+ if ('deployment_id' not in params or
628
+ params['deployment_id'] is None):
629
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_delete_deployment_release`") # noqa: E501
630
+ # verify the required parameter 'id' is set
631
+ if ('id' not in params or
632
+ params['id'] is None):
633
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_deployment_release`") # noqa: E501
634
+
635
+ collection_formats = {}
636
+
637
+ path_params = {}
638
+ if 'project_id' in params:
639
+ path_params['projectId'] = params['project_id'] # noqa: E501
640
+ if 'deployment_id' in params:
641
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
642
+ if 'id' in params:
643
+ path_params['id'] = params['id'] # noqa: E501
644
+
645
+ query_params = []
646
+
647
+ header_params = {}
648
+
649
+ form_params = []
650
+ local_var_files = {}
651
+
652
+ body_params = None
653
+ # HTTP header `Accept`
654
+ header_params['Accept'] = self.api_client.select_header_accept(
655
+ ['application/json']) # noqa: E501
656
+
657
+ # Authentication setting
658
+ auth_settings = [] # noqa: E501
659
+
660
+ return self.api_client.call_api(
661
+ '/v1/projects/{projectId}/deployments/{deploymentId}/releases/{id}', 'GET',
662
+ path_params,
663
+ query_params,
664
+ header_params,
665
+ body=body_params,
666
+ post_params=form_params,
667
+ files=local_var_files,
668
+ response_type='V1DeleteDeploymentReleaseResponse', # noqa: E501
669
+ auth_settings=auth_settings,
670
+ async_req=params.get('async_req'),
671
+ _return_http_data_only=params.get('_return_http_data_only'),
672
+ _preload_content=params.get('_preload_content', True),
673
+ _request_timeout=params.get('_request_timeout'),
674
+ collection_formats=collection_formats)
675
+
676
+ def jobs_service_delete_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteJobResponse': # noqa: E501
677
+ """jobs_service_delete_job # noqa: E501
678
+
679
+ This method makes a synchronous HTTP request by default. To make an
680
+ asynchronous HTTP request, please pass async_req=True
681
+ >>> thread = api.jobs_service_delete_job(project_id, id, async_req=True)
682
+ >>> result = thread.get()
683
+
684
+ :param async_req bool
685
+ :param str project_id: (required)
686
+ :param str id: (required)
687
+ :param str cloudspace_id:
688
+ :return: V1DeleteJobResponse
689
+ If the method is called asynchronously,
690
+ returns the request thread.
691
+ """
692
+ kwargs['_return_http_data_only'] = True
693
+ if kwargs.get('async_req'):
694
+ return self.jobs_service_delete_job_with_http_info(project_id, id, **kwargs) # noqa: E501
695
+ else:
696
+ (data) = self.jobs_service_delete_job_with_http_info(project_id, id, **kwargs) # noqa: E501
697
+ return data
698
+
699
+ def jobs_service_delete_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteJobResponse': # noqa: E501
700
+ """jobs_service_delete_job # noqa: E501
701
+
702
+ This method makes a synchronous HTTP request by default. To make an
703
+ asynchronous HTTP request, please pass async_req=True
704
+ >>> thread = api.jobs_service_delete_job_with_http_info(project_id, id, async_req=True)
705
+ >>> result = thread.get()
706
+
707
+ :param async_req bool
708
+ :param str project_id: (required)
709
+ :param str id: (required)
710
+ :param str cloudspace_id:
711
+ :return: V1DeleteJobResponse
712
+ If the method is called asynchronously,
713
+ returns the request thread.
714
+ """
715
+
716
+ all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
717
+ all_params.append('async_req')
718
+ all_params.append('_return_http_data_only')
719
+ all_params.append('_preload_content')
720
+ all_params.append('_request_timeout')
721
+
722
+ params = locals()
723
+ for key, val in six.iteritems(params['kwargs']):
724
+ if key not in all_params:
725
+ raise TypeError(
726
+ "Got an unexpected keyword argument '%s'"
727
+ " to method jobs_service_delete_job" % key
728
+ )
729
+ params[key] = val
730
+ del params['kwargs']
731
+ # verify the required parameter 'project_id' is set
732
+ if ('project_id' not in params or
733
+ params['project_id'] is None):
734
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_job`") # noqa: E501
735
+ # verify the required parameter 'id' is set
736
+ if ('id' not in params or
737
+ params['id'] is None):
738
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_job`") # noqa: E501
739
+
740
+ collection_formats = {}
741
+
742
+ path_params = {}
743
+ if 'project_id' in params:
744
+ path_params['projectId'] = params['project_id'] # noqa: E501
745
+ if 'id' in params:
746
+ path_params['id'] = params['id'] # noqa: E501
747
+
748
+ query_params = []
749
+ if 'cloudspace_id' in params:
750
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
751
+
752
+ header_params = {}
753
+
754
+ form_params = []
755
+ local_var_files = {}
756
+
757
+ body_params = None
758
+ # HTTP header `Accept`
759
+ header_params['Accept'] = self.api_client.select_header_accept(
760
+ ['application/json']) # noqa: E501
761
+
762
+ # Authentication setting
763
+ auth_settings = [] # noqa: E501
764
+
765
+ return self.api_client.call_api(
766
+ '/v1/projects/{projectId}/jobs/{id}', 'DELETE',
767
+ path_params,
768
+ query_params,
769
+ header_params,
770
+ body=body_params,
771
+ post_params=form_params,
772
+ files=local_var_files,
773
+ response_type='V1DeleteJobResponse', # noqa: E501
774
+ auth_settings=auth_settings,
775
+ async_req=params.get('async_req'),
776
+ _return_http_data_only=params.get('_return_http_data_only'),
777
+ _preload_content=params.get('_preload_content', True),
778
+ _request_timeout=params.get('_request_timeout'),
779
+ collection_formats=collection_formats)
780
+
781
+ def jobs_service_delete_job_index(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteIndexResponse': # noqa: E501
782
+ """jobs_service_delete_job_index # noqa: E501
783
+
784
+ This method makes a synchronous HTTP request by default. To make an
785
+ asynchronous HTTP request, please pass async_req=True
786
+ >>> thread = api.jobs_service_delete_job_index(project_id, id, async_req=True)
787
+ >>> result = thread.get()
788
+
789
+ :param async_req bool
790
+ :param str project_id: (required)
791
+ :param str id: (required)
792
+ :return: V1DeleteIndexResponse
793
+ If the method is called asynchronously,
794
+ returns the request thread.
795
+ """
796
+ kwargs['_return_http_data_only'] = True
797
+ if kwargs.get('async_req'):
798
+ return self.jobs_service_delete_job_index_with_http_info(project_id, id, **kwargs) # noqa: E501
799
+ else:
800
+ (data) = self.jobs_service_delete_job_index_with_http_info(project_id, id, **kwargs) # noqa: E501
801
+ return data
802
+
803
+ def jobs_service_delete_job_index_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteIndexResponse': # noqa: E501
804
+ """jobs_service_delete_job_index # noqa: E501
805
+
806
+ This method makes a synchronous HTTP request by default. To make an
807
+ asynchronous HTTP request, please pass async_req=True
808
+ >>> thread = api.jobs_service_delete_job_index_with_http_info(project_id, id, async_req=True)
809
+ >>> result = thread.get()
810
+
811
+ :param async_req bool
812
+ :param str project_id: (required)
813
+ :param str id: (required)
814
+ :return: V1DeleteIndexResponse
815
+ If the method is called asynchronously,
816
+ returns the request thread.
817
+ """
818
+
819
+ all_params = ['project_id', 'id'] # noqa: E501
820
+ all_params.append('async_req')
821
+ all_params.append('_return_http_data_only')
822
+ all_params.append('_preload_content')
823
+ all_params.append('_request_timeout')
824
+
825
+ params = locals()
826
+ for key, val in six.iteritems(params['kwargs']):
827
+ if key not in all_params:
828
+ raise TypeError(
829
+ "Got an unexpected keyword argument '%s'"
830
+ " to method jobs_service_delete_job_index" % key
831
+ )
832
+ params[key] = val
833
+ del params['kwargs']
834
+ # verify the required parameter 'project_id' is set
835
+ if ('project_id' not in params or
836
+ params['project_id'] is None):
837
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_job_index`") # noqa: E501
838
+ # verify the required parameter 'id' is set
839
+ if ('id' not in params or
840
+ params['id'] is None):
841
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_job_index`") # noqa: E501
842
+
843
+ collection_formats = {}
844
+
845
+ path_params = {}
846
+ if 'project_id' in params:
847
+ path_params['projectId'] = params['project_id'] # noqa: E501
848
+ if 'id' in params:
849
+ path_params['id'] = params['id'] # noqa: E501
850
+
851
+ query_params = []
852
+
853
+ header_params = {}
854
+
855
+ form_params = []
856
+ local_var_files = {}
857
+
858
+ body_params = None
859
+ # HTTP header `Accept`
860
+ header_params['Accept'] = self.api_client.select_header_accept(
861
+ ['application/json']) # noqa: E501
862
+
863
+ # Authentication setting
864
+ auth_settings = [] # noqa: E501
865
+
866
+ return self.api_client.call_api(
867
+ '/v1/projects/{projectId}/jobs/{id}/index', 'DELETE',
868
+ path_params,
869
+ query_params,
870
+ header_params,
871
+ body=body_params,
872
+ post_params=form_params,
873
+ files=local_var_files,
874
+ response_type='V1DeleteIndexResponse', # noqa: E501
875
+ auth_settings=auth_settings,
876
+ async_req=params.get('async_req'),
877
+ _return_http_data_only=params.get('_return_http_data_only'),
878
+ _preload_content=params.get('_preload_content', True),
879
+ _request_timeout=params.get('_request_timeout'),
880
+ collection_formats=collection_formats)
881
+
882
+ def jobs_service_delete_multi_machine_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMultiMachineJobResponse': # noqa: E501
883
+ """jobs_service_delete_multi_machine_job # noqa: E501
884
+
885
+ This method makes a synchronous HTTP request by default. To make an
886
+ asynchronous HTTP request, please pass async_req=True
887
+ >>> thread = api.jobs_service_delete_multi_machine_job(project_id, id, async_req=True)
888
+ >>> result = thread.get()
889
+
890
+ :param async_req bool
891
+ :param str project_id: (required)
892
+ :param str id: (required)
893
+ :return: V1DeleteMultiMachineJobResponse
894
+ If the method is called asynchronously,
895
+ returns the request thread.
896
+ """
897
+ kwargs['_return_http_data_only'] = True
898
+ if kwargs.get('async_req'):
899
+ return self.jobs_service_delete_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
900
+ else:
901
+ (data) = self.jobs_service_delete_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
902
+ return data
903
+
904
+ def jobs_service_delete_multi_machine_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMultiMachineJobResponse': # noqa: E501
905
+ """jobs_service_delete_multi_machine_job # noqa: E501
906
+
907
+ This method makes a synchronous HTTP request by default. To make an
908
+ asynchronous HTTP request, please pass async_req=True
909
+ >>> thread = api.jobs_service_delete_multi_machine_job_with_http_info(project_id, id, async_req=True)
910
+ >>> result = thread.get()
911
+
912
+ :param async_req bool
913
+ :param str project_id: (required)
914
+ :param str id: (required)
915
+ :return: V1DeleteMultiMachineJobResponse
916
+ If the method is called asynchronously,
917
+ returns the request thread.
918
+ """
919
+
920
+ all_params = ['project_id', 'id'] # noqa: E501
921
+ all_params.append('async_req')
922
+ all_params.append('_return_http_data_only')
923
+ all_params.append('_preload_content')
924
+ all_params.append('_request_timeout')
925
+
926
+ params = locals()
927
+ for key, val in six.iteritems(params['kwargs']):
928
+ if key not in all_params:
929
+ raise TypeError(
930
+ "Got an unexpected keyword argument '%s'"
931
+ " to method jobs_service_delete_multi_machine_job" % key
932
+ )
933
+ params[key] = val
934
+ del params['kwargs']
935
+ # verify the required parameter 'project_id' is set
936
+ if ('project_id' not in params or
937
+ params['project_id'] is None):
938
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_delete_multi_machine_job`") # noqa: E501
939
+ # verify the required parameter 'id' is set
940
+ if ('id' not in params or
941
+ params['id'] is None):
942
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_delete_multi_machine_job`") # noqa: E501
943
+
944
+ collection_formats = {}
945
+
946
+ path_params = {}
947
+ if 'project_id' in params:
948
+ path_params['projectId'] = params['project_id'] # noqa: E501
949
+ if 'id' in params:
950
+ path_params['id'] = params['id'] # noqa: E501
951
+
952
+ query_params = []
953
+
954
+ header_params = {}
955
+
956
+ form_params = []
957
+ local_var_files = {}
958
+
959
+ body_params = None
960
+ # HTTP header `Accept`
961
+ header_params['Accept'] = self.api_client.select_header_accept(
962
+ ['application/json']) # noqa: E501
963
+
964
+ # Authentication setting
965
+ auth_settings = [] # noqa: E501
966
+
967
+ return self.api_client.call_api(
968
+ '/v1/projects/{projectId}/multi-machine-jobs/{id}', 'DELETE',
969
+ path_params,
970
+ query_params,
971
+ header_params,
972
+ body=body_params,
973
+ post_params=form_params,
974
+ files=local_var_files,
975
+ response_type='V1DeleteMultiMachineJobResponse', # noqa: E501
976
+ auth_settings=auth_settings,
977
+ async_req=params.get('async_req'),
978
+ _return_http_data_only=params.get('_return_http_data_only'),
979
+ _preload_content=params.get('_preload_content', True),
980
+ _request_timeout=params.get('_request_timeout'),
981
+ collection_formats=collection_formats)
982
+
983
+ def jobs_service_download_job_logs(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DownloadJobLogsResponse': # noqa: E501
984
+ """jobs_service_download_job_logs # noqa: E501
985
+
986
+ This method makes a synchronous HTTP request by default. To make an
987
+ asynchronous HTTP request, please pass async_req=True
988
+ >>> thread = api.jobs_service_download_job_logs(project_id, id, async_req=True)
989
+ >>> result = thread.get()
990
+
991
+ :param async_req bool
992
+ :param str project_id: (required)
993
+ :param str id: (required)
994
+ :param str cloudspace_id:
995
+ :return: V1DownloadJobLogsResponse
996
+ If the method is called asynchronously,
997
+ returns the request thread.
998
+ """
999
+ kwargs['_return_http_data_only'] = True
1000
+ if kwargs.get('async_req'):
1001
+ return self.jobs_service_download_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
1002
+ else:
1003
+ (data) = self.jobs_service_download_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
1004
+ return data
1005
+
1006
+ def jobs_service_download_job_logs_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DownloadJobLogsResponse': # noqa: E501
1007
+ """jobs_service_download_job_logs # noqa: E501
1008
+
1009
+ This method makes a synchronous HTTP request by default. To make an
1010
+ asynchronous HTTP request, please pass async_req=True
1011
+ >>> thread = api.jobs_service_download_job_logs_with_http_info(project_id, id, async_req=True)
1012
+ >>> result = thread.get()
1013
+
1014
+ :param async_req bool
1015
+ :param str project_id: (required)
1016
+ :param str id: (required)
1017
+ :param str cloudspace_id:
1018
+ :return: V1DownloadJobLogsResponse
1019
+ If the method is called asynchronously,
1020
+ returns the request thread.
1021
+ """
1022
+
1023
+ all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
1024
+ all_params.append('async_req')
1025
+ all_params.append('_return_http_data_only')
1026
+ all_params.append('_preload_content')
1027
+ all_params.append('_request_timeout')
1028
+
1029
+ params = locals()
1030
+ for key, val in six.iteritems(params['kwargs']):
1031
+ if key not in all_params:
1032
+ raise TypeError(
1033
+ "Got an unexpected keyword argument '%s'"
1034
+ " to method jobs_service_download_job_logs" % key
1035
+ )
1036
+ params[key] = val
1037
+ del params['kwargs']
1038
+ # verify the required parameter 'project_id' is set
1039
+ if ('project_id' not in params or
1040
+ params['project_id'] is None):
1041
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_download_job_logs`") # noqa: E501
1042
+ # verify the required parameter 'id' is set
1043
+ if ('id' not in params or
1044
+ params['id'] is None):
1045
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_download_job_logs`") # noqa: E501
1046
+
1047
+ collection_formats = {}
1048
+
1049
+ path_params = {}
1050
+ if 'project_id' in params:
1051
+ path_params['projectId'] = params['project_id'] # noqa: E501
1052
+ if 'id' in params:
1053
+ path_params['id'] = params['id'] # noqa: E501
1054
+
1055
+ query_params = []
1056
+ if 'cloudspace_id' in params:
1057
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
1058
+
1059
+ header_params = {}
1060
+
1061
+ form_params = []
1062
+ local_var_files = {}
1063
+
1064
+ body_params = None
1065
+ # HTTP header `Accept`
1066
+ header_params['Accept'] = self.api_client.select_header_accept(
1067
+ ['application/json']) # noqa: E501
1068
+
1069
+ # Authentication setting
1070
+ auth_settings = [] # noqa: E501
1071
+
1072
+ return self.api_client.call_api(
1073
+ '/v1/projects/{projectId}/jobs/{id}/download-logs', 'GET',
1074
+ path_params,
1075
+ query_params,
1076
+ header_params,
1077
+ body=body_params,
1078
+ post_params=form_params,
1079
+ files=local_var_files,
1080
+ response_type='V1DownloadJobLogsResponse', # noqa: E501
1081
+ auth_settings=auth_settings,
1082
+ async_req=params.get('async_req'),
1083
+ _return_http_data_only=params.get('_return_http_data_only'),
1084
+ _preload_content=params.get('_preload_content', True),
1085
+ _request_timeout=params.get('_request_timeout'),
1086
+ collection_formats=collection_formats)
1087
+
1088
+ def jobs_service_find_job(self, project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
1089
+ """jobs_service_find_job # noqa: E501
1090
+
1091
+ This method makes a synchronous HTTP request by default. To make an
1092
+ asynchronous HTTP request, please pass async_req=True
1093
+ >>> thread = api.jobs_service_find_job(project_id, async_req=True)
1094
+ >>> result = thread.get()
1095
+
1096
+ :param async_req bool
1097
+ :param str project_id: (required)
1098
+ :param str name:
1099
+ :return: V1Job
1100
+ If the method is called asynchronously,
1101
+ returns the request thread.
1102
+ """
1103
+ kwargs['_return_http_data_only'] = True
1104
+ if kwargs.get('async_req'):
1105
+ return self.jobs_service_find_job_with_http_info(project_id, **kwargs) # noqa: E501
1106
+ else:
1107
+ (data) = self.jobs_service_find_job_with_http_info(project_id, **kwargs) # noqa: E501
1108
+ return data
1109
+
1110
+ def jobs_service_find_job_with_http_info(self, project_id: 'str', **kwargs) -> 'V1Job': # noqa: E501
1111
+ """jobs_service_find_job # noqa: E501
1112
+
1113
+ This method makes a synchronous HTTP request by default. To make an
1114
+ asynchronous HTTP request, please pass async_req=True
1115
+ >>> thread = api.jobs_service_find_job_with_http_info(project_id, async_req=True)
1116
+ >>> result = thread.get()
1117
+
1118
+ :param async_req bool
1119
+ :param str project_id: (required)
1120
+ :param str name:
1121
+ :return: V1Job
1122
+ If the method is called asynchronously,
1123
+ returns the request thread.
1124
+ """
1125
+
1126
+ all_params = ['project_id', 'name'] # noqa: E501
1127
+ all_params.append('async_req')
1128
+ all_params.append('_return_http_data_only')
1129
+ all_params.append('_preload_content')
1130
+ all_params.append('_request_timeout')
1131
+
1132
+ params = locals()
1133
+ for key, val in six.iteritems(params['kwargs']):
1134
+ if key not in all_params:
1135
+ raise TypeError(
1136
+ "Got an unexpected keyword argument '%s'"
1137
+ " to method jobs_service_find_job" % key
1138
+ )
1139
+ params[key] = val
1140
+ del params['kwargs']
1141
+ # verify the required parameter 'project_id' is set
1142
+ if ('project_id' not in params or
1143
+ params['project_id'] is None):
1144
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_find_job`") # noqa: E501
1145
+
1146
+ collection_formats = {}
1147
+
1148
+ path_params = {}
1149
+ if 'project_id' in params:
1150
+ path_params['projectId'] = params['project_id'] # noqa: E501
1151
+
1152
+ query_params = []
1153
+ if 'name' in params:
1154
+ query_params.append(('name', params['name'])) # noqa: E501
1155
+
1156
+ header_params = {}
1157
+
1158
+ form_params = []
1159
+ local_var_files = {}
1160
+
1161
+ body_params = None
1162
+ # HTTP header `Accept`
1163
+ header_params['Accept'] = self.api_client.select_header_accept(
1164
+ ['application/json']) # noqa: E501
1165
+
1166
+ # Authentication setting
1167
+ auth_settings = [] # noqa: E501
1168
+
1169
+ return self.api_client.call_api(
1170
+ '/v1/projects/{projectId}/jobs/find', 'GET',
1171
+ path_params,
1172
+ query_params,
1173
+ header_params,
1174
+ body=body_params,
1175
+ post_params=form_params,
1176
+ files=local_var_files,
1177
+ response_type='V1Job', # noqa: E501
1178
+ auth_settings=auth_settings,
1179
+ async_req=params.get('async_req'),
1180
+ _return_http_data_only=params.get('_return_http_data_only'),
1181
+ _preload_content=params.get('_preload_content', True),
1182
+ _request_timeout=params.get('_request_timeout'),
1183
+ collection_formats=collection_formats)
1184
+
1185
+ def jobs_service_get_deployment(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1186
+ """jobs_service_get_deployment # noqa: E501
1187
+
1188
+ This method makes a synchronous HTTP request by default. To make an
1189
+ asynchronous HTTP request, please pass async_req=True
1190
+ >>> thread = api.jobs_service_get_deployment(project_id, id, async_req=True)
1191
+ >>> result = thread.get()
1192
+
1193
+ :param async_req bool
1194
+ :param str project_id: (required)
1195
+ :param str id: (required)
1196
+ :return: V1Deployment
1197
+ If the method is called asynchronously,
1198
+ returns the request thread.
1199
+ """
1200
+ kwargs['_return_http_data_only'] = True
1201
+ if kwargs.get('async_req'):
1202
+ return self.jobs_service_get_deployment_with_http_info(project_id, id, **kwargs) # noqa: E501
1203
+ else:
1204
+ (data) = self.jobs_service_get_deployment_with_http_info(project_id, id, **kwargs) # noqa: E501
1205
+ return data
1206
+
1207
+ def jobs_service_get_deployment_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1208
+ """jobs_service_get_deployment # noqa: E501
1209
+
1210
+ This method makes a synchronous HTTP request by default. To make an
1211
+ asynchronous HTTP request, please pass async_req=True
1212
+ >>> thread = api.jobs_service_get_deployment_with_http_info(project_id, id, async_req=True)
1213
+ >>> result = thread.get()
1214
+
1215
+ :param async_req bool
1216
+ :param str project_id: (required)
1217
+ :param str id: (required)
1218
+ :return: V1Deployment
1219
+ If the method is called asynchronously,
1220
+ returns the request thread.
1221
+ """
1222
+
1223
+ all_params = ['project_id', 'id'] # noqa: E501
1224
+ all_params.append('async_req')
1225
+ all_params.append('_return_http_data_only')
1226
+ all_params.append('_preload_content')
1227
+ all_params.append('_request_timeout')
1228
+
1229
+ params = locals()
1230
+ for key, val in six.iteritems(params['kwargs']):
1231
+ if key not in all_params:
1232
+ raise TypeError(
1233
+ "Got an unexpected keyword argument '%s'"
1234
+ " to method jobs_service_get_deployment" % key
1235
+ )
1236
+ params[key] = val
1237
+ del params['kwargs']
1238
+ # verify the required parameter 'project_id' is set
1239
+ if ('project_id' not in params or
1240
+ params['project_id'] is None):
1241
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment`") # noqa: E501
1242
+ # verify the required parameter 'id' is set
1243
+ if ('id' not in params or
1244
+ params['id'] is None):
1245
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment`") # noqa: E501
1246
+
1247
+ collection_formats = {}
1248
+
1249
+ path_params = {}
1250
+ if 'project_id' in params:
1251
+ path_params['projectId'] = params['project_id'] # noqa: E501
1252
+ if 'id' in params:
1253
+ path_params['id'] = params['id'] # noqa: E501
1254
+
1255
+ query_params = []
1256
+
1257
+ header_params = {}
1258
+
1259
+ form_params = []
1260
+ local_var_files = {}
1261
+
1262
+ body_params = None
1263
+ # HTTP header `Accept`
1264
+ header_params['Accept'] = self.api_client.select_header_accept(
1265
+ ['application/json']) # noqa: E501
1266
+
1267
+ # Authentication setting
1268
+ auth_settings = [] # noqa: E501
1269
+
1270
+ return self.api_client.call_api(
1271
+ '/v1/projects/{projectId}/deployments/{id}', 'GET',
1272
+ path_params,
1273
+ query_params,
1274
+ header_params,
1275
+ body=body_params,
1276
+ post_params=form_params,
1277
+ files=local_var_files,
1278
+ response_type='V1Deployment', # noqa: E501
1279
+ auth_settings=auth_settings,
1280
+ async_req=params.get('async_req'),
1281
+ _return_http_data_only=params.get('_return_http_data_only'),
1282
+ _preload_content=params.get('_preload_content', True),
1283
+ _request_timeout=params.get('_request_timeout'),
1284
+ collection_formats=collection_formats)
1285
+
1286
+ def jobs_service_get_deployment_by_name(self, project_id: 'str', name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1287
+ """jobs_service_get_deployment_by_name # noqa: E501
1288
+
1289
+ This method makes a synchronous HTTP request by default. To make an
1290
+ asynchronous HTTP request, please pass async_req=True
1291
+ >>> thread = api.jobs_service_get_deployment_by_name(project_id, name, async_req=True)
1292
+ >>> result = thread.get()
1293
+
1294
+ :param async_req bool
1295
+ :param str project_id: (required)
1296
+ :param str name: (required)
1297
+ :return: V1Deployment
1298
+ If the method is called asynchronously,
1299
+ returns the request thread.
1300
+ """
1301
+ kwargs['_return_http_data_only'] = True
1302
+ if kwargs.get('async_req'):
1303
+ return self.jobs_service_get_deployment_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
1304
+ else:
1305
+ (data) = self.jobs_service_get_deployment_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
1306
+ return data
1307
+
1308
+ def jobs_service_get_deployment_by_name_with_http_info(self, project_id: 'str', name: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
1309
+ """jobs_service_get_deployment_by_name # noqa: E501
1310
+
1311
+ This method makes a synchronous HTTP request by default. To make an
1312
+ asynchronous HTTP request, please pass async_req=True
1313
+ >>> thread = api.jobs_service_get_deployment_by_name_with_http_info(project_id, name, async_req=True)
1314
+ >>> result = thread.get()
1315
+
1316
+ :param async_req bool
1317
+ :param str project_id: (required)
1318
+ :param str name: (required)
1319
+ :return: V1Deployment
1320
+ If the method is called asynchronously,
1321
+ returns the request thread.
1322
+ """
1323
+
1324
+ all_params = ['project_id', 'name'] # noqa: E501
1325
+ all_params.append('async_req')
1326
+ all_params.append('_return_http_data_only')
1327
+ all_params.append('_preload_content')
1328
+ all_params.append('_request_timeout')
1329
+
1330
+ params = locals()
1331
+ for key, val in six.iteritems(params['kwargs']):
1332
+ if key not in all_params:
1333
+ raise TypeError(
1334
+ "Got an unexpected keyword argument '%s'"
1335
+ " to method jobs_service_get_deployment_by_name" % key
1336
+ )
1337
+ params[key] = val
1338
+ del params['kwargs']
1339
+ # verify the required parameter 'project_id' is set
1340
+ if ('project_id' not in params or
1341
+ params['project_id'] is None):
1342
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_by_name`") # noqa: E501
1343
+ # verify the required parameter 'name' is set
1344
+ if ('name' not in params or
1345
+ params['name'] is None):
1346
+ raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_deployment_by_name`") # noqa: E501
1347
+
1348
+ collection_formats = {}
1349
+
1350
+ path_params = {}
1351
+ if 'project_id' in params:
1352
+ path_params['projectId'] = params['project_id'] # noqa: E501
1353
+ if 'name' in params:
1354
+ path_params['name'] = params['name'] # noqa: E501
1355
+
1356
+ query_params = []
1357
+
1358
+ header_params = {}
1359
+
1360
+ form_params = []
1361
+ local_var_files = {}
1362
+
1363
+ body_params = None
1364
+ # HTTP header `Accept`
1365
+ header_params['Accept'] = self.api_client.select_header_accept(
1366
+ ['application/json']) # noqa: E501
1367
+
1368
+ # Authentication setting
1369
+ auth_settings = [] # noqa: E501
1370
+
1371
+ return self.api_client.call_api(
1372
+ '/v1/projects/{projectId}/deployments/{name}/getbyname', 'GET',
1373
+ path_params,
1374
+ query_params,
1375
+ header_params,
1376
+ body=body_params,
1377
+ post_params=form_params,
1378
+ files=local_var_files,
1379
+ response_type='V1Deployment', # noqa: E501
1380
+ auth_settings=auth_settings,
1381
+ async_req=params.get('async_req'),
1382
+ _return_http_data_only=params.get('_return_http_data_only'),
1383
+ _preload_content=params.get('_preload_content', True),
1384
+ _request_timeout=params.get('_request_timeout'),
1385
+ collection_formats=collection_formats)
1386
+
1387
+ def jobs_service_get_deployment_routing_telemetry(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryResponse': # noqa: E501
1388
+ """Deployment Telemetry # noqa: E501
1389
+
1390
+ This method makes a synchronous HTTP request by default. To make an
1391
+ asynchronous HTTP request, please pass async_req=True
1392
+ >>> thread = api.jobs_service_get_deployment_routing_telemetry(project_id, id, async_req=True)
1393
+ >>> result = thread.get()
1394
+
1395
+ :param async_req bool
1396
+ :param str project_id: (required)
1397
+ :param str id: (required)
1398
+ :param datetime start:
1399
+ :param datetime end:
1400
+ :param str path:
1401
+ :param int status_code:
1402
+ :param bool group_by_resource:
1403
+ :param str resolution:
1404
+ :return: V1GetDeploymentRoutingTelemetryResponse
1405
+ If the method is called asynchronously,
1406
+ returns the request thread.
1407
+ """
1408
+ kwargs['_return_http_data_only'] = True
1409
+ if kwargs.get('async_req'):
1410
+ return self.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
1411
+ else:
1412
+ (data) = self.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, **kwargs) # noqa: E501
1413
+ return data
1414
+
1415
+ def jobs_service_get_deployment_routing_telemetry_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryResponse': # noqa: E501
1416
+ """Deployment Telemetry # 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.jobs_service_get_deployment_routing_telemetry_with_http_info(project_id, id, async_req=True)
1421
+ >>> result = thread.get()
1422
+
1423
+ :param async_req bool
1424
+ :param str project_id: (required)
1425
+ :param str id: (required)
1426
+ :param datetime start:
1427
+ :param datetime end:
1428
+ :param str path:
1429
+ :param int status_code:
1430
+ :param bool group_by_resource:
1431
+ :param str resolution:
1432
+ :return: V1GetDeploymentRoutingTelemetryResponse
1433
+ If the method is called asynchronously,
1434
+ returns the request thread.
1435
+ """
1436
+
1437
+ all_params = ['project_id', 'id', 'start', 'end', 'path', 'status_code', 'group_by_resource', 'resolution'] # noqa: E501
1438
+ all_params.append('async_req')
1439
+ all_params.append('_return_http_data_only')
1440
+ all_params.append('_preload_content')
1441
+ all_params.append('_request_timeout')
1442
+
1443
+ params = locals()
1444
+ for key, val in six.iteritems(params['kwargs']):
1445
+ if key not in all_params:
1446
+ raise TypeError(
1447
+ "Got an unexpected keyword argument '%s'"
1448
+ " to method jobs_service_get_deployment_routing_telemetry" % key
1449
+ )
1450
+ params[key] = val
1451
+ del params['kwargs']
1452
+ # verify the required parameter 'project_id' is set
1453
+ if ('project_id' not in params or
1454
+ params['project_id'] is None):
1455
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry`") # noqa: E501
1456
+ # verify the required parameter 'id' is set
1457
+ if ('id' not in params or
1458
+ params['id'] is None):
1459
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry`") # noqa: E501
1460
+
1461
+ collection_formats = {}
1462
+
1463
+ path_params = {}
1464
+ if 'project_id' in params:
1465
+ path_params['projectId'] = params['project_id'] # noqa: E501
1466
+ if 'id' in params:
1467
+ path_params['id'] = params['id'] # noqa: E501
1468
+
1469
+ query_params = []
1470
+ if 'start' in params:
1471
+ query_params.append(('start', params['start'])) # noqa: E501
1472
+ if 'end' in params:
1473
+ query_params.append(('end', params['end'])) # noqa: E501
1474
+ if 'path' in params:
1475
+ query_params.append(('path', params['path'])) # noqa: E501
1476
+ if 'status_code' in params:
1477
+ query_params.append(('statusCode', params['status_code'])) # noqa: E501
1478
+ if 'group_by_resource' in params:
1479
+ query_params.append(('groupByResource', params['group_by_resource'])) # noqa: E501
1480
+ if 'resolution' in params:
1481
+ query_params.append(('resolution', params['resolution'])) # noqa: E501
1482
+
1483
+ header_params = {}
1484
+
1485
+ form_params = []
1486
+ local_var_files = {}
1487
+
1488
+ body_params = None
1489
+ # HTTP header `Accept`
1490
+ header_params['Accept'] = self.api_client.select_header_accept(
1491
+ ['application/json']) # noqa: E501
1492
+
1493
+ # Authentication setting
1494
+ auth_settings = [] # noqa: E501
1495
+
1496
+ return self.api_client.call_api(
1497
+ '/v1/projects/{projectId}/deployments/{id}/telemetry', 'GET',
1498
+ path_params,
1499
+ query_params,
1500
+ header_params,
1501
+ body=body_params,
1502
+ post_params=form_params,
1503
+ files=local_var_files,
1504
+ response_type='V1GetDeploymentRoutingTelemetryResponse', # noqa: E501
1505
+ auth_settings=auth_settings,
1506
+ async_req=params.get('async_req'),
1507
+ _return_http_data_only=params.get('_return_http_data_only'),
1508
+ _preload_content=params.get('_preload_content', True),
1509
+ _request_timeout=params.get('_request_timeout'),
1510
+ collection_formats=collection_formats)
1511
+
1512
+ def jobs_service_get_deployment_routing_telemetry_aggregated(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryAggregatedResponse': # noqa: E501
1513
+ """Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
1514
+
1515
+ This method makes a synchronous HTTP request by default. To make an
1516
+ asynchronous HTTP request, please pass async_req=True
1517
+ >>> thread = api.jobs_service_get_deployment_routing_telemetry_aggregated(project_id, id, async_req=True)
1518
+ >>> result = thread.get()
1519
+
1520
+ :param async_req bool
1521
+ :param str project_id: (required)
1522
+ :param str id: (required)
1523
+ :param datetime start:
1524
+ :param datetime end:
1525
+ :param list[str] paths:
1526
+ :param list[str] status_codes:
1527
+ :param str resolution:
1528
+ :return: V1GetDeploymentRoutingTelemetryAggregatedResponse
1529
+ If the method is called asynchronously,
1530
+ returns the request thread.
1531
+ """
1532
+ kwargs['_return_http_data_only'] = True
1533
+ if kwargs.get('async_req'):
1534
+ return self.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, **kwargs) # noqa: E501
1535
+ else:
1536
+ (data) = self.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, **kwargs) # noqa: E501
1537
+ return data
1538
+
1539
+ def jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetDeploymentRoutingTelemetryAggregatedResponse': # noqa: E501
1540
+ """Deployment Telemetry aggregated to display global monitor metrics # noqa: E501
1541
+
1542
+ This method makes a synchronous HTTP request by default. To make an
1543
+ asynchronous HTTP request, please pass async_req=True
1544
+ >>> thread = api.jobs_service_get_deployment_routing_telemetry_aggregated_with_http_info(project_id, id, async_req=True)
1545
+ >>> result = thread.get()
1546
+
1547
+ :param async_req bool
1548
+ :param str project_id: (required)
1549
+ :param str id: (required)
1550
+ :param datetime start:
1551
+ :param datetime end:
1552
+ :param list[str] paths:
1553
+ :param list[str] status_codes:
1554
+ :param str resolution:
1555
+ :return: V1GetDeploymentRoutingTelemetryAggregatedResponse
1556
+ If the method is called asynchronously,
1557
+ returns the request thread.
1558
+ """
1559
+
1560
+ all_params = ['project_id', 'id', 'start', 'end', 'paths', 'status_codes', 'resolution'] # noqa: E501
1561
+ all_params.append('async_req')
1562
+ all_params.append('_return_http_data_only')
1563
+ all_params.append('_preload_content')
1564
+ all_params.append('_request_timeout')
1565
+
1566
+ params = locals()
1567
+ for key, val in six.iteritems(params['kwargs']):
1568
+ if key not in all_params:
1569
+ raise TypeError(
1570
+ "Got an unexpected keyword argument '%s'"
1571
+ " to method jobs_service_get_deployment_routing_telemetry_aggregated" % key
1572
+ )
1573
+ params[key] = val
1574
+ del params['kwargs']
1575
+ # verify the required parameter 'project_id' is set
1576
+ if ('project_id' not in params or
1577
+ params['project_id'] is None):
1578
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_deployment_routing_telemetry_aggregated`") # noqa: E501
1579
+ # verify the required parameter 'id' is set
1580
+ if ('id' not in params or
1581
+ params['id'] is None):
1582
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_deployment_routing_telemetry_aggregated`") # noqa: E501
1583
+
1584
+ collection_formats = {}
1585
+
1586
+ path_params = {}
1587
+ if 'project_id' in params:
1588
+ path_params['projectId'] = params['project_id'] # noqa: E501
1589
+ if 'id' in params:
1590
+ path_params['id'] = params['id'] # noqa: E501
1591
+
1592
+ query_params = []
1593
+ if 'start' in params:
1594
+ query_params.append(('start', params['start'])) # noqa: E501
1595
+ if 'end' in params:
1596
+ query_params.append(('end', params['end'])) # noqa: E501
1597
+ if 'paths' in params:
1598
+ query_params.append(('paths', params['paths'])) # noqa: E501
1599
+ collection_formats['paths'] = 'multi' # noqa: E501
1600
+ if 'status_codes' in params:
1601
+ query_params.append(('statusCodes', params['status_codes'])) # noqa: E501
1602
+ collection_formats['statusCodes'] = 'multi' # noqa: E501
1603
+ if 'resolution' in params:
1604
+ query_params.append(('resolution', params['resolution'])) # noqa: E501
1605
+
1606
+ header_params = {}
1607
+
1608
+ form_params = []
1609
+ local_var_files = {}
1610
+
1611
+ body_params = None
1612
+ # HTTP header `Accept`
1613
+ header_params['Accept'] = self.api_client.select_header_accept(
1614
+ ['application/json']) # noqa: E501
1615
+
1616
+ # Authentication setting
1617
+ auth_settings = [] # noqa: E501
1618
+
1619
+ return self.api_client.call_api(
1620
+ '/v1/projects/{projectId}/deployments/{id}/telemetry-aggregated', 'GET',
1621
+ path_params,
1622
+ query_params,
1623
+ header_params,
1624
+ body=body_params,
1625
+ post_params=form_params,
1626
+ files=local_var_files,
1627
+ response_type='V1GetDeploymentRoutingTelemetryAggregatedResponse', # noqa: E501
1628
+ auth_settings=auth_settings,
1629
+ async_req=params.get('async_req'),
1630
+ _return_http_data_only=params.get('_return_http_data_only'),
1631
+ _preload_content=params.get('_preload_content', True),
1632
+ _request_timeout=params.get('_request_timeout'),
1633
+ collection_formats=collection_formats)
1634
+
1635
+ def jobs_service_get_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
1636
+ """jobs_service_get_job # noqa: E501
1637
+
1638
+ This method makes a synchronous HTTP request by default. To make an
1639
+ asynchronous HTTP request, please pass async_req=True
1640
+ >>> thread = api.jobs_service_get_job(project_id, id, async_req=True)
1641
+ >>> result = thread.get()
1642
+
1643
+ :param async_req bool
1644
+ :param str project_id: (required)
1645
+ :param str id: (required)
1646
+ :param str cloudspace_id:
1647
+ :return: V1Job
1648
+ If the method is called asynchronously,
1649
+ returns the request thread.
1650
+ """
1651
+ kwargs['_return_http_data_only'] = True
1652
+ if kwargs.get('async_req'):
1653
+ return self.jobs_service_get_job_with_http_info(project_id, id, **kwargs) # noqa: E501
1654
+ else:
1655
+ (data) = self.jobs_service_get_job_with_http_info(project_id, id, **kwargs) # noqa: E501
1656
+ return data
1657
+
1658
+ def jobs_service_get_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
1659
+ """jobs_service_get_job # noqa: E501
1660
+
1661
+ This method makes a synchronous HTTP request by default. To make an
1662
+ asynchronous HTTP request, please pass async_req=True
1663
+ >>> thread = api.jobs_service_get_job_with_http_info(project_id, id, async_req=True)
1664
+ >>> result = thread.get()
1665
+
1666
+ :param async_req bool
1667
+ :param str project_id: (required)
1668
+ :param str id: (required)
1669
+ :param str cloudspace_id:
1670
+ :return: V1Job
1671
+ If the method is called asynchronously,
1672
+ returns the request thread.
1673
+ """
1674
+
1675
+ all_params = ['project_id', 'id', 'cloudspace_id'] # noqa: E501
1676
+ all_params.append('async_req')
1677
+ all_params.append('_return_http_data_only')
1678
+ all_params.append('_preload_content')
1679
+ all_params.append('_request_timeout')
1680
+
1681
+ params = locals()
1682
+ for key, val in six.iteritems(params['kwargs']):
1683
+ if key not in all_params:
1684
+ raise TypeError(
1685
+ "Got an unexpected keyword argument '%s'"
1686
+ " to method jobs_service_get_job" % key
1687
+ )
1688
+ params[key] = val
1689
+ del params['kwargs']
1690
+ # verify the required parameter 'project_id' is set
1691
+ if ('project_id' not in params or
1692
+ params['project_id'] is None):
1693
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job`") # noqa: E501
1694
+ # verify the required parameter 'id' is set
1695
+ if ('id' not in params or
1696
+ params['id'] is None):
1697
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_job`") # noqa: E501
1698
+
1699
+ collection_formats = {}
1700
+
1701
+ path_params = {}
1702
+ if 'project_id' in params:
1703
+ path_params['projectId'] = params['project_id'] # noqa: E501
1704
+ if 'id' in params:
1705
+ path_params['id'] = params['id'] # noqa: E501
1706
+
1707
+ query_params = []
1708
+ if 'cloudspace_id' in params:
1709
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
1710
+
1711
+ header_params = {}
1712
+
1713
+ form_params = []
1714
+ local_var_files = {}
1715
+
1716
+ body_params = None
1717
+ # HTTP header `Accept`
1718
+ header_params['Accept'] = self.api_client.select_header_accept(
1719
+ ['application/json']) # noqa: E501
1720
+
1721
+ # Authentication setting
1722
+ auth_settings = [] # noqa: E501
1723
+
1724
+ return self.api_client.call_api(
1725
+ '/v1/projects/{projectId}/jobs/{id}', 'GET',
1726
+ path_params,
1727
+ query_params,
1728
+ header_params,
1729
+ body=body_params,
1730
+ post_params=form_params,
1731
+ files=local_var_files,
1732
+ response_type='V1Job', # noqa: E501
1733
+ auth_settings=auth_settings,
1734
+ async_req=params.get('async_req'),
1735
+ _return_http_data_only=params.get('_return_http_data_only'),
1736
+ _preload_content=params.get('_preload_content', True),
1737
+ _request_timeout=params.get('_request_timeout'),
1738
+ collection_formats=collection_formats)
1739
+
1740
+ def jobs_service_get_job_logs(self, project_id: 'str', id: 'str', **kwargs) -> 'V1JobLogsResponse': # noqa: E501
1741
+ """jobs_service_get_job_logs # noqa: E501
1742
+
1743
+ This method makes a synchronous HTTP request by default. To make an
1744
+ asynchronous HTTP request, please pass async_req=True
1745
+ >>> thread = api.jobs_service_get_job_logs(project_id, id, async_req=True)
1746
+ >>> result = thread.get()
1747
+
1748
+ :param async_req bool
1749
+ :param str project_id: (required)
1750
+ :param str id: (required)
1751
+ :param str cloudspace_id:
1752
+ :param str since:
1753
+ :param str until:
1754
+ :param str deployment_id:
1755
+ :return: V1JobLogsResponse
1756
+ If the method is called asynchronously,
1757
+ returns the request thread.
1758
+ """
1759
+ kwargs['_return_http_data_only'] = True
1760
+ if kwargs.get('async_req'):
1761
+ return self.jobs_service_get_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
1762
+ else:
1763
+ (data) = self.jobs_service_get_job_logs_with_http_info(project_id, id, **kwargs) # noqa: E501
1764
+ return data
1765
+
1766
+ def jobs_service_get_job_logs_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1JobLogsResponse': # noqa: E501
1767
+ """jobs_service_get_job_logs # noqa: E501
1768
+
1769
+ This method makes a synchronous HTTP request by default. To make an
1770
+ asynchronous HTTP request, please pass async_req=True
1771
+ >>> thread = api.jobs_service_get_job_logs_with_http_info(project_id, id, async_req=True)
1772
+ >>> result = thread.get()
1773
+
1774
+ :param async_req bool
1775
+ :param str project_id: (required)
1776
+ :param str id: (required)
1777
+ :param str cloudspace_id:
1778
+ :param str since:
1779
+ :param str until:
1780
+ :param str deployment_id:
1781
+ :return: V1JobLogsResponse
1782
+ If the method is called asynchronously,
1783
+ returns the request thread.
1784
+ """
1785
+
1786
+ all_params = ['project_id', 'id', 'cloudspace_id', 'since', 'until', 'deployment_id'] # noqa: E501
1787
+ all_params.append('async_req')
1788
+ all_params.append('_return_http_data_only')
1789
+ all_params.append('_preload_content')
1790
+ all_params.append('_request_timeout')
1791
+
1792
+ params = locals()
1793
+ for key, val in six.iteritems(params['kwargs']):
1794
+ if key not in all_params:
1795
+ raise TypeError(
1796
+ "Got an unexpected keyword argument '%s'"
1797
+ " to method jobs_service_get_job_logs" % key
1798
+ )
1799
+ params[key] = val
1800
+ del params['kwargs']
1801
+ # verify the required parameter 'project_id' is set
1802
+ if ('project_id' not in params or
1803
+ params['project_id'] is None):
1804
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_logs`") # noqa: E501
1805
+ # verify the required parameter 'id' is set
1806
+ if ('id' not in params or
1807
+ params['id'] is None):
1808
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_job_logs`") # noqa: E501
1809
+
1810
+ collection_formats = {}
1811
+
1812
+ path_params = {}
1813
+ if 'project_id' in params:
1814
+ path_params['projectId'] = params['project_id'] # noqa: E501
1815
+ if 'id' in params:
1816
+ path_params['id'] = params['id'] # noqa: E501
1817
+
1818
+ query_params = []
1819
+ if 'cloudspace_id' in params:
1820
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
1821
+ if 'since' in params:
1822
+ query_params.append(('since', params['since'])) # noqa: E501
1823
+ if 'until' in params:
1824
+ query_params.append(('until', params['until'])) # noqa: E501
1825
+ if 'deployment_id' in params:
1826
+ query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
1827
+
1828
+ header_params = {}
1829
+
1830
+ form_params = []
1831
+ local_var_files = {}
1832
+
1833
+ body_params = None
1834
+ # HTTP header `Accept`
1835
+ header_params['Accept'] = self.api_client.select_header_accept(
1836
+ ['application/json']) # noqa: E501
1837
+
1838
+ # Authentication setting
1839
+ auth_settings = [] # noqa: E501
1840
+
1841
+ return self.api_client.call_api(
1842
+ '/v1/projects/{projectId}/jobs/{id}/page-logs', 'GET',
1843
+ path_params,
1844
+ query_params,
1845
+ header_params,
1846
+ body=body_params,
1847
+ post_params=form_params,
1848
+ files=local_var_files,
1849
+ response_type='V1JobLogsResponse', # noqa: E501
1850
+ auth_settings=auth_settings,
1851
+ async_req=params.get('async_req'),
1852
+ _return_http_data_only=params.get('_return_http_data_only'),
1853
+ _preload_content=params.get('_preload_content', True),
1854
+ _request_timeout=params.get('_request_timeout'),
1855
+ collection_formats=collection_formats)
1856
+
1857
+ def jobs_service_get_job_stats(self, **kwargs) -> 'V1GetJobStatsResponse': # noqa: E501
1858
+ """jobs_service_get_job_stats # noqa: E501
1859
+
1860
+ This method makes a synchronous HTTP request by default. To make an
1861
+ asynchronous HTTP request, please pass async_req=True
1862
+ >>> thread = api.jobs_service_get_job_stats(async_req=True)
1863
+ >>> result = thread.get()
1864
+
1865
+ :param async_req bool
1866
+ :param str org_id:
1867
+ :param str project_id:
1868
+ :return: V1GetJobStatsResponse
1869
+ If the method is called asynchronously,
1870
+ returns the request thread.
1871
+ """
1872
+ kwargs['_return_http_data_only'] = True
1873
+ if kwargs.get('async_req'):
1874
+ return self.jobs_service_get_job_stats_with_http_info(**kwargs) # noqa: E501
1875
+ else:
1876
+ (data) = self.jobs_service_get_job_stats_with_http_info(**kwargs) # noqa: E501
1877
+ return data
1878
+
1879
+ def jobs_service_get_job_stats_with_http_info(self, **kwargs) -> 'V1GetJobStatsResponse': # noqa: E501
1880
+ """jobs_service_get_job_stats # noqa: E501
1881
+
1882
+ This method makes a synchronous HTTP request by default. To make an
1883
+ asynchronous HTTP request, please pass async_req=True
1884
+ >>> thread = api.jobs_service_get_job_stats_with_http_info(async_req=True)
1885
+ >>> result = thread.get()
1886
+
1887
+ :param async_req bool
1888
+ :param str org_id:
1889
+ :param str project_id:
1890
+ :return: V1GetJobStatsResponse
1891
+ If the method is called asynchronously,
1892
+ returns the request thread.
1893
+ """
1894
+
1895
+ all_params = ['org_id', 'project_id'] # noqa: E501
1896
+ all_params.append('async_req')
1897
+ all_params.append('_return_http_data_only')
1898
+ all_params.append('_preload_content')
1899
+ all_params.append('_request_timeout')
1900
+
1901
+ params = locals()
1902
+ for key, val in six.iteritems(params['kwargs']):
1903
+ if key not in all_params:
1904
+ raise TypeError(
1905
+ "Got an unexpected keyword argument '%s'"
1906
+ " to method jobs_service_get_job_stats" % key
1907
+ )
1908
+ params[key] = val
1909
+ del params['kwargs']
1910
+
1911
+ collection_formats = {}
1912
+
1913
+ path_params = {}
1914
+
1915
+ query_params = []
1916
+ if 'org_id' in params:
1917
+ query_params.append(('orgId', params['org_id'])) # noqa: E501
1918
+ if 'project_id' in params:
1919
+ query_params.append(('projectId', params['project_id'])) # noqa: E501
1920
+
1921
+ header_params = {}
1922
+
1923
+ form_params = []
1924
+ local_var_files = {}
1925
+
1926
+ body_params = None
1927
+ # HTTP header `Accept`
1928
+ header_params['Accept'] = self.api_client.select_header_accept(
1929
+ ['application/json']) # noqa: E501
1930
+
1931
+ # Authentication setting
1932
+ auth_settings = [] # noqa: E501
1933
+
1934
+ return self.api_client.call_api(
1935
+ '/v1/stats/jobs', 'GET',
1936
+ path_params,
1937
+ query_params,
1938
+ header_params,
1939
+ body=body_params,
1940
+ post_params=form_params,
1941
+ files=local_var_files,
1942
+ response_type='V1GetJobStatsResponse', # noqa: E501
1943
+ auth_settings=auth_settings,
1944
+ async_req=params.get('async_req'),
1945
+ _return_http_data_only=params.get('_return_http_data_only'),
1946
+ _preload_content=params.get('_preload_content', True),
1947
+ _request_timeout=params.get('_request_timeout'),
1948
+ collection_formats=collection_formats)
1949
+
1950
+ def jobs_service_get_job_system_metrics(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
1951
+ """jobs_service_get_job_system_metrics # noqa: E501
1952
+
1953
+ This method makes a synchronous HTTP request by default. To make an
1954
+ asynchronous HTTP request, please pass async_req=True
1955
+ >>> thread = api.jobs_service_get_job_system_metrics(project_id, async_req=True)
1956
+ >>> result = thread.get()
1957
+
1958
+ :param async_req bool
1959
+ :param str project_id: (required)
1960
+ :param str cloudspace_id:
1961
+ :param list[str] ids:
1962
+ :param datetime start:
1963
+ :param datetime end:
1964
+ :param str frequency:
1965
+ :param bool first_query:
1966
+ :param str deployment_id:
1967
+ :return: V1GetJobSystemMetricsResponse
1968
+ If the method is called asynchronously,
1969
+ returns the request thread.
1970
+ """
1971
+ kwargs['_return_http_data_only'] = True
1972
+ if kwargs.get('async_req'):
1973
+ return self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
1974
+ else:
1975
+ (data) = self.jobs_service_get_job_system_metrics_with_http_info(project_id, **kwargs) # noqa: E501
1976
+ return data
1977
+
1978
+ def jobs_service_get_job_system_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetJobSystemMetricsResponse': # noqa: E501
1979
+ """jobs_service_get_job_system_metrics # noqa: E501
1980
+
1981
+ This method makes a synchronous HTTP request by default. To make an
1982
+ asynchronous HTTP request, please pass async_req=True
1983
+ >>> thread = api.jobs_service_get_job_system_metrics_with_http_info(project_id, async_req=True)
1984
+ >>> result = thread.get()
1985
+
1986
+ :param async_req bool
1987
+ :param str project_id: (required)
1988
+ :param str cloudspace_id:
1989
+ :param list[str] ids:
1990
+ :param datetime start:
1991
+ :param datetime end:
1992
+ :param str frequency:
1993
+ :param bool first_query:
1994
+ :param str deployment_id:
1995
+ :return: V1GetJobSystemMetricsResponse
1996
+ If the method is called asynchronously,
1997
+ returns the request thread.
1998
+ """
1999
+
2000
+ all_params = ['project_id', 'cloudspace_id', 'ids', 'start', 'end', 'frequency', 'first_query', 'deployment_id'] # noqa: E501
2001
+ all_params.append('async_req')
2002
+ all_params.append('_return_http_data_only')
2003
+ all_params.append('_preload_content')
2004
+ all_params.append('_request_timeout')
2005
+
2006
+ params = locals()
2007
+ for key, val in six.iteritems(params['kwargs']):
2008
+ if key not in all_params:
2009
+ raise TypeError(
2010
+ "Got an unexpected keyword argument '%s'"
2011
+ " to method jobs_service_get_job_system_metrics" % key
2012
+ )
2013
+ params[key] = val
2014
+ del params['kwargs']
2015
+ # verify the required parameter 'project_id' is set
2016
+ if ('project_id' not in params or
2017
+ params['project_id'] is None):
2018
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_job_system_metrics`") # noqa: E501
2019
+
2020
+ collection_formats = {}
2021
+
2022
+ path_params = {}
2023
+ if 'project_id' in params:
2024
+ path_params['projectId'] = params['project_id'] # noqa: E501
2025
+
2026
+ query_params = []
2027
+ if 'cloudspace_id' in params:
2028
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2029
+ if 'ids' in params:
2030
+ query_params.append(('ids', params['ids'])) # noqa: E501
2031
+ collection_formats['ids'] = 'multi' # noqa: E501
2032
+ if 'start' in params:
2033
+ query_params.append(('start', params['start'])) # noqa: E501
2034
+ if 'end' in params:
2035
+ query_params.append(('end', params['end'])) # noqa: E501
2036
+ if 'frequency' in params:
2037
+ query_params.append(('frequency', params['frequency'])) # noqa: E501
2038
+ if 'first_query' in params:
2039
+ query_params.append(('firstQuery', params['first_query'])) # noqa: E501
2040
+ if 'deployment_id' in params:
2041
+ query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2042
+
2043
+ header_params = {}
2044
+
2045
+ form_params = []
2046
+ local_var_files = {}
2047
+
2048
+ body_params = None
2049
+ # HTTP header `Accept`
2050
+ header_params['Accept'] = self.api_client.select_header_accept(
2051
+ ['application/json']) # noqa: E501
2052
+
2053
+ # Authentication setting
2054
+ auth_settings = [] # noqa: E501
2055
+
2056
+ return self.api_client.call_api(
2057
+ '/v1/projects/{projectId}/jobs/system-metrics', 'GET',
2058
+ path_params,
2059
+ query_params,
2060
+ header_params,
2061
+ body=body_params,
2062
+ post_params=form_params,
2063
+ files=local_var_files,
2064
+ response_type='V1GetJobSystemMetricsResponse', # noqa: E501
2065
+ auth_settings=auth_settings,
2066
+ async_req=params.get('async_req'),
2067
+ _return_http_data_only=params.get('_return_http_data_only'),
2068
+ _preload_content=params.get('_preload_content', True),
2069
+ _request_timeout=params.get('_request_timeout'),
2070
+ collection_formats=collection_formats)
2071
+
2072
+ def jobs_service_get_multi_machine_job(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2073
+ """jobs_service_get_multi_machine_job # noqa: E501
2074
+
2075
+ This method makes a synchronous HTTP request by default. To make an
2076
+ asynchronous HTTP request, please pass async_req=True
2077
+ >>> thread = api.jobs_service_get_multi_machine_job(project_id, id, async_req=True)
2078
+ >>> result = thread.get()
2079
+
2080
+ :param async_req bool
2081
+ :param str project_id: (required)
2082
+ :param str id: (required)
2083
+ :return: V1MultiMachineJob
2084
+ If the method is called asynchronously,
2085
+ returns the request thread.
2086
+ """
2087
+ kwargs['_return_http_data_only'] = True
2088
+ if kwargs.get('async_req'):
2089
+ return self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2090
+ else:
2091
+ (data) = self.jobs_service_get_multi_machine_job_with_http_info(project_id, id, **kwargs) # noqa: E501
2092
+ return data
2093
+
2094
+ def jobs_service_get_multi_machine_job_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2095
+ """jobs_service_get_multi_machine_job # noqa: E501
2096
+
2097
+ This method makes a synchronous HTTP request by default. To make an
2098
+ asynchronous HTTP request, please pass async_req=True
2099
+ >>> thread = api.jobs_service_get_multi_machine_job_with_http_info(project_id, id, async_req=True)
2100
+ >>> result = thread.get()
2101
+
2102
+ :param async_req bool
2103
+ :param str project_id: (required)
2104
+ :param str id: (required)
2105
+ :return: V1MultiMachineJob
2106
+ If the method is called asynchronously,
2107
+ returns the request thread.
2108
+ """
2109
+
2110
+ all_params = ['project_id', 'id'] # noqa: E501
2111
+ all_params.append('async_req')
2112
+ all_params.append('_return_http_data_only')
2113
+ all_params.append('_preload_content')
2114
+ all_params.append('_request_timeout')
2115
+
2116
+ params = locals()
2117
+ for key, val in six.iteritems(params['kwargs']):
2118
+ if key not in all_params:
2119
+ raise TypeError(
2120
+ "Got an unexpected keyword argument '%s'"
2121
+ " to method jobs_service_get_multi_machine_job" % key
2122
+ )
2123
+ params[key] = val
2124
+ del params['kwargs']
2125
+ # verify the required parameter 'project_id' is set
2126
+ if ('project_id' not in params or
2127
+ params['project_id'] is None):
2128
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2129
+ # verify the required parameter 'id' is set
2130
+ if ('id' not in params or
2131
+ params['id'] is None):
2132
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_get_multi_machine_job`") # noqa: E501
2133
+
2134
+ collection_formats = {}
2135
+
2136
+ path_params = {}
2137
+ if 'project_id' in params:
2138
+ path_params['projectId'] = params['project_id'] # noqa: E501
2139
+ if 'id' in params:
2140
+ path_params['id'] = params['id'] # noqa: E501
2141
+
2142
+ query_params = []
2143
+
2144
+ header_params = {}
2145
+
2146
+ form_params = []
2147
+ local_var_files = {}
2148
+
2149
+ body_params = None
2150
+ # HTTP header `Accept`
2151
+ header_params['Accept'] = self.api_client.select_header_accept(
2152
+ ['application/json']) # noqa: E501
2153
+
2154
+ # Authentication setting
2155
+ auth_settings = [] # noqa: E501
2156
+
2157
+ return self.api_client.call_api(
2158
+ '/v1/projects/{projectId}/multi-machine-jobs/{id}', 'GET',
2159
+ path_params,
2160
+ query_params,
2161
+ header_params,
2162
+ body=body_params,
2163
+ post_params=form_params,
2164
+ files=local_var_files,
2165
+ response_type='V1MultiMachineJob', # noqa: E501
2166
+ auth_settings=auth_settings,
2167
+ async_req=params.get('async_req'),
2168
+ _return_http_data_only=params.get('_return_http_data_only'),
2169
+ _preload_content=params.get('_preload_content', True),
2170
+ _request_timeout=params.get('_request_timeout'),
2171
+ collection_formats=collection_formats)
2172
+
2173
+ def jobs_service_get_multi_machine_job_by_name(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2174
+ """jobs_service_get_multi_machine_job_by_name # noqa: E501
2175
+
2176
+ This method makes a synchronous HTTP request by default. To make an
2177
+ asynchronous HTTP request, please pass async_req=True
2178
+ >>> thread = api.jobs_service_get_multi_machine_job_by_name(project_id, name, async_req=True)
2179
+ >>> result = thread.get()
2180
+
2181
+ :param async_req bool
2182
+ :param str project_id: (required)
2183
+ :param str name: (required)
2184
+ :return: V1MultiMachineJob
2185
+ If the method is called asynchronously,
2186
+ returns the request thread.
2187
+ """
2188
+ kwargs['_return_http_data_only'] = True
2189
+ if kwargs.get('async_req'):
2190
+ return self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
2191
+ else:
2192
+ (data) = self.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, **kwargs) # noqa: E501
2193
+ return data
2194
+
2195
+ def jobs_service_get_multi_machine_job_by_name_with_http_info(self, project_id: 'str', name: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
2196
+ """jobs_service_get_multi_machine_job_by_name # noqa: E501
2197
+
2198
+ This method makes a synchronous HTTP request by default. To make an
2199
+ asynchronous HTTP request, please pass async_req=True
2200
+ >>> thread = api.jobs_service_get_multi_machine_job_by_name_with_http_info(project_id, name, async_req=True)
2201
+ >>> result = thread.get()
2202
+
2203
+ :param async_req bool
2204
+ :param str project_id: (required)
2205
+ :param str name: (required)
2206
+ :return: V1MultiMachineJob
2207
+ If the method is called asynchronously,
2208
+ returns the request thread.
2209
+ """
2210
+
2211
+ all_params = ['project_id', 'name'] # noqa: E501
2212
+ all_params.append('async_req')
2213
+ all_params.append('_return_http_data_only')
2214
+ all_params.append('_preload_content')
2215
+ all_params.append('_request_timeout')
2216
+
2217
+ params = locals()
2218
+ for key, val in six.iteritems(params['kwargs']):
2219
+ if key not in all_params:
2220
+ raise TypeError(
2221
+ "Got an unexpected keyword argument '%s'"
2222
+ " to method jobs_service_get_multi_machine_job_by_name" % key
2223
+ )
2224
+ params[key] = val
2225
+ del params['kwargs']
2226
+ # verify the required parameter 'project_id' is set
2227
+ if ('project_id' not in params or
2228
+ params['project_id'] is None):
2229
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
2230
+ # verify the required parameter 'name' is set
2231
+ if ('name' not in params or
2232
+ params['name'] is None):
2233
+ raise ValueError("Missing the required parameter `name` when calling `jobs_service_get_multi_machine_job_by_name`") # noqa: E501
2234
+
2235
+ collection_formats = {}
2236
+
2237
+ path_params = {}
2238
+ if 'project_id' in params:
2239
+ path_params['projectId'] = params['project_id'] # noqa: E501
2240
+ if 'name' in params:
2241
+ path_params['name'] = params['name'] # noqa: E501
2242
+
2243
+ query_params = []
2244
+
2245
+ header_params = {}
2246
+
2247
+ form_params = []
2248
+ local_var_files = {}
2249
+
2250
+ body_params = None
2251
+ # HTTP header `Accept`
2252
+ header_params['Accept'] = self.api_client.select_header_accept(
2253
+ ['application/json']) # noqa: E501
2254
+
2255
+ # Authentication setting
2256
+ auth_settings = [] # noqa: E501
2257
+
2258
+ return self.api_client.call_api(
2259
+ '/v1/projects/{projectId}/multi-machine-jobs/{name}/getbyname', 'GET',
2260
+ path_params,
2261
+ query_params,
2262
+ header_params,
2263
+ body=body_params,
2264
+ post_params=form_params,
2265
+ files=local_var_files,
2266
+ response_type='V1MultiMachineJob', # noqa: E501
2267
+ auth_settings=auth_settings,
2268
+ async_req=params.get('async_req'),
2269
+ _return_http_data_only=params.get('_return_http_data_only'),
2270
+ _preload_content=params.get('_preload_content', True),
2271
+ _request_timeout=params.get('_request_timeout'),
2272
+ collection_formats=collection_formats)
2273
+
2274
+ def jobs_service_list_deployment_events(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDeploymentEventsResponse': # noqa: E501
2275
+ """Deployment events # noqa: E501
2276
+
2277
+ This method makes a synchronous HTTP request by default. To make an
2278
+ asynchronous HTTP request, please pass async_req=True
2279
+ >>> thread = api.jobs_service_list_deployment_events(project_id, id, async_req=True)
2280
+ >>> result = thread.get()
2281
+
2282
+ :param async_req bool
2283
+ :param str project_id: (required)
2284
+ :param str id: (required)
2285
+ :param str release_id:
2286
+ :param str limit:
2287
+ :return: V1ListDeploymentEventsResponse
2288
+ If the method is called asynchronously,
2289
+ returns the request thread.
2290
+ """
2291
+ kwargs['_return_http_data_only'] = True
2292
+ if kwargs.get('async_req'):
2293
+ return self.jobs_service_list_deployment_events_with_http_info(project_id, id, **kwargs) # noqa: E501
2294
+ else:
2295
+ (data) = self.jobs_service_list_deployment_events_with_http_info(project_id, id, **kwargs) # noqa: E501
2296
+ return data
2297
+
2298
+ def jobs_service_list_deployment_events_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDeploymentEventsResponse': # noqa: E501
2299
+ """Deployment events # noqa: E501
2300
+
2301
+ This method makes a synchronous HTTP request by default. To make an
2302
+ asynchronous HTTP request, please pass async_req=True
2303
+ >>> thread = api.jobs_service_list_deployment_events_with_http_info(project_id, id, async_req=True)
2304
+ >>> result = thread.get()
2305
+
2306
+ :param async_req bool
2307
+ :param str project_id: (required)
2308
+ :param str id: (required)
2309
+ :param str release_id:
2310
+ :param str limit:
2311
+ :return: V1ListDeploymentEventsResponse
2312
+ If the method is called asynchronously,
2313
+ returns the request thread.
2314
+ """
2315
+
2316
+ all_params = ['project_id', 'id', 'release_id', 'limit'] # noqa: E501
2317
+ all_params.append('async_req')
2318
+ all_params.append('_return_http_data_only')
2319
+ all_params.append('_preload_content')
2320
+ all_params.append('_request_timeout')
2321
+
2322
+ params = locals()
2323
+ for key, val in six.iteritems(params['kwargs']):
2324
+ if key not in all_params:
2325
+ raise TypeError(
2326
+ "Got an unexpected keyword argument '%s'"
2327
+ " to method jobs_service_list_deployment_events" % key
2328
+ )
2329
+ params[key] = val
2330
+ del params['kwargs']
2331
+ # verify the required parameter 'project_id' is set
2332
+ if ('project_id' not in params or
2333
+ params['project_id'] is None):
2334
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_events`") # noqa: E501
2335
+ # verify the required parameter 'id' is set
2336
+ if ('id' not in params or
2337
+ params['id'] is None):
2338
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_list_deployment_events`") # noqa: E501
2339
+
2340
+ collection_formats = {}
2341
+
2342
+ path_params = {}
2343
+ if 'project_id' in params:
2344
+ path_params['projectId'] = params['project_id'] # noqa: E501
2345
+ if 'id' in params:
2346
+ path_params['id'] = params['id'] # noqa: E501
2347
+
2348
+ query_params = []
2349
+ if 'release_id' in params:
2350
+ query_params.append(('releaseId', params['release_id'])) # noqa: E501
2351
+ if 'limit' in params:
2352
+ query_params.append(('limit', params['limit'])) # noqa: E501
2353
+
2354
+ header_params = {}
2355
+
2356
+ form_params = []
2357
+ local_var_files = {}
2358
+
2359
+ body_params = None
2360
+ # HTTP header `Accept`
2361
+ header_params['Accept'] = self.api_client.select_header_accept(
2362
+ ['application/json']) # noqa: E501
2363
+
2364
+ # Authentication setting
2365
+ auth_settings = [] # noqa: E501
2366
+
2367
+ return self.api_client.call_api(
2368
+ '/v1/projects/{projectId}/deployments/{id}/events', 'GET',
2369
+ path_params,
2370
+ query_params,
2371
+ header_params,
2372
+ body=body_params,
2373
+ post_params=form_params,
2374
+ files=local_var_files,
2375
+ response_type='V1ListDeploymentEventsResponse', # noqa: E501
2376
+ auth_settings=auth_settings,
2377
+ async_req=params.get('async_req'),
2378
+ _return_http_data_only=params.get('_return_http_data_only'),
2379
+ _preload_content=params.get('_preload_content', True),
2380
+ _request_timeout=params.get('_request_timeout'),
2381
+ collection_formats=collection_formats)
2382
+
2383
+ def jobs_service_list_deployment_releases(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentReleasesResponse': # noqa: E501
2384
+ """jobs_service_list_deployment_releases # noqa: E501
2385
+
2386
+ This method makes a synchronous HTTP request by default. To make an
2387
+ asynchronous HTTP request, please pass async_req=True
2388
+ >>> thread = api.jobs_service_list_deployment_releases(project_id, deployment_id, async_req=True)
2389
+ >>> result = thread.get()
2390
+
2391
+ :param async_req bool
2392
+ :param str project_id: (required)
2393
+ :param str deployment_id: (required)
2394
+ :param bool include_archived:
2395
+ :return: V1ListDeploymentReleasesResponse
2396
+ If the method is called asynchronously,
2397
+ returns the request thread.
2398
+ """
2399
+ kwargs['_return_http_data_only'] = True
2400
+ if kwargs.get('async_req'):
2401
+ return self.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2402
+ else:
2403
+ (data) = self.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, **kwargs) # noqa: E501
2404
+ return data
2405
+
2406
+ def jobs_service_list_deployment_releases_with_http_info(self, project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1ListDeploymentReleasesResponse': # noqa: E501
2407
+ """jobs_service_list_deployment_releases # noqa: E501
2408
+
2409
+ This method makes a synchronous HTTP request by default. To make an
2410
+ asynchronous HTTP request, please pass async_req=True
2411
+ >>> thread = api.jobs_service_list_deployment_releases_with_http_info(project_id, deployment_id, async_req=True)
2412
+ >>> result = thread.get()
2413
+
2414
+ :param async_req bool
2415
+ :param str project_id: (required)
2416
+ :param str deployment_id: (required)
2417
+ :param bool include_archived:
2418
+ :return: V1ListDeploymentReleasesResponse
2419
+ If the method is called asynchronously,
2420
+ returns the request thread.
2421
+ """
2422
+
2423
+ all_params = ['project_id', 'deployment_id', 'include_archived'] # noqa: E501
2424
+ all_params.append('async_req')
2425
+ all_params.append('_return_http_data_only')
2426
+ all_params.append('_preload_content')
2427
+ all_params.append('_request_timeout')
2428
+
2429
+ params = locals()
2430
+ for key, val in six.iteritems(params['kwargs']):
2431
+ if key not in all_params:
2432
+ raise TypeError(
2433
+ "Got an unexpected keyword argument '%s'"
2434
+ " to method jobs_service_list_deployment_releases" % key
2435
+ )
2436
+ params[key] = val
2437
+ del params['kwargs']
2438
+ # verify the required parameter 'project_id' is set
2439
+ if ('project_id' not in params or
2440
+ params['project_id'] is None):
2441
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployment_releases`") # noqa: E501
2442
+ # verify the required parameter 'deployment_id' is set
2443
+ if ('deployment_id' not in params or
2444
+ params['deployment_id'] is None):
2445
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_list_deployment_releases`") # noqa: E501
2446
+
2447
+ collection_formats = {}
2448
+
2449
+ path_params = {}
2450
+ if 'project_id' in params:
2451
+ path_params['projectId'] = params['project_id'] # noqa: E501
2452
+ if 'deployment_id' in params:
2453
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
2454
+
2455
+ query_params = []
2456
+ if 'include_archived' in params:
2457
+ query_params.append(('includeArchived', params['include_archived'])) # noqa: E501
2458
+
2459
+ header_params = {}
2460
+
2461
+ form_params = []
2462
+ local_var_files = {}
2463
+
2464
+ body_params = None
2465
+ # HTTP header `Accept`
2466
+ header_params['Accept'] = self.api_client.select_header_accept(
2467
+ ['application/json']) # noqa: E501
2468
+
2469
+ # Authentication setting
2470
+ auth_settings = [] # noqa: E501
2471
+
2472
+ return self.api_client.call_api(
2473
+ '/v1/projects/{projectId}/deployments/{deploymentId}/releases', 'GET',
2474
+ path_params,
2475
+ query_params,
2476
+ header_params,
2477
+ body=body_params,
2478
+ post_params=form_params,
2479
+ files=local_var_files,
2480
+ response_type='V1ListDeploymentReleasesResponse', # noqa: E501
2481
+ auth_settings=auth_settings,
2482
+ async_req=params.get('async_req'),
2483
+ _return_http_data_only=params.get('_return_http_data_only'),
2484
+ _preload_content=params.get('_preload_content', True),
2485
+ _request_timeout=params.get('_request_timeout'),
2486
+ collection_formats=collection_formats)
2487
+
2488
+ def jobs_service_list_deployments(self, project_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
2489
+ """jobs_service_list_deployments # noqa: E501
2490
+
2491
+ This method makes a synchronous HTTP request by default. To make an
2492
+ asynchronous HTTP request, please pass async_req=True
2493
+ >>> thread = api.jobs_service_list_deployments(project_id, async_req=True)
2494
+ >>> result = thread.get()
2495
+
2496
+ :param async_req bool
2497
+ :param str project_id: (required)
2498
+ :param str cloudspace_id:
2499
+ :param list[str] user_ids:
2500
+ :return: V1ListDeploymentsResponse
2501
+ If the method is called asynchronously,
2502
+ returns the request thread.
2503
+ """
2504
+ kwargs['_return_http_data_only'] = True
2505
+ if kwargs.get('async_req'):
2506
+ return self.jobs_service_list_deployments_with_http_info(project_id, **kwargs) # noqa: E501
2507
+ else:
2508
+ (data) = self.jobs_service_list_deployments_with_http_info(project_id, **kwargs) # noqa: E501
2509
+ return data
2510
+
2511
+ def jobs_service_list_deployments_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListDeploymentsResponse': # noqa: E501
2512
+ """jobs_service_list_deployments # noqa: E501
2513
+
2514
+ This method makes a synchronous HTTP request by default. To make an
2515
+ asynchronous HTTP request, please pass async_req=True
2516
+ >>> thread = api.jobs_service_list_deployments_with_http_info(project_id, async_req=True)
2517
+ >>> result = thread.get()
2518
+
2519
+ :param async_req bool
2520
+ :param str project_id: (required)
2521
+ :param str cloudspace_id:
2522
+ :param list[str] user_ids:
2523
+ :return: V1ListDeploymentsResponse
2524
+ If the method is called asynchronously,
2525
+ returns the request thread.
2526
+ """
2527
+
2528
+ all_params = ['project_id', 'cloudspace_id', 'user_ids'] # noqa: E501
2529
+ all_params.append('async_req')
2530
+ all_params.append('_return_http_data_only')
2531
+ all_params.append('_preload_content')
2532
+ all_params.append('_request_timeout')
2533
+
2534
+ params = locals()
2535
+ for key, val in six.iteritems(params['kwargs']):
2536
+ if key not in all_params:
2537
+ raise TypeError(
2538
+ "Got an unexpected keyword argument '%s'"
2539
+ " to method jobs_service_list_deployments" % key
2540
+ )
2541
+ params[key] = val
2542
+ del params['kwargs']
2543
+ # verify the required parameter 'project_id' is set
2544
+ if ('project_id' not in params or
2545
+ params['project_id'] is None):
2546
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_deployments`") # noqa: E501
2547
+
2548
+ collection_formats = {}
2549
+
2550
+ path_params = {}
2551
+ if 'project_id' in params:
2552
+ path_params['projectId'] = params['project_id'] # noqa: E501
2553
+
2554
+ query_params = []
2555
+ if 'cloudspace_id' in params:
2556
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2557
+ if 'user_ids' in params:
2558
+ query_params.append(('userIds', params['user_ids'])) # noqa: E501
2559
+ collection_formats['userIds'] = 'multi' # noqa: E501
2560
+
2561
+ header_params = {}
2562
+
2563
+ form_params = []
2564
+ local_var_files = {}
2565
+
2566
+ body_params = None
2567
+ # HTTP header `Accept`
2568
+ header_params['Accept'] = self.api_client.select_header_accept(
2569
+ ['application/json']) # noqa: E501
2570
+
2571
+ # Authentication setting
2572
+ auth_settings = [] # noqa: E501
2573
+
2574
+ return self.api_client.call_api(
2575
+ '/v1/projects/{projectId}/deployments', 'GET',
2576
+ path_params,
2577
+ query_params,
2578
+ header_params,
2579
+ body=body_params,
2580
+ post_params=form_params,
2581
+ files=local_var_files,
2582
+ response_type='V1ListDeploymentsResponse', # noqa: E501
2583
+ auth_settings=auth_settings,
2584
+ async_req=params.get('async_req'),
2585
+ _return_http_data_only=params.get('_return_http_data_only'),
2586
+ _preload_content=params.get('_preload_content', True),
2587
+ _request_timeout=params.get('_request_timeout'),
2588
+ collection_formats=collection_formats)
2589
+
2590
+ def jobs_service_list_jobs(self, project_id: 'str', **kwargs) -> 'V1ListJobsResponse': # noqa: E501
2591
+ """jobs_service_list_jobs # noqa: E501
2592
+
2593
+ This method makes a synchronous HTTP request by default. To make an
2594
+ asynchronous HTTP request, please pass async_req=True
2595
+ >>> thread = api.jobs_service_list_jobs(project_id, async_req=True)
2596
+ >>> result = thread.get()
2597
+
2598
+ :param async_req bool
2599
+ :param str project_id: (required)
2600
+ :param str cloudspace_id:
2601
+ :param str user_id:
2602
+ :param str deployment_id:
2603
+ :param str multi_machine_job_id:
2604
+ :param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
2605
+ :param str page_token:
2606
+ :param int limit:
2607
+ :param str state:
2608
+ :return: V1ListJobsResponse
2609
+ If the method is called asynchronously,
2610
+ returns the request thread.
2611
+ """
2612
+ kwargs['_return_http_data_only'] = True
2613
+ if kwargs.get('async_req'):
2614
+ return self.jobs_service_list_jobs_with_http_info(project_id, **kwargs) # noqa: E501
2615
+ else:
2616
+ (data) = self.jobs_service_list_jobs_with_http_info(project_id, **kwargs) # noqa: E501
2617
+ return data
2618
+
2619
+ def jobs_service_list_jobs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListJobsResponse': # noqa: E501
2620
+ """jobs_service_list_jobs # noqa: E501
2621
+
2622
+ This method makes a synchronous HTTP request by default. To make an
2623
+ asynchronous HTTP request, please pass async_req=True
2624
+ >>> thread = api.jobs_service_list_jobs_with_http_info(project_id, async_req=True)
2625
+ >>> result = thread.get()
2626
+
2627
+ :param async_req bool
2628
+ :param str project_id: (required)
2629
+ :param str cloudspace_id:
2630
+ :param str user_id:
2631
+ :param str deployment_id:
2632
+ :param str multi_machine_job_id:
2633
+ :param bool standalone: Whether to list standalone jobs, not part of a deployment or mmt.
2634
+ :param str page_token:
2635
+ :param int limit:
2636
+ :param str state:
2637
+ :return: V1ListJobsResponse
2638
+ If the method is called asynchronously,
2639
+ returns the request thread.
2640
+ """
2641
+
2642
+ all_params = ['project_id', 'cloudspace_id', 'user_id', 'deployment_id', 'multi_machine_job_id', 'standalone', 'page_token', 'limit', 'state'] # noqa: E501
2643
+ all_params.append('async_req')
2644
+ all_params.append('_return_http_data_only')
2645
+ all_params.append('_preload_content')
2646
+ all_params.append('_request_timeout')
2647
+
2648
+ params = locals()
2649
+ for key, val in six.iteritems(params['kwargs']):
2650
+ if key not in all_params:
2651
+ raise TypeError(
2652
+ "Got an unexpected keyword argument '%s'"
2653
+ " to method jobs_service_list_jobs" % key
2654
+ )
2655
+ params[key] = val
2656
+ del params['kwargs']
2657
+ # verify the required parameter 'project_id' is set
2658
+ if ('project_id' not in params or
2659
+ params['project_id'] is None):
2660
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_jobs`") # noqa: E501
2661
+
2662
+ collection_formats = {}
2663
+
2664
+ path_params = {}
2665
+ if 'project_id' in params:
2666
+ path_params['projectId'] = params['project_id'] # noqa: E501
2667
+
2668
+ query_params = []
2669
+ if 'cloudspace_id' in params:
2670
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2671
+ if 'user_id' in params:
2672
+ query_params.append(('userId', params['user_id'])) # noqa: E501
2673
+ if 'deployment_id' in params:
2674
+ query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
2675
+ if 'multi_machine_job_id' in params:
2676
+ query_params.append(('multiMachineJobId', params['multi_machine_job_id'])) # noqa: E501
2677
+ if 'standalone' in params:
2678
+ query_params.append(('standalone', params['standalone'])) # noqa: E501
2679
+ if 'page_token' in params:
2680
+ query_params.append(('pageToken', params['page_token'])) # noqa: E501
2681
+ if 'limit' in params:
2682
+ query_params.append(('limit', params['limit'])) # noqa: E501
2683
+ if 'state' in params:
2684
+ query_params.append(('state', params['state'])) # noqa: E501
2685
+
2686
+ header_params = {}
2687
+
2688
+ form_params = []
2689
+ local_var_files = {}
2690
+
2691
+ body_params = None
2692
+ # HTTP header `Accept`
2693
+ header_params['Accept'] = self.api_client.select_header_accept(
2694
+ ['application/json']) # noqa: E501
2695
+
2696
+ # Authentication setting
2697
+ auth_settings = [] # noqa: E501
2698
+
2699
+ return self.api_client.call_api(
2700
+ '/v1/projects/{projectId}/jobs', 'GET',
2701
+ path_params,
2702
+ query_params,
2703
+ header_params,
2704
+ body=body_params,
2705
+ post_params=form_params,
2706
+ files=local_var_files,
2707
+ response_type='V1ListJobsResponse', # noqa: E501
2708
+ auth_settings=auth_settings,
2709
+ async_req=params.get('async_req'),
2710
+ _return_http_data_only=params.get('_return_http_data_only'),
2711
+ _preload_content=params.get('_preload_content', True),
2712
+ _request_timeout=params.get('_request_timeout'),
2713
+ collection_formats=collection_formats)
2714
+
2715
+ def jobs_service_list_multi_machine_job_events(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListMultiMachineJobEventsResponse': # noqa: E501
2716
+ """jobs_service_list_multi_machine_job_events # noqa: E501
2717
+
2718
+ This method makes a synchronous HTTP request by default. To make an
2719
+ asynchronous HTTP request, please pass async_req=True
2720
+ >>> thread = api.jobs_service_list_multi_machine_job_events(project_id, id, async_req=True)
2721
+ >>> result = thread.get()
2722
+
2723
+ :param async_req bool
2724
+ :param str project_id: (required)
2725
+ :param str id: (required)
2726
+ :param str release_id:
2727
+ :param str limit:
2728
+ :return: V1ListMultiMachineJobEventsResponse
2729
+ If the method is called asynchronously,
2730
+ returns the request thread.
2731
+ """
2732
+ kwargs['_return_http_data_only'] = True
2733
+ if kwargs.get('async_req'):
2734
+ return self.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, **kwargs) # noqa: E501
2735
+ else:
2736
+ (data) = self.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, **kwargs) # noqa: E501
2737
+ return data
2738
+
2739
+ def jobs_service_list_multi_machine_job_events_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListMultiMachineJobEventsResponse': # noqa: E501
2740
+ """jobs_service_list_multi_machine_job_events # noqa: E501
2741
+
2742
+ This method makes a synchronous HTTP request by default. To make an
2743
+ asynchronous HTTP request, please pass async_req=True
2744
+ >>> thread = api.jobs_service_list_multi_machine_job_events_with_http_info(project_id, id, async_req=True)
2745
+ >>> result = thread.get()
2746
+
2747
+ :param async_req bool
2748
+ :param str project_id: (required)
2749
+ :param str id: (required)
2750
+ :param str release_id:
2751
+ :param str limit:
2752
+ :return: V1ListMultiMachineJobEventsResponse
2753
+ If the method is called asynchronously,
2754
+ returns the request thread.
2755
+ """
2756
+
2757
+ all_params = ['project_id', 'id', 'release_id', 'limit'] # noqa: E501
2758
+ all_params.append('async_req')
2759
+ all_params.append('_return_http_data_only')
2760
+ all_params.append('_preload_content')
2761
+ all_params.append('_request_timeout')
2762
+
2763
+ params = locals()
2764
+ for key, val in six.iteritems(params['kwargs']):
2765
+ if key not in all_params:
2766
+ raise TypeError(
2767
+ "Got an unexpected keyword argument '%s'"
2768
+ " to method jobs_service_list_multi_machine_job_events" % key
2769
+ )
2770
+ params[key] = val
2771
+ del params['kwargs']
2772
+ # verify the required parameter 'project_id' is set
2773
+ if ('project_id' not in params or
2774
+ params['project_id'] is None):
2775
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_multi_machine_job_events`") # noqa: E501
2776
+ # verify the required parameter 'id' is set
2777
+ if ('id' not in params or
2778
+ params['id'] is None):
2779
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_list_multi_machine_job_events`") # noqa: E501
2780
+
2781
+ collection_formats = {}
2782
+
2783
+ path_params = {}
2784
+ if 'project_id' in params:
2785
+ path_params['projectId'] = params['project_id'] # noqa: E501
2786
+ if 'id' in params:
2787
+ path_params['id'] = params['id'] # noqa: E501
2788
+
2789
+ query_params = []
2790
+ if 'release_id' in params:
2791
+ query_params.append(('releaseId', params['release_id'])) # noqa: E501
2792
+ if 'limit' in params:
2793
+ query_params.append(('limit', params['limit'])) # noqa: E501
2794
+
2795
+ header_params = {}
2796
+
2797
+ form_params = []
2798
+ local_var_files = {}
2799
+
2800
+ body_params = None
2801
+ # HTTP header `Accept`
2802
+ header_params['Accept'] = self.api_client.select_header_accept(
2803
+ ['application/json']) # noqa: E501
2804
+
2805
+ # Authentication setting
2806
+ auth_settings = [] # noqa: E501
2807
+
2808
+ return self.api_client.call_api(
2809
+ '/v1/projects/{projectId}/multi-machine-jobs/{id}/events', 'GET',
2810
+ path_params,
2811
+ query_params,
2812
+ header_params,
2813
+ body=body_params,
2814
+ post_params=form_params,
2815
+ files=local_var_files,
2816
+ response_type='V1ListMultiMachineJobEventsResponse', # noqa: E501
2817
+ auth_settings=auth_settings,
2818
+ async_req=params.get('async_req'),
2819
+ _return_http_data_only=params.get('_return_http_data_only'),
2820
+ _preload_content=params.get('_preload_content', True),
2821
+ _request_timeout=params.get('_request_timeout'),
2822
+ collection_formats=collection_formats)
2823
+
2824
+ def jobs_service_list_multi_machine_jobs(self, project_id: 'str', **kwargs) -> 'V1ListMultiMachineJobsResponse': # noqa: E501
2825
+ """jobs_service_list_multi_machine_jobs # noqa: E501
2826
+
2827
+ This method makes a synchronous HTTP request by default. To make an
2828
+ asynchronous HTTP request, please pass async_req=True
2829
+ >>> thread = api.jobs_service_list_multi_machine_jobs(project_id, async_req=True)
2830
+ >>> result = thread.get()
2831
+
2832
+ :param async_req bool
2833
+ :param str project_id: (required)
2834
+ :param str cloudspace_id:
2835
+ :return: V1ListMultiMachineJobsResponse
2836
+ If the method is called asynchronously,
2837
+ returns the request thread.
2838
+ """
2839
+ kwargs['_return_http_data_only'] = True
2840
+ if kwargs.get('async_req'):
2841
+ return self.jobs_service_list_multi_machine_jobs_with_http_info(project_id, **kwargs) # noqa: E501
2842
+ else:
2843
+ (data) = self.jobs_service_list_multi_machine_jobs_with_http_info(project_id, **kwargs) # noqa: E501
2844
+ return data
2845
+
2846
+ def jobs_service_list_multi_machine_jobs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListMultiMachineJobsResponse': # noqa: E501
2847
+ """jobs_service_list_multi_machine_jobs # noqa: E501
2848
+
2849
+ This method makes a synchronous HTTP request by default. To make an
2850
+ asynchronous HTTP request, please pass async_req=True
2851
+ >>> thread = api.jobs_service_list_multi_machine_jobs_with_http_info(project_id, async_req=True)
2852
+ >>> result = thread.get()
2853
+
2854
+ :param async_req bool
2855
+ :param str project_id: (required)
2856
+ :param str cloudspace_id:
2857
+ :return: V1ListMultiMachineJobsResponse
2858
+ If the method is called asynchronously,
2859
+ returns the request thread.
2860
+ """
2861
+
2862
+ all_params = ['project_id', 'cloudspace_id'] # noqa: E501
2863
+ all_params.append('async_req')
2864
+ all_params.append('_return_http_data_only')
2865
+ all_params.append('_preload_content')
2866
+ all_params.append('_request_timeout')
2867
+
2868
+ params = locals()
2869
+ for key, val in six.iteritems(params['kwargs']):
2870
+ if key not in all_params:
2871
+ raise TypeError(
2872
+ "Got an unexpected keyword argument '%s'"
2873
+ " to method jobs_service_list_multi_machine_jobs" % key
2874
+ )
2875
+ params[key] = val
2876
+ del params['kwargs']
2877
+ # verify the required parameter 'project_id' is set
2878
+ if ('project_id' not in params or
2879
+ params['project_id'] is None):
2880
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_list_multi_machine_jobs`") # noqa: E501
2881
+
2882
+ collection_formats = {}
2883
+
2884
+ path_params = {}
2885
+ if 'project_id' in params:
2886
+ path_params['projectId'] = params['project_id'] # noqa: E501
2887
+
2888
+ query_params = []
2889
+ if 'cloudspace_id' in params:
2890
+ query_params.append(('cloudspaceId', params['cloudspace_id'])) # noqa: E501
2891
+
2892
+ header_params = {}
2893
+
2894
+ form_params = []
2895
+ local_var_files = {}
2896
+
2897
+ body_params = None
2898
+ # HTTP header `Accept`
2899
+ header_params['Accept'] = self.api_client.select_header_accept(
2900
+ ['application/json']) # noqa: E501
2901
+
2902
+ # Authentication setting
2903
+ auth_settings = [] # noqa: E501
2904
+
2905
+ return self.api_client.call_api(
2906
+ '/v1/projects/{projectId}/multi-machine-jobs', 'GET',
2907
+ path_params,
2908
+ query_params,
2909
+ header_params,
2910
+ body=body_params,
2911
+ post_params=form_params,
2912
+ files=local_var_files,
2913
+ response_type='V1ListMultiMachineJobsResponse', # noqa: E501
2914
+ auth_settings=auth_settings,
2915
+ async_req=params.get('async_req'),
2916
+ _return_http_data_only=params.get('_return_http_data_only'),
2917
+ _preload_content=params.get('_preload_content', True),
2918
+ _request_timeout=params.get('_request_timeout'),
2919
+ collection_formats=collection_formats)
2920
+
2921
+ def jobs_service_report_logs_activity(self, body: 'IdReportlogsactivityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportLogsActivityResponse': # noqa: E501
2922
+ """The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
2923
+
2924
+ This method makes a synchronous HTTP request by default. To make an
2925
+ asynchronous HTTP request, please pass async_req=True
2926
+ >>> thread = api.jobs_service_report_logs_activity(body, project_id, id, async_req=True)
2927
+ >>> result = thread.get()
2928
+
2929
+ :param async_req bool
2930
+ :param IdReportlogsactivityBody body: (required)
2931
+ :param str project_id: (required)
2932
+ :param str id: (required)
2933
+ :return: V1ReportLogsActivityResponse
2934
+ If the method is called asynchronously,
2935
+ returns the request thread.
2936
+ """
2937
+ kwargs['_return_http_data_only'] = True
2938
+ if kwargs.get('async_req'):
2939
+ return self.jobs_service_report_logs_activity_with_http_info(body, project_id, id, **kwargs) # noqa: E501
2940
+ else:
2941
+ (data) = self.jobs_service_report_logs_activity_with_http_info(body, project_id, id, **kwargs) # noqa: E501
2942
+ return data
2943
+
2944
+ def jobs_service_report_logs_activity_with_http_info(self, body: 'IdReportlogsactivityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1ReportLogsActivityResponse': # noqa: E501
2945
+ """The tired proxy collects the time at which the user logs started and inform the CP # noqa: E501
2946
+
2947
+ This method makes a synchronous HTTP request by default. To make an
2948
+ asynchronous HTTP request, please pass async_req=True
2949
+ >>> thread = api.jobs_service_report_logs_activity_with_http_info(body, project_id, id, async_req=True)
2950
+ >>> result = thread.get()
2951
+
2952
+ :param async_req bool
2953
+ :param IdReportlogsactivityBody body: (required)
2954
+ :param str project_id: (required)
2955
+ :param str id: (required)
2956
+ :return: V1ReportLogsActivityResponse
2957
+ If the method is called asynchronously,
2958
+ returns the request thread.
2959
+ """
2960
+
2961
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
2962
+ all_params.append('async_req')
2963
+ all_params.append('_return_http_data_only')
2964
+ all_params.append('_preload_content')
2965
+ all_params.append('_request_timeout')
2966
+
2967
+ params = locals()
2968
+ for key, val in six.iteritems(params['kwargs']):
2969
+ if key not in all_params:
2970
+ raise TypeError(
2971
+ "Got an unexpected keyword argument '%s'"
2972
+ " to method jobs_service_report_logs_activity" % key
2973
+ )
2974
+ params[key] = val
2975
+ del params['kwargs']
2976
+ # verify the required parameter 'body' is set
2977
+ if ('body' not in params or
2978
+ params['body'] is None):
2979
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_report_logs_activity`") # noqa: E501
2980
+ # verify the required parameter 'project_id' is set
2981
+ if ('project_id' not in params or
2982
+ params['project_id'] is None):
2983
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_report_logs_activity`") # noqa: E501
2984
+ # verify the required parameter 'id' is set
2985
+ if ('id' not in params or
2986
+ params['id'] is None):
2987
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_report_logs_activity`") # noqa: E501
2988
+
2989
+ collection_formats = {}
2990
+
2991
+ path_params = {}
2992
+ if 'project_id' in params:
2993
+ path_params['projectId'] = params['project_id'] # noqa: E501
2994
+ if 'id' in params:
2995
+ path_params['id'] = params['id'] # noqa: E501
2996
+
2997
+ query_params = []
2998
+
2999
+ header_params = {}
3000
+
3001
+ form_params = []
3002
+ local_var_files = {}
3003
+
3004
+ body_params = None
3005
+ if 'body' in params:
3006
+ body_params = params['body']
3007
+ # HTTP header `Accept`
3008
+ header_params['Accept'] = self.api_client.select_header_accept(
3009
+ ['application/json']) # noqa: E501
3010
+
3011
+ # HTTP header `Content-Type`
3012
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3013
+ ['application/json']) # noqa: E501
3014
+
3015
+ # Authentication setting
3016
+ auth_settings = [] # noqa: E501
3017
+
3018
+ return self.api_client.call_api(
3019
+ '/v1/projects/{projectId}/jobs/{id}/report-logs-activity', 'PUT',
3020
+ path_params,
3021
+ query_params,
3022
+ header_params,
3023
+ body=body_params,
3024
+ post_params=form_params,
3025
+ files=local_var_files,
3026
+ response_type='V1ReportLogsActivityResponse', # noqa: E501
3027
+ auth_settings=auth_settings,
3028
+ async_req=params.get('async_req'),
3029
+ _return_http_data_only=params.get('_return_http_data_only'),
3030
+ _preload_content=params.get('_preload_content', True),
3031
+ _request_timeout=params.get('_request_timeout'),
3032
+ collection_formats=collection_formats)
3033
+
3034
+ def jobs_service_restore_deployment_release(self, body: 'object', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1RestoreDeploymentReleaseResponse': # noqa: E501
3035
+ """jobs_service_restore_deployment_release # noqa: E501
3036
+
3037
+ This method makes a synchronous HTTP request by default. To make an
3038
+ asynchronous HTTP request, please pass async_req=True
3039
+ >>> thread = api.jobs_service_restore_deployment_release(body, project_id, deployment_id, id, async_req=True)
3040
+ >>> result = thread.get()
3041
+
3042
+ :param async_req bool
3043
+ :param object body: (required)
3044
+ :param str project_id: (required)
3045
+ :param str deployment_id: (required)
3046
+ :param str id: (required)
3047
+ :return: V1RestoreDeploymentReleaseResponse
3048
+ If the method is called asynchronously,
3049
+ returns the request thread.
3050
+ """
3051
+ kwargs['_return_http_data_only'] = True
3052
+ if kwargs.get('async_req'):
3053
+ return self.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
3054
+ else:
3055
+ (data) = self.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
3056
+ return data
3057
+
3058
+ def jobs_service_restore_deployment_release_with_http_info(self, body: 'object', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1RestoreDeploymentReleaseResponse': # noqa: E501
3059
+ """jobs_service_restore_deployment_release # noqa: E501
3060
+
3061
+ This method makes a synchronous HTTP request by default. To make an
3062
+ asynchronous HTTP request, please pass async_req=True
3063
+ >>> thread = api.jobs_service_restore_deployment_release_with_http_info(body, project_id, deployment_id, id, async_req=True)
3064
+ >>> result = thread.get()
3065
+
3066
+ :param async_req bool
3067
+ :param object body: (required)
3068
+ :param str project_id: (required)
3069
+ :param str deployment_id: (required)
3070
+ :param str id: (required)
3071
+ :return: V1RestoreDeploymentReleaseResponse
3072
+ If the method is called asynchronously,
3073
+ returns the request thread.
3074
+ """
3075
+
3076
+ all_params = ['body', 'project_id', 'deployment_id', 'id'] # noqa: E501
3077
+ all_params.append('async_req')
3078
+ all_params.append('_return_http_data_only')
3079
+ all_params.append('_preload_content')
3080
+ all_params.append('_request_timeout')
3081
+
3082
+ params = locals()
3083
+ for key, val in six.iteritems(params['kwargs']):
3084
+ if key not in all_params:
3085
+ raise TypeError(
3086
+ "Got an unexpected keyword argument '%s'"
3087
+ " to method jobs_service_restore_deployment_release" % key
3088
+ )
3089
+ params[key] = val
3090
+ del params['kwargs']
3091
+ # verify the required parameter 'body' is set
3092
+ if ('body' not in params or
3093
+ params['body'] is None):
3094
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_restore_deployment_release`") # noqa: E501
3095
+ # verify the required parameter 'project_id' is set
3096
+ if ('project_id' not in params or
3097
+ params['project_id'] is None):
3098
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
3099
+ # verify the required parameter 'deployment_id' is set
3100
+ if ('deployment_id' not in params or
3101
+ params['deployment_id'] is None):
3102
+ raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
3103
+ # verify the required parameter 'id' is set
3104
+ if ('id' not in params or
3105
+ params['id'] is None):
3106
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_restore_deployment_release`") # noqa: E501
3107
+
3108
+ collection_formats = {}
3109
+
3110
+ path_params = {}
3111
+ if 'project_id' in params:
3112
+ path_params['projectId'] = params['project_id'] # noqa: E501
3113
+ if 'deployment_id' in params:
3114
+ path_params['deploymentId'] = params['deployment_id'] # noqa: E501
3115
+ if 'id' in params:
3116
+ path_params['id'] = params['id'] # noqa: E501
3117
+
3118
+ query_params = []
3119
+
3120
+ header_params = {}
3121
+
3122
+ form_params = []
3123
+ local_var_files = {}
3124
+
3125
+ body_params = None
3126
+ if 'body' in params:
3127
+ body_params = params['body']
3128
+ # HTTP header `Accept`
3129
+ header_params['Accept'] = self.api_client.select_header_accept(
3130
+ ['application/json']) # noqa: E501
3131
+
3132
+ # HTTP header `Content-Type`
3133
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3134
+ ['application/json']) # noqa: E501
3135
+
3136
+ # Authentication setting
3137
+ auth_settings = [] # noqa: E501
3138
+
3139
+ return self.api_client.call_api(
3140
+ '/v1/projects/{projectId}/deployments/{deploymentId}/releases/{id}', 'POST',
3141
+ path_params,
3142
+ query_params,
3143
+ header_params,
3144
+ body=body_params,
3145
+ post_params=form_params,
3146
+ files=local_var_files,
3147
+ response_type='V1RestoreDeploymentReleaseResponse', # noqa: E501
3148
+ auth_settings=auth_settings,
3149
+ async_req=params.get('async_req'),
3150
+ _return_http_data_only=params.get('_return_http_data_only'),
3151
+ _preload_content=params.get('_preload_content', True),
3152
+ _request_timeout=params.get('_request_timeout'),
3153
+ collection_formats=collection_formats)
3154
+
3155
+ def jobs_service_search_job_logs(self, project_id: 'str', **kwargs) -> 'V1SearchJobLogsResponse': # noqa: E501
3156
+ """jobs_service_search_job_logs # noqa: E501
3157
+
3158
+ This method makes a synchronous HTTP request by default. To make an
3159
+ asynchronous HTTP request, please pass async_req=True
3160
+ >>> thread = api.jobs_service_search_job_logs(project_id, async_req=True)
3161
+ >>> result = thread.get()
3162
+
3163
+ :param async_req bool
3164
+ :param str project_id: (required)
3165
+ :param str id:
3166
+ :param str deployment_id:
3167
+ :param datetime since:
3168
+ :param datetime until:
3169
+ :param str query:
3170
+ :param str page_size:
3171
+ :param str page_token:
3172
+ :return: V1SearchJobLogsResponse
3173
+ If the method is called asynchronously,
3174
+ returns the request thread.
3175
+ """
3176
+ kwargs['_return_http_data_only'] = True
3177
+ if kwargs.get('async_req'):
3178
+ return self.jobs_service_search_job_logs_with_http_info(project_id, **kwargs) # noqa: E501
3179
+ else:
3180
+ (data) = self.jobs_service_search_job_logs_with_http_info(project_id, **kwargs) # noqa: E501
3181
+ return data
3182
+
3183
+ def jobs_service_search_job_logs_with_http_info(self, project_id: 'str', **kwargs) -> 'V1SearchJobLogsResponse': # noqa: E501
3184
+ """jobs_service_search_job_logs # noqa: E501
3185
+
3186
+ This method makes a synchronous HTTP request by default. To make an
3187
+ asynchronous HTTP request, please pass async_req=True
3188
+ >>> thread = api.jobs_service_search_job_logs_with_http_info(project_id, async_req=True)
3189
+ >>> result = thread.get()
3190
+
3191
+ :param async_req bool
3192
+ :param str project_id: (required)
3193
+ :param str id:
3194
+ :param str deployment_id:
3195
+ :param datetime since:
3196
+ :param datetime until:
3197
+ :param str query:
3198
+ :param str page_size:
3199
+ :param str page_token:
3200
+ :return: V1SearchJobLogsResponse
3201
+ If the method is called asynchronously,
3202
+ returns the request thread.
3203
+ """
3204
+
3205
+ all_params = ['project_id', 'id', 'deployment_id', 'since', 'until', 'query', 'page_size', 'page_token'] # noqa: E501
3206
+ all_params.append('async_req')
3207
+ all_params.append('_return_http_data_only')
3208
+ all_params.append('_preload_content')
3209
+ all_params.append('_request_timeout')
3210
+
3211
+ params = locals()
3212
+ for key, val in six.iteritems(params['kwargs']):
3213
+ if key not in all_params:
3214
+ raise TypeError(
3215
+ "Got an unexpected keyword argument '%s'"
3216
+ " to method jobs_service_search_job_logs" % key
3217
+ )
3218
+ params[key] = val
3219
+ del params['kwargs']
3220
+ # verify the required parameter 'project_id' is set
3221
+ if ('project_id' not in params or
3222
+ params['project_id'] is None):
3223
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_search_job_logs`") # noqa: E501
3224
+
3225
+ collection_formats = {}
3226
+
3227
+ path_params = {}
3228
+ if 'project_id' in params:
3229
+ path_params['projectId'] = params['project_id'] # noqa: E501
3230
+
3231
+ query_params = []
3232
+ if 'id' in params:
3233
+ query_params.append(('id', params['id'])) # noqa: E501
3234
+ if 'deployment_id' in params:
3235
+ query_params.append(('deploymentId', params['deployment_id'])) # noqa: E501
3236
+ if 'since' in params:
3237
+ query_params.append(('since', params['since'])) # noqa: E501
3238
+ if 'until' in params:
3239
+ query_params.append(('until', params['until'])) # noqa: E501
3240
+ if 'query' in params:
3241
+ query_params.append(('query', params['query'])) # noqa: E501
3242
+ if 'page_size' in params:
3243
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
3244
+ if 'page_token' in params:
3245
+ query_params.append(('pageToken', params['page_token'])) # noqa: E501
3246
+
3247
+ header_params = {}
3248
+
3249
+ form_params = []
3250
+ local_var_files = {}
3251
+
3252
+ body_params = None
3253
+ # HTTP header `Accept`
3254
+ header_params['Accept'] = self.api_client.select_header_accept(
3255
+ ['application/json']) # noqa: E501
3256
+
3257
+ # Authentication setting
3258
+ auth_settings = [] # noqa: E501
3259
+
3260
+ return self.api_client.call_api(
3261
+ '/v1/projects/{projectId}/jobs/logs', 'GET',
3262
+ path_params,
3263
+ query_params,
3264
+ header_params,
3265
+ body=body_params,
3266
+ post_params=form_params,
3267
+ files=local_var_files,
3268
+ response_type='V1SearchJobLogsResponse', # noqa: E501
3269
+ auth_settings=auth_settings,
3270
+ async_req=params.get('async_req'),
3271
+ _return_http_data_only=params.get('_return_http_data_only'),
3272
+ _preload_content=params.get('_preload_content', True),
3273
+ _request_timeout=params.get('_request_timeout'),
3274
+ collection_formats=collection_formats)
3275
+
3276
+ def jobs_service_update_deployment(self, body: 'DeploymentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
3277
+ """jobs_service_update_deployment # noqa: E501
3278
+
3279
+ This method makes a synchronous HTTP request by default. To make an
3280
+ asynchronous HTTP request, please pass async_req=True
3281
+ >>> thread = api.jobs_service_update_deployment(body, project_id, id, async_req=True)
3282
+ >>> result = thread.get()
3283
+
3284
+ :param async_req bool
3285
+ :param DeploymentsIdBody body: (required)
3286
+ :param str project_id: (required)
3287
+ :param str id: (required)
3288
+ :return: V1Deployment
3289
+ If the method is called asynchronously,
3290
+ returns the request thread.
3291
+ """
3292
+ kwargs['_return_http_data_only'] = True
3293
+ if kwargs.get('async_req'):
3294
+ return self.jobs_service_update_deployment_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3295
+ else:
3296
+ (data) = self.jobs_service_update_deployment_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3297
+ return data
3298
+
3299
+ def jobs_service_update_deployment_with_http_info(self, body: 'DeploymentsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1Deployment': # noqa: E501
3300
+ """jobs_service_update_deployment # noqa: E501
3301
+
3302
+ This method makes a synchronous HTTP request by default. To make an
3303
+ asynchronous HTTP request, please pass async_req=True
3304
+ >>> thread = api.jobs_service_update_deployment_with_http_info(body, project_id, id, async_req=True)
3305
+ >>> result = thread.get()
3306
+
3307
+ :param async_req bool
3308
+ :param DeploymentsIdBody body: (required)
3309
+ :param str project_id: (required)
3310
+ :param str id: (required)
3311
+ :return: V1Deployment
3312
+ If the method is called asynchronously,
3313
+ returns the request thread.
3314
+ """
3315
+
3316
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
3317
+ all_params.append('async_req')
3318
+ all_params.append('_return_http_data_only')
3319
+ all_params.append('_preload_content')
3320
+ all_params.append('_request_timeout')
3321
+
3322
+ params = locals()
3323
+ for key, val in six.iteritems(params['kwargs']):
3324
+ if key not in all_params:
3325
+ raise TypeError(
3326
+ "Got an unexpected keyword argument '%s'"
3327
+ " to method jobs_service_update_deployment" % key
3328
+ )
3329
+ params[key] = val
3330
+ del params['kwargs']
3331
+ # verify the required parameter 'body' is set
3332
+ if ('body' not in params or
3333
+ params['body'] is None):
3334
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment`") # noqa: E501
3335
+ # verify the required parameter 'project_id' is set
3336
+ if ('project_id' not in params or
3337
+ params['project_id'] is None):
3338
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment`") # noqa: E501
3339
+ # verify the required parameter 'id' is set
3340
+ if ('id' not in params or
3341
+ params['id'] is None):
3342
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_deployment`") # noqa: E501
3343
+
3344
+ collection_formats = {}
3345
+
3346
+ path_params = {}
3347
+ if 'project_id' in params:
3348
+ path_params['projectId'] = params['project_id'] # noqa: E501
3349
+ if 'id' in params:
3350
+ path_params['id'] = params['id'] # noqa: E501
3351
+
3352
+ query_params = []
3353
+
3354
+ header_params = {}
3355
+
3356
+ form_params = []
3357
+ local_var_files = {}
3358
+
3359
+ body_params = None
3360
+ if 'body' in params:
3361
+ body_params = params['body']
3362
+ # HTTP header `Accept`
3363
+ header_params['Accept'] = self.api_client.select_header_accept(
3364
+ ['application/json']) # noqa: E501
3365
+
3366
+ # HTTP header `Content-Type`
3367
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3368
+ ['application/json']) # noqa: E501
3369
+
3370
+ # Authentication setting
3371
+ auth_settings = [] # noqa: E501
3372
+
3373
+ return self.api_client.call_api(
3374
+ '/v1/projects/{projectId}/deployments/{id}', 'PUT',
3375
+ path_params,
3376
+ query_params,
3377
+ header_params,
3378
+ body=body_params,
3379
+ post_params=form_params,
3380
+ files=local_var_files,
3381
+ response_type='V1Deployment', # noqa: E501
3382
+ auth_settings=auth_settings,
3383
+ async_req=params.get('async_req'),
3384
+ _return_http_data_only=params.get('_return_http_data_only'),
3385
+ _preload_content=params.get('_preload_content', True),
3386
+ _request_timeout=params.get('_request_timeout'),
3387
+ collection_formats=collection_formats)
3388
+
3389
+ def jobs_service_update_job(self, body: 'JobsIdBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
3390
+ """jobs_service_update_job # noqa: E501
3391
+
3392
+ This method makes a synchronous HTTP request by default. To make an
3393
+ asynchronous HTTP request, please pass async_req=True
3394
+ >>> thread = api.jobs_service_update_job(body, project_id, id, async_req=True)
3395
+ >>> result = thread.get()
3396
+
3397
+ :param async_req bool
3398
+ :param JobsIdBody1 body: (required)
3399
+ :param str project_id: (required)
3400
+ :param str id: (required)
3401
+ :return: V1Job
3402
+ If the method is called asynchronously,
3403
+ returns the request thread.
3404
+ """
3405
+ kwargs['_return_http_data_only'] = True
3406
+ if kwargs.get('async_req'):
3407
+ return self.jobs_service_update_job_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3408
+ else:
3409
+ (data) = self.jobs_service_update_job_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3410
+ return data
3411
+
3412
+ def jobs_service_update_job_with_http_info(self, body: 'JobsIdBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1Job': # noqa: E501
3413
+ """jobs_service_update_job # noqa: E501
3414
+
3415
+ This method makes a synchronous HTTP request by default. To make an
3416
+ asynchronous HTTP request, please pass async_req=True
3417
+ >>> thread = api.jobs_service_update_job_with_http_info(body, project_id, id, async_req=True)
3418
+ >>> result = thread.get()
3419
+
3420
+ :param async_req bool
3421
+ :param JobsIdBody1 body: (required)
3422
+ :param str project_id: (required)
3423
+ :param str id: (required)
3424
+ :return: V1Job
3425
+ If the method is called asynchronously,
3426
+ returns the request thread.
3427
+ """
3428
+
3429
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
3430
+ all_params.append('async_req')
3431
+ all_params.append('_return_http_data_only')
3432
+ all_params.append('_preload_content')
3433
+ all_params.append('_request_timeout')
3434
+
3435
+ params = locals()
3436
+ for key, val in six.iteritems(params['kwargs']):
3437
+ if key not in all_params:
3438
+ raise TypeError(
3439
+ "Got an unexpected keyword argument '%s'"
3440
+ " to method jobs_service_update_job" % key
3441
+ )
3442
+ params[key] = val
3443
+ del params['kwargs']
3444
+ # verify the required parameter 'body' is set
3445
+ if ('body' not in params or
3446
+ params['body'] is None):
3447
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_job`") # noqa: E501
3448
+ # verify the required parameter 'project_id' is set
3449
+ if ('project_id' not in params or
3450
+ params['project_id'] is None):
3451
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_job`") # noqa: E501
3452
+ # verify the required parameter 'id' is set
3453
+ if ('id' not in params or
3454
+ params['id'] is None):
3455
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_job`") # noqa: E501
3456
+
3457
+ collection_formats = {}
3458
+
3459
+ path_params = {}
3460
+ if 'project_id' in params:
3461
+ path_params['projectId'] = params['project_id'] # noqa: E501
3462
+ if 'id' in params:
3463
+ path_params['id'] = params['id'] # noqa: E501
3464
+
3465
+ query_params = []
3466
+
3467
+ header_params = {}
3468
+
3469
+ form_params = []
3470
+ local_var_files = {}
3471
+
3472
+ body_params = None
3473
+ if 'body' in params:
3474
+ body_params = params['body']
3475
+ # HTTP header `Accept`
3476
+ header_params['Accept'] = self.api_client.select_header_accept(
3477
+ ['application/json']) # noqa: E501
3478
+
3479
+ # HTTP header `Content-Type`
3480
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3481
+ ['application/json']) # noqa: E501
3482
+
3483
+ # Authentication setting
3484
+ auth_settings = [] # noqa: E501
3485
+
3486
+ return self.api_client.call_api(
3487
+ '/v1/projects/{projectId}/jobs/{id}', 'PUT',
3488
+ path_params,
3489
+ query_params,
3490
+ header_params,
3491
+ body=body_params,
3492
+ post_params=form_params,
3493
+ files=local_var_files,
3494
+ response_type='V1Job', # noqa: E501
3495
+ auth_settings=auth_settings,
3496
+ async_req=params.get('async_req'),
3497
+ _return_http_data_only=params.get('_return_http_data_only'),
3498
+ _preload_content=params.get('_preload_content', True),
3499
+ _request_timeout=params.get('_request_timeout'),
3500
+ collection_formats=collection_formats)
3501
+
3502
+ def jobs_service_update_job_index(self, body: 'IdIndexBody3', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateIndexResponse': # noqa: E501
3503
+ """jobs_service_update_job_index # noqa: E501
3504
+
3505
+ This method makes a synchronous HTTP request by default. To make an
3506
+ asynchronous HTTP request, please pass async_req=True
3507
+ >>> thread = api.jobs_service_update_job_index(body, project_id, id, async_req=True)
3508
+ >>> result = thread.get()
3509
+
3510
+ :param async_req bool
3511
+ :param IdIndexBody3 body: (required)
3512
+ :param str project_id: (required)
3513
+ :param str id: (required)
3514
+ :return: V1UpdateIndexResponse
3515
+ If the method is called asynchronously,
3516
+ returns the request thread.
3517
+ """
3518
+ kwargs['_return_http_data_only'] = True
3519
+ if kwargs.get('async_req'):
3520
+ return self.jobs_service_update_job_index_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3521
+ else:
3522
+ (data) = self.jobs_service_update_job_index_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3523
+ return data
3524
+
3525
+ def jobs_service_update_job_index_with_http_info(self, body: 'IdIndexBody3', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateIndexResponse': # noqa: E501
3526
+ """jobs_service_update_job_index # noqa: E501
3527
+
3528
+ This method makes a synchronous HTTP request by default. To make an
3529
+ asynchronous HTTP request, please pass async_req=True
3530
+ >>> thread = api.jobs_service_update_job_index_with_http_info(body, project_id, id, async_req=True)
3531
+ >>> result = thread.get()
3532
+
3533
+ :param async_req bool
3534
+ :param IdIndexBody3 body: (required)
3535
+ :param str project_id: (required)
3536
+ :param str id: (required)
3537
+ :return: V1UpdateIndexResponse
3538
+ If the method is called asynchronously,
3539
+ returns the request thread.
3540
+ """
3541
+
3542
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
3543
+ all_params.append('async_req')
3544
+ all_params.append('_return_http_data_only')
3545
+ all_params.append('_preload_content')
3546
+ all_params.append('_request_timeout')
3547
+
3548
+ params = locals()
3549
+ for key, val in six.iteritems(params['kwargs']):
3550
+ if key not in all_params:
3551
+ raise TypeError(
3552
+ "Got an unexpected keyword argument '%s'"
3553
+ " to method jobs_service_update_job_index" % key
3554
+ )
3555
+ params[key] = val
3556
+ del params['kwargs']
3557
+ # verify the required parameter 'body' is set
3558
+ if ('body' not in params or
3559
+ params['body'] is None):
3560
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_job_index`") # noqa: E501
3561
+ # verify the required parameter 'project_id' is set
3562
+ if ('project_id' not in params or
3563
+ params['project_id'] is None):
3564
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_job_index`") # noqa: E501
3565
+ # verify the required parameter 'id' is set
3566
+ if ('id' not in params or
3567
+ params['id'] is None):
3568
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_job_index`") # noqa: E501
3569
+
3570
+ collection_formats = {}
3571
+
3572
+ path_params = {}
3573
+ if 'project_id' in params:
3574
+ path_params['projectId'] = params['project_id'] # noqa: E501
3575
+ if 'id' in params:
3576
+ path_params['id'] = params['id'] # noqa: E501
3577
+
3578
+ query_params = []
3579
+
3580
+ header_params = {}
3581
+
3582
+ form_params = []
3583
+ local_var_files = {}
3584
+
3585
+ body_params = None
3586
+ if 'body' in params:
3587
+ body_params = params['body']
3588
+ # HTTP header `Accept`
3589
+ header_params['Accept'] = self.api_client.select_header_accept(
3590
+ ['application/json']) # noqa: E501
3591
+
3592
+ # HTTP header `Content-Type`
3593
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3594
+ ['application/json']) # noqa: E501
3595
+
3596
+ # Authentication setting
3597
+ auth_settings = [] # noqa: E501
3598
+
3599
+ return self.api_client.call_api(
3600
+ '/v1/projects/{projectId}/jobs/{id}/index', 'PUT',
3601
+ path_params,
3602
+ query_params,
3603
+ header_params,
3604
+ body=body_params,
3605
+ post_params=form_params,
3606
+ files=local_var_files,
3607
+ response_type='V1UpdateIndexResponse', # noqa: E501
3608
+ auth_settings=auth_settings,
3609
+ async_req=params.get('async_req'),
3610
+ _return_http_data_only=params.get('_return_http_data_only'),
3611
+ _preload_content=params.get('_preload_content', True),
3612
+ _request_timeout=params.get('_request_timeout'),
3613
+ collection_formats=collection_formats)
3614
+
3615
+ def jobs_service_update_multi_machine_job(self, body: 'MultimachinejobsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
3616
+ """jobs_service_update_multi_machine_job # noqa: E501
3617
+
3618
+ This method makes a synchronous HTTP request by default. To make an
3619
+ asynchronous HTTP request, please pass async_req=True
3620
+ >>> thread = api.jobs_service_update_multi_machine_job(body, project_id, id, async_req=True)
3621
+ >>> result = thread.get()
3622
+
3623
+ :param async_req bool
3624
+ :param MultimachinejobsIdBody body: (required)
3625
+ :param str project_id: (required)
3626
+ :param str id: (required)
3627
+ :return: V1MultiMachineJob
3628
+ If the method is called asynchronously,
3629
+ returns the request thread.
3630
+ """
3631
+ kwargs['_return_http_data_only'] = True
3632
+ if kwargs.get('async_req'):
3633
+ return self.jobs_service_update_multi_machine_job_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3634
+ else:
3635
+ (data) = self.jobs_service_update_multi_machine_job_with_http_info(body, project_id, id, **kwargs) # noqa: E501
3636
+ return data
3637
+
3638
+ def jobs_service_update_multi_machine_job_with_http_info(self, body: 'MultimachinejobsIdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MultiMachineJob': # noqa: E501
3639
+ """jobs_service_update_multi_machine_job # noqa: E501
3640
+
3641
+ This method makes a synchronous HTTP request by default. To make an
3642
+ asynchronous HTTP request, please pass async_req=True
3643
+ >>> thread = api.jobs_service_update_multi_machine_job_with_http_info(body, project_id, id, async_req=True)
3644
+ >>> result = thread.get()
3645
+
3646
+ :param async_req bool
3647
+ :param MultimachinejobsIdBody body: (required)
3648
+ :param str project_id: (required)
3649
+ :param str id: (required)
3650
+ :return: V1MultiMachineJob
3651
+ If the method is called asynchronously,
3652
+ returns the request thread.
3653
+ """
3654
+
3655
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
3656
+ all_params.append('async_req')
3657
+ all_params.append('_return_http_data_only')
3658
+ all_params.append('_preload_content')
3659
+ all_params.append('_request_timeout')
3660
+
3661
+ params = locals()
3662
+ for key, val in six.iteritems(params['kwargs']):
3663
+ if key not in all_params:
3664
+ raise TypeError(
3665
+ "Got an unexpected keyword argument '%s'"
3666
+ " to method jobs_service_update_multi_machine_job" % key
3667
+ )
3668
+ params[key] = val
3669
+ del params['kwargs']
3670
+ # verify the required parameter 'body' is set
3671
+ if ('body' not in params or
3672
+ params['body'] is None):
3673
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_multi_machine_job`") # noqa: E501
3674
+ # verify the required parameter 'project_id' is set
3675
+ if ('project_id' not in params or
3676
+ params['project_id'] is None):
3677
+ raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_multi_machine_job`") # noqa: E501
3678
+ # verify the required parameter 'id' is set
3679
+ if ('id' not in params or
3680
+ params['id'] is None):
3681
+ raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_multi_machine_job`") # noqa: E501
3682
+
3683
+ collection_formats = {}
3684
+
3685
+ path_params = {}
3686
+ if 'project_id' in params:
3687
+ path_params['projectId'] = params['project_id'] # noqa: E501
3688
+ if 'id' in params:
3689
+ path_params['id'] = params['id'] # noqa: E501
3690
+
3691
+ query_params = []
3692
+
3693
+ header_params = {}
3694
+
3695
+ form_params = []
3696
+ local_var_files = {}
3697
+
3698
+ body_params = None
3699
+ if 'body' in params:
3700
+ body_params = params['body']
3701
+ # HTTP header `Accept`
3702
+ header_params['Accept'] = self.api_client.select_header_accept(
3703
+ ['application/json']) # noqa: E501
3704
+
3705
+ # HTTP header `Content-Type`
3706
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3707
+ ['application/json']) # noqa: E501
3708
+
3709
+ # Authentication setting
3710
+ auth_settings = [] # noqa: E501
3711
+
3712
+ return self.api_client.call_api(
3713
+ '/v1/projects/{projectId}/multi-machine-jobs/{id}', 'PUT',
3714
+ path_params,
3715
+ query_params,
3716
+ header_params,
3717
+ body=body_params,
3718
+ post_params=form_params,
3719
+ files=local_var_files,
3720
+ response_type='V1MultiMachineJob', # noqa: E501
3721
+ auth_settings=auth_settings,
3722
+ async_req=params.get('async_req'),
3723
+ _return_http_data_only=params.get('_return_http_data_only'),
3724
+ _preload_content=params.get('_preload_content', True),
3725
+ _request_timeout=params.get('_request_timeout'),
3726
+ collection_formats=collection_formats)
3727
+
3728
+ def jobs_service_validate_deployment_image(self, body: 'V1ValidateDeploymentImageRequest', **kwargs) -> 'V1ValidateDeploymentImageResponse': # noqa: E501
3729
+ """Job deployments # noqa: E501
3730
+
3731
+ This method makes a synchronous HTTP request by default. To make an
3732
+ asynchronous HTTP request, please pass async_req=True
3733
+ >>> thread = api.jobs_service_validate_deployment_image(body, async_req=True)
3734
+ >>> result = thread.get()
3735
+
3736
+ :param async_req bool
3737
+ :param V1ValidateDeploymentImageRequest body: (required)
3738
+ :return: V1ValidateDeploymentImageResponse
3739
+ If the method is called asynchronously,
3740
+ returns the request thread.
3741
+ """
3742
+ kwargs['_return_http_data_only'] = True
3743
+ if kwargs.get('async_req'):
3744
+ return self.jobs_service_validate_deployment_image_with_http_info(body, **kwargs) # noqa: E501
3745
+ else:
3746
+ (data) = self.jobs_service_validate_deployment_image_with_http_info(body, **kwargs) # noqa: E501
3747
+ return data
3748
+
3749
+ def jobs_service_validate_deployment_image_with_http_info(self, body: 'V1ValidateDeploymentImageRequest', **kwargs) -> 'V1ValidateDeploymentImageResponse': # noqa: E501
3750
+ """Job deployments # noqa: E501
3751
+
3752
+ This method makes a synchronous HTTP request by default. To make an
3753
+ asynchronous HTTP request, please pass async_req=True
3754
+ >>> thread = api.jobs_service_validate_deployment_image_with_http_info(body, async_req=True)
3755
+ >>> result = thread.get()
3756
+
3757
+ :param async_req bool
3758
+ :param V1ValidateDeploymentImageRequest body: (required)
3759
+ :return: V1ValidateDeploymentImageResponse
3760
+ If the method is called asynchronously,
3761
+ returns the request thread.
3762
+ """
3763
+
3764
+ all_params = ['body'] # noqa: E501
3765
+ all_params.append('async_req')
3766
+ all_params.append('_return_http_data_only')
3767
+ all_params.append('_preload_content')
3768
+ all_params.append('_request_timeout')
3769
+
3770
+ params = locals()
3771
+ for key, val in six.iteritems(params['kwargs']):
3772
+ if key not in all_params:
3773
+ raise TypeError(
3774
+ "Got an unexpected keyword argument '%s'"
3775
+ " to method jobs_service_validate_deployment_image" % key
3776
+ )
3777
+ params[key] = val
3778
+ del params['kwargs']
3779
+ # verify the required parameter 'body' is set
3780
+ if ('body' not in params or
3781
+ params['body'] is None):
3782
+ raise ValueError("Missing the required parameter `body` when calling `jobs_service_validate_deployment_image`") # noqa: E501
3783
+
3784
+ collection_formats = {}
3785
+
3786
+ path_params = {}
3787
+
3788
+ query_params = []
3789
+
3790
+ header_params = {}
3791
+
3792
+ form_params = []
3793
+ local_var_files = {}
3794
+
3795
+ body_params = None
3796
+ if 'body' in params:
3797
+ body_params = params['body']
3798
+ # HTTP header `Accept`
3799
+ header_params['Accept'] = self.api_client.select_header_accept(
3800
+ ['application/json']) # noqa: E501
3801
+
3802
+ # HTTP header `Content-Type`
3803
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3804
+ ['application/json']) # noqa: E501
3805
+
3806
+ # Authentication setting
3807
+ auth_settings = [] # noqa: E501
3808
+
3809
+ return self.api_client.call_api(
3810
+ '/v1/deployments/validate', 'POST',
3811
+ path_params,
3812
+ query_params,
3813
+ header_params,
3814
+ body=body_params,
3815
+ post_params=form_params,
3816
+ files=local_var_files,
3817
+ response_type='V1ValidateDeploymentImageResponse', # noqa: E501
3818
+ auth_settings=auth_settings,
3819
+ async_req=params.get('async_req'),
3820
+ _return_http_data_only=params.get('_return_http_data_only'),
3821
+ _preload_content=params.get('_preload_content', True),
3822
+ _request_timeout=params.get('_request_timeout'),
3823
+ collection_formats=collection_formats)