lightning-sdk 2025.8.6rc2__py3-none-any.whl → 2025.11.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +13 -7
- lightning_sdk/__version__.py +3 -0
- lightning_sdk/agents.py +2 -1
- lightning_sdk/ai_hub.py +2 -1
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/base_studio_api.py +13 -9
- lightning_sdk/api/cloud_account_api.py +31 -10
- lightning_sdk/api/deployment_api.py +27 -1
- lightning_sdk/api/job_api.py +16 -12
- lightning_sdk/api/license_api.py +26 -59
- lightning_sdk/api/llm_api.py +25 -2
- lightning_sdk/api/mmt_api.py +5 -2
- lightning_sdk/api/studio_api.py +252 -55
- lightning_sdk/api/teamspace_api.py +106 -30
- lightning_sdk/api/user_api.py +56 -2
- lightning_sdk/api/utils.py +108 -18
- lightning_sdk/base_studio.py +51 -27
- lightning_sdk/cli/__init__.py +1 -0
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +43 -0
- lightning_sdk/cli/config/__init__.py +14 -0
- lightning_sdk/cli/config/get.py +57 -0
- lightning_sdk/cli/config/set.py +92 -0
- lightning_sdk/cli/config/show.py +9 -0
- lightning_sdk/cli/entrypoint.py +71 -71
- lightning_sdk/cli/groups.py +56 -0
- lightning_sdk/cli/job/__init__.py +7 -0
- lightning_sdk/cli/{clusters_menu.py → legacy/clusters_menu.py} +9 -6
- lightning_sdk/cli/{configure.py → legacy/configure.py} +2 -2
- lightning_sdk/cli/{connect.py → legacy/connect.py} +2 -2
- lightning_sdk/cli/{create.py → legacy/create.py} +12 -14
- lightning_sdk/cli/{delete.py → legacy/delete.py} +5 -5
- lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
- lightning_sdk/cli/{deploy → legacy/deploy}/_auth.py +5 -6
- lightning_sdk/cli/{deploy → legacy/deploy}/devbox.py +8 -2
- lightning_sdk/cli/{deploy → legacy/deploy}/serve.py +19 -8
- lightning_sdk/cli/{download.py → legacy/download.py} +14 -15
- lightning_sdk/cli/legacy/entrypoint.py +110 -0
- lightning_sdk/cli/{generate.py → legacy/generate.py} +1 -1
- lightning_sdk/cli/{inspection.py → legacy/inspection.py} +1 -1
- lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
- lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +1 -1
- lightning_sdk/cli/{list.py → legacy/list.py} +12 -13
- lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +1 -1
- lightning_sdk/cli/{open.py → legacy/open.py} +4 -4
- lightning_sdk/cli/{start.py → legacy/start.py} +1 -0
- lightning_sdk/cli/{stop.py → legacy/stop.py} +1 -1
- lightning_sdk/cli/{switch.py → legacy/switch.py} +1 -0
- lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +1 -1
- lightning_sdk/cli/{upload.py → legacy/upload.py} +7 -8
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/mmt/__init__.py +7 -0
- lightning_sdk/cli/studio/__init__.py +24 -0
- lightning_sdk/cli/studio/connect.py +139 -0
- lightning_sdk/cli/studio/create.py +96 -0
- lightning_sdk/cli/studio/delete.py +49 -0
- lightning_sdk/cli/studio/list.py +85 -0
- lightning_sdk/cli/studio/ssh.py +64 -0
- lightning_sdk/cli/studio/start.py +115 -0
- lightning_sdk/cli/studio/stop.py +45 -0
- lightning_sdk/cli/studio/switch.py +66 -0
- lightning_sdk/cli/utils/__init__.py +7 -0
- lightning_sdk/cli/utils/cloud_account_map.py +10 -0
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
- lightning_sdk/cli/utils/logging.py +122 -0
- lightning_sdk/cli/utils/owner_selection.py +110 -0
- lightning_sdk/cli/utils/resolve.py +28 -0
- lightning_sdk/cli/utils/richt_print.py +35 -0
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/ssh_connection.py +59 -0
- lightning_sdk/cli/utils/studio_selection.py +113 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/cli/vm/__init__.py +20 -0
- lightning_sdk/cli/vm/create.py +33 -0
- lightning_sdk/cli/vm/delete.py +25 -0
- lightning_sdk/cli/vm/list.py +30 -0
- lightning_sdk/cli/vm/ssh.py +31 -0
- lightning_sdk/cli/vm/start.py +60 -0
- lightning_sdk/cli/vm/stop.py +25 -0
- lightning_sdk/cli/vm/switch.py +38 -0
- lightning_sdk/constants.py +1 -0
- lightning_sdk/deployment/__init__.py +2 -0
- lightning_sdk/deployment/deployment.py +17 -2
- lightning_sdk/helpers.py +56 -37
- lightning_sdk/job/base.py +21 -6
- lightning_sdk/job/job.py +13 -0
- lightning_sdk/job/v1.py +11 -0
- lightning_sdk/job/v2.py +12 -0
- lightning_sdk/lightning_cloud/login.py +320 -10
- lightning_sdk/lightning_cloud/openapi/__init__.py +113 -3
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +3 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +713 -75
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +191 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +420 -0
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +0 -97
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +420 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1742 -94
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +108 -108
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +347 -0
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +761 -1
- lightning_sdk/lightning_cloud/openapi/configuration.py +3 -19
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +110 -3
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +3 -81
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/job_id_reportroutingtelemetry_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/update1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +147 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +21 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_product_licenses_response.py → v1_list_license_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +361 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +335 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_product_license_check_response.py → v1_purchase_annual_upsell_request.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +3 -81
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +444 -600
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/rest_client.py +48 -45
- lightning_sdk/lightning_cloud/utils/data_connection.py +51 -1
- lightning_sdk/llm/llm.py +175 -56
- lightning_sdk/llm/public_assistants.py +44 -7
- lightning_sdk/machine.py +21 -2
- lightning_sdk/mmt/base.py +7 -0
- lightning_sdk/mmt/mmt.py +11 -3
- lightning_sdk/mmt/v1.py +3 -1
- lightning_sdk/mmt/v2.py +4 -0
- lightning_sdk/owner.py +2 -1
- lightning_sdk/pipeline/steps.py +6 -0
- lightning_sdk/plugin.py +6 -1
- lightning_sdk/studio.py +294 -53
- lightning_sdk/teamspace.py +167 -7
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +179 -0
- lightning_sdk/utils/license.py +13 -0
- lightning_sdk/utils/logging.py +79 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +283 -0
- lightning_sdk/utils/resolve.py +82 -7
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +2 -1
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +328 -169
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +0 -435
- lightning_sdk/services/license.py +0 -363
- /lightning_sdk/cli/{deploy → legacy}/__init__.py +0 -0
- /lightning_sdk/cli/{ai_hub.py → legacy/ai_hub.py} +0 -0
- /lightning_sdk/cli/{docker_cli.py → legacy/docker_cli.py} +0 -0
- /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
- /lightning_sdk/cli/{run.py → legacy/run.py} +0 -0
- /lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +0 -0
- /lightning_sdk/cli/{coloring.py → utils/coloring.py} +0 -0
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.6rc2.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
|
@@ -657,6 +657,111 @@ class ClusterServiceApi(object):
|
|
|
657
657
|
_request_timeout=params.get('_request_timeout'),
|
|
658
658
|
collection_formats=collection_formats)
|
|
659
659
|
|
|
660
|
+
def cluster_service_create_machine(self, body: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine', cluster_id: 'str', **kwargs) -> 'V1CreateMachineResponse': # noqa: E501
|
|
661
|
+
"""cluster_service_create_machine # noqa: E501
|
|
662
|
+
|
|
663
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
664
|
+
asynchronous HTTP request, please pass async_req=True
|
|
665
|
+
>>> thread = api.cluster_service_create_machine(body, cluster_id, async_req=True)
|
|
666
|
+
>>> result = thread.get()
|
|
667
|
+
|
|
668
|
+
:param async_req bool
|
|
669
|
+
:param CreateMachineRequestRepresentsTheRequestToCreateAMachine body: (required)
|
|
670
|
+
:param str cluster_id: (required)
|
|
671
|
+
:return: V1CreateMachineResponse
|
|
672
|
+
If the method is called asynchronously,
|
|
673
|
+
returns the request thread.
|
|
674
|
+
"""
|
|
675
|
+
kwargs['_return_http_data_only'] = True
|
|
676
|
+
if kwargs.get('async_req'):
|
|
677
|
+
return self.cluster_service_create_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
678
|
+
else:
|
|
679
|
+
(data) = self.cluster_service_create_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
680
|
+
return data
|
|
681
|
+
|
|
682
|
+
def cluster_service_create_machine_with_http_info(self, body: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine', cluster_id: 'str', **kwargs) -> 'V1CreateMachineResponse': # noqa: E501
|
|
683
|
+
"""cluster_service_create_machine # noqa: E501
|
|
684
|
+
|
|
685
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
686
|
+
asynchronous HTTP request, please pass async_req=True
|
|
687
|
+
>>> thread = api.cluster_service_create_machine_with_http_info(body, cluster_id, async_req=True)
|
|
688
|
+
>>> result = thread.get()
|
|
689
|
+
|
|
690
|
+
:param async_req bool
|
|
691
|
+
:param CreateMachineRequestRepresentsTheRequestToCreateAMachine body: (required)
|
|
692
|
+
:param str cluster_id: (required)
|
|
693
|
+
:return: V1CreateMachineResponse
|
|
694
|
+
If the method is called asynchronously,
|
|
695
|
+
returns the request thread.
|
|
696
|
+
"""
|
|
697
|
+
|
|
698
|
+
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
699
|
+
all_params.append('async_req')
|
|
700
|
+
all_params.append('_return_http_data_only')
|
|
701
|
+
all_params.append('_preload_content')
|
|
702
|
+
all_params.append('_request_timeout')
|
|
703
|
+
|
|
704
|
+
params = locals()
|
|
705
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
706
|
+
if key not in all_params:
|
|
707
|
+
raise TypeError(
|
|
708
|
+
"Got an unexpected keyword argument '%s'"
|
|
709
|
+
" to method cluster_service_create_machine" % key
|
|
710
|
+
)
|
|
711
|
+
params[key] = val
|
|
712
|
+
del params['kwargs']
|
|
713
|
+
# verify the required parameter 'body' is set
|
|
714
|
+
if ('body' not in params or
|
|
715
|
+
params['body'] is None):
|
|
716
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_machine`") # noqa: E501
|
|
717
|
+
# verify the required parameter 'cluster_id' is set
|
|
718
|
+
if ('cluster_id' not in params or
|
|
719
|
+
params['cluster_id'] is None):
|
|
720
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_machine`") # noqa: E501
|
|
721
|
+
|
|
722
|
+
collection_formats = {}
|
|
723
|
+
|
|
724
|
+
path_params = {}
|
|
725
|
+
if 'cluster_id' in params:
|
|
726
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
727
|
+
|
|
728
|
+
query_params = []
|
|
729
|
+
|
|
730
|
+
header_params = {}
|
|
731
|
+
|
|
732
|
+
form_params = []
|
|
733
|
+
local_var_files = {}
|
|
734
|
+
|
|
735
|
+
body_params = None
|
|
736
|
+
if 'body' in params:
|
|
737
|
+
body_params = params['body']
|
|
738
|
+
# HTTP header `Accept`
|
|
739
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
740
|
+
['application/json']) # noqa: E501
|
|
741
|
+
|
|
742
|
+
# HTTP header `Content-Type`
|
|
743
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
744
|
+
['application/json']) # noqa: E501
|
|
745
|
+
|
|
746
|
+
# Authentication setting
|
|
747
|
+
auth_settings = [] # noqa: E501
|
|
748
|
+
|
|
749
|
+
return self.api_client.call_api(
|
|
750
|
+
'/v1/core/clusters/{clusterId}/machines', 'POST',
|
|
751
|
+
path_params,
|
|
752
|
+
query_params,
|
|
753
|
+
header_params,
|
|
754
|
+
body=body_params,
|
|
755
|
+
post_params=form_params,
|
|
756
|
+
files=local_var_files,
|
|
757
|
+
response_type='V1CreateMachineResponse', # noqa: E501
|
|
758
|
+
auth_settings=auth_settings,
|
|
759
|
+
async_req=params.get('async_req'),
|
|
760
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
761
|
+
_preload_content=params.get('_preload_content', True),
|
|
762
|
+
_request_timeout=params.get('_request_timeout'),
|
|
763
|
+
collection_formats=collection_formats)
|
|
764
|
+
|
|
660
765
|
def cluster_service_create_project_cluster(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
661
766
|
"""cluster_service_create_project_cluster # noqa: E501
|
|
662
767
|
|
|
@@ -1392,6 +1497,111 @@ class ClusterServiceApi(object):
|
|
|
1392
1497
|
_request_timeout=params.get('_request_timeout'),
|
|
1393
1498
|
collection_formats=collection_formats)
|
|
1394
1499
|
|
|
1500
|
+
def cluster_service_delete_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
|
|
1501
|
+
"""Delete a machine # noqa: E501
|
|
1502
|
+
|
|
1503
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1504
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1505
|
+
>>> thread = api.cluster_service_delete_machine(cluster_id, id, async_req=True)
|
|
1506
|
+
>>> result = thread.get()
|
|
1507
|
+
|
|
1508
|
+
:param async_req bool
|
|
1509
|
+
:param str cluster_id: (required)
|
|
1510
|
+
:param str id: (required)
|
|
1511
|
+
:param str org_id:
|
|
1512
|
+
:return: V1DeleteMachineResponse
|
|
1513
|
+
If the method is called asynchronously,
|
|
1514
|
+
returns the request thread.
|
|
1515
|
+
"""
|
|
1516
|
+
kwargs['_return_http_data_only'] = True
|
|
1517
|
+
if kwargs.get('async_req'):
|
|
1518
|
+
return self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1519
|
+
else:
|
|
1520
|
+
(data) = self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1521
|
+
return data
|
|
1522
|
+
|
|
1523
|
+
def cluster_service_delete_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
|
|
1524
|
+
"""Delete a machine # noqa: E501
|
|
1525
|
+
|
|
1526
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1527
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1528
|
+
>>> thread = api.cluster_service_delete_machine_with_http_info(cluster_id, id, async_req=True)
|
|
1529
|
+
>>> result = thread.get()
|
|
1530
|
+
|
|
1531
|
+
:param async_req bool
|
|
1532
|
+
:param str cluster_id: (required)
|
|
1533
|
+
:param str id: (required)
|
|
1534
|
+
:param str org_id:
|
|
1535
|
+
:return: V1DeleteMachineResponse
|
|
1536
|
+
If the method is called asynchronously,
|
|
1537
|
+
returns the request thread.
|
|
1538
|
+
"""
|
|
1539
|
+
|
|
1540
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
1541
|
+
all_params.append('async_req')
|
|
1542
|
+
all_params.append('_return_http_data_only')
|
|
1543
|
+
all_params.append('_preload_content')
|
|
1544
|
+
all_params.append('_request_timeout')
|
|
1545
|
+
|
|
1546
|
+
params = locals()
|
|
1547
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1548
|
+
if key not in all_params:
|
|
1549
|
+
raise TypeError(
|
|
1550
|
+
"Got an unexpected keyword argument '%s'"
|
|
1551
|
+
" to method cluster_service_delete_machine" % key
|
|
1552
|
+
)
|
|
1553
|
+
params[key] = val
|
|
1554
|
+
del params['kwargs']
|
|
1555
|
+
# verify the required parameter 'cluster_id' is set
|
|
1556
|
+
if ('cluster_id' not in params or
|
|
1557
|
+
params['cluster_id'] is None):
|
|
1558
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_machine`") # noqa: E501
|
|
1559
|
+
# verify the required parameter 'id' is set
|
|
1560
|
+
if ('id' not in params or
|
|
1561
|
+
params['id'] is None):
|
|
1562
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_machine`") # noqa: E501
|
|
1563
|
+
|
|
1564
|
+
collection_formats = {}
|
|
1565
|
+
|
|
1566
|
+
path_params = {}
|
|
1567
|
+
if 'cluster_id' in params:
|
|
1568
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1569
|
+
if 'id' in params:
|
|
1570
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1571
|
+
|
|
1572
|
+
query_params = []
|
|
1573
|
+
if 'org_id' in params:
|
|
1574
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1575
|
+
|
|
1576
|
+
header_params = {}
|
|
1577
|
+
|
|
1578
|
+
form_params = []
|
|
1579
|
+
local_var_files = {}
|
|
1580
|
+
|
|
1581
|
+
body_params = None
|
|
1582
|
+
# HTTP header `Accept`
|
|
1583
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1584
|
+
['application/json']) # noqa: E501
|
|
1585
|
+
|
|
1586
|
+
# Authentication setting
|
|
1587
|
+
auth_settings = [] # noqa: E501
|
|
1588
|
+
|
|
1589
|
+
return self.api_client.call_api(
|
|
1590
|
+
'/v1/core/clusters/{clusterId}/machines/{id}', 'DELETE',
|
|
1591
|
+
path_params,
|
|
1592
|
+
query_params,
|
|
1593
|
+
header_params,
|
|
1594
|
+
body=body_params,
|
|
1595
|
+
post_params=form_params,
|
|
1596
|
+
files=local_var_files,
|
|
1597
|
+
response_type='V1DeleteMachineResponse', # noqa: E501
|
|
1598
|
+
auth_settings=auth_settings,
|
|
1599
|
+
async_req=params.get('async_req'),
|
|
1600
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1601
|
+
_preload_content=params.get('_preload_content', True),
|
|
1602
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1603
|
+
collection_formats=collection_formats)
|
|
1604
|
+
|
|
1395
1605
|
def cluster_service_delete_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
|
|
1396
1606
|
"""cluster_service_delete_project_cluster # noqa: E501
|
|
1397
1607
|
|
|
@@ -2111,6 +2321,111 @@ class ClusterServiceApi(object):
|
|
|
2111
2321
|
_request_timeout=params.get('_request_timeout'),
|
|
2112
2322
|
collection_formats=collection_formats)
|
|
2113
2323
|
|
|
2324
|
+
def cluster_service_get_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
|
|
2325
|
+
"""Get a machine by ID # noqa: E501
|
|
2326
|
+
|
|
2327
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2328
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2329
|
+
>>> thread = api.cluster_service_get_machine(cluster_id, id, async_req=True)
|
|
2330
|
+
>>> result = thread.get()
|
|
2331
|
+
|
|
2332
|
+
:param async_req bool
|
|
2333
|
+
:param str cluster_id: (required)
|
|
2334
|
+
:param str id: (required)
|
|
2335
|
+
:param str org_id:
|
|
2336
|
+
:return: V1GetMachineResponse
|
|
2337
|
+
If the method is called asynchronously,
|
|
2338
|
+
returns the request thread.
|
|
2339
|
+
"""
|
|
2340
|
+
kwargs['_return_http_data_only'] = True
|
|
2341
|
+
if kwargs.get('async_req'):
|
|
2342
|
+
return self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
2343
|
+
else:
|
|
2344
|
+
(data) = self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
2345
|
+
return data
|
|
2346
|
+
|
|
2347
|
+
def cluster_service_get_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
|
|
2348
|
+
"""Get a machine by ID # noqa: E501
|
|
2349
|
+
|
|
2350
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2351
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2352
|
+
>>> thread = api.cluster_service_get_machine_with_http_info(cluster_id, id, async_req=True)
|
|
2353
|
+
>>> result = thread.get()
|
|
2354
|
+
|
|
2355
|
+
:param async_req bool
|
|
2356
|
+
:param str cluster_id: (required)
|
|
2357
|
+
:param str id: (required)
|
|
2358
|
+
:param str org_id:
|
|
2359
|
+
:return: V1GetMachineResponse
|
|
2360
|
+
If the method is called asynchronously,
|
|
2361
|
+
returns the request thread.
|
|
2362
|
+
"""
|
|
2363
|
+
|
|
2364
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
2365
|
+
all_params.append('async_req')
|
|
2366
|
+
all_params.append('_return_http_data_only')
|
|
2367
|
+
all_params.append('_preload_content')
|
|
2368
|
+
all_params.append('_request_timeout')
|
|
2369
|
+
|
|
2370
|
+
params = locals()
|
|
2371
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2372
|
+
if key not in all_params:
|
|
2373
|
+
raise TypeError(
|
|
2374
|
+
"Got an unexpected keyword argument '%s'"
|
|
2375
|
+
" to method cluster_service_get_machine" % key
|
|
2376
|
+
)
|
|
2377
|
+
params[key] = val
|
|
2378
|
+
del params['kwargs']
|
|
2379
|
+
# verify the required parameter 'cluster_id' is set
|
|
2380
|
+
if ('cluster_id' not in params or
|
|
2381
|
+
params['cluster_id'] is None):
|
|
2382
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_get_machine`") # noqa: E501
|
|
2383
|
+
# verify the required parameter 'id' is set
|
|
2384
|
+
if ('id' not in params or
|
|
2385
|
+
params['id'] is None):
|
|
2386
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_machine`") # noqa: E501
|
|
2387
|
+
|
|
2388
|
+
collection_formats = {}
|
|
2389
|
+
|
|
2390
|
+
path_params = {}
|
|
2391
|
+
if 'cluster_id' in params:
|
|
2392
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2393
|
+
if 'id' in params:
|
|
2394
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2395
|
+
|
|
2396
|
+
query_params = []
|
|
2397
|
+
if 'org_id' in params:
|
|
2398
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2399
|
+
|
|
2400
|
+
header_params = {}
|
|
2401
|
+
|
|
2402
|
+
form_params = []
|
|
2403
|
+
local_var_files = {}
|
|
2404
|
+
|
|
2405
|
+
body_params = None
|
|
2406
|
+
# HTTP header `Accept`
|
|
2407
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2408
|
+
['application/json']) # noqa: E501
|
|
2409
|
+
|
|
2410
|
+
# Authentication setting
|
|
2411
|
+
auth_settings = [] # noqa: E501
|
|
2412
|
+
|
|
2413
|
+
return self.api_client.call_api(
|
|
2414
|
+
'/v1/core/clusters/{clusterId}/machines/{id}', 'GET',
|
|
2415
|
+
path_params,
|
|
2416
|
+
query_params,
|
|
2417
|
+
header_params,
|
|
2418
|
+
body=body_params,
|
|
2419
|
+
post_params=form_params,
|
|
2420
|
+
files=local_var_files,
|
|
2421
|
+
response_type='V1GetMachineResponse', # noqa: E501
|
|
2422
|
+
auth_settings=auth_settings,
|
|
2423
|
+
async_req=params.get('async_req'),
|
|
2424
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2425
|
+
_preload_content=params.get('_preload_content', True),
|
|
2426
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2427
|
+
collection_formats=collection_formats)
|
|
2428
|
+
|
|
2114
2429
|
def cluster_service_get_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
2115
2430
|
"""cluster_service_get_project_cluster # noqa: E501
|
|
2116
2431
|
|
|
@@ -3012,6 +3327,111 @@ class ClusterServiceApi(object):
|
|
|
3012
3327
|
_request_timeout=params.get('_request_timeout'),
|
|
3013
3328
|
collection_formats=collection_formats)
|
|
3014
3329
|
|
|
3330
|
+
def cluster_service_list_machines(self, cluster_id: 'str', **kwargs) -> 'V1ListMachinesResponse': # noqa: E501
|
|
3331
|
+
"""List machines with optional filtering # noqa: E501
|
|
3332
|
+
|
|
3333
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3334
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3335
|
+
>>> thread = api.cluster_service_list_machines(cluster_id, async_req=True)
|
|
3336
|
+
>>> result = thread.get()
|
|
3337
|
+
|
|
3338
|
+
:param async_req bool
|
|
3339
|
+
:param str cluster_id: (required)
|
|
3340
|
+
:param str org_id:
|
|
3341
|
+
:param int page_size:
|
|
3342
|
+
:param str page_token:
|
|
3343
|
+
:return: V1ListMachinesResponse
|
|
3344
|
+
If the method is called asynchronously,
|
|
3345
|
+
returns the request thread.
|
|
3346
|
+
"""
|
|
3347
|
+
kwargs['_return_http_data_only'] = True
|
|
3348
|
+
if kwargs.get('async_req'):
|
|
3349
|
+
return self.cluster_service_list_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3350
|
+
else:
|
|
3351
|
+
(data) = self.cluster_service_list_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3352
|
+
return data
|
|
3353
|
+
|
|
3354
|
+
def cluster_service_list_machines_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListMachinesResponse': # noqa: E501
|
|
3355
|
+
"""List machines with optional filtering # noqa: E501
|
|
3356
|
+
|
|
3357
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3358
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3359
|
+
>>> thread = api.cluster_service_list_machines_with_http_info(cluster_id, async_req=True)
|
|
3360
|
+
>>> result = thread.get()
|
|
3361
|
+
|
|
3362
|
+
:param async_req bool
|
|
3363
|
+
:param str cluster_id: (required)
|
|
3364
|
+
:param str org_id:
|
|
3365
|
+
:param int page_size:
|
|
3366
|
+
:param str page_token:
|
|
3367
|
+
:return: V1ListMachinesResponse
|
|
3368
|
+
If the method is called asynchronously,
|
|
3369
|
+
returns the request thread.
|
|
3370
|
+
"""
|
|
3371
|
+
|
|
3372
|
+
all_params = ['cluster_id', 'org_id', 'page_size', 'page_token'] # noqa: E501
|
|
3373
|
+
all_params.append('async_req')
|
|
3374
|
+
all_params.append('_return_http_data_only')
|
|
3375
|
+
all_params.append('_preload_content')
|
|
3376
|
+
all_params.append('_request_timeout')
|
|
3377
|
+
|
|
3378
|
+
params = locals()
|
|
3379
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3380
|
+
if key not in all_params:
|
|
3381
|
+
raise TypeError(
|
|
3382
|
+
"Got an unexpected keyword argument '%s'"
|
|
3383
|
+
" to method cluster_service_list_machines" % key
|
|
3384
|
+
)
|
|
3385
|
+
params[key] = val
|
|
3386
|
+
del params['kwargs']
|
|
3387
|
+
# verify the required parameter 'cluster_id' is set
|
|
3388
|
+
if ('cluster_id' not in params or
|
|
3389
|
+
params['cluster_id'] is None):
|
|
3390
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_machines`") # noqa: E501
|
|
3391
|
+
|
|
3392
|
+
collection_formats = {}
|
|
3393
|
+
|
|
3394
|
+
path_params = {}
|
|
3395
|
+
if 'cluster_id' in params:
|
|
3396
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
3397
|
+
|
|
3398
|
+
query_params = []
|
|
3399
|
+
if 'org_id' in params:
|
|
3400
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3401
|
+
if 'page_size' in params:
|
|
3402
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
3403
|
+
if 'page_token' in params:
|
|
3404
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
3405
|
+
|
|
3406
|
+
header_params = {}
|
|
3407
|
+
|
|
3408
|
+
form_params = []
|
|
3409
|
+
local_var_files = {}
|
|
3410
|
+
|
|
3411
|
+
body_params = None
|
|
3412
|
+
# HTTP header `Accept`
|
|
3413
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3414
|
+
['application/json']) # noqa: E501
|
|
3415
|
+
|
|
3416
|
+
# Authentication setting
|
|
3417
|
+
auth_settings = [] # noqa: E501
|
|
3418
|
+
|
|
3419
|
+
return self.api_client.call_api(
|
|
3420
|
+
'/v1/core/clusters/{clusterId}/machines', 'GET',
|
|
3421
|
+
path_params,
|
|
3422
|
+
query_params,
|
|
3423
|
+
header_params,
|
|
3424
|
+
body=body_params,
|
|
3425
|
+
post_params=form_params,
|
|
3426
|
+
files=local_var_files,
|
|
3427
|
+
response_type='V1ListMachinesResponse', # noqa: E501
|
|
3428
|
+
auth_settings=auth_settings,
|
|
3429
|
+
async_req=params.get('async_req'),
|
|
3430
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3431
|
+
_preload_content=params.get('_preload_content', True),
|
|
3432
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3433
|
+
collection_formats=collection_formats)
|
|
3434
|
+
|
|
3015
3435
|
def cluster_service_list_organization_cluster_encryption_keys(self, **kwargs) -> 'V1ListOrganizationClusterEncryptionKeysResponse': # noqa: E501
|
|
3016
3436
|
"""cluster_service_list_organization_cluster_encryption_keys # noqa: E501
|
|
3017
3437
|
|
|
@@ -584,6 +584,107 @@ class DataConnectionServiceApi(object):
|
|
|
584
584
|
_request_timeout=params.get('_request_timeout'),
|
|
585
585
|
collection_formats=collection_formats)
|
|
586
586
|
|
|
587
|
+
def data_connection_service_get_temp_bucket_credentials(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetTempBucketCredentialsResponse': # noqa: E501
|
|
588
|
+
"""data_connection_service_get_temp_bucket_credentials # noqa: E501
|
|
589
|
+
|
|
590
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
591
|
+
asynchronous HTTP request, please pass async_req=True
|
|
592
|
+
>>> thread = api.data_connection_service_get_temp_bucket_credentials(project_id, id, async_req=True)
|
|
593
|
+
>>> result = thread.get()
|
|
594
|
+
|
|
595
|
+
:param async_req bool
|
|
596
|
+
:param str project_id: (required)
|
|
597
|
+
:param str id: (required)
|
|
598
|
+
:return: V1GetTempBucketCredentialsResponse
|
|
599
|
+
If the method is called asynchronously,
|
|
600
|
+
returns the request thread.
|
|
601
|
+
"""
|
|
602
|
+
kwargs['_return_http_data_only'] = True
|
|
603
|
+
if kwargs.get('async_req'):
|
|
604
|
+
return self.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
605
|
+
else:
|
|
606
|
+
(data) = self.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
607
|
+
return data
|
|
608
|
+
|
|
609
|
+
def data_connection_service_get_temp_bucket_credentials_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetTempBucketCredentialsResponse': # noqa: E501
|
|
610
|
+
"""data_connection_service_get_temp_bucket_credentials # noqa: E501
|
|
611
|
+
|
|
612
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
613
|
+
asynchronous HTTP request, please pass async_req=True
|
|
614
|
+
>>> thread = api.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, async_req=True)
|
|
615
|
+
>>> result = thread.get()
|
|
616
|
+
|
|
617
|
+
:param async_req bool
|
|
618
|
+
:param str project_id: (required)
|
|
619
|
+
:param str id: (required)
|
|
620
|
+
:return: V1GetTempBucketCredentialsResponse
|
|
621
|
+
If the method is called asynchronously,
|
|
622
|
+
returns the request thread.
|
|
623
|
+
"""
|
|
624
|
+
|
|
625
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
626
|
+
all_params.append('async_req')
|
|
627
|
+
all_params.append('_return_http_data_only')
|
|
628
|
+
all_params.append('_preload_content')
|
|
629
|
+
all_params.append('_request_timeout')
|
|
630
|
+
|
|
631
|
+
params = locals()
|
|
632
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
633
|
+
if key not in all_params:
|
|
634
|
+
raise TypeError(
|
|
635
|
+
"Got an unexpected keyword argument '%s'"
|
|
636
|
+
" to method data_connection_service_get_temp_bucket_credentials" % key
|
|
637
|
+
)
|
|
638
|
+
params[key] = val
|
|
639
|
+
del params['kwargs']
|
|
640
|
+
# verify the required parameter 'project_id' is set
|
|
641
|
+
if ('project_id' not in params or
|
|
642
|
+
params['project_id'] is None):
|
|
643
|
+
raise ValueError("Missing the required parameter `project_id` when calling `data_connection_service_get_temp_bucket_credentials`") # noqa: E501
|
|
644
|
+
# verify the required parameter 'id' is set
|
|
645
|
+
if ('id' not in params or
|
|
646
|
+
params['id'] is None):
|
|
647
|
+
raise ValueError("Missing the required parameter `id` when calling `data_connection_service_get_temp_bucket_credentials`") # noqa: E501
|
|
648
|
+
|
|
649
|
+
collection_formats = {}
|
|
650
|
+
|
|
651
|
+
path_params = {}
|
|
652
|
+
if 'project_id' in params:
|
|
653
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
654
|
+
if 'id' in params:
|
|
655
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
656
|
+
|
|
657
|
+
query_params = []
|
|
658
|
+
|
|
659
|
+
header_params = {}
|
|
660
|
+
|
|
661
|
+
form_params = []
|
|
662
|
+
local_var_files = {}
|
|
663
|
+
|
|
664
|
+
body_params = None
|
|
665
|
+
# HTTP header `Accept`
|
|
666
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
667
|
+
['application/json']) # noqa: E501
|
|
668
|
+
|
|
669
|
+
# Authentication setting
|
|
670
|
+
auth_settings = [] # noqa: E501
|
|
671
|
+
|
|
672
|
+
return self.api_client.call_api(
|
|
673
|
+
'/v1/projects/{projectId}/data-connections/{id}/temp-bucket-credentials', 'GET',
|
|
674
|
+
path_params,
|
|
675
|
+
query_params,
|
|
676
|
+
header_params,
|
|
677
|
+
body=body_params,
|
|
678
|
+
post_params=form_params,
|
|
679
|
+
files=local_var_files,
|
|
680
|
+
response_type='V1GetTempBucketCredentialsResponse', # noqa: E501
|
|
681
|
+
auth_settings=auth_settings,
|
|
682
|
+
async_req=params.get('async_req'),
|
|
683
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
684
|
+
_preload_content=params.get('_preload_content', True),
|
|
685
|
+
_request_timeout=params.get('_request_timeout'),
|
|
686
|
+
collection_formats=collection_formats)
|
|
687
|
+
|
|
587
688
|
def data_connection_service_list_data_connection_artifacts(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDataConnectionArtifactsResponse': # noqa: E501
|
|
588
689
|
"""data_connection_service_list_data_connection_artifacts # noqa: E501
|
|
589
690
|
|