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
|
@@ -46,6 +46,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
46
46
|
'bytes_to_sync': 'str',
|
|
47
47
|
'cloud_space_id': 'str',
|
|
48
48
|
'cloud_space_instance_id': 'str',
|
|
49
|
+
'cluster_id': 'str',
|
|
49
50
|
'compute_config': 'V1UserRequestedComputeConfig',
|
|
50
51
|
'creation_timestamp': 'datetime',
|
|
51
52
|
'data_connection_mounts': 'list[V1DataConnectionMount]',
|
|
@@ -58,6 +59,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
58
59
|
'jupyterlab_url': 'str',
|
|
59
60
|
'phase': 'V1CloudSpaceInstanceState',
|
|
60
61
|
'price': 'float',
|
|
62
|
+
'private_ip_address': 'str',
|
|
63
|
+
'public_ip_address': 'str',
|
|
61
64
|
'ssh_host': 'str',
|
|
62
65
|
'ssh_port': 'int',
|
|
63
66
|
'ssh_username': 'str',
|
|
@@ -70,6 +73,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
70
73
|
'switched_at': 'datetime',
|
|
71
74
|
'sync_last_updated': 'datetime',
|
|
72
75
|
'termination_time': 'datetime',
|
|
76
|
+
'transfer_metadata': 'V1CloudSpaceTransferMetadata',
|
|
73
77
|
'vscode_url': 'str'
|
|
74
78
|
}
|
|
75
79
|
|
|
@@ -79,6 +83,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
79
83
|
'bytes_to_sync': 'bytesToSync',
|
|
80
84
|
'cloud_space_id': 'cloudSpaceId',
|
|
81
85
|
'cloud_space_instance_id': 'cloudSpaceInstanceId',
|
|
86
|
+
'cluster_id': 'clusterId',
|
|
82
87
|
'compute_config': 'computeConfig',
|
|
83
88
|
'creation_timestamp': 'creationTimestamp',
|
|
84
89
|
'data_connection_mounts': 'dataConnectionMounts',
|
|
@@ -91,6 +96,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
91
96
|
'jupyterlab_url': 'jupyterlabUrl',
|
|
92
97
|
'phase': 'phase',
|
|
93
98
|
'price': 'price',
|
|
99
|
+
'private_ip_address': 'privateIpAddress',
|
|
100
|
+
'public_ip_address': 'publicIpAddress',
|
|
94
101
|
'ssh_host': 'sshHost',
|
|
95
102
|
'ssh_port': 'sshPort',
|
|
96
103
|
'ssh_username': 'sshUsername',
|
|
@@ -103,16 +110,18 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
103
110
|
'switched_at': 'switchedAt',
|
|
104
111
|
'sync_last_updated': 'syncLastUpdated',
|
|
105
112
|
'termination_time': 'terminationTime',
|
|
113
|
+
'transfer_metadata': 'transferMetadata',
|
|
106
114
|
'vscode_url': 'vscodeUrl'
|
|
107
115
|
}
|
|
108
116
|
|
|
109
|
-
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, vscode_url: 'str' =None): # noqa: E501
|
|
117
|
+
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, private_ip_address: 'str' =None, public_ip_address: 'str' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
|
|
110
118
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
111
119
|
self._alerts = None
|
|
112
120
|
self._app_url = None
|
|
113
121
|
self._bytes_to_sync = None
|
|
114
122
|
self._cloud_space_id = None
|
|
115
123
|
self._cloud_space_instance_id = None
|
|
124
|
+
self._cluster_id = None
|
|
116
125
|
self._compute_config = None
|
|
117
126
|
self._creation_timestamp = None
|
|
118
127
|
self._data_connection_mounts = None
|
|
@@ -125,6 +134,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
125
134
|
self._jupyterlab_url = None
|
|
126
135
|
self._phase = None
|
|
127
136
|
self._price = None
|
|
137
|
+
self._private_ip_address = None
|
|
138
|
+
self._public_ip_address = None
|
|
128
139
|
self._ssh_host = None
|
|
129
140
|
self._ssh_port = None
|
|
130
141
|
self._ssh_username = None
|
|
@@ -137,6 +148,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
137
148
|
self._switched_at = None
|
|
138
149
|
self._sync_last_updated = None
|
|
139
150
|
self._termination_time = None
|
|
151
|
+
self._transfer_metadata = None
|
|
140
152
|
self._vscode_url = None
|
|
141
153
|
self.discriminator = None
|
|
142
154
|
if alerts is not None:
|
|
@@ -149,6 +161,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
149
161
|
self.cloud_space_id = cloud_space_id
|
|
150
162
|
if cloud_space_instance_id is not None:
|
|
151
163
|
self.cloud_space_instance_id = cloud_space_instance_id
|
|
164
|
+
if cluster_id is not None:
|
|
165
|
+
self.cluster_id = cluster_id
|
|
152
166
|
if compute_config is not None:
|
|
153
167
|
self.compute_config = compute_config
|
|
154
168
|
if creation_timestamp is not None:
|
|
@@ -173,6 +187,10 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
173
187
|
self.phase = phase
|
|
174
188
|
if price is not None:
|
|
175
189
|
self.price = price
|
|
190
|
+
if private_ip_address is not None:
|
|
191
|
+
self.private_ip_address = private_ip_address
|
|
192
|
+
if public_ip_address is not None:
|
|
193
|
+
self.public_ip_address = public_ip_address
|
|
176
194
|
if ssh_host is not None:
|
|
177
195
|
self.ssh_host = ssh_host
|
|
178
196
|
if ssh_port is not None:
|
|
@@ -197,6 +215,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
197
215
|
self.sync_last_updated = sync_last_updated
|
|
198
216
|
if termination_time is not None:
|
|
199
217
|
self.termination_time = termination_time
|
|
218
|
+
if transfer_metadata is not None:
|
|
219
|
+
self.transfer_metadata = transfer_metadata
|
|
200
220
|
if vscode_url is not None:
|
|
201
221
|
self.vscode_url = vscode_url
|
|
202
222
|
|
|
@@ -305,6 +325,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
305
325
|
|
|
306
326
|
self._cloud_space_instance_id = cloud_space_instance_id
|
|
307
327
|
|
|
328
|
+
@property
|
|
329
|
+
def cluster_id(self) -> 'str':
|
|
330
|
+
"""Gets the cluster_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:return: The cluster_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
334
|
+
:rtype: str
|
|
335
|
+
"""
|
|
336
|
+
return self._cluster_id
|
|
337
|
+
|
|
338
|
+
@cluster_id.setter
|
|
339
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
340
|
+
"""Sets the cluster_id of this Externalv1CloudSpaceInstanceStatus.
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
:param cluster_id: The cluster_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
344
|
+
:type: str
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
self._cluster_id = cluster_id
|
|
348
|
+
|
|
308
349
|
@property
|
|
309
350
|
def compute_config(self) -> 'V1UserRequestedComputeConfig':
|
|
310
351
|
"""Gets the compute_config of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -557,6 +598,48 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
557
598
|
|
|
558
599
|
self._price = price
|
|
559
600
|
|
|
601
|
+
@property
|
|
602
|
+
def private_ip_address(self) -> 'str':
|
|
603
|
+
"""Gets the private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
:return: The private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
607
|
+
:rtype: str
|
|
608
|
+
"""
|
|
609
|
+
return self._private_ip_address
|
|
610
|
+
|
|
611
|
+
@private_ip_address.setter
|
|
612
|
+
def private_ip_address(self, private_ip_address: 'str'):
|
|
613
|
+
"""Sets the private_ip_address of this Externalv1CloudSpaceInstanceStatus.
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
:param private_ip_address: The private_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
617
|
+
:type: str
|
|
618
|
+
"""
|
|
619
|
+
|
|
620
|
+
self._private_ip_address = private_ip_address
|
|
621
|
+
|
|
622
|
+
@property
|
|
623
|
+
def public_ip_address(self) -> 'str':
|
|
624
|
+
"""Gets the public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
:return: The public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
628
|
+
:rtype: str
|
|
629
|
+
"""
|
|
630
|
+
return self._public_ip_address
|
|
631
|
+
|
|
632
|
+
@public_ip_address.setter
|
|
633
|
+
def public_ip_address(self, public_ip_address: 'str'):
|
|
634
|
+
"""Sets the public_ip_address of this Externalv1CloudSpaceInstanceStatus.
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
:param public_ip_address: The public_ip_address of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
638
|
+
:type: str
|
|
639
|
+
"""
|
|
640
|
+
|
|
641
|
+
self._public_ip_address = public_ip_address
|
|
642
|
+
|
|
560
643
|
@property
|
|
561
644
|
def ssh_host(self) -> 'str':
|
|
562
645
|
"""Gets the ssh_host of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -811,6 +894,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
811
894
|
|
|
812
895
|
self._termination_time = termination_time
|
|
813
896
|
|
|
897
|
+
@property
|
|
898
|
+
def transfer_metadata(self) -> 'V1CloudSpaceTransferMetadata':
|
|
899
|
+
"""Gets the transfer_metadata of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
:return: The transfer_metadata of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
903
|
+
:rtype: V1CloudSpaceTransferMetadata
|
|
904
|
+
"""
|
|
905
|
+
return self._transfer_metadata
|
|
906
|
+
|
|
907
|
+
@transfer_metadata.setter
|
|
908
|
+
def transfer_metadata(self, transfer_metadata: 'V1CloudSpaceTransferMetadata'):
|
|
909
|
+
"""Sets the transfer_metadata of this Externalv1CloudSpaceInstanceStatus.
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
:param transfer_metadata: The transfer_metadata of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
913
|
+
:type: V1CloudSpaceTransferMetadata
|
|
914
|
+
"""
|
|
915
|
+
|
|
916
|
+
self._transfer_metadata = transfer_metadata
|
|
917
|
+
|
|
814
918
|
@property
|
|
815
919
|
def vscode_url(self) -> 'str':
|
|
816
920
|
"""Gets the vscode_url of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class Externalv1UserStatus(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'acked_storage_violation': 'bool',
|
|
45
|
+
'auth_provider': 'str',
|
|
45
46
|
'auto_verify_reason': 'str',
|
|
46
47
|
'auto_verify_response': 'bool',
|
|
47
48
|
'completed_project_onboarding': 'bool',
|
|
@@ -54,6 +55,7 @@ class Externalv1UserStatus(object):
|
|
|
54
55
|
|
|
55
56
|
attribute_map = {
|
|
56
57
|
'acked_storage_violation': 'ackedStorageViolation',
|
|
58
|
+
'auth_provider': 'authProvider',
|
|
57
59
|
'auto_verify_reason': 'autoVerifyReason',
|
|
58
60
|
'auto_verify_response': 'autoVerifyResponse',
|
|
59
61
|
'completed_project_onboarding': 'completedProjectOnboarding',
|
|
@@ -64,9 +66,10 @@ class Externalv1UserStatus(object):
|
|
|
64
66
|
'verified_at': 'verifiedAt'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, acked_storage_violation: 'bool' =None, auto_verify_reason: 'str' =None, auto_verify_response: 'bool' =None, completed_project_onboarding: 'bool' =None, completed_signup: 'bool' =None, has_received_free_months: 'bool' =None, installed_grid: 'bool' =None, verified: 'bool' =None, verified_at: 'datetime' =None): # noqa: E501
|
|
69
|
+
def __init__(self, acked_storage_violation: 'bool' =None, auth_provider: 'str' =None, auto_verify_reason: 'str' =None, auto_verify_response: 'bool' =None, completed_project_onboarding: 'bool' =None, completed_signup: 'bool' =None, has_received_free_months: 'bool' =None, installed_grid: 'bool' =None, verified: 'bool' =None, verified_at: 'datetime' =None): # noqa: E501
|
|
68
70
|
"""Externalv1UserStatus - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._acked_storage_violation = None
|
|
72
|
+
self._auth_provider = None
|
|
70
73
|
self._auto_verify_reason = None
|
|
71
74
|
self._auto_verify_response = None
|
|
72
75
|
self._completed_project_onboarding = None
|
|
@@ -78,6 +81,8 @@ class Externalv1UserStatus(object):
|
|
|
78
81
|
self.discriminator = None
|
|
79
82
|
if acked_storage_violation is not None:
|
|
80
83
|
self.acked_storage_violation = acked_storage_violation
|
|
84
|
+
if auth_provider is not None:
|
|
85
|
+
self.auth_provider = auth_provider
|
|
81
86
|
if auto_verify_reason is not None:
|
|
82
87
|
self.auto_verify_reason = auto_verify_reason
|
|
83
88
|
if auto_verify_response is not None:
|
|
@@ -116,6 +121,27 @@ class Externalv1UserStatus(object):
|
|
|
116
121
|
|
|
117
122
|
self._acked_storage_violation = acked_storage_violation
|
|
118
123
|
|
|
124
|
+
@property
|
|
125
|
+
def auth_provider(self) -> 'str':
|
|
126
|
+
"""Gets the auth_provider of this Externalv1UserStatus. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The auth_provider of this Externalv1UserStatus. # noqa: E501
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._auth_provider
|
|
133
|
+
|
|
134
|
+
@auth_provider.setter
|
|
135
|
+
def auth_provider(self, auth_provider: 'str'):
|
|
136
|
+
"""Sets the auth_provider of this Externalv1UserStatus.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param auth_provider: The auth_provider of this Externalv1UserStatus. # noqa: E501
|
|
140
|
+
:type: str
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._auth_provider = auth_provider
|
|
144
|
+
|
|
119
145
|
@property
|
|
120
146
|
def auto_verify_reason(self) -> 'str':
|
|
121
147
|
"""Gets the auto_verify_reason of this Externalv1UserStatus. # noqa: E501
|
|
@@ -43,47 +43,32 @@ class IdCodeconfigBody(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'compute_config': 'V1UserRequestedComputeConfig',
|
|
45
45
|
'data_connection_mounts': 'list[V1DataConnectionMount]',
|
|
46
|
-
'disable_auto_shutdown': 'bool',
|
|
47
46
|
'ide': 'str',
|
|
48
|
-
'
|
|
49
|
-
'port_plugin_port': 'str',
|
|
50
|
-
'switch_to_default_machine_on_idle': 'bool'
|
|
47
|
+
'port_plugin_port': 'str'
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
attribute_map = {
|
|
54
51
|
'compute_config': 'computeConfig',
|
|
55
52
|
'data_connection_mounts': 'dataConnectionMounts',
|
|
56
|
-
'disable_auto_shutdown': 'disableAutoShutdown',
|
|
57
53
|
'ide': 'ide',
|
|
58
|
-
'
|
|
59
|
-
'port_plugin_port': 'portPluginPort',
|
|
60
|
-
'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle'
|
|
54
|
+
'port_plugin_port': 'portPluginPort'
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
def __init__(self, compute_config: 'V1UserRequestedComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None,
|
|
57
|
+
def __init__(self, compute_config: 'V1UserRequestedComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, ide: 'str' =None, port_plugin_port: 'str' =None): # noqa: E501
|
|
64
58
|
"""IdCodeconfigBody - a model defined in Swagger""" # noqa: E501
|
|
65
59
|
self._compute_config = None
|
|
66
60
|
self._data_connection_mounts = None
|
|
67
|
-
self._disable_auto_shutdown = None
|
|
68
61
|
self._ide = None
|
|
69
|
-
self._idle_shutdown_seconds = None
|
|
70
62
|
self._port_plugin_port = None
|
|
71
|
-
self._switch_to_default_machine_on_idle = None
|
|
72
63
|
self.discriminator = None
|
|
73
64
|
if compute_config is not None:
|
|
74
65
|
self.compute_config = compute_config
|
|
75
66
|
if data_connection_mounts is not None:
|
|
76
67
|
self.data_connection_mounts = data_connection_mounts
|
|
77
|
-
if disable_auto_shutdown is not None:
|
|
78
|
-
self.disable_auto_shutdown = disable_auto_shutdown
|
|
79
68
|
if ide is not None:
|
|
80
69
|
self.ide = ide
|
|
81
|
-
if idle_shutdown_seconds is not None:
|
|
82
|
-
self.idle_shutdown_seconds = idle_shutdown_seconds
|
|
83
70
|
if port_plugin_port is not None:
|
|
84
71
|
self.port_plugin_port = port_plugin_port
|
|
85
|
-
if switch_to_default_machine_on_idle is not None:
|
|
86
|
-
self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
87
72
|
|
|
88
73
|
@property
|
|
89
74
|
def compute_config(self) -> 'V1UserRequestedComputeConfig':
|
|
@@ -127,27 +112,6 @@ class IdCodeconfigBody(object):
|
|
|
127
112
|
|
|
128
113
|
self._data_connection_mounts = data_connection_mounts
|
|
129
114
|
|
|
130
|
-
@property
|
|
131
|
-
def disable_auto_shutdown(self) -> 'bool':
|
|
132
|
-
"""Gets the disable_auto_shutdown of this IdCodeconfigBody. # noqa: E501
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:return: The disable_auto_shutdown of this IdCodeconfigBody. # noqa: E501
|
|
136
|
-
:rtype: bool
|
|
137
|
-
"""
|
|
138
|
-
return self._disable_auto_shutdown
|
|
139
|
-
|
|
140
|
-
@disable_auto_shutdown.setter
|
|
141
|
-
def disable_auto_shutdown(self, disable_auto_shutdown: 'bool'):
|
|
142
|
-
"""Sets the disable_auto_shutdown of this IdCodeconfigBody.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:param disable_auto_shutdown: The disable_auto_shutdown of this IdCodeconfigBody. # noqa: E501
|
|
146
|
-
:type: bool
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
self._disable_auto_shutdown = disable_auto_shutdown
|
|
150
|
-
|
|
151
115
|
@property
|
|
152
116
|
def ide(self) -> 'str':
|
|
153
117
|
"""Gets the ide of this IdCodeconfigBody. # noqa: E501
|
|
@@ -169,27 +133,6 @@ class IdCodeconfigBody(object):
|
|
|
169
133
|
|
|
170
134
|
self._ide = ide
|
|
171
135
|
|
|
172
|
-
@property
|
|
173
|
-
def idle_shutdown_seconds(self) -> 'int':
|
|
174
|
-
"""Gets the idle_shutdown_seconds of this IdCodeconfigBody. # noqa: E501
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:return: The idle_shutdown_seconds of this IdCodeconfigBody. # noqa: E501
|
|
178
|
-
:rtype: int
|
|
179
|
-
"""
|
|
180
|
-
return self._idle_shutdown_seconds
|
|
181
|
-
|
|
182
|
-
@idle_shutdown_seconds.setter
|
|
183
|
-
def idle_shutdown_seconds(self, idle_shutdown_seconds: 'int'):
|
|
184
|
-
"""Sets the idle_shutdown_seconds of this IdCodeconfigBody.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:param idle_shutdown_seconds: The idle_shutdown_seconds of this IdCodeconfigBody. # noqa: E501
|
|
188
|
-
:type: int
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
self._idle_shutdown_seconds = idle_shutdown_seconds
|
|
192
|
-
|
|
193
136
|
@property
|
|
194
137
|
def port_plugin_port(self) -> 'str':
|
|
195
138
|
"""Gets the port_plugin_port of this IdCodeconfigBody. # noqa: E501
|
|
@@ -211,27 +154,6 @@ class IdCodeconfigBody(object):
|
|
|
211
154
|
|
|
212
155
|
self._port_plugin_port = port_plugin_port
|
|
213
156
|
|
|
214
|
-
@property
|
|
215
|
-
def switch_to_default_machine_on_idle(self) -> 'bool':
|
|
216
|
-
"""Gets the switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
:return: The switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
220
|
-
:rtype: bool
|
|
221
|
-
"""
|
|
222
|
-
return self._switch_to_default_machine_on_idle
|
|
223
|
-
|
|
224
|
-
@switch_to_default_machine_on_idle.setter
|
|
225
|
-
def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
|
|
226
|
-
"""Sets the switch_to_default_machine_on_idle of this IdCodeconfigBody.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
:param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
230
|
-
:type: bool
|
|
231
|
-
"""
|
|
232
|
-
|
|
233
|
-
self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
234
|
-
|
|
235
157
|
def to_dict(self) -> dict:
|
|
236
158
|
"""Returns the model properties as a dict"""
|
|
237
159
|
result = {}
|
|
@@ -41,23 +41,28 @@ class IdForkBody1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'new_name': 'str',
|
|
44
45
|
'target_cluster_id': 'str',
|
|
45
46
|
'target_project_id': 'str',
|
|
46
47
|
'version_id': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
51
|
+
'new_name': 'newName',
|
|
50
52
|
'target_cluster_id': 'targetClusterId',
|
|
51
53
|
'target_project_id': 'targetProjectId',
|
|
52
54
|
'version_id': 'versionId'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, target_cluster_id: 'str' =None, target_project_id: 'str' =None, version_id: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, new_name: 'str' =None, target_cluster_id: 'str' =None, target_project_id: 'str' =None, version_id: 'str' =None): # noqa: E501
|
|
56
58
|
"""IdForkBody1 - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._new_name = None
|
|
57
60
|
self._target_cluster_id = None
|
|
58
61
|
self._target_project_id = None
|
|
59
62
|
self._version_id = None
|
|
60
63
|
self.discriminator = None
|
|
64
|
+
if new_name is not None:
|
|
65
|
+
self.new_name = new_name
|
|
61
66
|
if target_cluster_id is not None:
|
|
62
67
|
self.target_cluster_id = target_cluster_id
|
|
63
68
|
if target_project_id is not None:
|
|
@@ -65,6 +70,27 @@ class IdForkBody1(object):
|
|
|
65
70
|
if version_id is not None:
|
|
66
71
|
self.version_id = version_id
|
|
67
72
|
|
|
73
|
+
@property
|
|
74
|
+
def new_name(self) -> 'str':
|
|
75
|
+
"""Gets the new_name of this IdForkBody1. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The new_name of this IdForkBody1. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._new_name
|
|
82
|
+
|
|
83
|
+
@new_name.setter
|
|
84
|
+
def new_name(self, new_name: 'str'):
|
|
85
|
+
"""Sets the new_name of this IdForkBody1.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param new_name: The new_name of this IdForkBody1. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._new_name = new_name
|
|
93
|
+
|
|
68
94
|
@property
|
|
69
95
|
def target_cluster_id(self) -> 'str':
|
|
70
96
|
"""Gets the target_cluster_id of this IdForkBody1. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class IdRenderBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'variables': 'dict(str, str)'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'variables': 'variables'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, variables: 'dict(str, str)' =None): # noqa: E501
|
|
52
|
+
"""IdRenderBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._variables = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if variables is not None:
|
|
56
|
+
self.variables = variables
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def variables(self) -> 'dict(str, str)':
|
|
60
|
+
"""Gets the variables of this IdRenderBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The variables of this IdRenderBody. # noqa: E501
|
|
64
|
+
:rtype: dict(str, str)
|
|
65
|
+
"""
|
|
66
|
+
return self._variables
|
|
67
|
+
|
|
68
|
+
@variables.setter
|
|
69
|
+
def variables(self, variables: 'dict(str, str)'):
|
|
70
|
+
"""Sets the variables of this IdRenderBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param variables: The variables of this IdRenderBody. # noqa: E501
|
|
74
|
+
:type: dict(str, str)
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._variables = variables
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(IdRenderBody, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'IdRenderBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, IdRenderBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'IdRenderBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|