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
|
@@ -43,45 +43,1187 @@ class ModelsStoreApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
+
def models_store_complete_model_upload(self, body: 'object', project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1CompleteModelUploadResponse': # noqa: E501
|
|
47
|
+
"""CompleteModelUpload marks the model upload as complete after all files have been uploaded. This marks the model as visible for list, delete, etc. operations # 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.models_store_complete_model_upload(body, project_id, model_id, version, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param object body: (required)
|
|
56
|
+
:param str project_id: (required)
|
|
57
|
+
:param str model_id: (required)
|
|
58
|
+
:param str version: (required)
|
|
59
|
+
:return: V1CompleteModelUploadResponse
|
|
60
|
+
If the method is called asynchronously,
|
|
61
|
+
returns the request thread.
|
|
62
|
+
"""
|
|
63
|
+
kwargs['_return_http_data_only'] = True
|
|
64
|
+
if kwargs.get('async_req'):
|
|
65
|
+
return self.models_store_complete_model_upload_with_http_info(body, project_id, model_id, version, **kwargs) # noqa: E501
|
|
66
|
+
else:
|
|
67
|
+
(data) = self.models_store_complete_model_upload_with_http_info(body, project_id, model_id, version, **kwargs) # noqa: E501
|
|
68
|
+
return data
|
|
69
|
+
|
|
70
|
+
def models_store_complete_model_upload_with_http_info(self, body: 'object', project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1CompleteModelUploadResponse': # noqa: E501
|
|
71
|
+
"""CompleteModelUpload marks the model upload as complete after all files have been uploaded. This marks the model as visible for list, delete, etc. operations # noqa: E501
|
|
72
|
+
|
|
73
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
74
|
+
asynchronous HTTP request, please pass async_req=True
|
|
75
|
+
>>> thread = api.models_store_complete_model_upload_with_http_info(body, project_id, model_id, version, async_req=True)
|
|
76
|
+
>>> result = thread.get()
|
|
77
|
+
|
|
78
|
+
:param async_req bool
|
|
79
|
+
:param object body: (required)
|
|
80
|
+
:param str project_id: (required)
|
|
81
|
+
:param str model_id: (required)
|
|
82
|
+
:param str version: (required)
|
|
83
|
+
:return: V1CompleteModelUploadResponse
|
|
84
|
+
If the method is called asynchronously,
|
|
85
|
+
returns the request thread.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
all_params = ['body', 'project_id', 'model_id', 'version'] # noqa: E501
|
|
89
|
+
all_params.append('async_req')
|
|
90
|
+
all_params.append('_return_http_data_only')
|
|
91
|
+
all_params.append('_preload_content')
|
|
92
|
+
all_params.append('_request_timeout')
|
|
93
|
+
|
|
94
|
+
params = locals()
|
|
95
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
96
|
+
if key not in all_params:
|
|
97
|
+
raise TypeError(
|
|
98
|
+
"Got an unexpected keyword argument '%s'"
|
|
99
|
+
" to method models_store_complete_model_upload" % key
|
|
100
|
+
)
|
|
101
|
+
params[key] = val
|
|
102
|
+
del params['kwargs']
|
|
103
|
+
# verify the required parameter 'body' is set
|
|
104
|
+
if ('body' not in params or
|
|
105
|
+
params['body'] is None):
|
|
106
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_complete_model_upload`") # noqa: E501
|
|
107
|
+
# verify the required parameter 'project_id' is set
|
|
108
|
+
if ('project_id' not in params or
|
|
109
|
+
params['project_id'] is None):
|
|
110
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_complete_model_upload`") # noqa: E501
|
|
111
|
+
# verify the required parameter 'model_id' is set
|
|
112
|
+
if ('model_id' not in params or
|
|
113
|
+
params['model_id'] is None):
|
|
114
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_complete_model_upload`") # noqa: E501
|
|
115
|
+
# verify the required parameter 'version' is set
|
|
116
|
+
if ('version' not in params or
|
|
117
|
+
params['version'] is None):
|
|
118
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_complete_model_upload`") # noqa: E501
|
|
119
|
+
|
|
120
|
+
collection_formats = {}
|
|
121
|
+
|
|
122
|
+
path_params = {}
|
|
123
|
+
if 'project_id' in params:
|
|
124
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
125
|
+
if 'model_id' in params:
|
|
126
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
127
|
+
if 'version' in params:
|
|
128
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
129
|
+
|
|
130
|
+
query_params = []
|
|
131
|
+
|
|
132
|
+
header_params = {}
|
|
133
|
+
|
|
134
|
+
form_params = []
|
|
135
|
+
local_var_files = {}
|
|
136
|
+
|
|
137
|
+
body_params = None
|
|
138
|
+
if 'body' in params:
|
|
139
|
+
body_params = params['body']
|
|
140
|
+
# HTTP header `Accept`
|
|
141
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
142
|
+
['application/json']) # noqa: E501
|
|
143
|
+
|
|
144
|
+
# HTTP header `Content-Type`
|
|
145
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
146
|
+
['application/json']) # noqa: E501
|
|
147
|
+
|
|
148
|
+
# Authentication setting
|
|
149
|
+
auth_settings = [] # noqa: E501
|
|
150
|
+
|
|
151
|
+
return self.api_client.call_api(
|
|
152
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/complete', 'POST',
|
|
153
|
+
path_params,
|
|
154
|
+
query_params,
|
|
155
|
+
header_params,
|
|
156
|
+
body=body_params,
|
|
157
|
+
post_params=form_params,
|
|
158
|
+
files=local_var_files,
|
|
159
|
+
response_type='V1CompleteModelUploadResponse', # noqa: E501
|
|
160
|
+
auth_settings=auth_settings,
|
|
161
|
+
async_req=params.get('async_req'),
|
|
162
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
163
|
+
_preload_content=params.get('_preload_content', True),
|
|
164
|
+
_request_timeout=params.get('_request_timeout'),
|
|
165
|
+
collection_formats=collection_formats)
|
|
166
|
+
|
|
167
|
+
def models_store_complete_multi_part_upload(self, body: 'UploadIdCompleteBody', project_id: 'str', model_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1CompleteMultiPartUploadResponse': # noqa: E501
|
|
168
|
+
"""CompleteMultiPartUpload marks the given file-parts as completed/uploaded. Once all parts of a file are completed, the file will materialize in S3 storage # noqa: E501
|
|
169
|
+
|
|
170
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
171
|
+
asynchronous HTTP request, please pass async_req=True
|
|
172
|
+
>>> thread = api.models_store_complete_multi_part_upload(body, project_id, model_id, version, upload_id, async_req=True)
|
|
173
|
+
>>> result = thread.get()
|
|
174
|
+
|
|
175
|
+
:param async_req bool
|
|
176
|
+
:param UploadIdCompleteBody body: (required)
|
|
177
|
+
:param str project_id: (required)
|
|
178
|
+
:param str model_id: (required)
|
|
179
|
+
:param str version: (required)
|
|
180
|
+
:param str upload_id: (required)
|
|
181
|
+
:return: V1CompleteMultiPartUploadResponse
|
|
182
|
+
If the method is called asynchronously,
|
|
183
|
+
returns the request thread.
|
|
184
|
+
"""
|
|
185
|
+
kwargs['_return_http_data_only'] = True
|
|
186
|
+
if kwargs.get('async_req'):
|
|
187
|
+
return self.models_store_complete_multi_part_upload_with_http_info(body, project_id, model_id, version, upload_id, **kwargs) # noqa: E501
|
|
188
|
+
else:
|
|
189
|
+
(data) = self.models_store_complete_multi_part_upload_with_http_info(body, project_id, model_id, version, upload_id, **kwargs) # noqa: E501
|
|
190
|
+
return data
|
|
191
|
+
|
|
192
|
+
def models_store_complete_multi_part_upload_with_http_info(self, body: 'UploadIdCompleteBody', project_id: 'str', model_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1CompleteMultiPartUploadResponse': # noqa: E501
|
|
193
|
+
"""CompleteMultiPartUpload marks the given file-parts as completed/uploaded. Once all parts of a file are completed, the file will materialize in S3 storage # noqa: E501
|
|
194
|
+
|
|
195
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
196
|
+
asynchronous HTTP request, please pass async_req=True
|
|
197
|
+
>>> thread = api.models_store_complete_multi_part_upload_with_http_info(body, project_id, model_id, version, upload_id, async_req=True)
|
|
198
|
+
>>> result = thread.get()
|
|
199
|
+
|
|
200
|
+
:param async_req bool
|
|
201
|
+
:param UploadIdCompleteBody body: (required)
|
|
202
|
+
:param str project_id: (required)
|
|
203
|
+
:param str model_id: (required)
|
|
204
|
+
:param str version: (required)
|
|
205
|
+
:param str upload_id: (required)
|
|
206
|
+
:return: V1CompleteMultiPartUploadResponse
|
|
207
|
+
If the method is called asynchronously,
|
|
208
|
+
returns the request thread.
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
all_params = ['body', 'project_id', 'model_id', 'version', 'upload_id'] # noqa: E501
|
|
212
|
+
all_params.append('async_req')
|
|
213
|
+
all_params.append('_return_http_data_only')
|
|
214
|
+
all_params.append('_preload_content')
|
|
215
|
+
all_params.append('_request_timeout')
|
|
216
|
+
|
|
217
|
+
params = locals()
|
|
218
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
219
|
+
if key not in all_params:
|
|
220
|
+
raise TypeError(
|
|
221
|
+
"Got an unexpected keyword argument '%s'"
|
|
222
|
+
" to method models_store_complete_multi_part_upload" % key
|
|
223
|
+
)
|
|
224
|
+
params[key] = val
|
|
225
|
+
del params['kwargs']
|
|
226
|
+
# verify the required parameter 'body' is set
|
|
227
|
+
if ('body' not in params or
|
|
228
|
+
params['body'] is None):
|
|
229
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_complete_multi_part_upload`") # noqa: E501
|
|
230
|
+
# verify the required parameter 'project_id' is set
|
|
231
|
+
if ('project_id' not in params or
|
|
232
|
+
params['project_id'] is None):
|
|
233
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_complete_multi_part_upload`") # noqa: E501
|
|
234
|
+
# verify the required parameter 'model_id' is set
|
|
235
|
+
if ('model_id' not in params or
|
|
236
|
+
params['model_id'] is None):
|
|
237
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_complete_multi_part_upload`") # noqa: E501
|
|
238
|
+
# verify the required parameter 'version' is set
|
|
239
|
+
if ('version' not in params or
|
|
240
|
+
params['version'] is None):
|
|
241
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_complete_multi_part_upload`") # noqa: E501
|
|
242
|
+
# verify the required parameter 'upload_id' is set
|
|
243
|
+
if ('upload_id' not in params or
|
|
244
|
+
params['upload_id'] is None):
|
|
245
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `models_store_complete_multi_part_upload`") # noqa: E501
|
|
246
|
+
|
|
247
|
+
collection_formats = {}
|
|
248
|
+
|
|
249
|
+
path_params = {}
|
|
250
|
+
if 'project_id' in params:
|
|
251
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
252
|
+
if 'model_id' in params:
|
|
253
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
254
|
+
if 'version' in params:
|
|
255
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
256
|
+
if 'upload_id' in params:
|
|
257
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
258
|
+
|
|
259
|
+
query_params = []
|
|
260
|
+
|
|
261
|
+
header_params = {}
|
|
262
|
+
|
|
263
|
+
form_params = []
|
|
264
|
+
local_var_files = {}
|
|
265
|
+
|
|
266
|
+
body_params = None
|
|
267
|
+
if 'body' in params:
|
|
268
|
+
body_params = params['body']
|
|
269
|
+
# HTTP header `Accept`
|
|
270
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
271
|
+
['application/json']) # noqa: E501
|
|
272
|
+
|
|
273
|
+
# HTTP header `Content-Type`
|
|
274
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
275
|
+
['application/json']) # noqa: E501
|
|
276
|
+
|
|
277
|
+
# Authentication setting
|
|
278
|
+
auth_settings = [] # noqa: E501
|
|
279
|
+
|
|
280
|
+
return self.api_client.call_api(
|
|
281
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/uploads/{uploadId}/complete', 'POST',
|
|
282
|
+
path_params,
|
|
283
|
+
query_params,
|
|
284
|
+
header_params,
|
|
285
|
+
body=body_params,
|
|
286
|
+
post_params=form_params,
|
|
287
|
+
files=local_var_files,
|
|
288
|
+
response_type='V1CompleteMultiPartUploadResponse', # noqa: E501
|
|
289
|
+
auth_settings=auth_settings,
|
|
290
|
+
async_req=params.get('async_req'),
|
|
291
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
292
|
+
_preload_content=params.get('_preload_content', True),
|
|
293
|
+
_request_timeout=params.get('_request_timeout'),
|
|
294
|
+
collection_formats=collection_formats)
|
|
295
|
+
|
|
296
|
+
def models_store_create_model(self, body: 'ProjectIdModelsBody', project_id: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
297
|
+
"""CreateModel creates a new version of a model and marks the upload as incomplete. Files are expected to be uploaded using the multi-part upload APIs below, followed by a completion request after which the model will be fully visible (can list, delete etc.) # noqa: E501
|
|
298
|
+
|
|
299
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
300
|
+
asynchronous HTTP request, please pass async_req=True
|
|
301
|
+
>>> thread = api.models_store_create_model(body, project_id, async_req=True)
|
|
302
|
+
>>> result = thread.get()
|
|
303
|
+
|
|
304
|
+
:param async_req bool
|
|
305
|
+
:param ProjectIdModelsBody body: (required)
|
|
306
|
+
:param str project_id: (required)
|
|
307
|
+
:return: V1ModelVersionArchive
|
|
308
|
+
If the method is called asynchronously,
|
|
309
|
+
returns the request thread.
|
|
310
|
+
"""
|
|
311
|
+
kwargs['_return_http_data_only'] = True
|
|
312
|
+
if kwargs.get('async_req'):
|
|
313
|
+
return self.models_store_create_model_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
314
|
+
else:
|
|
315
|
+
(data) = self.models_store_create_model_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
316
|
+
return data
|
|
317
|
+
|
|
318
|
+
def models_store_create_model_with_http_info(self, body: 'ProjectIdModelsBody', project_id: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
319
|
+
"""CreateModel creates a new version of a model and marks the upload as incomplete. Files are expected to be uploaded using the multi-part upload APIs below, followed by a completion request after which the model will be fully visible (can list, delete etc.) # noqa: E501
|
|
320
|
+
|
|
321
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
322
|
+
asynchronous HTTP request, please pass async_req=True
|
|
323
|
+
>>> thread = api.models_store_create_model_with_http_info(body, project_id, async_req=True)
|
|
324
|
+
>>> result = thread.get()
|
|
325
|
+
|
|
326
|
+
:param async_req bool
|
|
327
|
+
:param ProjectIdModelsBody body: (required)
|
|
328
|
+
:param str project_id: (required)
|
|
329
|
+
:return: V1ModelVersionArchive
|
|
330
|
+
If the method is called asynchronously,
|
|
331
|
+
returns the request thread.
|
|
332
|
+
"""
|
|
333
|
+
|
|
334
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
335
|
+
all_params.append('async_req')
|
|
336
|
+
all_params.append('_return_http_data_only')
|
|
337
|
+
all_params.append('_preload_content')
|
|
338
|
+
all_params.append('_request_timeout')
|
|
339
|
+
|
|
340
|
+
params = locals()
|
|
341
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
342
|
+
if key not in all_params:
|
|
343
|
+
raise TypeError(
|
|
344
|
+
"Got an unexpected keyword argument '%s'"
|
|
345
|
+
" to method models_store_create_model" % key
|
|
346
|
+
)
|
|
347
|
+
params[key] = val
|
|
348
|
+
del params['kwargs']
|
|
349
|
+
# verify the required parameter 'body' is set
|
|
350
|
+
if ('body' not in params or
|
|
351
|
+
params['body'] is None):
|
|
352
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_create_model`") # noqa: E501
|
|
353
|
+
# verify the required parameter 'project_id' is set
|
|
354
|
+
if ('project_id' not in params or
|
|
355
|
+
params['project_id'] is None):
|
|
356
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_create_model`") # noqa: E501
|
|
357
|
+
|
|
358
|
+
collection_formats = {}
|
|
359
|
+
|
|
360
|
+
path_params = {}
|
|
361
|
+
if 'project_id' in params:
|
|
362
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
363
|
+
|
|
364
|
+
query_params = []
|
|
365
|
+
|
|
366
|
+
header_params = {}
|
|
367
|
+
|
|
368
|
+
form_params = []
|
|
369
|
+
local_var_files = {}
|
|
370
|
+
|
|
371
|
+
body_params = None
|
|
372
|
+
if 'body' in params:
|
|
373
|
+
body_params = params['body']
|
|
374
|
+
# HTTP header `Accept`
|
|
375
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
376
|
+
['application/json']) # noqa: E501
|
|
377
|
+
|
|
378
|
+
# HTTP header `Content-Type`
|
|
379
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
380
|
+
['application/json']) # noqa: E501
|
|
381
|
+
|
|
382
|
+
# Authentication setting
|
|
383
|
+
auth_settings = [] # noqa: E501
|
|
384
|
+
|
|
385
|
+
return self.api_client.call_api(
|
|
386
|
+
'/v1/projects/{projectId}/models', 'POST',
|
|
387
|
+
path_params,
|
|
388
|
+
query_params,
|
|
389
|
+
header_params,
|
|
390
|
+
body=body_params,
|
|
391
|
+
post_params=form_params,
|
|
392
|
+
files=local_var_files,
|
|
393
|
+
response_type='V1ModelVersionArchive', # noqa: E501
|
|
394
|
+
auth_settings=auth_settings,
|
|
395
|
+
async_req=params.get('async_req'),
|
|
396
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
397
|
+
_preload_content=params.get('_preload_content', True),
|
|
398
|
+
_request_timeout=params.get('_request_timeout'),
|
|
399
|
+
collection_formats=collection_formats)
|
|
400
|
+
|
|
401
|
+
def models_store_create_model_version(self, body: 'ModelIdVersionsBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
402
|
+
"""models_store_create_model_version # noqa: E501
|
|
403
|
+
|
|
404
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
405
|
+
asynchronous HTTP request, please pass async_req=True
|
|
406
|
+
>>> thread = api.models_store_create_model_version(body, project_id, model_id, async_req=True)
|
|
407
|
+
>>> result = thread.get()
|
|
408
|
+
|
|
409
|
+
:param async_req bool
|
|
410
|
+
:param ModelIdVersionsBody body: (required)
|
|
411
|
+
:param str project_id: (required)
|
|
412
|
+
:param str model_id: (required)
|
|
413
|
+
:return: V1ModelVersionArchive
|
|
414
|
+
If the method is called asynchronously,
|
|
415
|
+
returns the request thread.
|
|
416
|
+
"""
|
|
417
|
+
kwargs['_return_http_data_only'] = True
|
|
418
|
+
if kwargs.get('async_req'):
|
|
419
|
+
return self.models_store_create_model_version_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
420
|
+
else:
|
|
421
|
+
(data) = self.models_store_create_model_version_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
422
|
+
return data
|
|
423
|
+
|
|
424
|
+
def models_store_create_model_version_with_http_info(self, body: 'ModelIdVersionsBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
425
|
+
"""models_store_create_model_version # noqa: E501
|
|
426
|
+
|
|
427
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
428
|
+
asynchronous HTTP request, please pass async_req=True
|
|
429
|
+
>>> thread = api.models_store_create_model_version_with_http_info(body, project_id, model_id, async_req=True)
|
|
430
|
+
>>> result = thread.get()
|
|
431
|
+
|
|
432
|
+
:param async_req bool
|
|
433
|
+
:param ModelIdVersionsBody body: (required)
|
|
434
|
+
:param str project_id: (required)
|
|
435
|
+
:param str model_id: (required)
|
|
436
|
+
:return: V1ModelVersionArchive
|
|
437
|
+
If the method is called asynchronously,
|
|
438
|
+
returns the request thread.
|
|
439
|
+
"""
|
|
440
|
+
|
|
441
|
+
all_params = ['body', 'project_id', 'model_id'] # noqa: E501
|
|
442
|
+
all_params.append('async_req')
|
|
443
|
+
all_params.append('_return_http_data_only')
|
|
444
|
+
all_params.append('_preload_content')
|
|
445
|
+
all_params.append('_request_timeout')
|
|
446
|
+
|
|
447
|
+
params = locals()
|
|
448
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
449
|
+
if key not in all_params:
|
|
450
|
+
raise TypeError(
|
|
451
|
+
"Got an unexpected keyword argument '%s'"
|
|
452
|
+
" to method models_store_create_model_version" % key
|
|
453
|
+
)
|
|
454
|
+
params[key] = val
|
|
455
|
+
del params['kwargs']
|
|
456
|
+
# verify the required parameter 'body' is set
|
|
457
|
+
if ('body' not in params or
|
|
458
|
+
params['body'] is None):
|
|
459
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_create_model_version`") # noqa: E501
|
|
460
|
+
# verify the required parameter 'project_id' is set
|
|
461
|
+
if ('project_id' not in params or
|
|
462
|
+
params['project_id'] is None):
|
|
463
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_create_model_version`") # noqa: E501
|
|
464
|
+
# verify the required parameter 'model_id' is set
|
|
465
|
+
if ('model_id' not in params or
|
|
466
|
+
params['model_id'] is None):
|
|
467
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_create_model_version`") # noqa: E501
|
|
468
|
+
|
|
469
|
+
collection_formats = {}
|
|
470
|
+
|
|
471
|
+
path_params = {}
|
|
472
|
+
if 'project_id' in params:
|
|
473
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
474
|
+
if 'model_id' in params:
|
|
475
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
476
|
+
|
|
477
|
+
query_params = []
|
|
478
|
+
|
|
479
|
+
header_params = {}
|
|
480
|
+
|
|
481
|
+
form_params = []
|
|
482
|
+
local_var_files = {}
|
|
483
|
+
|
|
484
|
+
body_params = None
|
|
485
|
+
if 'body' in params:
|
|
486
|
+
body_params = params['body']
|
|
487
|
+
# HTTP header `Accept`
|
|
488
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
489
|
+
['application/json']) # noqa: E501
|
|
490
|
+
|
|
491
|
+
# HTTP header `Content-Type`
|
|
492
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
493
|
+
['application/json']) # noqa: E501
|
|
494
|
+
|
|
495
|
+
# Authentication setting
|
|
496
|
+
auth_settings = [] # noqa: E501
|
|
497
|
+
|
|
498
|
+
return self.api_client.call_api(
|
|
499
|
+
'/v1/projects/{projectId}/models/{modelId}/versions', 'POST',
|
|
500
|
+
path_params,
|
|
501
|
+
query_params,
|
|
502
|
+
header_params,
|
|
503
|
+
body=body_params,
|
|
504
|
+
post_params=form_params,
|
|
505
|
+
files=local_var_files,
|
|
506
|
+
response_type='V1ModelVersionArchive', # noqa: E501
|
|
507
|
+
auth_settings=auth_settings,
|
|
508
|
+
async_req=params.get('async_req'),
|
|
509
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
510
|
+
_preload_content=params.get('_preload_content', True),
|
|
511
|
+
_request_timeout=params.get('_request_timeout'),
|
|
512
|
+
collection_formats=collection_formats)
|
|
513
|
+
|
|
514
|
+
def models_store_create_multi_part_upload(self, body: 'VersionUploadsBody', project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1CreateMultiPartUploadResponse': # noqa: E501
|
|
515
|
+
"""CreateMultiPartUpload initiates the multi-part upload of a file. Multiple requests can be sent to upload different files. # noqa: E501
|
|
516
|
+
|
|
517
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
518
|
+
asynchronous HTTP request, please pass async_req=True
|
|
519
|
+
>>> thread = api.models_store_create_multi_part_upload(body, project_id, model_id, version, async_req=True)
|
|
520
|
+
>>> result = thread.get()
|
|
521
|
+
|
|
522
|
+
:param async_req bool
|
|
523
|
+
:param VersionUploadsBody body: (required)
|
|
524
|
+
:param str project_id: (required)
|
|
525
|
+
:param str model_id: (required)
|
|
526
|
+
:param str version: (required)
|
|
527
|
+
:return: V1CreateMultiPartUploadResponse
|
|
528
|
+
If the method is called asynchronously,
|
|
529
|
+
returns the request thread.
|
|
530
|
+
"""
|
|
531
|
+
kwargs['_return_http_data_only'] = True
|
|
532
|
+
if kwargs.get('async_req'):
|
|
533
|
+
return self.models_store_create_multi_part_upload_with_http_info(body, project_id, model_id, version, **kwargs) # noqa: E501
|
|
534
|
+
else:
|
|
535
|
+
(data) = self.models_store_create_multi_part_upload_with_http_info(body, project_id, model_id, version, **kwargs) # noqa: E501
|
|
536
|
+
return data
|
|
537
|
+
|
|
538
|
+
def models_store_create_multi_part_upload_with_http_info(self, body: 'VersionUploadsBody', project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1CreateMultiPartUploadResponse': # noqa: E501
|
|
539
|
+
"""CreateMultiPartUpload initiates the multi-part upload of a file. Multiple requests can be sent to upload different files. # noqa: E501
|
|
540
|
+
|
|
541
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
542
|
+
asynchronous HTTP request, please pass async_req=True
|
|
543
|
+
>>> thread = api.models_store_create_multi_part_upload_with_http_info(body, project_id, model_id, version, async_req=True)
|
|
544
|
+
>>> result = thread.get()
|
|
545
|
+
|
|
546
|
+
:param async_req bool
|
|
547
|
+
:param VersionUploadsBody body: (required)
|
|
548
|
+
:param str project_id: (required)
|
|
549
|
+
:param str model_id: (required)
|
|
550
|
+
:param str version: (required)
|
|
551
|
+
:return: V1CreateMultiPartUploadResponse
|
|
552
|
+
If the method is called asynchronously,
|
|
553
|
+
returns the request thread.
|
|
554
|
+
"""
|
|
555
|
+
|
|
556
|
+
all_params = ['body', 'project_id', 'model_id', 'version'] # noqa: E501
|
|
557
|
+
all_params.append('async_req')
|
|
558
|
+
all_params.append('_return_http_data_only')
|
|
559
|
+
all_params.append('_preload_content')
|
|
560
|
+
all_params.append('_request_timeout')
|
|
561
|
+
|
|
562
|
+
params = locals()
|
|
563
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
564
|
+
if key not in all_params:
|
|
565
|
+
raise TypeError(
|
|
566
|
+
"Got an unexpected keyword argument '%s'"
|
|
567
|
+
" to method models_store_create_multi_part_upload" % key
|
|
568
|
+
)
|
|
569
|
+
params[key] = val
|
|
570
|
+
del params['kwargs']
|
|
571
|
+
# verify the required parameter 'body' is set
|
|
572
|
+
if ('body' not in params or
|
|
573
|
+
params['body'] is None):
|
|
574
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_create_multi_part_upload`") # noqa: E501
|
|
575
|
+
# verify the required parameter 'project_id' is set
|
|
576
|
+
if ('project_id' not in params or
|
|
577
|
+
params['project_id'] is None):
|
|
578
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_create_multi_part_upload`") # noqa: E501
|
|
579
|
+
# verify the required parameter 'model_id' is set
|
|
580
|
+
if ('model_id' not in params or
|
|
581
|
+
params['model_id'] is None):
|
|
582
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_create_multi_part_upload`") # noqa: E501
|
|
583
|
+
# verify the required parameter 'version' is set
|
|
584
|
+
if ('version' not in params or
|
|
585
|
+
params['version'] is None):
|
|
586
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_create_multi_part_upload`") # noqa: E501
|
|
587
|
+
|
|
588
|
+
collection_formats = {}
|
|
589
|
+
|
|
590
|
+
path_params = {}
|
|
591
|
+
if 'project_id' in params:
|
|
592
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
593
|
+
if 'model_id' in params:
|
|
594
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
595
|
+
if 'version' in params:
|
|
596
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
597
|
+
|
|
598
|
+
query_params = []
|
|
599
|
+
|
|
600
|
+
header_params = {}
|
|
601
|
+
|
|
602
|
+
form_params = []
|
|
603
|
+
local_var_files = {}
|
|
604
|
+
|
|
605
|
+
body_params = None
|
|
606
|
+
if 'body' in params:
|
|
607
|
+
body_params = params['body']
|
|
608
|
+
# HTTP header `Accept`
|
|
609
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
610
|
+
['application/json']) # noqa: E501
|
|
611
|
+
|
|
612
|
+
# HTTP header `Content-Type`
|
|
613
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
614
|
+
['application/json']) # noqa: E501
|
|
615
|
+
|
|
616
|
+
# Authentication setting
|
|
617
|
+
auth_settings = [] # noqa: E501
|
|
618
|
+
|
|
619
|
+
return self.api_client.call_api(
|
|
620
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/uploads', 'POST',
|
|
621
|
+
path_params,
|
|
622
|
+
query_params,
|
|
623
|
+
header_params,
|
|
624
|
+
body=body_params,
|
|
625
|
+
post_params=form_params,
|
|
626
|
+
files=local_var_files,
|
|
627
|
+
response_type='V1CreateMultiPartUploadResponse', # noqa: E501
|
|
628
|
+
auth_settings=auth_settings,
|
|
629
|
+
async_req=params.get('async_req'),
|
|
630
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
631
|
+
_preload_content=params.get('_preload_content', True),
|
|
632
|
+
_request_timeout=params.get('_request_timeout'),
|
|
633
|
+
collection_formats=collection_formats)
|
|
634
|
+
|
|
46
635
|
def models_store_delete_model(self, project_id: 'str', model_id: 'str', **kwargs) -> 'V1DeleteModelResponse': # noqa: E501
|
|
47
636
|
"""DeleteModel is used to delete the model and all uploaded archives # noqa: E501
|
|
48
637
|
|
|
49
638
|
This method makes a synchronous HTTP request by default. To make an
|
|
50
639
|
asynchronous HTTP request, please pass async_req=True
|
|
51
|
-
>>> thread = api.models_store_delete_model(project_id, model_id, async_req=True)
|
|
640
|
+
>>> thread = api.models_store_delete_model(project_id, model_id, async_req=True)
|
|
641
|
+
>>> result = thread.get()
|
|
642
|
+
|
|
643
|
+
:param async_req bool
|
|
644
|
+
:param str project_id: (required)
|
|
645
|
+
:param str model_id: (required)
|
|
646
|
+
:return: V1DeleteModelResponse
|
|
647
|
+
If the method is called asynchronously,
|
|
648
|
+
returns the request thread.
|
|
649
|
+
"""
|
|
650
|
+
kwargs['_return_http_data_only'] = True
|
|
651
|
+
if kwargs.get('async_req'):
|
|
652
|
+
return self.models_store_delete_model_with_http_info(project_id, model_id, **kwargs) # noqa: E501
|
|
653
|
+
else:
|
|
654
|
+
(data) = self.models_store_delete_model_with_http_info(project_id, model_id, **kwargs) # noqa: E501
|
|
655
|
+
return data
|
|
656
|
+
|
|
657
|
+
def models_store_delete_model_with_http_info(self, project_id: 'str', model_id: 'str', **kwargs) -> 'V1DeleteModelResponse': # noqa: E501
|
|
658
|
+
"""DeleteModel is used to delete the model and all uploaded archives # noqa: E501
|
|
659
|
+
|
|
660
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
661
|
+
asynchronous HTTP request, please pass async_req=True
|
|
662
|
+
>>> thread = api.models_store_delete_model_with_http_info(project_id, model_id, async_req=True)
|
|
663
|
+
>>> result = thread.get()
|
|
664
|
+
|
|
665
|
+
:param async_req bool
|
|
666
|
+
:param str project_id: (required)
|
|
667
|
+
:param str model_id: (required)
|
|
668
|
+
:return: V1DeleteModelResponse
|
|
669
|
+
If the method is called asynchronously,
|
|
670
|
+
returns the request thread.
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
all_params = ['project_id', 'model_id'] # noqa: E501
|
|
674
|
+
all_params.append('async_req')
|
|
675
|
+
all_params.append('_return_http_data_only')
|
|
676
|
+
all_params.append('_preload_content')
|
|
677
|
+
all_params.append('_request_timeout')
|
|
678
|
+
|
|
679
|
+
params = locals()
|
|
680
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
681
|
+
if key not in all_params:
|
|
682
|
+
raise TypeError(
|
|
683
|
+
"Got an unexpected keyword argument '%s'"
|
|
684
|
+
" to method models_store_delete_model" % key
|
|
685
|
+
)
|
|
686
|
+
params[key] = val
|
|
687
|
+
del params['kwargs']
|
|
688
|
+
# verify the required parameter 'project_id' is set
|
|
689
|
+
if ('project_id' not in params or
|
|
690
|
+
params['project_id'] is None):
|
|
691
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_delete_model`") # noqa: E501
|
|
692
|
+
# verify the required parameter 'model_id' is set
|
|
693
|
+
if ('model_id' not in params or
|
|
694
|
+
params['model_id'] is None):
|
|
695
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_delete_model`") # noqa: E501
|
|
696
|
+
|
|
697
|
+
collection_formats = {}
|
|
698
|
+
|
|
699
|
+
path_params = {}
|
|
700
|
+
if 'project_id' in params:
|
|
701
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
702
|
+
if 'model_id' in params:
|
|
703
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
704
|
+
|
|
705
|
+
query_params = []
|
|
706
|
+
|
|
707
|
+
header_params = {}
|
|
708
|
+
|
|
709
|
+
form_params = []
|
|
710
|
+
local_var_files = {}
|
|
711
|
+
|
|
712
|
+
body_params = None
|
|
713
|
+
# HTTP header `Accept`
|
|
714
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
715
|
+
['application/json']) # noqa: E501
|
|
716
|
+
|
|
717
|
+
# Authentication setting
|
|
718
|
+
auth_settings = [] # noqa: E501
|
|
719
|
+
|
|
720
|
+
return self.api_client.call_api(
|
|
721
|
+
'/v1/projects/{projectId}/models/{modelId}', 'DELETE',
|
|
722
|
+
path_params,
|
|
723
|
+
query_params,
|
|
724
|
+
header_params,
|
|
725
|
+
body=body_params,
|
|
726
|
+
post_params=form_params,
|
|
727
|
+
files=local_var_files,
|
|
728
|
+
response_type='V1DeleteModelResponse', # noqa: E501
|
|
729
|
+
auth_settings=auth_settings,
|
|
730
|
+
async_req=params.get('async_req'),
|
|
731
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
732
|
+
_preload_content=params.get('_preload_content', True),
|
|
733
|
+
_request_timeout=params.get('_request_timeout'),
|
|
734
|
+
collection_formats=collection_formats)
|
|
735
|
+
|
|
736
|
+
def models_store_delete_model_version(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1DeleteModelVersionResponse': # noqa: E501
|
|
737
|
+
"""DeleteModelVersion is used to delete a specific model version # noqa: E501
|
|
738
|
+
|
|
739
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
740
|
+
asynchronous HTTP request, please pass async_req=True
|
|
741
|
+
>>> thread = api.models_store_delete_model_version(project_id, model_id, version, async_req=True)
|
|
742
|
+
>>> result = thread.get()
|
|
743
|
+
|
|
744
|
+
:param async_req bool
|
|
745
|
+
:param str project_id: (required)
|
|
746
|
+
:param str model_id: (required)
|
|
747
|
+
:param str version: (required)
|
|
748
|
+
:return: V1DeleteModelVersionResponse
|
|
749
|
+
If the method is called asynchronously,
|
|
750
|
+
returns the request thread.
|
|
751
|
+
"""
|
|
752
|
+
kwargs['_return_http_data_only'] = True
|
|
753
|
+
if kwargs.get('async_req'):
|
|
754
|
+
return self.models_store_delete_model_version_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
755
|
+
else:
|
|
756
|
+
(data) = self.models_store_delete_model_version_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
757
|
+
return data
|
|
758
|
+
|
|
759
|
+
def models_store_delete_model_version_with_http_info(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1DeleteModelVersionResponse': # noqa: E501
|
|
760
|
+
"""DeleteModelVersion is used to delete a specific model version # noqa: E501
|
|
761
|
+
|
|
762
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
763
|
+
asynchronous HTTP request, please pass async_req=True
|
|
764
|
+
>>> thread = api.models_store_delete_model_version_with_http_info(project_id, model_id, version, async_req=True)
|
|
765
|
+
>>> result = thread.get()
|
|
766
|
+
|
|
767
|
+
:param async_req bool
|
|
768
|
+
:param str project_id: (required)
|
|
769
|
+
:param str model_id: (required)
|
|
770
|
+
:param str version: (required)
|
|
771
|
+
:return: V1DeleteModelVersionResponse
|
|
772
|
+
If the method is called asynchronously,
|
|
773
|
+
returns the request thread.
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
all_params = ['project_id', 'model_id', 'version'] # noqa: E501
|
|
777
|
+
all_params.append('async_req')
|
|
778
|
+
all_params.append('_return_http_data_only')
|
|
779
|
+
all_params.append('_preload_content')
|
|
780
|
+
all_params.append('_request_timeout')
|
|
781
|
+
|
|
782
|
+
params = locals()
|
|
783
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
784
|
+
if key not in all_params:
|
|
785
|
+
raise TypeError(
|
|
786
|
+
"Got an unexpected keyword argument '%s'"
|
|
787
|
+
" to method models_store_delete_model_version" % key
|
|
788
|
+
)
|
|
789
|
+
params[key] = val
|
|
790
|
+
del params['kwargs']
|
|
791
|
+
# verify the required parameter 'project_id' is set
|
|
792
|
+
if ('project_id' not in params or
|
|
793
|
+
params['project_id'] is None):
|
|
794
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_delete_model_version`") # noqa: E501
|
|
795
|
+
# verify the required parameter 'model_id' is set
|
|
796
|
+
if ('model_id' not in params or
|
|
797
|
+
params['model_id'] is None):
|
|
798
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_delete_model_version`") # noqa: E501
|
|
799
|
+
# verify the required parameter 'version' is set
|
|
800
|
+
if ('version' not in params or
|
|
801
|
+
params['version'] is None):
|
|
802
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_delete_model_version`") # noqa: E501
|
|
803
|
+
|
|
804
|
+
collection_formats = {}
|
|
805
|
+
|
|
806
|
+
path_params = {}
|
|
807
|
+
if 'project_id' in params:
|
|
808
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
809
|
+
if 'model_id' in params:
|
|
810
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
811
|
+
if 'version' in params:
|
|
812
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
813
|
+
|
|
814
|
+
query_params = []
|
|
815
|
+
|
|
816
|
+
header_params = {}
|
|
817
|
+
|
|
818
|
+
form_params = []
|
|
819
|
+
local_var_files = {}
|
|
820
|
+
|
|
821
|
+
body_params = None
|
|
822
|
+
# HTTP header `Accept`
|
|
823
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
824
|
+
['application/json']) # noqa: E501
|
|
825
|
+
|
|
826
|
+
# Authentication setting
|
|
827
|
+
auth_settings = [] # noqa: E501
|
|
828
|
+
|
|
829
|
+
return self.api_client.call_api(
|
|
830
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}', 'DELETE',
|
|
831
|
+
path_params,
|
|
832
|
+
query_params,
|
|
833
|
+
header_params,
|
|
834
|
+
body=body_params,
|
|
835
|
+
post_params=form_params,
|
|
836
|
+
files=local_var_files,
|
|
837
|
+
response_type='V1DeleteModelVersionResponse', # noqa: E501
|
|
838
|
+
auth_settings=auth_settings,
|
|
839
|
+
async_req=params.get('async_req'),
|
|
840
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
841
|
+
_preload_content=params.get('_preload_content', True),
|
|
842
|
+
_request_timeout=params.get('_request_timeout'),
|
|
843
|
+
collection_formats=collection_formats)
|
|
844
|
+
|
|
845
|
+
def models_store_get_model(self, project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
846
|
+
"""GetModel used to get specific model details # noqa: E501
|
|
847
|
+
|
|
848
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
849
|
+
asynchronous HTTP request, please pass async_req=True
|
|
850
|
+
>>> thread = api.models_store_get_model(project_id, model_id, async_req=True)
|
|
851
|
+
>>> result = thread.get()
|
|
852
|
+
|
|
853
|
+
:param async_req bool
|
|
854
|
+
:param str project_id: (required)
|
|
855
|
+
:param str model_id: (required)
|
|
856
|
+
:return: V1Model
|
|
857
|
+
If the method is called asynchronously,
|
|
858
|
+
returns the request thread.
|
|
859
|
+
"""
|
|
860
|
+
kwargs['_return_http_data_only'] = True
|
|
861
|
+
if kwargs.get('async_req'):
|
|
862
|
+
return self.models_store_get_model_with_http_info(project_id, model_id, **kwargs) # noqa: E501
|
|
863
|
+
else:
|
|
864
|
+
(data) = self.models_store_get_model_with_http_info(project_id, model_id, **kwargs) # noqa: E501
|
|
865
|
+
return data
|
|
866
|
+
|
|
867
|
+
def models_store_get_model_with_http_info(self, project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
868
|
+
"""GetModel used to get specific model details # noqa: E501
|
|
869
|
+
|
|
870
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
871
|
+
asynchronous HTTP request, please pass async_req=True
|
|
872
|
+
>>> thread = api.models_store_get_model_with_http_info(project_id, model_id, async_req=True)
|
|
873
|
+
>>> result = thread.get()
|
|
874
|
+
|
|
875
|
+
:param async_req bool
|
|
876
|
+
:param str project_id: (required)
|
|
877
|
+
:param str model_id: (required)
|
|
878
|
+
:return: V1Model
|
|
879
|
+
If the method is called asynchronously,
|
|
880
|
+
returns the request thread.
|
|
881
|
+
"""
|
|
882
|
+
|
|
883
|
+
all_params = ['project_id', 'model_id'] # noqa: E501
|
|
884
|
+
all_params.append('async_req')
|
|
885
|
+
all_params.append('_return_http_data_only')
|
|
886
|
+
all_params.append('_preload_content')
|
|
887
|
+
all_params.append('_request_timeout')
|
|
888
|
+
|
|
889
|
+
params = locals()
|
|
890
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
891
|
+
if key not in all_params:
|
|
892
|
+
raise TypeError(
|
|
893
|
+
"Got an unexpected keyword argument '%s'"
|
|
894
|
+
" to method models_store_get_model" % key
|
|
895
|
+
)
|
|
896
|
+
params[key] = val
|
|
897
|
+
del params['kwargs']
|
|
898
|
+
# verify the required parameter 'project_id' is set
|
|
899
|
+
if ('project_id' not in params or
|
|
900
|
+
params['project_id'] is None):
|
|
901
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_get_model`") # noqa: E501
|
|
902
|
+
# verify the required parameter 'model_id' is set
|
|
903
|
+
if ('model_id' not in params or
|
|
904
|
+
params['model_id'] is None):
|
|
905
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_get_model`") # noqa: E501
|
|
906
|
+
|
|
907
|
+
collection_formats = {}
|
|
908
|
+
|
|
909
|
+
path_params = {}
|
|
910
|
+
if 'project_id' in params:
|
|
911
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
912
|
+
if 'model_id' in params:
|
|
913
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
914
|
+
|
|
915
|
+
query_params = []
|
|
916
|
+
|
|
917
|
+
header_params = {}
|
|
918
|
+
|
|
919
|
+
form_params = []
|
|
920
|
+
local_var_files = {}
|
|
921
|
+
|
|
922
|
+
body_params = None
|
|
923
|
+
# HTTP header `Accept`
|
|
924
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
925
|
+
['application/json']) # noqa: E501
|
|
926
|
+
|
|
927
|
+
# Authentication setting
|
|
928
|
+
auth_settings = [] # noqa: E501
|
|
929
|
+
|
|
930
|
+
return self.api_client.call_api(
|
|
931
|
+
'/v1/projects/{projectId}/models/{modelId}', 'GET',
|
|
932
|
+
path_params,
|
|
933
|
+
query_params,
|
|
934
|
+
header_params,
|
|
935
|
+
body=body_params,
|
|
936
|
+
post_params=form_params,
|
|
937
|
+
files=local_var_files,
|
|
938
|
+
response_type='V1Model', # noqa: E501
|
|
939
|
+
auth_settings=auth_settings,
|
|
940
|
+
async_req=params.get('async_req'),
|
|
941
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
942
|
+
_preload_content=params.get('_preload_content', True),
|
|
943
|
+
_request_timeout=params.get('_request_timeout'),
|
|
944
|
+
collection_formats=collection_formats)
|
|
945
|
+
|
|
946
|
+
def models_store_get_model_by_name(self, project_owner_name: 'str', project_name: 'str', model_name: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
947
|
+
"""models_store_get_model_by_name # noqa: E501
|
|
948
|
+
|
|
949
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
950
|
+
asynchronous HTTP request, please pass async_req=True
|
|
951
|
+
>>> thread = api.models_store_get_model_by_name(project_owner_name, project_name, model_name, async_req=True)
|
|
952
|
+
>>> result = thread.get()
|
|
953
|
+
|
|
954
|
+
:param async_req bool
|
|
955
|
+
:param str project_owner_name: (required)
|
|
956
|
+
:param str project_name: (required)
|
|
957
|
+
:param str model_name: (required)
|
|
958
|
+
:return: V1Model
|
|
959
|
+
If the method is called asynchronously,
|
|
960
|
+
returns the request thread.
|
|
961
|
+
"""
|
|
962
|
+
kwargs['_return_http_data_only'] = True
|
|
963
|
+
if kwargs.get('async_req'):
|
|
964
|
+
return self.models_store_get_model_by_name_with_http_info(project_owner_name, project_name, model_name, **kwargs) # noqa: E501
|
|
965
|
+
else:
|
|
966
|
+
(data) = self.models_store_get_model_by_name_with_http_info(project_owner_name, project_name, model_name, **kwargs) # noqa: E501
|
|
967
|
+
return data
|
|
968
|
+
|
|
969
|
+
def models_store_get_model_by_name_with_http_info(self, project_owner_name: 'str', project_name: 'str', model_name: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
970
|
+
"""models_store_get_model_by_name # noqa: E501
|
|
971
|
+
|
|
972
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
973
|
+
asynchronous HTTP request, please pass async_req=True
|
|
974
|
+
>>> thread = api.models_store_get_model_by_name_with_http_info(project_owner_name, project_name, model_name, async_req=True)
|
|
975
|
+
>>> result = thread.get()
|
|
976
|
+
|
|
977
|
+
:param async_req bool
|
|
978
|
+
:param str project_owner_name: (required)
|
|
979
|
+
:param str project_name: (required)
|
|
980
|
+
:param str model_name: (required)
|
|
981
|
+
:return: V1Model
|
|
982
|
+
If the method is called asynchronously,
|
|
983
|
+
returns the request thread.
|
|
984
|
+
"""
|
|
985
|
+
|
|
986
|
+
all_params = ['project_owner_name', 'project_name', 'model_name'] # noqa: E501
|
|
987
|
+
all_params.append('async_req')
|
|
988
|
+
all_params.append('_return_http_data_only')
|
|
989
|
+
all_params.append('_preload_content')
|
|
990
|
+
all_params.append('_request_timeout')
|
|
991
|
+
|
|
992
|
+
params = locals()
|
|
993
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
994
|
+
if key not in all_params:
|
|
995
|
+
raise TypeError(
|
|
996
|
+
"Got an unexpected keyword argument '%s'"
|
|
997
|
+
" to method models_store_get_model_by_name" % key
|
|
998
|
+
)
|
|
999
|
+
params[key] = val
|
|
1000
|
+
del params['kwargs']
|
|
1001
|
+
# verify the required parameter 'project_owner_name' is set
|
|
1002
|
+
if ('project_owner_name' not in params or
|
|
1003
|
+
params['project_owner_name'] is None):
|
|
1004
|
+
raise ValueError("Missing the required parameter `project_owner_name` when calling `models_store_get_model_by_name`") # noqa: E501
|
|
1005
|
+
# verify the required parameter 'project_name' is set
|
|
1006
|
+
if ('project_name' not in params or
|
|
1007
|
+
params['project_name'] is None):
|
|
1008
|
+
raise ValueError("Missing the required parameter `project_name` when calling `models_store_get_model_by_name`") # noqa: E501
|
|
1009
|
+
# verify the required parameter 'model_name' is set
|
|
1010
|
+
if ('model_name' not in params or
|
|
1011
|
+
params['model_name'] is None):
|
|
1012
|
+
raise ValueError("Missing the required parameter `model_name` when calling `models_store_get_model_by_name`") # noqa: E501
|
|
1013
|
+
|
|
1014
|
+
collection_formats = {}
|
|
1015
|
+
|
|
1016
|
+
path_params = {}
|
|
1017
|
+
if 'project_owner_name' in params:
|
|
1018
|
+
path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
|
|
1019
|
+
if 'project_name' in params:
|
|
1020
|
+
path_params['projectName'] = params['project_name'] # noqa: E501
|
|
1021
|
+
if 'model_name' in params:
|
|
1022
|
+
path_params['modelName'] = params['model_name'] # noqa: E501
|
|
1023
|
+
|
|
1024
|
+
query_params = []
|
|
1025
|
+
|
|
1026
|
+
header_params = {}
|
|
1027
|
+
|
|
1028
|
+
form_params = []
|
|
1029
|
+
local_var_files = {}
|
|
1030
|
+
|
|
1031
|
+
body_params = None
|
|
1032
|
+
# HTTP header `Accept`
|
|
1033
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1034
|
+
['application/json']) # noqa: E501
|
|
1035
|
+
|
|
1036
|
+
# Authentication setting
|
|
1037
|
+
auth_settings = [] # noqa: E501
|
|
1038
|
+
|
|
1039
|
+
return self.api_client.call_api(
|
|
1040
|
+
'/v1/projects/{projectOwnerName}/{projectName}/models/{modelName}', 'GET',
|
|
1041
|
+
path_params,
|
|
1042
|
+
query_params,
|
|
1043
|
+
header_params,
|
|
1044
|
+
body=body_params,
|
|
1045
|
+
post_params=form_params,
|
|
1046
|
+
files=local_var_files,
|
|
1047
|
+
response_type='V1Model', # noqa: E501
|
|
1048
|
+
auth_settings=auth_settings,
|
|
1049
|
+
async_req=params.get('async_req'),
|
|
1050
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1051
|
+
_preload_content=params.get('_preload_content', True),
|
|
1052
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1053
|
+
collection_formats=collection_formats)
|
|
1054
|
+
|
|
1055
|
+
def models_store_get_model_file_upload_urls(self, body: 'UploadIdPartsBody', project_id: 'str', model_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1GetModelFileUploadUrlsResponse': # noqa: E501
|
|
1056
|
+
"""GetModelFileUploadUrls requests pre-signed URLs for a given number of file parts. # noqa: E501
|
|
1057
|
+
|
|
1058
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1059
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1060
|
+
>>> thread = api.models_store_get_model_file_upload_urls(body, project_id, model_id, version, upload_id, async_req=True)
|
|
1061
|
+
>>> result = thread.get()
|
|
1062
|
+
|
|
1063
|
+
:param async_req bool
|
|
1064
|
+
:param UploadIdPartsBody body: (required)
|
|
1065
|
+
:param str project_id: (required)
|
|
1066
|
+
:param str model_id: (required)
|
|
1067
|
+
:param str version: (required)
|
|
1068
|
+
:param str upload_id: (required)
|
|
1069
|
+
:return: V1GetModelFileUploadUrlsResponse
|
|
1070
|
+
If the method is called asynchronously,
|
|
1071
|
+
returns the request thread.
|
|
1072
|
+
"""
|
|
1073
|
+
kwargs['_return_http_data_only'] = True
|
|
1074
|
+
if kwargs.get('async_req'):
|
|
1075
|
+
return self.models_store_get_model_file_upload_urls_with_http_info(body, project_id, model_id, version, upload_id, **kwargs) # noqa: E501
|
|
1076
|
+
else:
|
|
1077
|
+
(data) = self.models_store_get_model_file_upload_urls_with_http_info(body, project_id, model_id, version, upload_id, **kwargs) # noqa: E501
|
|
1078
|
+
return data
|
|
1079
|
+
|
|
1080
|
+
def models_store_get_model_file_upload_urls_with_http_info(self, body: 'UploadIdPartsBody', project_id: 'str', model_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1GetModelFileUploadUrlsResponse': # noqa: E501
|
|
1081
|
+
"""GetModelFileUploadUrls requests pre-signed URLs for a given number of file parts. # noqa: E501
|
|
1082
|
+
|
|
1083
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1084
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1085
|
+
>>> thread = api.models_store_get_model_file_upload_urls_with_http_info(body, project_id, model_id, version, upload_id, async_req=True)
|
|
1086
|
+
>>> result = thread.get()
|
|
1087
|
+
|
|
1088
|
+
:param async_req bool
|
|
1089
|
+
:param UploadIdPartsBody body: (required)
|
|
1090
|
+
:param str project_id: (required)
|
|
1091
|
+
:param str model_id: (required)
|
|
1092
|
+
:param str version: (required)
|
|
1093
|
+
:param str upload_id: (required)
|
|
1094
|
+
:return: V1GetModelFileUploadUrlsResponse
|
|
1095
|
+
If the method is called asynchronously,
|
|
1096
|
+
returns the request thread.
|
|
1097
|
+
"""
|
|
1098
|
+
|
|
1099
|
+
all_params = ['body', 'project_id', 'model_id', 'version', 'upload_id'] # noqa: E501
|
|
1100
|
+
all_params.append('async_req')
|
|
1101
|
+
all_params.append('_return_http_data_only')
|
|
1102
|
+
all_params.append('_preload_content')
|
|
1103
|
+
all_params.append('_request_timeout')
|
|
1104
|
+
|
|
1105
|
+
params = locals()
|
|
1106
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1107
|
+
if key not in all_params:
|
|
1108
|
+
raise TypeError(
|
|
1109
|
+
"Got an unexpected keyword argument '%s'"
|
|
1110
|
+
" to method models_store_get_model_file_upload_urls" % key
|
|
1111
|
+
)
|
|
1112
|
+
params[key] = val
|
|
1113
|
+
del params['kwargs']
|
|
1114
|
+
# verify the required parameter 'body' is set
|
|
1115
|
+
if ('body' not in params or
|
|
1116
|
+
params['body'] is None):
|
|
1117
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_get_model_file_upload_urls`") # noqa: E501
|
|
1118
|
+
# verify the required parameter 'project_id' is set
|
|
1119
|
+
if ('project_id' not in params or
|
|
1120
|
+
params['project_id'] is None):
|
|
1121
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_get_model_file_upload_urls`") # noqa: E501
|
|
1122
|
+
# verify the required parameter 'model_id' is set
|
|
1123
|
+
if ('model_id' not in params or
|
|
1124
|
+
params['model_id'] is None):
|
|
1125
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_get_model_file_upload_urls`") # noqa: E501
|
|
1126
|
+
# verify the required parameter 'version' is set
|
|
1127
|
+
if ('version' not in params or
|
|
1128
|
+
params['version'] is None):
|
|
1129
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_get_model_file_upload_urls`") # noqa: E501
|
|
1130
|
+
# verify the required parameter 'upload_id' is set
|
|
1131
|
+
if ('upload_id' not in params or
|
|
1132
|
+
params['upload_id'] is None):
|
|
1133
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `models_store_get_model_file_upload_urls`") # noqa: E501
|
|
1134
|
+
|
|
1135
|
+
collection_formats = {}
|
|
1136
|
+
|
|
1137
|
+
path_params = {}
|
|
1138
|
+
if 'project_id' in params:
|
|
1139
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1140
|
+
if 'model_id' in params:
|
|
1141
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1142
|
+
if 'version' in params:
|
|
1143
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1144
|
+
if 'upload_id' in params:
|
|
1145
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
1146
|
+
|
|
1147
|
+
query_params = []
|
|
1148
|
+
|
|
1149
|
+
header_params = {}
|
|
1150
|
+
|
|
1151
|
+
form_params = []
|
|
1152
|
+
local_var_files = {}
|
|
1153
|
+
|
|
1154
|
+
body_params = None
|
|
1155
|
+
if 'body' in params:
|
|
1156
|
+
body_params = params['body']
|
|
1157
|
+
# HTTP header `Accept`
|
|
1158
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1159
|
+
['application/json']) # noqa: E501
|
|
1160
|
+
|
|
1161
|
+
# HTTP header `Content-Type`
|
|
1162
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1163
|
+
['application/json']) # noqa: E501
|
|
1164
|
+
|
|
1165
|
+
# Authentication setting
|
|
1166
|
+
auth_settings = [] # noqa: E501
|
|
1167
|
+
|
|
1168
|
+
return self.api_client.call_api(
|
|
1169
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/uploads/{uploadId}/parts', 'POST',
|
|
1170
|
+
path_params,
|
|
1171
|
+
query_params,
|
|
1172
|
+
header_params,
|
|
1173
|
+
body=body_params,
|
|
1174
|
+
post_params=form_params,
|
|
1175
|
+
files=local_var_files,
|
|
1176
|
+
response_type='V1GetModelFileUploadUrlsResponse', # noqa: E501
|
|
1177
|
+
auth_settings=auth_settings,
|
|
1178
|
+
async_req=params.get('async_req'),
|
|
1179
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1180
|
+
_preload_content=params.get('_preload_content', True),
|
|
1181
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1182
|
+
collection_formats=collection_formats)
|
|
1183
|
+
|
|
1184
|
+
def models_store_get_model_file_url(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1GetModelFileUrlResponse': # noqa: E501
|
|
1185
|
+
"""GetModelFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
1186
|
+
|
|
1187
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1188
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1189
|
+
>>> thread = api.models_store_get_model_file_url(project_id, model_id, version, async_req=True)
|
|
52
1190
|
>>> result = thread.get()
|
|
53
1191
|
|
|
54
1192
|
:param async_req bool
|
|
55
1193
|
:param str project_id: (required)
|
|
56
1194
|
:param str model_id: (required)
|
|
57
|
-
:
|
|
1195
|
+
:param str version: (required)
|
|
1196
|
+
:param str filepath:
|
|
1197
|
+
:return: V1GetModelFileUrlResponse
|
|
58
1198
|
If the method is called asynchronously,
|
|
59
1199
|
returns the request thread.
|
|
60
1200
|
"""
|
|
61
1201
|
kwargs['_return_http_data_only'] = True
|
|
62
1202
|
if kwargs.get('async_req'):
|
|
63
|
-
return self.
|
|
1203
|
+
return self.models_store_get_model_file_url_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
64
1204
|
else:
|
|
65
|
-
(data) = self.
|
|
1205
|
+
(data) = self.models_store_get_model_file_url_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
66
1206
|
return data
|
|
67
1207
|
|
|
68
|
-
def
|
|
69
|
-
"""
|
|
1208
|
+
def models_store_get_model_file_url_with_http_info(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1GetModelFileUrlResponse': # noqa: E501
|
|
1209
|
+
"""GetModelFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
70
1210
|
|
|
71
1211
|
This method makes a synchronous HTTP request by default. To make an
|
|
72
1212
|
asynchronous HTTP request, please pass async_req=True
|
|
73
|
-
>>> thread = api.
|
|
1213
|
+
>>> thread = api.models_store_get_model_file_url_with_http_info(project_id, model_id, version, async_req=True)
|
|
74
1214
|
>>> result = thread.get()
|
|
75
1215
|
|
|
76
1216
|
:param async_req bool
|
|
77
1217
|
:param str project_id: (required)
|
|
78
1218
|
:param str model_id: (required)
|
|
79
|
-
:
|
|
1219
|
+
:param str version: (required)
|
|
1220
|
+
:param str filepath:
|
|
1221
|
+
:return: V1GetModelFileUrlResponse
|
|
80
1222
|
If the method is called asynchronously,
|
|
81
1223
|
returns the request thread.
|
|
82
1224
|
"""
|
|
83
1225
|
|
|
84
|
-
all_params = ['project_id', 'model_id'] # noqa: E501
|
|
1226
|
+
all_params = ['project_id', 'model_id', 'version', 'filepath'] # noqa: E501
|
|
85
1227
|
all_params.append('async_req')
|
|
86
1228
|
all_params.append('_return_http_data_only')
|
|
87
1229
|
all_params.append('_preload_content')
|
|
@@ -92,18 +1234,22 @@ class ModelsStoreApi(object):
|
|
|
92
1234
|
if key not in all_params:
|
|
93
1235
|
raise TypeError(
|
|
94
1236
|
"Got an unexpected keyword argument '%s'"
|
|
95
|
-
" to method
|
|
1237
|
+
" to method models_store_get_model_file_url" % key
|
|
96
1238
|
)
|
|
97
1239
|
params[key] = val
|
|
98
1240
|
del params['kwargs']
|
|
99
1241
|
# verify the required parameter 'project_id' is set
|
|
100
1242
|
if ('project_id' not in params or
|
|
101
1243
|
params['project_id'] is None):
|
|
102
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1244
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_get_model_file_url`") # noqa: E501
|
|
103
1245
|
# verify the required parameter 'model_id' is set
|
|
104
1246
|
if ('model_id' not in params or
|
|
105
1247
|
params['model_id'] is None):
|
|
106
|
-
raise ValueError("Missing the required parameter `model_id` when calling `
|
|
1248
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_get_model_file_url`") # noqa: E501
|
|
1249
|
+
# verify the required parameter 'version' is set
|
|
1250
|
+
if ('version' not in params or
|
|
1251
|
+
params['version'] is None):
|
|
1252
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_get_model_file_url`") # noqa: E501
|
|
107
1253
|
|
|
108
1254
|
collection_formats = {}
|
|
109
1255
|
|
|
@@ -112,8 +1258,12 @@ class ModelsStoreApi(object):
|
|
|
112
1258
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
113
1259
|
if 'model_id' in params:
|
|
114
1260
|
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1261
|
+
if 'version' in params:
|
|
1262
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
115
1263
|
|
|
116
1264
|
query_params = []
|
|
1265
|
+
if 'filepath' in params:
|
|
1266
|
+
query_params.append(('filepath', params['filepath'])) # noqa: E501
|
|
117
1267
|
|
|
118
1268
|
header_params = {}
|
|
119
1269
|
|
|
@@ -129,14 +1279,14 @@ class ModelsStoreApi(object):
|
|
|
129
1279
|
auth_settings = [] # noqa: E501
|
|
130
1280
|
|
|
131
1281
|
return self.api_client.call_api(
|
|
132
|
-
'/v1/projects/{projectId}/models/{modelId}', '
|
|
1282
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/file', 'GET',
|
|
133
1283
|
path_params,
|
|
134
1284
|
query_params,
|
|
135
1285
|
header_params,
|
|
136
1286
|
body=body_params,
|
|
137
1287
|
post_params=form_params,
|
|
138
1288
|
files=local_var_files,
|
|
139
|
-
response_type='
|
|
1289
|
+
response_type='V1GetModelFileUrlResponse', # noqa: E501
|
|
140
1290
|
auth_settings=auth_settings,
|
|
141
1291
|
async_req=params.get('async_req'),
|
|
142
1292
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -144,47 +1294,53 @@ class ModelsStoreApi(object):
|
|
|
144
1294
|
_request_timeout=params.get('_request_timeout'),
|
|
145
1295
|
collection_formats=collection_formats)
|
|
146
1296
|
|
|
147
|
-
def
|
|
148
|
-
"""
|
|
1297
|
+
def models_store_get_model_files(self, **kwargs) -> 'V1GetModelFilesResponse': # noqa: E501
|
|
1298
|
+
"""GetModelFiles returns a list of file paths (relative to model folder) to download, and for each you can request a pre-signed url for download # noqa: E501
|
|
149
1299
|
|
|
150
1300
|
This method makes a synchronous HTTP request by default. To make an
|
|
151
1301
|
asynchronous HTTP request, please pass async_req=True
|
|
152
|
-
>>> thread = api.
|
|
1302
|
+
>>> thread = api.models_store_get_model_files(async_req=True)
|
|
153
1303
|
>>> result = thread.get()
|
|
154
1304
|
|
|
155
1305
|
:param async_req bool
|
|
156
|
-
:param str
|
|
157
|
-
:param str
|
|
158
|
-
:param str
|
|
159
|
-
:
|
|
1306
|
+
:param str name:
|
|
1307
|
+
:param str version:
|
|
1308
|
+
:param str project_id:
|
|
1309
|
+
:param str project_name:
|
|
1310
|
+
:param str project_owner_name:
|
|
1311
|
+
:param str id:
|
|
1312
|
+
:return: V1GetModelFilesResponse
|
|
160
1313
|
If the method is called asynchronously,
|
|
161
1314
|
returns the request thread.
|
|
162
1315
|
"""
|
|
163
1316
|
kwargs['_return_http_data_only'] = True
|
|
164
1317
|
if kwargs.get('async_req'):
|
|
165
|
-
return self.
|
|
1318
|
+
return self.models_store_get_model_files_with_http_info(**kwargs) # noqa: E501
|
|
166
1319
|
else:
|
|
167
|
-
(data) = self.
|
|
1320
|
+
(data) = self.models_store_get_model_files_with_http_info(**kwargs) # noqa: E501
|
|
168
1321
|
return data
|
|
169
1322
|
|
|
170
|
-
def
|
|
171
|
-
"""
|
|
1323
|
+
def models_store_get_model_files_with_http_info(self, **kwargs) -> 'V1GetModelFilesResponse': # noqa: E501
|
|
1324
|
+
"""GetModelFiles returns a list of file paths (relative to model folder) to download, and for each you can request a pre-signed url for download # noqa: E501
|
|
172
1325
|
|
|
173
1326
|
This method makes a synchronous HTTP request by default. To make an
|
|
174
1327
|
asynchronous HTTP request, please pass async_req=True
|
|
175
|
-
>>> thread = api.
|
|
1328
|
+
>>> thread = api.models_store_get_model_files_with_http_info(async_req=True)
|
|
176
1329
|
>>> result = thread.get()
|
|
177
1330
|
|
|
178
1331
|
:param async_req bool
|
|
179
|
-
:param str
|
|
180
|
-
:param str
|
|
181
|
-
:param str
|
|
182
|
-
:
|
|
1332
|
+
:param str name:
|
|
1333
|
+
:param str version:
|
|
1334
|
+
:param str project_id:
|
|
1335
|
+
:param str project_name:
|
|
1336
|
+
:param str project_owner_name:
|
|
1337
|
+
:param str id:
|
|
1338
|
+
:return: V1GetModelFilesResponse
|
|
183
1339
|
If the method is called asynchronously,
|
|
184
1340
|
returns the request thread.
|
|
185
1341
|
"""
|
|
186
1342
|
|
|
187
|
-
all_params = ['project_id', '
|
|
1343
|
+
all_params = ['name', 'version', 'project_id', 'project_name', 'project_owner_name', 'id'] # noqa: E501
|
|
188
1344
|
all_params.append('async_req')
|
|
189
1345
|
all_params.append('_return_http_data_only')
|
|
190
1346
|
all_params.append('_preload_content')
|
|
@@ -195,34 +1351,28 @@ class ModelsStoreApi(object):
|
|
|
195
1351
|
if key not in all_params:
|
|
196
1352
|
raise TypeError(
|
|
197
1353
|
"Got an unexpected keyword argument '%s'"
|
|
198
|
-
" to method
|
|
1354
|
+
" to method models_store_get_model_files" % key
|
|
199
1355
|
)
|
|
200
1356
|
params[key] = val
|
|
201
1357
|
del params['kwargs']
|
|
202
|
-
# verify the required parameter 'project_id' is set
|
|
203
|
-
if ('project_id' not in params or
|
|
204
|
-
params['project_id'] is None):
|
|
205
|
-
raise ValueError("Missing the required parameter `project_id` when calling `models_store_delete_model_version`") # noqa: E501
|
|
206
|
-
# verify the required parameter 'model_id' is set
|
|
207
|
-
if ('model_id' not in params or
|
|
208
|
-
params['model_id'] is None):
|
|
209
|
-
raise ValueError("Missing the required parameter `model_id` when calling `models_store_delete_model_version`") # noqa: E501
|
|
210
|
-
# verify the required parameter 'version' is set
|
|
211
|
-
if ('version' not in params or
|
|
212
|
-
params['version'] is None):
|
|
213
|
-
raise ValueError("Missing the required parameter `version` when calling `models_store_delete_model_version`") # noqa: E501
|
|
214
1358
|
|
|
215
1359
|
collection_formats = {}
|
|
216
1360
|
|
|
217
1361
|
path_params = {}
|
|
218
|
-
if 'project_id' in params:
|
|
219
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
220
|
-
if 'model_id' in params:
|
|
221
|
-
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
222
|
-
if 'version' in params:
|
|
223
|
-
path_params['version'] = params['version'] # noqa: E501
|
|
224
1362
|
|
|
225
1363
|
query_params = []
|
|
1364
|
+
if 'name' in params:
|
|
1365
|
+
query_params.append(('name', params['name'])) # noqa: E501
|
|
1366
|
+
if 'version' in params:
|
|
1367
|
+
query_params.append(('version', params['version'])) # noqa: E501
|
|
1368
|
+
if 'project_id' in params:
|
|
1369
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1370
|
+
if 'project_name' in params:
|
|
1371
|
+
query_params.append(('projectName', params['project_name'])) # noqa: E501
|
|
1372
|
+
if 'project_owner_name' in params:
|
|
1373
|
+
query_params.append(('projectOwnerName', params['project_owner_name'])) # noqa: E501
|
|
1374
|
+
if 'id' in params:
|
|
1375
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
226
1376
|
|
|
227
1377
|
header_params = {}
|
|
228
1378
|
|
|
@@ -238,14 +1388,14 @@ class ModelsStoreApi(object):
|
|
|
238
1388
|
auth_settings = [] # noqa: E501
|
|
239
1389
|
|
|
240
1390
|
return self.api_client.call_api(
|
|
241
|
-
'/v1/
|
|
1391
|
+
'/v1/models', 'GET',
|
|
242
1392
|
path_params,
|
|
243
1393
|
query_params,
|
|
244
1394
|
header_params,
|
|
245
1395
|
body=body_params,
|
|
246
1396
|
post_params=form_params,
|
|
247
1397
|
files=local_var_files,
|
|
248
|
-
response_type='
|
|
1398
|
+
response_type='V1GetModelFilesResponse', # noqa: E501
|
|
249
1399
|
auth_settings=auth_settings,
|
|
250
1400
|
async_req=params.get('async_req'),
|
|
251
1401
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -253,45 +1403,51 @@ class ModelsStoreApi(object):
|
|
|
253
1403
|
_request_timeout=params.get('_request_timeout'),
|
|
254
1404
|
collection_formats=collection_formats)
|
|
255
1405
|
|
|
256
|
-
def
|
|
257
|
-
"""
|
|
1406
|
+
def models_store_get_model_files_url(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1GetModelFilesUrlResponse': # noqa: E501
|
|
1407
|
+
"""GetModelFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
258
1408
|
|
|
259
1409
|
This method makes a synchronous HTTP request by default. To make an
|
|
260
1410
|
asynchronous HTTP request, please pass async_req=True
|
|
261
|
-
>>> thread = api.
|
|
1411
|
+
>>> thread = api.models_store_get_model_files_url(project_id, model_id, version, async_req=True)
|
|
262
1412
|
>>> result = thread.get()
|
|
263
1413
|
|
|
264
1414
|
:param async_req bool
|
|
265
|
-
:param str
|
|
266
|
-
:param str
|
|
267
|
-
:
|
|
1415
|
+
:param str project_id: (required)
|
|
1416
|
+
:param str model_id: (required)
|
|
1417
|
+
:param str version: (required)
|
|
1418
|
+
:param str page_size:
|
|
1419
|
+
:param str offset:
|
|
1420
|
+
:return: V1GetModelFilesUrlResponse
|
|
268
1421
|
If the method is called asynchronously,
|
|
269
1422
|
returns the request thread.
|
|
270
1423
|
"""
|
|
271
1424
|
kwargs['_return_http_data_only'] = True
|
|
272
1425
|
if kwargs.get('async_req'):
|
|
273
|
-
return self.
|
|
1426
|
+
return self.models_store_get_model_files_url_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
274
1427
|
else:
|
|
275
|
-
(data) = self.
|
|
1428
|
+
(data) = self.models_store_get_model_files_url_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
276
1429
|
return data
|
|
277
1430
|
|
|
278
|
-
def
|
|
279
|
-
"""
|
|
1431
|
+
def models_store_get_model_files_url_with_http_info(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1GetModelFilesUrlResponse': # noqa: E501
|
|
1432
|
+
"""GetModelFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
280
1433
|
|
|
281
1434
|
This method makes a synchronous HTTP request by default. To make an
|
|
282
1435
|
asynchronous HTTP request, please pass async_req=True
|
|
283
|
-
>>> thread = api.
|
|
1436
|
+
>>> thread = api.models_store_get_model_files_url_with_http_info(project_id, model_id, version, async_req=True)
|
|
284
1437
|
>>> result = thread.get()
|
|
285
1438
|
|
|
286
1439
|
:param async_req bool
|
|
287
|
-
:param str
|
|
288
|
-
:param str
|
|
289
|
-
:
|
|
1440
|
+
:param str project_id: (required)
|
|
1441
|
+
:param str model_id: (required)
|
|
1442
|
+
:param str version: (required)
|
|
1443
|
+
:param str page_size:
|
|
1444
|
+
:param str offset:
|
|
1445
|
+
:return: V1GetModelFilesUrlResponse
|
|
290
1446
|
If the method is called asynchronously,
|
|
291
1447
|
returns the request thread.
|
|
292
1448
|
"""
|
|
293
1449
|
|
|
294
|
-
all_params = ['
|
|
1450
|
+
all_params = ['project_id', 'model_id', 'version', 'page_size', 'offset'] # noqa: E501
|
|
295
1451
|
all_params.append('async_req')
|
|
296
1452
|
all_params.append('_return_http_data_only')
|
|
297
1453
|
all_params.append('_preload_content')
|
|
@@ -302,20 +1458,38 @@ class ModelsStoreApi(object):
|
|
|
302
1458
|
if key not in all_params:
|
|
303
1459
|
raise TypeError(
|
|
304
1460
|
"Got an unexpected keyword argument '%s'"
|
|
305
|
-
" to method
|
|
1461
|
+
" to method models_store_get_model_files_url" % key
|
|
306
1462
|
)
|
|
307
1463
|
params[key] = val
|
|
308
1464
|
del params['kwargs']
|
|
1465
|
+
# verify the required parameter 'project_id' is set
|
|
1466
|
+
if ('project_id' not in params or
|
|
1467
|
+
params['project_id'] is None):
|
|
1468
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_get_model_files_url`") # noqa: E501
|
|
1469
|
+
# verify the required parameter 'model_id' is set
|
|
1470
|
+
if ('model_id' not in params or
|
|
1471
|
+
params['model_id'] is None):
|
|
1472
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_get_model_files_url`") # noqa: E501
|
|
1473
|
+
# verify the required parameter 'version' is set
|
|
1474
|
+
if ('version' not in params or
|
|
1475
|
+
params['version'] is None):
|
|
1476
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_get_model_files_url`") # noqa: E501
|
|
309
1477
|
|
|
310
1478
|
collection_formats = {}
|
|
311
1479
|
|
|
312
1480
|
path_params = {}
|
|
1481
|
+
if 'project_id' in params:
|
|
1482
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1483
|
+
if 'model_id' in params:
|
|
1484
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1485
|
+
if 'version' in params:
|
|
1486
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
313
1487
|
|
|
314
1488
|
query_params = []
|
|
315
|
-
if '
|
|
316
|
-
query_params.append(('
|
|
317
|
-
if '
|
|
318
|
-
query_params.append(('
|
|
1489
|
+
if 'page_size' in params:
|
|
1490
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1491
|
+
if 'offset' in params:
|
|
1492
|
+
query_params.append(('offset', params['offset'])) # noqa: E501
|
|
319
1493
|
|
|
320
1494
|
header_params = {}
|
|
321
1495
|
|
|
@@ -331,14 +1505,14 @@ class ModelsStoreApi(object):
|
|
|
331
1505
|
auth_settings = [] # noqa: E501
|
|
332
1506
|
|
|
333
1507
|
return self.api_client.call_api(
|
|
334
|
-
'/v1/models', 'GET',
|
|
1508
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}/files', 'GET',
|
|
335
1509
|
path_params,
|
|
336
1510
|
query_params,
|
|
337
1511
|
header_params,
|
|
338
1512
|
body=body_params,
|
|
339
1513
|
post_params=form_params,
|
|
340
1514
|
files=local_var_files,
|
|
341
|
-
response_type='
|
|
1515
|
+
response_type='V1GetModelFilesUrlResponse', # noqa: E501
|
|
342
1516
|
auth_settings=auth_settings,
|
|
343
1517
|
async_req=params.get('async_req'),
|
|
344
1518
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -346,45 +1520,47 @@ class ModelsStoreApi(object):
|
|
|
346
1520
|
_request_timeout=params.get('_request_timeout'),
|
|
347
1521
|
collection_formats=collection_formats)
|
|
348
1522
|
|
|
349
|
-
def
|
|
350
|
-
"""
|
|
1523
|
+
def models_store_get_model_version(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
1524
|
+
"""GetModelVersion used to get specific model version details # noqa: E501
|
|
351
1525
|
|
|
352
1526
|
This method makes a synchronous HTTP request by default. To make an
|
|
353
1527
|
asynchronous HTTP request, please pass async_req=True
|
|
354
|
-
>>> thread = api.
|
|
1528
|
+
>>> thread = api.models_store_get_model_version(project_id, model_id, version, async_req=True)
|
|
355
1529
|
>>> result = thread.get()
|
|
356
1530
|
|
|
357
1531
|
:param async_req bool
|
|
358
1532
|
:param str project_id: (required)
|
|
359
1533
|
:param str model_id: (required)
|
|
360
|
-
:
|
|
1534
|
+
:param str version: (required)
|
|
1535
|
+
:return: V1ModelVersionArchive
|
|
361
1536
|
If the method is called asynchronously,
|
|
362
1537
|
returns the request thread.
|
|
363
1538
|
"""
|
|
364
1539
|
kwargs['_return_http_data_only'] = True
|
|
365
1540
|
if kwargs.get('async_req'):
|
|
366
|
-
return self.
|
|
1541
|
+
return self.models_store_get_model_version_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
367
1542
|
else:
|
|
368
|
-
(data) = self.
|
|
1543
|
+
(data) = self.models_store_get_model_version_with_http_info(project_id, model_id, version, **kwargs) # noqa: E501
|
|
369
1544
|
return data
|
|
370
1545
|
|
|
371
|
-
def
|
|
372
|
-
"""
|
|
1546
|
+
def models_store_get_model_version_with_http_info(self, project_id: 'str', model_id: 'str', version: 'str', **kwargs) -> 'V1ModelVersionArchive': # noqa: E501
|
|
1547
|
+
"""GetModelVersion used to get specific model version details # noqa: E501
|
|
373
1548
|
|
|
374
1549
|
This method makes a synchronous HTTP request by default. To make an
|
|
375
1550
|
asynchronous HTTP request, please pass async_req=True
|
|
376
|
-
>>> thread = api.
|
|
1551
|
+
>>> thread = api.models_store_get_model_version_with_http_info(project_id, model_id, version, async_req=True)
|
|
377
1552
|
>>> result = thread.get()
|
|
378
1553
|
|
|
379
1554
|
:param async_req bool
|
|
380
1555
|
:param str project_id: (required)
|
|
381
1556
|
:param str model_id: (required)
|
|
382
|
-
:
|
|
1557
|
+
:param str version: (required)
|
|
1558
|
+
:return: V1ModelVersionArchive
|
|
383
1559
|
If the method is called asynchronously,
|
|
384
1560
|
returns the request thread.
|
|
385
1561
|
"""
|
|
386
1562
|
|
|
387
|
-
all_params = ['project_id', 'model_id'] # noqa: E501
|
|
1563
|
+
all_params = ['project_id', 'model_id', 'version'] # noqa: E501
|
|
388
1564
|
all_params.append('async_req')
|
|
389
1565
|
all_params.append('_return_http_data_only')
|
|
390
1566
|
all_params.append('_preload_content')
|
|
@@ -395,18 +1571,22 @@ class ModelsStoreApi(object):
|
|
|
395
1571
|
if key not in all_params:
|
|
396
1572
|
raise TypeError(
|
|
397
1573
|
"Got an unexpected keyword argument '%s'"
|
|
398
|
-
" to method
|
|
1574
|
+
" to method models_store_get_model_version" % key
|
|
399
1575
|
)
|
|
400
1576
|
params[key] = val
|
|
401
1577
|
del params['kwargs']
|
|
402
1578
|
# verify the required parameter 'project_id' is set
|
|
403
1579
|
if ('project_id' not in params or
|
|
404
1580
|
params['project_id'] is None):
|
|
405
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1581
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_get_model_version`") # noqa: E501
|
|
406
1582
|
# verify the required parameter 'model_id' is set
|
|
407
1583
|
if ('model_id' not in params or
|
|
408
1584
|
params['model_id'] is None):
|
|
409
|
-
raise ValueError("Missing the required parameter `model_id` when calling `
|
|
1585
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_get_model_version`") # noqa: E501
|
|
1586
|
+
# verify the required parameter 'version' is set
|
|
1587
|
+
if ('version' not in params or
|
|
1588
|
+
params['version'] is None):
|
|
1589
|
+
raise ValueError("Missing the required parameter `version` when calling `models_store_get_model_version`") # noqa: E501
|
|
410
1590
|
|
|
411
1591
|
collection_formats = {}
|
|
412
1592
|
|
|
@@ -415,6 +1595,8 @@ class ModelsStoreApi(object):
|
|
|
415
1595
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
416
1596
|
if 'model_id' in params:
|
|
417
1597
|
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1598
|
+
if 'version' in params:
|
|
1599
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
418
1600
|
|
|
419
1601
|
query_params = []
|
|
420
1602
|
|
|
@@ -432,14 +1614,14 @@ class ModelsStoreApi(object):
|
|
|
432
1614
|
auth_settings = [] # noqa: E501
|
|
433
1615
|
|
|
434
1616
|
return self.api_client.call_api(
|
|
435
|
-
'/v1/projects/{projectId}/models/{modelId}', 'GET',
|
|
1617
|
+
'/v1/projects/{projectId}/models/{modelId}/versions/{version}', 'GET',
|
|
436
1618
|
path_params,
|
|
437
1619
|
query_params,
|
|
438
1620
|
header_params,
|
|
439
1621
|
body=body_params,
|
|
440
1622
|
post_params=form_params,
|
|
441
1623
|
files=local_var_files,
|
|
442
|
-
response_type='
|
|
1624
|
+
response_type='V1ModelVersionArchive', # noqa: E501
|
|
443
1625
|
auth_settings=auth_settings,
|
|
444
1626
|
async_req=params.get('async_req'),
|
|
445
1627
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -558,6 +1740,7 @@ class ModelsStoreApi(object):
|
|
|
558
1740
|
|
|
559
1741
|
:param async_req bool
|
|
560
1742
|
:param str project_id: (required)
|
|
1743
|
+
:param str name:
|
|
561
1744
|
:return: V1ListModelsResponse
|
|
562
1745
|
If the method is called asynchronously,
|
|
563
1746
|
returns the request thread.
|
|
@@ -579,12 +1762,13 @@ class ModelsStoreApi(object):
|
|
|
579
1762
|
|
|
580
1763
|
:param async_req bool
|
|
581
1764
|
:param str project_id: (required)
|
|
1765
|
+
:param str name:
|
|
582
1766
|
:return: V1ListModelsResponse
|
|
583
1767
|
If the method is called asynchronously,
|
|
584
1768
|
returns the request thread.
|
|
585
1769
|
"""
|
|
586
1770
|
|
|
587
|
-
all_params = ['project_id'] # noqa: E501
|
|
1771
|
+
all_params = ['project_id', 'name'] # noqa: E501
|
|
588
1772
|
all_params.append('async_req')
|
|
589
1773
|
all_params.append('_return_http_data_only')
|
|
590
1774
|
all_params.append('_preload_content')
|
|
@@ -611,6 +1795,8 @@ class ModelsStoreApi(object):
|
|
|
611
1795
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
612
1796
|
|
|
613
1797
|
query_params = []
|
|
1798
|
+
if 'name' in params:
|
|
1799
|
+
query_params.append(('name', params['name'])) # noqa: E501
|
|
614
1800
|
|
|
615
1801
|
header_params = {}
|
|
616
1802
|
|
|
@@ -641,43 +1827,160 @@ class ModelsStoreApi(object):
|
|
|
641
1827
|
_request_timeout=params.get('_request_timeout'),
|
|
642
1828
|
collection_formats=collection_formats)
|
|
643
1829
|
|
|
644
|
-
def
|
|
645
|
-
"""
|
|
1830
|
+
def models_store_update_model(self, body: 'ModelsModelIdBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
1831
|
+
"""models_store_update_model # noqa: E501
|
|
1832
|
+
|
|
1833
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1834
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1835
|
+
>>> thread = api.models_store_update_model(body, project_id, model_id, async_req=True)
|
|
1836
|
+
>>> result = thread.get()
|
|
1837
|
+
|
|
1838
|
+
:param async_req bool
|
|
1839
|
+
:param ModelsModelIdBody body: (required)
|
|
1840
|
+
:param str project_id: (required)
|
|
1841
|
+
:param str model_id: (required)
|
|
1842
|
+
:return: V1Model
|
|
1843
|
+
If the method is called asynchronously,
|
|
1844
|
+
returns the request thread.
|
|
1845
|
+
"""
|
|
1846
|
+
kwargs['_return_http_data_only'] = True
|
|
1847
|
+
if kwargs.get('async_req'):
|
|
1848
|
+
return self.models_store_update_model_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
1849
|
+
else:
|
|
1850
|
+
(data) = self.models_store_update_model_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
1851
|
+
return data
|
|
1852
|
+
|
|
1853
|
+
def models_store_update_model_with_http_info(self, body: 'ModelsModelIdBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
1854
|
+
"""models_store_update_model # noqa: E501
|
|
1855
|
+
|
|
1856
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1857
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1858
|
+
>>> thread = api.models_store_update_model_with_http_info(body, project_id, model_id, async_req=True)
|
|
1859
|
+
>>> result = thread.get()
|
|
1860
|
+
|
|
1861
|
+
:param async_req bool
|
|
1862
|
+
:param ModelsModelIdBody body: (required)
|
|
1863
|
+
:param str project_id: (required)
|
|
1864
|
+
:param str model_id: (required)
|
|
1865
|
+
:return: V1Model
|
|
1866
|
+
If the method is called asynchronously,
|
|
1867
|
+
returns the request thread.
|
|
1868
|
+
"""
|
|
1869
|
+
|
|
1870
|
+
all_params = ['body', 'project_id', 'model_id'] # noqa: E501
|
|
1871
|
+
all_params.append('async_req')
|
|
1872
|
+
all_params.append('_return_http_data_only')
|
|
1873
|
+
all_params.append('_preload_content')
|
|
1874
|
+
all_params.append('_request_timeout')
|
|
1875
|
+
|
|
1876
|
+
params = locals()
|
|
1877
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1878
|
+
if key not in all_params:
|
|
1879
|
+
raise TypeError(
|
|
1880
|
+
"Got an unexpected keyword argument '%s'"
|
|
1881
|
+
" to method models_store_update_model" % key
|
|
1882
|
+
)
|
|
1883
|
+
params[key] = val
|
|
1884
|
+
del params['kwargs']
|
|
1885
|
+
# verify the required parameter 'body' is set
|
|
1886
|
+
if ('body' not in params or
|
|
1887
|
+
params['body'] is None):
|
|
1888
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_update_model`") # noqa: E501
|
|
1889
|
+
# verify the required parameter 'project_id' is set
|
|
1890
|
+
if ('project_id' not in params or
|
|
1891
|
+
params['project_id'] is None):
|
|
1892
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_update_model`") # noqa: E501
|
|
1893
|
+
# verify the required parameter 'model_id' is set
|
|
1894
|
+
if ('model_id' not in params or
|
|
1895
|
+
params['model_id'] is None):
|
|
1896
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_update_model`") # noqa: E501
|
|
1897
|
+
|
|
1898
|
+
collection_formats = {}
|
|
1899
|
+
|
|
1900
|
+
path_params = {}
|
|
1901
|
+
if 'project_id' in params:
|
|
1902
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1903
|
+
if 'model_id' in params:
|
|
1904
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
1905
|
+
|
|
1906
|
+
query_params = []
|
|
1907
|
+
|
|
1908
|
+
header_params = {}
|
|
1909
|
+
|
|
1910
|
+
form_params = []
|
|
1911
|
+
local_var_files = {}
|
|
1912
|
+
|
|
1913
|
+
body_params = None
|
|
1914
|
+
if 'body' in params:
|
|
1915
|
+
body_params = params['body']
|
|
1916
|
+
# HTTP header `Accept`
|
|
1917
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1918
|
+
['application/json']) # noqa: E501
|
|
1919
|
+
|
|
1920
|
+
# HTTP header `Content-Type`
|
|
1921
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1922
|
+
['application/json']) # noqa: E501
|
|
1923
|
+
|
|
1924
|
+
# Authentication setting
|
|
1925
|
+
auth_settings = [] # noqa: E501
|
|
1926
|
+
|
|
1927
|
+
return self.api_client.call_api(
|
|
1928
|
+
'/v1/projects/{projectId}/models/{modelId}', 'PUT',
|
|
1929
|
+
path_params,
|
|
1930
|
+
query_params,
|
|
1931
|
+
header_params,
|
|
1932
|
+
body=body_params,
|
|
1933
|
+
post_params=form_params,
|
|
1934
|
+
files=local_var_files,
|
|
1935
|
+
response_type='V1Model', # noqa: E501
|
|
1936
|
+
auth_settings=auth_settings,
|
|
1937
|
+
async_req=params.get('async_req'),
|
|
1938
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1939
|
+
_preload_content=params.get('_preload_content', True),
|
|
1940
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1941
|
+
collection_formats=collection_formats)
|
|
1942
|
+
|
|
1943
|
+
def models_store_update_model_visibility(self, body: 'ModelIdVisibilityBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1UpdateModelVisibilityResponse': # noqa: E501
|
|
1944
|
+
"""models_store_update_model_visibility # noqa: E501
|
|
646
1945
|
|
|
647
1946
|
This method makes a synchronous HTTP request by default. To make an
|
|
648
1947
|
asynchronous HTTP request, please pass async_req=True
|
|
649
|
-
>>> thread = api.
|
|
1948
|
+
>>> thread = api.models_store_update_model_visibility(body, project_id, model_id, async_req=True)
|
|
650
1949
|
>>> result = thread.get()
|
|
651
1950
|
|
|
652
1951
|
:param async_req bool
|
|
653
|
-
:param
|
|
654
|
-
:
|
|
1952
|
+
:param ModelIdVisibilityBody body: (required)
|
|
1953
|
+
:param str project_id: (required)
|
|
1954
|
+
:param str model_id: (required)
|
|
1955
|
+
:return: V1UpdateModelVisibilityResponse
|
|
655
1956
|
If the method is called asynchronously,
|
|
656
1957
|
returns the request thread.
|
|
657
1958
|
"""
|
|
658
1959
|
kwargs['_return_http_data_only'] = True
|
|
659
1960
|
if kwargs.get('async_req'):
|
|
660
|
-
return self.
|
|
1961
|
+
return self.models_store_update_model_visibility_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
661
1962
|
else:
|
|
662
|
-
(data) = self.
|
|
1963
|
+
(data) = self.models_store_update_model_visibility_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
663
1964
|
return data
|
|
664
1965
|
|
|
665
|
-
def
|
|
666
|
-
"""
|
|
1966
|
+
def models_store_update_model_visibility_with_http_info(self, body: 'ModelIdVisibilityBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1UpdateModelVisibilityResponse': # noqa: E501
|
|
1967
|
+
"""models_store_update_model_visibility # noqa: E501
|
|
667
1968
|
|
|
668
1969
|
This method makes a synchronous HTTP request by default. To make an
|
|
669
1970
|
asynchronous HTTP request, please pass async_req=True
|
|
670
|
-
>>> thread = api.
|
|
1971
|
+
>>> thread = api.models_store_update_model_visibility_with_http_info(body, project_id, model_id, async_req=True)
|
|
671
1972
|
>>> result = thread.get()
|
|
672
1973
|
|
|
673
1974
|
:param async_req bool
|
|
674
|
-
:param
|
|
675
|
-
:
|
|
1975
|
+
:param ModelIdVisibilityBody body: (required)
|
|
1976
|
+
:param str project_id: (required)
|
|
1977
|
+
:param str model_id: (required)
|
|
1978
|
+
:return: V1UpdateModelVisibilityResponse
|
|
676
1979
|
If the method is called asynchronously,
|
|
677
1980
|
returns the request thread.
|
|
678
1981
|
"""
|
|
679
1982
|
|
|
680
|
-
all_params = ['body'] # noqa: E501
|
|
1983
|
+
all_params = ['body', 'project_id', 'model_id'] # noqa: E501
|
|
681
1984
|
all_params.append('async_req')
|
|
682
1985
|
all_params.append('_return_http_data_only')
|
|
683
1986
|
all_params.append('_preload_content')
|
|
@@ -688,18 +1991,30 @@ class ModelsStoreApi(object):
|
|
|
688
1991
|
if key not in all_params:
|
|
689
1992
|
raise TypeError(
|
|
690
1993
|
"Got an unexpected keyword argument '%s'"
|
|
691
|
-
" to method
|
|
1994
|
+
" to method models_store_update_model_visibility" % key
|
|
692
1995
|
)
|
|
693
1996
|
params[key] = val
|
|
694
1997
|
del params['kwargs']
|
|
695
1998
|
# verify the required parameter 'body' is set
|
|
696
1999
|
if ('body' not in params or
|
|
697
2000
|
params['body'] is None):
|
|
698
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
2001
|
+
raise ValueError("Missing the required parameter `body` when calling `models_store_update_model_visibility`") # noqa: E501
|
|
2002
|
+
# verify the required parameter 'project_id' is set
|
|
2003
|
+
if ('project_id' not in params or
|
|
2004
|
+
params['project_id'] is None):
|
|
2005
|
+
raise ValueError("Missing the required parameter `project_id` when calling `models_store_update_model_visibility`") # noqa: E501
|
|
2006
|
+
# verify the required parameter 'model_id' is set
|
|
2007
|
+
if ('model_id' not in params or
|
|
2008
|
+
params['model_id'] is None):
|
|
2009
|
+
raise ValueError("Missing the required parameter `model_id` when calling `models_store_update_model_visibility`") # noqa: E501
|
|
699
2010
|
|
|
700
2011
|
collection_formats = {}
|
|
701
2012
|
|
|
702
2013
|
path_params = {}
|
|
2014
|
+
if 'project_id' in params:
|
|
2015
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2016
|
+
if 'model_id' in params:
|
|
2017
|
+
path_params['modelId'] = params['model_id'] # noqa: E501
|
|
703
2018
|
|
|
704
2019
|
query_params = []
|
|
705
2020
|
|
|
@@ -723,14 +2038,14 @@ class ModelsStoreApi(object):
|
|
|
723
2038
|
auth_settings = [] # noqa: E501
|
|
724
2039
|
|
|
725
2040
|
return self.api_client.call_api(
|
|
726
|
-
'/v1/models', '
|
|
2041
|
+
'/v1/projects/{projectId}/models/{modelId}/visibility', 'PUT',
|
|
727
2042
|
path_params,
|
|
728
2043
|
query_params,
|
|
729
2044
|
header_params,
|
|
730
2045
|
body=body_params,
|
|
731
2046
|
post_params=form_params,
|
|
732
2047
|
files=local_var_files,
|
|
733
|
-
response_type='
|
|
2048
|
+
response_type='V1UpdateModelVisibilityResponse', # noqa: E501
|
|
734
2049
|
auth_settings=auth_settings,
|
|
735
2050
|
async_req=params.get('async_req'),
|
|
736
2051
|
_return_http_data_only=params.get('_return_http_data_only'),
|