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
|
@@ -148,874 +148,6 @@ class LightningappV2ServiceApi(object):
|
|
|
148
148
|
_request_timeout=params.get('_request_timeout'),
|
|
149
149
|
collection_formats=collection_formats)
|
|
150
150
|
|
|
151
|
-
def lightningapp_v2_service_create_lightningapp_release(self, body: 'AppIdReleasesBody', project_id: 'str', app_id: 'str', **kwargs) -> 'V1LightningappRelease': # noqa: E501
|
|
152
|
-
"""lightningapp_v2_service_create_lightningapp_release # noqa: E501
|
|
153
|
-
|
|
154
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
155
|
-
asynchronous HTTP request, please pass async_req=True
|
|
156
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_release(body, project_id, app_id, async_req=True)
|
|
157
|
-
>>> result = thread.get()
|
|
158
|
-
|
|
159
|
-
:param async_req bool
|
|
160
|
-
:param AppIdReleasesBody body: (required)
|
|
161
|
-
:param str project_id: (required)
|
|
162
|
-
:param str app_id: (required)
|
|
163
|
-
:return: V1LightningappRelease
|
|
164
|
-
If the method is called asynchronously,
|
|
165
|
-
returns the request thread.
|
|
166
|
-
"""
|
|
167
|
-
kwargs['_return_http_data_only'] = True
|
|
168
|
-
if kwargs.get('async_req'):
|
|
169
|
-
return self.lightningapp_v2_service_create_lightningapp_release_with_http_info(body, project_id, app_id, **kwargs) # noqa: E501
|
|
170
|
-
else:
|
|
171
|
-
(data) = self.lightningapp_v2_service_create_lightningapp_release_with_http_info(body, project_id, app_id, **kwargs) # noqa: E501
|
|
172
|
-
return data
|
|
173
|
-
|
|
174
|
-
def lightningapp_v2_service_create_lightningapp_release_with_http_info(self, body: 'AppIdReleasesBody', project_id: 'str', app_id: 'str', **kwargs) -> 'V1LightningappRelease': # noqa: E501
|
|
175
|
-
"""lightningapp_v2_service_create_lightningapp_release # noqa: E501
|
|
176
|
-
|
|
177
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
178
|
-
asynchronous HTTP request, please pass async_req=True
|
|
179
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_release_with_http_info(body, project_id, app_id, async_req=True)
|
|
180
|
-
>>> result = thread.get()
|
|
181
|
-
|
|
182
|
-
:param async_req bool
|
|
183
|
-
:param AppIdReleasesBody body: (required)
|
|
184
|
-
:param str project_id: (required)
|
|
185
|
-
:param str app_id: (required)
|
|
186
|
-
:return: V1LightningappRelease
|
|
187
|
-
If the method is called asynchronously,
|
|
188
|
-
returns the request thread.
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
all_params = ['body', 'project_id', 'app_id'] # noqa: E501
|
|
192
|
-
all_params.append('async_req')
|
|
193
|
-
all_params.append('_return_http_data_only')
|
|
194
|
-
all_params.append('_preload_content')
|
|
195
|
-
all_params.append('_request_timeout')
|
|
196
|
-
|
|
197
|
-
params = locals()
|
|
198
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
199
|
-
if key not in all_params:
|
|
200
|
-
raise TypeError(
|
|
201
|
-
"Got an unexpected keyword argument '%s'"
|
|
202
|
-
" to method lightningapp_v2_service_create_lightningapp_release" % key
|
|
203
|
-
)
|
|
204
|
-
params[key] = val
|
|
205
|
-
del params['kwargs']
|
|
206
|
-
# verify the required parameter 'body' is set
|
|
207
|
-
if ('body' not in params or
|
|
208
|
-
params['body'] is None):
|
|
209
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_v2_service_create_lightningapp_release`") # noqa: E501
|
|
210
|
-
# verify the required parameter 'project_id' is set
|
|
211
|
-
if ('project_id' not in params or
|
|
212
|
-
params['project_id'] is None):
|
|
213
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_create_lightningapp_release`") # noqa: E501
|
|
214
|
-
# verify the required parameter 'app_id' is set
|
|
215
|
-
if ('app_id' not in params or
|
|
216
|
-
params['app_id'] is None):
|
|
217
|
-
raise ValueError("Missing the required parameter `app_id` when calling `lightningapp_v2_service_create_lightningapp_release`") # noqa: E501
|
|
218
|
-
|
|
219
|
-
collection_formats = {}
|
|
220
|
-
|
|
221
|
-
path_params = {}
|
|
222
|
-
if 'project_id' in params:
|
|
223
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
224
|
-
if 'app_id' in params:
|
|
225
|
-
path_params['appId'] = params['app_id'] # noqa: E501
|
|
226
|
-
|
|
227
|
-
query_params = []
|
|
228
|
-
|
|
229
|
-
header_params = {}
|
|
230
|
-
|
|
231
|
-
form_params = []
|
|
232
|
-
local_var_files = {}
|
|
233
|
-
|
|
234
|
-
body_params = None
|
|
235
|
-
if 'body' in params:
|
|
236
|
-
body_params = params['body']
|
|
237
|
-
# HTTP header `Accept`
|
|
238
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
239
|
-
['application/json']) # noqa: E501
|
|
240
|
-
|
|
241
|
-
# HTTP header `Content-Type`
|
|
242
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
243
|
-
['application/json']) # noqa: E501
|
|
244
|
-
|
|
245
|
-
# Authentication setting
|
|
246
|
-
auth_settings = [] # noqa: E501
|
|
247
|
-
|
|
248
|
-
return self.api_client.call_api(
|
|
249
|
-
'/v1/projects/{projectId}/appsv2/{appId}/releases', 'POST',
|
|
250
|
-
path_params,
|
|
251
|
-
query_params,
|
|
252
|
-
header_params,
|
|
253
|
-
body=body_params,
|
|
254
|
-
post_params=form_params,
|
|
255
|
-
files=local_var_files,
|
|
256
|
-
response_type='V1LightningappRelease', # noqa: E501
|
|
257
|
-
auth_settings=auth_settings,
|
|
258
|
-
async_req=params.get('async_req'),
|
|
259
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
260
|
-
_preload_content=params.get('_preload_content', True),
|
|
261
|
-
_request_timeout=params.get('_request_timeout'),
|
|
262
|
-
collection_formats=collection_formats)
|
|
263
|
-
|
|
264
|
-
def lightningapp_v2_service_create_lightningapp_release_instance(self, body: 'IdGetBody', project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1LightningappInstance': # noqa: E501
|
|
265
|
-
"""lightningapp_v2_service_create_lightningapp_release_instance # noqa: E501
|
|
266
|
-
|
|
267
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
268
|
-
asynchronous HTTP request, please pass async_req=True
|
|
269
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_release_instance(body, project_id, app_id, id, async_req=True)
|
|
270
|
-
>>> result = thread.get()
|
|
271
|
-
|
|
272
|
-
:param async_req bool
|
|
273
|
-
:param IdGetBody body: (required)
|
|
274
|
-
:param str project_id: (required)
|
|
275
|
-
:param str app_id: (required)
|
|
276
|
-
:param str id: (required)
|
|
277
|
-
:return: Externalv1LightningappInstance
|
|
278
|
-
If the method is called asynchronously,
|
|
279
|
-
returns the request thread.
|
|
280
|
-
"""
|
|
281
|
-
kwargs['_return_http_data_only'] = True
|
|
282
|
-
if kwargs.get('async_req'):
|
|
283
|
-
return self.lightningapp_v2_service_create_lightningapp_release_instance_with_http_info(body, project_id, app_id, id, **kwargs) # noqa: E501
|
|
284
|
-
else:
|
|
285
|
-
(data) = self.lightningapp_v2_service_create_lightningapp_release_instance_with_http_info(body, project_id, app_id, id, **kwargs) # noqa: E501
|
|
286
|
-
return data
|
|
287
|
-
|
|
288
|
-
def lightningapp_v2_service_create_lightningapp_release_instance_with_http_info(self, body: 'IdGetBody', project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1LightningappInstance': # noqa: E501
|
|
289
|
-
"""lightningapp_v2_service_create_lightningapp_release_instance # noqa: E501
|
|
290
|
-
|
|
291
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
292
|
-
asynchronous HTTP request, please pass async_req=True
|
|
293
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_release_instance_with_http_info(body, project_id, app_id, id, async_req=True)
|
|
294
|
-
>>> result = thread.get()
|
|
295
|
-
|
|
296
|
-
:param async_req bool
|
|
297
|
-
:param IdGetBody body: (required)
|
|
298
|
-
:param str project_id: (required)
|
|
299
|
-
:param str app_id: (required)
|
|
300
|
-
:param str id: (required)
|
|
301
|
-
:return: Externalv1LightningappInstance
|
|
302
|
-
If the method is called asynchronously,
|
|
303
|
-
returns the request thread.
|
|
304
|
-
"""
|
|
305
|
-
|
|
306
|
-
all_params = ['body', 'project_id', 'app_id', 'id'] # noqa: E501
|
|
307
|
-
all_params.append('async_req')
|
|
308
|
-
all_params.append('_return_http_data_only')
|
|
309
|
-
all_params.append('_preload_content')
|
|
310
|
-
all_params.append('_request_timeout')
|
|
311
|
-
|
|
312
|
-
params = locals()
|
|
313
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
314
|
-
if key not in all_params:
|
|
315
|
-
raise TypeError(
|
|
316
|
-
"Got an unexpected keyword argument '%s'"
|
|
317
|
-
" to method lightningapp_v2_service_create_lightningapp_release_instance" % key
|
|
318
|
-
)
|
|
319
|
-
params[key] = val
|
|
320
|
-
del params['kwargs']
|
|
321
|
-
# verify the required parameter 'body' is set
|
|
322
|
-
if ('body' not in params or
|
|
323
|
-
params['body'] is None):
|
|
324
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_v2_service_create_lightningapp_release_instance`") # noqa: E501
|
|
325
|
-
# verify the required parameter 'project_id' is set
|
|
326
|
-
if ('project_id' not in params or
|
|
327
|
-
params['project_id'] is None):
|
|
328
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_create_lightningapp_release_instance`") # noqa: E501
|
|
329
|
-
# verify the required parameter 'app_id' is set
|
|
330
|
-
if ('app_id' not in params or
|
|
331
|
-
params['app_id'] is None):
|
|
332
|
-
raise ValueError("Missing the required parameter `app_id` when calling `lightningapp_v2_service_create_lightningapp_release_instance`") # noqa: E501
|
|
333
|
-
# verify the required parameter 'id' is set
|
|
334
|
-
if ('id' not in params or
|
|
335
|
-
params['id'] is None):
|
|
336
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_create_lightningapp_release_instance`") # noqa: E501
|
|
337
|
-
|
|
338
|
-
collection_formats = {}
|
|
339
|
-
|
|
340
|
-
path_params = {}
|
|
341
|
-
if 'project_id' in params:
|
|
342
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
343
|
-
if 'app_id' in params:
|
|
344
|
-
path_params['appId'] = params['app_id'] # noqa: E501
|
|
345
|
-
if 'id' in params:
|
|
346
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
347
|
-
|
|
348
|
-
query_params = []
|
|
349
|
-
|
|
350
|
-
header_params = {}
|
|
351
|
-
|
|
352
|
-
form_params = []
|
|
353
|
-
local_var_files = {}
|
|
354
|
-
|
|
355
|
-
body_params = None
|
|
356
|
-
if 'body' in params:
|
|
357
|
-
body_params = params['body']
|
|
358
|
-
# HTTP header `Accept`
|
|
359
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
360
|
-
['application/json']) # noqa: E501
|
|
361
|
-
|
|
362
|
-
# HTTP header `Content-Type`
|
|
363
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
364
|
-
['application/json']) # noqa: E501
|
|
365
|
-
|
|
366
|
-
# Authentication setting
|
|
367
|
-
auth_settings = [] # noqa: E501
|
|
368
|
-
|
|
369
|
-
return self.api_client.call_api(
|
|
370
|
-
'/v1/projects/{projectId}/appsv2/{appId}/releases/{id}/get', 'POST',
|
|
371
|
-
path_params,
|
|
372
|
-
query_params,
|
|
373
|
-
header_params,
|
|
374
|
-
body=body_params,
|
|
375
|
-
post_params=form_params,
|
|
376
|
-
files=local_var_files,
|
|
377
|
-
response_type='Externalv1LightningappInstance', # noqa: E501
|
|
378
|
-
auth_settings=auth_settings,
|
|
379
|
-
async_req=params.get('async_req'),
|
|
380
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
381
|
-
_preload_content=params.get('_preload_content', True),
|
|
382
|
-
_request_timeout=params.get('_request_timeout'),
|
|
383
|
-
collection_formats=collection_formats)
|
|
384
|
-
|
|
385
|
-
def lightningapp_v2_service_create_lightningapp_v2(self, body: 'ProjectIdAppsv2Body', project_id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
386
|
-
"""lightningapp_v2_service_create_lightningapp_v2 # noqa: E501
|
|
387
|
-
|
|
388
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
389
|
-
asynchronous HTTP request, please pass async_req=True
|
|
390
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_v2(body, project_id, async_req=True)
|
|
391
|
-
>>> result = thread.get()
|
|
392
|
-
|
|
393
|
-
:param async_req bool
|
|
394
|
-
:param ProjectIdAppsv2Body body: (required)
|
|
395
|
-
:param str project_id: (required)
|
|
396
|
-
:return: V1LightningappV2
|
|
397
|
-
If the method is called asynchronously,
|
|
398
|
-
returns the request thread.
|
|
399
|
-
"""
|
|
400
|
-
kwargs['_return_http_data_only'] = True
|
|
401
|
-
if kwargs.get('async_req'):
|
|
402
|
-
return self.lightningapp_v2_service_create_lightningapp_v2_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
403
|
-
else:
|
|
404
|
-
(data) = self.lightningapp_v2_service_create_lightningapp_v2_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
405
|
-
return data
|
|
406
|
-
|
|
407
|
-
def lightningapp_v2_service_create_lightningapp_v2_with_http_info(self, body: 'ProjectIdAppsv2Body', project_id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
408
|
-
"""lightningapp_v2_service_create_lightningapp_v2 # noqa: E501
|
|
409
|
-
|
|
410
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
411
|
-
asynchronous HTTP request, please pass async_req=True
|
|
412
|
-
>>> thread = api.lightningapp_v2_service_create_lightningapp_v2_with_http_info(body, project_id, async_req=True)
|
|
413
|
-
>>> result = thread.get()
|
|
414
|
-
|
|
415
|
-
:param async_req bool
|
|
416
|
-
:param ProjectIdAppsv2Body body: (required)
|
|
417
|
-
:param str project_id: (required)
|
|
418
|
-
:return: V1LightningappV2
|
|
419
|
-
If the method is called asynchronously,
|
|
420
|
-
returns the request thread.
|
|
421
|
-
"""
|
|
422
|
-
|
|
423
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
424
|
-
all_params.append('async_req')
|
|
425
|
-
all_params.append('_return_http_data_only')
|
|
426
|
-
all_params.append('_preload_content')
|
|
427
|
-
all_params.append('_request_timeout')
|
|
428
|
-
|
|
429
|
-
params = locals()
|
|
430
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
431
|
-
if key not in all_params:
|
|
432
|
-
raise TypeError(
|
|
433
|
-
"Got an unexpected keyword argument '%s'"
|
|
434
|
-
" to method lightningapp_v2_service_create_lightningapp_v2" % key
|
|
435
|
-
)
|
|
436
|
-
params[key] = val
|
|
437
|
-
del params['kwargs']
|
|
438
|
-
# verify the required parameter 'body' is set
|
|
439
|
-
if ('body' not in params or
|
|
440
|
-
params['body'] is None):
|
|
441
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_v2_service_create_lightningapp_v2`") # noqa: E501
|
|
442
|
-
# verify the required parameter 'project_id' is set
|
|
443
|
-
if ('project_id' not in params or
|
|
444
|
-
params['project_id'] is None):
|
|
445
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_create_lightningapp_v2`") # noqa: E501
|
|
446
|
-
|
|
447
|
-
collection_formats = {}
|
|
448
|
-
|
|
449
|
-
path_params = {}
|
|
450
|
-
if 'project_id' in params:
|
|
451
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
452
|
-
|
|
453
|
-
query_params = []
|
|
454
|
-
|
|
455
|
-
header_params = {}
|
|
456
|
-
|
|
457
|
-
form_params = []
|
|
458
|
-
local_var_files = {}
|
|
459
|
-
|
|
460
|
-
body_params = None
|
|
461
|
-
if 'body' in params:
|
|
462
|
-
body_params = params['body']
|
|
463
|
-
# HTTP header `Accept`
|
|
464
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
465
|
-
['application/json']) # noqa: E501
|
|
466
|
-
|
|
467
|
-
# HTTP header `Content-Type`
|
|
468
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
469
|
-
['application/json']) # noqa: E501
|
|
470
|
-
|
|
471
|
-
# Authentication setting
|
|
472
|
-
auth_settings = [] # noqa: E501
|
|
473
|
-
|
|
474
|
-
return self.api_client.call_api(
|
|
475
|
-
'/v1/projects/{projectId}/appsv2', 'POST',
|
|
476
|
-
path_params,
|
|
477
|
-
query_params,
|
|
478
|
-
header_params,
|
|
479
|
-
body=body_params,
|
|
480
|
-
post_params=form_params,
|
|
481
|
-
files=local_var_files,
|
|
482
|
-
response_type='V1LightningappV2', # noqa: E501
|
|
483
|
-
auth_settings=auth_settings,
|
|
484
|
-
async_req=params.get('async_req'),
|
|
485
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
486
|
-
_preload_content=params.get('_preload_content', True),
|
|
487
|
-
_request_timeout=params.get('_request_timeout'),
|
|
488
|
-
collection_formats=collection_formats)
|
|
489
|
-
|
|
490
|
-
def lightningapp_v2_service_delete_lightningapp_release(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLightningappReleaseResponse': # noqa: E501
|
|
491
|
-
"""lightningapp_v2_service_delete_lightningapp_release # noqa: E501
|
|
492
|
-
|
|
493
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
494
|
-
asynchronous HTTP request, please pass async_req=True
|
|
495
|
-
>>> thread = api.lightningapp_v2_service_delete_lightningapp_release(project_id, app_id, id, async_req=True)
|
|
496
|
-
>>> result = thread.get()
|
|
497
|
-
|
|
498
|
-
:param async_req bool
|
|
499
|
-
:param str project_id: (required)
|
|
500
|
-
:param str app_id: (required)
|
|
501
|
-
:param str id: (required)
|
|
502
|
-
:return: V1DeleteLightningappReleaseResponse
|
|
503
|
-
If the method is called asynchronously,
|
|
504
|
-
returns the request thread.
|
|
505
|
-
"""
|
|
506
|
-
kwargs['_return_http_data_only'] = True
|
|
507
|
-
if kwargs.get('async_req'):
|
|
508
|
-
return self.lightningapp_v2_service_delete_lightningapp_release_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
509
|
-
else:
|
|
510
|
-
(data) = self.lightningapp_v2_service_delete_lightningapp_release_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
511
|
-
return data
|
|
512
|
-
|
|
513
|
-
def lightningapp_v2_service_delete_lightningapp_release_with_http_info(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLightningappReleaseResponse': # noqa: E501
|
|
514
|
-
"""lightningapp_v2_service_delete_lightningapp_release # noqa: E501
|
|
515
|
-
|
|
516
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
517
|
-
asynchronous HTTP request, please pass async_req=True
|
|
518
|
-
>>> thread = api.lightningapp_v2_service_delete_lightningapp_release_with_http_info(project_id, app_id, id, async_req=True)
|
|
519
|
-
>>> result = thread.get()
|
|
520
|
-
|
|
521
|
-
:param async_req bool
|
|
522
|
-
:param str project_id: (required)
|
|
523
|
-
:param str app_id: (required)
|
|
524
|
-
:param str id: (required)
|
|
525
|
-
:return: V1DeleteLightningappReleaseResponse
|
|
526
|
-
If the method is called asynchronously,
|
|
527
|
-
returns the request thread.
|
|
528
|
-
"""
|
|
529
|
-
|
|
530
|
-
all_params = ['project_id', 'app_id', 'id'] # noqa: E501
|
|
531
|
-
all_params.append('async_req')
|
|
532
|
-
all_params.append('_return_http_data_only')
|
|
533
|
-
all_params.append('_preload_content')
|
|
534
|
-
all_params.append('_request_timeout')
|
|
535
|
-
|
|
536
|
-
params = locals()
|
|
537
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
538
|
-
if key not in all_params:
|
|
539
|
-
raise TypeError(
|
|
540
|
-
"Got an unexpected keyword argument '%s'"
|
|
541
|
-
" to method lightningapp_v2_service_delete_lightningapp_release" % key
|
|
542
|
-
)
|
|
543
|
-
params[key] = val
|
|
544
|
-
del params['kwargs']
|
|
545
|
-
# verify the required parameter 'project_id' is set
|
|
546
|
-
if ('project_id' not in params or
|
|
547
|
-
params['project_id'] is None):
|
|
548
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_delete_lightningapp_release`") # noqa: E501
|
|
549
|
-
# verify the required parameter 'app_id' is set
|
|
550
|
-
if ('app_id' not in params or
|
|
551
|
-
params['app_id'] is None):
|
|
552
|
-
raise ValueError("Missing the required parameter `app_id` when calling `lightningapp_v2_service_delete_lightningapp_release`") # noqa: E501
|
|
553
|
-
# verify the required parameter 'id' is set
|
|
554
|
-
if ('id' not in params or
|
|
555
|
-
params['id'] is None):
|
|
556
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_delete_lightningapp_release`") # noqa: E501
|
|
557
|
-
|
|
558
|
-
collection_formats = {}
|
|
559
|
-
|
|
560
|
-
path_params = {}
|
|
561
|
-
if 'project_id' in params:
|
|
562
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
563
|
-
if 'app_id' in params:
|
|
564
|
-
path_params['appId'] = params['app_id'] # noqa: E501
|
|
565
|
-
if 'id' in params:
|
|
566
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
567
|
-
|
|
568
|
-
query_params = []
|
|
569
|
-
|
|
570
|
-
header_params = {}
|
|
571
|
-
|
|
572
|
-
form_params = []
|
|
573
|
-
local_var_files = {}
|
|
574
|
-
|
|
575
|
-
body_params = None
|
|
576
|
-
# HTTP header `Accept`
|
|
577
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
578
|
-
['application/json']) # noqa: E501
|
|
579
|
-
|
|
580
|
-
# Authentication setting
|
|
581
|
-
auth_settings = [] # noqa: E501
|
|
582
|
-
|
|
583
|
-
return self.api_client.call_api(
|
|
584
|
-
'/v1/projects/{projectId}/appsv2/{appId}/releases/{id}', 'DELETE',
|
|
585
|
-
path_params,
|
|
586
|
-
query_params,
|
|
587
|
-
header_params,
|
|
588
|
-
body=body_params,
|
|
589
|
-
post_params=form_params,
|
|
590
|
-
files=local_var_files,
|
|
591
|
-
response_type='V1DeleteLightningappReleaseResponse', # noqa: E501
|
|
592
|
-
auth_settings=auth_settings,
|
|
593
|
-
async_req=params.get('async_req'),
|
|
594
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
595
|
-
_preload_content=params.get('_preload_content', True),
|
|
596
|
-
_request_timeout=params.get('_request_timeout'),
|
|
597
|
-
collection_formats=collection_formats)
|
|
598
|
-
|
|
599
|
-
def lightningapp_v2_service_delete_lightningapp_v2(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLightningappV2Response': # noqa: E501
|
|
600
|
-
"""lightningapp_v2_service_delete_lightningapp_v2 # noqa: E501
|
|
601
|
-
|
|
602
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
603
|
-
asynchronous HTTP request, please pass async_req=True
|
|
604
|
-
>>> thread = api.lightningapp_v2_service_delete_lightningapp_v2(project_id, id, async_req=True)
|
|
605
|
-
>>> result = thread.get()
|
|
606
|
-
|
|
607
|
-
:param async_req bool
|
|
608
|
-
:param str project_id: (required)
|
|
609
|
-
:param str id: (required)
|
|
610
|
-
:return: V1DeleteLightningappV2Response
|
|
611
|
-
If the method is called asynchronously,
|
|
612
|
-
returns the request thread.
|
|
613
|
-
"""
|
|
614
|
-
kwargs['_return_http_data_only'] = True
|
|
615
|
-
if kwargs.get('async_req'):
|
|
616
|
-
return self.lightningapp_v2_service_delete_lightningapp_v2_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
617
|
-
else:
|
|
618
|
-
(data) = self.lightningapp_v2_service_delete_lightningapp_v2_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
619
|
-
return data
|
|
620
|
-
|
|
621
|
-
def lightningapp_v2_service_delete_lightningapp_v2_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLightningappV2Response': # noqa: E501
|
|
622
|
-
"""lightningapp_v2_service_delete_lightningapp_v2 # noqa: E501
|
|
623
|
-
|
|
624
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
625
|
-
asynchronous HTTP request, please pass async_req=True
|
|
626
|
-
>>> thread = api.lightningapp_v2_service_delete_lightningapp_v2_with_http_info(project_id, id, async_req=True)
|
|
627
|
-
>>> result = thread.get()
|
|
628
|
-
|
|
629
|
-
:param async_req bool
|
|
630
|
-
:param str project_id: (required)
|
|
631
|
-
:param str id: (required)
|
|
632
|
-
:return: V1DeleteLightningappV2Response
|
|
633
|
-
If the method is called asynchronously,
|
|
634
|
-
returns the request thread.
|
|
635
|
-
"""
|
|
636
|
-
|
|
637
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
638
|
-
all_params.append('async_req')
|
|
639
|
-
all_params.append('_return_http_data_only')
|
|
640
|
-
all_params.append('_preload_content')
|
|
641
|
-
all_params.append('_request_timeout')
|
|
642
|
-
|
|
643
|
-
params = locals()
|
|
644
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
645
|
-
if key not in all_params:
|
|
646
|
-
raise TypeError(
|
|
647
|
-
"Got an unexpected keyword argument '%s'"
|
|
648
|
-
" to method lightningapp_v2_service_delete_lightningapp_v2" % key
|
|
649
|
-
)
|
|
650
|
-
params[key] = val
|
|
651
|
-
del params['kwargs']
|
|
652
|
-
# verify the required parameter 'project_id' is set
|
|
653
|
-
if ('project_id' not in params or
|
|
654
|
-
params['project_id'] is None):
|
|
655
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_delete_lightningapp_v2`") # noqa: E501
|
|
656
|
-
# verify the required parameter 'id' is set
|
|
657
|
-
if ('id' not in params or
|
|
658
|
-
params['id'] is None):
|
|
659
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_delete_lightningapp_v2`") # noqa: E501
|
|
660
|
-
|
|
661
|
-
collection_formats = {}
|
|
662
|
-
|
|
663
|
-
path_params = {}
|
|
664
|
-
if 'project_id' in params:
|
|
665
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
666
|
-
if 'id' in params:
|
|
667
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
668
|
-
|
|
669
|
-
query_params = []
|
|
670
|
-
|
|
671
|
-
header_params = {}
|
|
672
|
-
|
|
673
|
-
form_params = []
|
|
674
|
-
local_var_files = {}
|
|
675
|
-
|
|
676
|
-
body_params = None
|
|
677
|
-
# HTTP header `Accept`
|
|
678
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
679
|
-
['application/json']) # noqa: E501
|
|
680
|
-
|
|
681
|
-
# Authentication setting
|
|
682
|
-
auth_settings = [] # noqa: E501
|
|
683
|
-
|
|
684
|
-
return self.api_client.call_api(
|
|
685
|
-
'/v1/projects/{projectId}/appsv2/{id}', 'DELETE',
|
|
686
|
-
path_params,
|
|
687
|
-
query_params,
|
|
688
|
-
header_params,
|
|
689
|
-
body=body_params,
|
|
690
|
-
post_params=form_params,
|
|
691
|
-
files=local_var_files,
|
|
692
|
-
response_type='V1DeleteLightningappV2Response', # noqa: E501
|
|
693
|
-
auth_settings=auth_settings,
|
|
694
|
-
async_req=params.get('async_req'),
|
|
695
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
696
|
-
_preload_content=params.get('_preload_content', True),
|
|
697
|
-
_request_timeout=params.get('_request_timeout'),
|
|
698
|
-
collection_formats=collection_formats)
|
|
699
|
-
|
|
700
|
-
def lightningapp_v2_service_get_lightningapp_release(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'V1LightningappRelease': # noqa: E501
|
|
701
|
-
"""lightningapp_v2_service_get_lightningapp_release # noqa: E501
|
|
702
|
-
|
|
703
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
704
|
-
asynchronous HTTP request, please pass async_req=True
|
|
705
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_release(project_id, app_id, id, async_req=True)
|
|
706
|
-
>>> result = thread.get()
|
|
707
|
-
|
|
708
|
-
:param async_req bool
|
|
709
|
-
:param str project_id: (required)
|
|
710
|
-
:param str app_id: (required)
|
|
711
|
-
:param str id: (required)
|
|
712
|
-
:return: V1LightningappRelease
|
|
713
|
-
If the method is called asynchronously,
|
|
714
|
-
returns the request thread.
|
|
715
|
-
"""
|
|
716
|
-
kwargs['_return_http_data_only'] = True
|
|
717
|
-
if kwargs.get('async_req'):
|
|
718
|
-
return self.lightningapp_v2_service_get_lightningapp_release_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
719
|
-
else:
|
|
720
|
-
(data) = self.lightningapp_v2_service_get_lightningapp_release_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
721
|
-
return data
|
|
722
|
-
|
|
723
|
-
def lightningapp_v2_service_get_lightningapp_release_with_http_info(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'V1LightningappRelease': # noqa: E501
|
|
724
|
-
"""lightningapp_v2_service_get_lightningapp_release # noqa: E501
|
|
725
|
-
|
|
726
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
727
|
-
asynchronous HTTP request, please pass async_req=True
|
|
728
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_release_with_http_info(project_id, app_id, id, async_req=True)
|
|
729
|
-
>>> result = thread.get()
|
|
730
|
-
|
|
731
|
-
:param async_req bool
|
|
732
|
-
:param str project_id: (required)
|
|
733
|
-
:param str app_id: (required)
|
|
734
|
-
:param str id: (required)
|
|
735
|
-
:return: V1LightningappRelease
|
|
736
|
-
If the method is called asynchronously,
|
|
737
|
-
returns the request thread.
|
|
738
|
-
"""
|
|
739
|
-
|
|
740
|
-
all_params = ['project_id', 'app_id', 'id'] # noqa: E501
|
|
741
|
-
all_params.append('async_req')
|
|
742
|
-
all_params.append('_return_http_data_only')
|
|
743
|
-
all_params.append('_preload_content')
|
|
744
|
-
all_params.append('_request_timeout')
|
|
745
|
-
|
|
746
|
-
params = locals()
|
|
747
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
748
|
-
if key not in all_params:
|
|
749
|
-
raise TypeError(
|
|
750
|
-
"Got an unexpected keyword argument '%s'"
|
|
751
|
-
" to method lightningapp_v2_service_get_lightningapp_release" % key
|
|
752
|
-
)
|
|
753
|
-
params[key] = val
|
|
754
|
-
del params['kwargs']
|
|
755
|
-
# verify the required parameter 'project_id' is set
|
|
756
|
-
if ('project_id' not in params or
|
|
757
|
-
params['project_id'] is None):
|
|
758
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_get_lightningapp_release`") # noqa: E501
|
|
759
|
-
# verify the required parameter 'app_id' is set
|
|
760
|
-
if ('app_id' not in params or
|
|
761
|
-
params['app_id'] is None):
|
|
762
|
-
raise ValueError("Missing the required parameter `app_id` when calling `lightningapp_v2_service_get_lightningapp_release`") # noqa: E501
|
|
763
|
-
# verify the required parameter 'id' is set
|
|
764
|
-
if ('id' not in params or
|
|
765
|
-
params['id'] is None):
|
|
766
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_get_lightningapp_release`") # noqa: E501
|
|
767
|
-
|
|
768
|
-
collection_formats = {}
|
|
769
|
-
|
|
770
|
-
path_params = {}
|
|
771
|
-
if 'project_id' in params:
|
|
772
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
773
|
-
if 'app_id' in params:
|
|
774
|
-
path_params['appId'] = params['app_id'] # noqa: E501
|
|
775
|
-
if 'id' in params:
|
|
776
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
777
|
-
|
|
778
|
-
query_params = []
|
|
779
|
-
|
|
780
|
-
header_params = {}
|
|
781
|
-
|
|
782
|
-
form_params = []
|
|
783
|
-
local_var_files = {}
|
|
784
|
-
|
|
785
|
-
body_params = None
|
|
786
|
-
# HTTP header `Accept`
|
|
787
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
788
|
-
['application/json']) # noqa: E501
|
|
789
|
-
|
|
790
|
-
# Authentication setting
|
|
791
|
-
auth_settings = [] # noqa: E501
|
|
792
|
-
|
|
793
|
-
return self.api_client.call_api(
|
|
794
|
-
'/v1/projects/{projectId}/appsv2/{appId}/releases/{id}', 'GET',
|
|
795
|
-
path_params,
|
|
796
|
-
query_params,
|
|
797
|
-
header_params,
|
|
798
|
-
body=body_params,
|
|
799
|
-
post_params=form_params,
|
|
800
|
-
files=local_var_files,
|
|
801
|
-
response_type='V1LightningappRelease', # noqa: E501
|
|
802
|
-
auth_settings=auth_settings,
|
|
803
|
-
async_req=params.get('async_req'),
|
|
804
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
805
|
-
_preload_content=params.get('_preload_content', True),
|
|
806
|
-
_request_timeout=params.get('_request_timeout'),
|
|
807
|
-
collection_formats=collection_formats)
|
|
808
|
-
|
|
809
|
-
def lightningapp_v2_service_get_lightningapp_source_code_download_url(self, project_id: 'str', app_id: 'str', release_id: 'str', **kwargs) -> 'V1GetLightningappSourceCodeDownloadUrlResponse': # noqa: E501
|
|
810
|
-
"""lightningapp_v2_service_get_lightningapp_source_code_download_url # noqa: E501
|
|
811
|
-
|
|
812
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
813
|
-
asynchronous HTTP request, please pass async_req=True
|
|
814
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_source_code_download_url(project_id, app_id, release_id, async_req=True)
|
|
815
|
-
>>> result = thread.get()
|
|
816
|
-
|
|
817
|
-
:param async_req bool
|
|
818
|
-
:param str project_id: (required)
|
|
819
|
-
:param str app_id: (required)
|
|
820
|
-
:param str release_id: (required)
|
|
821
|
-
:return: V1GetLightningappSourceCodeDownloadUrlResponse
|
|
822
|
-
If the method is called asynchronously,
|
|
823
|
-
returns the request thread.
|
|
824
|
-
"""
|
|
825
|
-
kwargs['_return_http_data_only'] = True
|
|
826
|
-
if kwargs.get('async_req'):
|
|
827
|
-
return self.lightningapp_v2_service_get_lightningapp_source_code_download_url_with_http_info(project_id, app_id, release_id, **kwargs) # noqa: E501
|
|
828
|
-
else:
|
|
829
|
-
(data) = self.lightningapp_v2_service_get_lightningapp_source_code_download_url_with_http_info(project_id, app_id, release_id, **kwargs) # noqa: E501
|
|
830
|
-
return data
|
|
831
|
-
|
|
832
|
-
def lightningapp_v2_service_get_lightningapp_source_code_download_url_with_http_info(self, project_id: 'str', app_id: 'str', release_id: 'str', **kwargs) -> 'V1GetLightningappSourceCodeDownloadUrlResponse': # noqa: E501
|
|
833
|
-
"""lightningapp_v2_service_get_lightningapp_source_code_download_url # noqa: E501
|
|
834
|
-
|
|
835
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
836
|
-
asynchronous HTTP request, please pass async_req=True
|
|
837
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_source_code_download_url_with_http_info(project_id, app_id, release_id, async_req=True)
|
|
838
|
-
>>> result = thread.get()
|
|
839
|
-
|
|
840
|
-
:param async_req bool
|
|
841
|
-
:param str project_id: (required)
|
|
842
|
-
:param str app_id: (required)
|
|
843
|
-
:param str release_id: (required)
|
|
844
|
-
:return: V1GetLightningappSourceCodeDownloadUrlResponse
|
|
845
|
-
If the method is called asynchronously,
|
|
846
|
-
returns the request thread.
|
|
847
|
-
"""
|
|
848
|
-
|
|
849
|
-
all_params = ['project_id', 'app_id', 'release_id'] # noqa: E501
|
|
850
|
-
all_params.append('async_req')
|
|
851
|
-
all_params.append('_return_http_data_only')
|
|
852
|
-
all_params.append('_preload_content')
|
|
853
|
-
all_params.append('_request_timeout')
|
|
854
|
-
|
|
855
|
-
params = locals()
|
|
856
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
857
|
-
if key not in all_params:
|
|
858
|
-
raise TypeError(
|
|
859
|
-
"Got an unexpected keyword argument '%s'"
|
|
860
|
-
" to method lightningapp_v2_service_get_lightningapp_source_code_download_url" % key
|
|
861
|
-
)
|
|
862
|
-
params[key] = val
|
|
863
|
-
del params['kwargs']
|
|
864
|
-
# verify the required parameter 'project_id' is set
|
|
865
|
-
if ('project_id' not in params or
|
|
866
|
-
params['project_id'] is None):
|
|
867
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_get_lightningapp_source_code_download_url`") # noqa: E501
|
|
868
|
-
# verify the required parameter 'app_id' is set
|
|
869
|
-
if ('app_id' not in params or
|
|
870
|
-
params['app_id'] is None):
|
|
871
|
-
raise ValueError("Missing the required parameter `app_id` when calling `lightningapp_v2_service_get_lightningapp_source_code_download_url`") # noqa: E501
|
|
872
|
-
# verify the required parameter 'release_id' is set
|
|
873
|
-
if ('release_id' not in params or
|
|
874
|
-
params['release_id'] is None):
|
|
875
|
-
raise ValueError("Missing the required parameter `release_id` when calling `lightningapp_v2_service_get_lightningapp_source_code_download_url`") # noqa: E501
|
|
876
|
-
|
|
877
|
-
collection_formats = {}
|
|
878
|
-
|
|
879
|
-
path_params = {}
|
|
880
|
-
if 'project_id' in params:
|
|
881
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
882
|
-
if 'app_id' in params:
|
|
883
|
-
path_params['appId'] = params['app_id'] # noqa: E501
|
|
884
|
-
if 'release_id' in params:
|
|
885
|
-
path_params['releaseId'] = params['release_id'] # noqa: E501
|
|
886
|
-
|
|
887
|
-
query_params = []
|
|
888
|
-
|
|
889
|
-
header_params = {}
|
|
890
|
-
|
|
891
|
-
form_params = []
|
|
892
|
-
local_var_files = {}
|
|
893
|
-
|
|
894
|
-
body_params = None
|
|
895
|
-
# HTTP header `Accept`
|
|
896
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
897
|
-
['application/json']) # noqa: E501
|
|
898
|
-
|
|
899
|
-
# Authentication setting
|
|
900
|
-
auth_settings = [] # noqa: E501
|
|
901
|
-
|
|
902
|
-
return self.api_client.call_api(
|
|
903
|
-
'/v1/projects/{projectId}/appsv2/{appId}/releases/{releaseId}/source-code', 'GET',
|
|
904
|
-
path_params,
|
|
905
|
-
query_params,
|
|
906
|
-
header_params,
|
|
907
|
-
body=body_params,
|
|
908
|
-
post_params=form_params,
|
|
909
|
-
files=local_var_files,
|
|
910
|
-
response_type='V1GetLightningappSourceCodeDownloadUrlResponse', # noqa: E501
|
|
911
|
-
auth_settings=auth_settings,
|
|
912
|
-
async_req=params.get('async_req'),
|
|
913
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
914
|
-
_preload_content=params.get('_preload_content', True),
|
|
915
|
-
_request_timeout=params.get('_request_timeout'),
|
|
916
|
-
collection_formats=collection_formats)
|
|
917
|
-
|
|
918
|
-
def lightningapp_v2_service_get_lightningapp_v2(self, project_id: 'str', id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
919
|
-
"""lightningapp_v2_service_get_lightningapp_v2 # noqa: E501
|
|
920
|
-
|
|
921
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
922
|
-
asynchronous HTTP request, please pass async_req=True
|
|
923
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_v2(project_id, id, async_req=True)
|
|
924
|
-
>>> result = thread.get()
|
|
925
|
-
|
|
926
|
-
:param async_req bool
|
|
927
|
-
:param str project_id: (required)
|
|
928
|
-
:param str id: (required)
|
|
929
|
-
:return: V1LightningappV2
|
|
930
|
-
If the method is called asynchronously,
|
|
931
|
-
returns the request thread.
|
|
932
|
-
"""
|
|
933
|
-
kwargs['_return_http_data_only'] = True
|
|
934
|
-
if kwargs.get('async_req'):
|
|
935
|
-
return self.lightningapp_v2_service_get_lightningapp_v2_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
936
|
-
else:
|
|
937
|
-
(data) = self.lightningapp_v2_service_get_lightningapp_v2_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
938
|
-
return data
|
|
939
|
-
|
|
940
|
-
def lightningapp_v2_service_get_lightningapp_v2_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
941
|
-
"""lightningapp_v2_service_get_lightningapp_v2 # noqa: E501
|
|
942
|
-
|
|
943
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
944
|
-
asynchronous HTTP request, please pass async_req=True
|
|
945
|
-
>>> thread = api.lightningapp_v2_service_get_lightningapp_v2_with_http_info(project_id, id, async_req=True)
|
|
946
|
-
>>> result = thread.get()
|
|
947
|
-
|
|
948
|
-
:param async_req bool
|
|
949
|
-
:param str project_id: (required)
|
|
950
|
-
:param str id: (required)
|
|
951
|
-
:return: V1LightningappV2
|
|
952
|
-
If the method is called asynchronously,
|
|
953
|
-
returns the request thread.
|
|
954
|
-
"""
|
|
955
|
-
|
|
956
|
-
all_params = ['project_id', 'id'] # noqa: E501
|
|
957
|
-
all_params.append('async_req')
|
|
958
|
-
all_params.append('_return_http_data_only')
|
|
959
|
-
all_params.append('_preload_content')
|
|
960
|
-
all_params.append('_request_timeout')
|
|
961
|
-
|
|
962
|
-
params = locals()
|
|
963
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
964
|
-
if key not in all_params:
|
|
965
|
-
raise TypeError(
|
|
966
|
-
"Got an unexpected keyword argument '%s'"
|
|
967
|
-
" to method lightningapp_v2_service_get_lightningapp_v2" % key
|
|
968
|
-
)
|
|
969
|
-
params[key] = val
|
|
970
|
-
del params['kwargs']
|
|
971
|
-
# verify the required parameter 'project_id' is set
|
|
972
|
-
if ('project_id' not in params or
|
|
973
|
-
params['project_id'] is None):
|
|
974
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_get_lightningapp_v2`") # noqa: E501
|
|
975
|
-
# verify the required parameter 'id' is set
|
|
976
|
-
if ('id' not in params or
|
|
977
|
-
params['id'] is None):
|
|
978
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_get_lightningapp_v2`") # noqa: E501
|
|
979
|
-
|
|
980
|
-
collection_formats = {}
|
|
981
|
-
|
|
982
|
-
path_params = {}
|
|
983
|
-
if 'project_id' in params:
|
|
984
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
985
|
-
if 'id' in params:
|
|
986
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
987
|
-
|
|
988
|
-
query_params = []
|
|
989
|
-
|
|
990
|
-
header_params = {}
|
|
991
|
-
|
|
992
|
-
form_params = []
|
|
993
|
-
local_var_files = {}
|
|
994
|
-
|
|
995
|
-
body_params = None
|
|
996
|
-
# HTTP header `Accept`
|
|
997
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
998
|
-
['application/json']) # noqa: E501
|
|
999
|
-
|
|
1000
|
-
# Authentication setting
|
|
1001
|
-
auth_settings = [] # noqa: E501
|
|
1002
|
-
|
|
1003
|
-
return self.api_client.call_api(
|
|
1004
|
-
'/v1/projects/{projectId}/appsv2/{id}', 'GET',
|
|
1005
|
-
path_params,
|
|
1006
|
-
query_params,
|
|
1007
|
-
header_params,
|
|
1008
|
-
body=body_params,
|
|
1009
|
-
post_params=form_params,
|
|
1010
|
-
files=local_var_files,
|
|
1011
|
-
response_type='V1LightningappV2', # noqa: E501
|
|
1012
|
-
auth_settings=auth_settings,
|
|
1013
|
-
async_req=params.get('async_req'),
|
|
1014
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1015
|
-
_preload_content=params.get('_preload_content', True),
|
|
1016
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1017
|
-
collection_formats=collection_formats)
|
|
1018
|
-
|
|
1019
151
|
def lightningapp_v2_service_list_gallery_components(self, **kwargs) -> 'V1ListGalleryComponentsResponse': # noqa: E501
|
|
1020
152
|
"""lightningapp_v2_service_list_gallery_components # noqa: E501
|
|
1021
153
|
|
|
@@ -1185,221 +317,3 @@ class LightningappV2ServiceApi(object):
|
|
|
1185
317
|
_preload_content=params.get('_preload_content', True),
|
|
1186
318
|
_request_timeout=params.get('_request_timeout'),
|
|
1187
319
|
collection_formats=collection_formats)
|
|
1188
|
-
|
|
1189
|
-
def lightningapp_v2_service_list_lightningapps_v2(self, project_id: 'str', **kwargs) -> 'V1ListLightningappsV2Response': # noqa: E501
|
|
1190
|
-
"""lightningapp_v2_service_list_lightningapps_v2 # noqa: E501
|
|
1191
|
-
|
|
1192
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1193
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1194
|
-
>>> thread = api.lightningapp_v2_service_list_lightningapps_v2(project_id, async_req=True)
|
|
1195
|
-
>>> result = thread.get()
|
|
1196
|
-
|
|
1197
|
-
:param async_req bool
|
|
1198
|
-
:param str project_id: (required)
|
|
1199
|
-
:param str page_token: Pagination.
|
|
1200
|
-
:param str limit:
|
|
1201
|
-
:param str name: Filters.
|
|
1202
|
-
:return: V1ListLightningappsV2Response
|
|
1203
|
-
If the method is called asynchronously,
|
|
1204
|
-
returns the request thread.
|
|
1205
|
-
"""
|
|
1206
|
-
kwargs['_return_http_data_only'] = True
|
|
1207
|
-
if kwargs.get('async_req'):
|
|
1208
|
-
return self.lightningapp_v2_service_list_lightningapps_v2_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1209
|
-
else:
|
|
1210
|
-
(data) = self.lightningapp_v2_service_list_lightningapps_v2_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1211
|
-
return data
|
|
1212
|
-
|
|
1213
|
-
def lightningapp_v2_service_list_lightningapps_v2_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListLightningappsV2Response': # noqa: E501
|
|
1214
|
-
"""lightningapp_v2_service_list_lightningapps_v2 # noqa: E501
|
|
1215
|
-
|
|
1216
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1217
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1218
|
-
>>> thread = api.lightningapp_v2_service_list_lightningapps_v2_with_http_info(project_id, async_req=True)
|
|
1219
|
-
>>> result = thread.get()
|
|
1220
|
-
|
|
1221
|
-
:param async_req bool
|
|
1222
|
-
:param str project_id: (required)
|
|
1223
|
-
:param str page_token: Pagination.
|
|
1224
|
-
:param str limit:
|
|
1225
|
-
:param str name: Filters.
|
|
1226
|
-
:return: V1ListLightningappsV2Response
|
|
1227
|
-
If the method is called asynchronously,
|
|
1228
|
-
returns the request thread.
|
|
1229
|
-
"""
|
|
1230
|
-
|
|
1231
|
-
all_params = ['project_id', 'page_token', 'limit', 'name'] # noqa: E501
|
|
1232
|
-
all_params.append('async_req')
|
|
1233
|
-
all_params.append('_return_http_data_only')
|
|
1234
|
-
all_params.append('_preload_content')
|
|
1235
|
-
all_params.append('_request_timeout')
|
|
1236
|
-
|
|
1237
|
-
params = locals()
|
|
1238
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1239
|
-
if key not in all_params:
|
|
1240
|
-
raise TypeError(
|
|
1241
|
-
"Got an unexpected keyword argument '%s'"
|
|
1242
|
-
" to method lightningapp_v2_service_list_lightningapps_v2" % key
|
|
1243
|
-
)
|
|
1244
|
-
params[key] = val
|
|
1245
|
-
del params['kwargs']
|
|
1246
|
-
# verify the required parameter 'project_id' is set
|
|
1247
|
-
if ('project_id' not in params or
|
|
1248
|
-
params['project_id'] is None):
|
|
1249
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_list_lightningapps_v2`") # noqa: E501
|
|
1250
|
-
|
|
1251
|
-
collection_formats = {}
|
|
1252
|
-
|
|
1253
|
-
path_params = {}
|
|
1254
|
-
if 'project_id' in params:
|
|
1255
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1256
|
-
|
|
1257
|
-
query_params = []
|
|
1258
|
-
if 'page_token' in params:
|
|
1259
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1260
|
-
if 'limit' in params:
|
|
1261
|
-
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1262
|
-
if 'name' in params:
|
|
1263
|
-
query_params.append(('name', params['name'])) # noqa: E501
|
|
1264
|
-
|
|
1265
|
-
header_params = {}
|
|
1266
|
-
|
|
1267
|
-
form_params = []
|
|
1268
|
-
local_var_files = {}
|
|
1269
|
-
|
|
1270
|
-
body_params = None
|
|
1271
|
-
# HTTP header `Accept`
|
|
1272
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1273
|
-
['application/json']) # noqa: E501
|
|
1274
|
-
|
|
1275
|
-
# Authentication setting
|
|
1276
|
-
auth_settings = [] # noqa: E501
|
|
1277
|
-
|
|
1278
|
-
return self.api_client.call_api(
|
|
1279
|
-
'/v1/projects/{projectId}/appsv2', 'GET',
|
|
1280
|
-
path_params,
|
|
1281
|
-
query_params,
|
|
1282
|
-
header_params,
|
|
1283
|
-
body=body_params,
|
|
1284
|
-
post_params=form_params,
|
|
1285
|
-
files=local_var_files,
|
|
1286
|
-
response_type='V1ListLightningappsV2Response', # noqa: E501
|
|
1287
|
-
auth_settings=auth_settings,
|
|
1288
|
-
async_req=params.get('async_req'),
|
|
1289
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1290
|
-
_preload_content=params.get('_preload_content', True),
|
|
1291
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1292
|
-
collection_formats=collection_formats)
|
|
1293
|
-
|
|
1294
|
-
def lightningapp_v2_service_update_lightningapp_v2(self, body: 'Appsv2IdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
1295
|
-
"""lightningapp_v2_service_update_lightningapp_v2 # noqa: E501
|
|
1296
|
-
|
|
1297
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1298
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1299
|
-
>>> thread = api.lightningapp_v2_service_update_lightningapp_v2(body, project_id, id, async_req=True)
|
|
1300
|
-
>>> result = thread.get()
|
|
1301
|
-
|
|
1302
|
-
:param async_req bool
|
|
1303
|
-
:param Appsv2IdBody body: (required)
|
|
1304
|
-
:param str project_id: (required)
|
|
1305
|
-
:param str id: (required)
|
|
1306
|
-
:return: V1LightningappV2
|
|
1307
|
-
If the method is called asynchronously,
|
|
1308
|
-
returns the request thread.
|
|
1309
|
-
"""
|
|
1310
|
-
kwargs['_return_http_data_only'] = True
|
|
1311
|
-
if kwargs.get('async_req'):
|
|
1312
|
-
return self.lightningapp_v2_service_update_lightningapp_v2_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1313
|
-
else:
|
|
1314
|
-
(data) = self.lightningapp_v2_service_update_lightningapp_v2_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1315
|
-
return data
|
|
1316
|
-
|
|
1317
|
-
def lightningapp_v2_service_update_lightningapp_v2_with_http_info(self, body: 'Appsv2IdBody', project_id: 'str', id: 'str', **kwargs) -> 'V1LightningappV2': # noqa: E501
|
|
1318
|
-
"""lightningapp_v2_service_update_lightningapp_v2 # noqa: E501
|
|
1319
|
-
|
|
1320
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1321
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1322
|
-
>>> thread = api.lightningapp_v2_service_update_lightningapp_v2_with_http_info(body, project_id, id, async_req=True)
|
|
1323
|
-
>>> result = thread.get()
|
|
1324
|
-
|
|
1325
|
-
:param async_req bool
|
|
1326
|
-
:param Appsv2IdBody body: (required)
|
|
1327
|
-
:param str project_id: (required)
|
|
1328
|
-
:param str id: (required)
|
|
1329
|
-
:return: V1LightningappV2
|
|
1330
|
-
If the method is called asynchronously,
|
|
1331
|
-
returns the request thread.
|
|
1332
|
-
"""
|
|
1333
|
-
|
|
1334
|
-
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1335
|
-
all_params.append('async_req')
|
|
1336
|
-
all_params.append('_return_http_data_only')
|
|
1337
|
-
all_params.append('_preload_content')
|
|
1338
|
-
all_params.append('_request_timeout')
|
|
1339
|
-
|
|
1340
|
-
params = locals()
|
|
1341
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1342
|
-
if key not in all_params:
|
|
1343
|
-
raise TypeError(
|
|
1344
|
-
"Got an unexpected keyword argument '%s'"
|
|
1345
|
-
" to method lightningapp_v2_service_update_lightningapp_v2" % key
|
|
1346
|
-
)
|
|
1347
|
-
params[key] = val
|
|
1348
|
-
del params['kwargs']
|
|
1349
|
-
# verify the required parameter 'body' is set
|
|
1350
|
-
if ('body' not in params or
|
|
1351
|
-
params['body'] is None):
|
|
1352
|
-
raise ValueError("Missing the required parameter `body` when calling `lightningapp_v2_service_update_lightningapp_v2`") # noqa: E501
|
|
1353
|
-
# verify the required parameter 'project_id' is set
|
|
1354
|
-
if ('project_id' not in params or
|
|
1355
|
-
params['project_id'] is None):
|
|
1356
|
-
raise ValueError("Missing the required parameter `project_id` when calling `lightningapp_v2_service_update_lightningapp_v2`") # noqa: E501
|
|
1357
|
-
# verify the required parameter 'id' is set
|
|
1358
|
-
if ('id' not in params or
|
|
1359
|
-
params['id'] is None):
|
|
1360
|
-
raise ValueError("Missing the required parameter `id` when calling `lightningapp_v2_service_update_lightningapp_v2`") # noqa: E501
|
|
1361
|
-
|
|
1362
|
-
collection_formats = {}
|
|
1363
|
-
|
|
1364
|
-
path_params = {}
|
|
1365
|
-
if 'project_id' in params:
|
|
1366
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1367
|
-
if 'id' in params:
|
|
1368
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1369
|
-
|
|
1370
|
-
query_params = []
|
|
1371
|
-
|
|
1372
|
-
header_params = {}
|
|
1373
|
-
|
|
1374
|
-
form_params = []
|
|
1375
|
-
local_var_files = {}
|
|
1376
|
-
|
|
1377
|
-
body_params = None
|
|
1378
|
-
if 'body' in params:
|
|
1379
|
-
body_params = params['body']
|
|
1380
|
-
# HTTP header `Accept`
|
|
1381
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1382
|
-
['application/json']) # noqa: E501
|
|
1383
|
-
|
|
1384
|
-
# HTTP header `Content-Type`
|
|
1385
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1386
|
-
['application/json']) # noqa: E501
|
|
1387
|
-
|
|
1388
|
-
# Authentication setting
|
|
1389
|
-
auth_settings = [] # noqa: E501
|
|
1390
|
-
|
|
1391
|
-
return self.api_client.call_api(
|
|
1392
|
-
'/v1/projects/{projectId}/appsv2/{id}', 'PUT',
|
|
1393
|
-
path_params,
|
|
1394
|
-
query_params,
|
|
1395
|
-
header_params,
|
|
1396
|
-
body=body_params,
|
|
1397
|
-
post_params=form_params,
|
|
1398
|
-
files=local_var_files,
|
|
1399
|
-
response_type='V1LightningappV2', # noqa: E501
|
|
1400
|
-
auth_settings=auth_settings,
|
|
1401
|
-
async_req=params.get('async_req'),
|
|
1402
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1403
|
-
_preload_content=params.get('_preload_content', True),
|
|
1404
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1405
|
-
collection_formats=collection_formats)
|