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
|
@@ -144,6 +144,107 @@ class CloudSpaceServiceApi(object):
|
|
|
144
144
|
_request_timeout=params.get('_request_timeout'),
|
|
145
145
|
collection_formats=collection_formats)
|
|
146
146
|
|
|
147
|
+
def cloud_space_service_cancel_running_cloud_space_instance_transfer(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CancelRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
148
|
+
"""cloud_space_service_cancel_running_cloud_space_instance_transfer # 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.cloud_space_service_cancel_running_cloud_space_instance_transfer(project_id, id, async_req=True)
|
|
153
|
+
>>> result = thread.get()
|
|
154
|
+
|
|
155
|
+
:param async_req bool
|
|
156
|
+
:param str project_id: (required)
|
|
157
|
+
:param str id: (required)
|
|
158
|
+
:return: V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
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.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
165
|
+
else:
|
|
166
|
+
(data) = self.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
167
|
+
return data
|
|
168
|
+
|
|
169
|
+
def cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CancelRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
170
|
+
"""cloud_space_service_cancel_running_cloud_space_instance_transfer # 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.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, async_req=True)
|
|
175
|
+
>>> result = thread.get()
|
|
176
|
+
|
|
177
|
+
:param async_req bool
|
|
178
|
+
:param str project_id: (required)
|
|
179
|
+
:param str id: (required)
|
|
180
|
+
:return: V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
181
|
+
If the method is called asynchronously,
|
|
182
|
+
returns the request thread.
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
all_params = ['project_id', '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 cloud_space_service_cancel_running_cloud_space_instance_transfer" % key
|
|
197
|
+
)
|
|
198
|
+
params[key] = val
|
|
199
|
+
del params['kwargs']
|
|
200
|
+
# verify the required parameter 'project_id' is set
|
|
201
|
+
if ('project_id' not in params or
|
|
202
|
+
params['project_id'] is None):
|
|
203
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_cancel_running_cloud_space_instance_transfer`") # noqa: E501
|
|
204
|
+
# verify the required parameter 'id' is set
|
|
205
|
+
if ('id' not in params or
|
|
206
|
+
params['id'] is None):
|
|
207
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_cancel_running_cloud_space_instance_transfer`") # 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
|
+
if 'id' in params:
|
|
215
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
216
|
+
|
|
217
|
+
query_params = []
|
|
218
|
+
|
|
219
|
+
header_params = {}
|
|
220
|
+
|
|
221
|
+
form_params = []
|
|
222
|
+
local_var_files = {}
|
|
223
|
+
|
|
224
|
+
body_params = None
|
|
225
|
+
# HTTP header `Accept`
|
|
226
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
227
|
+
['application/json']) # noqa: E501
|
|
228
|
+
|
|
229
|
+
# Authentication setting
|
|
230
|
+
auth_settings = [] # noqa: E501
|
|
231
|
+
|
|
232
|
+
return self.api_client.call_api(
|
|
233
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/cancel-transfer', 'POST',
|
|
234
|
+
path_params,
|
|
235
|
+
query_params,
|
|
236
|
+
header_params,
|
|
237
|
+
body=body_params,
|
|
238
|
+
post_params=form_params,
|
|
239
|
+
files=local_var_files,
|
|
240
|
+
response_type='V1CancelRunningCloudSpaceInstanceTransferResponse', # noqa: E501
|
|
241
|
+
auth_settings=auth_settings,
|
|
242
|
+
async_req=params.get('async_req'),
|
|
243
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
244
|
+
_preload_content=params.get('_preload_content', True),
|
|
245
|
+
_request_timeout=params.get('_request_timeout'),
|
|
246
|
+
collection_formats=collection_formats)
|
|
247
|
+
|
|
147
248
|
def cloud_space_service_check_external_service_status(self, **kwargs) -> 'V1CheckExternalServiceStatusResponse': # noqa: E501
|
|
148
249
|
"""Endpoint for checking GitHub status so we can show an error \"it's not our fault\" when GitHub is down and stuff starts breaking for our users. # noqa: E501
|
|
149
250
|
|
|
@@ -3885,6 +3986,107 @@ class CloudSpaceServiceApi(object):
|
|
|
3885
3986
|
_request_timeout=params.get('_request_timeout'),
|
|
3886
3987
|
collection_formats=collection_formats)
|
|
3887
3988
|
|
|
3989
|
+
def cloud_space_service_get_cloud_space_required_balance_status(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceRequiredBalanceStatusResponse': # noqa: E501
|
|
3990
|
+
"""cloud_space_service_get_cloud_space_required_balance_status # noqa: E501
|
|
3991
|
+
|
|
3992
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3993
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3994
|
+
>>> thread = api.cloud_space_service_get_cloud_space_required_balance_status(project_id, cloudspace_id, async_req=True)
|
|
3995
|
+
>>> result = thread.get()
|
|
3996
|
+
|
|
3997
|
+
:param async_req bool
|
|
3998
|
+
:param str project_id: (required)
|
|
3999
|
+
:param str cloudspace_id: (required)
|
|
4000
|
+
:return: V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
4001
|
+
If the method is called asynchronously,
|
|
4002
|
+
returns the request thread.
|
|
4003
|
+
"""
|
|
4004
|
+
kwargs['_return_http_data_only'] = True
|
|
4005
|
+
if kwargs.get('async_req'):
|
|
4006
|
+
return self.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
4007
|
+
else:
|
|
4008
|
+
(data) = self.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
4009
|
+
return data
|
|
4010
|
+
|
|
4011
|
+
def cloud_space_service_get_cloud_space_required_balance_status_with_http_info(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceRequiredBalanceStatusResponse': # noqa: E501
|
|
4012
|
+
"""cloud_space_service_get_cloud_space_required_balance_status # noqa: E501
|
|
4013
|
+
|
|
4014
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4015
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4016
|
+
>>> thread = api.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, async_req=True)
|
|
4017
|
+
>>> result = thread.get()
|
|
4018
|
+
|
|
4019
|
+
:param async_req bool
|
|
4020
|
+
:param str project_id: (required)
|
|
4021
|
+
:param str cloudspace_id: (required)
|
|
4022
|
+
:return: V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
4023
|
+
If the method is called asynchronously,
|
|
4024
|
+
returns the request thread.
|
|
4025
|
+
"""
|
|
4026
|
+
|
|
4027
|
+
all_params = ['project_id', 'cloudspace_id'] # noqa: E501
|
|
4028
|
+
all_params.append('async_req')
|
|
4029
|
+
all_params.append('_return_http_data_only')
|
|
4030
|
+
all_params.append('_preload_content')
|
|
4031
|
+
all_params.append('_request_timeout')
|
|
4032
|
+
|
|
4033
|
+
params = locals()
|
|
4034
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4035
|
+
if key not in all_params:
|
|
4036
|
+
raise TypeError(
|
|
4037
|
+
"Got an unexpected keyword argument '%s'"
|
|
4038
|
+
" to method cloud_space_service_get_cloud_space_required_balance_status" % key
|
|
4039
|
+
)
|
|
4040
|
+
params[key] = val
|
|
4041
|
+
del params['kwargs']
|
|
4042
|
+
# verify the required parameter 'project_id' is set
|
|
4043
|
+
if ('project_id' not in params or
|
|
4044
|
+
params['project_id'] is None):
|
|
4045
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_get_cloud_space_required_balance_status`") # noqa: E501
|
|
4046
|
+
# verify the required parameter 'cloudspace_id' is set
|
|
4047
|
+
if ('cloudspace_id' not in params or
|
|
4048
|
+
params['cloudspace_id'] is None):
|
|
4049
|
+
raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_get_cloud_space_required_balance_status`") # noqa: E501
|
|
4050
|
+
|
|
4051
|
+
collection_formats = {}
|
|
4052
|
+
|
|
4053
|
+
path_params = {}
|
|
4054
|
+
if 'project_id' in params:
|
|
4055
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4056
|
+
if 'cloudspace_id' in params:
|
|
4057
|
+
path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
|
|
4058
|
+
|
|
4059
|
+
query_params = []
|
|
4060
|
+
|
|
4061
|
+
header_params = {}
|
|
4062
|
+
|
|
4063
|
+
form_params = []
|
|
4064
|
+
local_var_files = {}
|
|
4065
|
+
|
|
4066
|
+
body_params = None
|
|
4067
|
+
# HTTP header `Accept`
|
|
4068
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4069
|
+
['application/json']) # noqa: E501
|
|
4070
|
+
|
|
4071
|
+
# Authentication setting
|
|
4072
|
+
auth_settings = [] # noqa: E501
|
|
4073
|
+
|
|
4074
|
+
return self.api_client.call_api(
|
|
4075
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/required-balance-status', 'GET',
|
|
4076
|
+
path_params,
|
|
4077
|
+
query_params,
|
|
4078
|
+
header_params,
|
|
4079
|
+
body=body_params,
|
|
4080
|
+
post_params=form_params,
|
|
4081
|
+
files=local_var_files,
|
|
4082
|
+
response_type='V1GetCloudSpaceRequiredBalanceStatusResponse', # noqa: E501
|
|
4083
|
+
auth_settings=auth_settings,
|
|
4084
|
+
async_req=params.get('async_req'),
|
|
4085
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4086
|
+
_preload_content=params.get('_preload_content', True),
|
|
4087
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4088
|
+
collection_formats=collection_formats)
|
|
4089
|
+
|
|
3888
4090
|
def cloud_space_service_get_cloud_space_size(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceSizeResponse': # noqa: E501
|
|
3889
4091
|
"""cloud_space_service_get_cloud_space_size # noqa: E501
|
|
3890
4092
|
|
|
@@ -3990,6 +4192,111 @@ class CloudSpaceServiceApi(object):
|
|
|
3990
4192
|
_request_timeout=params.get('_request_timeout'),
|
|
3991
4193
|
collection_formats=collection_formats)
|
|
3992
4194
|
|
|
4195
|
+
def cloud_space_service_get_cloud_space_transfer_estimate(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetCloudSpaceTransferEstimateResponse': # noqa: E501
|
|
4196
|
+
"""cloud_space_service_get_cloud_space_transfer_estimate # noqa: E501
|
|
4197
|
+
|
|
4198
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4199
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4200
|
+
>>> thread = api.cloud_space_service_get_cloud_space_transfer_estimate(project_id, id, async_req=True)
|
|
4201
|
+
>>> result = thread.get()
|
|
4202
|
+
|
|
4203
|
+
:param async_req bool
|
|
4204
|
+
:param str project_id: (required)
|
|
4205
|
+
:param str id: (required)
|
|
4206
|
+
:param str target_cluster_id:
|
|
4207
|
+
:return: V1GetCloudSpaceTransferEstimateResponse
|
|
4208
|
+
If the method is called asynchronously,
|
|
4209
|
+
returns the request thread.
|
|
4210
|
+
"""
|
|
4211
|
+
kwargs['_return_http_data_only'] = True
|
|
4212
|
+
if kwargs.get('async_req'):
|
|
4213
|
+
return self.cloud_space_service_get_cloud_space_transfer_estimate_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
4214
|
+
else:
|
|
4215
|
+
(data) = self.cloud_space_service_get_cloud_space_transfer_estimate_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
4216
|
+
return data
|
|
4217
|
+
|
|
4218
|
+
def cloud_space_service_get_cloud_space_transfer_estimate_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetCloudSpaceTransferEstimateResponse': # noqa: E501
|
|
4219
|
+
"""cloud_space_service_get_cloud_space_transfer_estimate # noqa: E501
|
|
4220
|
+
|
|
4221
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4222
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4223
|
+
>>> thread = api.cloud_space_service_get_cloud_space_transfer_estimate_with_http_info(project_id, id, async_req=True)
|
|
4224
|
+
>>> result = thread.get()
|
|
4225
|
+
|
|
4226
|
+
:param async_req bool
|
|
4227
|
+
:param str project_id: (required)
|
|
4228
|
+
:param str id: (required)
|
|
4229
|
+
:param str target_cluster_id:
|
|
4230
|
+
:return: V1GetCloudSpaceTransferEstimateResponse
|
|
4231
|
+
If the method is called asynchronously,
|
|
4232
|
+
returns the request thread.
|
|
4233
|
+
"""
|
|
4234
|
+
|
|
4235
|
+
all_params = ['project_id', 'id', 'target_cluster_id'] # noqa: E501
|
|
4236
|
+
all_params.append('async_req')
|
|
4237
|
+
all_params.append('_return_http_data_only')
|
|
4238
|
+
all_params.append('_preload_content')
|
|
4239
|
+
all_params.append('_request_timeout')
|
|
4240
|
+
|
|
4241
|
+
params = locals()
|
|
4242
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4243
|
+
if key not in all_params:
|
|
4244
|
+
raise TypeError(
|
|
4245
|
+
"Got an unexpected keyword argument '%s'"
|
|
4246
|
+
" to method cloud_space_service_get_cloud_space_transfer_estimate" % key
|
|
4247
|
+
)
|
|
4248
|
+
params[key] = val
|
|
4249
|
+
del params['kwargs']
|
|
4250
|
+
# verify the required parameter 'project_id' is set
|
|
4251
|
+
if ('project_id' not in params or
|
|
4252
|
+
params['project_id'] is None):
|
|
4253
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_get_cloud_space_transfer_estimate`") # noqa: E501
|
|
4254
|
+
# verify the required parameter 'id' is set
|
|
4255
|
+
if ('id' not in params or
|
|
4256
|
+
params['id'] is None):
|
|
4257
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_get_cloud_space_transfer_estimate`") # noqa: E501
|
|
4258
|
+
|
|
4259
|
+
collection_formats = {}
|
|
4260
|
+
|
|
4261
|
+
path_params = {}
|
|
4262
|
+
if 'project_id' in params:
|
|
4263
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4264
|
+
if 'id' in params:
|
|
4265
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
4266
|
+
|
|
4267
|
+
query_params = []
|
|
4268
|
+
if 'target_cluster_id' in params:
|
|
4269
|
+
query_params.append(('targetClusterId', params['target_cluster_id'])) # noqa: E501
|
|
4270
|
+
|
|
4271
|
+
header_params = {}
|
|
4272
|
+
|
|
4273
|
+
form_params = []
|
|
4274
|
+
local_var_files = {}
|
|
4275
|
+
|
|
4276
|
+
body_params = None
|
|
4277
|
+
# HTTP header `Accept`
|
|
4278
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4279
|
+
['application/json']) # noqa: E501
|
|
4280
|
+
|
|
4281
|
+
# Authentication setting
|
|
4282
|
+
auth_settings = [] # noqa: E501
|
|
4283
|
+
|
|
4284
|
+
return self.api_client.call_api(
|
|
4285
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/transfer/duration', 'GET',
|
|
4286
|
+
path_params,
|
|
4287
|
+
query_params,
|
|
4288
|
+
header_params,
|
|
4289
|
+
body=body_params,
|
|
4290
|
+
post_params=form_params,
|
|
4291
|
+
files=local_var_files,
|
|
4292
|
+
response_type='V1GetCloudSpaceTransferEstimateResponse', # noqa: E501
|
|
4293
|
+
auth_settings=auth_settings,
|
|
4294
|
+
async_req=params.get('async_req'),
|
|
4295
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4296
|
+
_preload_content=params.get('_preload_content', True),
|
|
4297
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4298
|
+
collection_formats=collection_formats)
|
|
4299
|
+
|
|
3993
4300
|
def cloud_space_service_get_cloud_space_version(self, project_id: 'str', cloud_space_id: 'str', id: 'str', **kwargs) -> 'V1CloudSpaceVersion': # noqa: E501
|
|
3994
4301
|
"""cloud_space_service_get_cloud_space_version # noqa: E501
|
|
3995
4302
|
|
|
@@ -9066,6 +9373,119 @@ class CloudSpaceServiceApi(object):
|
|
|
9066
9373
|
_request_timeout=params.get('_request_timeout'),
|
|
9067
9374
|
collection_formats=collection_formats)
|
|
9068
9375
|
|
|
9376
|
+
def cloud_space_service_update_cloud_space_sleep_config(self, body: 'IdSleepconfigBody', project_id: 'str', id: 'str', **kwargs) -> 'V1CloudSpaceInstanceConfig': # noqa: E501
|
|
9377
|
+
"""cloud_space_service_update_cloud_space_sleep_config # noqa: E501
|
|
9378
|
+
|
|
9379
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9380
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9381
|
+
>>> thread = api.cloud_space_service_update_cloud_space_sleep_config(body, project_id, id, async_req=True)
|
|
9382
|
+
>>> result = thread.get()
|
|
9383
|
+
|
|
9384
|
+
:param async_req bool
|
|
9385
|
+
:param IdSleepconfigBody body: (required)
|
|
9386
|
+
:param str project_id: (required)
|
|
9387
|
+
:param str id: (required)
|
|
9388
|
+
:return: V1CloudSpaceInstanceConfig
|
|
9389
|
+
If the method is called asynchronously,
|
|
9390
|
+
returns the request thread.
|
|
9391
|
+
"""
|
|
9392
|
+
kwargs['_return_http_data_only'] = True
|
|
9393
|
+
if kwargs.get('async_req'):
|
|
9394
|
+
return self.cloud_space_service_update_cloud_space_sleep_config_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
9395
|
+
else:
|
|
9396
|
+
(data) = self.cloud_space_service_update_cloud_space_sleep_config_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
9397
|
+
return data
|
|
9398
|
+
|
|
9399
|
+
def cloud_space_service_update_cloud_space_sleep_config_with_http_info(self, body: 'IdSleepconfigBody', project_id: 'str', id: 'str', **kwargs) -> 'V1CloudSpaceInstanceConfig': # noqa: E501
|
|
9400
|
+
"""cloud_space_service_update_cloud_space_sleep_config # noqa: E501
|
|
9401
|
+
|
|
9402
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9403
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9404
|
+
>>> thread = api.cloud_space_service_update_cloud_space_sleep_config_with_http_info(body, project_id, id, async_req=True)
|
|
9405
|
+
>>> result = thread.get()
|
|
9406
|
+
|
|
9407
|
+
:param async_req bool
|
|
9408
|
+
:param IdSleepconfigBody body: (required)
|
|
9409
|
+
:param str project_id: (required)
|
|
9410
|
+
:param str id: (required)
|
|
9411
|
+
:return: V1CloudSpaceInstanceConfig
|
|
9412
|
+
If the method is called asynchronously,
|
|
9413
|
+
returns the request thread.
|
|
9414
|
+
"""
|
|
9415
|
+
|
|
9416
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
9417
|
+
all_params.append('async_req')
|
|
9418
|
+
all_params.append('_return_http_data_only')
|
|
9419
|
+
all_params.append('_preload_content')
|
|
9420
|
+
all_params.append('_request_timeout')
|
|
9421
|
+
|
|
9422
|
+
params = locals()
|
|
9423
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
9424
|
+
if key not in all_params:
|
|
9425
|
+
raise TypeError(
|
|
9426
|
+
"Got an unexpected keyword argument '%s'"
|
|
9427
|
+
" to method cloud_space_service_update_cloud_space_sleep_config" % key
|
|
9428
|
+
)
|
|
9429
|
+
params[key] = val
|
|
9430
|
+
del params['kwargs']
|
|
9431
|
+
# verify the required parameter 'body' is set
|
|
9432
|
+
if ('body' not in params or
|
|
9433
|
+
params['body'] is None):
|
|
9434
|
+
raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_update_cloud_space_sleep_config`") # noqa: E501
|
|
9435
|
+
# verify the required parameter 'project_id' is set
|
|
9436
|
+
if ('project_id' not in params or
|
|
9437
|
+
params['project_id'] is None):
|
|
9438
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_update_cloud_space_sleep_config`") # noqa: E501
|
|
9439
|
+
# verify the required parameter 'id' is set
|
|
9440
|
+
if ('id' not in params or
|
|
9441
|
+
params['id'] is None):
|
|
9442
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_update_cloud_space_sleep_config`") # noqa: E501
|
|
9443
|
+
|
|
9444
|
+
collection_formats = {}
|
|
9445
|
+
|
|
9446
|
+
path_params = {}
|
|
9447
|
+
if 'project_id' in params:
|
|
9448
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
9449
|
+
if 'id' in params:
|
|
9450
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
9451
|
+
|
|
9452
|
+
query_params = []
|
|
9453
|
+
|
|
9454
|
+
header_params = {}
|
|
9455
|
+
|
|
9456
|
+
form_params = []
|
|
9457
|
+
local_var_files = {}
|
|
9458
|
+
|
|
9459
|
+
body_params = None
|
|
9460
|
+
if 'body' in params:
|
|
9461
|
+
body_params = params['body']
|
|
9462
|
+
# HTTP header `Accept`
|
|
9463
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
9464
|
+
['application/json']) # noqa: E501
|
|
9465
|
+
|
|
9466
|
+
# HTTP header `Content-Type`
|
|
9467
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
9468
|
+
['application/json']) # noqa: E501
|
|
9469
|
+
|
|
9470
|
+
# Authentication setting
|
|
9471
|
+
auth_settings = [] # noqa: E501
|
|
9472
|
+
|
|
9473
|
+
return self.api_client.call_api(
|
|
9474
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/sleepconfig', 'PUT',
|
|
9475
|
+
path_params,
|
|
9476
|
+
query_params,
|
|
9477
|
+
header_params,
|
|
9478
|
+
body=body_params,
|
|
9479
|
+
post_params=form_params,
|
|
9480
|
+
files=local_var_files,
|
|
9481
|
+
response_type='V1CloudSpaceInstanceConfig', # noqa: E501
|
|
9482
|
+
auth_settings=auth_settings,
|
|
9483
|
+
async_req=params.get('async_req'),
|
|
9484
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
9485
|
+
_preload_content=params.get('_preload_content', True),
|
|
9486
|
+
_request_timeout=params.get('_request_timeout'),
|
|
9487
|
+
collection_formats=collection_formats)
|
|
9488
|
+
|
|
9069
9489
|
def cloud_space_service_update_cloud_space_version(self, body: 'VersionsIdBody', project_id: 'str', cloud_space_id: 'str', id: 'str', **kwargs) -> 'V1CloudSpaceVersion': # noqa: E501
|
|
9070
9490
|
"""cloud_space_service_update_cloud_space_version # noqa: E501
|
|
9071
9491
|
|
|
@@ -43,103 +43,6 @@ class CloudyServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def cloudy_service_create_user_cloudy_settings(self, body: 'V1CloudySettings', **kwargs) -> 'V1CloudySettings': # noqa: E501
|
|
47
|
-
"""cloudy_service_create_user_cloudy_settings # 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.cloudy_service_create_user_cloudy_settings(body, async_req=True)
|
|
52
|
-
>>> result = thread.get()
|
|
53
|
-
|
|
54
|
-
:param async_req bool
|
|
55
|
-
:param V1CloudySettings body: (required)
|
|
56
|
-
:return: V1CloudySettings
|
|
57
|
-
If the method is called asynchronously,
|
|
58
|
-
returns the request thread.
|
|
59
|
-
"""
|
|
60
|
-
kwargs['_return_http_data_only'] = True
|
|
61
|
-
if kwargs.get('async_req'):
|
|
62
|
-
return self.cloudy_service_create_user_cloudy_settings_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
-
else:
|
|
64
|
-
(data) = self.cloudy_service_create_user_cloudy_settings_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
-
return data
|
|
66
|
-
|
|
67
|
-
def cloudy_service_create_user_cloudy_settings_with_http_info(self, body: 'V1CloudySettings', **kwargs) -> 'V1CloudySettings': # noqa: E501
|
|
68
|
-
"""cloudy_service_create_user_cloudy_settings # noqa: E501
|
|
69
|
-
|
|
70
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
71
|
-
asynchronous HTTP request, please pass async_req=True
|
|
72
|
-
>>> thread = api.cloudy_service_create_user_cloudy_settings_with_http_info(body, async_req=True)
|
|
73
|
-
>>> result = thread.get()
|
|
74
|
-
|
|
75
|
-
:param async_req bool
|
|
76
|
-
:param V1CloudySettings body: (required)
|
|
77
|
-
:return: V1CloudySettings
|
|
78
|
-
If the method is called asynchronously,
|
|
79
|
-
returns the request thread.
|
|
80
|
-
"""
|
|
81
|
-
|
|
82
|
-
all_params = ['body'] # noqa: E501
|
|
83
|
-
all_params.append('async_req')
|
|
84
|
-
all_params.append('_return_http_data_only')
|
|
85
|
-
all_params.append('_preload_content')
|
|
86
|
-
all_params.append('_request_timeout')
|
|
87
|
-
|
|
88
|
-
params = locals()
|
|
89
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
90
|
-
if key not in all_params:
|
|
91
|
-
raise TypeError(
|
|
92
|
-
"Got an unexpected keyword argument '%s'"
|
|
93
|
-
" to method cloudy_service_create_user_cloudy_settings" % key
|
|
94
|
-
)
|
|
95
|
-
params[key] = val
|
|
96
|
-
del params['kwargs']
|
|
97
|
-
# verify the required parameter 'body' is set
|
|
98
|
-
if ('body' not in params or
|
|
99
|
-
params['body'] is None):
|
|
100
|
-
raise ValueError("Missing the required parameter `body` when calling `cloudy_service_create_user_cloudy_settings`") # noqa: E501
|
|
101
|
-
|
|
102
|
-
collection_formats = {}
|
|
103
|
-
|
|
104
|
-
path_params = {}
|
|
105
|
-
|
|
106
|
-
query_params = []
|
|
107
|
-
|
|
108
|
-
header_params = {}
|
|
109
|
-
|
|
110
|
-
form_params = []
|
|
111
|
-
local_var_files = {}
|
|
112
|
-
|
|
113
|
-
body_params = None
|
|
114
|
-
if 'body' in params:
|
|
115
|
-
body_params = params['body']
|
|
116
|
-
# HTTP header `Accept`
|
|
117
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
118
|
-
['application/json']) # noqa: E501
|
|
119
|
-
|
|
120
|
-
# HTTP header `Content-Type`
|
|
121
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
122
|
-
['application/json']) # noqa: E501
|
|
123
|
-
|
|
124
|
-
# Authentication setting
|
|
125
|
-
auth_settings = [] # noqa: E501
|
|
126
|
-
|
|
127
|
-
return self.api_client.call_api(
|
|
128
|
-
'/v1/cloudy/settings/user', 'POST',
|
|
129
|
-
path_params,
|
|
130
|
-
query_params,
|
|
131
|
-
header_params,
|
|
132
|
-
body=body_params,
|
|
133
|
-
post_params=form_params,
|
|
134
|
-
files=local_var_files,
|
|
135
|
-
response_type='V1CloudySettings', # noqa: E501
|
|
136
|
-
auth_settings=auth_settings,
|
|
137
|
-
async_req=params.get('async_req'),
|
|
138
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
139
|
-
_preload_content=params.get('_preload_content', True),
|
|
140
|
-
_request_timeout=params.get('_request_timeout'),
|
|
141
|
-
collection_formats=collection_formats)
|
|
142
|
-
|
|
143
46
|
def cloudy_service_get_user_cloudy_settings(self, user_id: 'str', **kwargs) -> 'V1CloudySettings': # noqa: E501
|
|
144
47
|
"""cloudy_service_get_user_cloudy_settings # noqa: E501
|
|
145
48
|
|