lightning-sdk 0.1.3__py3-none-any.whl → 0.1.47__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 +328 -0
- lightning_sdk/api/lit_registry_api.py +12 -0
- lightning_sdk/api/mmt_api.py +205 -0
- lightning_sdk/api/org_api.py +1 -3
- lightning_sdk/api/studio_api.py +172 -81
- lightning_sdk/api/teamspace_api.py +237 -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 +13 -3
- lightning_sdk/cli/list.py +54 -0
- 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/teamspace_menu.py +94 -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 +359 -0
- lightning_sdk/job/job.py +291 -0
- lightning_sdk/job/v1.py +269 -0
- lightning_sdk/job/v2.py +221 -0
- lightning_sdk/job/work.py +81 -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 +289 -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 +343 -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 +279 -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_container_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 +253 -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/{get_cluster_health_response_health_status.py → v1_deployment_state.py} +11 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_strategy.py +149 -0
- 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 +137 -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 +723 -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/{v1_lightningapp_cluster_driver.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/{appsv2_id_body.py → v1_resource_visibility.py} +37 -37
- 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_secret_type.py +105 -0
- 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 +1032 -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 +144 -7
- lightning_sdk/lit_registry.py +39 -0
- lightning_sdk/machine.py +21 -4
- lightning_sdk/mmt/__init__.py +4 -0
- lightning_sdk/mmt/base.py +326 -0
- lightning_sdk/mmt/mmt.py +306 -0
- lightning_sdk/mmt/v1.py +209 -0
- lightning_sdk/mmt/v2.py +221 -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 +11 -6
- lightning_sdk/studio.py +90 -17
- lightning_sdk/teamspace.py +240 -12
- 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.47.dist-info/LICENSE +21 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/METADATA +30 -4
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/RECORD +487 -204
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.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.47.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1094 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import absolute_import
|
|
21
|
+
|
|
22
|
+
import re # noqa: F401
|
|
23
|
+
from typing import TYPE_CHECKING, Any
|
|
24
|
+
|
|
25
|
+
# python 2 and python 3 compatibility library
|
|
26
|
+
import six
|
|
27
|
+
|
|
28
|
+
from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
from datetime import datetime
|
|
32
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
33
|
+
|
|
34
|
+
class StorageServiceApi(object):
|
|
35
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None):
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
def storage_service_complete_upload_project_artifact(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
47
|
+
"""storage_service_complete_upload_project_artifact # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.storage_service_complete_upload_project_artifact(body, project_id, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param StorageCompleteBody body: (required)
|
|
56
|
+
:param str project_id: (required)
|
|
57
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
58
|
+
If the method is called asynchronously,
|
|
59
|
+
returns the request thread.
|
|
60
|
+
"""
|
|
61
|
+
kwargs['_return_http_data_only'] = True
|
|
62
|
+
if kwargs.get('async_req'):
|
|
63
|
+
return self.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
64
|
+
else:
|
|
65
|
+
(data) = self.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
66
|
+
return data
|
|
67
|
+
|
|
68
|
+
def storage_service_complete_upload_project_artifact_with_http_info(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
69
|
+
"""storage_service_complete_upload_project_artifact # noqa: E501
|
|
70
|
+
|
|
71
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
72
|
+
asynchronous HTTP request, please pass async_req=True
|
|
73
|
+
>>> thread = api.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
74
|
+
>>> result = thread.get()
|
|
75
|
+
|
|
76
|
+
:param async_req bool
|
|
77
|
+
:param StorageCompleteBody body: (required)
|
|
78
|
+
:param str project_id: (required)
|
|
79
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
80
|
+
If the method is called asynchronously,
|
|
81
|
+
returns the request thread.
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
85
|
+
all_params.append('async_req')
|
|
86
|
+
all_params.append('_return_http_data_only')
|
|
87
|
+
all_params.append('_preload_content')
|
|
88
|
+
all_params.append('_request_timeout')
|
|
89
|
+
|
|
90
|
+
params = locals()
|
|
91
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
92
|
+
if key not in all_params:
|
|
93
|
+
raise TypeError(
|
|
94
|
+
"Got an unexpected keyword argument '%s'"
|
|
95
|
+
" to method storage_service_complete_upload_project_artifact" % key
|
|
96
|
+
)
|
|
97
|
+
params[key] = val
|
|
98
|
+
del params['kwargs']
|
|
99
|
+
# verify the required parameter 'body' is set
|
|
100
|
+
if ('body' not in params or
|
|
101
|
+
params['body'] is None):
|
|
102
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_complete_upload_project_artifact`") # noqa: E501
|
|
103
|
+
# verify the required parameter 'project_id' is set
|
|
104
|
+
if ('project_id' not in params or
|
|
105
|
+
params['project_id'] is None):
|
|
106
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_complete_upload_project_artifact`") # noqa: E501
|
|
107
|
+
|
|
108
|
+
collection_formats = {}
|
|
109
|
+
|
|
110
|
+
path_params = {}
|
|
111
|
+
if 'project_id' in params:
|
|
112
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
113
|
+
|
|
114
|
+
query_params = []
|
|
115
|
+
|
|
116
|
+
header_params = {}
|
|
117
|
+
|
|
118
|
+
form_params = []
|
|
119
|
+
local_var_files = {}
|
|
120
|
+
|
|
121
|
+
body_params = None
|
|
122
|
+
if 'body' in params:
|
|
123
|
+
body_params = params['body']
|
|
124
|
+
# HTTP header `Accept`
|
|
125
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
126
|
+
['application/json']) # noqa: E501
|
|
127
|
+
|
|
128
|
+
# HTTP header `Content-Type`
|
|
129
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
130
|
+
['application/json']) # noqa: E501
|
|
131
|
+
|
|
132
|
+
# Authentication setting
|
|
133
|
+
auth_settings = [] # noqa: E501
|
|
134
|
+
|
|
135
|
+
return self.api_client.call_api(
|
|
136
|
+
'/v1/projects/{projectId}/storage/complete', 'POST',
|
|
137
|
+
path_params,
|
|
138
|
+
query_params,
|
|
139
|
+
header_params,
|
|
140
|
+
body=body_params,
|
|
141
|
+
post_params=form_params,
|
|
142
|
+
files=local_var_files,
|
|
143
|
+
response_type='V1CompleteUploadProjectArtifactResponse', # noqa: E501
|
|
144
|
+
auth_settings=auth_settings,
|
|
145
|
+
async_req=params.get('async_req'),
|
|
146
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
147
|
+
_preload_content=params.get('_preload_content', True),
|
|
148
|
+
_request_timeout=params.get('_request_timeout'),
|
|
149
|
+
collection_formats=collection_formats)
|
|
150
|
+
|
|
151
|
+
def storage_service_delete_project_artifact(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
152
|
+
"""storage_service_delete_project_artifact # 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.storage_service_delete_project_artifact(project_id, async_req=True)
|
|
157
|
+
>>> result = thread.get()
|
|
158
|
+
|
|
159
|
+
:param async_req bool
|
|
160
|
+
:param str project_id: (required)
|
|
161
|
+
:param str cluster_id:
|
|
162
|
+
:param str filename:
|
|
163
|
+
:return: V1DeleteProjectArtifactResponse
|
|
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.storage_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
170
|
+
else:
|
|
171
|
+
(data) = self.storage_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
172
|
+
return data
|
|
173
|
+
|
|
174
|
+
def storage_service_delete_project_artifact_with_http_info(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
175
|
+
"""storage_service_delete_project_artifact # 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.storage_service_delete_project_artifact_with_http_info(project_id, async_req=True)
|
|
180
|
+
>>> result = thread.get()
|
|
181
|
+
|
|
182
|
+
:param async_req bool
|
|
183
|
+
:param str project_id: (required)
|
|
184
|
+
:param str cluster_id:
|
|
185
|
+
:param str filename:
|
|
186
|
+
:return: V1DeleteProjectArtifactResponse
|
|
187
|
+
If the method is called asynchronously,
|
|
188
|
+
returns the request thread.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
all_params = ['project_id', 'cluster_id', 'filename'] # 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 storage_service_delete_project_artifact" % key
|
|
203
|
+
)
|
|
204
|
+
params[key] = val
|
|
205
|
+
del params['kwargs']
|
|
206
|
+
# verify the required parameter 'project_id' is set
|
|
207
|
+
if ('project_id' not in params or
|
|
208
|
+
params['project_id'] is None):
|
|
209
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_delete_project_artifact`") # noqa: E501
|
|
210
|
+
|
|
211
|
+
collection_formats = {}
|
|
212
|
+
|
|
213
|
+
path_params = {}
|
|
214
|
+
if 'project_id' in params:
|
|
215
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
216
|
+
|
|
217
|
+
query_params = []
|
|
218
|
+
if 'cluster_id' in params:
|
|
219
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
220
|
+
if 'filename' in params:
|
|
221
|
+
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
222
|
+
|
|
223
|
+
header_params = {}
|
|
224
|
+
|
|
225
|
+
form_params = []
|
|
226
|
+
local_var_files = {}
|
|
227
|
+
|
|
228
|
+
body_params = None
|
|
229
|
+
# HTTP header `Accept`
|
|
230
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
231
|
+
['application/json']) # noqa: E501
|
|
232
|
+
|
|
233
|
+
# Authentication setting
|
|
234
|
+
auth_settings = [] # noqa: E501
|
|
235
|
+
|
|
236
|
+
return self.api_client.call_api(
|
|
237
|
+
'/v1/projects/{projectId}/storage', 'DELETE',
|
|
238
|
+
path_params,
|
|
239
|
+
query_params,
|
|
240
|
+
header_params,
|
|
241
|
+
body=body_params,
|
|
242
|
+
post_params=form_params,
|
|
243
|
+
files=local_var_files,
|
|
244
|
+
response_type='V1DeleteProjectArtifactResponse', # noqa: E501
|
|
245
|
+
auth_settings=auth_settings,
|
|
246
|
+
async_req=params.get('async_req'),
|
|
247
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
248
|
+
_preload_content=params.get('_preload_content', True),
|
|
249
|
+
_request_timeout=params.get('_request_timeout'),
|
|
250
|
+
collection_formats=collection_formats)
|
|
251
|
+
|
|
252
|
+
def storage_service_get_project_artifact(self, project_id: 'str', **kwargs) -> 'V1GetProjectArtifactResponse': # noqa: E501
|
|
253
|
+
"""storage_service_get_project_artifact # noqa: E501
|
|
254
|
+
|
|
255
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
256
|
+
asynchronous HTTP request, please pass async_req=True
|
|
257
|
+
>>> thread = api.storage_service_get_project_artifact(project_id, async_req=True)
|
|
258
|
+
>>> result = thread.get()
|
|
259
|
+
|
|
260
|
+
:param async_req bool
|
|
261
|
+
:param str project_id: (required)
|
|
262
|
+
:param str cluster_id:
|
|
263
|
+
:param str filename:
|
|
264
|
+
:return: V1GetProjectArtifactResponse
|
|
265
|
+
If the method is called asynchronously,
|
|
266
|
+
returns the request thread.
|
|
267
|
+
"""
|
|
268
|
+
kwargs['_return_http_data_only'] = True
|
|
269
|
+
if kwargs.get('async_req'):
|
|
270
|
+
return self.storage_service_get_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
271
|
+
else:
|
|
272
|
+
(data) = self.storage_service_get_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
273
|
+
return data
|
|
274
|
+
|
|
275
|
+
def storage_service_get_project_artifact_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetProjectArtifactResponse': # noqa: E501
|
|
276
|
+
"""storage_service_get_project_artifact # noqa: E501
|
|
277
|
+
|
|
278
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
279
|
+
asynchronous HTTP request, please pass async_req=True
|
|
280
|
+
>>> thread = api.storage_service_get_project_artifact_with_http_info(project_id, async_req=True)
|
|
281
|
+
>>> result = thread.get()
|
|
282
|
+
|
|
283
|
+
:param async_req bool
|
|
284
|
+
:param str project_id: (required)
|
|
285
|
+
:param str cluster_id:
|
|
286
|
+
:param str filename:
|
|
287
|
+
:return: V1GetProjectArtifactResponse
|
|
288
|
+
If the method is called asynchronously,
|
|
289
|
+
returns the request thread.
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
all_params = ['project_id', 'cluster_id', 'filename'] # noqa: E501
|
|
293
|
+
all_params.append('async_req')
|
|
294
|
+
all_params.append('_return_http_data_only')
|
|
295
|
+
all_params.append('_preload_content')
|
|
296
|
+
all_params.append('_request_timeout')
|
|
297
|
+
|
|
298
|
+
params = locals()
|
|
299
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
300
|
+
if key not in all_params:
|
|
301
|
+
raise TypeError(
|
|
302
|
+
"Got an unexpected keyword argument '%s'"
|
|
303
|
+
" to method storage_service_get_project_artifact" % key
|
|
304
|
+
)
|
|
305
|
+
params[key] = val
|
|
306
|
+
del params['kwargs']
|
|
307
|
+
# verify the required parameter 'project_id' is set
|
|
308
|
+
if ('project_id' not in params or
|
|
309
|
+
params['project_id'] is None):
|
|
310
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_artifact`") # noqa: E501
|
|
311
|
+
|
|
312
|
+
collection_formats = {}
|
|
313
|
+
|
|
314
|
+
path_params = {}
|
|
315
|
+
if 'project_id' in params:
|
|
316
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
317
|
+
|
|
318
|
+
query_params = []
|
|
319
|
+
if 'cluster_id' in params:
|
|
320
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
321
|
+
if 'filename' in params:
|
|
322
|
+
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
323
|
+
|
|
324
|
+
header_params = {}
|
|
325
|
+
|
|
326
|
+
form_params = []
|
|
327
|
+
local_var_files = {}
|
|
328
|
+
|
|
329
|
+
body_params = None
|
|
330
|
+
# HTTP header `Accept`
|
|
331
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
332
|
+
['application/json']) # noqa: E501
|
|
333
|
+
|
|
334
|
+
# Authentication setting
|
|
335
|
+
auth_settings = [] # noqa: E501
|
|
336
|
+
|
|
337
|
+
return self.api_client.call_api(
|
|
338
|
+
'/v1/projects/{projectId}/storage/download', 'GET',
|
|
339
|
+
path_params,
|
|
340
|
+
query_params,
|
|
341
|
+
header_params,
|
|
342
|
+
body=body_params,
|
|
343
|
+
post_params=form_params,
|
|
344
|
+
files=local_var_files,
|
|
345
|
+
response_type='V1GetProjectArtifactResponse', # noqa: E501
|
|
346
|
+
auth_settings=auth_settings,
|
|
347
|
+
async_req=params.get('async_req'),
|
|
348
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
349
|
+
_preload_content=params.get('_preload_content', True),
|
|
350
|
+
_request_timeout=params.get('_request_timeout'),
|
|
351
|
+
collection_formats=collection_formats)
|
|
352
|
+
|
|
353
|
+
def storage_service_get_project_storage_metadata(self, project_id: 'str', **kwargs) -> 'V1GetProjectStorageMetadataResponse': # noqa: E501
|
|
354
|
+
"""storage_service_get_project_storage_metadata # noqa: E501
|
|
355
|
+
|
|
356
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
357
|
+
asynchronous HTTP request, please pass async_req=True
|
|
358
|
+
>>> thread = api.storage_service_get_project_storage_metadata(project_id, async_req=True)
|
|
359
|
+
>>> result = thread.get()
|
|
360
|
+
|
|
361
|
+
:param async_req bool
|
|
362
|
+
:param str project_id: (required)
|
|
363
|
+
:return: V1GetProjectStorageMetadataResponse
|
|
364
|
+
If the method is called asynchronously,
|
|
365
|
+
returns the request thread.
|
|
366
|
+
"""
|
|
367
|
+
kwargs['_return_http_data_only'] = True
|
|
368
|
+
if kwargs.get('async_req'):
|
|
369
|
+
return self.storage_service_get_project_storage_metadata_with_http_info(project_id, **kwargs) # noqa: E501
|
|
370
|
+
else:
|
|
371
|
+
(data) = self.storage_service_get_project_storage_metadata_with_http_info(project_id, **kwargs) # noqa: E501
|
|
372
|
+
return data
|
|
373
|
+
|
|
374
|
+
def storage_service_get_project_storage_metadata_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetProjectStorageMetadataResponse': # noqa: E501
|
|
375
|
+
"""storage_service_get_project_storage_metadata # noqa: E501
|
|
376
|
+
|
|
377
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
378
|
+
asynchronous HTTP request, please pass async_req=True
|
|
379
|
+
>>> thread = api.storage_service_get_project_storage_metadata_with_http_info(project_id, async_req=True)
|
|
380
|
+
>>> result = thread.get()
|
|
381
|
+
|
|
382
|
+
:param async_req bool
|
|
383
|
+
:param str project_id: (required)
|
|
384
|
+
:return: V1GetProjectStorageMetadataResponse
|
|
385
|
+
If the method is called asynchronously,
|
|
386
|
+
returns the request thread.
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
all_params = ['project_id'] # noqa: E501
|
|
390
|
+
all_params.append('async_req')
|
|
391
|
+
all_params.append('_return_http_data_only')
|
|
392
|
+
all_params.append('_preload_content')
|
|
393
|
+
all_params.append('_request_timeout')
|
|
394
|
+
|
|
395
|
+
params = locals()
|
|
396
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
397
|
+
if key not in all_params:
|
|
398
|
+
raise TypeError(
|
|
399
|
+
"Got an unexpected keyword argument '%s'"
|
|
400
|
+
" to method storage_service_get_project_storage_metadata" % key
|
|
401
|
+
)
|
|
402
|
+
params[key] = val
|
|
403
|
+
del params['kwargs']
|
|
404
|
+
# verify the required parameter 'project_id' is set
|
|
405
|
+
if ('project_id' not in params or
|
|
406
|
+
params['project_id'] is None):
|
|
407
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_storage_metadata`") # noqa: E501
|
|
408
|
+
|
|
409
|
+
collection_formats = {}
|
|
410
|
+
|
|
411
|
+
path_params = {}
|
|
412
|
+
if 'project_id' in params:
|
|
413
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
414
|
+
|
|
415
|
+
query_params = []
|
|
416
|
+
|
|
417
|
+
header_params = {}
|
|
418
|
+
|
|
419
|
+
form_params = []
|
|
420
|
+
local_var_files = {}
|
|
421
|
+
|
|
422
|
+
body_params = None
|
|
423
|
+
# HTTP header `Accept`
|
|
424
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
425
|
+
['application/json']) # noqa: E501
|
|
426
|
+
|
|
427
|
+
# Authentication setting
|
|
428
|
+
auth_settings = [] # noqa: E501
|
|
429
|
+
|
|
430
|
+
return self.api_client.call_api(
|
|
431
|
+
'/v1/projects/{projectId}/storage/metadata', 'GET',
|
|
432
|
+
path_params,
|
|
433
|
+
query_params,
|
|
434
|
+
header_params,
|
|
435
|
+
body=body_params,
|
|
436
|
+
post_params=form_params,
|
|
437
|
+
files=local_var_files,
|
|
438
|
+
response_type='V1GetProjectStorageMetadataResponse', # noqa: E501
|
|
439
|
+
auth_settings=auth_settings,
|
|
440
|
+
async_req=params.get('async_req'),
|
|
441
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
442
|
+
_preload_content=params.get('_preload_content', True),
|
|
443
|
+
_request_timeout=params.get('_request_timeout'),
|
|
444
|
+
collection_formats=collection_formats)
|
|
445
|
+
|
|
446
|
+
def storage_service_get_project_uploads_artifacts_page(self, project_id: 'str', **kwargs) -> 'V1GetArtifactsPageResponse': # noqa: E501
|
|
447
|
+
"""storage_service_get_project_uploads_artifacts_page # noqa: E501
|
|
448
|
+
|
|
449
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
450
|
+
asynchronous HTTP request, please pass async_req=True
|
|
451
|
+
>>> thread = api.storage_service_get_project_uploads_artifacts_page(project_id, async_req=True)
|
|
452
|
+
>>> result = thread.get()
|
|
453
|
+
|
|
454
|
+
:param async_req bool
|
|
455
|
+
:param str project_id: (required)
|
|
456
|
+
:param str id:
|
|
457
|
+
:param str page_number:
|
|
458
|
+
:param str prefix:
|
|
459
|
+
:param bool include_download_url:
|
|
460
|
+
:param str cluster_id:
|
|
461
|
+
:param bool local_index:
|
|
462
|
+
:return: V1GetArtifactsPageResponse
|
|
463
|
+
If the method is called asynchronously,
|
|
464
|
+
returns the request thread.
|
|
465
|
+
"""
|
|
466
|
+
kwargs['_return_http_data_only'] = True
|
|
467
|
+
if kwargs.get('async_req'):
|
|
468
|
+
return self.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, **kwargs) # noqa: E501
|
|
469
|
+
else:
|
|
470
|
+
(data) = self.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, **kwargs) # noqa: E501
|
|
471
|
+
return data
|
|
472
|
+
|
|
473
|
+
def storage_service_get_project_uploads_artifacts_page_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetArtifactsPageResponse': # noqa: E501
|
|
474
|
+
"""storage_service_get_project_uploads_artifacts_page # noqa: E501
|
|
475
|
+
|
|
476
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
477
|
+
asynchronous HTTP request, please pass async_req=True
|
|
478
|
+
>>> thread = api.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, async_req=True)
|
|
479
|
+
>>> result = thread.get()
|
|
480
|
+
|
|
481
|
+
:param async_req bool
|
|
482
|
+
:param str project_id: (required)
|
|
483
|
+
:param str id:
|
|
484
|
+
:param str page_number:
|
|
485
|
+
:param str prefix:
|
|
486
|
+
:param bool include_download_url:
|
|
487
|
+
:param str cluster_id:
|
|
488
|
+
:param bool local_index:
|
|
489
|
+
:return: V1GetArtifactsPageResponse
|
|
490
|
+
If the method is called asynchronously,
|
|
491
|
+
returns the request thread.
|
|
492
|
+
"""
|
|
493
|
+
|
|
494
|
+
all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index'] # noqa: E501
|
|
495
|
+
all_params.append('async_req')
|
|
496
|
+
all_params.append('_return_http_data_only')
|
|
497
|
+
all_params.append('_preload_content')
|
|
498
|
+
all_params.append('_request_timeout')
|
|
499
|
+
|
|
500
|
+
params = locals()
|
|
501
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
502
|
+
if key not in all_params:
|
|
503
|
+
raise TypeError(
|
|
504
|
+
"Got an unexpected keyword argument '%s'"
|
|
505
|
+
" to method storage_service_get_project_uploads_artifacts_page" % key
|
|
506
|
+
)
|
|
507
|
+
params[key] = val
|
|
508
|
+
del params['kwargs']
|
|
509
|
+
# verify the required parameter 'project_id' is set
|
|
510
|
+
if ('project_id' not in params or
|
|
511
|
+
params['project_id'] is None):
|
|
512
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_uploads_artifacts_page`") # noqa: E501
|
|
513
|
+
|
|
514
|
+
collection_formats = {}
|
|
515
|
+
|
|
516
|
+
path_params = {}
|
|
517
|
+
if 'project_id' in params:
|
|
518
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
519
|
+
|
|
520
|
+
query_params = []
|
|
521
|
+
if 'id' in params:
|
|
522
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
523
|
+
if 'page_number' in params:
|
|
524
|
+
query_params.append(('pageNumber', params['page_number'])) # noqa: E501
|
|
525
|
+
if 'prefix' in params:
|
|
526
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
527
|
+
if 'include_download_url' in params:
|
|
528
|
+
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
529
|
+
if 'cluster_id' in params:
|
|
530
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
531
|
+
if 'local_index' in params:
|
|
532
|
+
query_params.append(('localIndex', params['local_index'])) # noqa: E501
|
|
533
|
+
|
|
534
|
+
header_params = {}
|
|
535
|
+
|
|
536
|
+
form_params = []
|
|
537
|
+
local_var_files = {}
|
|
538
|
+
|
|
539
|
+
body_params = None
|
|
540
|
+
# HTTP header `Accept`
|
|
541
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
542
|
+
['application/json']) # noqa: E501
|
|
543
|
+
|
|
544
|
+
# Authentication setting
|
|
545
|
+
auth_settings = [] # noqa: E501
|
|
546
|
+
|
|
547
|
+
return self.api_client.call_api(
|
|
548
|
+
'/v1/projects/{projectId}/storage/uploads/artifacts/page', 'GET',
|
|
549
|
+
path_params,
|
|
550
|
+
query_params,
|
|
551
|
+
header_params,
|
|
552
|
+
body=body_params,
|
|
553
|
+
post_params=form_params,
|
|
554
|
+
files=local_var_files,
|
|
555
|
+
response_type='V1GetArtifactsPageResponse', # noqa: E501
|
|
556
|
+
auth_settings=auth_settings,
|
|
557
|
+
async_req=params.get('async_req'),
|
|
558
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
559
|
+
_preload_content=params.get('_preload_content', True),
|
|
560
|
+
_request_timeout=params.get('_request_timeout'),
|
|
561
|
+
collection_formats=collection_formats)
|
|
562
|
+
|
|
563
|
+
def storage_service_get_project_uploads_folder_index(self, project_id: 'str', **kwargs) -> 'V1GetFolderIndexResponse': # noqa: E501
|
|
564
|
+
"""storage_service_get_project_uploads_folder_index # noqa: E501
|
|
565
|
+
|
|
566
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
567
|
+
asynchronous HTTP request, please pass async_req=True
|
|
568
|
+
>>> thread = api.storage_service_get_project_uploads_folder_index(project_id, async_req=True)
|
|
569
|
+
>>> result = thread.get()
|
|
570
|
+
|
|
571
|
+
:param async_req bool
|
|
572
|
+
:param str project_id: (required)
|
|
573
|
+
:param str id:
|
|
574
|
+
:param str prefix:
|
|
575
|
+
:param str cluster_id:
|
|
576
|
+
:param bool local_index:
|
|
577
|
+
:return: V1GetFolderIndexResponse
|
|
578
|
+
If the method is called asynchronously,
|
|
579
|
+
returns the request thread.
|
|
580
|
+
"""
|
|
581
|
+
kwargs['_return_http_data_only'] = True
|
|
582
|
+
if kwargs.get('async_req'):
|
|
583
|
+
return self.storage_service_get_project_uploads_folder_index_with_http_info(project_id, **kwargs) # noqa: E501
|
|
584
|
+
else:
|
|
585
|
+
(data) = self.storage_service_get_project_uploads_folder_index_with_http_info(project_id, **kwargs) # noqa: E501
|
|
586
|
+
return data
|
|
587
|
+
|
|
588
|
+
def storage_service_get_project_uploads_folder_index_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetFolderIndexResponse': # noqa: E501
|
|
589
|
+
"""storage_service_get_project_uploads_folder_index # noqa: E501
|
|
590
|
+
|
|
591
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
592
|
+
asynchronous HTTP request, please pass async_req=True
|
|
593
|
+
>>> thread = api.storage_service_get_project_uploads_folder_index_with_http_info(project_id, async_req=True)
|
|
594
|
+
>>> result = thread.get()
|
|
595
|
+
|
|
596
|
+
:param async_req bool
|
|
597
|
+
:param str project_id: (required)
|
|
598
|
+
:param str id:
|
|
599
|
+
:param str prefix:
|
|
600
|
+
:param str cluster_id:
|
|
601
|
+
:param bool local_index:
|
|
602
|
+
:return: V1GetFolderIndexResponse
|
|
603
|
+
If the method is called asynchronously,
|
|
604
|
+
returns the request thread.
|
|
605
|
+
"""
|
|
606
|
+
|
|
607
|
+
all_params = ['project_id', 'id', 'prefix', 'cluster_id', 'local_index'] # noqa: E501
|
|
608
|
+
all_params.append('async_req')
|
|
609
|
+
all_params.append('_return_http_data_only')
|
|
610
|
+
all_params.append('_preload_content')
|
|
611
|
+
all_params.append('_request_timeout')
|
|
612
|
+
|
|
613
|
+
params = locals()
|
|
614
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
615
|
+
if key not in all_params:
|
|
616
|
+
raise TypeError(
|
|
617
|
+
"Got an unexpected keyword argument '%s'"
|
|
618
|
+
" to method storage_service_get_project_uploads_folder_index" % key
|
|
619
|
+
)
|
|
620
|
+
params[key] = val
|
|
621
|
+
del params['kwargs']
|
|
622
|
+
# verify the required parameter 'project_id' is set
|
|
623
|
+
if ('project_id' not in params or
|
|
624
|
+
params['project_id'] is None):
|
|
625
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_uploads_folder_index`") # noqa: E501
|
|
626
|
+
|
|
627
|
+
collection_formats = {}
|
|
628
|
+
|
|
629
|
+
path_params = {}
|
|
630
|
+
if 'project_id' in params:
|
|
631
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
632
|
+
|
|
633
|
+
query_params = []
|
|
634
|
+
if 'id' in params:
|
|
635
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
636
|
+
if 'prefix' in params:
|
|
637
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
638
|
+
if 'cluster_id' in params:
|
|
639
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
640
|
+
if 'local_index' in params:
|
|
641
|
+
query_params.append(('localIndex', params['local_index'])) # noqa: E501
|
|
642
|
+
|
|
643
|
+
header_params = {}
|
|
644
|
+
|
|
645
|
+
form_params = []
|
|
646
|
+
local_var_files = {}
|
|
647
|
+
|
|
648
|
+
body_params = None
|
|
649
|
+
# HTTP header `Accept`
|
|
650
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
651
|
+
['application/json']) # noqa: E501
|
|
652
|
+
|
|
653
|
+
# Authentication setting
|
|
654
|
+
auth_settings = [] # noqa: E501
|
|
655
|
+
|
|
656
|
+
return self.api_client.call_api(
|
|
657
|
+
'/v1/projects/{projectId}/storage/uploads/folder-index', 'GET',
|
|
658
|
+
path_params,
|
|
659
|
+
query_params,
|
|
660
|
+
header_params,
|
|
661
|
+
body=body_params,
|
|
662
|
+
post_params=form_params,
|
|
663
|
+
files=local_var_files,
|
|
664
|
+
response_type='V1GetFolderIndexResponse', # noqa: E501
|
|
665
|
+
auth_settings=auth_settings,
|
|
666
|
+
async_req=params.get('async_req'),
|
|
667
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
668
|
+
_preload_content=params.get('_preload_content', True),
|
|
669
|
+
_request_timeout=params.get('_request_timeout'),
|
|
670
|
+
collection_formats=collection_formats)
|
|
671
|
+
|
|
672
|
+
def storage_service_list_project_artifacts(self, project_id: 'str', **kwargs) -> 'V1ListProjectArtifactsResponse': # noqa: E501
|
|
673
|
+
"""storage_service_list_project_artifacts # noqa: E501
|
|
674
|
+
|
|
675
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
676
|
+
asynchronous HTTP request, please pass async_req=True
|
|
677
|
+
>>> thread = api.storage_service_list_project_artifacts(project_id, async_req=True)
|
|
678
|
+
>>> result = thread.get()
|
|
679
|
+
|
|
680
|
+
:param async_req bool
|
|
681
|
+
:param str project_id: (required)
|
|
682
|
+
:param str cluster_id:
|
|
683
|
+
:param str page_token:
|
|
684
|
+
:param str page_size:
|
|
685
|
+
:param str prefix:
|
|
686
|
+
:param bool include_download_url:
|
|
687
|
+
:return: V1ListProjectArtifactsResponse
|
|
688
|
+
If the method is called asynchronously,
|
|
689
|
+
returns the request thread.
|
|
690
|
+
"""
|
|
691
|
+
kwargs['_return_http_data_only'] = True
|
|
692
|
+
if kwargs.get('async_req'):
|
|
693
|
+
return self.storage_service_list_project_artifacts_with_http_info(project_id, **kwargs) # noqa: E501
|
|
694
|
+
else:
|
|
695
|
+
(data) = self.storage_service_list_project_artifacts_with_http_info(project_id, **kwargs) # noqa: E501
|
|
696
|
+
return data
|
|
697
|
+
|
|
698
|
+
def storage_service_list_project_artifacts_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListProjectArtifactsResponse': # noqa: E501
|
|
699
|
+
"""storage_service_list_project_artifacts # noqa: E501
|
|
700
|
+
|
|
701
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
702
|
+
asynchronous HTTP request, please pass async_req=True
|
|
703
|
+
>>> thread = api.storage_service_list_project_artifacts_with_http_info(project_id, async_req=True)
|
|
704
|
+
>>> result = thread.get()
|
|
705
|
+
|
|
706
|
+
:param async_req bool
|
|
707
|
+
:param str project_id: (required)
|
|
708
|
+
:param str cluster_id:
|
|
709
|
+
:param str page_token:
|
|
710
|
+
:param str page_size:
|
|
711
|
+
:param str prefix:
|
|
712
|
+
:param bool include_download_url:
|
|
713
|
+
:return: V1ListProjectArtifactsResponse
|
|
714
|
+
If the method is called asynchronously,
|
|
715
|
+
returns the request thread.
|
|
716
|
+
"""
|
|
717
|
+
|
|
718
|
+
all_params = ['project_id', 'cluster_id', 'page_token', 'page_size', 'prefix', 'include_download_url'] # noqa: E501
|
|
719
|
+
all_params.append('async_req')
|
|
720
|
+
all_params.append('_return_http_data_only')
|
|
721
|
+
all_params.append('_preload_content')
|
|
722
|
+
all_params.append('_request_timeout')
|
|
723
|
+
|
|
724
|
+
params = locals()
|
|
725
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
726
|
+
if key not in all_params:
|
|
727
|
+
raise TypeError(
|
|
728
|
+
"Got an unexpected keyword argument '%s'"
|
|
729
|
+
" to method storage_service_list_project_artifacts" % key
|
|
730
|
+
)
|
|
731
|
+
params[key] = val
|
|
732
|
+
del params['kwargs']
|
|
733
|
+
# verify the required parameter 'project_id' is set
|
|
734
|
+
if ('project_id' not in params or
|
|
735
|
+
params['project_id'] is None):
|
|
736
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_project_artifacts`") # noqa: E501
|
|
737
|
+
|
|
738
|
+
collection_formats = {}
|
|
739
|
+
|
|
740
|
+
path_params = {}
|
|
741
|
+
if 'project_id' in params:
|
|
742
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
743
|
+
|
|
744
|
+
query_params = []
|
|
745
|
+
if 'cluster_id' in params:
|
|
746
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
747
|
+
if 'page_token' in params:
|
|
748
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
749
|
+
if 'page_size' in params:
|
|
750
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
751
|
+
if 'prefix' in params:
|
|
752
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
753
|
+
if 'include_download_url' in params:
|
|
754
|
+
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
755
|
+
|
|
756
|
+
header_params = {}
|
|
757
|
+
|
|
758
|
+
form_params = []
|
|
759
|
+
local_var_files = {}
|
|
760
|
+
|
|
761
|
+
body_params = None
|
|
762
|
+
# HTTP header `Accept`
|
|
763
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
764
|
+
['application/json']) # noqa: E501
|
|
765
|
+
|
|
766
|
+
# Authentication setting
|
|
767
|
+
auth_settings = [] # noqa: E501
|
|
768
|
+
|
|
769
|
+
return self.api_client.call_api(
|
|
770
|
+
'/v1/projects/{projectId}/storage', 'GET',
|
|
771
|
+
path_params,
|
|
772
|
+
query_params,
|
|
773
|
+
header_params,
|
|
774
|
+
body=body_params,
|
|
775
|
+
post_params=form_params,
|
|
776
|
+
files=local_var_files,
|
|
777
|
+
response_type='V1ListProjectArtifactsResponse', # noqa: E501
|
|
778
|
+
auth_settings=auth_settings,
|
|
779
|
+
async_req=params.get('async_req'),
|
|
780
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
781
|
+
_preload_content=params.get('_preload_content', True),
|
|
782
|
+
_request_timeout=params.get('_request_timeout'),
|
|
783
|
+
collection_formats=collection_formats)
|
|
784
|
+
|
|
785
|
+
def storage_service_list_project_locked_resources(self, project_id: 'str', **kwargs) -> 'V1ListProjectLockedResourcesResponse': # noqa: E501
|
|
786
|
+
"""storage_service_list_project_locked_resources # noqa: E501
|
|
787
|
+
|
|
788
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
789
|
+
asynchronous HTTP request, please pass async_req=True
|
|
790
|
+
>>> thread = api.storage_service_list_project_locked_resources(project_id, async_req=True)
|
|
791
|
+
>>> result = thread.get()
|
|
792
|
+
|
|
793
|
+
:param async_req bool
|
|
794
|
+
:param str project_id: (required)
|
|
795
|
+
:return: V1ListProjectLockedResourcesResponse
|
|
796
|
+
If the method is called asynchronously,
|
|
797
|
+
returns the request thread.
|
|
798
|
+
"""
|
|
799
|
+
kwargs['_return_http_data_only'] = True
|
|
800
|
+
if kwargs.get('async_req'):
|
|
801
|
+
return self.storage_service_list_project_locked_resources_with_http_info(project_id, **kwargs) # noqa: E501
|
|
802
|
+
else:
|
|
803
|
+
(data) = self.storage_service_list_project_locked_resources_with_http_info(project_id, **kwargs) # noqa: E501
|
|
804
|
+
return data
|
|
805
|
+
|
|
806
|
+
def storage_service_list_project_locked_resources_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListProjectLockedResourcesResponse': # noqa: E501
|
|
807
|
+
"""storage_service_list_project_locked_resources # noqa: E501
|
|
808
|
+
|
|
809
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
810
|
+
asynchronous HTTP request, please pass async_req=True
|
|
811
|
+
>>> thread = api.storage_service_list_project_locked_resources_with_http_info(project_id, async_req=True)
|
|
812
|
+
>>> result = thread.get()
|
|
813
|
+
|
|
814
|
+
:param async_req bool
|
|
815
|
+
:param str project_id: (required)
|
|
816
|
+
:return: V1ListProjectLockedResourcesResponse
|
|
817
|
+
If the method is called asynchronously,
|
|
818
|
+
returns the request thread.
|
|
819
|
+
"""
|
|
820
|
+
|
|
821
|
+
all_params = ['project_id'] # noqa: E501
|
|
822
|
+
all_params.append('async_req')
|
|
823
|
+
all_params.append('_return_http_data_only')
|
|
824
|
+
all_params.append('_preload_content')
|
|
825
|
+
all_params.append('_request_timeout')
|
|
826
|
+
|
|
827
|
+
params = locals()
|
|
828
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
829
|
+
if key not in all_params:
|
|
830
|
+
raise TypeError(
|
|
831
|
+
"Got an unexpected keyword argument '%s'"
|
|
832
|
+
" to method storage_service_list_project_locked_resources" % key
|
|
833
|
+
)
|
|
834
|
+
params[key] = val
|
|
835
|
+
del params['kwargs']
|
|
836
|
+
# verify the required parameter 'project_id' is set
|
|
837
|
+
if ('project_id' not in params or
|
|
838
|
+
params['project_id'] is None):
|
|
839
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_project_locked_resources`") # noqa: E501
|
|
840
|
+
|
|
841
|
+
collection_formats = {}
|
|
842
|
+
|
|
843
|
+
path_params = {}
|
|
844
|
+
if 'project_id' in params:
|
|
845
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
846
|
+
|
|
847
|
+
query_params = []
|
|
848
|
+
|
|
849
|
+
header_params = {}
|
|
850
|
+
|
|
851
|
+
form_params = []
|
|
852
|
+
local_var_files = {}
|
|
853
|
+
|
|
854
|
+
body_params = None
|
|
855
|
+
# HTTP header `Accept`
|
|
856
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
857
|
+
['application/json']) # noqa: E501
|
|
858
|
+
|
|
859
|
+
# Authentication setting
|
|
860
|
+
auth_settings = [] # noqa: E501
|
|
861
|
+
|
|
862
|
+
return self.api_client.call_api(
|
|
863
|
+
'/v1/projects/{projectId}/locked-resources', 'GET',
|
|
864
|
+
path_params,
|
|
865
|
+
query_params,
|
|
866
|
+
header_params,
|
|
867
|
+
body=body_params,
|
|
868
|
+
post_params=form_params,
|
|
869
|
+
files=local_var_files,
|
|
870
|
+
response_type='V1ListProjectLockedResourcesResponse', # noqa: E501
|
|
871
|
+
auth_settings=auth_settings,
|
|
872
|
+
async_req=params.get('async_req'),
|
|
873
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
874
|
+
_preload_content=params.get('_preload_content', True),
|
|
875
|
+
_request_timeout=params.get('_request_timeout'),
|
|
876
|
+
collection_formats=collection_formats)
|
|
877
|
+
|
|
878
|
+
def storage_service_upload_project_artifact(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
879
|
+
"""UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
|
|
880
|
+
|
|
881
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
882
|
+
asynchronous HTTP request, please pass async_req=True
|
|
883
|
+
>>> thread = api.storage_service_upload_project_artifact(body, project_id, async_req=True)
|
|
884
|
+
>>> result = thread.get()
|
|
885
|
+
|
|
886
|
+
:param async_req bool
|
|
887
|
+
:param ProjectIdStorageBody body: (required)
|
|
888
|
+
:param str project_id: (required)
|
|
889
|
+
:return: V1UploadProjectArtifactResponse
|
|
890
|
+
If the method is called asynchronously,
|
|
891
|
+
returns the request thread.
|
|
892
|
+
"""
|
|
893
|
+
kwargs['_return_http_data_only'] = True
|
|
894
|
+
if kwargs.get('async_req'):
|
|
895
|
+
return self.storage_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
896
|
+
else:
|
|
897
|
+
(data) = self.storage_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
898
|
+
return data
|
|
899
|
+
|
|
900
|
+
def storage_service_upload_project_artifact_with_http_info(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
901
|
+
"""UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
|
|
902
|
+
|
|
903
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
904
|
+
asynchronous HTTP request, please pass async_req=True
|
|
905
|
+
>>> thread = api.storage_service_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
906
|
+
>>> result = thread.get()
|
|
907
|
+
|
|
908
|
+
:param async_req bool
|
|
909
|
+
:param ProjectIdStorageBody body: (required)
|
|
910
|
+
:param str project_id: (required)
|
|
911
|
+
:return: V1UploadProjectArtifactResponse
|
|
912
|
+
If the method is called asynchronously,
|
|
913
|
+
returns the request thread.
|
|
914
|
+
"""
|
|
915
|
+
|
|
916
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
917
|
+
all_params.append('async_req')
|
|
918
|
+
all_params.append('_return_http_data_only')
|
|
919
|
+
all_params.append('_preload_content')
|
|
920
|
+
all_params.append('_request_timeout')
|
|
921
|
+
|
|
922
|
+
params = locals()
|
|
923
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
924
|
+
if key not in all_params:
|
|
925
|
+
raise TypeError(
|
|
926
|
+
"Got an unexpected keyword argument '%s'"
|
|
927
|
+
" to method storage_service_upload_project_artifact" % key
|
|
928
|
+
)
|
|
929
|
+
params[key] = val
|
|
930
|
+
del params['kwargs']
|
|
931
|
+
# verify the required parameter 'body' is set
|
|
932
|
+
if ('body' not in params or
|
|
933
|
+
params['body'] is None):
|
|
934
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_project_artifact`") # noqa: E501
|
|
935
|
+
# verify the required parameter 'project_id' is set
|
|
936
|
+
if ('project_id' not in params or
|
|
937
|
+
params['project_id'] is None):
|
|
938
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact`") # noqa: E501
|
|
939
|
+
|
|
940
|
+
collection_formats = {}
|
|
941
|
+
|
|
942
|
+
path_params = {}
|
|
943
|
+
if 'project_id' in params:
|
|
944
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
945
|
+
|
|
946
|
+
query_params = []
|
|
947
|
+
|
|
948
|
+
header_params = {}
|
|
949
|
+
|
|
950
|
+
form_params = []
|
|
951
|
+
local_var_files = {}
|
|
952
|
+
|
|
953
|
+
body_params = None
|
|
954
|
+
if 'body' in params:
|
|
955
|
+
body_params = params['body']
|
|
956
|
+
# HTTP header `Accept`
|
|
957
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
958
|
+
['application/json']) # noqa: E501
|
|
959
|
+
|
|
960
|
+
# HTTP header `Content-Type`
|
|
961
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
962
|
+
['application/json']) # noqa: E501
|
|
963
|
+
|
|
964
|
+
# Authentication setting
|
|
965
|
+
auth_settings = [] # noqa: E501
|
|
966
|
+
|
|
967
|
+
return self.api_client.call_api(
|
|
968
|
+
'/v1/projects/{projectId}/storage', 'POST',
|
|
969
|
+
path_params,
|
|
970
|
+
query_params,
|
|
971
|
+
header_params,
|
|
972
|
+
body=body_params,
|
|
973
|
+
post_params=form_params,
|
|
974
|
+
files=local_var_files,
|
|
975
|
+
response_type='V1UploadProjectArtifactResponse', # noqa: E501
|
|
976
|
+
auth_settings=auth_settings,
|
|
977
|
+
async_req=params.get('async_req'),
|
|
978
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
979
|
+
_preload_content=params.get('_preload_content', True),
|
|
980
|
+
_request_timeout=params.get('_request_timeout'),
|
|
981
|
+
collection_formats=collection_formats)
|
|
982
|
+
|
|
983
|
+
def storage_service_upload_project_artifact_parts(self, body: 'UploadsUploadIdBody', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
984
|
+
"""storage_service_upload_project_artifact_parts # noqa: E501
|
|
985
|
+
|
|
986
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
987
|
+
asynchronous HTTP request, please pass async_req=True
|
|
988
|
+
>>> thread = api.storage_service_upload_project_artifact_parts(body, project_id, upload_id, async_req=True)
|
|
989
|
+
>>> result = thread.get()
|
|
990
|
+
|
|
991
|
+
:param async_req bool
|
|
992
|
+
:param UploadsUploadIdBody body: (required)
|
|
993
|
+
:param str project_id: (required)
|
|
994
|
+
:param str upload_id: (required)
|
|
995
|
+
:return: V1UploadProjectArtifactPartsResponse
|
|
996
|
+
If the method is called asynchronously,
|
|
997
|
+
returns the request thread.
|
|
998
|
+
"""
|
|
999
|
+
kwargs['_return_http_data_only'] = True
|
|
1000
|
+
if kwargs.get('async_req'):
|
|
1001
|
+
return self.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
1002
|
+
else:
|
|
1003
|
+
(data) = self.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
1004
|
+
return data
|
|
1005
|
+
|
|
1006
|
+
def storage_service_upload_project_artifact_parts_with_http_info(self, body: 'UploadsUploadIdBody', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
1007
|
+
"""storage_service_upload_project_artifact_parts # noqa: E501
|
|
1008
|
+
|
|
1009
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1010
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1011
|
+
>>> thread = api.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, async_req=True)
|
|
1012
|
+
>>> result = thread.get()
|
|
1013
|
+
|
|
1014
|
+
:param async_req bool
|
|
1015
|
+
:param UploadsUploadIdBody body: (required)
|
|
1016
|
+
:param str project_id: (required)
|
|
1017
|
+
:param str upload_id: (required)
|
|
1018
|
+
:return: V1UploadProjectArtifactPartsResponse
|
|
1019
|
+
If the method is called asynchronously,
|
|
1020
|
+
returns the request thread.
|
|
1021
|
+
"""
|
|
1022
|
+
|
|
1023
|
+
all_params = ['body', 'project_id', 'upload_id'] # noqa: E501
|
|
1024
|
+
all_params.append('async_req')
|
|
1025
|
+
all_params.append('_return_http_data_only')
|
|
1026
|
+
all_params.append('_preload_content')
|
|
1027
|
+
all_params.append('_request_timeout')
|
|
1028
|
+
|
|
1029
|
+
params = locals()
|
|
1030
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1031
|
+
if key not in all_params:
|
|
1032
|
+
raise TypeError(
|
|
1033
|
+
"Got an unexpected keyword argument '%s'"
|
|
1034
|
+
" to method storage_service_upload_project_artifact_parts" % key
|
|
1035
|
+
)
|
|
1036
|
+
params[key] = val
|
|
1037
|
+
del params['kwargs']
|
|
1038
|
+
# verify the required parameter 'body' is set
|
|
1039
|
+
if ('body' not in params or
|
|
1040
|
+
params['body'] is None):
|
|
1041
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
1042
|
+
# verify the required parameter 'project_id' is set
|
|
1043
|
+
if ('project_id' not in params or
|
|
1044
|
+
params['project_id'] is None):
|
|
1045
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
1046
|
+
# verify the required parameter 'upload_id' is set
|
|
1047
|
+
if ('upload_id' not in params or
|
|
1048
|
+
params['upload_id'] is None):
|
|
1049
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
1050
|
+
|
|
1051
|
+
collection_formats = {}
|
|
1052
|
+
|
|
1053
|
+
path_params = {}
|
|
1054
|
+
if 'project_id' in params:
|
|
1055
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1056
|
+
if 'upload_id' in params:
|
|
1057
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
1058
|
+
|
|
1059
|
+
query_params = []
|
|
1060
|
+
|
|
1061
|
+
header_params = {}
|
|
1062
|
+
|
|
1063
|
+
form_params = []
|
|
1064
|
+
local_var_files = {}
|
|
1065
|
+
|
|
1066
|
+
body_params = None
|
|
1067
|
+
if 'body' in params:
|
|
1068
|
+
body_params = params['body']
|
|
1069
|
+
# HTTP header `Accept`
|
|
1070
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1071
|
+
['application/json']) # noqa: E501
|
|
1072
|
+
|
|
1073
|
+
# HTTP header `Content-Type`
|
|
1074
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1075
|
+
['application/json']) # noqa: E501
|
|
1076
|
+
|
|
1077
|
+
# Authentication setting
|
|
1078
|
+
auth_settings = [] # noqa: E501
|
|
1079
|
+
|
|
1080
|
+
return self.api_client.call_api(
|
|
1081
|
+
'/v1/projects/{projectId}/storage/uploads/{uploadId}', 'POST',
|
|
1082
|
+
path_params,
|
|
1083
|
+
query_params,
|
|
1084
|
+
header_params,
|
|
1085
|
+
body=body_params,
|
|
1086
|
+
post_params=form_params,
|
|
1087
|
+
files=local_var_files,
|
|
1088
|
+
response_type='V1UploadProjectArtifactPartsResponse', # noqa: E501
|
|
1089
|
+
auth_settings=auth_settings,
|
|
1090
|
+
async_req=params.get('async_req'),
|
|
1091
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1092
|
+
_preload_content=params.get('_preload_content', True),
|
|
1093
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1094
|
+
collection_formats=collection_formats)
|