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
|
@@ -0,0 +1,435 @@
|
|
|
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 V1NamespaceUserMetrics(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
|
+
'cpu_utilisation': 'float',
|
|
45
|
+
'failed_pods': 'int',
|
|
46
|
+
'gpu_utilisation': 'float',
|
|
47
|
+
'num_cpus': 'int',
|
|
48
|
+
'num_gpus': 'int',
|
|
49
|
+
'pending_pods': 'int',
|
|
50
|
+
'ram_used': 'int',
|
|
51
|
+
'running_pods': 'int',
|
|
52
|
+
'succeeded_pods': 'int',
|
|
53
|
+
'timestamp': 'datetime',
|
|
54
|
+
'total_pods': 'int',
|
|
55
|
+
'unknown_pods': 'int',
|
|
56
|
+
'vram_used': 'int'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
attribute_map = {
|
|
60
|
+
'cpu_utilisation': 'cpuUtilisation',
|
|
61
|
+
'failed_pods': 'failedPods',
|
|
62
|
+
'gpu_utilisation': 'gpuUtilisation',
|
|
63
|
+
'num_cpus': 'numCpus',
|
|
64
|
+
'num_gpus': 'numGpus',
|
|
65
|
+
'pending_pods': 'pendingPods',
|
|
66
|
+
'ram_used': 'ramUsed',
|
|
67
|
+
'running_pods': 'runningPods',
|
|
68
|
+
'succeeded_pods': 'succeededPods',
|
|
69
|
+
'timestamp': 'timestamp',
|
|
70
|
+
'total_pods': 'totalPods',
|
|
71
|
+
'unknown_pods': 'unknownPods',
|
|
72
|
+
'vram_used': 'vramUsed'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
def __init__(self, cpu_utilisation: 'float' =None, failed_pods: 'int' =None, gpu_utilisation: 'float' =None, num_cpus: 'int' =None, num_gpus: 'int' =None, pending_pods: 'int' =None, ram_used: 'int' =None, running_pods: 'int' =None, succeeded_pods: 'int' =None, timestamp: 'datetime' =None, total_pods: 'int' =None, unknown_pods: 'int' =None, vram_used: 'int' =None): # noqa: E501
|
|
76
|
+
"""V1NamespaceUserMetrics - a model defined in Swagger""" # noqa: E501
|
|
77
|
+
self._cpu_utilisation = None
|
|
78
|
+
self._failed_pods = None
|
|
79
|
+
self._gpu_utilisation = None
|
|
80
|
+
self._num_cpus = None
|
|
81
|
+
self._num_gpus = None
|
|
82
|
+
self._pending_pods = None
|
|
83
|
+
self._ram_used = None
|
|
84
|
+
self._running_pods = None
|
|
85
|
+
self._succeeded_pods = None
|
|
86
|
+
self._timestamp = None
|
|
87
|
+
self._total_pods = None
|
|
88
|
+
self._unknown_pods = None
|
|
89
|
+
self._vram_used = None
|
|
90
|
+
self.discriminator = None
|
|
91
|
+
if cpu_utilisation is not None:
|
|
92
|
+
self.cpu_utilisation = cpu_utilisation
|
|
93
|
+
if failed_pods is not None:
|
|
94
|
+
self.failed_pods = failed_pods
|
|
95
|
+
if gpu_utilisation is not None:
|
|
96
|
+
self.gpu_utilisation = gpu_utilisation
|
|
97
|
+
if num_cpus is not None:
|
|
98
|
+
self.num_cpus = num_cpus
|
|
99
|
+
if num_gpus is not None:
|
|
100
|
+
self.num_gpus = num_gpus
|
|
101
|
+
if pending_pods is not None:
|
|
102
|
+
self.pending_pods = pending_pods
|
|
103
|
+
if ram_used is not None:
|
|
104
|
+
self.ram_used = ram_used
|
|
105
|
+
if running_pods is not None:
|
|
106
|
+
self.running_pods = running_pods
|
|
107
|
+
if succeeded_pods is not None:
|
|
108
|
+
self.succeeded_pods = succeeded_pods
|
|
109
|
+
if timestamp is not None:
|
|
110
|
+
self.timestamp = timestamp
|
|
111
|
+
if total_pods is not None:
|
|
112
|
+
self.total_pods = total_pods
|
|
113
|
+
if unknown_pods is not None:
|
|
114
|
+
self.unknown_pods = unknown_pods
|
|
115
|
+
if vram_used is not None:
|
|
116
|
+
self.vram_used = vram_used
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def cpu_utilisation(self) -> 'float':
|
|
120
|
+
"""Gets the cpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:return: The cpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
124
|
+
:rtype: float
|
|
125
|
+
"""
|
|
126
|
+
return self._cpu_utilisation
|
|
127
|
+
|
|
128
|
+
@cpu_utilisation.setter
|
|
129
|
+
def cpu_utilisation(self, cpu_utilisation: 'float'):
|
|
130
|
+
"""Sets the cpu_utilisation of this V1NamespaceUserMetrics.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:param cpu_utilisation: The cpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
134
|
+
:type: float
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._cpu_utilisation = cpu_utilisation
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def failed_pods(self) -> 'int':
|
|
141
|
+
"""Gets the failed_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The failed_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._failed_pods
|
|
148
|
+
|
|
149
|
+
@failed_pods.setter
|
|
150
|
+
def failed_pods(self, failed_pods: 'int'):
|
|
151
|
+
"""Sets the failed_pods of this V1NamespaceUserMetrics.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param failed_pods: The failed_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
155
|
+
:type: int
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._failed_pods = failed_pods
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def gpu_utilisation(self) -> 'float':
|
|
162
|
+
"""Gets the gpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:return: The gpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
166
|
+
:rtype: float
|
|
167
|
+
"""
|
|
168
|
+
return self._gpu_utilisation
|
|
169
|
+
|
|
170
|
+
@gpu_utilisation.setter
|
|
171
|
+
def gpu_utilisation(self, gpu_utilisation: 'float'):
|
|
172
|
+
"""Sets the gpu_utilisation of this V1NamespaceUserMetrics.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:param gpu_utilisation: The gpu_utilisation of this V1NamespaceUserMetrics. # noqa: E501
|
|
176
|
+
:type: float
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
self._gpu_utilisation = gpu_utilisation
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def num_cpus(self) -> 'int':
|
|
183
|
+
"""Gets the num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:return: The num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
187
|
+
:rtype: int
|
|
188
|
+
"""
|
|
189
|
+
return self._num_cpus
|
|
190
|
+
|
|
191
|
+
@num_cpus.setter
|
|
192
|
+
def num_cpus(self, num_cpus: 'int'):
|
|
193
|
+
"""Sets the num_cpus of this V1NamespaceUserMetrics.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
:param num_cpus: The num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
197
|
+
:type: int
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
self._num_cpus = num_cpus
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
def num_gpus(self) -> 'int':
|
|
204
|
+
"""Gets the num_gpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:return: The num_gpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
208
|
+
:rtype: int
|
|
209
|
+
"""
|
|
210
|
+
return self._num_gpus
|
|
211
|
+
|
|
212
|
+
@num_gpus.setter
|
|
213
|
+
def num_gpus(self, num_gpus: 'int'):
|
|
214
|
+
"""Sets the num_gpus of this V1NamespaceUserMetrics.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
:param num_gpus: The num_gpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
218
|
+
:type: int
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
self._num_gpus = num_gpus
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
def pending_pods(self) -> 'int':
|
|
225
|
+
"""Gets the pending_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:return: The pending_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
229
|
+
:rtype: int
|
|
230
|
+
"""
|
|
231
|
+
return self._pending_pods
|
|
232
|
+
|
|
233
|
+
@pending_pods.setter
|
|
234
|
+
def pending_pods(self, pending_pods: 'int'):
|
|
235
|
+
"""Sets the pending_pods of this V1NamespaceUserMetrics.
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
:param pending_pods: The pending_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
239
|
+
:type: int
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
self._pending_pods = pending_pods
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def ram_used(self) -> 'int':
|
|
246
|
+
"""Gets the ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:return: The ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
250
|
+
:rtype: int
|
|
251
|
+
"""
|
|
252
|
+
return self._ram_used
|
|
253
|
+
|
|
254
|
+
@ram_used.setter
|
|
255
|
+
def ram_used(self, ram_used: 'int'):
|
|
256
|
+
"""Sets the ram_used of this V1NamespaceUserMetrics.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
:param ram_used: The ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
260
|
+
:type: int
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
self._ram_used = ram_used
|
|
264
|
+
|
|
265
|
+
@property
|
|
266
|
+
def running_pods(self) -> 'int':
|
|
267
|
+
"""Gets the running_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:return: The running_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
271
|
+
:rtype: int
|
|
272
|
+
"""
|
|
273
|
+
return self._running_pods
|
|
274
|
+
|
|
275
|
+
@running_pods.setter
|
|
276
|
+
def running_pods(self, running_pods: 'int'):
|
|
277
|
+
"""Sets the running_pods of this V1NamespaceUserMetrics.
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
:param running_pods: The running_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
281
|
+
:type: int
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
self._running_pods = running_pods
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
def succeeded_pods(self) -> 'int':
|
|
288
|
+
"""Gets the succeeded_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:return: The succeeded_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
292
|
+
:rtype: int
|
|
293
|
+
"""
|
|
294
|
+
return self._succeeded_pods
|
|
295
|
+
|
|
296
|
+
@succeeded_pods.setter
|
|
297
|
+
def succeeded_pods(self, succeeded_pods: 'int'):
|
|
298
|
+
"""Sets the succeeded_pods of this V1NamespaceUserMetrics.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
:param succeeded_pods: The succeeded_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
302
|
+
:type: int
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
self._succeeded_pods = succeeded_pods
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
def timestamp(self) -> 'datetime':
|
|
309
|
+
"""Gets the timestamp of this V1NamespaceUserMetrics. # noqa: E501
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:return: The timestamp of this V1NamespaceUserMetrics. # noqa: E501
|
|
313
|
+
:rtype: datetime
|
|
314
|
+
"""
|
|
315
|
+
return self._timestamp
|
|
316
|
+
|
|
317
|
+
@timestamp.setter
|
|
318
|
+
def timestamp(self, timestamp: 'datetime'):
|
|
319
|
+
"""Sets the timestamp of this V1NamespaceUserMetrics.
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
:param timestamp: The timestamp of this V1NamespaceUserMetrics. # noqa: E501
|
|
323
|
+
:type: datetime
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
self._timestamp = timestamp
|
|
327
|
+
|
|
328
|
+
@property
|
|
329
|
+
def total_pods(self) -> 'int':
|
|
330
|
+
"""Gets the total_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:return: The total_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
334
|
+
:rtype: int
|
|
335
|
+
"""
|
|
336
|
+
return self._total_pods
|
|
337
|
+
|
|
338
|
+
@total_pods.setter
|
|
339
|
+
def total_pods(self, total_pods: 'int'):
|
|
340
|
+
"""Sets the total_pods of this V1NamespaceUserMetrics.
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
:param total_pods: The total_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
344
|
+
:type: int
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
self._total_pods = total_pods
|
|
348
|
+
|
|
349
|
+
@property
|
|
350
|
+
def unknown_pods(self) -> 'int':
|
|
351
|
+
"""Gets the unknown_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
:return: The unknown_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
355
|
+
:rtype: int
|
|
356
|
+
"""
|
|
357
|
+
return self._unknown_pods
|
|
358
|
+
|
|
359
|
+
@unknown_pods.setter
|
|
360
|
+
def unknown_pods(self, unknown_pods: 'int'):
|
|
361
|
+
"""Sets the unknown_pods of this V1NamespaceUserMetrics.
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
:param unknown_pods: The unknown_pods of this V1NamespaceUserMetrics. # noqa: E501
|
|
365
|
+
:type: int
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
self._unknown_pods = unknown_pods
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def vram_used(self) -> 'int':
|
|
372
|
+
"""Gets the vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
:return: The vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
376
|
+
:rtype: int
|
|
377
|
+
"""
|
|
378
|
+
return self._vram_used
|
|
379
|
+
|
|
380
|
+
@vram_used.setter
|
|
381
|
+
def vram_used(self, vram_used: 'int'):
|
|
382
|
+
"""Sets the vram_used of this V1NamespaceUserMetrics.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
:param vram_used: The vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
386
|
+
:type: int
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
self._vram_used = vram_used
|
|
390
|
+
|
|
391
|
+
def to_dict(self) -> dict:
|
|
392
|
+
"""Returns the model properties as a dict"""
|
|
393
|
+
result = {}
|
|
394
|
+
|
|
395
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
396
|
+
value = getattr(self, attr)
|
|
397
|
+
if isinstance(value, list):
|
|
398
|
+
result[attr] = list(map(
|
|
399
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
400
|
+
value
|
|
401
|
+
))
|
|
402
|
+
elif hasattr(value, "to_dict"):
|
|
403
|
+
result[attr] = value.to_dict()
|
|
404
|
+
elif isinstance(value, dict):
|
|
405
|
+
result[attr] = dict(map(
|
|
406
|
+
lambda item: (item[0], item[1].to_dict())
|
|
407
|
+
if hasattr(item[1], "to_dict") else item,
|
|
408
|
+
value.items()
|
|
409
|
+
))
|
|
410
|
+
else:
|
|
411
|
+
result[attr] = value
|
|
412
|
+
if issubclass(V1NamespaceUserMetrics, dict):
|
|
413
|
+
for key, value in self.items():
|
|
414
|
+
result[key] = value
|
|
415
|
+
|
|
416
|
+
return result
|
|
417
|
+
|
|
418
|
+
def to_str(self) -> str:
|
|
419
|
+
"""Returns the string representation of the model"""
|
|
420
|
+
return pprint.pformat(self.to_dict())
|
|
421
|
+
|
|
422
|
+
def __repr__(self) -> str:
|
|
423
|
+
"""For `print` and `pprint`"""
|
|
424
|
+
return self.to_str()
|
|
425
|
+
|
|
426
|
+
def __eq__(self, other: 'V1NamespaceUserMetrics') -> bool:
|
|
427
|
+
"""Returns true if both objects are equal"""
|
|
428
|
+
if not isinstance(other, V1NamespaceUserMetrics):
|
|
429
|
+
return False
|
|
430
|
+
|
|
431
|
+
return self.__dict__ == other.__dict__
|
|
432
|
+
|
|
433
|
+
def __ne__(self, other: 'V1NamespaceUserMetrics') -> bool:
|
|
434
|
+
"""Returns true if both objects are not equal"""
|
|
435
|
+
return not self == other
|
|
@@ -42,23 +42,28 @@ class V1NebiusDirectV1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'primary_region': 'str',
|
|
45
|
-
'regions': 'list[str]'
|
|
45
|
+
'regions': 'list[str]',
|
|
46
|
+
'subnet_cidr_ranges': 'list[str]'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'primary_region': 'primaryRegion',
|
|
50
|
-
'regions': 'regions'
|
|
51
|
+
'regions': 'regions',
|
|
52
|
+
'subnet_cidr_ranges': 'subnetCidrRanges'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
|
|
55
|
+
def __init__(self, primary_region: 'str' =None, regions: 'list[str]' =None, subnet_cidr_ranges: 'list[str]' =None): # noqa: E501
|
|
54
56
|
"""V1NebiusDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._primary_region = None
|
|
56
58
|
self._regions = None
|
|
59
|
+
self._subnet_cidr_ranges = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if primary_region is not None:
|
|
59
62
|
self.primary_region = primary_region
|
|
60
63
|
if regions is not None:
|
|
61
64
|
self.regions = regions
|
|
65
|
+
if subnet_cidr_ranges is not None:
|
|
66
|
+
self.subnet_cidr_ranges = subnet_cidr_ranges
|
|
62
67
|
|
|
63
68
|
@property
|
|
64
69
|
def primary_region(self) -> 'str':
|
|
@@ -102,6 +107,27 @@ class V1NebiusDirectV1(object):
|
|
|
102
107
|
|
|
103
108
|
self._regions = regions
|
|
104
109
|
|
|
110
|
+
@property
|
|
111
|
+
def subnet_cidr_ranges(self) -> 'list[str]':
|
|
112
|
+
"""Gets the subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
116
|
+
:rtype: list[str]
|
|
117
|
+
"""
|
|
118
|
+
return self._subnet_cidr_ranges
|
|
119
|
+
|
|
120
|
+
@subnet_cidr_ranges.setter
|
|
121
|
+
def subnet_cidr_ranges(self, subnet_cidr_ranges: 'list[str]'):
|
|
122
|
+
"""Sets the subnet_cidr_ranges of this V1NebiusDirectV1.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param subnet_cidr_ranges: The subnet_cidr_ranges of this V1NebiusDirectV1. # noqa: E501
|
|
126
|
+
:type: list[str]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._subnet_cidr_ranges = subnet_cidr_ranges
|
|
130
|
+
|
|
105
131
|
def to_dict(self) -> dict:
|
|
106
132
|
"""Returns the model properties as a dict"""
|
|
107
133
|
result = {}
|