lightning-sdk 0.1.49__py3-none-any.whl → 2025.11.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +19 -9
- lightning_sdk/__version__.py +3 -0
- lightning_sdk/agents.py +2 -1
- lightning_sdk/ai_hub.py +43 -38
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +49 -6
- lightning_sdk/api/base_studio_api.py +90 -0
- lightning_sdk/api/cloud_account_api.py +225 -0
- lightning_sdk/api/deployment_api.py +133 -27
- lightning_sdk/api/job_api.py +147 -34
- lightning_sdk/api/license_api.py +37 -0
- lightning_sdk/api/lit_container_api.py +231 -19
- lightning_sdk/api/llm_api.py +306 -0
- lightning_sdk/api/mmt_api.py +112 -28
- lightning_sdk/api/pipeline_api.py +120 -0
- lightning_sdk/api/studio_api.py +440 -89
- lightning_sdk/api/teamspace_api.py +269 -31
- lightning_sdk/api/user_api.py +56 -2
- lightning_sdk/api/utils.py +185 -52
- lightning_sdk/base_studio.py +123 -0
- lightning_sdk/cli/__init__.py +1 -0
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +43 -0
- lightning_sdk/cli/config/__init__.py +14 -0
- lightning_sdk/cli/config/get.py +57 -0
- lightning_sdk/cli/config/set.py +92 -0
- lightning_sdk/cli/config/show.py +9 -0
- lightning_sdk/cli/entrypoint.py +98 -56
- lightning_sdk/cli/groups.py +56 -0
- lightning_sdk/cli/job/__init__.py +7 -0
- lightning_sdk/cli/legacy/__init__.py +0 -0
- lightning_sdk/cli/legacy/ai_hub.py +65 -0
- lightning_sdk/cli/legacy/clusters_menu.py +49 -0
- lightning_sdk/cli/legacy/configure.py +129 -0
- lightning_sdk/cli/legacy/connect.py +34 -0
- lightning_sdk/cli/legacy/create.py +115 -0
- lightning_sdk/cli/legacy/delete.py +131 -0
- lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
- lightning_sdk/cli/legacy/deploy/_auth.py +196 -0
- lightning_sdk/cli/legacy/deploy/devbox.py +163 -0
- lightning_sdk/cli/legacy/deploy/serve.py +452 -0
- lightning_sdk/cli/legacy/docker_cli.py +22 -0
- lightning_sdk/cli/legacy/download.py +322 -0
- lightning_sdk/cli/legacy/entrypoint.py +110 -0
- lightning_sdk/cli/legacy/generate.py +52 -0
- lightning_sdk/cli/legacy/inspection.py +45 -0
- lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
- lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +3 -2
- lightning_sdk/cli/legacy/list.py +326 -0
- lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +3 -2
- lightning_sdk/cli/legacy/open.py +81 -0
- lightning_sdk/cli/legacy/run.py +443 -0
- lightning_sdk/cli/legacy/start.py +107 -0
- lightning_sdk/cli/legacy/stop.py +107 -0
- lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +24 -1
- lightning_sdk/cli/legacy/switch.py +63 -0
- lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +12 -3
- lightning_sdk/cli/legacy/upload.py +382 -0
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/mmt/__init__.py +7 -0
- lightning_sdk/cli/studio/__init__.py +24 -0
- lightning_sdk/cli/studio/connect.py +139 -0
- lightning_sdk/cli/studio/create.py +96 -0
- lightning_sdk/cli/studio/delete.py +49 -0
- lightning_sdk/cli/studio/list.py +85 -0
- lightning_sdk/cli/studio/ssh.py +64 -0
- lightning_sdk/cli/studio/start.py +115 -0
- lightning_sdk/cli/studio/stop.py +45 -0
- lightning_sdk/cli/studio/switch.py +66 -0
- lightning_sdk/cli/utils/__init__.py +7 -0
- lightning_sdk/cli/utils/cloud_account_map.py +10 -0
- lightning_sdk/cli/utils/coloring.py +60 -0
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
- lightning_sdk/cli/utils/logging.py +122 -0
- lightning_sdk/cli/utils/owner_selection.py +110 -0
- lightning_sdk/cli/utils/resolve.py +28 -0
- lightning_sdk/cli/utils/richt_print.py +35 -0
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/ssh_connection.py +59 -0
- lightning_sdk/cli/utils/studio_selection.py +113 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/cli/vm/__init__.py +20 -0
- lightning_sdk/cli/vm/create.py +33 -0
- lightning_sdk/cli/vm/delete.py +25 -0
- lightning_sdk/cli/vm/list.py +30 -0
- lightning_sdk/cli/vm/ssh.py +31 -0
- lightning_sdk/cli/vm/start.py +60 -0
- lightning_sdk/cli/vm/stop.py +25 -0
- lightning_sdk/cli/vm/switch.py +38 -0
- lightning_sdk/constants.py +1 -0
- lightning_sdk/deployment/__init__.py +4 -0
- lightning_sdk/deployment/deployment.py +208 -28
- lightning_sdk/helpers.py +73 -34
- lightning_sdk/job/base.py +112 -12
- lightning_sdk/job/job.py +73 -44
- lightning_sdk/job/v1.py +28 -35
- lightning_sdk/job/v2.py +54 -17
- lightning_sdk/job/work.py +7 -3
- lightning_sdk/lightning_cloud/login.py +325 -18
- lightning_sdk/lightning_cloud/openapi/__init__.py +346 -26
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1801 -384
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +414 -2
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +638 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +2563 -866
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +327 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1720 -347
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +210 -4
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2119
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +2326 -492
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +2273 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +17 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +473 -5
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +24 -24
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +795 -0
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +106 -5
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +924 -0
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1508 -251
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +121 -97
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +4 -20
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +332 -26
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +303 -17
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +199 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_service_executions_response.py → job_id_reportroutingtelemetry_body.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +627 -3
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +523 -3
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → protobuf_null_value.py} +7 -9
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +93 -15
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +233 -129
- lightning_sdk/lightning_cloud/openapi/models/update1.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +6 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +117 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +313 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +211 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +521 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_response.py → v1_cluster_upload.py} +34 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_complete_body.py → v1_complete_upload_temporary_artifact_request.py} +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +261 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_file_endpoint_response.py → v1_delete_pipeline_response.py} +25 -25
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +112 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -2
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +931 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{id_uploads_body1.py → v1_firewall_rule.py} +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_gcp_data_connection_setup.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_system_metrics_aggregate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_get_lit_dataset_file_upload_urls_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +185 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_service_artifact.py → v1_guest_user.py} +60 -60
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +95 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +109 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +67 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_service_execution_artifact_response.py → v1_list_blog_posts_response.py} +41 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +257 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_file_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_storage_body.py → v1_lit_dataset_file.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +35 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +81 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +341 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_modify_filesystem_volume_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +695 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +837 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +747 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +525 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_k8s_cluster_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cloud_space_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_schedule_action_type.py} +9 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_service_execution_status_response.py → v1_server_alert.py} +74 -48
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +84 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics_aggregated.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_update_organization_credits_auto_replenish_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → v1_upload_temporary_artifact_request.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +894 -842
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +229 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +513 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +61 -48
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +234 -7
- lightning_sdk/lit_container.py +68 -9
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +497 -0
- lightning_sdk/llm/public_assistants.py +54 -0
- lightning_sdk/machine.py +221 -30
- lightning_sdk/mmt/base.py +67 -32
- lightning_sdk/mmt/mmt.py +68 -50
- lightning_sdk/mmt/v1.py +16 -32
- lightning_sdk/mmt/v2.py +47 -18
- lightning_sdk/models.py +74 -24
- lightning_sdk/organization.py +4 -0
- lightning_sdk/owner.py +2 -1
- lightning_sdk/pipeline/__init__.py +14 -0
- lightning_sdk/pipeline/pipeline.py +163 -0
- lightning_sdk/pipeline/printer.py +124 -0
- lightning_sdk/pipeline/schedule.py +859 -0
- lightning_sdk/pipeline/steps.py +365 -0
- lightning_sdk/pipeline/utils.py +116 -0
- lightning_sdk/plugin.py +39 -20
- lightning_sdk/sandbox.py +160 -0
- lightning_sdk/serve.py +309 -0
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- lightning_sdk/services/utilities.py +16 -2
- lightning_sdk/studio.py +515 -41
- lightning_sdk/teamspace.py +335 -30
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +179 -0
- lightning_sdk/utils/license.py +13 -0
- lightning_sdk/utils/logging.py +79 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +283 -0
- lightning_sdk/utils/resolve.py +149 -13
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +14 -11
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +649 -250
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
- lightning_sdk/cli/ai_hub.py +0 -49
- lightning_sdk/cli/delete.py +0 -58
- lightning_sdk/cli/download.py +0 -132
- lightning_sdk/cli/inspect.py +0 -31
- lightning_sdk/cli/legacy.py +0 -135
- lightning_sdk/cli/list.py +0 -112
- lightning_sdk/cli/run.py +0 -225
- lightning_sdk/cli/serve.py +0 -218
- lightning_sdk/cli/stop.py +0 -37
- lightning_sdk/cli/upload.py +0 -255
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
|
@@ -43,45 +43,47 @@ class StorageServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
-
def
|
|
47
|
-
"""
|
|
46
|
+
def storage_service_abort_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1AbortStorageTransferResponse': # noqa: E501
|
|
47
|
+
"""storage_service_abort_storage_transfer # noqa: E501
|
|
48
48
|
|
|
49
49
|
This method makes a synchronous HTTP request by default. To make an
|
|
50
50
|
asynchronous HTTP request, please pass async_req=True
|
|
51
|
-
>>> thread = api.
|
|
51
|
+
>>> thread = api.storage_service_abort_storage_transfer(body, project_id, id, async_req=True)
|
|
52
52
|
>>> result = thread.get()
|
|
53
53
|
|
|
54
54
|
:param async_req bool
|
|
55
|
-
:param
|
|
55
|
+
:param object body: (required)
|
|
56
56
|
:param str project_id: (required)
|
|
57
|
-
:
|
|
57
|
+
:param str id: (required)
|
|
58
|
+
:return: V1AbortStorageTransferResponse
|
|
58
59
|
If the method is called asynchronously,
|
|
59
60
|
returns the request thread.
|
|
60
61
|
"""
|
|
61
62
|
kwargs['_return_http_data_only'] = True
|
|
62
63
|
if kwargs.get('async_req'):
|
|
63
|
-
return self.
|
|
64
|
+
return self.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
64
65
|
else:
|
|
65
|
-
(data) = self.
|
|
66
|
+
(data) = self.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
66
67
|
return data
|
|
67
68
|
|
|
68
|
-
def
|
|
69
|
-
"""
|
|
69
|
+
def storage_service_abort_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1AbortStorageTransferResponse': # noqa: E501
|
|
70
|
+
"""storage_service_abort_storage_transfer # noqa: E501
|
|
70
71
|
|
|
71
72
|
This method makes a synchronous HTTP request by default. To make an
|
|
72
73
|
asynchronous HTTP request, please pass async_req=True
|
|
73
|
-
>>> thread = api.
|
|
74
|
+
>>> thread = api.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, async_req=True)
|
|
74
75
|
>>> result = thread.get()
|
|
75
76
|
|
|
76
77
|
:param async_req bool
|
|
77
|
-
:param
|
|
78
|
+
:param object body: (required)
|
|
78
79
|
:param str project_id: (required)
|
|
79
|
-
:
|
|
80
|
+
:param str id: (required)
|
|
81
|
+
:return: V1AbortStorageTransferResponse
|
|
80
82
|
If the method is called asynchronously,
|
|
81
83
|
returns the request thread.
|
|
82
84
|
"""
|
|
83
85
|
|
|
84
|
-
all_params = ['body', 'project_id'] # noqa: E501
|
|
86
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
85
87
|
all_params.append('async_req')
|
|
86
88
|
all_params.append('_return_http_data_only')
|
|
87
89
|
all_params.append('_preload_content')
|
|
@@ -92,24 +94,30 @@ class StorageServiceApi(object):
|
|
|
92
94
|
if key not in all_params:
|
|
93
95
|
raise TypeError(
|
|
94
96
|
"Got an unexpected keyword argument '%s'"
|
|
95
|
-
" to method
|
|
97
|
+
" to method storage_service_abort_storage_transfer" % key
|
|
96
98
|
)
|
|
97
99
|
params[key] = val
|
|
98
100
|
del params['kwargs']
|
|
99
101
|
# verify the required parameter 'body' is set
|
|
100
102
|
if ('body' not in params or
|
|
101
103
|
params['body'] is None):
|
|
102
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
104
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_abort_storage_transfer`") # noqa: E501
|
|
103
105
|
# verify the required parameter 'project_id' is set
|
|
104
106
|
if ('project_id' not in params or
|
|
105
107
|
params['project_id'] is None):
|
|
106
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
108
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_abort_storage_transfer`") # noqa: E501
|
|
109
|
+
# verify the required parameter 'id' is set
|
|
110
|
+
if ('id' not in params or
|
|
111
|
+
params['id'] is None):
|
|
112
|
+
raise ValueError("Missing the required parameter `id` when calling `storage_service_abort_storage_transfer`") # noqa: E501
|
|
107
113
|
|
|
108
114
|
collection_formats = {}
|
|
109
115
|
|
|
110
116
|
path_params = {}
|
|
111
117
|
if 'project_id' in params:
|
|
112
118
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
119
|
+
if 'id' in params:
|
|
120
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
113
121
|
|
|
114
122
|
query_params = []
|
|
115
123
|
|
|
@@ -133,14 +141,14 @@ class StorageServiceApi(object):
|
|
|
133
141
|
auth_settings = [] # noqa: E501
|
|
134
142
|
|
|
135
143
|
return self.api_client.call_api(
|
|
136
|
-
'/v1/projects/{projectId}/storage/
|
|
144
|
+
'/v1/projects/{projectId}/storage-transfers/{id}/abort', 'POST',
|
|
137
145
|
path_params,
|
|
138
146
|
query_params,
|
|
139
147
|
header_params,
|
|
140
148
|
body=body_params,
|
|
141
149
|
post_params=form_params,
|
|
142
150
|
files=local_var_files,
|
|
143
|
-
response_type='
|
|
151
|
+
response_type='V1AbortStorageTransferResponse', # noqa: E501
|
|
144
152
|
auth_settings=auth_settings,
|
|
145
153
|
async_req=params.get('async_req'),
|
|
146
154
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -148,47 +156,45 @@ class StorageServiceApi(object):
|
|
|
148
156
|
_request_timeout=params.get('_request_timeout'),
|
|
149
157
|
collection_formats=collection_formats)
|
|
150
158
|
|
|
151
|
-
def
|
|
152
|
-
"""
|
|
159
|
+
def storage_service_complete_upload_project_artifact(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
160
|
+
"""storage_service_complete_upload_project_artifact # noqa: E501
|
|
153
161
|
|
|
154
162
|
This method makes a synchronous HTTP request by default. To make an
|
|
155
163
|
asynchronous HTTP request, please pass async_req=True
|
|
156
|
-
>>> thread = api.
|
|
164
|
+
>>> thread = api.storage_service_complete_upload_project_artifact(body, project_id, async_req=True)
|
|
157
165
|
>>> result = thread.get()
|
|
158
166
|
|
|
159
167
|
:param async_req bool
|
|
168
|
+
:param StorageCompleteBody body: (required)
|
|
160
169
|
:param str project_id: (required)
|
|
161
|
-
:
|
|
162
|
-
:param str filename:
|
|
163
|
-
:return: V1DeleteProjectArtifactResponse
|
|
170
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
164
171
|
If the method is called asynchronously,
|
|
165
172
|
returns the request thread.
|
|
166
173
|
"""
|
|
167
174
|
kwargs['_return_http_data_only'] = True
|
|
168
175
|
if kwargs.get('async_req'):
|
|
169
|
-
return self.
|
|
176
|
+
return self.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
170
177
|
else:
|
|
171
|
-
(data) = self.
|
|
178
|
+
(data) = self.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
172
179
|
return data
|
|
173
180
|
|
|
174
|
-
def
|
|
175
|
-
"""
|
|
181
|
+
def storage_service_complete_upload_project_artifact_with_http_info(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
182
|
+
"""storage_service_complete_upload_project_artifact # noqa: E501
|
|
176
183
|
|
|
177
184
|
This method makes a synchronous HTTP request by default. To make an
|
|
178
185
|
asynchronous HTTP request, please pass async_req=True
|
|
179
|
-
>>> thread = api.
|
|
186
|
+
>>> thread = api.storage_service_complete_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
180
187
|
>>> result = thread.get()
|
|
181
188
|
|
|
182
189
|
:param async_req bool
|
|
190
|
+
:param StorageCompleteBody body: (required)
|
|
183
191
|
:param str project_id: (required)
|
|
184
|
-
:
|
|
185
|
-
:param str filename:
|
|
186
|
-
:return: V1DeleteProjectArtifactResponse
|
|
192
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
187
193
|
If the method is called asynchronously,
|
|
188
194
|
returns the request thread.
|
|
189
195
|
"""
|
|
190
196
|
|
|
191
|
-
all_params = ['
|
|
197
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
192
198
|
all_params.append('async_req')
|
|
193
199
|
all_params.append('_return_http_data_only')
|
|
194
200
|
all_params.append('_preload_content')
|
|
@@ -199,14 +205,18 @@ class StorageServiceApi(object):
|
|
|
199
205
|
if key not in all_params:
|
|
200
206
|
raise TypeError(
|
|
201
207
|
"Got an unexpected keyword argument '%s'"
|
|
202
|
-
" to method
|
|
208
|
+
" to method storage_service_complete_upload_project_artifact" % key
|
|
203
209
|
)
|
|
204
210
|
params[key] = val
|
|
205
211
|
del params['kwargs']
|
|
212
|
+
# verify the required parameter 'body' is set
|
|
213
|
+
if ('body' not in params or
|
|
214
|
+
params['body'] is None):
|
|
215
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_complete_upload_project_artifact`") # noqa: E501
|
|
206
216
|
# verify the required parameter 'project_id' is set
|
|
207
217
|
if ('project_id' not in params or
|
|
208
218
|
params['project_id'] is None):
|
|
209
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
219
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_complete_upload_project_artifact`") # noqa: E501
|
|
210
220
|
|
|
211
221
|
collection_formats = {}
|
|
212
222
|
|
|
@@ -215,10 +225,6 @@ class StorageServiceApi(object):
|
|
|
215
225
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
216
226
|
|
|
217
227
|
query_params = []
|
|
218
|
-
if 'cluster_id' in params:
|
|
219
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
220
|
-
if 'filename' in params:
|
|
221
|
-
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
222
228
|
|
|
223
229
|
header_params = {}
|
|
224
230
|
|
|
@@ -226,22 +232,28 @@ class StorageServiceApi(object):
|
|
|
226
232
|
local_var_files = {}
|
|
227
233
|
|
|
228
234
|
body_params = None
|
|
235
|
+
if 'body' in params:
|
|
236
|
+
body_params = params['body']
|
|
229
237
|
# HTTP header `Accept`
|
|
230
238
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
231
239
|
['application/json']) # noqa: E501
|
|
232
240
|
|
|
241
|
+
# HTTP header `Content-Type`
|
|
242
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
243
|
+
['application/json']) # noqa: E501
|
|
244
|
+
|
|
233
245
|
# Authentication setting
|
|
234
246
|
auth_settings = [] # noqa: E501
|
|
235
247
|
|
|
236
248
|
return self.api_client.call_api(
|
|
237
|
-
'/v1/projects/{projectId}/storage', '
|
|
249
|
+
'/v1/projects/{projectId}/storage/complete', 'POST',
|
|
238
250
|
path_params,
|
|
239
251
|
query_params,
|
|
240
252
|
header_params,
|
|
241
253
|
body=body_params,
|
|
242
254
|
post_params=form_params,
|
|
243
255
|
files=local_var_files,
|
|
244
|
-
response_type='
|
|
256
|
+
response_type='V1CompleteUploadProjectArtifactResponse', # noqa: E501
|
|
245
257
|
auth_settings=auth_settings,
|
|
246
258
|
async_req=params.get('async_req'),
|
|
247
259
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -249,47 +261,43 @@ class StorageServiceApi(object):
|
|
|
249
261
|
_request_timeout=params.get('_request_timeout'),
|
|
250
262
|
collection_formats=collection_formats)
|
|
251
263
|
|
|
252
|
-
def
|
|
253
|
-
"""
|
|
264
|
+
def storage_service_complete_upload_temporary_artifact(self, body: 'V1CompleteUploadTemporaryArtifactRequest', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
265
|
+
"""storage_service_complete_upload_temporary_artifact # noqa: E501
|
|
254
266
|
|
|
255
267
|
This method makes a synchronous HTTP request by default. To make an
|
|
256
268
|
asynchronous HTTP request, please pass async_req=True
|
|
257
|
-
>>> thread = api.
|
|
269
|
+
>>> thread = api.storage_service_complete_upload_temporary_artifact(body, async_req=True)
|
|
258
270
|
>>> result = thread.get()
|
|
259
271
|
|
|
260
272
|
:param async_req bool
|
|
261
|
-
:param
|
|
262
|
-
:
|
|
263
|
-
:param str filename:
|
|
264
|
-
:return: V1GetProjectArtifactResponse
|
|
273
|
+
:param V1CompleteUploadTemporaryArtifactRequest body: (required)
|
|
274
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
265
275
|
If the method is called asynchronously,
|
|
266
276
|
returns the request thread.
|
|
267
277
|
"""
|
|
268
278
|
kwargs['_return_http_data_only'] = True
|
|
269
279
|
if kwargs.get('async_req'):
|
|
270
|
-
return self.
|
|
280
|
+
return self.storage_service_complete_upload_temporary_artifact_with_http_info(body, **kwargs) # noqa: E501
|
|
271
281
|
else:
|
|
272
|
-
(data) = self.
|
|
282
|
+
(data) = self.storage_service_complete_upload_temporary_artifact_with_http_info(body, **kwargs) # noqa: E501
|
|
273
283
|
return data
|
|
274
284
|
|
|
275
|
-
def
|
|
276
|
-
"""
|
|
285
|
+
def storage_service_complete_upload_temporary_artifact_with_http_info(self, body: 'V1CompleteUploadTemporaryArtifactRequest', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
|
|
286
|
+
"""storage_service_complete_upload_temporary_artifact # noqa: E501
|
|
277
287
|
|
|
278
288
|
This method makes a synchronous HTTP request by default. To make an
|
|
279
289
|
asynchronous HTTP request, please pass async_req=True
|
|
280
|
-
>>> thread = api.
|
|
290
|
+
>>> thread = api.storage_service_complete_upload_temporary_artifact_with_http_info(body, async_req=True)
|
|
281
291
|
>>> result = thread.get()
|
|
282
292
|
|
|
283
293
|
:param async_req bool
|
|
284
|
-
:param
|
|
285
|
-
:
|
|
286
|
-
:param str filename:
|
|
287
|
-
:return: V1GetProjectArtifactResponse
|
|
294
|
+
:param V1CompleteUploadTemporaryArtifactRequest body: (required)
|
|
295
|
+
:return: V1CompleteUploadProjectArtifactResponse
|
|
288
296
|
If the method is called asynchronously,
|
|
289
297
|
returns the request thread.
|
|
290
298
|
"""
|
|
291
299
|
|
|
292
|
-
all_params = ['
|
|
300
|
+
all_params = ['body'] # noqa: E501
|
|
293
301
|
all_params.append('async_req')
|
|
294
302
|
all_params.append('_return_http_data_only')
|
|
295
303
|
all_params.append('_preload_content')
|
|
@@ -300,26 +308,20 @@ class StorageServiceApi(object):
|
|
|
300
308
|
if key not in all_params:
|
|
301
309
|
raise TypeError(
|
|
302
310
|
"Got an unexpected keyword argument '%s'"
|
|
303
|
-
" to method
|
|
311
|
+
" to method storage_service_complete_upload_temporary_artifact" % key
|
|
304
312
|
)
|
|
305
313
|
params[key] = val
|
|
306
314
|
del params['kwargs']
|
|
307
|
-
# verify the required parameter '
|
|
308
|
-
if ('
|
|
309
|
-
params['
|
|
310
|
-
raise ValueError("Missing the required parameter `
|
|
315
|
+
# verify the required parameter 'body' is set
|
|
316
|
+
if ('body' not in params or
|
|
317
|
+
params['body'] is None):
|
|
318
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_complete_upload_temporary_artifact`") # noqa: E501
|
|
311
319
|
|
|
312
320
|
collection_formats = {}
|
|
313
321
|
|
|
314
322
|
path_params = {}
|
|
315
|
-
if 'project_id' in params:
|
|
316
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
317
323
|
|
|
318
324
|
query_params = []
|
|
319
|
-
if 'cluster_id' in params:
|
|
320
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
321
|
-
if 'filename' in params:
|
|
322
|
-
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
323
325
|
|
|
324
326
|
header_params = {}
|
|
325
327
|
|
|
@@ -327,22 +329,28 @@ class StorageServiceApi(object):
|
|
|
327
329
|
local_var_files = {}
|
|
328
330
|
|
|
329
331
|
body_params = None
|
|
332
|
+
if 'body' in params:
|
|
333
|
+
body_params = params['body']
|
|
330
334
|
# HTTP header `Accept`
|
|
331
335
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
332
336
|
['application/json']) # noqa: E501
|
|
333
337
|
|
|
338
|
+
# HTTP header `Content-Type`
|
|
339
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
340
|
+
['application/json']) # noqa: E501
|
|
341
|
+
|
|
334
342
|
# Authentication setting
|
|
335
343
|
auth_settings = [] # noqa: E501
|
|
336
344
|
|
|
337
345
|
return self.api_client.call_api(
|
|
338
|
-
'/v1/projects/
|
|
346
|
+
'/v1/projects/temporary_storage/complete', 'POST',
|
|
339
347
|
path_params,
|
|
340
348
|
query_params,
|
|
341
349
|
header_params,
|
|
342
350
|
body=body_params,
|
|
343
351
|
post_params=form_params,
|
|
344
352
|
files=local_var_files,
|
|
345
|
-
response_type='
|
|
353
|
+
response_type='V1CompleteUploadProjectArtifactResponse', # noqa: E501
|
|
346
354
|
auth_settings=auth_settings,
|
|
347
355
|
async_req=params.get('async_req'),
|
|
348
356
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -350,43 +358,45 @@ class StorageServiceApi(object):
|
|
|
350
358
|
_request_timeout=params.get('_request_timeout'),
|
|
351
359
|
collection_formats=collection_formats)
|
|
352
360
|
|
|
353
|
-
def
|
|
354
|
-
"""
|
|
361
|
+
def storage_service_create_storage_transfer(self, body: 'ProjectIdStoragetransfersBody', project_id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
|
|
362
|
+
"""storage_service_create_storage_transfer # noqa: E501
|
|
355
363
|
|
|
356
364
|
This method makes a synchronous HTTP request by default. To make an
|
|
357
365
|
asynchronous HTTP request, please pass async_req=True
|
|
358
|
-
>>> thread = api.
|
|
366
|
+
>>> thread = api.storage_service_create_storage_transfer(body, project_id, async_req=True)
|
|
359
367
|
>>> result = thread.get()
|
|
360
368
|
|
|
361
369
|
:param async_req bool
|
|
370
|
+
:param ProjectIdStoragetransfersBody body: (required)
|
|
362
371
|
:param str project_id: (required)
|
|
363
|
-
:return:
|
|
372
|
+
:return: V1StorageTransfer
|
|
364
373
|
If the method is called asynchronously,
|
|
365
374
|
returns the request thread.
|
|
366
375
|
"""
|
|
367
376
|
kwargs['_return_http_data_only'] = True
|
|
368
377
|
if kwargs.get('async_req'):
|
|
369
|
-
return self.
|
|
378
|
+
return self.storage_service_create_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
370
379
|
else:
|
|
371
|
-
(data) = self.
|
|
380
|
+
(data) = self.storage_service_create_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
372
381
|
return data
|
|
373
382
|
|
|
374
|
-
def
|
|
375
|
-
"""
|
|
383
|
+
def storage_service_create_storage_transfer_with_http_info(self, body: 'ProjectIdStoragetransfersBody', project_id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
|
|
384
|
+
"""storage_service_create_storage_transfer # noqa: E501
|
|
376
385
|
|
|
377
386
|
This method makes a synchronous HTTP request by default. To make an
|
|
378
387
|
asynchronous HTTP request, please pass async_req=True
|
|
379
|
-
>>> thread = api.
|
|
388
|
+
>>> thread = api.storage_service_create_storage_transfer_with_http_info(body, project_id, async_req=True)
|
|
380
389
|
>>> result = thread.get()
|
|
381
390
|
|
|
382
391
|
:param async_req bool
|
|
392
|
+
:param ProjectIdStoragetransfersBody body: (required)
|
|
383
393
|
:param str project_id: (required)
|
|
384
|
-
:return:
|
|
394
|
+
:return: V1StorageTransfer
|
|
385
395
|
If the method is called asynchronously,
|
|
386
396
|
returns the request thread.
|
|
387
397
|
"""
|
|
388
398
|
|
|
389
|
-
all_params = ['project_id'] # noqa: E501
|
|
399
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
390
400
|
all_params.append('async_req')
|
|
391
401
|
all_params.append('_return_http_data_only')
|
|
392
402
|
all_params.append('_preload_content')
|
|
@@ -397,14 +407,18 @@ class StorageServiceApi(object):
|
|
|
397
407
|
if key not in all_params:
|
|
398
408
|
raise TypeError(
|
|
399
409
|
"Got an unexpected keyword argument '%s'"
|
|
400
|
-
" to method
|
|
410
|
+
" to method storage_service_create_storage_transfer" % key
|
|
401
411
|
)
|
|
402
412
|
params[key] = val
|
|
403
413
|
del params['kwargs']
|
|
414
|
+
# verify the required parameter 'body' is set
|
|
415
|
+
if ('body' not in params or
|
|
416
|
+
params['body'] is None):
|
|
417
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_create_storage_transfer`") # noqa: E501
|
|
404
418
|
# verify the required parameter 'project_id' is set
|
|
405
419
|
if ('project_id' not in params or
|
|
406
420
|
params['project_id'] is None):
|
|
407
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
421
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_create_storage_transfer`") # noqa: E501
|
|
408
422
|
|
|
409
423
|
collection_formats = {}
|
|
410
424
|
|
|
@@ -420,22 +434,28 @@ class StorageServiceApi(object):
|
|
|
420
434
|
local_var_files = {}
|
|
421
435
|
|
|
422
436
|
body_params = None
|
|
437
|
+
if 'body' in params:
|
|
438
|
+
body_params = params['body']
|
|
423
439
|
# HTTP header `Accept`
|
|
424
440
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
425
441
|
['application/json']) # noqa: E501
|
|
426
442
|
|
|
443
|
+
# HTTP header `Content-Type`
|
|
444
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
445
|
+
['application/json']) # noqa: E501
|
|
446
|
+
|
|
427
447
|
# Authentication setting
|
|
428
448
|
auth_settings = [] # noqa: E501
|
|
429
449
|
|
|
430
450
|
return self.api_client.call_api(
|
|
431
|
-
'/v1/projects/{projectId}/storage
|
|
451
|
+
'/v1/projects/{projectId}/storage-transfers', 'POST',
|
|
432
452
|
path_params,
|
|
433
453
|
query_params,
|
|
434
454
|
header_params,
|
|
435
455
|
body=body_params,
|
|
436
456
|
post_params=form_params,
|
|
437
457
|
files=local_var_files,
|
|
438
|
-
response_type='
|
|
458
|
+
response_type='V1StorageTransfer', # noqa: E501
|
|
439
459
|
auth_settings=auth_settings,
|
|
440
460
|
async_req=params.get('async_req'),
|
|
441
461
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -443,55 +463,49 @@ class StorageServiceApi(object):
|
|
|
443
463
|
_request_timeout=params.get('_request_timeout'),
|
|
444
464
|
collection_formats=collection_formats)
|
|
445
465
|
|
|
446
|
-
def
|
|
447
|
-
"""
|
|
466
|
+
def storage_service_delete_project_artifact(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
467
|
+
"""storage_service_delete_project_artifact # noqa: E501
|
|
448
468
|
|
|
449
469
|
This method makes a synchronous HTTP request by default. To make an
|
|
450
470
|
asynchronous HTTP request, please pass async_req=True
|
|
451
|
-
>>> thread = api.
|
|
471
|
+
>>> thread = api.storage_service_delete_project_artifact(project_id, async_req=True)
|
|
452
472
|
>>> result = thread.get()
|
|
453
473
|
|
|
454
474
|
:param async_req bool
|
|
455
475
|
:param str project_id: (required)
|
|
456
|
-
:param str id:
|
|
457
|
-
:param str page_number:
|
|
458
|
-
:param str prefix:
|
|
459
|
-
:param bool include_download_url:
|
|
460
476
|
:param str cluster_id:
|
|
461
|
-
:param
|
|
462
|
-
:
|
|
477
|
+
:param str filename:
|
|
478
|
+
:param str data_connection_id:
|
|
479
|
+
:return: V1DeleteProjectArtifactResponse
|
|
463
480
|
If the method is called asynchronously,
|
|
464
481
|
returns the request thread.
|
|
465
482
|
"""
|
|
466
483
|
kwargs['_return_http_data_only'] = True
|
|
467
484
|
if kwargs.get('async_req'):
|
|
468
|
-
return self.
|
|
485
|
+
return self.storage_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
469
486
|
else:
|
|
470
|
-
(data) = self.
|
|
487
|
+
(data) = self.storage_service_delete_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
471
488
|
return data
|
|
472
489
|
|
|
473
|
-
def
|
|
474
|
-
"""
|
|
490
|
+
def storage_service_delete_project_artifact_with_http_info(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
|
|
491
|
+
"""storage_service_delete_project_artifact # noqa: E501
|
|
475
492
|
|
|
476
493
|
This method makes a synchronous HTTP request by default. To make an
|
|
477
494
|
asynchronous HTTP request, please pass async_req=True
|
|
478
|
-
>>> thread = api.
|
|
495
|
+
>>> thread = api.storage_service_delete_project_artifact_with_http_info(project_id, async_req=True)
|
|
479
496
|
>>> result = thread.get()
|
|
480
497
|
|
|
481
498
|
:param async_req bool
|
|
482
499
|
:param str project_id: (required)
|
|
483
|
-
:param str id:
|
|
484
|
-
:param str page_number:
|
|
485
|
-
:param str prefix:
|
|
486
|
-
:param bool include_download_url:
|
|
487
500
|
:param str cluster_id:
|
|
488
|
-
:param
|
|
489
|
-
:
|
|
501
|
+
:param str filename:
|
|
502
|
+
:param str data_connection_id:
|
|
503
|
+
:return: V1DeleteProjectArtifactResponse
|
|
490
504
|
If the method is called asynchronously,
|
|
491
505
|
returns the request thread.
|
|
492
506
|
"""
|
|
493
507
|
|
|
494
|
-
all_params = ['project_id', '
|
|
508
|
+
all_params = ['project_id', 'cluster_id', 'filename', 'data_connection_id'] # noqa: E501
|
|
495
509
|
all_params.append('async_req')
|
|
496
510
|
all_params.append('_return_http_data_only')
|
|
497
511
|
all_params.append('_preload_content')
|
|
@@ -502,14 +516,14 @@ class StorageServiceApi(object):
|
|
|
502
516
|
if key not in all_params:
|
|
503
517
|
raise TypeError(
|
|
504
518
|
"Got an unexpected keyword argument '%s'"
|
|
505
|
-
" to method
|
|
519
|
+
" to method storage_service_delete_project_artifact" % key
|
|
506
520
|
)
|
|
507
521
|
params[key] = val
|
|
508
522
|
del params['kwargs']
|
|
509
523
|
# verify the required parameter 'project_id' is set
|
|
510
524
|
if ('project_id' not in params or
|
|
511
525
|
params['project_id'] is None):
|
|
512
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
526
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_delete_project_artifact`") # noqa: E501
|
|
513
527
|
|
|
514
528
|
collection_formats = {}
|
|
515
529
|
|
|
@@ -518,18 +532,12 @@ class StorageServiceApi(object):
|
|
|
518
532
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
519
533
|
|
|
520
534
|
query_params = []
|
|
521
|
-
if 'id' in params:
|
|
522
|
-
query_params.append(('id', params['id'])) # noqa: E501
|
|
523
|
-
if 'page_number' in params:
|
|
524
|
-
query_params.append(('pageNumber', params['page_number'])) # noqa: E501
|
|
525
|
-
if 'prefix' in params:
|
|
526
|
-
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
527
|
-
if 'include_download_url' in params:
|
|
528
|
-
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
529
535
|
if 'cluster_id' in params:
|
|
530
536
|
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
531
|
-
if '
|
|
532
|
-
query_params.append(('
|
|
537
|
+
if 'filename' in params:
|
|
538
|
+
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
539
|
+
if 'data_connection_id' in params:
|
|
540
|
+
query_params.append(('dataConnectionId', params['data_connection_id'])) # noqa: E501
|
|
533
541
|
|
|
534
542
|
header_params = {}
|
|
535
543
|
|
|
@@ -545,14 +553,14 @@ class StorageServiceApi(object):
|
|
|
545
553
|
auth_settings = [] # noqa: E501
|
|
546
554
|
|
|
547
555
|
return self.api_client.call_api(
|
|
548
|
-
'/v1/projects/{projectId}/storage
|
|
556
|
+
'/v1/projects/{projectId}/storage', 'DELETE',
|
|
549
557
|
path_params,
|
|
550
558
|
query_params,
|
|
551
559
|
header_params,
|
|
552
560
|
body=body_params,
|
|
553
561
|
post_params=form_params,
|
|
554
562
|
files=local_var_files,
|
|
555
|
-
response_type='
|
|
563
|
+
response_type='V1DeleteProjectArtifactResponse', # noqa: E501
|
|
556
564
|
auth_settings=auth_settings,
|
|
557
565
|
async_req=params.get('async_req'),
|
|
558
566
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -560,51 +568,43 @@ class StorageServiceApi(object):
|
|
|
560
568
|
_request_timeout=params.get('_request_timeout'),
|
|
561
569
|
collection_formats=collection_formats)
|
|
562
570
|
|
|
563
|
-
def
|
|
564
|
-
"""
|
|
571
|
+
def storage_service_get_org_storage_metadata(self, org_id: 'str', **kwargs) -> 'V1GetOrganizationStorageMetadataResponse': # noqa: E501
|
|
572
|
+
"""storage_service_get_org_storage_metadata # noqa: E501
|
|
565
573
|
|
|
566
574
|
This method makes a synchronous HTTP request by default. To make an
|
|
567
575
|
asynchronous HTTP request, please pass async_req=True
|
|
568
|
-
>>> thread = api.
|
|
576
|
+
>>> thread = api.storage_service_get_org_storage_metadata(org_id, async_req=True)
|
|
569
577
|
>>> result = thread.get()
|
|
570
578
|
|
|
571
579
|
:param async_req bool
|
|
572
|
-
:param str
|
|
573
|
-
:
|
|
574
|
-
:param str prefix:
|
|
575
|
-
:param str cluster_id:
|
|
576
|
-
:param bool local_index:
|
|
577
|
-
:return: V1GetFolderIndexResponse
|
|
580
|
+
:param str org_id: (required)
|
|
581
|
+
:return: V1GetOrganizationStorageMetadataResponse
|
|
578
582
|
If the method is called asynchronously,
|
|
579
583
|
returns the request thread.
|
|
580
584
|
"""
|
|
581
585
|
kwargs['_return_http_data_only'] = True
|
|
582
586
|
if kwargs.get('async_req'):
|
|
583
|
-
return self.
|
|
587
|
+
return self.storage_service_get_org_storage_metadata_with_http_info(org_id, **kwargs) # noqa: E501
|
|
584
588
|
else:
|
|
585
|
-
(data) = self.
|
|
589
|
+
(data) = self.storage_service_get_org_storage_metadata_with_http_info(org_id, **kwargs) # noqa: E501
|
|
586
590
|
return data
|
|
587
591
|
|
|
588
|
-
def
|
|
589
|
-
"""
|
|
592
|
+
def storage_service_get_org_storage_metadata_with_http_info(self, org_id: 'str', **kwargs) -> 'V1GetOrganizationStorageMetadataResponse': # noqa: E501
|
|
593
|
+
"""storage_service_get_org_storage_metadata # noqa: E501
|
|
590
594
|
|
|
591
595
|
This method makes a synchronous HTTP request by default. To make an
|
|
592
596
|
asynchronous HTTP request, please pass async_req=True
|
|
593
|
-
>>> thread = api.
|
|
597
|
+
>>> thread = api.storage_service_get_org_storage_metadata_with_http_info(org_id, async_req=True)
|
|
594
598
|
>>> result = thread.get()
|
|
595
599
|
|
|
596
600
|
:param async_req bool
|
|
597
|
-
:param str
|
|
598
|
-
:
|
|
599
|
-
:param str prefix:
|
|
600
|
-
:param str cluster_id:
|
|
601
|
-
:param bool local_index:
|
|
602
|
-
:return: V1GetFolderIndexResponse
|
|
601
|
+
:param str org_id: (required)
|
|
602
|
+
:return: V1GetOrganizationStorageMetadataResponse
|
|
603
603
|
If the method is called asynchronously,
|
|
604
604
|
returns the request thread.
|
|
605
605
|
"""
|
|
606
606
|
|
|
607
|
-
all_params = ['
|
|
607
|
+
all_params = ['org_id'] # noqa: E501
|
|
608
608
|
all_params.append('async_req')
|
|
609
609
|
all_params.append('_return_http_data_only')
|
|
610
610
|
all_params.append('_preload_content')
|
|
@@ -615,30 +615,22 @@ class StorageServiceApi(object):
|
|
|
615
615
|
if key not in all_params:
|
|
616
616
|
raise TypeError(
|
|
617
617
|
"Got an unexpected keyword argument '%s'"
|
|
618
|
-
" to method
|
|
618
|
+
" to method storage_service_get_org_storage_metadata" % key
|
|
619
619
|
)
|
|
620
620
|
params[key] = val
|
|
621
621
|
del params['kwargs']
|
|
622
|
-
# verify the required parameter '
|
|
623
|
-
if ('
|
|
624
|
-
params['
|
|
625
|
-
raise ValueError("Missing the required parameter `
|
|
622
|
+
# verify the required parameter 'org_id' is set
|
|
623
|
+
if ('org_id' not in params or
|
|
624
|
+
params['org_id'] is None):
|
|
625
|
+
raise ValueError("Missing the required parameter `org_id` when calling `storage_service_get_org_storage_metadata`") # noqa: E501
|
|
626
626
|
|
|
627
627
|
collection_formats = {}
|
|
628
628
|
|
|
629
629
|
path_params = {}
|
|
630
|
-
if '
|
|
631
|
-
path_params['
|
|
630
|
+
if 'org_id' in params:
|
|
631
|
+
path_params['orgId'] = params['org_id'] # noqa: E501
|
|
632
632
|
|
|
633
633
|
query_params = []
|
|
634
|
-
if 'id' in params:
|
|
635
|
-
query_params.append(('id', params['id'])) # noqa: E501
|
|
636
|
-
if 'prefix' in params:
|
|
637
|
-
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
638
|
-
if 'cluster_id' in params:
|
|
639
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
640
|
-
if 'local_index' in params:
|
|
641
|
-
query_params.append(('localIndex', params['local_index'])) # noqa: E501
|
|
642
634
|
|
|
643
635
|
header_params = {}
|
|
644
636
|
|
|
@@ -654,14 +646,14 @@ class StorageServiceApi(object):
|
|
|
654
646
|
auth_settings = [] # noqa: E501
|
|
655
647
|
|
|
656
648
|
return self.api_client.call_api(
|
|
657
|
-
'/v1/
|
|
649
|
+
'/v1/orgs/{orgId}/storage/metadata', 'GET',
|
|
658
650
|
path_params,
|
|
659
651
|
query_params,
|
|
660
652
|
header_params,
|
|
661
653
|
body=body_params,
|
|
662
654
|
post_params=form_params,
|
|
663
655
|
files=local_var_files,
|
|
664
|
-
response_type='
|
|
656
|
+
response_type='V1GetOrganizationStorageMetadataResponse', # noqa: E501
|
|
665
657
|
auth_settings=auth_settings,
|
|
666
658
|
async_req=params.get('async_req'),
|
|
667
659
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -669,53 +661,1209 @@ class StorageServiceApi(object):
|
|
|
669
661
|
_request_timeout=params.get('_request_timeout'),
|
|
670
662
|
collection_formats=collection_formats)
|
|
671
663
|
|
|
672
|
-
def
|
|
673
|
-
"""
|
|
664
|
+
def storage_service_get_project_artifact(self, project_id: 'str', **kwargs) -> 'V1GetProjectArtifactResponse': # noqa: E501
|
|
665
|
+
"""storage_service_get_project_artifact # noqa: E501
|
|
674
666
|
|
|
675
667
|
This method makes a synchronous HTTP request by default. To make an
|
|
676
668
|
asynchronous HTTP request, please pass async_req=True
|
|
677
|
-
>>> thread = api.
|
|
669
|
+
>>> thread = api.storage_service_get_project_artifact(project_id, async_req=True)
|
|
678
670
|
>>> result = thread.get()
|
|
679
671
|
|
|
680
672
|
:param async_req bool
|
|
681
673
|
:param str project_id: (required)
|
|
682
674
|
:param str cluster_id:
|
|
683
|
-
:param str
|
|
684
|
-
:
|
|
685
|
-
:param str prefix:
|
|
686
|
-
:param bool include_download_url:
|
|
687
|
-
:return: V1ListProjectArtifactsResponse
|
|
675
|
+
:param str filename:
|
|
676
|
+
:return: V1GetProjectArtifactResponse
|
|
688
677
|
If the method is called asynchronously,
|
|
689
678
|
returns the request thread.
|
|
690
679
|
"""
|
|
691
680
|
kwargs['_return_http_data_only'] = True
|
|
692
681
|
if kwargs.get('async_req'):
|
|
693
|
-
return self.
|
|
682
|
+
return self.storage_service_get_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
694
683
|
else:
|
|
695
|
-
(data) = self.
|
|
684
|
+
(data) = self.storage_service_get_project_artifact_with_http_info(project_id, **kwargs) # noqa: E501
|
|
696
685
|
return data
|
|
697
686
|
|
|
698
|
-
def
|
|
699
|
-
"""
|
|
687
|
+
def storage_service_get_project_artifact_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetProjectArtifactResponse': # noqa: E501
|
|
688
|
+
"""storage_service_get_project_artifact # noqa: E501
|
|
700
689
|
|
|
701
690
|
This method makes a synchronous HTTP request by default. To make an
|
|
702
691
|
asynchronous HTTP request, please pass async_req=True
|
|
703
|
-
>>> thread = api.
|
|
692
|
+
>>> thread = api.storage_service_get_project_artifact_with_http_info(project_id, async_req=True)
|
|
704
693
|
>>> result = thread.get()
|
|
705
694
|
|
|
706
695
|
:param async_req bool
|
|
707
696
|
:param str project_id: (required)
|
|
708
697
|
:param str cluster_id:
|
|
709
|
-
:param str
|
|
710
|
-
:
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
698
|
+
:param str filename:
|
|
699
|
+
:return: V1GetProjectArtifactResponse
|
|
700
|
+
If the method is called asynchronously,
|
|
701
|
+
returns the request thread.
|
|
702
|
+
"""
|
|
703
|
+
|
|
704
|
+
all_params = ['project_id', 'cluster_id', 'filename'] # noqa: E501
|
|
705
|
+
all_params.append('async_req')
|
|
706
|
+
all_params.append('_return_http_data_only')
|
|
707
|
+
all_params.append('_preload_content')
|
|
708
|
+
all_params.append('_request_timeout')
|
|
709
|
+
|
|
710
|
+
params = locals()
|
|
711
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
712
|
+
if key not in all_params:
|
|
713
|
+
raise TypeError(
|
|
714
|
+
"Got an unexpected keyword argument '%s'"
|
|
715
|
+
" to method storage_service_get_project_artifact" % key
|
|
716
|
+
)
|
|
717
|
+
params[key] = val
|
|
718
|
+
del params['kwargs']
|
|
719
|
+
# verify the required parameter 'project_id' is set
|
|
720
|
+
if ('project_id' not in params or
|
|
721
|
+
params['project_id'] is None):
|
|
722
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_artifact`") # noqa: E501
|
|
723
|
+
|
|
724
|
+
collection_formats = {}
|
|
725
|
+
|
|
726
|
+
path_params = {}
|
|
727
|
+
if 'project_id' in params:
|
|
728
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
729
|
+
|
|
730
|
+
query_params = []
|
|
731
|
+
if 'cluster_id' in params:
|
|
732
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
733
|
+
if 'filename' in params:
|
|
734
|
+
query_params.append(('filename', params['filename'])) # noqa: E501
|
|
735
|
+
|
|
736
|
+
header_params = {}
|
|
737
|
+
|
|
738
|
+
form_params = []
|
|
739
|
+
local_var_files = {}
|
|
740
|
+
|
|
741
|
+
body_params = None
|
|
742
|
+
# HTTP header `Accept`
|
|
743
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
744
|
+
['application/json']) # noqa: E501
|
|
745
|
+
|
|
746
|
+
# Authentication setting
|
|
747
|
+
auth_settings = [] # noqa: E501
|
|
748
|
+
|
|
749
|
+
return self.api_client.call_api(
|
|
750
|
+
'/v1/projects/{projectId}/storage/download', 'GET',
|
|
751
|
+
path_params,
|
|
752
|
+
query_params,
|
|
753
|
+
header_params,
|
|
754
|
+
body=body_params,
|
|
755
|
+
post_params=form_params,
|
|
756
|
+
files=local_var_files,
|
|
757
|
+
response_type='V1GetProjectArtifactResponse', # noqa: E501
|
|
758
|
+
auth_settings=auth_settings,
|
|
759
|
+
async_req=params.get('async_req'),
|
|
760
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
761
|
+
_preload_content=params.get('_preload_content', True),
|
|
762
|
+
_request_timeout=params.get('_request_timeout'),
|
|
763
|
+
collection_formats=collection_formats)
|
|
764
|
+
|
|
765
|
+
def storage_service_get_project_storage_metadata(self, project_id: 'str', **kwargs) -> 'V1GetProjectStorageMetadataResponse': # noqa: E501
|
|
766
|
+
"""storage_service_get_project_storage_metadata # noqa: E501
|
|
767
|
+
|
|
768
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
769
|
+
asynchronous HTTP request, please pass async_req=True
|
|
770
|
+
>>> thread = api.storage_service_get_project_storage_metadata(project_id, async_req=True)
|
|
771
|
+
>>> result = thread.get()
|
|
772
|
+
|
|
773
|
+
:param async_req bool
|
|
774
|
+
:param str project_id: (required)
|
|
775
|
+
:return: V1GetProjectStorageMetadataResponse
|
|
776
|
+
If the method is called asynchronously,
|
|
777
|
+
returns the request thread.
|
|
778
|
+
"""
|
|
779
|
+
kwargs['_return_http_data_only'] = True
|
|
780
|
+
if kwargs.get('async_req'):
|
|
781
|
+
return self.storage_service_get_project_storage_metadata_with_http_info(project_id, **kwargs) # noqa: E501
|
|
782
|
+
else:
|
|
783
|
+
(data) = self.storage_service_get_project_storage_metadata_with_http_info(project_id, **kwargs) # noqa: E501
|
|
784
|
+
return data
|
|
785
|
+
|
|
786
|
+
def storage_service_get_project_storage_metadata_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetProjectStorageMetadataResponse': # noqa: E501
|
|
787
|
+
"""storage_service_get_project_storage_metadata # noqa: E501
|
|
788
|
+
|
|
789
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
790
|
+
asynchronous HTTP request, please pass async_req=True
|
|
791
|
+
>>> thread = api.storage_service_get_project_storage_metadata_with_http_info(project_id, async_req=True)
|
|
792
|
+
>>> result = thread.get()
|
|
793
|
+
|
|
794
|
+
:param async_req bool
|
|
795
|
+
:param str project_id: (required)
|
|
796
|
+
:return: V1GetProjectStorageMetadataResponse
|
|
797
|
+
If the method is called asynchronously,
|
|
798
|
+
returns the request thread.
|
|
799
|
+
"""
|
|
800
|
+
|
|
801
|
+
all_params = ['project_id'] # noqa: E501
|
|
802
|
+
all_params.append('async_req')
|
|
803
|
+
all_params.append('_return_http_data_only')
|
|
804
|
+
all_params.append('_preload_content')
|
|
805
|
+
all_params.append('_request_timeout')
|
|
806
|
+
|
|
807
|
+
params = locals()
|
|
808
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
809
|
+
if key not in all_params:
|
|
810
|
+
raise TypeError(
|
|
811
|
+
"Got an unexpected keyword argument '%s'"
|
|
812
|
+
" to method storage_service_get_project_storage_metadata" % key
|
|
813
|
+
)
|
|
814
|
+
params[key] = val
|
|
815
|
+
del params['kwargs']
|
|
816
|
+
# verify the required parameter 'project_id' is set
|
|
817
|
+
if ('project_id' not in params or
|
|
818
|
+
params['project_id'] is None):
|
|
819
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_storage_metadata`") # noqa: E501
|
|
820
|
+
|
|
821
|
+
collection_formats = {}
|
|
822
|
+
|
|
823
|
+
path_params = {}
|
|
824
|
+
if 'project_id' in params:
|
|
825
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
826
|
+
|
|
827
|
+
query_params = []
|
|
828
|
+
|
|
829
|
+
header_params = {}
|
|
830
|
+
|
|
831
|
+
form_params = []
|
|
832
|
+
local_var_files = {}
|
|
833
|
+
|
|
834
|
+
body_params = None
|
|
835
|
+
# HTTP header `Accept`
|
|
836
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
837
|
+
['application/json']) # noqa: E501
|
|
838
|
+
|
|
839
|
+
# Authentication setting
|
|
840
|
+
auth_settings = [] # noqa: E501
|
|
841
|
+
|
|
842
|
+
return self.api_client.call_api(
|
|
843
|
+
'/v1/projects/{projectId}/storage/metadata', 'GET',
|
|
844
|
+
path_params,
|
|
845
|
+
query_params,
|
|
846
|
+
header_params,
|
|
847
|
+
body=body_params,
|
|
848
|
+
post_params=form_params,
|
|
849
|
+
files=local_var_files,
|
|
850
|
+
response_type='V1GetProjectStorageMetadataResponse', # noqa: E501
|
|
851
|
+
auth_settings=auth_settings,
|
|
852
|
+
async_req=params.get('async_req'),
|
|
853
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
854
|
+
_preload_content=params.get('_preload_content', True),
|
|
855
|
+
_request_timeout=params.get('_request_timeout'),
|
|
856
|
+
collection_formats=collection_formats)
|
|
857
|
+
|
|
858
|
+
def storage_service_get_project_uploads_artifacts_page(self, project_id: 'str', **kwargs) -> 'V1GetArtifactsPageResponse': # noqa: E501
|
|
859
|
+
"""storage_service_get_project_uploads_artifacts_page # noqa: E501
|
|
860
|
+
|
|
861
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
862
|
+
asynchronous HTTP request, please pass async_req=True
|
|
863
|
+
>>> thread = api.storage_service_get_project_uploads_artifacts_page(project_id, async_req=True)
|
|
864
|
+
>>> result = thread.get()
|
|
865
|
+
|
|
866
|
+
:param async_req bool
|
|
867
|
+
:param str project_id: (required)
|
|
868
|
+
:param str id:
|
|
869
|
+
:param str page_number:
|
|
870
|
+
:param str prefix:
|
|
871
|
+
:param bool include_download_url:
|
|
872
|
+
:param str cluster_id:
|
|
873
|
+
:param bool local_index:
|
|
874
|
+
:return: V1GetArtifactsPageResponse
|
|
875
|
+
If the method is called asynchronously,
|
|
876
|
+
returns the request thread.
|
|
877
|
+
"""
|
|
878
|
+
kwargs['_return_http_data_only'] = True
|
|
879
|
+
if kwargs.get('async_req'):
|
|
880
|
+
return self.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, **kwargs) # noqa: E501
|
|
881
|
+
else:
|
|
882
|
+
(data) = self.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, **kwargs) # noqa: E501
|
|
883
|
+
return data
|
|
884
|
+
|
|
885
|
+
def storage_service_get_project_uploads_artifacts_page_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetArtifactsPageResponse': # noqa: E501
|
|
886
|
+
"""storage_service_get_project_uploads_artifacts_page # noqa: E501
|
|
887
|
+
|
|
888
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
889
|
+
asynchronous HTTP request, please pass async_req=True
|
|
890
|
+
>>> thread = api.storage_service_get_project_uploads_artifacts_page_with_http_info(project_id, async_req=True)
|
|
891
|
+
>>> result = thread.get()
|
|
892
|
+
|
|
893
|
+
:param async_req bool
|
|
894
|
+
:param str project_id: (required)
|
|
895
|
+
:param str id:
|
|
896
|
+
:param str page_number:
|
|
897
|
+
:param str prefix:
|
|
898
|
+
:param bool include_download_url:
|
|
899
|
+
:param str cluster_id:
|
|
900
|
+
:param bool local_index:
|
|
901
|
+
:return: V1GetArtifactsPageResponse
|
|
902
|
+
If the method is called asynchronously,
|
|
903
|
+
returns the request thread.
|
|
904
|
+
"""
|
|
905
|
+
|
|
906
|
+
all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index'] # noqa: E501
|
|
907
|
+
all_params.append('async_req')
|
|
908
|
+
all_params.append('_return_http_data_only')
|
|
909
|
+
all_params.append('_preload_content')
|
|
910
|
+
all_params.append('_request_timeout')
|
|
911
|
+
|
|
912
|
+
params = locals()
|
|
913
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
914
|
+
if key not in all_params:
|
|
915
|
+
raise TypeError(
|
|
916
|
+
"Got an unexpected keyword argument '%s'"
|
|
917
|
+
" to method storage_service_get_project_uploads_artifacts_page" % key
|
|
918
|
+
)
|
|
919
|
+
params[key] = val
|
|
920
|
+
del params['kwargs']
|
|
921
|
+
# verify the required parameter 'project_id' is set
|
|
922
|
+
if ('project_id' not in params or
|
|
923
|
+
params['project_id'] is None):
|
|
924
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_uploads_artifacts_page`") # noqa: E501
|
|
925
|
+
|
|
926
|
+
collection_formats = {}
|
|
927
|
+
|
|
928
|
+
path_params = {}
|
|
929
|
+
if 'project_id' in params:
|
|
930
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
931
|
+
|
|
932
|
+
query_params = []
|
|
933
|
+
if 'id' in params:
|
|
934
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
935
|
+
if 'page_number' in params:
|
|
936
|
+
query_params.append(('pageNumber', params['page_number'])) # noqa: E501
|
|
937
|
+
if 'prefix' in params:
|
|
938
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
939
|
+
if 'include_download_url' in params:
|
|
940
|
+
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
941
|
+
if 'cluster_id' in params:
|
|
942
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
943
|
+
if 'local_index' in params:
|
|
944
|
+
query_params.append(('localIndex', params['local_index'])) # noqa: E501
|
|
945
|
+
|
|
946
|
+
header_params = {}
|
|
947
|
+
|
|
948
|
+
form_params = []
|
|
949
|
+
local_var_files = {}
|
|
950
|
+
|
|
951
|
+
body_params = None
|
|
952
|
+
# HTTP header `Accept`
|
|
953
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
954
|
+
['application/json']) # noqa: E501
|
|
955
|
+
|
|
956
|
+
# Authentication setting
|
|
957
|
+
auth_settings = [] # noqa: E501
|
|
958
|
+
|
|
959
|
+
return self.api_client.call_api(
|
|
960
|
+
'/v1/projects/{projectId}/storage/uploads/artifacts/page', 'GET',
|
|
961
|
+
path_params,
|
|
962
|
+
query_params,
|
|
963
|
+
header_params,
|
|
964
|
+
body=body_params,
|
|
965
|
+
post_params=form_params,
|
|
966
|
+
files=local_var_files,
|
|
967
|
+
response_type='V1GetArtifactsPageResponse', # noqa: E501
|
|
968
|
+
auth_settings=auth_settings,
|
|
969
|
+
async_req=params.get('async_req'),
|
|
970
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
971
|
+
_preload_content=params.get('_preload_content', True),
|
|
972
|
+
_request_timeout=params.get('_request_timeout'),
|
|
973
|
+
collection_formats=collection_formats)
|
|
974
|
+
|
|
975
|
+
def storage_service_get_project_uploads_folder_index(self, project_id: 'str', **kwargs) -> 'V1GetFolderIndexResponse': # noqa: E501
|
|
976
|
+
"""storage_service_get_project_uploads_folder_index # noqa: E501
|
|
977
|
+
|
|
978
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
979
|
+
asynchronous HTTP request, please pass async_req=True
|
|
980
|
+
>>> thread = api.storage_service_get_project_uploads_folder_index(project_id, async_req=True)
|
|
981
|
+
>>> result = thread.get()
|
|
982
|
+
|
|
983
|
+
:param async_req bool
|
|
984
|
+
:param str project_id: (required)
|
|
985
|
+
:param str id:
|
|
986
|
+
:param str prefix:
|
|
987
|
+
:param str cluster_id:
|
|
988
|
+
:param bool local_index:
|
|
989
|
+
:return: V1GetFolderIndexResponse
|
|
990
|
+
If the method is called asynchronously,
|
|
991
|
+
returns the request thread.
|
|
992
|
+
"""
|
|
993
|
+
kwargs['_return_http_data_only'] = True
|
|
994
|
+
if kwargs.get('async_req'):
|
|
995
|
+
return self.storage_service_get_project_uploads_folder_index_with_http_info(project_id, **kwargs) # noqa: E501
|
|
996
|
+
else:
|
|
997
|
+
(data) = self.storage_service_get_project_uploads_folder_index_with_http_info(project_id, **kwargs) # noqa: E501
|
|
998
|
+
return data
|
|
999
|
+
|
|
1000
|
+
def storage_service_get_project_uploads_folder_index_with_http_info(self, project_id: 'str', **kwargs) -> 'V1GetFolderIndexResponse': # noqa: E501
|
|
1001
|
+
"""storage_service_get_project_uploads_folder_index # noqa: E501
|
|
1002
|
+
|
|
1003
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1004
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1005
|
+
>>> thread = api.storage_service_get_project_uploads_folder_index_with_http_info(project_id, async_req=True)
|
|
1006
|
+
>>> result = thread.get()
|
|
1007
|
+
|
|
1008
|
+
:param async_req bool
|
|
1009
|
+
:param str project_id: (required)
|
|
1010
|
+
:param str id:
|
|
1011
|
+
:param str prefix:
|
|
1012
|
+
:param str cluster_id:
|
|
1013
|
+
:param bool local_index:
|
|
1014
|
+
:return: V1GetFolderIndexResponse
|
|
1015
|
+
If the method is called asynchronously,
|
|
1016
|
+
returns the request thread.
|
|
1017
|
+
"""
|
|
1018
|
+
|
|
1019
|
+
all_params = ['project_id', 'id', 'prefix', 'cluster_id', 'local_index'] # noqa: E501
|
|
1020
|
+
all_params.append('async_req')
|
|
1021
|
+
all_params.append('_return_http_data_only')
|
|
1022
|
+
all_params.append('_preload_content')
|
|
1023
|
+
all_params.append('_request_timeout')
|
|
1024
|
+
|
|
1025
|
+
params = locals()
|
|
1026
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1027
|
+
if key not in all_params:
|
|
1028
|
+
raise TypeError(
|
|
1029
|
+
"Got an unexpected keyword argument '%s'"
|
|
1030
|
+
" to method storage_service_get_project_uploads_folder_index" % key
|
|
1031
|
+
)
|
|
1032
|
+
params[key] = val
|
|
1033
|
+
del params['kwargs']
|
|
1034
|
+
# verify the required parameter 'project_id' is set
|
|
1035
|
+
if ('project_id' not in params or
|
|
1036
|
+
params['project_id'] is None):
|
|
1037
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_project_uploads_folder_index`") # noqa: E501
|
|
1038
|
+
|
|
1039
|
+
collection_formats = {}
|
|
1040
|
+
|
|
1041
|
+
path_params = {}
|
|
1042
|
+
if 'project_id' in params:
|
|
1043
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1044
|
+
|
|
1045
|
+
query_params = []
|
|
1046
|
+
if 'id' in params:
|
|
1047
|
+
query_params.append(('id', params['id'])) # noqa: E501
|
|
1048
|
+
if 'prefix' in params:
|
|
1049
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
1050
|
+
if 'cluster_id' in params:
|
|
1051
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1052
|
+
if 'local_index' in params:
|
|
1053
|
+
query_params.append(('localIndex', params['local_index'])) # noqa: E501
|
|
1054
|
+
|
|
1055
|
+
header_params = {}
|
|
1056
|
+
|
|
1057
|
+
form_params = []
|
|
1058
|
+
local_var_files = {}
|
|
1059
|
+
|
|
1060
|
+
body_params = None
|
|
1061
|
+
# HTTP header `Accept`
|
|
1062
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1063
|
+
['application/json']) # noqa: E501
|
|
1064
|
+
|
|
1065
|
+
# Authentication setting
|
|
1066
|
+
auth_settings = [] # noqa: E501
|
|
1067
|
+
|
|
1068
|
+
return self.api_client.call_api(
|
|
1069
|
+
'/v1/projects/{projectId}/storage/uploads/folder-index', 'GET',
|
|
1070
|
+
path_params,
|
|
1071
|
+
query_params,
|
|
1072
|
+
header_params,
|
|
1073
|
+
body=body_params,
|
|
1074
|
+
post_params=form_params,
|
|
1075
|
+
files=local_var_files,
|
|
1076
|
+
response_type='V1GetFolderIndexResponse', # noqa: E501
|
|
1077
|
+
auth_settings=auth_settings,
|
|
1078
|
+
async_req=params.get('async_req'),
|
|
1079
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1080
|
+
_preload_content=params.get('_preload_content', True),
|
|
1081
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1082
|
+
collection_formats=collection_formats)
|
|
1083
|
+
|
|
1084
|
+
def storage_service_get_storage_transfer(self, project_id: 'str', id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
|
|
1085
|
+
"""storage_service_get_storage_transfer # noqa: E501
|
|
1086
|
+
|
|
1087
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1088
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1089
|
+
>>> thread = api.storage_service_get_storage_transfer(project_id, id, async_req=True)
|
|
1090
|
+
>>> result = thread.get()
|
|
1091
|
+
|
|
1092
|
+
:param async_req bool
|
|
1093
|
+
:param str project_id: (required)
|
|
1094
|
+
:param str id: (required)
|
|
1095
|
+
:return: V1StorageTransfer
|
|
1096
|
+
If the method is called asynchronously,
|
|
1097
|
+
returns the request thread.
|
|
1098
|
+
"""
|
|
1099
|
+
kwargs['_return_http_data_only'] = True
|
|
1100
|
+
if kwargs.get('async_req'):
|
|
1101
|
+
return self.storage_service_get_storage_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1102
|
+
else:
|
|
1103
|
+
(data) = self.storage_service_get_storage_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1104
|
+
return data
|
|
1105
|
+
|
|
1106
|
+
def storage_service_get_storage_transfer_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
|
|
1107
|
+
"""storage_service_get_storage_transfer # noqa: E501
|
|
1108
|
+
|
|
1109
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1110
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1111
|
+
>>> thread = api.storage_service_get_storage_transfer_with_http_info(project_id, id, async_req=True)
|
|
1112
|
+
>>> result = thread.get()
|
|
1113
|
+
|
|
1114
|
+
:param async_req bool
|
|
1115
|
+
:param str project_id: (required)
|
|
1116
|
+
:param str id: (required)
|
|
1117
|
+
:return: V1StorageTransfer
|
|
1118
|
+
If the method is called asynchronously,
|
|
1119
|
+
returns the request thread.
|
|
1120
|
+
"""
|
|
1121
|
+
|
|
1122
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
1123
|
+
all_params.append('async_req')
|
|
1124
|
+
all_params.append('_return_http_data_only')
|
|
1125
|
+
all_params.append('_preload_content')
|
|
1126
|
+
all_params.append('_request_timeout')
|
|
1127
|
+
|
|
1128
|
+
params = locals()
|
|
1129
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1130
|
+
if key not in all_params:
|
|
1131
|
+
raise TypeError(
|
|
1132
|
+
"Got an unexpected keyword argument '%s'"
|
|
1133
|
+
" to method storage_service_get_storage_transfer" % key
|
|
1134
|
+
)
|
|
1135
|
+
params[key] = val
|
|
1136
|
+
del params['kwargs']
|
|
1137
|
+
# verify the required parameter 'project_id' is set
|
|
1138
|
+
if ('project_id' not in params or
|
|
1139
|
+
params['project_id'] is None):
|
|
1140
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_storage_transfer`") # noqa: E501
|
|
1141
|
+
# verify the required parameter 'id' is set
|
|
1142
|
+
if ('id' not in params or
|
|
1143
|
+
params['id'] is None):
|
|
1144
|
+
raise ValueError("Missing the required parameter `id` when calling `storage_service_get_storage_transfer`") # noqa: E501
|
|
1145
|
+
|
|
1146
|
+
collection_formats = {}
|
|
1147
|
+
|
|
1148
|
+
path_params = {}
|
|
1149
|
+
if 'project_id' in params:
|
|
1150
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1151
|
+
if 'id' in params:
|
|
1152
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1153
|
+
|
|
1154
|
+
query_params = []
|
|
1155
|
+
|
|
1156
|
+
header_params = {}
|
|
1157
|
+
|
|
1158
|
+
form_params = []
|
|
1159
|
+
local_var_files = {}
|
|
1160
|
+
|
|
1161
|
+
body_params = None
|
|
1162
|
+
# HTTP header `Accept`
|
|
1163
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1164
|
+
['application/json']) # noqa: E501
|
|
1165
|
+
|
|
1166
|
+
# Authentication setting
|
|
1167
|
+
auth_settings = [] # noqa: E501
|
|
1168
|
+
|
|
1169
|
+
return self.api_client.call_api(
|
|
1170
|
+
'/v1/projects/{projectId}/storage-transfers/{id}', 'GET',
|
|
1171
|
+
path_params,
|
|
1172
|
+
query_params,
|
|
1173
|
+
header_params,
|
|
1174
|
+
body=body_params,
|
|
1175
|
+
post_params=form_params,
|
|
1176
|
+
files=local_var_files,
|
|
1177
|
+
response_type='V1StorageTransfer', # noqa: E501
|
|
1178
|
+
auth_settings=auth_settings,
|
|
1179
|
+
async_req=params.get('async_req'),
|
|
1180
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1181
|
+
_preload_content=params.get('_preload_content', True),
|
|
1182
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1183
|
+
collection_formats=collection_formats)
|
|
1184
|
+
|
|
1185
|
+
def storage_service_list_project_artifacts(self, project_id: 'str', **kwargs) -> 'V1ListProjectArtifactsResponse': # noqa: E501
|
|
1186
|
+
"""storage_service_list_project_artifacts # noqa: E501
|
|
1187
|
+
|
|
1188
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1189
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1190
|
+
>>> thread = api.storage_service_list_project_artifacts(project_id, async_req=True)
|
|
1191
|
+
>>> result = thread.get()
|
|
1192
|
+
|
|
1193
|
+
:param async_req bool
|
|
1194
|
+
:param str project_id: (required)
|
|
1195
|
+
:param str cluster_id:
|
|
1196
|
+
:param str page_token:
|
|
1197
|
+
:param str page_size:
|
|
1198
|
+
:param str prefix:
|
|
1199
|
+
:param bool include_download_url:
|
|
1200
|
+
:return: V1ListProjectArtifactsResponse
|
|
1201
|
+
If the method is called asynchronously,
|
|
1202
|
+
returns the request thread.
|
|
1203
|
+
"""
|
|
1204
|
+
kwargs['_return_http_data_only'] = True
|
|
1205
|
+
if kwargs.get('async_req'):
|
|
1206
|
+
return self.storage_service_list_project_artifacts_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1207
|
+
else:
|
|
1208
|
+
(data) = self.storage_service_list_project_artifacts_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1209
|
+
return data
|
|
1210
|
+
|
|
1211
|
+
def storage_service_list_project_artifacts_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListProjectArtifactsResponse': # noqa: E501
|
|
1212
|
+
"""storage_service_list_project_artifacts # noqa: E501
|
|
1213
|
+
|
|
1214
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1215
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1216
|
+
>>> thread = api.storage_service_list_project_artifacts_with_http_info(project_id, async_req=True)
|
|
1217
|
+
>>> result = thread.get()
|
|
1218
|
+
|
|
1219
|
+
:param async_req bool
|
|
1220
|
+
:param str project_id: (required)
|
|
1221
|
+
:param str cluster_id:
|
|
1222
|
+
:param str page_token:
|
|
1223
|
+
:param str page_size:
|
|
1224
|
+
:param str prefix:
|
|
1225
|
+
:param bool include_download_url:
|
|
1226
|
+
:return: V1ListProjectArtifactsResponse
|
|
1227
|
+
If the method is called asynchronously,
|
|
1228
|
+
returns the request thread.
|
|
1229
|
+
"""
|
|
1230
|
+
|
|
1231
|
+
all_params = ['project_id', 'cluster_id', 'page_token', 'page_size', 'prefix', 'include_download_url'] # noqa: E501
|
|
1232
|
+
all_params.append('async_req')
|
|
1233
|
+
all_params.append('_return_http_data_only')
|
|
1234
|
+
all_params.append('_preload_content')
|
|
1235
|
+
all_params.append('_request_timeout')
|
|
1236
|
+
|
|
1237
|
+
params = locals()
|
|
1238
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1239
|
+
if key not in all_params:
|
|
1240
|
+
raise TypeError(
|
|
1241
|
+
"Got an unexpected keyword argument '%s'"
|
|
1242
|
+
" to method storage_service_list_project_artifacts" % key
|
|
1243
|
+
)
|
|
1244
|
+
params[key] = val
|
|
1245
|
+
del params['kwargs']
|
|
1246
|
+
# verify the required parameter 'project_id' is set
|
|
1247
|
+
if ('project_id' not in params or
|
|
1248
|
+
params['project_id'] is None):
|
|
1249
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_project_artifacts`") # noqa: E501
|
|
1250
|
+
|
|
1251
|
+
collection_formats = {}
|
|
1252
|
+
|
|
1253
|
+
path_params = {}
|
|
1254
|
+
if 'project_id' in params:
|
|
1255
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1256
|
+
|
|
1257
|
+
query_params = []
|
|
1258
|
+
if 'cluster_id' in params:
|
|
1259
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1260
|
+
if 'page_token' in params:
|
|
1261
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1262
|
+
if 'page_size' in params:
|
|
1263
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1264
|
+
if 'prefix' in params:
|
|
1265
|
+
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
1266
|
+
if 'include_download_url' in params:
|
|
1267
|
+
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
1268
|
+
|
|
1269
|
+
header_params = {}
|
|
1270
|
+
|
|
1271
|
+
form_params = []
|
|
1272
|
+
local_var_files = {}
|
|
1273
|
+
|
|
1274
|
+
body_params = None
|
|
1275
|
+
# HTTP header `Accept`
|
|
1276
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1277
|
+
['application/json']) # noqa: E501
|
|
1278
|
+
|
|
1279
|
+
# Authentication setting
|
|
1280
|
+
auth_settings = [] # noqa: E501
|
|
1281
|
+
|
|
1282
|
+
return self.api_client.call_api(
|
|
1283
|
+
'/v1/projects/{projectId}/storage', 'GET',
|
|
1284
|
+
path_params,
|
|
1285
|
+
query_params,
|
|
1286
|
+
header_params,
|
|
1287
|
+
body=body_params,
|
|
1288
|
+
post_params=form_params,
|
|
1289
|
+
files=local_var_files,
|
|
1290
|
+
response_type='V1ListProjectArtifactsResponse', # noqa: E501
|
|
1291
|
+
auth_settings=auth_settings,
|
|
1292
|
+
async_req=params.get('async_req'),
|
|
1293
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1294
|
+
_preload_content=params.get('_preload_content', True),
|
|
1295
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1296
|
+
collection_formats=collection_formats)
|
|
1297
|
+
|
|
1298
|
+
def storage_service_list_project_locked_resources(self, project_id: 'str', **kwargs) -> 'V1ListProjectLockedResourcesResponse': # noqa: E501
|
|
1299
|
+
"""storage_service_list_project_locked_resources # noqa: E501
|
|
1300
|
+
|
|
1301
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1302
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1303
|
+
>>> thread = api.storage_service_list_project_locked_resources(project_id, async_req=True)
|
|
1304
|
+
>>> result = thread.get()
|
|
1305
|
+
|
|
1306
|
+
:param async_req bool
|
|
1307
|
+
:param str project_id: (required)
|
|
1308
|
+
:return: V1ListProjectLockedResourcesResponse
|
|
1309
|
+
If the method is called asynchronously,
|
|
1310
|
+
returns the request thread.
|
|
1311
|
+
"""
|
|
1312
|
+
kwargs['_return_http_data_only'] = True
|
|
1313
|
+
if kwargs.get('async_req'):
|
|
1314
|
+
return self.storage_service_list_project_locked_resources_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1315
|
+
else:
|
|
1316
|
+
(data) = self.storage_service_list_project_locked_resources_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1317
|
+
return data
|
|
1318
|
+
|
|
1319
|
+
def storage_service_list_project_locked_resources_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListProjectLockedResourcesResponse': # noqa: E501
|
|
1320
|
+
"""storage_service_list_project_locked_resources # noqa: E501
|
|
1321
|
+
|
|
1322
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1323
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1324
|
+
>>> thread = api.storage_service_list_project_locked_resources_with_http_info(project_id, async_req=True)
|
|
1325
|
+
>>> result = thread.get()
|
|
1326
|
+
|
|
1327
|
+
:param async_req bool
|
|
1328
|
+
:param str project_id: (required)
|
|
1329
|
+
:return: V1ListProjectLockedResourcesResponse
|
|
1330
|
+
If the method is called asynchronously,
|
|
1331
|
+
returns the request thread.
|
|
1332
|
+
"""
|
|
1333
|
+
|
|
1334
|
+
all_params = ['project_id'] # noqa: E501
|
|
1335
|
+
all_params.append('async_req')
|
|
1336
|
+
all_params.append('_return_http_data_only')
|
|
1337
|
+
all_params.append('_preload_content')
|
|
1338
|
+
all_params.append('_request_timeout')
|
|
1339
|
+
|
|
1340
|
+
params = locals()
|
|
1341
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1342
|
+
if key not in all_params:
|
|
1343
|
+
raise TypeError(
|
|
1344
|
+
"Got an unexpected keyword argument '%s'"
|
|
1345
|
+
" to method storage_service_list_project_locked_resources" % key
|
|
1346
|
+
)
|
|
1347
|
+
params[key] = val
|
|
1348
|
+
del params['kwargs']
|
|
1349
|
+
# verify the required parameter 'project_id' is set
|
|
1350
|
+
if ('project_id' not in params or
|
|
1351
|
+
params['project_id'] is None):
|
|
1352
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_project_locked_resources`") # noqa: E501
|
|
1353
|
+
|
|
1354
|
+
collection_formats = {}
|
|
1355
|
+
|
|
1356
|
+
path_params = {}
|
|
1357
|
+
if 'project_id' in params:
|
|
1358
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1359
|
+
|
|
1360
|
+
query_params = []
|
|
1361
|
+
|
|
1362
|
+
header_params = {}
|
|
1363
|
+
|
|
1364
|
+
form_params = []
|
|
1365
|
+
local_var_files = {}
|
|
1366
|
+
|
|
1367
|
+
body_params = None
|
|
1368
|
+
# HTTP header `Accept`
|
|
1369
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1370
|
+
['application/json']) # noqa: E501
|
|
1371
|
+
|
|
1372
|
+
# Authentication setting
|
|
1373
|
+
auth_settings = [] # noqa: E501
|
|
1374
|
+
|
|
1375
|
+
return self.api_client.call_api(
|
|
1376
|
+
'/v1/projects/{projectId}/locked-resources', 'GET',
|
|
1377
|
+
path_params,
|
|
1378
|
+
query_params,
|
|
1379
|
+
header_params,
|
|
1380
|
+
body=body_params,
|
|
1381
|
+
post_params=form_params,
|
|
1382
|
+
files=local_var_files,
|
|
1383
|
+
response_type='V1ListProjectLockedResourcesResponse', # noqa: E501
|
|
1384
|
+
auth_settings=auth_settings,
|
|
1385
|
+
async_req=params.get('async_req'),
|
|
1386
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1387
|
+
_preload_content=params.get('_preload_content', True),
|
|
1388
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1389
|
+
collection_formats=collection_formats)
|
|
1390
|
+
|
|
1391
|
+
def storage_service_list_storage_transfers(self, project_id: 'str', **kwargs) -> 'V1ListStorageTransfersResponse': # noqa: E501
|
|
1392
|
+
"""storage_service_list_storage_transfers # noqa: E501
|
|
1393
|
+
|
|
1394
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1395
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1396
|
+
>>> thread = api.storage_service_list_storage_transfers(project_id, async_req=True)
|
|
1397
|
+
>>> result = thread.get()
|
|
1398
|
+
|
|
1399
|
+
:param async_req bool
|
|
1400
|
+
:param str project_id: (required)
|
|
1401
|
+
:param list[str] status_in:
|
|
1402
|
+
:param str creator_id:
|
|
1403
|
+
:param str source_data_connection_id:
|
|
1404
|
+
:param str target_data_connection_id:
|
|
1405
|
+
:return: V1ListStorageTransfersResponse
|
|
1406
|
+
If the method is called asynchronously,
|
|
1407
|
+
returns the request thread.
|
|
1408
|
+
"""
|
|
1409
|
+
kwargs['_return_http_data_only'] = True
|
|
1410
|
+
if kwargs.get('async_req'):
|
|
1411
|
+
return self.storage_service_list_storage_transfers_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1412
|
+
else:
|
|
1413
|
+
(data) = self.storage_service_list_storage_transfers_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1414
|
+
return data
|
|
1415
|
+
|
|
1416
|
+
def storage_service_list_storage_transfers_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListStorageTransfersResponse': # noqa: E501
|
|
1417
|
+
"""storage_service_list_storage_transfers # noqa: E501
|
|
1418
|
+
|
|
1419
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1420
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1421
|
+
>>> thread = api.storage_service_list_storage_transfers_with_http_info(project_id, async_req=True)
|
|
1422
|
+
>>> result = thread.get()
|
|
1423
|
+
|
|
1424
|
+
:param async_req bool
|
|
1425
|
+
:param str project_id: (required)
|
|
1426
|
+
:param list[str] status_in:
|
|
1427
|
+
:param str creator_id:
|
|
1428
|
+
:param str source_data_connection_id:
|
|
1429
|
+
:param str target_data_connection_id:
|
|
1430
|
+
:return: V1ListStorageTransfersResponse
|
|
1431
|
+
If the method is called asynchronously,
|
|
1432
|
+
returns the request thread.
|
|
1433
|
+
"""
|
|
1434
|
+
|
|
1435
|
+
all_params = ['project_id', 'status_in', 'creator_id', 'source_data_connection_id', 'target_data_connection_id'] # noqa: E501
|
|
1436
|
+
all_params.append('async_req')
|
|
1437
|
+
all_params.append('_return_http_data_only')
|
|
1438
|
+
all_params.append('_preload_content')
|
|
1439
|
+
all_params.append('_request_timeout')
|
|
1440
|
+
|
|
1441
|
+
params = locals()
|
|
1442
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1443
|
+
if key not in all_params:
|
|
1444
|
+
raise TypeError(
|
|
1445
|
+
"Got an unexpected keyword argument '%s'"
|
|
1446
|
+
" to method storage_service_list_storage_transfers" % key
|
|
1447
|
+
)
|
|
1448
|
+
params[key] = val
|
|
1449
|
+
del params['kwargs']
|
|
1450
|
+
# verify the required parameter 'project_id' is set
|
|
1451
|
+
if ('project_id' not in params or
|
|
1452
|
+
params['project_id'] is None):
|
|
1453
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_storage_transfers`") # noqa: E501
|
|
1454
|
+
|
|
1455
|
+
collection_formats = {}
|
|
1456
|
+
|
|
1457
|
+
path_params = {}
|
|
1458
|
+
if 'project_id' in params:
|
|
1459
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1460
|
+
|
|
1461
|
+
query_params = []
|
|
1462
|
+
if 'status_in' in params:
|
|
1463
|
+
query_params.append(('statusIn', params['status_in'])) # noqa: E501
|
|
1464
|
+
collection_formats['statusIn'] = 'multi' # noqa: E501
|
|
1465
|
+
if 'creator_id' in params:
|
|
1466
|
+
query_params.append(('creatorId', params['creator_id'])) # noqa: E501
|
|
1467
|
+
if 'source_data_connection_id' in params:
|
|
1468
|
+
query_params.append(('sourceDataConnectionId', params['source_data_connection_id'])) # noqa: E501
|
|
1469
|
+
if 'target_data_connection_id' in params:
|
|
1470
|
+
query_params.append(('targetDataConnectionId', params['target_data_connection_id'])) # noqa: E501
|
|
1471
|
+
|
|
1472
|
+
header_params = {}
|
|
1473
|
+
|
|
1474
|
+
form_params = []
|
|
1475
|
+
local_var_files = {}
|
|
1476
|
+
|
|
1477
|
+
body_params = None
|
|
1478
|
+
# HTTP header `Accept`
|
|
1479
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1480
|
+
['application/json']) # noqa: E501
|
|
1481
|
+
|
|
1482
|
+
# Authentication setting
|
|
1483
|
+
auth_settings = [] # noqa: E501
|
|
1484
|
+
|
|
1485
|
+
return self.api_client.call_api(
|
|
1486
|
+
'/v1/projects/{projectId}/storage-transfers', 'GET',
|
|
1487
|
+
path_params,
|
|
1488
|
+
query_params,
|
|
1489
|
+
header_params,
|
|
1490
|
+
body=body_params,
|
|
1491
|
+
post_params=form_params,
|
|
1492
|
+
files=local_var_files,
|
|
1493
|
+
response_type='V1ListStorageTransfersResponse', # noqa: E501
|
|
1494
|
+
auth_settings=auth_settings,
|
|
1495
|
+
async_req=params.get('async_req'),
|
|
1496
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1497
|
+
_preload_content=params.get('_preload_content', True),
|
|
1498
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1499
|
+
collection_formats=collection_formats)
|
|
1500
|
+
|
|
1501
|
+
def storage_service_pause_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1PauseStorageTransferResponse': # noqa: E501
|
|
1502
|
+
"""storage_service_pause_storage_transfer # noqa: E501
|
|
1503
|
+
|
|
1504
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1505
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1506
|
+
>>> thread = api.storage_service_pause_storage_transfer(body, project_id, id, async_req=True)
|
|
1507
|
+
>>> result = thread.get()
|
|
1508
|
+
|
|
1509
|
+
:param async_req bool
|
|
1510
|
+
:param object body: (required)
|
|
1511
|
+
:param str project_id: (required)
|
|
1512
|
+
:param str id: (required)
|
|
1513
|
+
:return: V1PauseStorageTransferResponse
|
|
1514
|
+
If the method is called asynchronously,
|
|
1515
|
+
returns the request thread.
|
|
1516
|
+
"""
|
|
1517
|
+
kwargs['_return_http_data_only'] = True
|
|
1518
|
+
if kwargs.get('async_req'):
|
|
1519
|
+
return self.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1520
|
+
else:
|
|
1521
|
+
(data) = self.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1522
|
+
return data
|
|
1523
|
+
|
|
1524
|
+
def storage_service_pause_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1PauseStorageTransferResponse': # noqa: E501
|
|
1525
|
+
"""storage_service_pause_storage_transfer # noqa: E501
|
|
1526
|
+
|
|
1527
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1528
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1529
|
+
>>> thread = api.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, async_req=True)
|
|
1530
|
+
>>> result = thread.get()
|
|
1531
|
+
|
|
1532
|
+
:param async_req bool
|
|
1533
|
+
:param object body: (required)
|
|
1534
|
+
:param str project_id: (required)
|
|
1535
|
+
:param str id: (required)
|
|
1536
|
+
:return: V1PauseStorageTransferResponse
|
|
1537
|
+
If the method is called asynchronously,
|
|
1538
|
+
returns the request thread.
|
|
1539
|
+
"""
|
|
1540
|
+
|
|
1541
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1542
|
+
all_params.append('async_req')
|
|
1543
|
+
all_params.append('_return_http_data_only')
|
|
1544
|
+
all_params.append('_preload_content')
|
|
1545
|
+
all_params.append('_request_timeout')
|
|
1546
|
+
|
|
1547
|
+
params = locals()
|
|
1548
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1549
|
+
if key not in all_params:
|
|
1550
|
+
raise TypeError(
|
|
1551
|
+
"Got an unexpected keyword argument '%s'"
|
|
1552
|
+
" to method storage_service_pause_storage_transfer" % key
|
|
1553
|
+
)
|
|
1554
|
+
params[key] = val
|
|
1555
|
+
del params['kwargs']
|
|
1556
|
+
# verify the required parameter 'body' is set
|
|
1557
|
+
if ('body' not in params or
|
|
1558
|
+
params['body'] is None):
|
|
1559
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_pause_storage_transfer`") # noqa: E501
|
|
1560
|
+
# verify the required parameter 'project_id' is set
|
|
1561
|
+
if ('project_id' not in params or
|
|
1562
|
+
params['project_id'] is None):
|
|
1563
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_pause_storage_transfer`") # noqa: E501
|
|
1564
|
+
# verify the required parameter 'id' is set
|
|
1565
|
+
if ('id' not in params or
|
|
1566
|
+
params['id'] is None):
|
|
1567
|
+
raise ValueError("Missing the required parameter `id` when calling `storage_service_pause_storage_transfer`") # noqa: E501
|
|
1568
|
+
|
|
1569
|
+
collection_formats = {}
|
|
1570
|
+
|
|
1571
|
+
path_params = {}
|
|
1572
|
+
if 'project_id' in params:
|
|
1573
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1574
|
+
if 'id' in params:
|
|
1575
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1576
|
+
|
|
1577
|
+
query_params = []
|
|
1578
|
+
|
|
1579
|
+
header_params = {}
|
|
1580
|
+
|
|
1581
|
+
form_params = []
|
|
1582
|
+
local_var_files = {}
|
|
1583
|
+
|
|
1584
|
+
body_params = None
|
|
1585
|
+
if 'body' in params:
|
|
1586
|
+
body_params = params['body']
|
|
1587
|
+
# HTTP header `Accept`
|
|
1588
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1589
|
+
['application/json']) # noqa: E501
|
|
1590
|
+
|
|
1591
|
+
# HTTP header `Content-Type`
|
|
1592
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1593
|
+
['application/json']) # noqa: E501
|
|
1594
|
+
|
|
1595
|
+
# Authentication setting
|
|
1596
|
+
auth_settings = [] # noqa: E501
|
|
1597
|
+
|
|
1598
|
+
return self.api_client.call_api(
|
|
1599
|
+
'/v1/projects/{projectId}/storage-transfers/{id}/pause', 'POST',
|
|
1600
|
+
path_params,
|
|
1601
|
+
query_params,
|
|
1602
|
+
header_params,
|
|
1603
|
+
body=body_params,
|
|
1604
|
+
post_params=form_params,
|
|
1605
|
+
files=local_var_files,
|
|
1606
|
+
response_type='V1PauseStorageTransferResponse', # noqa: E501
|
|
1607
|
+
auth_settings=auth_settings,
|
|
1608
|
+
async_req=params.get('async_req'),
|
|
1609
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1610
|
+
_preload_content=params.get('_preload_content', True),
|
|
1611
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1612
|
+
collection_formats=collection_formats)
|
|
1613
|
+
|
|
1614
|
+
def storage_service_post_cloud_space_artifact_events(self, project_id: 'str', cloud_space_id: 'str', **kwargs) -> 'V1PostCloudSpaceArtifactEventsResponse': # noqa: E501
|
|
1615
|
+
"""storage_service_post_cloud_space_artifact_events # noqa: E501
|
|
1616
|
+
|
|
1617
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1618
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1619
|
+
>>> thread = api.storage_service_post_cloud_space_artifact_events(project_id, cloud_space_id, async_req=True)
|
|
1620
|
+
>>> result = thread.get()
|
|
1621
|
+
|
|
1622
|
+
:param async_req bool
|
|
1623
|
+
:param str project_id: (required)
|
|
1624
|
+
:param str cloud_space_id: (required)
|
|
1625
|
+
:return: V1PostCloudSpaceArtifactEventsResponse
|
|
1626
|
+
If the method is called asynchronously,
|
|
1627
|
+
returns the request thread.
|
|
1628
|
+
"""
|
|
1629
|
+
kwargs['_return_http_data_only'] = True
|
|
1630
|
+
if kwargs.get('async_req'):
|
|
1631
|
+
return self.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, **kwargs) # noqa: E501
|
|
1632
|
+
else:
|
|
1633
|
+
(data) = self.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, **kwargs) # noqa: E501
|
|
1634
|
+
return data
|
|
1635
|
+
|
|
1636
|
+
def storage_service_post_cloud_space_artifact_events_with_http_info(self, project_id: 'str', cloud_space_id: 'str', **kwargs) -> 'V1PostCloudSpaceArtifactEventsResponse': # noqa: E501
|
|
1637
|
+
"""storage_service_post_cloud_space_artifact_events # noqa: E501
|
|
1638
|
+
|
|
1639
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1640
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1641
|
+
>>> thread = api.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, async_req=True)
|
|
1642
|
+
>>> result = thread.get()
|
|
1643
|
+
|
|
1644
|
+
:param async_req bool
|
|
1645
|
+
:param str project_id: (required)
|
|
1646
|
+
:param str cloud_space_id: (required)
|
|
1647
|
+
:return: V1PostCloudSpaceArtifactEventsResponse
|
|
1648
|
+
If the method is called asynchronously,
|
|
1649
|
+
returns the request thread.
|
|
1650
|
+
"""
|
|
1651
|
+
|
|
1652
|
+
all_params = ['project_id', 'cloud_space_id'] # noqa: E501
|
|
1653
|
+
all_params.append('async_req')
|
|
1654
|
+
all_params.append('_return_http_data_only')
|
|
1655
|
+
all_params.append('_preload_content')
|
|
1656
|
+
all_params.append('_request_timeout')
|
|
1657
|
+
|
|
1658
|
+
params = locals()
|
|
1659
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1660
|
+
if key not in all_params:
|
|
1661
|
+
raise TypeError(
|
|
1662
|
+
"Got an unexpected keyword argument '%s'"
|
|
1663
|
+
" to method storage_service_post_cloud_space_artifact_events" % key
|
|
1664
|
+
)
|
|
1665
|
+
params[key] = val
|
|
1666
|
+
del params['kwargs']
|
|
1667
|
+
# verify the required parameter 'project_id' is set
|
|
1668
|
+
if ('project_id' not in params or
|
|
1669
|
+
params['project_id'] is None):
|
|
1670
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_post_cloud_space_artifact_events`") # noqa: E501
|
|
1671
|
+
# verify the required parameter 'cloud_space_id' is set
|
|
1672
|
+
if ('cloud_space_id' not in params or
|
|
1673
|
+
params['cloud_space_id'] is None):
|
|
1674
|
+
raise ValueError("Missing the required parameter `cloud_space_id` when calling `storage_service_post_cloud_space_artifact_events`") # noqa: E501
|
|
1675
|
+
|
|
1676
|
+
collection_formats = {}
|
|
1677
|
+
|
|
1678
|
+
path_params = {}
|
|
1679
|
+
if 'project_id' in params:
|
|
1680
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1681
|
+
if 'cloud_space_id' in params:
|
|
1682
|
+
path_params['cloudSpaceId'] = params['cloud_space_id'] # noqa: E501
|
|
1683
|
+
|
|
1684
|
+
query_params = []
|
|
1685
|
+
|
|
1686
|
+
header_params = {}
|
|
1687
|
+
|
|
1688
|
+
form_params = []
|
|
1689
|
+
local_var_files = {}
|
|
1690
|
+
|
|
1691
|
+
body_params = None
|
|
1692
|
+
# HTTP header `Accept`
|
|
1693
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1694
|
+
['application/json']) # noqa: E501
|
|
1695
|
+
|
|
1696
|
+
# Authentication setting
|
|
1697
|
+
auth_settings = [] # noqa: E501
|
|
1698
|
+
|
|
1699
|
+
return self.api_client.call_api(
|
|
1700
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudSpaceId}/artifacts/events', 'GET',
|
|
1701
|
+
path_params,
|
|
1702
|
+
query_params,
|
|
1703
|
+
header_params,
|
|
1704
|
+
body=body_params,
|
|
1705
|
+
post_params=form_params,
|
|
1706
|
+
files=local_var_files,
|
|
1707
|
+
response_type='V1PostCloudSpaceArtifactEventsResponse', # noqa: E501
|
|
1708
|
+
auth_settings=auth_settings,
|
|
1709
|
+
async_req=params.get('async_req'),
|
|
1710
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1711
|
+
_preload_content=params.get('_preload_content', True),
|
|
1712
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1713
|
+
collection_formats=collection_formats)
|
|
1714
|
+
|
|
1715
|
+
def storage_service_resume_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ResumeStorageTransferResponse': # noqa: E501
|
|
1716
|
+
"""storage_service_resume_storage_transfer # noqa: E501
|
|
1717
|
+
|
|
1718
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1719
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1720
|
+
>>> thread = api.storage_service_resume_storage_transfer(body, project_id, id, async_req=True)
|
|
1721
|
+
>>> result = thread.get()
|
|
1722
|
+
|
|
1723
|
+
:param async_req bool
|
|
1724
|
+
:param object body: (required)
|
|
1725
|
+
:param str project_id: (required)
|
|
1726
|
+
:param str id: (required)
|
|
1727
|
+
:return: V1ResumeStorageTransferResponse
|
|
1728
|
+
If the method is called asynchronously,
|
|
1729
|
+
returns the request thread.
|
|
1730
|
+
"""
|
|
1731
|
+
kwargs['_return_http_data_only'] = True
|
|
1732
|
+
if kwargs.get('async_req'):
|
|
1733
|
+
return self.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1734
|
+
else:
|
|
1735
|
+
(data) = self.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
1736
|
+
return data
|
|
1737
|
+
|
|
1738
|
+
def storage_service_resume_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ResumeStorageTransferResponse': # noqa: E501
|
|
1739
|
+
"""storage_service_resume_storage_transfer # noqa: E501
|
|
1740
|
+
|
|
1741
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1742
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1743
|
+
>>> thread = api.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, async_req=True)
|
|
1744
|
+
>>> result = thread.get()
|
|
1745
|
+
|
|
1746
|
+
:param async_req bool
|
|
1747
|
+
:param object body: (required)
|
|
1748
|
+
:param str project_id: (required)
|
|
1749
|
+
:param str id: (required)
|
|
1750
|
+
:return: V1ResumeStorageTransferResponse
|
|
1751
|
+
If the method is called asynchronously,
|
|
1752
|
+
returns the request thread.
|
|
1753
|
+
"""
|
|
1754
|
+
|
|
1755
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
1756
|
+
all_params.append('async_req')
|
|
1757
|
+
all_params.append('_return_http_data_only')
|
|
1758
|
+
all_params.append('_preload_content')
|
|
1759
|
+
all_params.append('_request_timeout')
|
|
1760
|
+
|
|
1761
|
+
params = locals()
|
|
1762
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1763
|
+
if key not in all_params:
|
|
1764
|
+
raise TypeError(
|
|
1765
|
+
"Got an unexpected keyword argument '%s'"
|
|
1766
|
+
" to method storage_service_resume_storage_transfer" % key
|
|
1767
|
+
)
|
|
1768
|
+
params[key] = val
|
|
1769
|
+
del params['kwargs']
|
|
1770
|
+
# verify the required parameter 'body' is set
|
|
1771
|
+
if ('body' not in params or
|
|
1772
|
+
params['body'] is None):
|
|
1773
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_resume_storage_transfer`") # noqa: E501
|
|
1774
|
+
# verify the required parameter 'project_id' is set
|
|
1775
|
+
if ('project_id' not in params or
|
|
1776
|
+
params['project_id'] is None):
|
|
1777
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_resume_storage_transfer`") # noqa: E501
|
|
1778
|
+
# verify the required parameter 'id' is set
|
|
1779
|
+
if ('id' not in params or
|
|
1780
|
+
params['id'] is None):
|
|
1781
|
+
raise ValueError("Missing the required parameter `id` when calling `storage_service_resume_storage_transfer`") # noqa: E501
|
|
1782
|
+
|
|
1783
|
+
collection_formats = {}
|
|
1784
|
+
|
|
1785
|
+
path_params = {}
|
|
1786
|
+
if 'project_id' in params:
|
|
1787
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1788
|
+
if 'id' in params:
|
|
1789
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1790
|
+
|
|
1791
|
+
query_params = []
|
|
1792
|
+
|
|
1793
|
+
header_params = {}
|
|
1794
|
+
|
|
1795
|
+
form_params = []
|
|
1796
|
+
local_var_files = {}
|
|
1797
|
+
|
|
1798
|
+
body_params = None
|
|
1799
|
+
if 'body' in params:
|
|
1800
|
+
body_params = params['body']
|
|
1801
|
+
# HTTP header `Accept`
|
|
1802
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1803
|
+
['application/json']) # noqa: E501
|
|
1804
|
+
|
|
1805
|
+
# HTTP header `Content-Type`
|
|
1806
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1807
|
+
['application/json']) # noqa: E501
|
|
1808
|
+
|
|
1809
|
+
# Authentication setting
|
|
1810
|
+
auth_settings = [] # noqa: E501
|
|
1811
|
+
|
|
1812
|
+
return self.api_client.call_api(
|
|
1813
|
+
'/v1/projects/{projectId}/storage-transfers/{id}/resume', 'POST',
|
|
1814
|
+
path_params,
|
|
1815
|
+
query_params,
|
|
1816
|
+
header_params,
|
|
1817
|
+
body=body_params,
|
|
1818
|
+
post_params=form_params,
|
|
1819
|
+
files=local_var_files,
|
|
1820
|
+
response_type='V1ResumeStorageTransferResponse', # noqa: E501
|
|
1821
|
+
auth_settings=auth_settings,
|
|
1822
|
+
async_req=params.get('async_req'),
|
|
1823
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1824
|
+
_preload_content=params.get('_preload_content', True),
|
|
1825
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1826
|
+
collection_formats=collection_formats)
|
|
1827
|
+
|
|
1828
|
+
def storage_service_upload_project_artifact(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
1829
|
+
"""UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
|
|
1830
|
+
|
|
1831
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1832
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1833
|
+
>>> thread = api.storage_service_upload_project_artifact(body, project_id, async_req=True)
|
|
1834
|
+
>>> result = thread.get()
|
|
1835
|
+
|
|
1836
|
+
:param async_req bool
|
|
1837
|
+
:param ProjectIdStorageBody body: (required)
|
|
1838
|
+
:param str project_id: (required)
|
|
1839
|
+
:return: V1UploadProjectArtifactResponse
|
|
1840
|
+
If the method is called asynchronously,
|
|
1841
|
+
returns the request thread.
|
|
1842
|
+
"""
|
|
1843
|
+
kwargs['_return_http_data_only'] = True
|
|
1844
|
+
if kwargs.get('async_req'):
|
|
1845
|
+
return self.storage_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1846
|
+
else:
|
|
1847
|
+
(data) = self.storage_service_upload_project_artifact_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
1848
|
+
return data
|
|
1849
|
+
|
|
1850
|
+
def storage_service_upload_project_artifact_with_http_info(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
1851
|
+
"""UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
|
|
1852
|
+
|
|
1853
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1854
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1855
|
+
>>> thread = api.storage_service_upload_project_artifact_with_http_info(body, project_id, async_req=True)
|
|
1856
|
+
>>> result = thread.get()
|
|
1857
|
+
|
|
1858
|
+
:param async_req bool
|
|
1859
|
+
:param ProjectIdStorageBody body: (required)
|
|
1860
|
+
:param str project_id: (required)
|
|
1861
|
+
:return: V1UploadProjectArtifactResponse
|
|
1862
|
+
If the method is called asynchronously,
|
|
715
1863
|
returns the request thread.
|
|
716
1864
|
"""
|
|
717
1865
|
|
|
718
|
-
all_params = ['
|
|
1866
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
719
1867
|
all_params.append('async_req')
|
|
720
1868
|
all_params.append('_return_http_data_only')
|
|
721
1869
|
all_params.append('_preload_content')
|
|
@@ -726,14 +1874,18 @@ class StorageServiceApi(object):
|
|
|
726
1874
|
if key not in all_params:
|
|
727
1875
|
raise TypeError(
|
|
728
1876
|
"Got an unexpected keyword argument '%s'"
|
|
729
|
-
" to method
|
|
1877
|
+
" to method storage_service_upload_project_artifact" % key
|
|
730
1878
|
)
|
|
731
1879
|
params[key] = val
|
|
732
1880
|
del params['kwargs']
|
|
1881
|
+
# verify the required parameter 'body' is set
|
|
1882
|
+
if ('body' not in params or
|
|
1883
|
+
params['body'] is None):
|
|
1884
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_project_artifact`") # noqa: E501
|
|
733
1885
|
# verify the required parameter 'project_id' is set
|
|
734
1886
|
if ('project_id' not in params or
|
|
735
1887
|
params['project_id'] is None):
|
|
736
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1888
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact`") # noqa: E501
|
|
737
1889
|
|
|
738
1890
|
collection_formats = {}
|
|
739
1891
|
|
|
@@ -742,16 +1894,6 @@ class StorageServiceApi(object):
|
|
|
742
1894
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
743
1895
|
|
|
744
1896
|
query_params = []
|
|
745
|
-
if 'cluster_id' in params:
|
|
746
|
-
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
747
|
-
if 'page_token' in params:
|
|
748
|
-
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
749
|
-
if 'page_size' in params:
|
|
750
|
-
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
751
|
-
if 'prefix' in params:
|
|
752
|
-
query_params.append(('prefix', params['prefix'])) # noqa: E501
|
|
753
|
-
if 'include_download_url' in params:
|
|
754
|
-
query_params.append(('includeDownloadUrl', params['include_download_url'])) # noqa: E501
|
|
755
1897
|
|
|
756
1898
|
header_params = {}
|
|
757
1899
|
|
|
@@ -759,22 +1901,28 @@ class StorageServiceApi(object):
|
|
|
759
1901
|
local_var_files = {}
|
|
760
1902
|
|
|
761
1903
|
body_params = None
|
|
1904
|
+
if 'body' in params:
|
|
1905
|
+
body_params = params['body']
|
|
762
1906
|
# HTTP header `Accept`
|
|
763
1907
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
764
1908
|
['application/json']) # noqa: E501
|
|
765
1909
|
|
|
1910
|
+
# HTTP header `Content-Type`
|
|
1911
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1912
|
+
['application/json']) # noqa: E501
|
|
1913
|
+
|
|
766
1914
|
# Authentication setting
|
|
767
1915
|
auth_settings = [] # noqa: E501
|
|
768
1916
|
|
|
769
1917
|
return self.api_client.call_api(
|
|
770
|
-
'/v1/projects/{projectId}/storage', '
|
|
1918
|
+
'/v1/projects/{projectId}/storage', 'POST',
|
|
771
1919
|
path_params,
|
|
772
1920
|
query_params,
|
|
773
1921
|
header_params,
|
|
774
1922
|
body=body_params,
|
|
775
1923
|
post_params=form_params,
|
|
776
1924
|
files=local_var_files,
|
|
777
|
-
response_type='
|
|
1925
|
+
response_type='V1UploadProjectArtifactResponse', # noqa: E501
|
|
778
1926
|
auth_settings=auth_settings,
|
|
779
1927
|
async_req=params.get('async_req'),
|
|
780
1928
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -782,43 +1930,47 @@ class StorageServiceApi(object):
|
|
|
782
1930
|
_request_timeout=params.get('_request_timeout'),
|
|
783
1931
|
collection_formats=collection_formats)
|
|
784
1932
|
|
|
785
|
-
def
|
|
786
|
-
"""
|
|
1933
|
+
def storage_service_upload_project_artifact_parts(self, body: 'UploadsUploadIdBody1', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
1934
|
+
"""storage_service_upload_project_artifact_parts # noqa: E501
|
|
787
1935
|
|
|
788
1936
|
This method makes a synchronous HTTP request by default. To make an
|
|
789
1937
|
asynchronous HTTP request, please pass async_req=True
|
|
790
|
-
>>> thread = api.
|
|
1938
|
+
>>> thread = api.storage_service_upload_project_artifact_parts(body, project_id, upload_id, async_req=True)
|
|
791
1939
|
>>> result = thread.get()
|
|
792
1940
|
|
|
793
1941
|
:param async_req bool
|
|
1942
|
+
:param UploadsUploadIdBody1 body: (required)
|
|
794
1943
|
:param str project_id: (required)
|
|
795
|
-
:
|
|
1944
|
+
:param str upload_id: (required)
|
|
1945
|
+
:return: V1UploadProjectArtifactPartsResponse
|
|
796
1946
|
If the method is called asynchronously,
|
|
797
1947
|
returns the request thread.
|
|
798
1948
|
"""
|
|
799
1949
|
kwargs['_return_http_data_only'] = True
|
|
800
1950
|
if kwargs.get('async_req'):
|
|
801
|
-
return self.
|
|
1951
|
+
return self.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
802
1952
|
else:
|
|
803
|
-
(data) = self.
|
|
1953
|
+
(data) = self.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, **kwargs) # noqa: E501
|
|
804
1954
|
return data
|
|
805
1955
|
|
|
806
|
-
def
|
|
807
|
-
"""
|
|
1956
|
+
def storage_service_upload_project_artifact_parts_with_http_info(self, body: 'UploadsUploadIdBody1', project_id: 'str', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
1957
|
+
"""storage_service_upload_project_artifact_parts # noqa: E501
|
|
808
1958
|
|
|
809
1959
|
This method makes a synchronous HTTP request by default. To make an
|
|
810
1960
|
asynchronous HTTP request, please pass async_req=True
|
|
811
|
-
>>> thread = api.
|
|
1961
|
+
>>> thread = api.storage_service_upload_project_artifact_parts_with_http_info(body, project_id, upload_id, async_req=True)
|
|
812
1962
|
>>> result = thread.get()
|
|
813
1963
|
|
|
814
1964
|
:param async_req bool
|
|
1965
|
+
:param UploadsUploadIdBody1 body: (required)
|
|
815
1966
|
:param str project_id: (required)
|
|
816
|
-
:
|
|
1967
|
+
:param str upload_id: (required)
|
|
1968
|
+
:return: V1UploadProjectArtifactPartsResponse
|
|
817
1969
|
If the method is called asynchronously,
|
|
818
1970
|
returns the request thread.
|
|
819
1971
|
"""
|
|
820
1972
|
|
|
821
|
-
all_params = ['project_id'] # noqa: E501
|
|
1973
|
+
all_params = ['body', 'project_id', 'upload_id'] # noqa: E501
|
|
822
1974
|
all_params.append('async_req')
|
|
823
1975
|
all_params.append('_return_http_data_only')
|
|
824
1976
|
all_params.append('_preload_content')
|
|
@@ -829,20 +1981,30 @@ class StorageServiceApi(object):
|
|
|
829
1981
|
if key not in all_params:
|
|
830
1982
|
raise TypeError(
|
|
831
1983
|
"Got an unexpected keyword argument '%s'"
|
|
832
|
-
" to method
|
|
1984
|
+
" to method storage_service_upload_project_artifact_parts" % key
|
|
833
1985
|
)
|
|
834
1986
|
params[key] = val
|
|
835
1987
|
del params['kwargs']
|
|
1988
|
+
# verify the required parameter 'body' is set
|
|
1989
|
+
if ('body' not in params or
|
|
1990
|
+
params['body'] is None):
|
|
1991
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
836
1992
|
# verify the required parameter 'project_id' is set
|
|
837
1993
|
if ('project_id' not in params or
|
|
838
1994
|
params['project_id'] is None):
|
|
839
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1995
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
1996
|
+
# verify the required parameter 'upload_id' is set
|
|
1997
|
+
if ('upload_id' not in params or
|
|
1998
|
+
params['upload_id'] is None):
|
|
1999
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
840
2000
|
|
|
841
2001
|
collection_formats = {}
|
|
842
2002
|
|
|
843
2003
|
path_params = {}
|
|
844
2004
|
if 'project_id' in params:
|
|
845
2005
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2006
|
+
if 'upload_id' in params:
|
|
2007
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
846
2008
|
|
|
847
2009
|
query_params = []
|
|
848
2010
|
|
|
@@ -852,22 +2014,28 @@ class StorageServiceApi(object):
|
|
|
852
2014
|
local_var_files = {}
|
|
853
2015
|
|
|
854
2016
|
body_params = None
|
|
2017
|
+
if 'body' in params:
|
|
2018
|
+
body_params = params['body']
|
|
855
2019
|
# HTTP header `Accept`
|
|
856
2020
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
857
2021
|
['application/json']) # noqa: E501
|
|
858
2022
|
|
|
2023
|
+
# HTTP header `Content-Type`
|
|
2024
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2025
|
+
['application/json']) # noqa: E501
|
|
2026
|
+
|
|
859
2027
|
# Authentication setting
|
|
860
2028
|
auth_settings = [] # noqa: E501
|
|
861
2029
|
|
|
862
2030
|
return self.api_client.call_api(
|
|
863
|
-
'/v1/projects/{projectId}/
|
|
2031
|
+
'/v1/projects/{projectId}/storage/uploads/{uploadId}', 'POST',
|
|
864
2032
|
path_params,
|
|
865
2033
|
query_params,
|
|
866
2034
|
header_params,
|
|
867
2035
|
body=body_params,
|
|
868
2036
|
post_params=form_params,
|
|
869
2037
|
files=local_var_files,
|
|
870
|
-
response_type='
|
|
2038
|
+
response_type='V1UploadProjectArtifactPartsResponse', # noqa: E501
|
|
871
2039
|
auth_settings=auth_settings,
|
|
872
2040
|
async_req=params.get('async_req'),
|
|
873
2041
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -875,45 +2043,43 @@ class StorageServiceApi(object):
|
|
|
875
2043
|
_request_timeout=params.get('_request_timeout'),
|
|
876
2044
|
collection_formats=collection_formats)
|
|
877
2045
|
|
|
878
|
-
def
|
|
879
|
-
"""
|
|
2046
|
+
def storage_service_upload_temporary_artifact(self, body: 'V1UploadTemporaryArtifactRequest', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
2047
|
+
"""storage_service_upload_temporary_artifact # noqa: E501
|
|
880
2048
|
|
|
881
2049
|
This method makes a synchronous HTTP request by default. To make an
|
|
882
2050
|
asynchronous HTTP request, please pass async_req=True
|
|
883
|
-
>>> thread = api.
|
|
2051
|
+
>>> thread = api.storage_service_upload_temporary_artifact(body, async_req=True)
|
|
884
2052
|
>>> result = thread.get()
|
|
885
2053
|
|
|
886
2054
|
:param async_req bool
|
|
887
|
-
:param
|
|
888
|
-
:param str project_id: (required)
|
|
2055
|
+
:param V1UploadTemporaryArtifactRequest body: (required)
|
|
889
2056
|
:return: V1UploadProjectArtifactResponse
|
|
890
2057
|
If the method is called asynchronously,
|
|
891
2058
|
returns the request thread.
|
|
892
2059
|
"""
|
|
893
2060
|
kwargs['_return_http_data_only'] = True
|
|
894
2061
|
if kwargs.get('async_req'):
|
|
895
|
-
return self.
|
|
2062
|
+
return self.storage_service_upload_temporary_artifact_with_http_info(body, **kwargs) # noqa: E501
|
|
896
2063
|
else:
|
|
897
|
-
(data) = self.
|
|
2064
|
+
(data) = self.storage_service_upload_temporary_artifact_with_http_info(body, **kwargs) # noqa: E501
|
|
898
2065
|
return data
|
|
899
2066
|
|
|
900
|
-
def
|
|
901
|
-
"""
|
|
2067
|
+
def storage_service_upload_temporary_artifact_with_http_info(self, body: 'V1UploadTemporaryArtifactRequest', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
2068
|
+
"""storage_service_upload_temporary_artifact # noqa: E501
|
|
902
2069
|
|
|
903
2070
|
This method makes a synchronous HTTP request by default. To make an
|
|
904
2071
|
asynchronous HTTP request, please pass async_req=True
|
|
905
|
-
>>> thread = api.
|
|
2072
|
+
>>> thread = api.storage_service_upload_temporary_artifact_with_http_info(body, async_req=True)
|
|
906
2073
|
>>> result = thread.get()
|
|
907
2074
|
|
|
908
2075
|
:param async_req bool
|
|
909
|
-
:param
|
|
910
|
-
:param str project_id: (required)
|
|
2076
|
+
:param V1UploadTemporaryArtifactRequest body: (required)
|
|
911
2077
|
:return: V1UploadProjectArtifactResponse
|
|
912
2078
|
If the method is called asynchronously,
|
|
913
2079
|
returns the request thread.
|
|
914
2080
|
"""
|
|
915
2081
|
|
|
916
|
-
all_params = ['body'
|
|
2082
|
+
all_params = ['body'] # noqa: E501
|
|
917
2083
|
all_params.append('async_req')
|
|
918
2084
|
all_params.append('_return_http_data_only')
|
|
919
2085
|
all_params.append('_preload_content')
|
|
@@ -924,24 +2090,18 @@ class StorageServiceApi(object):
|
|
|
924
2090
|
if key not in all_params:
|
|
925
2091
|
raise TypeError(
|
|
926
2092
|
"Got an unexpected keyword argument '%s'"
|
|
927
|
-
" to method
|
|
2093
|
+
" to method storage_service_upload_temporary_artifact" % key
|
|
928
2094
|
)
|
|
929
2095
|
params[key] = val
|
|
930
2096
|
del params['kwargs']
|
|
931
2097
|
# verify the required parameter 'body' is set
|
|
932
2098
|
if ('body' not in params or
|
|
933
2099
|
params['body'] is None):
|
|
934
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
935
|
-
# verify the required parameter 'project_id' is set
|
|
936
|
-
if ('project_id' not in params or
|
|
937
|
-
params['project_id'] is None):
|
|
938
|
-
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact`") # noqa: E501
|
|
2100
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_temporary_artifact`") # noqa: E501
|
|
939
2101
|
|
|
940
2102
|
collection_formats = {}
|
|
941
2103
|
|
|
942
2104
|
path_params = {}
|
|
943
|
-
if 'project_id' in params:
|
|
944
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
945
2105
|
|
|
946
2106
|
query_params = []
|
|
947
2107
|
|
|
@@ -965,7 +2125,7 @@ class StorageServiceApi(object):
|
|
|
965
2125
|
auth_settings = [] # noqa: E501
|
|
966
2126
|
|
|
967
2127
|
return self.api_client.call_api(
|
|
968
|
-
'/v1/projects/
|
|
2128
|
+
'/v1/projects/temporary_storage', 'POST',
|
|
969
2129
|
path_params,
|
|
970
2130
|
query_params,
|
|
971
2131
|
header_params,
|
|
@@ -980,17 +2140,16 @@ class StorageServiceApi(object):
|
|
|
980
2140
|
_request_timeout=params.get('_request_timeout'),
|
|
981
2141
|
collection_formats=collection_formats)
|
|
982
2142
|
|
|
983
|
-
def
|
|
984
|
-
"""
|
|
2143
|
+
def storage_service_upload_temporary_artifact_parts(self, body: 'UploadsUploadIdBody', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
2144
|
+
"""storage_service_upload_temporary_artifact_parts # noqa: E501
|
|
985
2145
|
|
|
986
2146
|
This method makes a synchronous HTTP request by default. To make an
|
|
987
2147
|
asynchronous HTTP request, please pass async_req=True
|
|
988
|
-
>>> thread = api.
|
|
2148
|
+
>>> thread = api.storage_service_upload_temporary_artifact_parts(body, upload_id, async_req=True)
|
|
989
2149
|
>>> result = thread.get()
|
|
990
2150
|
|
|
991
2151
|
:param async_req bool
|
|
992
2152
|
:param UploadsUploadIdBody body: (required)
|
|
993
|
-
:param str project_id: (required)
|
|
994
2153
|
:param str upload_id: (required)
|
|
995
2154
|
:return: V1UploadProjectArtifactPartsResponse
|
|
996
2155
|
If the method is called asynchronously,
|
|
@@ -998,29 +2157,28 @@ class StorageServiceApi(object):
|
|
|
998
2157
|
"""
|
|
999
2158
|
kwargs['_return_http_data_only'] = True
|
|
1000
2159
|
if kwargs.get('async_req'):
|
|
1001
|
-
return self.
|
|
2160
|
+
return self.storage_service_upload_temporary_artifact_parts_with_http_info(body, upload_id, **kwargs) # noqa: E501
|
|
1002
2161
|
else:
|
|
1003
|
-
(data) = self.
|
|
2162
|
+
(data) = self.storage_service_upload_temporary_artifact_parts_with_http_info(body, upload_id, **kwargs) # noqa: E501
|
|
1004
2163
|
return data
|
|
1005
2164
|
|
|
1006
|
-
def
|
|
1007
|
-
"""
|
|
2165
|
+
def storage_service_upload_temporary_artifact_parts_with_http_info(self, body: 'UploadsUploadIdBody', upload_id: 'str', **kwargs) -> 'V1UploadProjectArtifactPartsResponse': # noqa: E501
|
|
2166
|
+
"""storage_service_upload_temporary_artifact_parts # noqa: E501
|
|
1008
2167
|
|
|
1009
2168
|
This method makes a synchronous HTTP request by default. To make an
|
|
1010
2169
|
asynchronous HTTP request, please pass async_req=True
|
|
1011
|
-
>>> thread = api.
|
|
2170
|
+
>>> thread = api.storage_service_upload_temporary_artifact_parts_with_http_info(body, upload_id, async_req=True)
|
|
1012
2171
|
>>> result = thread.get()
|
|
1013
2172
|
|
|
1014
2173
|
:param async_req bool
|
|
1015
2174
|
:param UploadsUploadIdBody body: (required)
|
|
1016
|
-
:param str project_id: (required)
|
|
1017
2175
|
:param str upload_id: (required)
|
|
1018
2176
|
:return: V1UploadProjectArtifactPartsResponse
|
|
1019
2177
|
If the method is called asynchronously,
|
|
1020
2178
|
returns the request thread.
|
|
1021
2179
|
"""
|
|
1022
2180
|
|
|
1023
|
-
all_params = ['body', '
|
|
2181
|
+
all_params = ['body', 'upload_id'] # noqa: E501
|
|
1024
2182
|
all_params.append('async_req')
|
|
1025
2183
|
all_params.append('_return_http_data_only')
|
|
1026
2184
|
all_params.append('_preload_content')
|
|
@@ -1031,28 +2189,22 @@ class StorageServiceApi(object):
|
|
|
1031
2189
|
if key not in all_params:
|
|
1032
2190
|
raise TypeError(
|
|
1033
2191
|
"Got an unexpected keyword argument '%s'"
|
|
1034
|
-
" to method
|
|
2192
|
+
" to method storage_service_upload_temporary_artifact_parts" % key
|
|
1035
2193
|
)
|
|
1036
2194
|
params[key] = val
|
|
1037
2195
|
del params['kwargs']
|
|
1038
2196
|
# verify the required parameter 'body' is set
|
|
1039
2197
|
if ('body' not in params or
|
|
1040
2198
|
params['body'] is None):
|
|
1041
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
1042
|
-
# verify the required parameter 'project_id' is set
|
|
1043
|
-
if ('project_id' not in params or
|
|
1044
|
-
params['project_id'] is None):
|
|
1045
|
-
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_upload_project_artifact_parts`") # noqa: E501
|
|
2199
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_upload_temporary_artifact_parts`") # noqa: E501
|
|
1046
2200
|
# verify the required parameter 'upload_id' is set
|
|
1047
2201
|
if ('upload_id' not in params or
|
|
1048
2202
|
params['upload_id'] is None):
|
|
1049
|
-
raise ValueError("Missing the required parameter `upload_id` when calling `
|
|
2203
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `storage_service_upload_temporary_artifact_parts`") # noqa: E501
|
|
1050
2204
|
|
|
1051
2205
|
collection_formats = {}
|
|
1052
2206
|
|
|
1053
2207
|
path_params = {}
|
|
1054
|
-
if 'project_id' in params:
|
|
1055
|
-
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1056
2208
|
if 'upload_id' in params:
|
|
1057
2209
|
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
1058
2210
|
|
|
@@ -1078,7 +2230,7 @@ class StorageServiceApi(object):
|
|
|
1078
2230
|
auth_settings = [] # noqa: E501
|
|
1079
2231
|
|
|
1080
2232
|
return self.api_client.call_api(
|
|
1081
|
-
'/v1/projects/
|
|
2233
|
+
'/v1/projects/temporary_storage/uploads/{uploadId}', 'POST',
|
|
1082
2234
|
path_params,
|
|
1083
2235
|
query_params,
|
|
1084
2236
|
header_params,
|
|
@@ -1092,3 +2244,108 @@ class StorageServiceApi(object):
|
|
|
1092
2244
|
_preload_content=params.get('_preload_content', True),
|
|
1093
2245
|
_request_timeout=params.get('_request_timeout'),
|
|
1094
2246
|
collection_formats=collection_formats)
|
|
2247
|
+
|
|
2248
|
+
def storage_service_validate_storage_transfer(self, body: 'StoragetransfersValidateBody', project_id: 'str', **kwargs) -> 'V1ValidateStorageTransferResponse': # noqa: E501
|
|
2249
|
+
"""storage_service_validate_storage_transfer # noqa: E501
|
|
2250
|
+
|
|
2251
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2252
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2253
|
+
>>> thread = api.storage_service_validate_storage_transfer(body, project_id, async_req=True)
|
|
2254
|
+
>>> result = thread.get()
|
|
2255
|
+
|
|
2256
|
+
:param async_req bool
|
|
2257
|
+
:param StoragetransfersValidateBody body: (required)
|
|
2258
|
+
:param str project_id: (required)
|
|
2259
|
+
:return: V1ValidateStorageTransferResponse
|
|
2260
|
+
If the method is called asynchronously,
|
|
2261
|
+
returns the request thread.
|
|
2262
|
+
"""
|
|
2263
|
+
kwargs['_return_http_data_only'] = True
|
|
2264
|
+
if kwargs.get('async_req'):
|
|
2265
|
+
return self.storage_service_validate_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
2266
|
+
else:
|
|
2267
|
+
(data) = self.storage_service_validate_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
2268
|
+
return data
|
|
2269
|
+
|
|
2270
|
+
def storage_service_validate_storage_transfer_with_http_info(self, body: 'StoragetransfersValidateBody', project_id: 'str', **kwargs) -> 'V1ValidateStorageTransferResponse': # noqa: E501
|
|
2271
|
+
"""storage_service_validate_storage_transfer # noqa: E501
|
|
2272
|
+
|
|
2273
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2274
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2275
|
+
>>> thread = api.storage_service_validate_storage_transfer_with_http_info(body, project_id, async_req=True)
|
|
2276
|
+
>>> result = thread.get()
|
|
2277
|
+
|
|
2278
|
+
:param async_req bool
|
|
2279
|
+
:param StoragetransfersValidateBody body: (required)
|
|
2280
|
+
:param str project_id: (required)
|
|
2281
|
+
:return: V1ValidateStorageTransferResponse
|
|
2282
|
+
If the method is called asynchronously,
|
|
2283
|
+
returns the request thread.
|
|
2284
|
+
"""
|
|
2285
|
+
|
|
2286
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
2287
|
+
all_params.append('async_req')
|
|
2288
|
+
all_params.append('_return_http_data_only')
|
|
2289
|
+
all_params.append('_preload_content')
|
|
2290
|
+
all_params.append('_request_timeout')
|
|
2291
|
+
|
|
2292
|
+
params = locals()
|
|
2293
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2294
|
+
if key not in all_params:
|
|
2295
|
+
raise TypeError(
|
|
2296
|
+
"Got an unexpected keyword argument '%s'"
|
|
2297
|
+
" to method storage_service_validate_storage_transfer" % key
|
|
2298
|
+
)
|
|
2299
|
+
params[key] = val
|
|
2300
|
+
del params['kwargs']
|
|
2301
|
+
# verify the required parameter 'body' is set
|
|
2302
|
+
if ('body' not in params or
|
|
2303
|
+
params['body'] is None):
|
|
2304
|
+
raise ValueError("Missing the required parameter `body` when calling `storage_service_validate_storage_transfer`") # noqa: E501
|
|
2305
|
+
# verify the required parameter 'project_id' is set
|
|
2306
|
+
if ('project_id' not in params or
|
|
2307
|
+
params['project_id'] is None):
|
|
2308
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_validate_storage_transfer`") # noqa: E501
|
|
2309
|
+
|
|
2310
|
+
collection_formats = {}
|
|
2311
|
+
|
|
2312
|
+
path_params = {}
|
|
2313
|
+
if 'project_id' in params:
|
|
2314
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2315
|
+
|
|
2316
|
+
query_params = []
|
|
2317
|
+
|
|
2318
|
+
header_params = {}
|
|
2319
|
+
|
|
2320
|
+
form_params = []
|
|
2321
|
+
local_var_files = {}
|
|
2322
|
+
|
|
2323
|
+
body_params = None
|
|
2324
|
+
if 'body' in params:
|
|
2325
|
+
body_params = params['body']
|
|
2326
|
+
# HTTP header `Accept`
|
|
2327
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2328
|
+
['application/json']) # noqa: E501
|
|
2329
|
+
|
|
2330
|
+
# HTTP header `Content-Type`
|
|
2331
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2332
|
+
['application/json']) # noqa: E501
|
|
2333
|
+
|
|
2334
|
+
# Authentication setting
|
|
2335
|
+
auth_settings = [] # noqa: E501
|
|
2336
|
+
|
|
2337
|
+
return self.api_client.call_api(
|
|
2338
|
+
'/v1/projects/{projectId}/storage-transfers/validate', 'POST',
|
|
2339
|
+
path_params,
|
|
2340
|
+
query_params,
|
|
2341
|
+
header_params,
|
|
2342
|
+
body=body_params,
|
|
2343
|
+
post_params=form_params,
|
|
2344
|
+
files=local_var_files,
|
|
2345
|
+
response_type='V1ValidateStorageTransferResponse', # noqa: E501
|
|
2346
|
+
auth_settings=auth_settings,
|
|
2347
|
+
async_req=params.get('async_req'),
|
|
2348
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2349
|
+
_preload_content=params.get('_preload_content', True),
|
|
2350
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2351
|
+
collection_formats=collection_formats)
|