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
|
@@ -0,0 +1,1973 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import absolute_import
|
|
21
|
+
|
|
22
|
+
import re # noqa: F401
|
|
23
|
+
from typing import TYPE_CHECKING, Any
|
|
24
|
+
|
|
25
|
+
# python 2 and python 3 compatibility library
|
|
26
|
+
import six
|
|
27
|
+
|
|
28
|
+
from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
from datetime import datetime
|
|
32
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
33
|
+
|
|
34
|
+
class LitDatasetServiceApi(object):
|
|
35
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None):
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
def lit_dataset_service_complete_lit_dataset_multi_part_upload(self, body: 'UploadIdCompleteBody', project_id: 'str', dataset_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1CompleteLitDatasetMultiPartUploadResponse': # noqa: E501
|
|
47
|
+
"""CompleteMultiPartUpload marks the given file-parts as completed/uploaded. Once all parts of a file are completed, the file will materialize in S3 storage # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.lit_dataset_service_complete_lit_dataset_multi_part_upload(body, project_id, dataset_id, version, upload_id, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param UploadIdCompleteBody body: (required)
|
|
56
|
+
:param str project_id: (required)
|
|
57
|
+
:param str dataset_id: (required)
|
|
58
|
+
:param str version: (required)
|
|
59
|
+
:param str upload_id: (required)
|
|
60
|
+
:return: V1CompleteLitDatasetMultiPartUploadResponse
|
|
61
|
+
If the method is called asynchronously,
|
|
62
|
+
returns the request thread.
|
|
63
|
+
"""
|
|
64
|
+
kwargs['_return_http_data_only'] = True
|
|
65
|
+
if kwargs.get('async_req'):
|
|
66
|
+
return self.lit_dataset_service_complete_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, upload_id, **kwargs) # noqa: E501
|
|
67
|
+
else:
|
|
68
|
+
(data) = self.lit_dataset_service_complete_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, upload_id, **kwargs) # noqa: E501
|
|
69
|
+
return data
|
|
70
|
+
|
|
71
|
+
def lit_dataset_service_complete_lit_dataset_multi_part_upload_with_http_info(self, body: 'UploadIdCompleteBody', project_id: 'str', dataset_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1CompleteLitDatasetMultiPartUploadResponse': # noqa: E501
|
|
72
|
+
"""CompleteMultiPartUpload marks the given file-parts as completed/uploaded. Once all parts of a file are completed, the file will materialize in S3 storage # noqa: E501
|
|
73
|
+
|
|
74
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
75
|
+
asynchronous HTTP request, please pass async_req=True
|
|
76
|
+
>>> thread = api.lit_dataset_service_complete_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, upload_id, async_req=True)
|
|
77
|
+
>>> result = thread.get()
|
|
78
|
+
|
|
79
|
+
:param async_req bool
|
|
80
|
+
:param UploadIdCompleteBody body: (required)
|
|
81
|
+
:param str project_id: (required)
|
|
82
|
+
:param str dataset_id: (required)
|
|
83
|
+
:param str version: (required)
|
|
84
|
+
:param str upload_id: (required)
|
|
85
|
+
:return: V1CompleteLitDatasetMultiPartUploadResponse
|
|
86
|
+
If the method is called asynchronously,
|
|
87
|
+
returns the request thread.
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version', 'upload_id'] # noqa: E501
|
|
91
|
+
all_params.append('async_req')
|
|
92
|
+
all_params.append('_return_http_data_only')
|
|
93
|
+
all_params.append('_preload_content')
|
|
94
|
+
all_params.append('_request_timeout')
|
|
95
|
+
|
|
96
|
+
params = locals()
|
|
97
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
98
|
+
if key not in all_params:
|
|
99
|
+
raise TypeError(
|
|
100
|
+
"Got an unexpected keyword argument '%s'"
|
|
101
|
+
" to method lit_dataset_service_complete_lit_dataset_multi_part_upload" % key
|
|
102
|
+
)
|
|
103
|
+
params[key] = val
|
|
104
|
+
del params['kwargs']
|
|
105
|
+
# verify the required parameter 'body' is set
|
|
106
|
+
if ('body' not in params or
|
|
107
|
+
params['body'] is None):
|
|
108
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_complete_lit_dataset_multi_part_upload`") # noqa: E501
|
|
109
|
+
# verify the required parameter 'project_id' is set
|
|
110
|
+
if ('project_id' not in params or
|
|
111
|
+
params['project_id'] is None):
|
|
112
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_complete_lit_dataset_multi_part_upload`") # noqa: E501
|
|
113
|
+
# verify the required parameter 'dataset_id' is set
|
|
114
|
+
if ('dataset_id' not in params or
|
|
115
|
+
params['dataset_id'] is None):
|
|
116
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_complete_lit_dataset_multi_part_upload`") # noqa: E501
|
|
117
|
+
# verify the required parameter 'version' is set
|
|
118
|
+
if ('version' not in params or
|
|
119
|
+
params['version'] is None):
|
|
120
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_complete_lit_dataset_multi_part_upload`") # noqa: E501
|
|
121
|
+
# verify the required parameter 'upload_id' is set
|
|
122
|
+
if ('upload_id' not in params or
|
|
123
|
+
params['upload_id'] is None):
|
|
124
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `lit_dataset_service_complete_lit_dataset_multi_part_upload`") # noqa: E501
|
|
125
|
+
|
|
126
|
+
collection_formats = {}
|
|
127
|
+
|
|
128
|
+
path_params = {}
|
|
129
|
+
if 'project_id' in params:
|
|
130
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
131
|
+
if 'dataset_id' in params:
|
|
132
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
133
|
+
if 'version' in params:
|
|
134
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
135
|
+
if 'upload_id' in params:
|
|
136
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
137
|
+
|
|
138
|
+
query_params = []
|
|
139
|
+
|
|
140
|
+
header_params = {}
|
|
141
|
+
|
|
142
|
+
form_params = []
|
|
143
|
+
local_var_files = {}
|
|
144
|
+
|
|
145
|
+
body_params = None
|
|
146
|
+
if 'body' in params:
|
|
147
|
+
body_params = params['body']
|
|
148
|
+
# HTTP header `Accept`
|
|
149
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
150
|
+
['application/json']) # noqa: E501
|
|
151
|
+
|
|
152
|
+
# HTTP header `Content-Type`
|
|
153
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
154
|
+
['application/json']) # noqa: E501
|
|
155
|
+
|
|
156
|
+
# Authentication setting
|
|
157
|
+
auth_settings = [] # noqa: E501
|
|
158
|
+
|
|
159
|
+
return self.api_client.call_api(
|
|
160
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/uploads/{uploadId}/complete', 'POST',
|
|
161
|
+
path_params,
|
|
162
|
+
query_params,
|
|
163
|
+
header_params,
|
|
164
|
+
body=body_params,
|
|
165
|
+
post_params=form_params,
|
|
166
|
+
files=local_var_files,
|
|
167
|
+
response_type='V1CompleteLitDatasetMultiPartUploadResponse', # noqa: E501
|
|
168
|
+
auth_settings=auth_settings,
|
|
169
|
+
async_req=params.get('async_req'),
|
|
170
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
171
|
+
_preload_content=params.get('_preload_content', True),
|
|
172
|
+
_request_timeout=params.get('_request_timeout'),
|
|
173
|
+
collection_formats=collection_formats)
|
|
174
|
+
|
|
175
|
+
def lit_dataset_service_complete_lit_dataset_upload(self, body: 'object', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1CompleteLitDatasetUploadResponse': # noqa: E501
|
|
176
|
+
"""CompleteLitDatasetUpload marks the dataset upload as complete after all files have been uploaded. This marks the dataset as visible for list, delete, etc. operations # noqa: E501
|
|
177
|
+
|
|
178
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
179
|
+
asynchronous HTTP request, please pass async_req=True
|
|
180
|
+
>>> thread = api.lit_dataset_service_complete_lit_dataset_upload(body, project_id, dataset_id, version, async_req=True)
|
|
181
|
+
>>> result = thread.get()
|
|
182
|
+
|
|
183
|
+
:param async_req bool
|
|
184
|
+
:param object body: (required)
|
|
185
|
+
:param str project_id: (required)
|
|
186
|
+
:param str dataset_id: (required)
|
|
187
|
+
:param str version: (required)
|
|
188
|
+
:return: V1CompleteLitDatasetUploadResponse
|
|
189
|
+
If the method is called asynchronously,
|
|
190
|
+
returns the request thread.
|
|
191
|
+
"""
|
|
192
|
+
kwargs['_return_http_data_only'] = True
|
|
193
|
+
if kwargs.get('async_req'):
|
|
194
|
+
return self.lit_dataset_service_complete_lit_dataset_upload_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
195
|
+
else:
|
|
196
|
+
(data) = self.lit_dataset_service_complete_lit_dataset_upload_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
197
|
+
return data
|
|
198
|
+
|
|
199
|
+
def lit_dataset_service_complete_lit_dataset_upload_with_http_info(self, body: 'object', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1CompleteLitDatasetUploadResponse': # noqa: E501
|
|
200
|
+
"""CompleteLitDatasetUpload marks the dataset upload as complete after all files have been uploaded. This marks the dataset as visible for list, delete, etc. operations # noqa: E501
|
|
201
|
+
|
|
202
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
203
|
+
asynchronous HTTP request, please pass async_req=True
|
|
204
|
+
>>> thread = api.lit_dataset_service_complete_lit_dataset_upload_with_http_info(body, project_id, dataset_id, version, async_req=True)
|
|
205
|
+
>>> result = thread.get()
|
|
206
|
+
|
|
207
|
+
:param async_req bool
|
|
208
|
+
:param object body: (required)
|
|
209
|
+
:param str project_id: (required)
|
|
210
|
+
:param str dataset_id: (required)
|
|
211
|
+
:param str version: (required)
|
|
212
|
+
:return: V1CompleteLitDatasetUploadResponse
|
|
213
|
+
If the method is called asynchronously,
|
|
214
|
+
returns the request thread.
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version'] # noqa: E501
|
|
218
|
+
all_params.append('async_req')
|
|
219
|
+
all_params.append('_return_http_data_only')
|
|
220
|
+
all_params.append('_preload_content')
|
|
221
|
+
all_params.append('_request_timeout')
|
|
222
|
+
|
|
223
|
+
params = locals()
|
|
224
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
225
|
+
if key not in all_params:
|
|
226
|
+
raise TypeError(
|
|
227
|
+
"Got an unexpected keyword argument '%s'"
|
|
228
|
+
" to method lit_dataset_service_complete_lit_dataset_upload" % key
|
|
229
|
+
)
|
|
230
|
+
params[key] = val
|
|
231
|
+
del params['kwargs']
|
|
232
|
+
# verify the required parameter 'body' is set
|
|
233
|
+
if ('body' not in params or
|
|
234
|
+
params['body'] is None):
|
|
235
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_complete_lit_dataset_upload`") # noqa: E501
|
|
236
|
+
# verify the required parameter 'project_id' is set
|
|
237
|
+
if ('project_id' not in params or
|
|
238
|
+
params['project_id'] is None):
|
|
239
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_complete_lit_dataset_upload`") # noqa: E501
|
|
240
|
+
# verify the required parameter 'dataset_id' is set
|
|
241
|
+
if ('dataset_id' not in params or
|
|
242
|
+
params['dataset_id'] is None):
|
|
243
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_complete_lit_dataset_upload`") # noqa: E501
|
|
244
|
+
# verify the required parameter 'version' is set
|
|
245
|
+
if ('version' not in params or
|
|
246
|
+
params['version'] is None):
|
|
247
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_complete_lit_dataset_upload`") # noqa: E501
|
|
248
|
+
|
|
249
|
+
collection_formats = {}
|
|
250
|
+
|
|
251
|
+
path_params = {}
|
|
252
|
+
if 'project_id' in params:
|
|
253
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
254
|
+
if 'dataset_id' in params:
|
|
255
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
256
|
+
if 'version' in params:
|
|
257
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
258
|
+
|
|
259
|
+
query_params = []
|
|
260
|
+
|
|
261
|
+
header_params = {}
|
|
262
|
+
|
|
263
|
+
form_params = []
|
|
264
|
+
local_var_files = {}
|
|
265
|
+
|
|
266
|
+
body_params = None
|
|
267
|
+
if 'body' in params:
|
|
268
|
+
body_params = params['body']
|
|
269
|
+
# HTTP header `Accept`
|
|
270
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
271
|
+
['application/json']) # noqa: E501
|
|
272
|
+
|
|
273
|
+
# HTTP header `Content-Type`
|
|
274
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
275
|
+
['application/json']) # noqa: E501
|
|
276
|
+
|
|
277
|
+
# Authentication setting
|
|
278
|
+
auth_settings = [] # noqa: E501
|
|
279
|
+
|
|
280
|
+
return self.api_client.call_api(
|
|
281
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/complete', 'POST',
|
|
282
|
+
path_params,
|
|
283
|
+
query_params,
|
|
284
|
+
header_params,
|
|
285
|
+
body=body_params,
|
|
286
|
+
post_params=form_params,
|
|
287
|
+
files=local_var_files,
|
|
288
|
+
response_type='V1CompleteLitDatasetUploadResponse', # noqa: E501
|
|
289
|
+
auth_settings=auth_settings,
|
|
290
|
+
async_req=params.get('async_req'),
|
|
291
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
292
|
+
_preload_content=params.get('_preload_content', True),
|
|
293
|
+
_request_timeout=params.get('_request_timeout'),
|
|
294
|
+
collection_formats=collection_formats)
|
|
295
|
+
|
|
296
|
+
def lit_dataset_service_create_lit_dataset(self, body: 'ProjectIdLitdatasetsBody', project_id: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
297
|
+
"""CreateLitDataset creates a new dataset. # noqa: E501
|
|
298
|
+
|
|
299
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
300
|
+
asynchronous HTTP request, please pass async_req=True
|
|
301
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset(body, project_id, async_req=True)
|
|
302
|
+
>>> result = thread.get()
|
|
303
|
+
|
|
304
|
+
:param async_req bool
|
|
305
|
+
:param ProjectIdLitdatasetsBody body: (required)
|
|
306
|
+
:param str project_id: (required)
|
|
307
|
+
:return: V1LitDataset
|
|
308
|
+
If the method is called asynchronously,
|
|
309
|
+
returns the request thread.
|
|
310
|
+
"""
|
|
311
|
+
kwargs['_return_http_data_only'] = True
|
|
312
|
+
if kwargs.get('async_req'):
|
|
313
|
+
return self.lit_dataset_service_create_lit_dataset_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
314
|
+
else:
|
|
315
|
+
(data) = self.lit_dataset_service_create_lit_dataset_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
316
|
+
return data
|
|
317
|
+
|
|
318
|
+
def lit_dataset_service_create_lit_dataset_with_http_info(self, body: 'ProjectIdLitdatasetsBody', project_id: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
319
|
+
"""CreateLitDataset creates a new dataset. # noqa: E501
|
|
320
|
+
|
|
321
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
322
|
+
asynchronous HTTP request, please pass async_req=True
|
|
323
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset_with_http_info(body, project_id, async_req=True)
|
|
324
|
+
>>> result = thread.get()
|
|
325
|
+
|
|
326
|
+
:param async_req bool
|
|
327
|
+
:param ProjectIdLitdatasetsBody body: (required)
|
|
328
|
+
:param str project_id: (required)
|
|
329
|
+
:return: V1LitDataset
|
|
330
|
+
If the method is called asynchronously,
|
|
331
|
+
returns the request thread.
|
|
332
|
+
"""
|
|
333
|
+
|
|
334
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
335
|
+
all_params.append('async_req')
|
|
336
|
+
all_params.append('_return_http_data_only')
|
|
337
|
+
all_params.append('_preload_content')
|
|
338
|
+
all_params.append('_request_timeout')
|
|
339
|
+
|
|
340
|
+
params = locals()
|
|
341
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
342
|
+
if key not in all_params:
|
|
343
|
+
raise TypeError(
|
|
344
|
+
"Got an unexpected keyword argument '%s'"
|
|
345
|
+
" to method lit_dataset_service_create_lit_dataset" % key
|
|
346
|
+
)
|
|
347
|
+
params[key] = val
|
|
348
|
+
del params['kwargs']
|
|
349
|
+
# verify the required parameter 'body' is set
|
|
350
|
+
if ('body' not in params or
|
|
351
|
+
params['body'] is None):
|
|
352
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_create_lit_dataset`") # noqa: E501
|
|
353
|
+
# verify the required parameter 'project_id' is set
|
|
354
|
+
if ('project_id' not in params or
|
|
355
|
+
params['project_id'] is None):
|
|
356
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_create_lit_dataset`") # noqa: E501
|
|
357
|
+
|
|
358
|
+
collection_formats = {}
|
|
359
|
+
|
|
360
|
+
path_params = {}
|
|
361
|
+
if 'project_id' in params:
|
|
362
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
363
|
+
|
|
364
|
+
query_params = []
|
|
365
|
+
|
|
366
|
+
header_params = {}
|
|
367
|
+
|
|
368
|
+
form_params = []
|
|
369
|
+
local_var_files = {}
|
|
370
|
+
|
|
371
|
+
body_params = None
|
|
372
|
+
if 'body' in params:
|
|
373
|
+
body_params = params['body']
|
|
374
|
+
# HTTP header `Accept`
|
|
375
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
376
|
+
['application/json']) # noqa: E501
|
|
377
|
+
|
|
378
|
+
# HTTP header `Content-Type`
|
|
379
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
380
|
+
['application/json']) # noqa: E501
|
|
381
|
+
|
|
382
|
+
# Authentication setting
|
|
383
|
+
auth_settings = [] # noqa: E501
|
|
384
|
+
|
|
385
|
+
return self.api_client.call_api(
|
|
386
|
+
'/v1/projects/{projectId}/lit-datasets', 'POST',
|
|
387
|
+
path_params,
|
|
388
|
+
query_params,
|
|
389
|
+
header_params,
|
|
390
|
+
body=body_params,
|
|
391
|
+
post_params=form_params,
|
|
392
|
+
files=local_var_files,
|
|
393
|
+
response_type='V1LitDataset', # noqa: E501
|
|
394
|
+
auth_settings=auth_settings,
|
|
395
|
+
async_req=params.get('async_req'),
|
|
396
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
397
|
+
_preload_content=params.get('_preload_content', True),
|
|
398
|
+
_request_timeout=params.get('_request_timeout'),
|
|
399
|
+
collection_formats=collection_formats)
|
|
400
|
+
|
|
401
|
+
def lit_dataset_service_create_lit_dataset_multi_part_upload(self, body: 'VersionUploadsBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1CreateLitDatasetMultiPartUploadResponse': # noqa: E501
|
|
402
|
+
"""CreateMultiPartUpload initiates the multi-part upload of a file. Multiple requests can be sent to upload different files. # noqa: E501
|
|
403
|
+
|
|
404
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
405
|
+
asynchronous HTTP request, please pass async_req=True
|
|
406
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset_multi_part_upload(body, project_id, dataset_id, version, async_req=True)
|
|
407
|
+
>>> result = thread.get()
|
|
408
|
+
|
|
409
|
+
:param async_req bool
|
|
410
|
+
:param VersionUploadsBody body: (required)
|
|
411
|
+
:param str project_id: (required)
|
|
412
|
+
:param str dataset_id: (required)
|
|
413
|
+
:param str version: (required)
|
|
414
|
+
:return: V1CreateLitDatasetMultiPartUploadResponse
|
|
415
|
+
If the method is called asynchronously,
|
|
416
|
+
returns the request thread.
|
|
417
|
+
"""
|
|
418
|
+
kwargs['_return_http_data_only'] = True
|
|
419
|
+
if kwargs.get('async_req'):
|
|
420
|
+
return self.lit_dataset_service_create_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
421
|
+
else:
|
|
422
|
+
(data) = self.lit_dataset_service_create_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
423
|
+
return data
|
|
424
|
+
|
|
425
|
+
def lit_dataset_service_create_lit_dataset_multi_part_upload_with_http_info(self, body: 'VersionUploadsBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1CreateLitDatasetMultiPartUploadResponse': # noqa: E501
|
|
426
|
+
"""CreateMultiPartUpload initiates the multi-part upload of a file. Multiple requests can be sent to upload different files. # noqa: E501
|
|
427
|
+
|
|
428
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
429
|
+
asynchronous HTTP request, please pass async_req=True
|
|
430
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset_multi_part_upload_with_http_info(body, project_id, dataset_id, version, async_req=True)
|
|
431
|
+
>>> result = thread.get()
|
|
432
|
+
|
|
433
|
+
:param async_req bool
|
|
434
|
+
:param VersionUploadsBody body: (required)
|
|
435
|
+
:param str project_id: (required)
|
|
436
|
+
:param str dataset_id: (required)
|
|
437
|
+
:param str version: (required)
|
|
438
|
+
:return: V1CreateLitDatasetMultiPartUploadResponse
|
|
439
|
+
If the method is called asynchronously,
|
|
440
|
+
returns the request thread.
|
|
441
|
+
"""
|
|
442
|
+
|
|
443
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version'] # noqa: E501
|
|
444
|
+
all_params.append('async_req')
|
|
445
|
+
all_params.append('_return_http_data_only')
|
|
446
|
+
all_params.append('_preload_content')
|
|
447
|
+
all_params.append('_request_timeout')
|
|
448
|
+
|
|
449
|
+
params = locals()
|
|
450
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
451
|
+
if key not in all_params:
|
|
452
|
+
raise TypeError(
|
|
453
|
+
"Got an unexpected keyword argument '%s'"
|
|
454
|
+
" to method lit_dataset_service_create_lit_dataset_multi_part_upload" % key
|
|
455
|
+
)
|
|
456
|
+
params[key] = val
|
|
457
|
+
del params['kwargs']
|
|
458
|
+
# verify the required parameter 'body' is set
|
|
459
|
+
if ('body' not in params or
|
|
460
|
+
params['body'] is None):
|
|
461
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_create_lit_dataset_multi_part_upload`") # noqa: E501
|
|
462
|
+
# verify the required parameter 'project_id' is set
|
|
463
|
+
if ('project_id' not in params or
|
|
464
|
+
params['project_id'] is None):
|
|
465
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_create_lit_dataset_multi_part_upload`") # noqa: E501
|
|
466
|
+
# verify the required parameter 'dataset_id' is set
|
|
467
|
+
if ('dataset_id' not in params or
|
|
468
|
+
params['dataset_id'] is None):
|
|
469
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_create_lit_dataset_multi_part_upload`") # noqa: E501
|
|
470
|
+
# verify the required parameter 'version' is set
|
|
471
|
+
if ('version' not in params or
|
|
472
|
+
params['version'] is None):
|
|
473
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_create_lit_dataset_multi_part_upload`") # noqa: E501
|
|
474
|
+
|
|
475
|
+
collection_formats = {}
|
|
476
|
+
|
|
477
|
+
path_params = {}
|
|
478
|
+
if 'project_id' in params:
|
|
479
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
480
|
+
if 'dataset_id' in params:
|
|
481
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
482
|
+
if 'version' in params:
|
|
483
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
484
|
+
|
|
485
|
+
query_params = []
|
|
486
|
+
|
|
487
|
+
header_params = {}
|
|
488
|
+
|
|
489
|
+
form_params = []
|
|
490
|
+
local_var_files = {}
|
|
491
|
+
|
|
492
|
+
body_params = None
|
|
493
|
+
if 'body' in params:
|
|
494
|
+
body_params = params['body']
|
|
495
|
+
# HTTP header `Accept`
|
|
496
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
497
|
+
['application/json']) # noqa: E501
|
|
498
|
+
|
|
499
|
+
# HTTP header `Content-Type`
|
|
500
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
501
|
+
['application/json']) # noqa: E501
|
|
502
|
+
|
|
503
|
+
# Authentication setting
|
|
504
|
+
auth_settings = [] # noqa: E501
|
|
505
|
+
|
|
506
|
+
return self.api_client.call_api(
|
|
507
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/uploads', 'POST',
|
|
508
|
+
path_params,
|
|
509
|
+
query_params,
|
|
510
|
+
header_params,
|
|
511
|
+
body=body_params,
|
|
512
|
+
post_params=form_params,
|
|
513
|
+
files=local_var_files,
|
|
514
|
+
response_type='V1CreateLitDatasetMultiPartUploadResponse', # noqa: E501
|
|
515
|
+
auth_settings=auth_settings,
|
|
516
|
+
async_req=params.get('async_req'),
|
|
517
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
518
|
+
_preload_content=params.get('_preload_content', True),
|
|
519
|
+
_request_timeout=params.get('_request_timeout'),
|
|
520
|
+
collection_formats=collection_formats)
|
|
521
|
+
|
|
522
|
+
def lit_dataset_service_create_lit_dataset_version(self, body: 'DatasetIdVersionsBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
523
|
+
"""CreateLitDatasetVersion creates a new version of a dataset and marks the upload as incomplete. Files are expected to be uploaded using the multi-part upload APIs below, followed by a completion request after which the dataset will be fully visible (can list, delete etc.) # noqa: E501
|
|
524
|
+
|
|
525
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
526
|
+
asynchronous HTTP request, please pass async_req=True
|
|
527
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset_version(body, project_id, dataset_id, async_req=True)
|
|
528
|
+
>>> result = thread.get()
|
|
529
|
+
|
|
530
|
+
:param async_req bool
|
|
531
|
+
:param DatasetIdVersionsBody body: (required)
|
|
532
|
+
:param str project_id: (required)
|
|
533
|
+
:param str dataset_id: (required)
|
|
534
|
+
:return: V1LitDatasetVersionArchive
|
|
535
|
+
If the method is called asynchronously,
|
|
536
|
+
returns the request thread.
|
|
537
|
+
"""
|
|
538
|
+
kwargs['_return_http_data_only'] = True
|
|
539
|
+
if kwargs.get('async_req'):
|
|
540
|
+
return self.lit_dataset_service_create_lit_dataset_version_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
541
|
+
else:
|
|
542
|
+
(data) = self.lit_dataset_service_create_lit_dataset_version_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
543
|
+
return data
|
|
544
|
+
|
|
545
|
+
def lit_dataset_service_create_lit_dataset_version_with_http_info(self, body: 'DatasetIdVersionsBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
546
|
+
"""CreateLitDatasetVersion creates a new version of a dataset and marks the upload as incomplete. Files are expected to be uploaded using the multi-part upload APIs below, followed by a completion request after which the dataset will be fully visible (can list, delete etc.) # noqa: E501
|
|
547
|
+
|
|
548
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
549
|
+
asynchronous HTTP request, please pass async_req=True
|
|
550
|
+
>>> thread = api.lit_dataset_service_create_lit_dataset_version_with_http_info(body, project_id, dataset_id, async_req=True)
|
|
551
|
+
>>> result = thread.get()
|
|
552
|
+
|
|
553
|
+
:param async_req bool
|
|
554
|
+
:param DatasetIdVersionsBody body: (required)
|
|
555
|
+
:param str project_id: (required)
|
|
556
|
+
:param str dataset_id: (required)
|
|
557
|
+
:return: V1LitDatasetVersionArchive
|
|
558
|
+
If the method is called asynchronously,
|
|
559
|
+
returns the request thread.
|
|
560
|
+
"""
|
|
561
|
+
|
|
562
|
+
all_params = ['body', 'project_id', 'dataset_id'] # noqa: E501
|
|
563
|
+
all_params.append('async_req')
|
|
564
|
+
all_params.append('_return_http_data_only')
|
|
565
|
+
all_params.append('_preload_content')
|
|
566
|
+
all_params.append('_request_timeout')
|
|
567
|
+
|
|
568
|
+
params = locals()
|
|
569
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
570
|
+
if key not in all_params:
|
|
571
|
+
raise TypeError(
|
|
572
|
+
"Got an unexpected keyword argument '%s'"
|
|
573
|
+
" to method lit_dataset_service_create_lit_dataset_version" % key
|
|
574
|
+
)
|
|
575
|
+
params[key] = val
|
|
576
|
+
del params['kwargs']
|
|
577
|
+
# verify the required parameter 'body' is set
|
|
578
|
+
if ('body' not in params or
|
|
579
|
+
params['body'] is None):
|
|
580
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_create_lit_dataset_version`") # noqa: E501
|
|
581
|
+
# verify the required parameter 'project_id' is set
|
|
582
|
+
if ('project_id' not in params or
|
|
583
|
+
params['project_id'] is None):
|
|
584
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_create_lit_dataset_version`") # noqa: E501
|
|
585
|
+
# verify the required parameter 'dataset_id' is set
|
|
586
|
+
if ('dataset_id' not in params or
|
|
587
|
+
params['dataset_id'] is None):
|
|
588
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_create_lit_dataset_version`") # noqa: E501
|
|
589
|
+
|
|
590
|
+
collection_formats = {}
|
|
591
|
+
|
|
592
|
+
path_params = {}
|
|
593
|
+
if 'project_id' in params:
|
|
594
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
595
|
+
if 'dataset_id' in params:
|
|
596
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
597
|
+
|
|
598
|
+
query_params = []
|
|
599
|
+
|
|
600
|
+
header_params = {}
|
|
601
|
+
|
|
602
|
+
form_params = []
|
|
603
|
+
local_var_files = {}
|
|
604
|
+
|
|
605
|
+
body_params = None
|
|
606
|
+
if 'body' in params:
|
|
607
|
+
body_params = params['body']
|
|
608
|
+
# HTTP header `Accept`
|
|
609
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
610
|
+
['application/json']) # noqa: E501
|
|
611
|
+
|
|
612
|
+
# HTTP header `Content-Type`
|
|
613
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
614
|
+
['application/json']) # noqa: E501
|
|
615
|
+
|
|
616
|
+
# Authentication setting
|
|
617
|
+
auth_settings = [] # noqa: E501
|
|
618
|
+
|
|
619
|
+
return self.api_client.call_api(
|
|
620
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions', 'POST',
|
|
621
|
+
path_params,
|
|
622
|
+
query_params,
|
|
623
|
+
header_params,
|
|
624
|
+
body=body_params,
|
|
625
|
+
post_params=form_params,
|
|
626
|
+
files=local_var_files,
|
|
627
|
+
response_type='V1LitDatasetVersionArchive', # noqa: E501
|
|
628
|
+
auth_settings=auth_settings,
|
|
629
|
+
async_req=params.get('async_req'),
|
|
630
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
631
|
+
_preload_content=params.get('_preload_content', True),
|
|
632
|
+
_request_timeout=params.get('_request_timeout'),
|
|
633
|
+
collection_formats=collection_formats)
|
|
634
|
+
|
|
635
|
+
def lit_dataset_service_delete_lit_dataset(self, project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1DeleteLitDatasetResponse': # noqa: E501
|
|
636
|
+
"""DeleteLitDataset is used to delete the dataset and all uploaded archives # noqa: E501
|
|
637
|
+
|
|
638
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
639
|
+
asynchronous HTTP request, please pass async_req=True
|
|
640
|
+
>>> thread = api.lit_dataset_service_delete_lit_dataset(project_id, dataset_id, async_req=True)
|
|
641
|
+
>>> result = thread.get()
|
|
642
|
+
|
|
643
|
+
:param async_req bool
|
|
644
|
+
:param str project_id: (required)
|
|
645
|
+
:param str dataset_id: (required)
|
|
646
|
+
:return: V1DeleteLitDatasetResponse
|
|
647
|
+
If the method is called asynchronously,
|
|
648
|
+
returns the request thread.
|
|
649
|
+
"""
|
|
650
|
+
kwargs['_return_http_data_only'] = True
|
|
651
|
+
if kwargs.get('async_req'):
|
|
652
|
+
return self.lit_dataset_service_delete_lit_dataset_with_http_info(project_id, dataset_id, **kwargs) # noqa: E501
|
|
653
|
+
else:
|
|
654
|
+
(data) = self.lit_dataset_service_delete_lit_dataset_with_http_info(project_id, dataset_id, **kwargs) # noqa: E501
|
|
655
|
+
return data
|
|
656
|
+
|
|
657
|
+
def lit_dataset_service_delete_lit_dataset_with_http_info(self, project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1DeleteLitDatasetResponse': # noqa: E501
|
|
658
|
+
"""DeleteLitDataset is used to delete the dataset and all uploaded archives # noqa: E501
|
|
659
|
+
|
|
660
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
661
|
+
asynchronous HTTP request, please pass async_req=True
|
|
662
|
+
>>> thread = api.lit_dataset_service_delete_lit_dataset_with_http_info(project_id, dataset_id, async_req=True)
|
|
663
|
+
>>> result = thread.get()
|
|
664
|
+
|
|
665
|
+
:param async_req bool
|
|
666
|
+
:param str project_id: (required)
|
|
667
|
+
:param str dataset_id: (required)
|
|
668
|
+
:return: V1DeleteLitDatasetResponse
|
|
669
|
+
If the method is called asynchronously,
|
|
670
|
+
returns the request thread.
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
all_params = ['project_id', 'dataset_id'] # noqa: E501
|
|
674
|
+
all_params.append('async_req')
|
|
675
|
+
all_params.append('_return_http_data_only')
|
|
676
|
+
all_params.append('_preload_content')
|
|
677
|
+
all_params.append('_request_timeout')
|
|
678
|
+
|
|
679
|
+
params = locals()
|
|
680
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
681
|
+
if key not in all_params:
|
|
682
|
+
raise TypeError(
|
|
683
|
+
"Got an unexpected keyword argument '%s'"
|
|
684
|
+
" to method lit_dataset_service_delete_lit_dataset" % key
|
|
685
|
+
)
|
|
686
|
+
params[key] = val
|
|
687
|
+
del params['kwargs']
|
|
688
|
+
# verify the required parameter 'project_id' is set
|
|
689
|
+
if ('project_id' not in params or
|
|
690
|
+
params['project_id'] is None):
|
|
691
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_delete_lit_dataset`") # noqa: E501
|
|
692
|
+
# verify the required parameter 'dataset_id' is set
|
|
693
|
+
if ('dataset_id' not in params or
|
|
694
|
+
params['dataset_id'] is None):
|
|
695
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_delete_lit_dataset`") # noqa: E501
|
|
696
|
+
|
|
697
|
+
collection_formats = {}
|
|
698
|
+
|
|
699
|
+
path_params = {}
|
|
700
|
+
if 'project_id' in params:
|
|
701
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
702
|
+
if 'dataset_id' in params:
|
|
703
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
704
|
+
|
|
705
|
+
query_params = []
|
|
706
|
+
|
|
707
|
+
header_params = {}
|
|
708
|
+
|
|
709
|
+
form_params = []
|
|
710
|
+
local_var_files = {}
|
|
711
|
+
|
|
712
|
+
body_params = None
|
|
713
|
+
# HTTP header `Accept`
|
|
714
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
715
|
+
['application/json']) # noqa: E501
|
|
716
|
+
|
|
717
|
+
# Authentication setting
|
|
718
|
+
auth_settings = [] # noqa: E501
|
|
719
|
+
|
|
720
|
+
return self.api_client.call_api(
|
|
721
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}', 'DELETE',
|
|
722
|
+
path_params,
|
|
723
|
+
query_params,
|
|
724
|
+
header_params,
|
|
725
|
+
body=body_params,
|
|
726
|
+
post_params=form_params,
|
|
727
|
+
files=local_var_files,
|
|
728
|
+
response_type='V1DeleteLitDatasetResponse', # noqa: E501
|
|
729
|
+
auth_settings=auth_settings,
|
|
730
|
+
async_req=params.get('async_req'),
|
|
731
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
732
|
+
_preload_content=params.get('_preload_content', True),
|
|
733
|
+
_request_timeout=params.get('_request_timeout'),
|
|
734
|
+
collection_formats=collection_formats)
|
|
735
|
+
|
|
736
|
+
def lit_dataset_service_delete_lit_dataset_version(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1DeleteLitDatasetVersionResponse': # noqa: E501
|
|
737
|
+
"""DeleteLitDatasetVersion is used to delete a specific dataset version # noqa: E501
|
|
738
|
+
|
|
739
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
740
|
+
asynchronous HTTP request, please pass async_req=True
|
|
741
|
+
>>> thread = api.lit_dataset_service_delete_lit_dataset_version(project_id, dataset_id, version, async_req=True)
|
|
742
|
+
>>> result = thread.get()
|
|
743
|
+
|
|
744
|
+
:param async_req bool
|
|
745
|
+
:param str project_id: (required)
|
|
746
|
+
:param str dataset_id: (required)
|
|
747
|
+
:param str version: (required)
|
|
748
|
+
:return: V1DeleteLitDatasetVersionResponse
|
|
749
|
+
If the method is called asynchronously,
|
|
750
|
+
returns the request thread.
|
|
751
|
+
"""
|
|
752
|
+
kwargs['_return_http_data_only'] = True
|
|
753
|
+
if kwargs.get('async_req'):
|
|
754
|
+
return self.lit_dataset_service_delete_lit_dataset_version_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
755
|
+
else:
|
|
756
|
+
(data) = self.lit_dataset_service_delete_lit_dataset_version_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
757
|
+
return data
|
|
758
|
+
|
|
759
|
+
def lit_dataset_service_delete_lit_dataset_version_with_http_info(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1DeleteLitDatasetVersionResponse': # noqa: E501
|
|
760
|
+
"""DeleteLitDatasetVersion is used to delete a specific dataset version # noqa: E501
|
|
761
|
+
|
|
762
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
763
|
+
asynchronous HTTP request, please pass async_req=True
|
|
764
|
+
>>> thread = api.lit_dataset_service_delete_lit_dataset_version_with_http_info(project_id, dataset_id, version, async_req=True)
|
|
765
|
+
>>> result = thread.get()
|
|
766
|
+
|
|
767
|
+
:param async_req bool
|
|
768
|
+
:param str project_id: (required)
|
|
769
|
+
:param str dataset_id: (required)
|
|
770
|
+
:param str version: (required)
|
|
771
|
+
:return: V1DeleteLitDatasetVersionResponse
|
|
772
|
+
If the method is called asynchronously,
|
|
773
|
+
returns the request thread.
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
all_params = ['project_id', 'dataset_id', 'version'] # noqa: E501
|
|
777
|
+
all_params.append('async_req')
|
|
778
|
+
all_params.append('_return_http_data_only')
|
|
779
|
+
all_params.append('_preload_content')
|
|
780
|
+
all_params.append('_request_timeout')
|
|
781
|
+
|
|
782
|
+
params = locals()
|
|
783
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
784
|
+
if key not in all_params:
|
|
785
|
+
raise TypeError(
|
|
786
|
+
"Got an unexpected keyword argument '%s'"
|
|
787
|
+
" to method lit_dataset_service_delete_lit_dataset_version" % key
|
|
788
|
+
)
|
|
789
|
+
params[key] = val
|
|
790
|
+
del params['kwargs']
|
|
791
|
+
# verify the required parameter 'project_id' is set
|
|
792
|
+
if ('project_id' not in params or
|
|
793
|
+
params['project_id'] is None):
|
|
794
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_delete_lit_dataset_version`") # noqa: E501
|
|
795
|
+
# verify the required parameter 'dataset_id' is set
|
|
796
|
+
if ('dataset_id' not in params or
|
|
797
|
+
params['dataset_id'] is None):
|
|
798
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_delete_lit_dataset_version`") # noqa: E501
|
|
799
|
+
# verify the required parameter 'version' is set
|
|
800
|
+
if ('version' not in params or
|
|
801
|
+
params['version'] is None):
|
|
802
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_delete_lit_dataset_version`") # noqa: E501
|
|
803
|
+
|
|
804
|
+
collection_formats = {}
|
|
805
|
+
|
|
806
|
+
path_params = {}
|
|
807
|
+
if 'project_id' in params:
|
|
808
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
809
|
+
if 'dataset_id' in params:
|
|
810
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
811
|
+
if 'version' in params:
|
|
812
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
813
|
+
|
|
814
|
+
query_params = []
|
|
815
|
+
|
|
816
|
+
header_params = {}
|
|
817
|
+
|
|
818
|
+
form_params = []
|
|
819
|
+
local_var_files = {}
|
|
820
|
+
|
|
821
|
+
body_params = None
|
|
822
|
+
# HTTP header `Accept`
|
|
823
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
824
|
+
['application/json']) # noqa: E501
|
|
825
|
+
|
|
826
|
+
# Authentication setting
|
|
827
|
+
auth_settings = [] # noqa: E501
|
|
828
|
+
|
|
829
|
+
return self.api_client.call_api(
|
|
830
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}', 'DELETE',
|
|
831
|
+
path_params,
|
|
832
|
+
query_params,
|
|
833
|
+
header_params,
|
|
834
|
+
body=body_params,
|
|
835
|
+
post_params=form_params,
|
|
836
|
+
files=local_var_files,
|
|
837
|
+
response_type='V1DeleteLitDatasetVersionResponse', # noqa: E501
|
|
838
|
+
auth_settings=auth_settings,
|
|
839
|
+
async_req=params.get('async_req'),
|
|
840
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
841
|
+
_preload_content=params.get('_preload_content', True),
|
|
842
|
+
_request_timeout=params.get('_request_timeout'),
|
|
843
|
+
collection_formats=collection_formats)
|
|
844
|
+
|
|
845
|
+
def lit_dataset_service_get_lit_dataset_by_name(self, project_owner_name: 'str', project_name: 'str', dataset_name: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
846
|
+
"""lit_dataset_service_get_lit_dataset_by_name # noqa: E501
|
|
847
|
+
|
|
848
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
849
|
+
asynchronous HTTP request, please pass async_req=True
|
|
850
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_by_name(project_owner_name, project_name, dataset_name, async_req=True)
|
|
851
|
+
>>> result = thread.get()
|
|
852
|
+
|
|
853
|
+
:param async_req bool
|
|
854
|
+
:param str project_owner_name: (required)
|
|
855
|
+
:param str project_name: (required)
|
|
856
|
+
:param str dataset_name: (required)
|
|
857
|
+
:return: V1LitDataset
|
|
858
|
+
If the method is called asynchronously,
|
|
859
|
+
returns the request thread.
|
|
860
|
+
"""
|
|
861
|
+
kwargs['_return_http_data_only'] = True
|
|
862
|
+
if kwargs.get('async_req'):
|
|
863
|
+
return self.lit_dataset_service_get_lit_dataset_by_name_with_http_info(project_owner_name, project_name, dataset_name, **kwargs) # noqa: E501
|
|
864
|
+
else:
|
|
865
|
+
(data) = self.lit_dataset_service_get_lit_dataset_by_name_with_http_info(project_owner_name, project_name, dataset_name, **kwargs) # noqa: E501
|
|
866
|
+
return data
|
|
867
|
+
|
|
868
|
+
def lit_dataset_service_get_lit_dataset_by_name_with_http_info(self, project_owner_name: 'str', project_name: 'str', dataset_name: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
869
|
+
"""lit_dataset_service_get_lit_dataset_by_name # noqa: E501
|
|
870
|
+
|
|
871
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
872
|
+
asynchronous HTTP request, please pass async_req=True
|
|
873
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_by_name_with_http_info(project_owner_name, project_name, dataset_name, async_req=True)
|
|
874
|
+
>>> result = thread.get()
|
|
875
|
+
|
|
876
|
+
:param async_req bool
|
|
877
|
+
:param str project_owner_name: (required)
|
|
878
|
+
:param str project_name: (required)
|
|
879
|
+
:param str dataset_name: (required)
|
|
880
|
+
:return: V1LitDataset
|
|
881
|
+
If the method is called asynchronously,
|
|
882
|
+
returns the request thread.
|
|
883
|
+
"""
|
|
884
|
+
|
|
885
|
+
all_params = ['project_owner_name', 'project_name', 'dataset_name'] # noqa: E501
|
|
886
|
+
all_params.append('async_req')
|
|
887
|
+
all_params.append('_return_http_data_only')
|
|
888
|
+
all_params.append('_preload_content')
|
|
889
|
+
all_params.append('_request_timeout')
|
|
890
|
+
|
|
891
|
+
params = locals()
|
|
892
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
893
|
+
if key not in all_params:
|
|
894
|
+
raise TypeError(
|
|
895
|
+
"Got an unexpected keyword argument '%s'"
|
|
896
|
+
" to method lit_dataset_service_get_lit_dataset_by_name" % key
|
|
897
|
+
)
|
|
898
|
+
params[key] = val
|
|
899
|
+
del params['kwargs']
|
|
900
|
+
# verify the required parameter 'project_owner_name' is set
|
|
901
|
+
if ('project_owner_name' not in params or
|
|
902
|
+
params['project_owner_name'] is None):
|
|
903
|
+
raise ValueError("Missing the required parameter `project_owner_name` when calling `lit_dataset_service_get_lit_dataset_by_name`") # noqa: E501
|
|
904
|
+
# verify the required parameter 'project_name' is set
|
|
905
|
+
if ('project_name' not in params or
|
|
906
|
+
params['project_name'] is None):
|
|
907
|
+
raise ValueError("Missing the required parameter `project_name` when calling `lit_dataset_service_get_lit_dataset_by_name`") # noqa: E501
|
|
908
|
+
# verify the required parameter 'dataset_name' is set
|
|
909
|
+
if ('dataset_name' not in params or
|
|
910
|
+
params['dataset_name'] is None):
|
|
911
|
+
raise ValueError("Missing the required parameter `dataset_name` when calling `lit_dataset_service_get_lit_dataset_by_name`") # noqa: E501
|
|
912
|
+
|
|
913
|
+
collection_formats = {}
|
|
914
|
+
|
|
915
|
+
path_params = {}
|
|
916
|
+
if 'project_owner_name' in params:
|
|
917
|
+
path_params['projectOwnerName'] = params['project_owner_name'] # noqa: E501
|
|
918
|
+
if 'project_name' in params:
|
|
919
|
+
path_params['projectName'] = params['project_name'] # noqa: E501
|
|
920
|
+
if 'dataset_name' in params:
|
|
921
|
+
path_params['datasetName'] = params['dataset_name'] # noqa: E501
|
|
922
|
+
|
|
923
|
+
query_params = []
|
|
924
|
+
|
|
925
|
+
header_params = {}
|
|
926
|
+
|
|
927
|
+
form_params = []
|
|
928
|
+
local_var_files = {}
|
|
929
|
+
|
|
930
|
+
body_params = None
|
|
931
|
+
# HTTP header `Accept`
|
|
932
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
933
|
+
['application/json']) # noqa: E501
|
|
934
|
+
|
|
935
|
+
# Authentication setting
|
|
936
|
+
auth_settings = [] # noqa: E501
|
|
937
|
+
|
|
938
|
+
return self.api_client.call_api(
|
|
939
|
+
'/v1/projects/{projectOwnerName}/{projectName}/lit-datasets/{datasetName}', 'GET',
|
|
940
|
+
path_params,
|
|
941
|
+
query_params,
|
|
942
|
+
header_params,
|
|
943
|
+
body=body_params,
|
|
944
|
+
post_params=form_params,
|
|
945
|
+
files=local_var_files,
|
|
946
|
+
response_type='V1LitDataset', # noqa: E501
|
|
947
|
+
auth_settings=auth_settings,
|
|
948
|
+
async_req=params.get('async_req'),
|
|
949
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
950
|
+
_preload_content=params.get('_preload_content', True),
|
|
951
|
+
_request_timeout=params.get('_request_timeout'),
|
|
952
|
+
collection_formats=collection_formats)
|
|
953
|
+
|
|
954
|
+
def lit_dataset_service_get_lit_dataset_file_upload_urls(self, body: 'UploadIdPartsBody', project_id: 'str', dataset_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1GetLitDatasetFileUploadUrlsResponse': # noqa: E501
|
|
955
|
+
"""GetLitDatasetFileUploadUrls requests pre-signed URLs for a given number of file parts. # noqa: E501
|
|
956
|
+
|
|
957
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
958
|
+
asynchronous HTTP request, please pass async_req=True
|
|
959
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_file_upload_urls(body, project_id, dataset_id, version, upload_id, async_req=True)
|
|
960
|
+
>>> result = thread.get()
|
|
961
|
+
|
|
962
|
+
:param async_req bool
|
|
963
|
+
:param UploadIdPartsBody body: (required)
|
|
964
|
+
:param str project_id: (required)
|
|
965
|
+
:param str dataset_id: (required)
|
|
966
|
+
:param str version: (required)
|
|
967
|
+
:param str upload_id: (required)
|
|
968
|
+
:return: V1GetLitDatasetFileUploadUrlsResponse
|
|
969
|
+
If the method is called asynchronously,
|
|
970
|
+
returns the request thread.
|
|
971
|
+
"""
|
|
972
|
+
kwargs['_return_http_data_only'] = True
|
|
973
|
+
if kwargs.get('async_req'):
|
|
974
|
+
return self.lit_dataset_service_get_lit_dataset_file_upload_urls_with_http_info(body, project_id, dataset_id, version, upload_id, **kwargs) # noqa: E501
|
|
975
|
+
else:
|
|
976
|
+
(data) = self.lit_dataset_service_get_lit_dataset_file_upload_urls_with_http_info(body, project_id, dataset_id, version, upload_id, **kwargs) # noqa: E501
|
|
977
|
+
return data
|
|
978
|
+
|
|
979
|
+
def lit_dataset_service_get_lit_dataset_file_upload_urls_with_http_info(self, body: 'UploadIdPartsBody', project_id: 'str', dataset_id: 'str', version: 'str', upload_id: 'str', **kwargs) -> 'V1GetLitDatasetFileUploadUrlsResponse': # noqa: E501
|
|
980
|
+
"""GetLitDatasetFileUploadUrls requests pre-signed URLs for a given number of file parts. # noqa: E501
|
|
981
|
+
|
|
982
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
983
|
+
asynchronous HTTP request, please pass async_req=True
|
|
984
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_file_upload_urls_with_http_info(body, project_id, dataset_id, version, upload_id, async_req=True)
|
|
985
|
+
>>> result = thread.get()
|
|
986
|
+
|
|
987
|
+
:param async_req bool
|
|
988
|
+
:param UploadIdPartsBody body: (required)
|
|
989
|
+
:param str project_id: (required)
|
|
990
|
+
:param str dataset_id: (required)
|
|
991
|
+
:param str version: (required)
|
|
992
|
+
:param str upload_id: (required)
|
|
993
|
+
:return: V1GetLitDatasetFileUploadUrlsResponse
|
|
994
|
+
If the method is called asynchronously,
|
|
995
|
+
returns the request thread.
|
|
996
|
+
"""
|
|
997
|
+
|
|
998
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version', 'upload_id'] # noqa: E501
|
|
999
|
+
all_params.append('async_req')
|
|
1000
|
+
all_params.append('_return_http_data_only')
|
|
1001
|
+
all_params.append('_preload_content')
|
|
1002
|
+
all_params.append('_request_timeout')
|
|
1003
|
+
|
|
1004
|
+
params = locals()
|
|
1005
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1006
|
+
if key not in all_params:
|
|
1007
|
+
raise TypeError(
|
|
1008
|
+
"Got an unexpected keyword argument '%s'"
|
|
1009
|
+
" to method lit_dataset_service_get_lit_dataset_file_upload_urls" % key
|
|
1010
|
+
)
|
|
1011
|
+
params[key] = val
|
|
1012
|
+
del params['kwargs']
|
|
1013
|
+
# verify the required parameter 'body' is set
|
|
1014
|
+
if ('body' not in params or
|
|
1015
|
+
params['body'] is None):
|
|
1016
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_get_lit_dataset_file_upload_urls`") # noqa: E501
|
|
1017
|
+
# verify the required parameter 'project_id' is set
|
|
1018
|
+
if ('project_id' not in params or
|
|
1019
|
+
params['project_id'] is None):
|
|
1020
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_get_lit_dataset_file_upload_urls`") # noqa: E501
|
|
1021
|
+
# verify the required parameter 'dataset_id' is set
|
|
1022
|
+
if ('dataset_id' not in params or
|
|
1023
|
+
params['dataset_id'] is None):
|
|
1024
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_get_lit_dataset_file_upload_urls`") # noqa: E501
|
|
1025
|
+
# verify the required parameter 'version' is set
|
|
1026
|
+
if ('version' not in params or
|
|
1027
|
+
params['version'] is None):
|
|
1028
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_get_lit_dataset_file_upload_urls`") # noqa: E501
|
|
1029
|
+
# verify the required parameter 'upload_id' is set
|
|
1030
|
+
if ('upload_id' not in params or
|
|
1031
|
+
params['upload_id'] is None):
|
|
1032
|
+
raise ValueError("Missing the required parameter `upload_id` when calling `lit_dataset_service_get_lit_dataset_file_upload_urls`") # noqa: E501
|
|
1033
|
+
|
|
1034
|
+
collection_formats = {}
|
|
1035
|
+
|
|
1036
|
+
path_params = {}
|
|
1037
|
+
if 'project_id' in params:
|
|
1038
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1039
|
+
if 'dataset_id' in params:
|
|
1040
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1041
|
+
if 'version' in params:
|
|
1042
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1043
|
+
if 'upload_id' in params:
|
|
1044
|
+
path_params['uploadId'] = params['upload_id'] # noqa: E501
|
|
1045
|
+
|
|
1046
|
+
query_params = []
|
|
1047
|
+
|
|
1048
|
+
header_params = {}
|
|
1049
|
+
|
|
1050
|
+
form_params = []
|
|
1051
|
+
local_var_files = {}
|
|
1052
|
+
|
|
1053
|
+
body_params = None
|
|
1054
|
+
if 'body' in params:
|
|
1055
|
+
body_params = params['body']
|
|
1056
|
+
# HTTP header `Accept`
|
|
1057
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1058
|
+
['application/json']) # noqa: E501
|
|
1059
|
+
|
|
1060
|
+
# HTTP header `Content-Type`
|
|
1061
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1062
|
+
['application/json']) # noqa: E501
|
|
1063
|
+
|
|
1064
|
+
# Authentication setting
|
|
1065
|
+
auth_settings = [] # noqa: E501
|
|
1066
|
+
|
|
1067
|
+
return self.api_client.call_api(
|
|
1068
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/uploads/{uploadId}/parts', 'POST',
|
|
1069
|
+
path_params,
|
|
1070
|
+
query_params,
|
|
1071
|
+
header_params,
|
|
1072
|
+
body=body_params,
|
|
1073
|
+
post_params=form_params,
|
|
1074
|
+
files=local_var_files,
|
|
1075
|
+
response_type='V1GetLitDatasetFileUploadUrlsResponse', # noqa: E501
|
|
1076
|
+
auth_settings=auth_settings,
|
|
1077
|
+
async_req=params.get('async_req'),
|
|
1078
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1079
|
+
_preload_content=params.get('_preload_content', True),
|
|
1080
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1081
|
+
collection_formats=collection_formats)
|
|
1082
|
+
|
|
1083
|
+
def lit_dataset_service_get_lit_dataset_files_url(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1GetLitDatasetFilesUrlResponse': # noqa: E501
|
|
1084
|
+
"""GetLitDatasetFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
1085
|
+
|
|
1086
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1087
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1088
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_files_url(project_id, dataset_id, version, async_req=True)
|
|
1089
|
+
>>> result = thread.get()
|
|
1090
|
+
|
|
1091
|
+
:param async_req bool
|
|
1092
|
+
:param str project_id: (required)
|
|
1093
|
+
:param str dataset_id: (required)
|
|
1094
|
+
:param str version: (required)
|
|
1095
|
+
:param str page_size:
|
|
1096
|
+
:param str offset:
|
|
1097
|
+
:return: V1GetLitDatasetFilesUrlResponse
|
|
1098
|
+
If the method is called asynchronously,
|
|
1099
|
+
returns the request thread.
|
|
1100
|
+
"""
|
|
1101
|
+
kwargs['_return_http_data_only'] = True
|
|
1102
|
+
if kwargs.get('async_req'):
|
|
1103
|
+
return self.lit_dataset_service_get_lit_dataset_files_url_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1104
|
+
else:
|
|
1105
|
+
(data) = self.lit_dataset_service_get_lit_dataset_files_url_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1106
|
+
return data
|
|
1107
|
+
|
|
1108
|
+
def lit_dataset_service_get_lit_dataset_files_url_with_http_info(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1GetLitDatasetFilesUrlResponse': # noqa: E501
|
|
1109
|
+
"""GetLitDatasetFileUrl responds with a pre-signed url for a given file # noqa: E501
|
|
1110
|
+
|
|
1111
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1112
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1113
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_files_url_with_http_info(project_id, dataset_id, version, async_req=True)
|
|
1114
|
+
>>> result = thread.get()
|
|
1115
|
+
|
|
1116
|
+
:param async_req bool
|
|
1117
|
+
:param str project_id: (required)
|
|
1118
|
+
:param str dataset_id: (required)
|
|
1119
|
+
:param str version: (required)
|
|
1120
|
+
:param str page_size:
|
|
1121
|
+
:param str offset:
|
|
1122
|
+
:return: V1GetLitDatasetFilesUrlResponse
|
|
1123
|
+
If the method is called asynchronously,
|
|
1124
|
+
returns the request thread.
|
|
1125
|
+
"""
|
|
1126
|
+
|
|
1127
|
+
all_params = ['project_id', 'dataset_id', 'version', 'page_size', 'offset'] # noqa: E501
|
|
1128
|
+
all_params.append('async_req')
|
|
1129
|
+
all_params.append('_return_http_data_only')
|
|
1130
|
+
all_params.append('_preload_content')
|
|
1131
|
+
all_params.append('_request_timeout')
|
|
1132
|
+
|
|
1133
|
+
params = locals()
|
|
1134
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1135
|
+
if key not in all_params:
|
|
1136
|
+
raise TypeError(
|
|
1137
|
+
"Got an unexpected keyword argument '%s'"
|
|
1138
|
+
" to method lit_dataset_service_get_lit_dataset_files_url" % key
|
|
1139
|
+
)
|
|
1140
|
+
params[key] = val
|
|
1141
|
+
del params['kwargs']
|
|
1142
|
+
# verify the required parameter 'project_id' is set
|
|
1143
|
+
if ('project_id' not in params or
|
|
1144
|
+
params['project_id'] is None):
|
|
1145
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_get_lit_dataset_files_url`") # noqa: E501
|
|
1146
|
+
# verify the required parameter 'dataset_id' is set
|
|
1147
|
+
if ('dataset_id' not in params or
|
|
1148
|
+
params['dataset_id'] is None):
|
|
1149
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_get_lit_dataset_files_url`") # noqa: E501
|
|
1150
|
+
# verify the required parameter 'version' is set
|
|
1151
|
+
if ('version' not in params or
|
|
1152
|
+
params['version'] is None):
|
|
1153
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_get_lit_dataset_files_url`") # noqa: E501
|
|
1154
|
+
|
|
1155
|
+
collection_formats = {}
|
|
1156
|
+
|
|
1157
|
+
path_params = {}
|
|
1158
|
+
if 'project_id' in params:
|
|
1159
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1160
|
+
if 'dataset_id' in params:
|
|
1161
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1162
|
+
if 'version' in params:
|
|
1163
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1164
|
+
|
|
1165
|
+
query_params = []
|
|
1166
|
+
if 'page_size' in params:
|
|
1167
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1168
|
+
if 'offset' in params:
|
|
1169
|
+
query_params.append(('offset', params['offset'])) # noqa: E501
|
|
1170
|
+
|
|
1171
|
+
header_params = {}
|
|
1172
|
+
|
|
1173
|
+
form_params = []
|
|
1174
|
+
local_var_files = {}
|
|
1175
|
+
|
|
1176
|
+
body_params = None
|
|
1177
|
+
# HTTP header `Accept`
|
|
1178
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1179
|
+
['application/json']) # noqa: E501
|
|
1180
|
+
|
|
1181
|
+
# Authentication setting
|
|
1182
|
+
auth_settings = [] # noqa: E501
|
|
1183
|
+
|
|
1184
|
+
return self.api_client.call_api(
|
|
1185
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/files', 'GET',
|
|
1186
|
+
path_params,
|
|
1187
|
+
query_params,
|
|
1188
|
+
header_params,
|
|
1189
|
+
body=body_params,
|
|
1190
|
+
post_params=form_params,
|
|
1191
|
+
files=local_var_files,
|
|
1192
|
+
response_type='V1GetLitDatasetFilesUrlResponse', # noqa: E501
|
|
1193
|
+
auth_settings=auth_settings,
|
|
1194
|
+
async_req=params.get('async_req'),
|
|
1195
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1196
|
+
_preload_content=params.get('_preload_content', True),
|
|
1197
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1198
|
+
collection_formats=collection_formats)
|
|
1199
|
+
|
|
1200
|
+
def lit_dataset_service_get_lit_dataset_version(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
1201
|
+
"""lit_dataset_service_get_lit_dataset_version # noqa: E501
|
|
1202
|
+
|
|
1203
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1204
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1205
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_version(project_id, dataset_id, version, async_req=True)
|
|
1206
|
+
>>> result = thread.get()
|
|
1207
|
+
|
|
1208
|
+
:param async_req bool
|
|
1209
|
+
:param str project_id: (required)
|
|
1210
|
+
:param str dataset_id: (required)
|
|
1211
|
+
:param str version: (required)
|
|
1212
|
+
:return: V1LitDatasetVersionArchive
|
|
1213
|
+
If the method is called asynchronously,
|
|
1214
|
+
returns the request thread.
|
|
1215
|
+
"""
|
|
1216
|
+
kwargs['_return_http_data_only'] = True
|
|
1217
|
+
if kwargs.get('async_req'):
|
|
1218
|
+
return self.lit_dataset_service_get_lit_dataset_version_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1219
|
+
else:
|
|
1220
|
+
(data) = self.lit_dataset_service_get_lit_dataset_version_with_http_info(project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1221
|
+
return data
|
|
1222
|
+
|
|
1223
|
+
def lit_dataset_service_get_lit_dataset_version_with_http_info(self, project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
1224
|
+
"""lit_dataset_service_get_lit_dataset_version # noqa: E501
|
|
1225
|
+
|
|
1226
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1227
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1228
|
+
>>> thread = api.lit_dataset_service_get_lit_dataset_version_with_http_info(project_id, dataset_id, version, async_req=True)
|
|
1229
|
+
>>> result = thread.get()
|
|
1230
|
+
|
|
1231
|
+
:param async_req bool
|
|
1232
|
+
:param str project_id: (required)
|
|
1233
|
+
:param str dataset_id: (required)
|
|
1234
|
+
:param str version: (required)
|
|
1235
|
+
:return: V1LitDatasetVersionArchive
|
|
1236
|
+
If the method is called asynchronously,
|
|
1237
|
+
returns the request thread.
|
|
1238
|
+
"""
|
|
1239
|
+
|
|
1240
|
+
all_params = ['project_id', 'dataset_id', 'version'] # noqa: E501
|
|
1241
|
+
all_params.append('async_req')
|
|
1242
|
+
all_params.append('_return_http_data_only')
|
|
1243
|
+
all_params.append('_preload_content')
|
|
1244
|
+
all_params.append('_request_timeout')
|
|
1245
|
+
|
|
1246
|
+
params = locals()
|
|
1247
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1248
|
+
if key not in all_params:
|
|
1249
|
+
raise TypeError(
|
|
1250
|
+
"Got an unexpected keyword argument '%s'"
|
|
1251
|
+
" to method lit_dataset_service_get_lit_dataset_version" % key
|
|
1252
|
+
)
|
|
1253
|
+
params[key] = val
|
|
1254
|
+
del params['kwargs']
|
|
1255
|
+
# verify the required parameter 'project_id' is set
|
|
1256
|
+
if ('project_id' not in params or
|
|
1257
|
+
params['project_id'] is None):
|
|
1258
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_get_lit_dataset_version`") # noqa: E501
|
|
1259
|
+
# verify the required parameter 'dataset_id' is set
|
|
1260
|
+
if ('dataset_id' not in params or
|
|
1261
|
+
params['dataset_id'] is None):
|
|
1262
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_get_lit_dataset_version`") # noqa: E501
|
|
1263
|
+
# verify the required parameter 'version' is set
|
|
1264
|
+
if ('version' not in params or
|
|
1265
|
+
params['version'] is None):
|
|
1266
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_get_lit_dataset_version`") # noqa: E501
|
|
1267
|
+
|
|
1268
|
+
collection_formats = {}
|
|
1269
|
+
|
|
1270
|
+
path_params = {}
|
|
1271
|
+
if 'project_id' in params:
|
|
1272
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1273
|
+
if 'dataset_id' in params:
|
|
1274
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1275
|
+
if 'version' in params:
|
|
1276
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1277
|
+
|
|
1278
|
+
query_params = []
|
|
1279
|
+
|
|
1280
|
+
header_params = {}
|
|
1281
|
+
|
|
1282
|
+
form_params = []
|
|
1283
|
+
local_var_files = {}
|
|
1284
|
+
|
|
1285
|
+
body_params = None
|
|
1286
|
+
# HTTP header `Accept`
|
|
1287
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1288
|
+
['application/json']) # noqa: E501
|
|
1289
|
+
|
|
1290
|
+
# Authentication setting
|
|
1291
|
+
auth_settings = [] # noqa: E501
|
|
1292
|
+
|
|
1293
|
+
return self.api_client.call_api(
|
|
1294
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}', 'GET',
|
|
1295
|
+
path_params,
|
|
1296
|
+
query_params,
|
|
1297
|
+
header_params,
|
|
1298
|
+
body=body_params,
|
|
1299
|
+
post_params=form_params,
|
|
1300
|
+
files=local_var_files,
|
|
1301
|
+
response_type='V1LitDatasetVersionArchive', # noqa: E501
|
|
1302
|
+
auth_settings=auth_settings,
|
|
1303
|
+
async_req=params.get('async_req'),
|
|
1304
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1305
|
+
_preload_content=params.get('_preload_content', True),
|
|
1306
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1307
|
+
collection_formats=collection_formats)
|
|
1308
|
+
|
|
1309
|
+
def lit_dataset_service_list_lit_dataset_versions(self, project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1ListLitDatasetVersionsResponse': # noqa: E501
|
|
1310
|
+
"""lit_dataset_service_list_lit_dataset_versions # noqa: E501
|
|
1311
|
+
|
|
1312
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1313
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1314
|
+
>>> thread = api.lit_dataset_service_list_lit_dataset_versions(project_id, dataset_id, async_req=True)
|
|
1315
|
+
>>> result = thread.get()
|
|
1316
|
+
|
|
1317
|
+
:param async_req bool
|
|
1318
|
+
:param str project_id: (required)
|
|
1319
|
+
:param str dataset_id: (required)
|
|
1320
|
+
:return: V1ListLitDatasetVersionsResponse
|
|
1321
|
+
If the method is called asynchronously,
|
|
1322
|
+
returns the request thread.
|
|
1323
|
+
"""
|
|
1324
|
+
kwargs['_return_http_data_only'] = True
|
|
1325
|
+
if kwargs.get('async_req'):
|
|
1326
|
+
return self.lit_dataset_service_list_lit_dataset_versions_with_http_info(project_id, dataset_id, **kwargs) # noqa: E501
|
|
1327
|
+
else:
|
|
1328
|
+
(data) = self.lit_dataset_service_list_lit_dataset_versions_with_http_info(project_id, dataset_id, **kwargs) # noqa: E501
|
|
1329
|
+
return data
|
|
1330
|
+
|
|
1331
|
+
def lit_dataset_service_list_lit_dataset_versions_with_http_info(self, project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1ListLitDatasetVersionsResponse': # noqa: E501
|
|
1332
|
+
"""lit_dataset_service_list_lit_dataset_versions # noqa: E501
|
|
1333
|
+
|
|
1334
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1335
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1336
|
+
>>> thread = api.lit_dataset_service_list_lit_dataset_versions_with_http_info(project_id, dataset_id, async_req=True)
|
|
1337
|
+
>>> result = thread.get()
|
|
1338
|
+
|
|
1339
|
+
:param async_req bool
|
|
1340
|
+
:param str project_id: (required)
|
|
1341
|
+
:param str dataset_id: (required)
|
|
1342
|
+
:return: V1ListLitDatasetVersionsResponse
|
|
1343
|
+
If the method is called asynchronously,
|
|
1344
|
+
returns the request thread.
|
|
1345
|
+
"""
|
|
1346
|
+
|
|
1347
|
+
all_params = ['project_id', 'dataset_id'] # noqa: E501
|
|
1348
|
+
all_params.append('async_req')
|
|
1349
|
+
all_params.append('_return_http_data_only')
|
|
1350
|
+
all_params.append('_preload_content')
|
|
1351
|
+
all_params.append('_request_timeout')
|
|
1352
|
+
|
|
1353
|
+
params = locals()
|
|
1354
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1355
|
+
if key not in all_params:
|
|
1356
|
+
raise TypeError(
|
|
1357
|
+
"Got an unexpected keyword argument '%s'"
|
|
1358
|
+
" to method lit_dataset_service_list_lit_dataset_versions" % key
|
|
1359
|
+
)
|
|
1360
|
+
params[key] = val
|
|
1361
|
+
del params['kwargs']
|
|
1362
|
+
# verify the required parameter 'project_id' is set
|
|
1363
|
+
if ('project_id' not in params or
|
|
1364
|
+
params['project_id'] is None):
|
|
1365
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_list_lit_dataset_versions`") # noqa: E501
|
|
1366
|
+
# verify the required parameter 'dataset_id' is set
|
|
1367
|
+
if ('dataset_id' not in params or
|
|
1368
|
+
params['dataset_id'] is None):
|
|
1369
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_list_lit_dataset_versions`") # noqa: E501
|
|
1370
|
+
|
|
1371
|
+
collection_formats = {}
|
|
1372
|
+
|
|
1373
|
+
path_params = {}
|
|
1374
|
+
if 'project_id' in params:
|
|
1375
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1376
|
+
if 'dataset_id' in params:
|
|
1377
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1378
|
+
|
|
1379
|
+
query_params = []
|
|
1380
|
+
|
|
1381
|
+
header_params = {}
|
|
1382
|
+
|
|
1383
|
+
form_params = []
|
|
1384
|
+
local_var_files = {}
|
|
1385
|
+
|
|
1386
|
+
body_params = None
|
|
1387
|
+
# HTTP header `Accept`
|
|
1388
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1389
|
+
['application/json']) # noqa: E501
|
|
1390
|
+
|
|
1391
|
+
# Authentication setting
|
|
1392
|
+
auth_settings = [] # noqa: E501
|
|
1393
|
+
|
|
1394
|
+
return self.api_client.call_api(
|
|
1395
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions', 'GET',
|
|
1396
|
+
path_params,
|
|
1397
|
+
query_params,
|
|
1398
|
+
header_params,
|
|
1399
|
+
body=body_params,
|
|
1400
|
+
post_params=form_params,
|
|
1401
|
+
files=local_var_files,
|
|
1402
|
+
response_type='V1ListLitDatasetVersionsResponse', # noqa: E501
|
|
1403
|
+
auth_settings=auth_settings,
|
|
1404
|
+
async_req=params.get('async_req'),
|
|
1405
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1406
|
+
_preload_content=params.get('_preload_content', True),
|
|
1407
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1408
|
+
collection_formats=collection_formats)
|
|
1409
|
+
|
|
1410
|
+
def lit_dataset_service_list_lit_datasets(self, project_id: 'str', **kwargs) -> 'V1ListLitDatasetsResponse': # noqa: E501
|
|
1411
|
+
"""lit_dataset_service_list_lit_datasets # noqa: E501
|
|
1412
|
+
|
|
1413
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1414
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1415
|
+
>>> thread = api.lit_dataset_service_list_lit_datasets(project_id, async_req=True)
|
|
1416
|
+
>>> result = thread.get()
|
|
1417
|
+
|
|
1418
|
+
:param async_req bool
|
|
1419
|
+
:param str project_id: (required)
|
|
1420
|
+
:param str name:
|
|
1421
|
+
:return: V1ListLitDatasetsResponse
|
|
1422
|
+
If the method is called asynchronously,
|
|
1423
|
+
returns the request thread.
|
|
1424
|
+
"""
|
|
1425
|
+
kwargs['_return_http_data_only'] = True
|
|
1426
|
+
if kwargs.get('async_req'):
|
|
1427
|
+
return self.lit_dataset_service_list_lit_datasets_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1428
|
+
else:
|
|
1429
|
+
(data) = self.lit_dataset_service_list_lit_datasets_with_http_info(project_id, **kwargs) # noqa: E501
|
|
1430
|
+
return data
|
|
1431
|
+
|
|
1432
|
+
def lit_dataset_service_list_lit_datasets_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListLitDatasetsResponse': # noqa: E501
|
|
1433
|
+
"""lit_dataset_service_list_lit_datasets # noqa: E501
|
|
1434
|
+
|
|
1435
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1436
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1437
|
+
>>> thread = api.lit_dataset_service_list_lit_datasets_with_http_info(project_id, async_req=True)
|
|
1438
|
+
>>> result = thread.get()
|
|
1439
|
+
|
|
1440
|
+
:param async_req bool
|
|
1441
|
+
:param str project_id: (required)
|
|
1442
|
+
:param str name:
|
|
1443
|
+
:return: V1ListLitDatasetsResponse
|
|
1444
|
+
If the method is called asynchronously,
|
|
1445
|
+
returns the request thread.
|
|
1446
|
+
"""
|
|
1447
|
+
|
|
1448
|
+
all_params = ['project_id', 'name'] # noqa: E501
|
|
1449
|
+
all_params.append('async_req')
|
|
1450
|
+
all_params.append('_return_http_data_only')
|
|
1451
|
+
all_params.append('_preload_content')
|
|
1452
|
+
all_params.append('_request_timeout')
|
|
1453
|
+
|
|
1454
|
+
params = locals()
|
|
1455
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1456
|
+
if key not in all_params:
|
|
1457
|
+
raise TypeError(
|
|
1458
|
+
"Got an unexpected keyword argument '%s'"
|
|
1459
|
+
" to method lit_dataset_service_list_lit_datasets" % key
|
|
1460
|
+
)
|
|
1461
|
+
params[key] = val
|
|
1462
|
+
del params['kwargs']
|
|
1463
|
+
# verify the required parameter 'project_id' is set
|
|
1464
|
+
if ('project_id' not in params or
|
|
1465
|
+
params['project_id'] is None):
|
|
1466
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_list_lit_datasets`") # noqa: E501
|
|
1467
|
+
|
|
1468
|
+
collection_formats = {}
|
|
1469
|
+
|
|
1470
|
+
path_params = {}
|
|
1471
|
+
if 'project_id' in params:
|
|
1472
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1473
|
+
|
|
1474
|
+
query_params = []
|
|
1475
|
+
if 'name' in params:
|
|
1476
|
+
query_params.append(('name', params['name'])) # noqa: E501
|
|
1477
|
+
|
|
1478
|
+
header_params = {}
|
|
1479
|
+
|
|
1480
|
+
form_params = []
|
|
1481
|
+
local_var_files = {}
|
|
1482
|
+
|
|
1483
|
+
body_params = None
|
|
1484
|
+
# HTTP header `Accept`
|
|
1485
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1486
|
+
['application/json']) # noqa: E501
|
|
1487
|
+
|
|
1488
|
+
# Authentication setting
|
|
1489
|
+
auth_settings = [] # noqa: E501
|
|
1490
|
+
|
|
1491
|
+
return self.api_client.call_api(
|
|
1492
|
+
'/v1/projects/{projectId}/lit-datasets', 'GET',
|
|
1493
|
+
path_params,
|
|
1494
|
+
query_params,
|
|
1495
|
+
header_params,
|
|
1496
|
+
body=body_params,
|
|
1497
|
+
post_params=form_params,
|
|
1498
|
+
files=local_var_files,
|
|
1499
|
+
response_type='V1ListLitDatasetsResponse', # noqa: E501
|
|
1500
|
+
auth_settings=auth_settings,
|
|
1501
|
+
async_req=params.get('async_req'),
|
|
1502
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1503
|
+
_preload_content=params.get('_preload_content', True),
|
|
1504
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1505
|
+
collection_formats=collection_formats)
|
|
1506
|
+
|
|
1507
|
+
def lit_dataset_service_set_lit_dataset_default_version(self, body: 'VersionDefaultBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
1508
|
+
"""lit_dataset_service_set_lit_dataset_default_version # noqa: E501
|
|
1509
|
+
|
|
1510
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1511
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1512
|
+
>>> thread = api.lit_dataset_service_set_lit_dataset_default_version(body, project_id, dataset_id, version, async_req=True)
|
|
1513
|
+
>>> result = thread.get()
|
|
1514
|
+
|
|
1515
|
+
:param async_req bool
|
|
1516
|
+
:param VersionDefaultBody body: (required)
|
|
1517
|
+
:param str project_id: (required)
|
|
1518
|
+
:param str dataset_id: (required)
|
|
1519
|
+
:param str version: (required)
|
|
1520
|
+
:return: V1LitDataset
|
|
1521
|
+
If the method is called asynchronously,
|
|
1522
|
+
returns the request thread.
|
|
1523
|
+
"""
|
|
1524
|
+
kwargs['_return_http_data_only'] = True
|
|
1525
|
+
if kwargs.get('async_req'):
|
|
1526
|
+
return self.lit_dataset_service_set_lit_dataset_default_version_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1527
|
+
else:
|
|
1528
|
+
(data) = self.lit_dataset_service_set_lit_dataset_default_version_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1529
|
+
return data
|
|
1530
|
+
|
|
1531
|
+
def lit_dataset_service_set_lit_dataset_default_version_with_http_info(self, body: 'VersionDefaultBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
1532
|
+
"""lit_dataset_service_set_lit_dataset_default_version # noqa: E501
|
|
1533
|
+
|
|
1534
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1535
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1536
|
+
>>> thread = api.lit_dataset_service_set_lit_dataset_default_version_with_http_info(body, project_id, dataset_id, version, async_req=True)
|
|
1537
|
+
>>> result = thread.get()
|
|
1538
|
+
|
|
1539
|
+
:param async_req bool
|
|
1540
|
+
:param VersionDefaultBody body: (required)
|
|
1541
|
+
:param str project_id: (required)
|
|
1542
|
+
:param str dataset_id: (required)
|
|
1543
|
+
:param str version: (required)
|
|
1544
|
+
:return: V1LitDataset
|
|
1545
|
+
If the method is called asynchronously,
|
|
1546
|
+
returns the request thread.
|
|
1547
|
+
"""
|
|
1548
|
+
|
|
1549
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version'] # noqa: E501
|
|
1550
|
+
all_params.append('async_req')
|
|
1551
|
+
all_params.append('_return_http_data_only')
|
|
1552
|
+
all_params.append('_preload_content')
|
|
1553
|
+
all_params.append('_request_timeout')
|
|
1554
|
+
|
|
1555
|
+
params = locals()
|
|
1556
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1557
|
+
if key not in all_params:
|
|
1558
|
+
raise TypeError(
|
|
1559
|
+
"Got an unexpected keyword argument '%s'"
|
|
1560
|
+
" to method lit_dataset_service_set_lit_dataset_default_version" % key
|
|
1561
|
+
)
|
|
1562
|
+
params[key] = val
|
|
1563
|
+
del params['kwargs']
|
|
1564
|
+
# verify the required parameter 'body' is set
|
|
1565
|
+
if ('body' not in params or
|
|
1566
|
+
params['body'] is None):
|
|
1567
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_set_lit_dataset_default_version`") # noqa: E501
|
|
1568
|
+
# verify the required parameter 'project_id' is set
|
|
1569
|
+
if ('project_id' not in params or
|
|
1570
|
+
params['project_id'] is None):
|
|
1571
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_set_lit_dataset_default_version`") # noqa: E501
|
|
1572
|
+
# verify the required parameter 'dataset_id' is set
|
|
1573
|
+
if ('dataset_id' not in params or
|
|
1574
|
+
params['dataset_id'] is None):
|
|
1575
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_set_lit_dataset_default_version`") # noqa: E501
|
|
1576
|
+
# verify the required parameter 'version' is set
|
|
1577
|
+
if ('version' not in params or
|
|
1578
|
+
params['version'] is None):
|
|
1579
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_set_lit_dataset_default_version`") # noqa: E501
|
|
1580
|
+
|
|
1581
|
+
collection_formats = {}
|
|
1582
|
+
|
|
1583
|
+
path_params = {}
|
|
1584
|
+
if 'project_id' in params:
|
|
1585
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1586
|
+
if 'dataset_id' in params:
|
|
1587
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1588
|
+
if 'version' in params:
|
|
1589
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1590
|
+
|
|
1591
|
+
query_params = []
|
|
1592
|
+
|
|
1593
|
+
header_params = {}
|
|
1594
|
+
|
|
1595
|
+
form_params = []
|
|
1596
|
+
local_var_files = {}
|
|
1597
|
+
|
|
1598
|
+
body_params = None
|
|
1599
|
+
if 'body' in params:
|
|
1600
|
+
body_params = params['body']
|
|
1601
|
+
# HTTP header `Accept`
|
|
1602
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1603
|
+
['application/json']) # noqa: E501
|
|
1604
|
+
|
|
1605
|
+
# HTTP header `Content-Type`
|
|
1606
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1607
|
+
['application/json']) # noqa: E501
|
|
1608
|
+
|
|
1609
|
+
# Authentication setting
|
|
1610
|
+
auth_settings = [] # noqa: E501
|
|
1611
|
+
|
|
1612
|
+
return self.api_client.call_api(
|
|
1613
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}/default', 'PUT',
|
|
1614
|
+
path_params,
|
|
1615
|
+
query_params,
|
|
1616
|
+
header_params,
|
|
1617
|
+
body=body_params,
|
|
1618
|
+
post_params=form_params,
|
|
1619
|
+
files=local_var_files,
|
|
1620
|
+
response_type='V1LitDataset', # noqa: E501
|
|
1621
|
+
auth_settings=auth_settings,
|
|
1622
|
+
async_req=params.get('async_req'),
|
|
1623
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1624
|
+
_preload_content=params.get('_preload_content', True),
|
|
1625
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1626
|
+
collection_formats=collection_formats)
|
|
1627
|
+
|
|
1628
|
+
def lit_dataset_service_update_lit_dataset(self, body: 'LitdatasetsDatasetIdBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
1629
|
+
"""UpdateLitDataset updates the dataset, in particular the dataset's name. # noqa: E501
|
|
1630
|
+
|
|
1631
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1632
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1633
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset(body, project_id, dataset_id, async_req=True)
|
|
1634
|
+
>>> result = thread.get()
|
|
1635
|
+
|
|
1636
|
+
:param async_req bool
|
|
1637
|
+
:param LitdatasetsDatasetIdBody body: (required)
|
|
1638
|
+
:param str project_id: (required)
|
|
1639
|
+
:param str dataset_id: (required)
|
|
1640
|
+
:return: V1LitDataset
|
|
1641
|
+
If the method is called asynchronously,
|
|
1642
|
+
returns the request thread.
|
|
1643
|
+
"""
|
|
1644
|
+
kwargs['_return_http_data_only'] = True
|
|
1645
|
+
if kwargs.get('async_req'):
|
|
1646
|
+
return self.lit_dataset_service_update_lit_dataset_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
1647
|
+
else:
|
|
1648
|
+
(data) = self.lit_dataset_service_update_lit_dataset_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
1649
|
+
return data
|
|
1650
|
+
|
|
1651
|
+
def lit_dataset_service_update_lit_dataset_with_http_info(self, body: 'LitdatasetsDatasetIdBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1LitDataset': # noqa: E501
|
|
1652
|
+
"""UpdateLitDataset updates the dataset, in particular the dataset's name. # noqa: E501
|
|
1653
|
+
|
|
1654
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1655
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1656
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset_with_http_info(body, project_id, dataset_id, async_req=True)
|
|
1657
|
+
>>> result = thread.get()
|
|
1658
|
+
|
|
1659
|
+
:param async_req bool
|
|
1660
|
+
:param LitdatasetsDatasetIdBody body: (required)
|
|
1661
|
+
:param str project_id: (required)
|
|
1662
|
+
:param str dataset_id: (required)
|
|
1663
|
+
:return: V1LitDataset
|
|
1664
|
+
If the method is called asynchronously,
|
|
1665
|
+
returns the request thread.
|
|
1666
|
+
"""
|
|
1667
|
+
|
|
1668
|
+
all_params = ['body', 'project_id', 'dataset_id'] # noqa: E501
|
|
1669
|
+
all_params.append('async_req')
|
|
1670
|
+
all_params.append('_return_http_data_only')
|
|
1671
|
+
all_params.append('_preload_content')
|
|
1672
|
+
all_params.append('_request_timeout')
|
|
1673
|
+
|
|
1674
|
+
params = locals()
|
|
1675
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1676
|
+
if key not in all_params:
|
|
1677
|
+
raise TypeError(
|
|
1678
|
+
"Got an unexpected keyword argument '%s'"
|
|
1679
|
+
" to method lit_dataset_service_update_lit_dataset" % key
|
|
1680
|
+
)
|
|
1681
|
+
params[key] = val
|
|
1682
|
+
del params['kwargs']
|
|
1683
|
+
# verify the required parameter 'body' is set
|
|
1684
|
+
if ('body' not in params or
|
|
1685
|
+
params['body'] is None):
|
|
1686
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_update_lit_dataset`") # noqa: E501
|
|
1687
|
+
# verify the required parameter 'project_id' is set
|
|
1688
|
+
if ('project_id' not in params or
|
|
1689
|
+
params['project_id'] is None):
|
|
1690
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_update_lit_dataset`") # noqa: E501
|
|
1691
|
+
# verify the required parameter 'dataset_id' is set
|
|
1692
|
+
if ('dataset_id' not in params or
|
|
1693
|
+
params['dataset_id'] is None):
|
|
1694
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_update_lit_dataset`") # noqa: E501
|
|
1695
|
+
|
|
1696
|
+
collection_formats = {}
|
|
1697
|
+
|
|
1698
|
+
path_params = {}
|
|
1699
|
+
if 'project_id' in params:
|
|
1700
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1701
|
+
if 'dataset_id' in params:
|
|
1702
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1703
|
+
|
|
1704
|
+
query_params = []
|
|
1705
|
+
|
|
1706
|
+
header_params = {}
|
|
1707
|
+
|
|
1708
|
+
form_params = []
|
|
1709
|
+
local_var_files = {}
|
|
1710
|
+
|
|
1711
|
+
body_params = None
|
|
1712
|
+
if 'body' in params:
|
|
1713
|
+
body_params = params['body']
|
|
1714
|
+
# HTTP header `Accept`
|
|
1715
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1716
|
+
['application/json']) # noqa: E501
|
|
1717
|
+
|
|
1718
|
+
# HTTP header `Content-Type`
|
|
1719
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1720
|
+
['application/json']) # noqa: E501
|
|
1721
|
+
|
|
1722
|
+
# Authentication setting
|
|
1723
|
+
auth_settings = [] # noqa: E501
|
|
1724
|
+
|
|
1725
|
+
return self.api_client.call_api(
|
|
1726
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}', 'PUT',
|
|
1727
|
+
path_params,
|
|
1728
|
+
query_params,
|
|
1729
|
+
header_params,
|
|
1730
|
+
body=body_params,
|
|
1731
|
+
post_params=form_params,
|
|
1732
|
+
files=local_var_files,
|
|
1733
|
+
response_type='V1LitDataset', # noqa: E501
|
|
1734
|
+
auth_settings=auth_settings,
|
|
1735
|
+
async_req=params.get('async_req'),
|
|
1736
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1737
|
+
_preload_content=params.get('_preload_content', True),
|
|
1738
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1739
|
+
collection_formats=collection_formats)
|
|
1740
|
+
|
|
1741
|
+
def lit_dataset_service_update_lit_dataset_version(self, body: 'VersionsVersionBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
1742
|
+
"""UpdateLitDatasetVersion updates the dataset version, in particular the dataset version's name. # noqa: E501
|
|
1743
|
+
|
|
1744
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1745
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1746
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset_version(body, project_id, dataset_id, version, async_req=True)
|
|
1747
|
+
>>> result = thread.get()
|
|
1748
|
+
|
|
1749
|
+
:param async_req bool
|
|
1750
|
+
:param VersionsVersionBody body: (required)
|
|
1751
|
+
:param str project_id: (required)
|
|
1752
|
+
:param str dataset_id: (required)
|
|
1753
|
+
:param str version: (required)
|
|
1754
|
+
:return: V1LitDatasetVersionArchive
|
|
1755
|
+
If the method is called asynchronously,
|
|
1756
|
+
returns the request thread.
|
|
1757
|
+
"""
|
|
1758
|
+
kwargs['_return_http_data_only'] = True
|
|
1759
|
+
if kwargs.get('async_req'):
|
|
1760
|
+
return self.lit_dataset_service_update_lit_dataset_version_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1761
|
+
else:
|
|
1762
|
+
(data) = self.lit_dataset_service_update_lit_dataset_version_with_http_info(body, project_id, dataset_id, version, **kwargs) # noqa: E501
|
|
1763
|
+
return data
|
|
1764
|
+
|
|
1765
|
+
def lit_dataset_service_update_lit_dataset_version_with_http_info(self, body: 'VersionsVersionBody', project_id: 'str', dataset_id: 'str', version: 'str', **kwargs) -> 'V1LitDatasetVersionArchive': # noqa: E501
|
|
1766
|
+
"""UpdateLitDatasetVersion updates the dataset version, in particular the dataset version's name. # noqa: E501
|
|
1767
|
+
|
|
1768
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1769
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1770
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset_version_with_http_info(body, project_id, dataset_id, version, async_req=True)
|
|
1771
|
+
>>> result = thread.get()
|
|
1772
|
+
|
|
1773
|
+
:param async_req bool
|
|
1774
|
+
:param VersionsVersionBody body: (required)
|
|
1775
|
+
:param str project_id: (required)
|
|
1776
|
+
:param str dataset_id: (required)
|
|
1777
|
+
:param str version: (required)
|
|
1778
|
+
:return: V1LitDatasetVersionArchive
|
|
1779
|
+
If the method is called asynchronously,
|
|
1780
|
+
returns the request thread.
|
|
1781
|
+
"""
|
|
1782
|
+
|
|
1783
|
+
all_params = ['body', 'project_id', 'dataset_id', 'version'] # noqa: E501
|
|
1784
|
+
all_params.append('async_req')
|
|
1785
|
+
all_params.append('_return_http_data_only')
|
|
1786
|
+
all_params.append('_preload_content')
|
|
1787
|
+
all_params.append('_request_timeout')
|
|
1788
|
+
|
|
1789
|
+
params = locals()
|
|
1790
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1791
|
+
if key not in all_params:
|
|
1792
|
+
raise TypeError(
|
|
1793
|
+
"Got an unexpected keyword argument '%s'"
|
|
1794
|
+
" to method lit_dataset_service_update_lit_dataset_version" % key
|
|
1795
|
+
)
|
|
1796
|
+
params[key] = val
|
|
1797
|
+
del params['kwargs']
|
|
1798
|
+
# verify the required parameter 'body' is set
|
|
1799
|
+
if ('body' not in params or
|
|
1800
|
+
params['body'] is None):
|
|
1801
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_update_lit_dataset_version`") # noqa: E501
|
|
1802
|
+
# verify the required parameter 'project_id' is set
|
|
1803
|
+
if ('project_id' not in params or
|
|
1804
|
+
params['project_id'] is None):
|
|
1805
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_update_lit_dataset_version`") # noqa: E501
|
|
1806
|
+
# verify the required parameter 'dataset_id' is set
|
|
1807
|
+
if ('dataset_id' not in params or
|
|
1808
|
+
params['dataset_id'] is None):
|
|
1809
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_update_lit_dataset_version`") # noqa: E501
|
|
1810
|
+
# verify the required parameter 'version' is set
|
|
1811
|
+
if ('version' not in params or
|
|
1812
|
+
params['version'] is None):
|
|
1813
|
+
raise ValueError("Missing the required parameter `version` when calling `lit_dataset_service_update_lit_dataset_version`") # noqa: E501
|
|
1814
|
+
|
|
1815
|
+
collection_formats = {}
|
|
1816
|
+
|
|
1817
|
+
path_params = {}
|
|
1818
|
+
if 'project_id' in params:
|
|
1819
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1820
|
+
if 'dataset_id' in params:
|
|
1821
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1822
|
+
if 'version' in params:
|
|
1823
|
+
path_params['version'] = params['version'] # noqa: E501
|
|
1824
|
+
|
|
1825
|
+
query_params = []
|
|
1826
|
+
|
|
1827
|
+
header_params = {}
|
|
1828
|
+
|
|
1829
|
+
form_params = []
|
|
1830
|
+
local_var_files = {}
|
|
1831
|
+
|
|
1832
|
+
body_params = None
|
|
1833
|
+
if 'body' in params:
|
|
1834
|
+
body_params = params['body']
|
|
1835
|
+
# HTTP header `Accept`
|
|
1836
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1837
|
+
['application/json']) # noqa: E501
|
|
1838
|
+
|
|
1839
|
+
# HTTP header `Content-Type`
|
|
1840
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1841
|
+
['application/json']) # noqa: E501
|
|
1842
|
+
|
|
1843
|
+
# Authentication setting
|
|
1844
|
+
auth_settings = [] # noqa: E501
|
|
1845
|
+
|
|
1846
|
+
return self.api_client.call_api(
|
|
1847
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/versions/{version}', 'PUT',
|
|
1848
|
+
path_params,
|
|
1849
|
+
query_params,
|
|
1850
|
+
header_params,
|
|
1851
|
+
body=body_params,
|
|
1852
|
+
post_params=form_params,
|
|
1853
|
+
files=local_var_files,
|
|
1854
|
+
response_type='V1LitDatasetVersionArchive', # noqa: E501
|
|
1855
|
+
auth_settings=auth_settings,
|
|
1856
|
+
async_req=params.get('async_req'),
|
|
1857
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1858
|
+
_preload_content=params.get('_preload_content', True),
|
|
1859
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1860
|
+
collection_formats=collection_formats)
|
|
1861
|
+
|
|
1862
|
+
def lit_dataset_service_update_lit_dataset_visibility(self, body: 'DatasetIdVisibilityBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1UpdateLitDatasetVisibilityResponse': # noqa: E501
|
|
1863
|
+
"""UpdateLitDatasetVisibility updates the dataset version, mainly switch between public and private # noqa: E501
|
|
1864
|
+
|
|
1865
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1866
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1867
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset_visibility(body, project_id, dataset_id, async_req=True)
|
|
1868
|
+
>>> result = thread.get()
|
|
1869
|
+
|
|
1870
|
+
:param async_req bool
|
|
1871
|
+
:param DatasetIdVisibilityBody body: (required)
|
|
1872
|
+
:param str project_id: (required)
|
|
1873
|
+
:param str dataset_id: (required)
|
|
1874
|
+
:return: V1UpdateLitDatasetVisibilityResponse
|
|
1875
|
+
If the method is called asynchronously,
|
|
1876
|
+
returns the request thread.
|
|
1877
|
+
"""
|
|
1878
|
+
kwargs['_return_http_data_only'] = True
|
|
1879
|
+
if kwargs.get('async_req'):
|
|
1880
|
+
return self.lit_dataset_service_update_lit_dataset_visibility_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
1881
|
+
else:
|
|
1882
|
+
(data) = self.lit_dataset_service_update_lit_dataset_visibility_with_http_info(body, project_id, dataset_id, **kwargs) # noqa: E501
|
|
1883
|
+
return data
|
|
1884
|
+
|
|
1885
|
+
def lit_dataset_service_update_lit_dataset_visibility_with_http_info(self, body: 'DatasetIdVisibilityBody', project_id: 'str', dataset_id: 'str', **kwargs) -> 'V1UpdateLitDatasetVisibilityResponse': # noqa: E501
|
|
1886
|
+
"""UpdateLitDatasetVisibility updates the dataset version, mainly switch between public and private # noqa: E501
|
|
1887
|
+
|
|
1888
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1889
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1890
|
+
>>> thread = api.lit_dataset_service_update_lit_dataset_visibility_with_http_info(body, project_id, dataset_id, async_req=True)
|
|
1891
|
+
>>> result = thread.get()
|
|
1892
|
+
|
|
1893
|
+
:param async_req bool
|
|
1894
|
+
:param DatasetIdVisibilityBody body: (required)
|
|
1895
|
+
:param str project_id: (required)
|
|
1896
|
+
:param str dataset_id: (required)
|
|
1897
|
+
:return: V1UpdateLitDatasetVisibilityResponse
|
|
1898
|
+
If the method is called asynchronously,
|
|
1899
|
+
returns the request thread.
|
|
1900
|
+
"""
|
|
1901
|
+
|
|
1902
|
+
all_params = ['body', 'project_id', 'dataset_id'] # noqa: E501
|
|
1903
|
+
all_params.append('async_req')
|
|
1904
|
+
all_params.append('_return_http_data_only')
|
|
1905
|
+
all_params.append('_preload_content')
|
|
1906
|
+
all_params.append('_request_timeout')
|
|
1907
|
+
|
|
1908
|
+
params = locals()
|
|
1909
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1910
|
+
if key not in all_params:
|
|
1911
|
+
raise TypeError(
|
|
1912
|
+
"Got an unexpected keyword argument '%s'"
|
|
1913
|
+
" to method lit_dataset_service_update_lit_dataset_visibility" % key
|
|
1914
|
+
)
|
|
1915
|
+
params[key] = val
|
|
1916
|
+
del params['kwargs']
|
|
1917
|
+
# verify the required parameter 'body' is set
|
|
1918
|
+
if ('body' not in params or
|
|
1919
|
+
params['body'] is None):
|
|
1920
|
+
raise ValueError("Missing the required parameter `body` when calling `lit_dataset_service_update_lit_dataset_visibility`") # noqa: E501
|
|
1921
|
+
# verify the required parameter 'project_id' is set
|
|
1922
|
+
if ('project_id' not in params or
|
|
1923
|
+
params['project_id'] is None):
|
|
1924
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lit_dataset_service_update_lit_dataset_visibility`") # noqa: E501
|
|
1925
|
+
# verify the required parameter 'dataset_id' is set
|
|
1926
|
+
if ('dataset_id' not in params or
|
|
1927
|
+
params['dataset_id'] is None):
|
|
1928
|
+
raise ValueError("Missing the required parameter `dataset_id` when calling `lit_dataset_service_update_lit_dataset_visibility`") # noqa: E501
|
|
1929
|
+
|
|
1930
|
+
collection_formats = {}
|
|
1931
|
+
|
|
1932
|
+
path_params = {}
|
|
1933
|
+
if 'project_id' in params:
|
|
1934
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1935
|
+
if 'dataset_id' in params:
|
|
1936
|
+
path_params['datasetId'] = params['dataset_id'] # noqa: E501
|
|
1937
|
+
|
|
1938
|
+
query_params = []
|
|
1939
|
+
|
|
1940
|
+
header_params = {}
|
|
1941
|
+
|
|
1942
|
+
form_params = []
|
|
1943
|
+
local_var_files = {}
|
|
1944
|
+
|
|
1945
|
+
body_params = None
|
|
1946
|
+
if 'body' in params:
|
|
1947
|
+
body_params = params['body']
|
|
1948
|
+
# HTTP header `Accept`
|
|
1949
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1950
|
+
['application/json']) # noqa: E501
|
|
1951
|
+
|
|
1952
|
+
# HTTP header `Content-Type`
|
|
1953
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1954
|
+
['application/json']) # noqa: E501
|
|
1955
|
+
|
|
1956
|
+
# Authentication setting
|
|
1957
|
+
auth_settings = [] # noqa: E501
|
|
1958
|
+
|
|
1959
|
+
return self.api_client.call_api(
|
|
1960
|
+
'/v1/projects/{projectId}/lit-datasets/{datasetId}/visibility', 'PUT',
|
|
1961
|
+
path_params,
|
|
1962
|
+
query_params,
|
|
1963
|
+
header_params,
|
|
1964
|
+
body=body_params,
|
|
1965
|
+
post_params=form_params,
|
|
1966
|
+
files=local_var_files,
|
|
1967
|
+
response_type='V1UpdateLitDatasetVisibilityResponse', # noqa: E501
|
|
1968
|
+
auth_settings=auth_settings,
|
|
1969
|
+
async_req=params.get('async_req'),
|
|
1970
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1971
|
+
_preload_content=params.get('_preload_content', True),
|
|
1972
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1973
|
+
collection_formats=collection_formats)
|