lightning-sdk 0.1.3__py3-none-any.whl → 0.1.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +12 -2
- lightning_sdk/agents.py +46 -0
- lightning_sdk/ai_hub.py +185 -0
- lightning_sdk/api/__init__.py +4 -0
- lightning_sdk/api/agents_api.py +107 -0
- lightning_sdk/api/ai_hub_api.py +130 -0
- lightning_sdk/api/deployment_api.py +574 -0
- lightning_sdk/api/job_api.py +308 -0
- lightning_sdk/api/mmt_api.py +188 -0
- lightning_sdk/api/org_api.py +1 -3
- lightning_sdk/api/studio_api.py +172 -81
- lightning_sdk/api/teamspace_api.py +219 -20
- lightning_sdk/api/user_api.py +24 -9
- lightning_sdk/api/utils.py +429 -48
- lightning_sdk/cli/ai_hub.py +49 -0
- lightning_sdk/cli/download.py +132 -0
- lightning_sdk/cli/entrypoint.py +11 -3
- lightning_sdk/cli/run.py +206 -0
- lightning_sdk/cli/serve.py +218 -0
- lightning_sdk/cli/studios_menu.py +78 -0
- lightning_sdk/cli/upload.py +79 -89
- lightning_sdk/constants.py +29 -1
- lightning_sdk/deployment/__init__.py +25 -0
- lightning_sdk/deployment/deployment.py +389 -0
- lightning_sdk/helpers.py +49 -0
- lightning_sdk/job/__init__.py +5 -0
- lightning_sdk/job/base.py +295 -0
- lightning_sdk/job/job.py +266 -0
- lightning_sdk/job/v1.py +241 -0
- lightning_sdk/job/v2.py +193 -0
- lightning_sdk/job/work.py +72 -0
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
- lightning_sdk/lightning_cloud/env.py +1 -0
- lightning_sdk/lightning_cloud/login.py +12 -8
- lightning_sdk/lightning_cloud/openapi/__init__.py +288 -42
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/api/analytics_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1075 -227
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +992 -233
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +883 -120
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +10 -5
- lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +756 -0
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +422 -1
- lightning_sdk/lightning_cloud/openapi/api/experiments_service_api.py +242 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +3823 -0
- lightning_sdk/lightning_cloud/openapi/api/lightningapp_instance_service_api.py +158 -594
- lightning_sdk/lightning_cloud/openapi/api/lightningapp_v2_service_api.py +0 -1086
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +1753 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +242 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1423 -108
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +421 -1
- lightning_sdk/lightning_cloud/openapi/api/profiler_service_api.py +663 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +478 -1
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +9 -5
- lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +686 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1094 -0
- lightning_sdk/lightning_cloud/openapi/api/studio_jobs_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +1081 -34
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +278 -40
- lightning_sdk/lightning_cloud/openapi/models/affiliatelinks_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/{assistants_id_body.py → agents_id_body.py} +201 -71
- lightning_sdk/lightning_cloud/openapi/models/app_id_works_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/approveautojoindomain_domain_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/apps_id_body1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_cluster_health_response.py → captures_id_body.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_runs_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_proxies_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/experiment_name_variant_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +107 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_lightningapp_instance.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -55
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_execute_body.py +3 -55
- lightning_sdk/lightning_cloud/openapi/models/id_execute_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_get_body.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/id_index_body.py +67 -15
- lightning_sdk/lightning_cloud/openapi/models/id_index_body2.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_index_body3.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportlogsactivity_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +52 -26
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body2.py +17 -43
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body3.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/litpages_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/loggermetrics_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metrics_stream_id_loggerartifacts_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_id_list.py → metricsstream_delete_body.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_response.py → model_id_versions_body.py} +25 -51
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/profiler_captures_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/profiler_enabled_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agentmanagedendpoints_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{project_id_assistants_body.py → project_id_agents_body.py} +159 -55
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +71 -19
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_jobs_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_memberships_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_request.py → project_id_models_body.py} +70 -70
- lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_secrets_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/secrets_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/servers_server_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/service_artifact_artifact_kind.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +43 -43
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_model_response.py → snowflake_query_body.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_accelerator_quota_info.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ack_user_storage_violation_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_add_job_timing_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_append_logger_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_approve_auto_join_domain_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assign_variant_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_item_status.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_status.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_domain_validation.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_org_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_spec.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_target_metric.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_batch_update_lightningwork_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancellation_metadata.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_snowflake_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +136 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_config.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_startup_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_log_service.py → v1_cloud_space_session.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_names.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_proxy.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_resource_tag.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -107
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +17 -43
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_model_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_completed_part.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +26 -26
- lightning_sdk/lightning_cloud/openapi/models/v1_count_metrics_streams_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_snowflake_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_user_secret_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +365 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_performance_profile.py → v1_data_connection_state.py} +11 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_affiliate_link_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_session_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_proxy_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_release_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_azure_cluster_driver_status.py → v1_delete_deployment_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_index_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_byom_cluster_driver.py → v1_delete_job_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_v2_response.py → v1_delete_logger_artifact_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_managed_endpoint_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_profiler_capture_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_release_response.py → v1_delete_shared_metrics_stream_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/{appsv2_id_body.py → v1_deployment_strategy.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +721 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_gallery_response.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/{instance_type_availability.py → v1_deployment_template_type.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_lightningapp_source_code_download_url_response.py → v1_download_job_logs_response.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_config.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_auth.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_cloud_space_command_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_in_cloud_space_session_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_snowflake_query_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_experiment.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_export_snowflake_query_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_instance_spec.py → v1_filesystem_app.py} +85 -59
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_affiliate_link_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_cluster_instance_types_response.py → v1_get_deployment_routing_telemetry_aggregated_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_folder_index_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_driver_status.py → v1_get_job_stats_response.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_system_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lightningapp_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_logger_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_lightningwork_cluster_driver.py → v1_get_project_artifact_response.py} +33 -14
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +67 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_get_snowflake_query_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +163 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1_status.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_external_kubeconfig.py → v1_health_check_exec.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_health_check_http_get.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ids_logger_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_interrupt_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +697 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_health_check_config.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_log_entry.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_knowledge_configuration.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_spec.py +105 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_affiliate_links_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_sessions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_tags_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_availabilities_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_proxies_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_releases_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_tags_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_templates_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployments_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_experiments_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_lightningapps_v2_response.py → v1_list_jobs_response.py} +31 -31
- lightning_sdk/lightning_cloud/openapi/models/v1_list_joinable_organizations_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_logger_artifact_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_metrics_streams_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_new_features_for_user_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_profiler_captures_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_locked_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_cloud_spaces_response.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_deployment_templates_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_page.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_locked_resource.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_logger_artifact.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +175 -19
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +138 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tags.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tracker.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_mount_target.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/{get_cluster_health_response_health_status.py → v1_multi_machine_job_event_type.py} +9 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_named_get_logger_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_new_feature.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_path_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_phase_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_profiler_capture.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_profiler_enabled_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_published_cloud_space_response.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_capacity_block_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_result.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_result_row.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_path_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_regional_load_balancer.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_logs_activity_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_tag.py → v1_resource_tag.py} +18 -18
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +37 -11
- lightning_sdk/lightning_cloud/openapi/models/v1_restore_deployment_release_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rolling_update_strategy.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_condition.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_search_job_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_lightningapp_cluster_driver.py → v1_secret_type.py} +10 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_select.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_check_in_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +43 -43
- lightning_sdk/lightning_cloud/openapi/models/v1_should_start_syncing_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_signed_url.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_status_code_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_studio_job_app.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_telemetry.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_timestamp_code_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_user_balance_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_billing_subscription_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cluster_accelerators_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_index_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_snowflake_query_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upstream_cloud_space.py +97 -19
- lightning_sdk/lightning_cloud/openapi/models/v1_upstream_job.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1006 -330
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +45 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_flow_compute_config.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_assistant_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_auto_join_domain_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_model_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +97 -19
- lightning_sdk/lightning_cloud/openapi/models/validateautojoindomain_domain_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +47 -23
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +1 -1
- lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +145 -7
- lightning_sdk/machine.py +17 -4
- lightning_sdk/mmt/__init__.py +4 -0
- lightning_sdk/mmt/base.py +288 -0
- lightning_sdk/mmt/mmt.py +282 -0
- lightning_sdk/mmt/v1.py +185 -0
- lightning_sdk/mmt/v2.py +193 -0
- lightning_sdk/models.py +153 -0
- lightning_sdk/organization.py +1 -1
- lightning_sdk/plugin.py +207 -41
- lightning_sdk/services/__init__.py +2 -1
- lightning_sdk/services/file_endpoint.py +116 -213
- lightning_sdk/services/finetune/__init__.py +13 -15
- lightning_sdk/services/utilities.py +99 -26
- lightning_sdk/status.py +2 -1
- lightning_sdk/studio.py +90 -17
- lightning_sdk/teamspace.py +189 -11
- lightning_sdk/user.py +1 -1
- lightning_sdk/utils/__init__.py +0 -0
- lightning_sdk/utils/dynamic.py +61 -0
- lightning_sdk/utils/enum.py +116 -0
- lightning_sdk/{utils.py → utils/resolve.py} +41 -4
- lightning_sdk-0.1.46.dist-info/LICENSE +21 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/METADATA +30 -4
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/RECORD +482 -204
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/openapi/models/app_id_releases_body.py +0 -541
- lightning_sdk/lightning_cloud/openapi/models/id_endpoint_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_get_body1.py +0 -333
- lightning_sdk/lightning_cloud/openapi/models/project_id_appsv2_body.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_driver_spec.py +0 -1039
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_secondary_region_spec.py +0 -253
- lightning_sdk/lightning_cloud/openapi/models/v1_azure_cluster_driver_spec.py +0 -227
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_driver.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_container_resources.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_eks_custer_driver_status.py +0 -387
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_type.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_driver.py +0 -359
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_status.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_release.py +0 -697
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_v2.py +0 -331
- lightning_sdk/services/uploader.py +0 -123
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.46.dist-info}/top_level.txt +0 -0
|
@@ -43,111 +43,6 @@ class LightningappInstanceServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def lightningapp_instance_service_complete_upload_project_artifact(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
47
|
-
"""lightningapp_instance_service_complete_upload_project_artifact # noqa: E501
|
|
48
|
-
|
|
49
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
-
asynchronous HTTP request, please pass async_req=True
|
|
51
|
-
>>> thread = api.lightningapp_instance_service_complete_upload_project_artifact(body, project_id, async_req=True)
|
|
52
|
-
>>> result = thread.get()
|
|
53
|
-
|
|
54
|
-
:param async_req bool
|
|
55
|
-
:param StorageCompleteBody body: (required)
|
|
56
|
-
:param str project_id: (required)
|
|
57
|
-
:return: V1CompleteUploadProjectArtifactResponse
|
|
58
|
-
If the method is called asynchronously,
|
|
59
|
-
returns the request thread.
|
|
60
|
-
"""
|
|
61
|
-
kwargs['_return_http_data_only'] = True
|
|
62
|
-
if kwargs.get('async_req'):
|
|
63
|
-
return self.lightningapp_instance_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
64
|
-
else:
|
|
65
|
-
(data) = self.lightningapp_instance_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
66
|
-
return data
|
|
67
|
-
|
|
68
|
-
def lightningapp_instance_service_complete_upload_project_artifact_with_http_info(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
69
|
-
"""lightningapp_instance_service_complete_upload_project_artifact # noqa: E501
|
|
70
|
-
|
|
71
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
72
|
-
asynchronous HTTP request, please pass async_req=True
|
|
73
|
-
>>> thread = api.lightningapp_instance_service_complete_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
74
|
-
>>> result = thread.get()
|
|
75
|
-
|
|
76
|
-
:param async_req bool
|
|
77
|
-
:param StorageCompleteBody body: (required)
|
|
78
|
-
:param str project_id: (required)
|
|
79
|
-
:return: V1CompleteUploadProjectArtifactResponse
|
|
80
|
-
If the method is called asynchronously,
|
|
81
|
-
returns the request thread.
|
|
82
|
-
"""
|
|
83
|
-
|
|
84
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
85
|
-
all_params.append('async_req')
|
|
86
|
-
all_params.append('_return_http_data_only')
|
|
87
|
-
all_params.append('_preload_content')
|
|
88
|
-
all_params.append('_request_timeout')
|
|
89
|
-
|
|
90
|
-
params = locals()
|
|
91
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
92
|
-
if key not in all_params:
|
|
93
|
-
raise TypeError(
|
|
94
|
-
"Got an unexpected keyword argument '%s'"
|
|
95
|
-
" to method lightningapp_instance_service_complete_upload_project_artifact" % key
|
|
96
|
-
)
|
|
97
|
-
params[key] = val
|
|
98
|
-
del params['kwargs']
|
|
99
|
-
# verify the required parameter 'body' is set
|
|
100
|
-
if ('body' not in params or
|
|
101
|
-
params['body'] is None):
|
|
102
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_instance_service_complete_upload_project_artifact`") # noqa: E501
|
|
103
|
-
# verify the required parameter 'project_id' is set
|
|
104
|
-
if ('project_id' not in params or
|
|
105
|
-
params['project_id'] is None):
|
|
106
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_complete_upload_project_artifact`") # noqa: E501
|
|
107
|
-
|
|
108
|
-
collection_formats = {}
|
|
109
|
-
|
|
110
|
-
path_params = {}
|
|
111
|
-
if 'project_id' in params:
|
|
112
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
113
|
-
|
|
114
|
-
query_params = []
|
|
115
|
-
|
|
116
|
-
header_params = {}
|
|
117
|
-
|
|
118
|
-
form_params = []
|
|
119
|
-
local_var_files = {}
|
|
120
|
-
|
|
121
|
-
body_params = None
|
|
122
|
-
if 'body' in params:
|
|
123
|
-
body_params = params['body']
|
|
124
|
-
# HTTP header `Accept`
|
|
125
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
126
|
-
['application/json']) # noqa: E501
|
|
127
|
-
|
|
128
|
-
# HTTP header `Content-Type`
|
|
129
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
130
|
-
['application/json']) # noqa: E501
|
|
131
|
-
|
|
132
|
-
# Authentication setting
|
|
133
|
-
auth_settings = [] # noqa: E501
|
|
134
|
-
|
|
135
|
-
return self.api_client.call_api(
|
|
136
|
-
'/v1/projects/{projectId}/storage/complete', 'POST',
|
|
137
|
-
path_params,
|
|
138
|
-
query_params,
|
|
139
|
-
header_params,
|
|
140
|
-
body=body_params,
|
|
141
|
-
post_params=form_params,
|
|
142
|
-
files=local_var_files,
|
|
143
|
-
response_type='V1CompleteUploadProjectArtifactResponse', # noqa: E501
|
|
144
|
-
auth_settings=auth_settings,
|
|
145
|
-
async_req=params.get('async_req'),
|
|
146
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
147
|
-
_preload_content=params.get('_preload_content', True),
|
|
148
|
-
_request_timeout=params.get('_request_timeout'),
|
|
149
|
-
collection_formats=collection_formats)
|
|
150
|
-
|
|
151
46
|
def lightningapp_instance_service_delete_lightningapp_instance(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLightningappInstanceResponse': # noqa: E501
|
|
152
47
|
"""lightningapp_instance_service_delete_lightningapp_instance # noqa: E501
|
|
153
48
|
|
|
@@ -354,107 +249,6 @@ class LightningappInstanceServiceApi(object):
|
|
|
354
249
|
_request_timeout=params.get('_request_timeout'),
|
|
355
250
|
collection_formats=collection_formats)
|
|
356
251
|
|
|
357
|
-
def lightningapp_instance_service_delete_project_artifact(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
358
|
-
"""lightningapp_instance_service_delete_project_artifact # noqa: E501
|
|
359
|
-
|
|
360
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
361
|
-
asynchronous HTTP request, please pass async_req=True
|
|
362
|
-
>>> thread = api.lightningapp_instance_service_delete_project_artifact(project_id, async_req=True)
|
|
363
|
-
>>> result = thread.get()
|
|
364
|
-
|
|
365
|
-
:param async_req bool
|
|
366
|
-
:param str project_id: (required)
|
|
367
|
-
:param str cluster_id:
|
|
368
|
-
:param str filename:
|
|
369
|
-
:return: V1DeleteProjectArtifactResponse
|
|
370
|
-
If the method is called asynchronously,
|
|
371
|
-
returns the request thread.
|
|
372
|
-
"""
|
|
373
|
-
kwargs['_return_http_data_only'] = True
|
|
374
|
-
if kwargs.get('async_req'):
|
|
375
|
-
return self.lightningapp_instance_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
376
|
-
else:
|
|
377
|
-
(data) = self.lightningapp_instance_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
378
|
-
return data
|
|
379
|
-
|
|
380
|
-
def lightningapp_instance_service_delete_project_artifact_with_http_info(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
381
|
-
"""lightningapp_instance_service_delete_project_artifact # noqa: E501
|
|
382
|
-
|
|
383
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
384
|
-
asynchronous HTTP request, please pass async_req=True
|
|
385
|
-
>>> thread = api.lightningapp_instance_service_delete_project_artifact_with_http_info(project_id, async_req=True)
|
|
386
|
-
>>> result = thread.get()
|
|
387
|
-
|
|
388
|
-
:param async_req bool
|
|
389
|
-
:param str project_id: (required)
|
|
390
|
-
:param str cluster_id:
|
|
391
|
-
:param str filename:
|
|
392
|
-
:return: V1DeleteProjectArtifactResponse
|
|
393
|
-
If the method is called asynchronously,
|
|
394
|
-
returns the request thread.
|
|
395
|
-
"""
|
|
396
|
-
|
|
397
|
-
all_params = ['project_id', 'cluster_id', 'filename'] # noqa: E501
|
|
398
|
-
all_params.append('async_req')
|
|
399
|
-
all_params.append('_return_http_data_only')
|
|
400
|
-
all_params.append('_preload_content')
|
|
401
|
-
all_params.append('_request_timeout')
|
|
402
|
-
|
|
403
|
-
params = locals()
|
|
404
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
405
|
-
if key not in all_params:
|
|
406
|
-
raise TypeError(
|
|
407
|
-
"Got an unexpected keyword argument '%s'"
|
|
408
|
-
" to method lightningapp_instance_service_delete_project_artifact" % key
|
|
409
|
-
)
|
|
410
|
-
params[key] = val
|
|
411
|
-
del params['kwargs']
|
|
412
|
-
# verify the required parameter 'project_id' is set
|
|
413
|
-
if ('project_id' not in params or
|
|
414
|
-
params['project_id'] is None):
|
|
415
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_delete_project_artifact`") # noqa: E501
|
|
416
|
-
|
|
417
|
-
collection_formats = {}
|
|
418
|
-
|
|
419
|
-
path_params = {}
|
|
420
|
-
if 'project_id' in params:
|
|
421
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
422
|
-
|
|
423
|
-
query_params = []
|
|
424
|
-
if 'cluster_id' in params:
|
|
425
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
426
|
-
if 'filename' in params:
|
|
427
|
-
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
428
|
-
|
|
429
|
-
header_params = {}
|
|
430
|
-
|
|
431
|
-
form_params = []
|
|
432
|
-
local_var_files = {}
|
|
433
|
-
|
|
434
|
-
body_params = None
|
|
435
|
-
# HTTP header `Accept`
|
|
436
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
437
|
-
['application/json']) # noqa: E501
|
|
438
|
-
|
|
439
|
-
# Authentication setting
|
|
440
|
-
auth_settings = [] # noqa: E501
|
|
441
|
-
|
|
442
|
-
return self.api_client.call_api(
|
|
443
|
-
'/v1/projects/{projectId}/storage', 'DELETE',
|
|
444
|
-
path_params,
|
|
445
|
-
query_params,
|
|
446
|
-
header_params,
|
|
447
|
-
body=body_params,
|
|
448
|
-
post_params=form_params,
|
|
449
|
-
files=local_var_files,
|
|
450
|
-
response_type='V1DeleteProjectArtifactResponse', # noqa: E501
|
|
451
|
-
auth_settings=auth_settings,
|
|
452
|
-
async_req=params.get('async_req'),
|
|
453
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
454
|
-
_preload_content=params.get('_preload_content', True),
|
|
455
|
-
_request_timeout=params.get('_request_timeout'),
|
|
456
|
-
collection_formats=collection_formats)
|
|
457
|
-
|
|
458
252
|
def lightningapp_instance_service_download_lightningapp_instance_logs(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DownloadLightningappInstanceLogsResponse': # noqa: E501
|
|
459
253
|
"""lightningapp_instance_service_download_lightningapp_instance_logs # noqa: E501
|
|
460
254
|
|
|
@@ -867,55 +661,45 @@ class LightningappInstanceServiceApi(object):
|
|
|
867
661
|
_request_timeout=params.get('_request_timeout'),
|
|
868
662
|
collection_formats=collection_formats)
|
|
869
663
|
|
|
870
|
-
def
|
|
871
|
-
"""
|
|
664
|
+
def lightningapp_instance_service_get_lightningapp_instance_open_ports(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetLightningappInstanceOpenPortsResponse': # noqa: E501
|
|
665
|
+
"""lightningapp_instance_service_get_lightningapp_instance_open_ports # noqa: E501
|
|
872
666
|
|
|
873
667
|
This method makes a synchronous HTTP request by default. To make an
|
|
874
668
|
asynchronous HTTP request, please pass async_req=True
|
|
875
|
-
>>> thread = api.
|
|
669
|
+
>>> thread = api.lightningapp_instance_service_get_lightningapp_instance_open_ports(project_id, id, async_req=True)
|
|
876
670
|
>>> result = thread.get()
|
|
877
671
|
|
|
878
672
|
:param async_req bool
|
|
879
673
|
:param str project_id: (required)
|
|
880
674
|
:param str id: (required)
|
|
881
|
-
:
|
|
882
|
-
:param datetime start:
|
|
883
|
-
:param datetime end:
|
|
884
|
-
:param str frequency:
|
|
885
|
-
:param bool first_query:
|
|
886
|
-
:return: V1GetLightningappInstanceSystemMetricsResponse
|
|
675
|
+
:return: V1GetLightningappInstanceOpenPortsResponse
|
|
887
676
|
If the method is called asynchronously,
|
|
888
677
|
returns the request thread.
|
|
889
678
|
"""
|
|
890
679
|
kwargs['_return_http_data_only'] = True
|
|
891
680
|
if kwargs.get('async_req'):
|
|
892
|
-
return self.
|
|
681
|
+
return self.lightningapp_instance_service_get_lightningapp_instance_open_ports_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
893
682
|
else:
|
|
894
|
-
(data) = self.
|
|
683
|
+
(data) = self.lightningapp_instance_service_get_lightningapp_instance_open_ports_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
895
684
|
return data
|
|
896
685
|
|
|
897
|
-
def
|
|
898
|
-
"""
|
|
686
|
+
def lightningapp_instance_service_get_lightningapp_instance_open_ports_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetLightningappInstanceOpenPortsResponse': # noqa: E501
|
|
687
|
+
"""lightningapp_instance_service_get_lightningapp_instance_open_ports # noqa: E501
|
|
899
688
|
|
|
900
689
|
This method makes a synchronous HTTP request by default. To make an
|
|
901
690
|
asynchronous HTTP request, please pass async_req=True
|
|
902
|
-
>>> thread = api.
|
|
691
|
+
>>> thread = api.lightningapp_instance_service_get_lightningapp_instance_open_ports_with_http_info(project_id, id, async_req=True)
|
|
903
692
|
>>> result = thread.get()
|
|
904
693
|
|
|
905
694
|
:param async_req bool
|
|
906
695
|
:param str project_id: (required)
|
|
907
696
|
:param str id: (required)
|
|
908
|
-
:
|
|
909
|
-
:param datetime start:
|
|
910
|
-
:param datetime end:
|
|
911
|
-
:param str frequency:
|
|
912
|
-
:param bool first_query:
|
|
913
|
-
:return: V1GetLightningappInstanceSystemMetricsResponse
|
|
697
|
+
:return: V1GetLightningappInstanceOpenPortsResponse
|
|
914
698
|
If the method is called asynchronously,
|
|
915
699
|
returns the request thread.
|
|
916
700
|
"""
|
|
917
701
|
|
|
918
|
-
all_params = ['project_id', 'id'
|
|
702
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
919
703
|
all_params.append('async_req')
|
|
920
704
|
all_params.append('_return_http_data_only')
|
|
921
705
|
all_params.append('_preload_content')
|
|
@@ -926,18 +710,18 @@ class LightningappInstanceServiceApi(object):
|
|
|
926
710
|
if key not in all_params:
|
|
927
711
|
raise TypeError(
|
|
928
712
|
"Got an unexpected keyword argument '%s'"
|
|
929
|
-
" to method
|
|
713
|
+
" to method lightningapp_instance_service_get_lightningapp_instance_open_ports" % key
|
|
930
714
|
)
|
|
931
715
|
params[key] = val
|
|
932
716
|
del params['kwargs']
|
|
933
717
|
# verify the required parameter 'project_id' is set
|
|
934
718
|
if ('project_id' not in params or
|
|
935
719
|
params['project_id'] is None):
|
|
936
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
720
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_get_lightningapp_instance_open_ports`") # noqa: E501
|
|
937
721
|
# verify the required parameter 'id' is set
|
|
938
722
|
if ('id' not in params or
|
|
939
723
|
params['id'] is None):
|
|
940
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
724
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningapp_instance_service_get_lightningapp_instance_open_ports`") # noqa: E501
|
|
941
725
|
|
|
942
726
|
collection_formats = {}
|
|
943
727
|
|
|
@@ -948,17 +732,6 @@ class LightningappInstanceServiceApi(object):
|
|
|
948
732
|
path_params['id'] = params['id'] # noqa: E501
|
|
949
733
|
|
|
950
734
|
query_params = []
|
|
951
|
-
if 'work_ids' in params:
|
|
952
|
-
query_params.append(('workIds', params['work_ids'])) # noqa: E501
|
|
953
|
-
collection_formats['workIds'] = 'multi' # noqa: E501
|
|
954
|
-
if 'start' in params:
|
|
955
|
-
query_params.append(('start', params['start'])) # noqa: E501
|
|
956
|
-
if 'end' in params:
|
|
957
|
-
query_params.append(('end', params['end'])) # noqa: E501
|
|
958
|
-
if 'frequency' in params:
|
|
959
|
-
query_params.append(('frequency', params['frequency'])) # noqa: E501
|
|
960
|
-
if 'first_query' in params:
|
|
961
|
-
query_params.append(('firstQuery', params['first_query'])) # noqa: E501
|
|
962
735
|
|
|
963
736
|
header_params = {}
|
|
964
737
|
|
|
@@ -974,14 +747,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
974
747
|
auth_settings = [] # noqa: E501
|
|
975
748
|
|
|
976
749
|
return self.api_client.call_api(
|
|
977
|
-
'/v1/projects/{projectId}/appinstances/{id}/
|
|
750
|
+
'/v1/projects/{projectId}/appinstances/{id}/ports', 'GET',
|
|
978
751
|
path_params,
|
|
979
752
|
query_params,
|
|
980
753
|
header_params,
|
|
981
754
|
body=body_params,
|
|
982
755
|
post_params=form_params,
|
|
983
756
|
files=local_var_files,
|
|
984
|
-
response_type='
|
|
757
|
+
response_type='V1GetLightningappInstanceOpenPortsResponse', # noqa: E501
|
|
985
758
|
auth_settings=auth_settings,
|
|
986
759
|
async_req=params.get('async_req'),
|
|
987
760
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -989,51 +762,55 @@ class LightningappInstanceServiceApi(object):
|
|
|
989
762
|
_request_timeout=params.get('_request_timeout'),
|
|
990
763
|
collection_formats=collection_formats)
|
|
991
764
|
|
|
992
|
-
def
|
|
993
|
-
"""
|
|
765
|
+
def lightningapp_instance_service_get_lightningapp_instance_system_metrics(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetLightningappInstanceSystemMetricsResponse': # noqa: E501
|
|
766
|
+
"""lightningapp_instance_service_get_lightningapp_instance_system_metrics # noqa: E501
|
|
994
767
|
|
|
995
768
|
This method makes a synchronous HTTP request by default. To make an
|
|
996
769
|
asynchronous HTTP request, please pass async_req=True
|
|
997
|
-
>>> thread = api.
|
|
770
|
+
>>> thread = api.lightningapp_instance_service_get_lightningapp_instance_system_metrics(project_id, id, async_req=True)
|
|
998
771
|
>>> result = thread.get()
|
|
999
772
|
|
|
1000
773
|
:param async_req bool
|
|
1001
774
|
:param str project_id: (required)
|
|
1002
775
|
:param str id: (required)
|
|
1003
|
-
:param str
|
|
1004
|
-
:param
|
|
1005
|
-
:param
|
|
1006
|
-
:
|
|
776
|
+
:param list[str] work_ids:
|
|
777
|
+
:param datetime start:
|
|
778
|
+
:param datetime end:
|
|
779
|
+
:param str frequency:
|
|
780
|
+
:param bool first_query:
|
|
781
|
+
:return: V1GetLightningappInstanceSystemMetricsResponse
|
|
1007
782
|
If the method is called asynchronously,
|
|
1008
783
|
returns the request thread.
|
|
1009
784
|
"""
|
|
1010
785
|
kwargs['_return_http_data_only'] = True
|
|
1011
786
|
if kwargs.get('async_req'):
|
|
1012
|
-
return self.
|
|
787
|
+
return self.lightningapp_instance_service_get_lightningapp_instance_system_metrics_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1013
788
|
else:
|
|
1014
|
-
(data) = self.
|
|
789
|
+
(data) = self.lightningapp_instance_service_get_lightningapp_instance_system_metrics_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1015
790
|
return data
|
|
1016
791
|
|
|
1017
|
-
def
|
|
1018
|
-
"""
|
|
792
|
+
def lightningapp_instance_service_get_lightningapp_instance_system_metrics_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetLightningappInstanceSystemMetricsResponse': # noqa: E501
|
|
793
|
+
"""lightningapp_instance_service_get_lightningapp_instance_system_metrics # noqa: E501
|
|
1019
794
|
|
|
1020
795
|
This method makes a synchronous HTTP request by default. To make an
|
|
1021
796
|
asynchronous HTTP request, please pass async_req=True
|
|
1022
|
-
>>> thread = api.
|
|
797
|
+
>>> thread = api.lightningapp_instance_service_get_lightningapp_instance_system_metrics_with_http_info(project_id, id, async_req=True)
|
|
1023
798
|
>>> result = thread.get()
|
|
1024
799
|
|
|
1025
800
|
:param async_req bool
|
|
1026
801
|
:param str project_id: (required)
|
|
1027
802
|
:param str id: (required)
|
|
1028
|
-
:param str
|
|
1029
|
-
:param
|
|
1030
|
-
:param
|
|
1031
|
-
:
|
|
803
|
+
:param list[str] work_ids:
|
|
804
|
+
:param datetime start:
|
|
805
|
+
:param datetime end:
|
|
806
|
+
:param str frequency:
|
|
807
|
+
:param bool first_query:
|
|
808
|
+
:return: V1GetLightningappInstanceSystemMetricsResponse
|
|
1032
809
|
If the method is called asynchronously,
|
|
1033
810
|
returns the request thread.
|
|
1034
811
|
"""
|
|
1035
812
|
|
|
1036
|
-
all_params = ['project_id', 'id', '
|
|
813
|
+
all_params = ['project_id', 'id', 'work_ids', 'start', 'end', 'frequency', 'first_query'] # noqa: E501
|
|
1037
814
|
all_params.append('async_req')
|
|
1038
815
|
all_params.append('_return_http_data_only')
|
|
1039
816
|
all_params.append('_preload_content')
|
|
@@ -1044,18 +821,18 @@ class LightningappInstanceServiceApi(object):
|
|
|
1044
821
|
if key not in all_params:
|
|
1045
822
|
raise TypeError(
|
|
1046
823
|
"Got an unexpected keyword argument '%s'"
|
|
1047
|
-
" to method
|
|
824
|
+
" to method lightningapp_instance_service_get_lightningapp_instance_system_metrics" % key
|
|
1048
825
|
)
|
|
1049
826
|
params[key] = val
|
|
1050
827
|
del params['kwargs']
|
|
1051
828
|
# verify the required parameter 'project_id' is set
|
|
1052
829
|
if ('project_id' not in params or
|
|
1053
830
|
params['project_id'] is None):
|
|
1054
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
831
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_get_lightningapp_instance_system_metrics`") # noqa: E501
|
|
1055
832
|
# verify the required parameter 'id' is set
|
|
1056
833
|
if ('id' not in params or
|
|
1057
834
|
params['id'] is None):
|
|
1058
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
835
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningapp_instance_service_get_lightningapp_instance_system_metrics`") # noqa: E501
|
|
1059
836
|
|
|
1060
837
|
collection_formats = {}
|
|
1061
838
|
|
|
@@ -1066,12 +843,17 @@ class LightningappInstanceServiceApi(object):
|
|
|
1066
843
|
path_params['id'] = params['id'] # noqa: E501
|
|
1067
844
|
|
|
1068
845
|
query_params = []
|
|
1069
|
-
if '
|
|
1070
|
-
query_params.append(('
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
846
|
+
if 'work_ids' in params:
|
|
847
|
+
query_params.append(('workIds', params['work_ids'])) # noqa: E501
|
|
848
|
+
collection_formats['workIds'] = 'multi' # noqa: E501
|
|
849
|
+
if 'start' in params:
|
|
850
|
+
query_params.append(('start', params['start'])) # noqa: E501
|
|
851
|
+
if 'end' in params:
|
|
852
|
+
query_params.append(('end', params['end'])) # noqa: E501
|
|
853
|
+
if 'frequency' in params:
|
|
854
|
+
query_params.append(('frequency', params['frequency'])) # noqa: E501
|
|
855
|
+
if 'first_query' in params:
|
|
856
|
+
query_params.append(('firstQuery', params['first_query'])) # noqa: E501
|
|
1075
857
|
|
|
1076
858
|
header_params = {}
|
|
1077
859
|
|
|
@@ -1087,14 +869,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
1087
869
|
auth_settings = [] # noqa: E501
|
|
1088
870
|
|
|
1089
871
|
return self.api_client.call_api(
|
|
1090
|
-
'/v1/projects/{projectId}/appinstances/{id}/
|
|
872
|
+
'/v1/projects/{projectId}/appinstances/{id}/system-metrics', 'GET',
|
|
1091
873
|
path_params,
|
|
1092
874
|
query_params,
|
|
1093
875
|
header_params,
|
|
1094
876
|
body=body_params,
|
|
1095
877
|
post_params=form_params,
|
|
1096
878
|
files=local_var_files,
|
|
1097
|
-
response_type='
|
|
879
|
+
response_type='V1GetLightningappInstanceSystemMetricsResponse', # noqa: E501
|
|
1098
880
|
auth_settings=auth_settings,
|
|
1099
881
|
async_req=params.get('async_req'),
|
|
1100
882
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1102,47 +884,51 @@ class LightningappInstanceServiceApi(object):
|
|
|
1102
884
|
_request_timeout=params.get('_request_timeout'),
|
|
1103
885
|
collection_formats=collection_formats)
|
|
1104
886
|
|
|
1105
|
-
def
|
|
1106
|
-
"""
|
|
887
|
+
def lightningapp_instance_service_list_lightningapp_instance_artifacts(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListLightningappInstanceArtifactsResponse': # noqa: E501
|
|
888
|
+
"""lightningapp_instance_service_list_lightningapp_instance_artifacts # noqa: E501
|
|
1107
889
|
|
|
1108
890
|
This method makes a synchronous HTTP request by default. To make an
|
|
1109
891
|
asynchronous HTTP request, please pass async_req=True
|
|
1110
|
-
>>> thread = api.
|
|
892
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instance_artifacts(project_id, id, async_req=True)
|
|
1111
893
|
>>> result = thread.get()
|
|
1112
894
|
|
|
1113
895
|
:param async_req bool
|
|
1114
896
|
:param str project_id: (required)
|
|
1115
897
|
:param str id: (required)
|
|
1116
|
-
:param
|
|
1117
|
-
:
|
|
898
|
+
:param str filename:
|
|
899
|
+
:param str page_token:
|
|
900
|
+
:param str page_size:
|
|
901
|
+
:return: V1ListLightningappInstanceArtifactsResponse
|
|
1118
902
|
If the method is called asynchronously,
|
|
1119
903
|
returns the request thread.
|
|
1120
904
|
"""
|
|
1121
905
|
kwargs['_return_http_data_only'] = True
|
|
1122
906
|
if kwargs.get('async_req'):
|
|
1123
|
-
return self.
|
|
907
|
+
return self.lightningapp_instance_service_list_lightningapp_instance_artifacts_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1124
908
|
else:
|
|
1125
|
-
(data) = self.
|
|
909
|
+
(data) = self.lightningapp_instance_service_list_lightningapp_instance_artifacts_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1126
910
|
return data
|
|
1127
911
|
|
|
1128
|
-
def
|
|
1129
|
-
"""
|
|
912
|
+
def lightningapp_instance_service_list_lightningapp_instance_artifacts_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListLightningappInstanceArtifactsResponse': # noqa: E501
|
|
913
|
+
"""lightningapp_instance_service_list_lightningapp_instance_artifacts # noqa: E501
|
|
1130
914
|
|
|
1131
915
|
This method makes a synchronous HTTP request by default. To make an
|
|
1132
916
|
asynchronous HTTP request, please pass async_req=True
|
|
1133
|
-
>>> thread = api.
|
|
917
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instance_artifacts_with_http_info(project_id, id, async_req=True)
|
|
1134
918
|
>>> result = thread.get()
|
|
1135
919
|
|
|
1136
920
|
:param async_req bool
|
|
1137
921
|
:param str project_id: (required)
|
|
1138
922
|
:param str id: (required)
|
|
1139
|
-
:param
|
|
1140
|
-
:
|
|
923
|
+
:param str filename:
|
|
924
|
+
:param str page_token:
|
|
925
|
+
:param str page_size:
|
|
926
|
+
:return: V1ListLightningappInstanceArtifactsResponse
|
|
1141
927
|
If the method is called asynchronously,
|
|
1142
928
|
returns the request thread.
|
|
1143
929
|
"""
|
|
1144
930
|
|
|
1145
|
-
all_params = ['project_id', 'id', '
|
|
931
|
+
all_params = ['project_id', 'id', 'filename', 'page_token', 'page_size'] # noqa: E501
|
|
1146
932
|
all_params.append('async_req')
|
|
1147
933
|
all_params.append('_return_http_data_only')
|
|
1148
934
|
all_params.append('_preload_content')
|
|
@@ -1153,18 +939,18 @@ class LightningappInstanceServiceApi(object):
|
|
|
1153
939
|
if key not in all_params:
|
|
1154
940
|
raise TypeError(
|
|
1155
941
|
"Got an unexpected keyword argument '%s'"
|
|
1156
|
-
" to method
|
|
942
|
+
" to method lightningapp_instance_service_list_lightningapp_instance_artifacts" % key
|
|
1157
943
|
)
|
|
1158
944
|
params[key] = val
|
|
1159
945
|
del params['kwargs']
|
|
1160
946
|
# verify the required parameter 'project_id' is set
|
|
1161
947
|
if ('project_id' not in params or
|
|
1162
948
|
params['project_id'] is None):
|
|
1163
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
949
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_list_lightningapp_instance_artifacts`") # noqa: E501
|
|
1164
950
|
# verify the required parameter 'id' is set
|
|
1165
951
|
if ('id' not in params or
|
|
1166
952
|
params['id'] is None):
|
|
1167
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
953
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningapp_instance_service_list_lightningapp_instance_artifacts`") # noqa: E501
|
|
1168
954
|
|
|
1169
955
|
collection_formats = {}
|
|
1170
956
|
|
|
@@ -1175,8 +961,12 @@ class LightningappInstanceServiceApi(object):
|
|
|
1175
961
|
path_params['id'] = params['id'] # noqa: E501
|
|
1176
962
|
|
|
1177
963
|
query_params = []
|
|
1178
|
-
if '
|
|
1179
|
-
query_params.append(('
|
|
964
|
+
if 'filename' in params:
|
|
965
|
+
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
966
|
+
if 'page_token' in params:
|
|
967
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
968
|
+
if 'page_size' in params:
|
|
969
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1180
970
|
|
|
1181
971
|
header_params = {}
|
|
1182
972
|
|
|
@@ -1192,14 +982,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
1192
982
|
auth_settings = [] # noqa: E501
|
|
1193
983
|
|
|
1194
984
|
return self.api_client.call_api(
|
|
1195
|
-
'/v1/projects/{projectId}/appinstances/{id}/
|
|
985
|
+
'/v1/projects/{projectId}/appinstances/{id}/artifacts', 'GET',
|
|
1196
986
|
path_params,
|
|
1197
987
|
query_params,
|
|
1198
988
|
header_params,
|
|
1199
989
|
body=body_params,
|
|
1200
990
|
post_params=form_params,
|
|
1201
991
|
files=local_var_files,
|
|
1202
|
-
response_type='
|
|
992
|
+
response_type='V1ListLightningappInstanceArtifactsResponse', # noqa: E501
|
|
1203
993
|
auth_settings=auth_settings,
|
|
1204
994
|
async_req=params.get('async_req'),
|
|
1205
995
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1207,61 +997,47 @@ class LightningappInstanceServiceApi(object):
|
|
|
1207
997
|
_request_timeout=params.get('_request_timeout'),
|
|
1208
998
|
collection_formats=collection_formats)
|
|
1209
999
|
|
|
1210
|
-
def
|
|
1211
|
-
"""
|
|
1000
|
+
def lightningapp_instance_service_list_lightningapp_instance_events(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListLightningappInstanceEventsResponse': # noqa: E501
|
|
1001
|
+
"""lightningapp_instance_service_list_lightningapp_instance_events # noqa: E501
|
|
1212
1002
|
|
|
1213
1003
|
This method makes a synchronous HTTP request by default. To make an
|
|
1214
1004
|
asynchronous HTTP request, please pass async_req=True
|
|
1215
|
-
>>> thread = api.
|
|
1005
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instance_events(project_id, id, async_req=True)
|
|
1216
1006
|
>>> result = thread.get()
|
|
1217
1007
|
|
|
1218
1008
|
:param async_req bool
|
|
1219
1009
|
:param str project_id: (required)
|
|
1220
|
-
:param str
|
|
1221
|
-
:param
|
|
1222
|
-
:
|
|
1223
|
-
:param str cluster_id:
|
|
1224
|
-
:param list[str] phase_in:
|
|
1225
|
-
:param list[str] phase_not_in:
|
|
1226
|
-
:param str cloud_space_id:
|
|
1227
|
-
:param str release_id:
|
|
1228
|
-
:param str source_app:
|
|
1229
|
-
:return: V1ListLightningappInstancesResponse
|
|
1010
|
+
:param str id: (required)
|
|
1011
|
+
:param bool include_costs:
|
|
1012
|
+
:return: V1ListLightningappInstanceEventsResponse
|
|
1230
1013
|
If the method is called asynchronously,
|
|
1231
1014
|
returns the request thread.
|
|
1232
1015
|
"""
|
|
1233
1016
|
kwargs['_return_http_data_only'] = True
|
|
1234
1017
|
if kwargs.get('async_req'):
|
|
1235
|
-
return self.
|
|
1018
|
+
return self.lightningapp_instance_service_list_lightningapp_instance_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1236
1019
|
else:
|
|
1237
|
-
(data) = self.
|
|
1020
|
+
(data) = self.lightningapp_instance_service_list_lightningapp_instance_events_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1238
1021
|
return data
|
|
1239
1022
|
|
|
1240
|
-
def
|
|
1241
|
-
"""
|
|
1023
|
+
def lightningapp_instance_service_list_lightningapp_instance_events_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListLightningappInstanceEventsResponse': # noqa: E501
|
|
1024
|
+
"""lightningapp_instance_service_list_lightningapp_instance_events # noqa: E501
|
|
1242
1025
|
|
|
1243
1026
|
This method makes a synchronous HTTP request by default. To make an
|
|
1244
1027
|
asynchronous HTTP request, please pass async_req=True
|
|
1245
|
-
>>> thread = api.
|
|
1028
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instance_events_with_http_info(project_id, id, async_req=True)
|
|
1246
1029
|
>>> result = thread.get()
|
|
1247
1030
|
|
|
1248
1031
|
:param async_req bool
|
|
1249
1032
|
:param str project_id: (required)
|
|
1250
|
-
:param str
|
|
1251
|
-
:param
|
|
1252
|
-
:
|
|
1253
|
-
:param str cluster_id:
|
|
1254
|
-
:param list[str] phase_in:
|
|
1255
|
-
:param list[str] phase_not_in:
|
|
1256
|
-
:param str cloud_space_id:
|
|
1257
|
-
:param str release_id:
|
|
1258
|
-
:param str source_app:
|
|
1259
|
-
:return: V1ListLightningappInstancesResponse
|
|
1033
|
+
:param str id: (required)
|
|
1034
|
+
:param bool include_costs:
|
|
1035
|
+
:return: V1ListLightningappInstanceEventsResponse
|
|
1260
1036
|
If the method is called asynchronously,
|
|
1261
1037
|
returns the request thread.
|
|
1262
1038
|
"""
|
|
1263
1039
|
|
|
1264
|
-
all_params = ['project_id', '
|
|
1040
|
+
all_params = ['project_id', 'id', 'include_costs'] # noqa: E501
|
|
1265
1041
|
all_params.append('async_req')
|
|
1266
1042
|
all_params.append('_return_http_data_only')
|
|
1267
1043
|
all_params.append('_preload_content')
|
|
@@ -1272,43 +1048,30 @@ class LightningappInstanceServiceApi(object):
|
|
|
1272
1048
|
if key not in all_params:
|
|
1273
1049
|
raise TypeError(
|
|
1274
1050
|
"Got an unexpected keyword argument '%s'"
|
|
1275
|
-
" to method
|
|
1051
|
+
" to method lightningapp_instance_service_list_lightningapp_instance_events" % key
|
|
1276
1052
|
)
|
|
1277
1053
|
params[key] = val
|
|
1278
1054
|
del params['kwargs']
|
|
1279
1055
|
# verify the required parameter 'project_id' is set
|
|
1280
1056
|
if ('project_id' not in params or
|
|
1281
1057
|
params['project_id'] is None):
|
|
1282
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1058
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_list_lightningapp_instance_events`") # noqa: E501
|
|
1059
|
+
# verify the required parameter 'id' is set
|
|
1060
|
+
if ('id' not in params or
|
|
1061
|
+
params['id'] is None):
|
|
1062
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningapp_instance_service_list_lightningapp_instance_events`") # noqa: E501
|
|
1283
1063
|
|
|
1284
1064
|
collection_formats = {}
|
|
1285
1065
|
|
|
1286
1066
|
path_params = {}
|
|
1287
1067
|
if 'project_id' in params:
|
|
1288
1068
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1069
|
+
if 'id' in params:
|
|
1070
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1289
1071
|
|
|
1290
1072
|
query_params = []
|
|
1291
|
-
if '
|
|
1292
|
-
query_params.append(('
|
|
1293
|
-
if 'limit' in params:
|
|
1294
|
-
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1295
|
-
if 'user_ids' in params:
|
|
1296
|
-
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
1297
|
-
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
1298
|
-
if 'cluster_id' in params:
|
|
1299
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1300
|
-
if 'phase_in' in params:
|
|
1301
|
-
query_params.append(('phaseIn', params['phase_in'])) # noqa: E501
|
|
1302
|
-
collection_formats['phaseIn'] = 'multi' # noqa: E501
|
|
1303
|
-
if 'phase_not_in' in params:
|
|
1304
|
-
query_params.append(('phaseNotIn', params['phase_not_in'])) # noqa: E501
|
|
1305
|
-
collection_formats['phaseNotIn'] = 'multi' # noqa: E501
|
|
1306
|
-
if 'cloud_space_id' in params:
|
|
1307
|
-
query_params.append(('cloudSpaceId', params['cloud_space_id'])) # noqa: E501
|
|
1308
|
-
if 'release_id' in params:
|
|
1309
|
-
query_params.append(('releaseId', params['release_id'])) # noqa: E501
|
|
1310
|
-
if 'source_app' in params:
|
|
1311
|
-
query_params.append(('sourceApp', params['source_app'])) # noqa: E501
|
|
1073
|
+
if 'include_costs' in params:
|
|
1074
|
+
query_params.append(('includeCosts', params['include_costs'])) # noqa: E501
|
|
1312
1075
|
|
|
1313
1076
|
header_params = {}
|
|
1314
1077
|
|
|
@@ -1324,14 +1087,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
1324
1087
|
auth_settings = [] # noqa: E501
|
|
1325
1088
|
|
|
1326
1089
|
return self.api_client.call_api(
|
|
1327
|
-
'/v1/projects/{projectId}/appinstances', 'GET',
|
|
1090
|
+
'/v1/projects/{projectId}/appinstances/{id}/events', 'GET',
|
|
1328
1091
|
path_params,
|
|
1329
1092
|
query_params,
|
|
1330
1093
|
header_params,
|
|
1331
1094
|
body=body_params,
|
|
1332
1095
|
post_params=form_params,
|
|
1333
1096
|
files=local_var_files,
|
|
1334
|
-
response_type='
|
|
1097
|
+
response_type='V1ListLightningappInstanceEventsResponse', # noqa: E501
|
|
1335
1098
|
auth_settings=auth_settings,
|
|
1336
1099
|
async_req=params.get('async_req'),
|
|
1337
1100
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1339,53 +1102,61 @@ class LightningappInstanceServiceApi(object):
|
|
|
1339
1102
|
_request_timeout=params.get('_request_timeout'),
|
|
1340
1103
|
collection_formats=collection_formats)
|
|
1341
1104
|
|
|
1342
|
-
def
|
|
1343
|
-
"""
|
|
1105
|
+
def lightningapp_instance_service_list_lightningapp_instances(self, project_id: 'str', **kwargs) -> 'V1ListLightningappInstancesResponse': # noqa: E501
|
|
1106
|
+
"""lightningapp_instance_service_list_lightningapp_instances # noqa: E501
|
|
1344
1107
|
|
|
1345
1108
|
This method makes a synchronous HTTP request by default. To make an
|
|
1346
1109
|
asynchronous HTTP request, please pass async_req=True
|
|
1347
|
-
>>> thread = api.
|
|
1110
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instances(project_id, async_req=True)
|
|
1348
1111
|
>>> result = thread.get()
|
|
1349
1112
|
|
|
1350
1113
|
:param async_req bool
|
|
1351
1114
|
:param str project_id: (required)
|
|
1115
|
+
:param str page_token: Pagination.
|
|
1116
|
+
:param str limit:
|
|
1117
|
+
:param list[str] user_ids: Filters.
|
|
1352
1118
|
:param str cluster_id:
|
|
1353
|
-
:param str
|
|
1354
|
-
:param str
|
|
1355
|
-
:param str
|
|
1356
|
-
:param
|
|
1357
|
-
:
|
|
1119
|
+
:param list[str] phase_in:
|
|
1120
|
+
:param list[str] phase_not_in:
|
|
1121
|
+
:param str cloud_space_id:
|
|
1122
|
+
:param str release_id:
|
|
1123
|
+
:param str source_app:
|
|
1124
|
+
:return: V1ListLightningappInstancesResponse
|
|
1358
1125
|
If the method is called asynchronously,
|
|
1359
1126
|
returns the request thread.
|
|
1360
1127
|
"""
|
|
1361
1128
|
kwargs['_return_http_data_only'] = True
|
|
1362
1129
|
if kwargs.get('async_req'):
|
|
1363
|
-
return self.
|
|
1130
|
+
return self.lightningapp_instance_service_list_lightningapp_instances_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1364
1131
|
else:
|
|
1365
|
-
(data) = self.
|
|
1132
|
+
(data) = self.lightningapp_instance_service_list_lightningapp_instances_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1366
1133
|
return data
|
|
1367
1134
|
|
|
1368
|
-
def
|
|
1369
|
-
"""
|
|
1135
|
+
def lightningapp_instance_service_list_lightningapp_instances_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListLightningappInstancesResponse': # noqa: E501
|
|
1136
|
+
"""lightningapp_instance_service_list_lightningapp_instances # noqa: E501
|
|
1370
1137
|
|
|
1371
1138
|
This method makes a synchronous HTTP request by default. To make an
|
|
1372
1139
|
asynchronous HTTP request, please pass async_req=True
|
|
1373
|
-
>>> thread = api.
|
|
1140
|
+
>>> thread = api.lightningapp_instance_service_list_lightningapp_instances_with_http_info(project_id, async_req=True)
|
|
1374
1141
|
>>> result = thread.get()
|
|
1375
1142
|
|
|
1376
1143
|
:param async_req bool
|
|
1377
1144
|
:param str project_id: (required)
|
|
1145
|
+
:param str page_token: Pagination.
|
|
1146
|
+
:param str limit:
|
|
1147
|
+
:param list[str] user_ids: Filters.
|
|
1378
1148
|
:param str cluster_id:
|
|
1379
|
-
:param str
|
|
1380
|
-
:param str
|
|
1381
|
-
:param str
|
|
1382
|
-
:param
|
|
1383
|
-
:
|
|
1149
|
+
:param list[str] phase_in:
|
|
1150
|
+
:param list[str] phase_not_in:
|
|
1151
|
+
:param str cloud_space_id:
|
|
1152
|
+
:param str release_id:
|
|
1153
|
+
:param str source_app:
|
|
1154
|
+
:return: V1ListLightningappInstancesResponse
|
|
1384
1155
|
If the method is called asynchronously,
|
|
1385
1156
|
returns the request thread.
|
|
1386
1157
|
"""
|
|
1387
1158
|
|
|
1388
|
-
all_params = ['project_id', 'cluster_id', '
|
|
1159
|
+
all_params = ['project_id', 'page_token', 'limit', 'user_ids', 'cluster_id', 'phase_in', 'phase_not_in', 'cloud_space_id', 'release_id', 'source_app'] # noqa: E501
|
|
1389
1160
|
all_params.append('async_req')
|
|
1390
1161
|
all_params.append('_return_http_data_only')
|
|
1391
1162
|
all_params.append('_preload_content')
|
|
@@ -1396,14 +1167,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
1396
1167
|
if key not in all_params:
|
|
1397
1168
|
raise TypeError(
|
|
1398
1169
|
"Got an unexpected keyword argument '%s'"
|
|
1399
|
-
" to method
|
|
1170
|
+
" to method lightningapp_instance_service_list_lightningapp_instances" % key
|
|
1400
1171
|
)
|
|
1401
1172
|
params[key] = val
|
|
1402
1173
|
del params['kwargs']
|
|
1403
1174
|
# verify the required parameter 'project_id' is set
|
|
1404
1175
|
if ('project_id' not in params or
|
|
1405
1176
|
params['project_id'] is None):
|
|
1406
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1177
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_list_lightningapp_instances`") # noqa: E501
|
|
1407
1178
|
|
|
1408
1179
|
collection_formats = {}
|
|
1409
1180
|
|
|
@@ -1412,16 +1183,27 @@ class LightningappInstanceServiceApi(object):
|
|
|
1412
1183
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1413
1184
|
|
|
1414
1185
|
query_params = []
|
|
1415
|
-
if 'cluster_id' in params:
|
|
1416
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1417
1186
|
if 'page_token' in params:
|
|
1418
1187
|
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1419
|
-
if '
|
|
1420
|
-
query_params.append(('
|
|
1421
|
-
if '
|
|
1422
|
-
query_params.append(('
|
|
1423
|
-
|
|
1424
|
-
|
|
1188
|
+
if 'limit' in params:
|
|
1189
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1190
|
+
if 'user_ids' in params:
|
|
1191
|
+
query_params.append(('userIds', params['user_ids'])) # noqa: E501
|
|
1192
|
+
collection_formats['userIds'] = 'multi' # noqa: E501
|
|
1193
|
+
if 'cluster_id' in params:
|
|
1194
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1195
|
+
if 'phase_in' in params:
|
|
1196
|
+
query_params.append(('phaseIn', params['phase_in'])) # noqa: E501
|
|
1197
|
+
collection_formats['phaseIn'] = 'multi' # noqa: E501
|
|
1198
|
+
if 'phase_not_in' in params:
|
|
1199
|
+
query_params.append(('phaseNotIn', params['phase_not_in'])) # noqa: E501
|
|
1200
|
+
collection_formats['phaseNotIn'] = 'multi' # noqa: E501
|
|
1201
|
+
if 'cloud_space_id' in params:
|
|
1202
|
+
query_params.append(('cloudSpaceId', params['cloud_space_id'])) # noqa: E501
|
|
1203
|
+
if 'release_id' in params:
|
|
1204
|
+
query_params.append(('releaseId', params['release_id'])) # noqa: E501
|
|
1205
|
+
if 'source_app' in params:
|
|
1206
|
+
query_params.append(('sourceApp', params['source_app'])) # noqa: E501
|
|
1425
1207
|
|
|
1426
1208
|
header_params = {}
|
|
1427
1209
|
|
|
@@ -1437,14 +1219,14 @@ class LightningappInstanceServiceApi(object):
|
|
|
1437
1219
|
auth_settings = [] # noqa: E501
|
|
1438
1220
|
|
|
1439
1221
|
return self.api_client.call_api(
|
|
1440
|
-
'/v1/projects/{projectId}/
|
|
1222
|
+
'/v1/projects/{projectId}/appinstances', 'GET',
|
|
1441
1223
|
path_params,
|
|
1442
1224
|
query_params,
|
|
1443
1225
|
header_params,
|
|
1444
1226
|
body=body_params,
|
|
1445
1227
|
post_params=form_params,
|
|
1446
1228
|
files=local_var_files,
|
|
1447
|
-
response_type='
|
|
1229
|
+
response_type='V1ListLightningappInstancesResponse', # noqa: E501
|
|
1448
1230
|
auth_settings=auth_settings,
|
|
1449
1231
|
async_req=params.get('async_req'),
|
|
1450
1232
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1891,221 +1673,3 @@ class LightningappInstanceServiceApi(object):
|
|
|
1891
1673
|
_preload_content=params.get('_preload_content', True),
|
|
1892
1674
|
_request_timeout=params.get('_request_timeout'),
|
|
1893
1675
|
collection_formats=collection_formats)
|
|
1894
|
-
|
|
1895
|
-
def lightningapp_instance_service_upload_project_artifact(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
1896
|
-
"""lightningapp_instance_service_upload_project_artifact # noqa: E501
|
|
1897
|
-
|
|
1898
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1899
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1900
|
-
>>> thread = api.lightningapp_instance_service_upload_project_artifact(body, project_id, async_req=True)
|
|
1901
|
-
>>> result = thread.get()
|
|
1902
|
-
|
|
1903
|
-
:param async_req bool
|
|
1904
|
-
:param ProjectIdStorageBody body: (required)
|
|
1905
|
-
:param str project_id: (required)
|
|
1906
|
-
:return: V1UploadProjectArtifactResponse
|
|
1907
|
-
If the method is called asynchronously,
|
|
1908
|
-
returns the request thread.
|
|
1909
|
-
"""
|
|
1910
|
-
kwargs['_return_http_data_only'] = True
|
|
1911
|
-
if kwargs.get('async_req'):
|
|
1912
|
-
return self.lightningapp_instance_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1913
|
-
else:
|
|
1914
|
-
(data) = self.lightningapp_instance_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1915
|
-
return data
|
|
1916
|
-
|
|
1917
|
-
def lightningapp_instance_service_upload_project_artifact_with_http_info(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
1918
|
-
"""lightningapp_instance_service_upload_project_artifact # noqa: E501
|
|
1919
|
-
|
|
1920
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1921
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1922
|
-
>>> thread = api.lightningapp_instance_service_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
1923
|
-
>>> result = thread.get()
|
|
1924
|
-
|
|
1925
|
-
:param async_req bool
|
|
1926
|
-
:param ProjectIdStorageBody body: (required)
|
|
1927
|
-
:param str project_id: (required)
|
|
1928
|
-
:return: V1UploadProjectArtifactResponse
|
|
1929
|
-
If the method is called asynchronously,
|
|
1930
|
-
returns the request thread.
|
|
1931
|
-
"""
|
|
1932
|
-
|
|
1933
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
1934
|
-
all_params.append('async_req')
|
|
1935
|
-
all_params.append('_return_http_data_only')
|
|
1936
|
-
all_params.append('_preload_content')
|
|
1937
|
-
all_params.append('_request_timeout')
|
|
1938
|
-
|
|
1939
|
-
params = locals()
|
|
1940
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1941
|
-
if key not in all_params:
|
|
1942
|
-
raise TypeError(
|
|
1943
|
-
"Got an unexpected keyword argument '%s'"
|
|
1944
|
-
" to method lightningapp_instance_service_upload_project_artifact" % key
|
|
1945
|
-
)
|
|
1946
|
-
params[key] = val
|
|
1947
|
-
del params['kwargs']
|
|
1948
|
-
# verify the required parameter 'body' is set
|
|
1949
|
-
if ('body' not in params or
|
|
1950
|
-
params['body'] is None):
|
|
1951
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_instance_service_upload_project_artifact`") # noqa: E501
|
|
1952
|
-
# verify the required parameter 'project_id' is set
|
|
1953
|
-
if ('project_id' not in params or
|
|
1954
|
-
params['project_id'] is None):
|
|
1955
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_upload_project_artifact`") # noqa: E501
|
|
1956
|
-
|
|
1957
|
-
collection_formats = {}
|
|
1958
|
-
|
|
1959
|
-
path_params = {}
|
|
1960
|
-
if 'project_id' in params:
|
|
1961
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1962
|
-
|
|
1963
|
-
query_params = []
|
|
1964
|
-
|
|
1965
|
-
header_params = {}
|
|
1966
|
-
|
|
1967
|
-
form_params = []
|
|
1968
|
-
local_var_files = {}
|
|
1969
|
-
|
|
1970
|
-
body_params = None
|
|
1971
|
-
if 'body' in params:
|
|
1972
|
-
body_params = params['body']
|
|
1973
|
-
# HTTP header `Accept`
|
|
1974
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1975
|
-
['application/json']) # noqa: E501
|
|
1976
|
-
|
|
1977
|
-
# HTTP header `Content-Type`
|
|
1978
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1979
|
-
['application/json']) # noqa: E501
|
|
1980
|
-
|
|
1981
|
-
# Authentication setting
|
|
1982
|
-
auth_settings = [] # noqa: E501
|
|
1983
|
-
|
|
1984
|
-
return self.api_client.call_api(
|
|
1985
|
-
'/v1/projects/{projectId}/storage', 'POST',
|
|
1986
|
-
path_params,
|
|
1987
|
-
query_params,
|
|
1988
|
-
header_params,
|
|
1989
|
-
body=body_params,
|
|
1990
|
-
post_params=form_params,
|
|
1991
|
-
files=local_var_files,
|
|
1992
|
-
response_type='V1UploadProjectArtifactResponse', # noqa: E501
|
|
1993
|
-
auth_settings=auth_settings,
|
|
1994
|
-
async_req=params.get('async_req'),
|
|
1995
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1996
|
-
_preload_content=params.get('_preload_content', True),
|
|
1997
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1998
|
-
collection_formats=collection_formats)
|
|
1999
|
-
|
|
2000
|
-
def lightningapp_instance_service_upload_project_artifact_parts(self, body: 'UploadsUploadIdBody', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
2001
|
-
"""lightningapp_instance_service_upload_project_artifact_parts # noqa: E501
|
|
2002
|
-
|
|
2003
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2004
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2005
|
-
>>> thread = api.lightningapp_instance_service_upload_project_artifact_parts(body, project_id, upload_id, async_req=True)
|
|
2006
|
-
>>> result = thread.get()
|
|
2007
|
-
|
|
2008
|
-
:param async_req bool
|
|
2009
|
-
:param UploadsUploadIdBody body: (required)
|
|
2010
|
-
:param str project_id: (required)
|
|
2011
|
-
:param str upload_id: (required)
|
|
2012
|
-
:return: V1UploadProjectArtifactPartsResponse
|
|
2013
|
-
If the method is called asynchronously,
|
|
2014
|
-
returns the request thread.
|
|
2015
|
-
"""
|
|
2016
|
-
kwargs['_return_http_data_only'] = True
|
|
2017
|
-
if kwargs.get('async_req'):
|
|
2018
|
-
return self.lightningapp_instance_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
2019
|
-
else:
|
|
2020
|
-
(data) = self.lightningapp_instance_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
2021
|
-
return data
|
|
2022
|
-
|
|
2023
|
-
def lightningapp_instance_service_upload_project_artifact_parts_with_http_info(self, body: 'UploadsUploadIdBody', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
2024
|
-
"""lightningapp_instance_service_upload_project_artifact_parts # noqa: E501
|
|
2025
|
-
|
|
2026
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
2027
|
-
asynchronous HTTP request, please pass async_req=True
|
|
2028
|
-
>>> thread = api.lightningapp_instance_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, async_req=True)
|
|
2029
|
-
>>> result = thread.get()
|
|
2030
|
-
|
|
2031
|
-
:param async_req bool
|
|
2032
|
-
:param UploadsUploadIdBody body: (required)
|
|
2033
|
-
:param str project_id: (required)
|
|
2034
|
-
:param str upload_id: (required)
|
|
2035
|
-
:return: V1UploadProjectArtifactPartsResponse
|
|
2036
|
-
If the method is called asynchronously,
|
|
2037
|
-
returns the request thread.
|
|
2038
|
-
"""
|
|
2039
|
-
|
|
2040
|
-
all_params = ['body', 'project_id', 'upload_id'] # noqa: E501
|
|
2041
|
-
all_params.append('async_req')
|
|
2042
|
-
all_params.append('_return_http_data_only')
|
|
2043
|
-
all_params.append('_preload_content')
|
|
2044
|
-
all_params.append('_request_timeout')
|
|
2045
|
-
|
|
2046
|
-
params = locals()
|
|
2047
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
2048
|
-
if key not in all_params:
|
|
2049
|
-
raise TypeError(
|
|
2050
|
-
"Got an unexpected keyword argument '%s'"
|
|
2051
|
-
" to method lightningapp_instance_service_upload_project_artifact_parts" % key
|
|
2052
|
-
)
|
|
2053
|
-
params[key] = val
|
|
2054
|
-
del params['kwargs']
|
|
2055
|
-
# verify the required parameter 'body' is set
|
|
2056
|
-
if ('body' not in params or
|
|
2057
|
-
params['body'] is None):
|
|
2058
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_instance_service_upload_project_artifact_parts`") # noqa: E501
|
|
2059
|
-
# verify the required parameter 'project_id' is set
|
|
2060
|
-
if ('project_id' not in params or
|
|
2061
|
-
params['project_id'] is None):
|
|
2062
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_instance_service_upload_project_artifact_parts`") # noqa: E501
|
|
2063
|
-
# verify the required parameter 'upload_id' is set
|
|
2064
|
-
if ('upload_id' not in params or
|
|
2065
|
-
params['upload_id'] is None):
|
|
2066
|
-
raise ValueError("Missing the required parameter `upload_id` when calling `lightningapp_instance_service_upload_project_artifact_parts`") # noqa: E501
|
|
2067
|
-
|
|
2068
|
-
collection_formats = {}
|
|
2069
|
-
|
|
2070
|
-
path_params = {}
|
|
2071
|
-
if 'project_id' in params:
|
|
2072
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2073
|
-
if 'upload_id' in params:
|
|
2074
|
-
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
2075
|
-
|
|
2076
|
-
query_params = []
|
|
2077
|
-
|
|
2078
|
-
header_params = {}
|
|
2079
|
-
|
|
2080
|
-
form_params = []
|
|
2081
|
-
local_var_files = {}
|
|
2082
|
-
|
|
2083
|
-
body_params = None
|
|
2084
|
-
if 'body' in params:
|
|
2085
|
-
body_params = params['body']
|
|
2086
|
-
# HTTP header `Accept`
|
|
2087
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2088
|
-
['application/json']) # noqa: E501
|
|
2089
|
-
|
|
2090
|
-
# HTTP header `Content-Type`
|
|
2091
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2092
|
-
['application/json']) # noqa: E501
|
|
2093
|
-
|
|
2094
|
-
# Authentication setting
|
|
2095
|
-
auth_settings = [] # noqa: E501
|
|
2096
|
-
|
|
2097
|
-
return self.api_client.call_api(
|
|
2098
|
-
'/v1/projects/{projectId}/storage/uploads/{uploadId}', 'POST',
|
|
2099
|
-
path_params,
|
|
2100
|
-
query_params,
|
|
2101
|
-
header_params,
|
|
2102
|
-
body=body_params,
|
|
2103
|
-
post_params=form_params,
|
|
2104
|
-
files=local_var_files,
|
|
2105
|
-
response_type='V1UploadProjectArtifactPartsResponse', # noqa: E501
|
|
2106
|
-
auth_settings=auth_settings,
|
|
2107
|
-
async_req=params.get('async_req'),
|
|
2108
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2109
|
-
_preload_content=params.get('_preload_content', True),
|
|
2110
|
-
_request_timeout=params.get('_request_timeout'),
|
|
2111
|
-
collection_formats=collection_formats)
|