lightning-sdk 0.1.3__py3-none-any.whl → 0.1.47__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +12 -2
- lightning_sdk/agents.py +46 -0
- lightning_sdk/ai_hub.py +185 -0
- lightning_sdk/api/__init__.py +4 -0
- lightning_sdk/api/agents_api.py +107 -0
- lightning_sdk/api/ai_hub_api.py +130 -0
- lightning_sdk/api/deployment_api.py +574 -0
- lightning_sdk/api/job_api.py +328 -0
- lightning_sdk/api/lit_registry_api.py +12 -0
- lightning_sdk/api/mmt_api.py +205 -0
- lightning_sdk/api/org_api.py +1 -3
- lightning_sdk/api/studio_api.py +172 -81
- lightning_sdk/api/teamspace_api.py +237 -20
- lightning_sdk/api/user_api.py +24 -9
- lightning_sdk/api/utils.py +429 -48
- lightning_sdk/cli/ai_hub.py +49 -0
- lightning_sdk/cli/download.py +132 -0
- lightning_sdk/cli/entrypoint.py +13 -3
- lightning_sdk/cli/list.py +54 -0
- lightning_sdk/cli/run.py +206 -0
- lightning_sdk/cli/serve.py +218 -0
- lightning_sdk/cli/studios_menu.py +78 -0
- lightning_sdk/cli/teamspace_menu.py +94 -0
- lightning_sdk/cli/upload.py +79 -89
- lightning_sdk/constants.py +29 -1
- lightning_sdk/deployment/__init__.py +25 -0
- lightning_sdk/deployment/deployment.py +389 -0
- lightning_sdk/helpers.py +49 -0
- lightning_sdk/job/__init__.py +5 -0
- lightning_sdk/job/base.py +359 -0
- lightning_sdk/job/job.py +291 -0
- lightning_sdk/job/v1.py +269 -0
- lightning_sdk/job/v2.py +221 -0
- lightning_sdk/job/work.py +81 -0
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
- lightning_sdk/lightning_cloud/env.py +1 -0
- lightning_sdk/lightning_cloud/login.py +12 -8
- lightning_sdk/lightning_cloud/openapi/__init__.py +289 -42
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/api/analytics_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1075 -227
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +992 -233
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +883 -120
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +10 -5
- lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +756 -0
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +422 -1
- lightning_sdk/lightning_cloud/openapi/api/experiments_service_api.py +242 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +3823 -0
- lightning_sdk/lightning_cloud/openapi/api/lightningapp_instance_service_api.py +158 -594
- lightning_sdk/lightning_cloud/openapi/api/lightningapp_v2_service_api.py +0 -1086
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +1753 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +343 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1423 -108
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +421 -1
- lightning_sdk/lightning_cloud/openapi/api/profiler_service_api.py +663 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +478 -1
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +9 -5
- lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +686 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1094 -0
- lightning_sdk/lightning_cloud/openapi/api/studio_jobs_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +1081 -34
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +279 -40
- lightning_sdk/lightning_cloud/openapi/models/affiliatelinks_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/{assistants_id_body.py → agents_id_body.py} +201 -71
- lightning_sdk/lightning_cloud/openapi/models/app_id_works_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/approveautojoindomain_domain_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/apps_id_body1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_cluster_health_response.py → captures_id_body.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_runs_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_proxies_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/experiment_name_variant_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +107 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_lightningapp_instance.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -55
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_execute_body.py +3 -55
- lightning_sdk/lightning_cloud/openapi/models/id_execute_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_get_body.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/id_index_body.py +67 -15
- lightning_sdk/lightning_cloud/openapi/models/id_index_body2.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_index_body3.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportlogsactivity_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +52 -26
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body2.py +17 -43
- lightning_sdk/lightning_cloud/openapi/models/jobs_id_body3.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/litpages_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/loggermetrics_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metrics_stream_id_loggerartifacts_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_id_list.py → metricsstream_delete_body.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_response.py → model_id_versions_body.py} +25 -51
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/profiler_captures_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/profiler_enabled_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agentmanagedendpoints_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{project_id_assistants_body.py → project_id_agents_body.py} +159 -55
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +71 -19
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_jobs_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_memberships_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_model_request.py → project_id_models_body.py} +70 -70
- lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_secrets_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/secrets_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/servers_server_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/service_artifact_artifact_kind.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +43 -43
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_model_response.py → snowflake_query_body.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_accelerator_quota_info.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ack_user_storage_violation_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_add_job_timing_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_append_logger_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_approve_auto_join_domain_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assign_variant_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_item_status.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_knowledge_status.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_domain_validation.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_auto_join_org_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_spec.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_autoscaling_target_metric.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_batch_update_lightningwork_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancellation_metadata.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_snowflake_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +136 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_code_version.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_config.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_instance_startup_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_log_service.py → v1_cloud_space_session.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_names.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_proxy.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_resource_tag.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -107
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +17 -43
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_model_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_completed_part.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +26 -26
- lightning_sdk/lightning_cloud/openapi/models/v1_count_metrics_streams_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_snowflake_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_user_secret_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +365 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_performance_profile.py → v1_data_connection_state.py} +11 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_affiliate_link_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_session_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_proxy_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_container_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_release_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_azure_cluster_driver_status.py → v1_delete_deployment_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_index_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_byom_cluster_driver.py → v1_delete_job_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_v2_response.py → v1_delete_logger_artifact_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_managed_endpoint_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_profiler_capture_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_lightningapp_release_response.py → v1_delete_shared_metrics_stream_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_event_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/{get_cluster_health_response_health_status.py → v1_deployment_state.py} +11 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_strategy.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +721 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_gallery_response.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/{instance_type_availability.py → v1_deployment_template_type.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_lightningapp_source_code_download_url_response.py → v1_download_job_logs_response.py} +10 -10
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_config.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_auth.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_cloud_space_command_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_in_cloud_space_session_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_execute_snowflake_query_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_experiment.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_export_snowflake_query_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_instance_spec.py → v1_filesystem_app.py} +85 -59
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_affiliate_link_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_cluster_instance_types_response.py → v1_get_deployment_routing_telemetry_aggregated_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_folder_index_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_cluster_driver_status.py → v1_get_job_stats_response.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_system_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lightningapp_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_logger_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_lightningwork_cluster_driver.py → v1_get_project_artifact_response.py} +33 -14
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +67 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_get_snowflake_query_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +137 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1_status.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_external_kubeconfig.py → v1_health_check_exec.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_health_check_http_get.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ids_logger_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_interrupt_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +723 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_health_check_config.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_log_entry.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_knowledge_configuration.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_spec.py +105 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_affiliate_links_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_sessions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_tags_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_availabilities_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_proxies_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_releases_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_tags_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_templates_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployments_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_experiments_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_lightningapps_v2_response.py → v1_list_jobs_response.py} +31 -31
- lightning_sdk/lightning_cloud/openapi/models/v1_list_joinable_organizations_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_logger_artifact_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_metrics_streams_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_new_features_for_user_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_profiler_captures_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_locked_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_cloud_spaces_response.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_deployment_templates_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_page.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_locked_resource.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_logger_artifact.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +175 -19
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +138 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tags.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_tracker.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_mount_target.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_lightningapp_cluster_driver.py → v1_multi_machine_job_event_type.py} +9 -9
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_named_get_logger_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_new_feature.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_onboarding_event_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_path_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_phase_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_profiler_capture.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_profiler_enabled_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_published_cloud_space_response.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_capacity_block_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_result.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_query_result_row.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_path_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_regional_load_balancer.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_logs_activity_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cluster_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_cloud_space_tag.py → v1_resource_tag.py} +18 -18
- lightning_sdk/lightning_cloud/openapi/models/{appsv2_id_body.py → v1_resource_visibility.py} +37 -37
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +37 -11
- lightning_sdk/lightning_cloud/openapi/models/v1_restore_deployment_release_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rolling_update_strategy.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_condition.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +11 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_search_job_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_select.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_check_in_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +43 -43
- lightning_sdk/lightning_cloud/openapi/models/v1_should_start_syncing_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_signed_url.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_status_code_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_studio_job_app.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_telemetry.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_timestamp_code_telemetry.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_user_balance_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_billing_subscription_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cluster_accelerators_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_index_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_snowflake_query_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_viewed_new_features_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upstream_cloud_space.py +97 -19
- lightning_sdk/lightning_cloud/openapi/models/v1_upstream_job.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1032 -330
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +45 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_flow_compute_config.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_assistant_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_auto_join_domain_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_model_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +97 -19
- lightning_sdk/lightning_cloud/openapi/models/validateautojoindomain_domain_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +47 -23
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +1 -1
- lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +144 -7
- lightning_sdk/lit_registry.py +39 -0
- lightning_sdk/machine.py +21 -4
- lightning_sdk/mmt/__init__.py +4 -0
- lightning_sdk/mmt/base.py +326 -0
- lightning_sdk/mmt/mmt.py +306 -0
- lightning_sdk/mmt/v1.py +209 -0
- lightning_sdk/mmt/v2.py +221 -0
- lightning_sdk/models.py +153 -0
- lightning_sdk/organization.py +1 -1
- lightning_sdk/plugin.py +207 -41
- lightning_sdk/services/__init__.py +2 -1
- lightning_sdk/services/file_endpoint.py +116 -213
- lightning_sdk/services/finetune/__init__.py +13 -15
- lightning_sdk/services/utilities.py +99 -26
- lightning_sdk/status.py +11 -6
- lightning_sdk/studio.py +90 -17
- lightning_sdk/teamspace.py +240 -12
- lightning_sdk/user.py +1 -1
- lightning_sdk/utils/__init__.py +0 -0
- lightning_sdk/utils/dynamic.py +61 -0
- lightning_sdk/utils/enum.py +116 -0
- lightning_sdk/{utils.py → utils/resolve.py} +41 -4
- lightning_sdk-0.1.47.dist-info/LICENSE +21 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/METADATA +30 -4
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/RECORD +487 -204
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/openapi/models/app_id_releases_body.py +0 -541
- lightning_sdk/lightning_cloud/openapi/models/id_endpoint_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_get_body1.py +0 -333
- lightning_sdk/lightning_cloud/openapi/models/project_id_appsv2_body.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_driver_spec.py +0 -1039
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_cluster_secondary_region_spec.py +0 -253
- lightning_sdk/lightning_cloud/openapi/models/v1_azure_cluster_driver_spec.py +0 -227
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_driver.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_container_resources.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_eks_custer_driver_status.py +0 -387
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_type.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_driver.py +0 -359
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_cluster_status.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_release.py +0 -697
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_v2.py +0 -331
- lightning_sdk/services/uploader.py +0 -123
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.3.dist-info → lightning_sdk-0.1.47.dist-info}/top_level.txt +0 -0
|
@@ -350,6 +350,111 @@ class ClusterServiceApi(object):
|
|
|
350
350
|
_request_timeout=params.get('_request_timeout'),
|
|
351
351
|
collection_formats=collection_formats)
|
|
352
352
|
|
|
353
|
+
def cluster_service_create_cluster_proxy(self, body: 'ClusterIdProxiesBody', cluster_id: 'str', **kwargs) -> 'V1ClusterProxy': # noqa: E501
|
|
354
|
+
"""cluster_service_create_cluster_proxy # noqa: E501
|
|
355
|
+
|
|
356
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
357
|
+
asynchronous HTTP request, please pass async_req=True
|
|
358
|
+
>>> thread = api.cluster_service_create_cluster_proxy(body, cluster_id, async_req=True)
|
|
359
|
+
>>> result = thread.get()
|
|
360
|
+
|
|
361
|
+
:param async_req bool
|
|
362
|
+
:param ClusterIdProxiesBody body: (required)
|
|
363
|
+
:param str cluster_id: (required)
|
|
364
|
+
:return: V1ClusterProxy
|
|
365
|
+
If the method is called asynchronously,
|
|
366
|
+
returns the request thread.
|
|
367
|
+
"""
|
|
368
|
+
kwargs['_return_http_data_only'] = True
|
|
369
|
+
if kwargs.get('async_req'):
|
|
370
|
+
return self.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
371
|
+
else:
|
|
372
|
+
(data) = self.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
373
|
+
return data
|
|
374
|
+
|
|
375
|
+
def cluster_service_create_cluster_proxy_with_http_info(self, body: 'ClusterIdProxiesBody', cluster_id: 'str', **kwargs) -> 'V1ClusterProxy': # noqa: E501
|
|
376
|
+
"""cluster_service_create_cluster_proxy # noqa: E501
|
|
377
|
+
|
|
378
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
379
|
+
asynchronous HTTP request, please pass async_req=True
|
|
380
|
+
>>> thread = api.cluster_service_create_cluster_proxy_with_http_info(body, cluster_id, async_req=True)
|
|
381
|
+
>>> result = thread.get()
|
|
382
|
+
|
|
383
|
+
:param async_req bool
|
|
384
|
+
:param ClusterIdProxiesBody body: (required)
|
|
385
|
+
:param str cluster_id: (required)
|
|
386
|
+
:return: V1ClusterProxy
|
|
387
|
+
If the method is called asynchronously,
|
|
388
|
+
returns the request thread.
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
392
|
+
all_params.append('async_req')
|
|
393
|
+
all_params.append('_return_http_data_only')
|
|
394
|
+
all_params.append('_preload_content')
|
|
395
|
+
all_params.append('_request_timeout')
|
|
396
|
+
|
|
397
|
+
params = locals()
|
|
398
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
399
|
+
if key not in all_params:
|
|
400
|
+
raise TypeError(
|
|
401
|
+
"Got an unexpected keyword argument '%s'"
|
|
402
|
+
" to method cluster_service_create_cluster_proxy" % key
|
|
403
|
+
)
|
|
404
|
+
params[key] = val
|
|
405
|
+
del params['kwargs']
|
|
406
|
+
# verify the required parameter 'body' is set
|
|
407
|
+
if ('body' not in params or
|
|
408
|
+
params['body'] is None):
|
|
409
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_cluster_proxy`") # noqa: E501
|
|
410
|
+
# verify the required parameter 'cluster_id' is set
|
|
411
|
+
if ('cluster_id' not in params or
|
|
412
|
+
params['cluster_id'] is None):
|
|
413
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_cluster_proxy`") # noqa: E501
|
|
414
|
+
|
|
415
|
+
collection_formats = {}
|
|
416
|
+
|
|
417
|
+
path_params = {}
|
|
418
|
+
if 'cluster_id' in params:
|
|
419
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
420
|
+
|
|
421
|
+
query_params = []
|
|
422
|
+
|
|
423
|
+
header_params = {}
|
|
424
|
+
|
|
425
|
+
form_params = []
|
|
426
|
+
local_var_files = {}
|
|
427
|
+
|
|
428
|
+
body_params = None
|
|
429
|
+
if 'body' in params:
|
|
430
|
+
body_params = params['body']
|
|
431
|
+
# HTTP header `Accept`
|
|
432
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
433
|
+
['application/json']) # noqa: E501
|
|
434
|
+
|
|
435
|
+
# HTTP header `Content-Type`
|
|
436
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
437
|
+
['application/json']) # noqa: E501
|
|
438
|
+
|
|
439
|
+
# Authentication setting
|
|
440
|
+
auth_settings = [] # noqa: E501
|
|
441
|
+
|
|
442
|
+
return self.api_client.call_api(
|
|
443
|
+
'/v1/core/clusters/{clusterId}/proxies', 'POST',
|
|
444
|
+
path_params,
|
|
445
|
+
query_params,
|
|
446
|
+
header_params,
|
|
447
|
+
body=body_params,
|
|
448
|
+
post_params=form_params,
|
|
449
|
+
files=local_var_files,
|
|
450
|
+
response_type='V1ClusterProxy', # noqa: E501
|
|
451
|
+
auth_settings=auth_settings,
|
|
452
|
+
async_req=params.get('async_req'),
|
|
453
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
454
|
+
_preload_content=params.get('_preload_content', True),
|
|
455
|
+
_request_timeout=params.get('_request_timeout'),
|
|
456
|
+
collection_formats=collection_formats)
|
|
457
|
+
|
|
353
458
|
def cluster_service_create_project_cluster(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
354
459
|
"""cluster_service_create_project_cluster # noqa: E501
|
|
355
460
|
|
|
@@ -770,6 +875,111 @@ class ClusterServiceApi(object):
|
|
|
770
875
|
_request_timeout=params.get('_request_timeout'),
|
|
771
876
|
collection_formats=collection_formats)
|
|
772
877
|
|
|
878
|
+
def cluster_service_delete_cluster_proxy(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
|
|
879
|
+
"""cluster_service_delete_cluster_proxy # noqa: E501
|
|
880
|
+
|
|
881
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
882
|
+
asynchronous HTTP request, please pass async_req=True
|
|
883
|
+
>>> thread = api.cluster_service_delete_cluster_proxy(cluster_id, proxy_id, async_req=True)
|
|
884
|
+
>>> result = thread.get()
|
|
885
|
+
|
|
886
|
+
:param async_req bool
|
|
887
|
+
:param str cluster_id: (required)
|
|
888
|
+
:param str proxy_id: (required)
|
|
889
|
+
:param str org_id:
|
|
890
|
+
:return: V1DeleteClusterProxyResponse
|
|
891
|
+
If the method is called asynchronously,
|
|
892
|
+
returns the request thread.
|
|
893
|
+
"""
|
|
894
|
+
kwargs['_return_http_data_only'] = True
|
|
895
|
+
if kwargs.get('async_req'):
|
|
896
|
+
return self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
|
|
897
|
+
else:
|
|
898
|
+
(data) = self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
|
|
899
|
+
return data
|
|
900
|
+
|
|
901
|
+
def cluster_service_delete_cluster_proxy_with_http_info(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
|
|
902
|
+
"""cluster_service_delete_cluster_proxy # noqa: E501
|
|
903
|
+
|
|
904
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
905
|
+
asynchronous HTTP request, please pass async_req=True
|
|
906
|
+
>>> thread = api.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, async_req=True)
|
|
907
|
+
>>> result = thread.get()
|
|
908
|
+
|
|
909
|
+
:param async_req bool
|
|
910
|
+
:param str cluster_id: (required)
|
|
911
|
+
:param str proxy_id: (required)
|
|
912
|
+
:param str org_id:
|
|
913
|
+
:return: V1DeleteClusterProxyResponse
|
|
914
|
+
If the method is called asynchronously,
|
|
915
|
+
returns the request thread.
|
|
916
|
+
"""
|
|
917
|
+
|
|
918
|
+
all_params = ['cluster_id', 'proxy_id', 'org_id'] # noqa: E501
|
|
919
|
+
all_params.append('async_req')
|
|
920
|
+
all_params.append('_return_http_data_only')
|
|
921
|
+
all_params.append('_preload_content')
|
|
922
|
+
all_params.append('_request_timeout')
|
|
923
|
+
|
|
924
|
+
params = locals()
|
|
925
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
926
|
+
if key not in all_params:
|
|
927
|
+
raise TypeError(
|
|
928
|
+
"Got an unexpected keyword argument '%s'"
|
|
929
|
+
" to method cluster_service_delete_cluster_proxy" % key
|
|
930
|
+
)
|
|
931
|
+
params[key] = val
|
|
932
|
+
del params['kwargs']
|
|
933
|
+
# verify the required parameter 'cluster_id' is set
|
|
934
|
+
if ('cluster_id' not in params or
|
|
935
|
+
params['cluster_id'] is None):
|
|
936
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
|
|
937
|
+
# verify the required parameter 'proxy_id' is set
|
|
938
|
+
if ('proxy_id' not in params or
|
|
939
|
+
params['proxy_id'] is None):
|
|
940
|
+
raise ValueError("Missing the required parameter `proxy_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
|
|
941
|
+
|
|
942
|
+
collection_formats = {}
|
|
943
|
+
|
|
944
|
+
path_params = {}
|
|
945
|
+
if 'cluster_id' in params:
|
|
946
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
947
|
+
if 'proxy_id' in params:
|
|
948
|
+
path_params['proxyId'] = params['proxy_id'] # noqa: E501
|
|
949
|
+
|
|
950
|
+
query_params = []
|
|
951
|
+
if 'org_id' in params:
|
|
952
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
953
|
+
|
|
954
|
+
header_params = {}
|
|
955
|
+
|
|
956
|
+
form_params = []
|
|
957
|
+
local_var_files = {}
|
|
958
|
+
|
|
959
|
+
body_params = None
|
|
960
|
+
# HTTP header `Accept`
|
|
961
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
962
|
+
['application/json']) # noqa: E501
|
|
963
|
+
|
|
964
|
+
# Authentication setting
|
|
965
|
+
auth_settings = [] # noqa: E501
|
|
966
|
+
|
|
967
|
+
return self.api_client.call_api(
|
|
968
|
+
'/v1/core/clusters/{clusterId}/proxies/{proxyId}', 'DELETE',
|
|
969
|
+
path_params,
|
|
970
|
+
query_params,
|
|
971
|
+
header_params,
|
|
972
|
+
body=body_params,
|
|
973
|
+
post_params=form_params,
|
|
974
|
+
files=local_var_files,
|
|
975
|
+
response_type='V1DeleteClusterProxyResponse', # noqa: E501
|
|
976
|
+
auth_settings=auth_settings,
|
|
977
|
+
async_req=params.get('async_req'),
|
|
978
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
979
|
+
_preload_content=params.get('_preload_content', True),
|
|
980
|
+
_request_timeout=params.get('_request_timeout'),
|
|
981
|
+
collection_formats=collection_formats)
|
|
982
|
+
|
|
773
983
|
def cluster_service_delete_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
|
|
774
984
|
"""cluster_service_delete_project_cluster # noqa: E501
|
|
775
985
|
|
|
@@ -883,47 +1093,57 @@ class ClusterServiceApi(object):
|
|
|
883
1093
|
_request_timeout=params.get('_request_timeout'),
|
|
884
1094
|
collection_formats=collection_formats)
|
|
885
1095
|
|
|
886
|
-
def
|
|
887
|
-
"""
|
|
1096
|
+
def cluster_service_find_capacity_block_offering(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
|
|
1097
|
+
"""cluster_service_find_capacity_block_offering # noqa: E501
|
|
888
1098
|
|
|
889
1099
|
This method makes a synchronous HTTP request by default. To make an
|
|
890
1100
|
asynchronous HTTP request, please pass async_req=True
|
|
891
|
-
>>> thread = api.
|
|
1101
|
+
>>> thread = api.cluster_service_find_capacity_block_offering(project_id, cluster_id, async_req=True)
|
|
892
1102
|
>>> result = thread.get()
|
|
893
1103
|
|
|
894
1104
|
:param async_req bool
|
|
895
|
-
:param str
|
|
1105
|
+
:param str project_id: (required)
|
|
1106
|
+
:param str cluster_id: (required)
|
|
1107
|
+
:param str instance_type:
|
|
1108
|
+
:param int instance_count:
|
|
1109
|
+
:param datetime start_date:
|
|
1110
|
+
:param str timezone:
|
|
896
1111
|
:param str org_id:
|
|
897
|
-
:param
|
|
898
|
-
:return:
|
|
1112
|
+
:param int capacity_block_duration_days:
|
|
1113
|
+
:return: V1FindCapacityBlockOfferingResponse
|
|
899
1114
|
If the method is called asynchronously,
|
|
900
1115
|
returns the request thread.
|
|
901
1116
|
"""
|
|
902
1117
|
kwargs['_return_http_data_only'] = True
|
|
903
1118
|
if kwargs.get('async_req'):
|
|
904
|
-
return self.
|
|
1119
|
+
return self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
905
1120
|
else:
|
|
906
|
-
(data) = self.
|
|
1121
|
+
(data) = self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
907
1122
|
return data
|
|
908
1123
|
|
|
909
|
-
def
|
|
910
|
-
"""
|
|
1124
|
+
def cluster_service_find_capacity_block_offering_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
|
|
1125
|
+
"""cluster_service_find_capacity_block_offering # noqa: E501
|
|
911
1126
|
|
|
912
1127
|
This method makes a synchronous HTTP request by default. To make an
|
|
913
1128
|
asynchronous HTTP request, please pass async_req=True
|
|
914
|
-
>>> thread = api.
|
|
1129
|
+
>>> thread = api.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, async_req=True)
|
|
915
1130
|
>>> result = thread.get()
|
|
916
1131
|
|
|
917
1132
|
:param async_req bool
|
|
918
|
-
:param str
|
|
1133
|
+
:param str project_id: (required)
|
|
1134
|
+
:param str cluster_id: (required)
|
|
1135
|
+
:param str instance_type:
|
|
1136
|
+
:param int instance_count:
|
|
1137
|
+
:param datetime start_date:
|
|
1138
|
+
:param str timezone:
|
|
919
1139
|
:param str org_id:
|
|
920
|
-
:param
|
|
921
|
-
:return:
|
|
1140
|
+
:param int capacity_block_duration_days:
|
|
1141
|
+
:return: V1FindCapacityBlockOfferingResponse
|
|
922
1142
|
If the method is called asynchronously,
|
|
923
1143
|
returns the request thread.
|
|
924
1144
|
"""
|
|
925
1145
|
|
|
926
|
-
all_params = ['
|
|
1146
|
+
all_params = ['project_id', 'cluster_id', 'instance_type', 'instance_count', 'start_date', 'timezone', 'org_id', 'capacity_block_duration_days'] # noqa: E501
|
|
927
1147
|
all_params.append('async_req')
|
|
928
1148
|
all_params.append('_return_http_data_only')
|
|
929
1149
|
all_params.append('_preload_content')
|
|
@@ -934,26 +1154,40 @@ class ClusterServiceApi(object):
|
|
|
934
1154
|
if key not in all_params:
|
|
935
1155
|
raise TypeError(
|
|
936
1156
|
"Got an unexpected keyword argument '%s'"
|
|
937
|
-
" to method
|
|
1157
|
+
" to method cluster_service_find_capacity_block_offering" % key
|
|
938
1158
|
)
|
|
939
1159
|
params[key] = val
|
|
940
1160
|
del params['kwargs']
|
|
941
|
-
# verify the required parameter '
|
|
942
|
-
if ('
|
|
943
|
-
params['
|
|
944
|
-
raise ValueError("Missing the required parameter `
|
|
1161
|
+
# verify the required parameter 'project_id' is set
|
|
1162
|
+
if ('project_id' not in params or
|
|
1163
|
+
params['project_id'] is None):
|
|
1164
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
|
|
1165
|
+
# verify the required parameter 'cluster_id' is set
|
|
1166
|
+
if ('cluster_id' not in params or
|
|
1167
|
+
params['cluster_id'] is None):
|
|
1168
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
|
|
945
1169
|
|
|
946
1170
|
collection_formats = {}
|
|
947
1171
|
|
|
948
1172
|
path_params = {}
|
|
949
|
-
if '
|
|
950
|
-
path_params['
|
|
1173
|
+
if 'project_id' in params:
|
|
1174
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1175
|
+
if 'cluster_id' in params:
|
|
1176
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
951
1177
|
|
|
952
1178
|
query_params = []
|
|
1179
|
+
if 'instance_type' in params:
|
|
1180
|
+
query_params.append(('instanceType', params['instance_type'])) # noqa: E501
|
|
1181
|
+
if 'instance_count' in params:
|
|
1182
|
+
query_params.append(('instanceCount', params['instance_count'])) # noqa: E501
|
|
1183
|
+
if 'start_date' in params:
|
|
1184
|
+
query_params.append(('startDate', params['start_date'])) # noqa: E501
|
|
1185
|
+
if 'timezone' in params:
|
|
1186
|
+
query_params.append(('timezone', params['timezone'])) # noqa: E501
|
|
953
1187
|
if 'org_id' in params:
|
|
954
1188
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
955
|
-
if '
|
|
956
|
-
query_params.append(('
|
|
1189
|
+
if 'capacity_block_duration_days' in params:
|
|
1190
|
+
query_params.append(('capacityBlockDurationDays', params['capacity_block_duration_days'])) # noqa: E501
|
|
957
1191
|
|
|
958
1192
|
header_params = {}
|
|
959
1193
|
|
|
@@ -969,14 +1203,14 @@ class ClusterServiceApi(object):
|
|
|
969
1203
|
auth_settings = [] # noqa: E501
|
|
970
1204
|
|
|
971
1205
|
return self.api_client.call_api(
|
|
972
|
-
'/v1/
|
|
1206
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/capacity-block-offering', 'GET',
|
|
973
1207
|
path_params,
|
|
974
1208
|
query_params,
|
|
975
1209
|
header_params,
|
|
976
1210
|
body=body_params,
|
|
977
1211
|
post_params=form_params,
|
|
978
1212
|
files=local_var_files,
|
|
979
|
-
response_type='
|
|
1213
|
+
response_type='V1FindCapacityBlockOfferingResponse', # noqa: E501
|
|
980
1214
|
auth_settings=auth_settings,
|
|
981
1215
|
async_req=params.get('async_req'),
|
|
982
1216
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -984,45 +1218,47 @@ class ClusterServiceApi(object):
|
|
|
984
1218
|
_request_timeout=params.get('_request_timeout'),
|
|
985
1219
|
collection_formats=collection_formats)
|
|
986
1220
|
|
|
987
|
-
def
|
|
988
|
-
"""
|
|
1221
|
+
def cluster_service_get_cluster(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
1222
|
+
"""cluster_service_get_cluster # noqa: E501
|
|
989
1223
|
|
|
990
1224
|
This method makes a synchronous HTTP request by default. To make an
|
|
991
1225
|
asynchronous HTTP request, please pass async_req=True
|
|
992
|
-
>>> thread = api.
|
|
1226
|
+
>>> thread = api.cluster_service_get_cluster(id, async_req=True)
|
|
993
1227
|
>>> result = thread.get()
|
|
994
1228
|
|
|
995
1229
|
:param async_req bool
|
|
1230
|
+
:param str id: (required)
|
|
996
1231
|
:param str org_id:
|
|
997
|
-
:param str
|
|
998
|
-
:return:
|
|
1232
|
+
:param str project_id:
|
|
1233
|
+
:return: Externalv1Cluster
|
|
999
1234
|
If the method is called asynchronously,
|
|
1000
1235
|
returns the request thread.
|
|
1001
1236
|
"""
|
|
1002
1237
|
kwargs['_return_http_data_only'] = True
|
|
1003
1238
|
if kwargs.get('async_req'):
|
|
1004
|
-
return self.
|
|
1239
|
+
return self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
1005
1240
|
else:
|
|
1006
|
-
(data) = self.
|
|
1241
|
+
(data) = self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
1007
1242
|
return data
|
|
1008
1243
|
|
|
1009
|
-
def
|
|
1010
|
-
"""
|
|
1244
|
+
def cluster_service_get_cluster_with_http_info(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
1245
|
+
"""cluster_service_get_cluster # noqa: E501
|
|
1011
1246
|
|
|
1012
1247
|
This method makes a synchronous HTTP request by default. To make an
|
|
1013
1248
|
asynchronous HTTP request, please pass async_req=True
|
|
1014
|
-
>>> thread = api.
|
|
1249
|
+
>>> thread = api.cluster_service_get_cluster_with_http_info(id, async_req=True)
|
|
1015
1250
|
>>> result = thread.get()
|
|
1016
1251
|
|
|
1017
1252
|
:param async_req bool
|
|
1253
|
+
:param str id: (required)
|
|
1018
1254
|
:param str org_id:
|
|
1019
|
-
:param str
|
|
1020
|
-
:return:
|
|
1255
|
+
:param str project_id:
|
|
1256
|
+
:return: Externalv1Cluster
|
|
1021
1257
|
If the method is called asynchronously,
|
|
1022
1258
|
returns the request thread.
|
|
1023
1259
|
"""
|
|
1024
1260
|
|
|
1025
|
-
all_params = ['org_id', '
|
|
1261
|
+
all_params = ['id', 'org_id', 'project_id'] # noqa: E501
|
|
1026
1262
|
all_params.append('async_req')
|
|
1027
1263
|
all_params.append('_return_http_data_only')
|
|
1028
1264
|
all_params.append('_preload_content')
|
|
@@ -1033,20 +1269,26 @@ class ClusterServiceApi(object):
|
|
|
1033
1269
|
if key not in all_params:
|
|
1034
1270
|
raise TypeError(
|
|
1035
1271
|
"Got an unexpected keyword argument '%s'"
|
|
1036
|
-
" to method
|
|
1272
|
+
" to method cluster_service_get_cluster" % key
|
|
1037
1273
|
)
|
|
1038
1274
|
params[key] = val
|
|
1039
1275
|
del params['kwargs']
|
|
1276
|
+
# verify the required parameter 'id' is set
|
|
1277
|
+
if ('id' not in params or
|
|
1278
|
+
params['id'] is None):
|
|
1279
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster`") # noqa: E501
|
|
1040
1280
|
|
|
1041
1281
|
collection_formats = {}
|
|
1042
1282
|
|
|
1043
1283
|
path_params = {}
|
|
1284
|
+
if 'id' in params:
|
|
1285
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1044
1286
|
|
|
1045
1287
|
query_params = []
|
|
1046
1288
|
if 'org_id' in params:
|
|
1047
1289
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1048
|
-
if '
|
|
1049
|
-
query_params.append(('
|
|
1290
|
+
if 'project_id' in params:
|
|
1291
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1050
1292
|
|
|
1051
1293
|
header_params = {}
|
|
1052
1294
|
|
|
@@ -1062,14 +1304,14 @@ class ClusterServiceApi(object):
|
|
|
1062
1304
|
auth_settings = [] # noqa: E501
|
|
1063
1305
|
|
|
1064
1306
|
return self.api_client.call_api(
|
|
1065
|
-
'/v1/core/
|
|
1307
|
+
'/v1/core/clusters/{id}', 'GET',
|
|
1066
1308
|
path_params,
|
|
1067
1309
|
query_params,
|
|
1068
1310
|
header_params,
|
|
1069
1311
|
body=body_params,
|
|
1070
1312
|
post_params=form_params,
|
|
1071
1313
|
files=local_var_files,
|
|
1072
|
-
response_type='
|
|
1314
|
+
response_type='Externalv1Cluster', # noqa: E501
|
|
1073
1315
|
auth_settings=auth_settings,
|
|
1074
1316
|
async_req=params.get('async_req'),
|
|
1075
1317
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1077,41 +1319,45 @@ class ClusterServiceApi(object):
|
|
|
1077
1319
|
_request_timeout=params.get('_request_timeout'),
|
|
1078
1320
|
collection_formats=collection_formats)
|
|
1079
1321
|
|
|
1080
|
-
def
|
|
1081
|
-
"""
|
|
1082
|
-
|
|
1322
|
+
def cluster_service_get_cluster_availability(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
|
|
1323
|
+
"""cluster_service_get_cluster_availability # noqa: E501
|
|
1324
|
+
|
|
1083
1325
|
This method makes a synchronous HTTP request by default. To make an
|
|
1084
1326
|
asynchronous HTTP request, please pass async_req=True
|
|
1085
|
-
>>> thread = api.
|
|
1327
|
+
>>> thread = api.cluster_service_get_cluster_availability(async_req=True)
|
|
1086
1328
|
>>> result = thread.get()
|
|
1087
1329
|
|
|
1088
1330
|
:param async_req bool
|
|
1089
|
-
:
|
|
1331
|
+
:param str org_id:
|
|
1332
|
+
:param str cluster_id:
|
|
1333
|
+
:return: V1ClusterAvailability
|
|
1090
1334
|
If the method is called asynchronously,
|
|
1091
1335
|
returns the request thread.
|
|
1092
1336
|
"""
|
|
1093
1337
|
kwargs['_return_http_data_only'] = True
|
|
1094
1338
|
if kwargs.get('async_req'):
|
|
1095
|
-
return self.
|
|
1339
|
+
return self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
|
|
1096
1340
|
else:
|
|
1097
|
-
(data) = self.
|
|
1341
|
+
(data) = self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
|
|
1098
1342
|
return data
|
|
1099
1343
|
|
|
1100
|
-
def
|
|
1101
|
-
"""
|
|
1344
|
+
def cluster_service_get_cluster_availability_with_http_info(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
|
|
1345
|
+
"""cluster_service_get_cluster_availability # noqa: E501
|
|
1102
1346
|
|
|
1103
1347
|
This method makes a synchronous HTTP request by default. To make an
|
|
1104
1348
|
asynchronous HTTP request, please pass async_req=True
|
|
1105
|
-
>>> thread = api.
|
|
1349
|
+
>>> thread = api.cluster_service_get_cluster_availability_with_http_info(async_req=True)
|
|
1106
1350
|
>>> result = thread.get()
|
|
1107
1351
|
|
|
1108
1352
|
:param async_req bool
|
|
1109
|
-
:
|
|
1353
|
+
:param str org_id:
|
|
1354
|
+
:param str cluster_id:
|
|
1355
|
+
:return: V1ClusterAvailability
|
|
1110
1356
|
If the method is called asynchronously,
|
|
1111
1357
|
returns the request thread.
|
|
1112
1358
|
"""
|
|
1113
1359
|
|
|
1114
|
-
all_params = [] # noqa: E501
|
|
1360
|
+
all_params = ['org_id', 'cluster_id'] # noqa: E501
|
|
1115
1361
|
all_params.append('async_req')
|
|
1116
1362
|
all_params.append('_return_http_data_only')
|
|
1117
1363
|
all_params.append('_preload_content')
|
|
@@ -1122,7 +1368,7 @@ class ClusterServiceApi(object):
|
|
|
1122
1368
|
if key not in all_params:
|
|
1123
1369
|
raise TypeError(
|
|
1124
1370
|
"Got an unexpected keyword argument '%s'"
|
|
1125
|
-
" to method
|
|
1371
|
+
" to method cluster_service_get_cluster_availability" % key
|
|
1126
1372
|
)
|
|
1127
1373
|
params[key] = val
|
|
1128
1374
|
del params['kwargs']
|
|
@@ -1132,6 +1378,10 @@ class ClusterServiceApi(object):
|
|
|
1132
1378
|
path_params = {}
|
|
1133
1379
|
|
|
1134
1380
|
query_params = []
|
|
1381
|
+
if 'org_id' in params:
|
|
1382
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1383
|
+
if 'cluster_id' in params:
|
|
1384
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
1135
1385
|
|
|
1136
1386
|
header_params = {}
|
|
1137
1387
|
|
|
@@ -1147,14 +1397,14 @@ class ClusterServiceApi(object):
|
|
|
1147
1397
|
auth_settings = [] # noqa: E501
|
|
1148
1398
|
|
|
1149
1399
|
return self.api_client.call_api(
|
|
1150
|
-
'/v1/core/cluster-
|
|
1400
|
+
'/v1/core/cluster-availability', 'GET',
|
|
1151
1401
|
path_params,
|
|
1152
1402
|
query_params,
|
|
1153
1403
|
header_params,
|
|
1154
1404
|
body=body_params,
|
|
1155
1405
|
post_params=form_params,
|
|
1156
1406
|
files=local_var_files,
|
|
1157
|
-
response_type='
|
|
1407
|
+
response_type='V1ClusterAvailability', # noqa: E501
|
|
1158
1408
|
auth_settings=auth_settings,
|
|
1159
1409
|
async_req=params.get('async_req'),
|
|
1160
1410
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1162,43 +1412,41 @@ class ClusterServiceApi(object):
|
|
|
1162
1412
|
_request_timeout=params.get('_request_timeout'),
|
|
1163
1413
|
collection_formats=collection_formats)
|
|
1164
1414
|
|
|
1165
|
-
def
|
|
1166
|
-
"""
|
|
1415
|
+
def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
|
|
1416
|
+
"""cluster_service_get_cluster_credentials # noqa: E501
|
|
1167
1417
|
|
|
1168
1418
|
This method makes a synchronous HTTP request by default. To make an
|
|
1169
1419
|
asynchronous HTTP request, please pass async_req=True
|
|
1170
|
-
>>> thread = api.
|
|
1420
|
+
>>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
|
|
1171
1421
|
>>> result = thread.get()
|
|
1172
1422
|
|
|
1173
1423
|
:param async_req bool
|
|
1174
|
-
:
|
|
1175
|
-
:return: V1GetClusterHealthResponse
|
|
1424
|
+
:return: V1GetClusterCredentialsResponse
|
|
1176
1425
|
If the method is called asynchronously,
|
|
1177
1426
|
returns the request thread.
|
|
1178
1427
|
"""
|
|
1179
1428
|
kwargs['_return_http_data_only'] = True
|
|
1180
1429
|
if kwargs.get('async_req'):
|
|
1181
|
-
return self.
|
|
1430
|
+
return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
|
|
1182
1431
|
else:
|
|
1183
|
-
(data) = self.
|
|
1432
|
+
(data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
|
|
1184
1433
|
return data
|
|
1185
1434
|
|
|
1186
|
-
def
|
|
1187
|
-
"""
|
|
1435
|
+
def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
|
|
1436
|
+
"""cluster_service_get_cluster_credentials # noqa: E501
|
|
1188
1437
|
|
|
1189
1438
|
This method makes a synchronous HTTP request by default. To make an
|
|
1190
1439
|
asynchronous HTTP request, please pass async_req=True
|
|
1191
|
-
>>> thread = api.
|
|
1440
|
+
>>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
|
|
1192
1441
|
>>> result = thread.get()
|
|
1193
1442
|
|
|
1194
1443
|
:param async_req bool
|
|
1195
|
-
:
|
|
1196
|
-
:return: V1GetClusterHealthResponse
|
|
1444
|
+
:return: V1GetClusterCredentialsResponse
|
|
1197
1445
|
If the method is called asynchronously,
|
|
1198
1446
|
returns the request thread.
|
|
1199
1447
|
"""
|
|
1200
1448
|
|
|
1201
|
-
all_params = [
|
|
1449
|
+
all_params = [] # noqa: E501
|
|
1202
1450
|
all_params.append('async_req')
|
|
1203
1451
|
all_params.append('_return_http_data_only')
|
|
1204
1452
|
all_params.append('_preload_content')
|
|
@@ -1209,20 +1457,14 @@ class ClusterServiceApi(object):
|
|
|
1209
1457
|
if key not in all_params:
|
|
1210
1458
|
raise TypeError(
|
|
1211
1459
|
"Got an unexpected keyword argument '%s'"
|
|
1212
|
-
" to method
|
|
1460
|
+
" to method cluster_service_get_cluster_credentials" % key
|
|
1213
1461
|
)
|
|
1214
1462
|
params[key] = val
|
|
1215
1463
|
del params['kwargs']
|
|
1216
|
-
# verify the required parameter 'id' is set
|
|
1217
|
-
if ('id' not in params or
|
|
1218
|
-
params['id'] is None):
|
|
1219
|
-
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
|
|
1220
1464
|
|
|
1221
1465
|
collection_formats = {}
|
|
1222
1466
|
|
|
1223
1467
|
path_params = {}
|
|
1224
|
-
if 'id' in params:
|
|
1225
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1226
1468
|
|
|
1227
1469
|
query_params = []
|
|
1228
1470
|
|
|
@@ -1240,14 +1482,14 @@ class ClusterServiceApi(object):
|
|
|
1240
1482
|
auth_settings = [] # noqa: E501
|
|
1241
1483
|
|
|
1242
1484
|
return self.api_client.call_api(
|
|
1243
|
-
'/v1/core/
|
|
1485
|
+
'/v1/core/cluster-credentials', 'GET',
|
|
1244
1486
|
path_params,
|
|
1245
1487
|
query_params,
|
|
1246
1488
|
header_params,
|
|
1247
1489
|
body=body_params,
|
|
1248
1490
|
post_params=form_params,
|
|
1249
1491
|
files=local_var_files,
|
|
1250
|
-
response_type='
|
|
1492
|
+
response_type='V1GetClusterCredentialsResponse', # noqa: E501
|
|
1251
1493
|
auth_settings=auth_settings,
|
|
1252
1494
|
async_req=params.get('async_req'),
|
|
1253
1495
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1356,6 +1598,111 @@ class ClusterServiceApi(object):
|
|
|
1356
1598
|
_request_timeout=params.get('_request_timeout'),
|
|
1357
1599
|
collection_formats=collection_formats)
|
|
1358
1600
|
|
|
1601
|
+
def cluster_service_interrupt_server(self, body: 'object', server_id: 'str', **kwargs) -> 'V1InterruptServerResponse': # noqa: E501
|
|
1602
|
+
"""cluster_service_interrupt_server # noqa: E501
|
|
1603
|
+
|
|
1604
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1605
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1606
|
+
>>> thread = api.cluster_service_interrupt_server(body, server_id, async_req=True)
|
|
1607
|
+
>>> result = thread.get()
|
|
1608
|
+
|
|
1609
|
+
:param async_req bool
|
|
1610
|
+
:param object body: (required)
|
|
1611
|
+
:param str server_id: (required)
|
|
1612
|
+
:return: V1InterruptServerResponse
|
|
1613
|
+
If the method is called asynchronously,
|
|
1614
|
+
returns the request thread.
|
|
1615
|
+
"""
|
|
1616
|
+
kwargs['_return_http_data_only'] = True
|
|
1617
|
+
if kwargs.get('async_req'):
|
|
1618
|
+
return self.cluster_service_interrupt_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
1619
|
+
else:
|
|
1620
|
+
(data) = self.cluster_service_interrupt_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
1621
|
+
return data
|
|
1622
|
+
|
|
1623
|
+
def cluster_service_interrupt_server_with_http_info(self, body: 'object', server_id: 'str', **kwargs) -> 'V1InterruptServerResponse': # noqa: E501
|
|
1624
|
+
"""cluster_service_interrupt_server # noqa: E501
|
|
1625
|
+
|
|
1626
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1627
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1628
|
+
>>> thread = api.cluster_service_interrupt_server_with_http_info(body, server_id, async_req=True)
|
|
1629
|
+
>>> result = thread.get()
|
|
1630
|
+
|
|
1631
|
+
:param async_req bool
|
|
1632
|
+
:param object body: (required)
|
|
1633
|
+
:param str server_id: (required)
|
|
1634
|
+
:return: V1InterruptServerResponse
|
|
1635
|
+
If the method is called asynchronously,
|
|
1636
|
+
returns the request thread.
|
|
1637
|
+
"""
|
|
1638
|
+
|
|
1639
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
1640
|
+
all_params.append('async_req')
|
|
1641
|
+
all_params.append('_return_http_data_only')
|
|
1642
|
+
all_params.append('_preload_content')
|
|
1643
|
+
all_params.append('_request_timeout')
|
|
1644
|
+
|
|
1645
|
+
params = locals()
|
|
1646
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1647
|
+
if key not in all_params:
|
|
1648
|
+
raise TypeError(
|
|
1649
|
+
"Got an unexpected keyword argument '%s'"
|
|
1650
|
+
" to method cluster_service_interrupt_server" % key
|
|
1651
|
+
)
|
|
1652
|
+
params[key] = val
|
|
1653
|
+
del params['kwargs']
|
|
1654
|
+
# verify the required parameter 'body' is set
|
|
1655
|
+
if ('body' not in params or
|
|
1656
|
+
params['body'] is None):
|
|
1657
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_interrupt_server`") # noqa: E501
|
|
1658
|
+
# verify the required parameter 'server_id' is set
|
|
1659
|
+
if ('server_id' not in params or
|
|
1660
|
+
params['server_id'] is None):
|
|
1661
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_interrupt_server`") # noqa: E501
|
|
1662
|
+
|
|
1663
|
+
collection_formats = {}
|
|
1664
|
+
|
|
1665
|
+
path_params = {}
|
|
1666
|
+
if 'server_id' in params:
|
|
1667
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
1668
|
+
|
|
1669
|
+
query_params = []
|
|
1670
|
+
|
|
1671
|
+
header_params = {}
|
|
1672
|
+
|
|
1673
|
+
form_params = []
|
|
1674
|
+
local_var_files = {}
|
|
1675
|
+
|
|
1676
|
+
body_params = None
|
|
1677
|
+
if 'body' in params:
|
|
1678
|
+
body_params = params['body']
|
|
1679
|
+
# HTTP header `Accept`
|
|
1680
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1681
|
+
['application/json']) # noqa: E501
|
|
1682
|
+
|
|
1683
|
+
# HTTP header `Content-Type`
|
|
1684
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1685
|
+
['application/json']) # noqa: E501
|
|
1686
|
+
|
|
1687
|
+
# Authentication setting
|
|
1688
|
+
auth_settings = [] # noqa: E501
|
|
1689
|
+
|
|
1690
|
+
return self.api_client.call_api(
|
|
1691
|
+
'/v1/core/servers/{serverId}/interrupt', 'POST',
|
|
1692
|
+
path_params,
|
|
1693
|
+
query_params,
|
|
1694
|
+
header_params,
|
|
1695
|
+
body=body_params,
|
|
1696
|
+
post_params=form_params,
|
|
1697
|
+
files=local_var_files,
|
|
1698
|
+
response_type='V1InterruptServerResponse', # noqa: E501
|
|
1699
|
+
auth_settings=auth_settings,
|
|
1700
|
+
async_req=params.get('async_req'),
|
|
1701
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1702
|
+
_preload_content=params.get('_preload_content', True),
|
|
1703
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1704
|
+
collection_formats=collection_formats)
|
|
1705
|
+
|
|
1359
1706
|
def cluster_service_list_cluster_accelerators(self, id: 'str', **kwargs) -> 'V1ListClusterAcceleratorsResponse': # noqa: E501
|
|
1360
1707
|
"""cluster_service_list_cluster_accelerators # noqa: E501
|
|
1361
1708
|
|
|
@@ -1461,6 +1808,95 @@ class ClusterServiceApi(object):
|
|
|
1461
1808
|
_request_timeout=params.get('_request_timeout'),
|
|
1462
1809
|
collection_formats=collection_formats)
|
|
1463
1810
|
|
|
1811
|
+
def cluster_service_list_cluster_availabilities(self, **kwargs) -> 'V1ListClusterAvailabilitiesResponse': # noqa: E501
|
|
1812
|
+
"""cluster_service_list_cluster_availabilities # noqa: E501
|
|
1813
|
+
|
|
1814
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1815
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1816
|
+
>>> thread = api.cluster_service_list_cluster_availabilities(async_req=True)
|
|
1817
|
+
>>> result = thread.get()
|
|
1818
|
+
|
|
1819
|
+
:param async_req bool
|
|
1820
|
+
:param str org_id:
|
|
1821
|
+
:return: V1ListClusterAvailabilitiesResponse
|
|
1822
|
+
If the method is called asynchronously,
|
|
1823
|
+
returns the request thread.
|
|
1824
|
+
"""
|
|
1825
|
+
kwargs['_return_http_data_only'] = True
|
|
1826
|
+
if kwargs.get('async_req'):
|
|
1827
|
+
return self.cluster_service_list_cluster_availabilities_with_http_info(**kwargs) # noqa: E501
|
|
1828
|
+
else:
|
|
1829
|
+
(data) = self.cluster_service_list_cluster_availabilities_with_http_info(**kwargs) # noqa: E501
|
|
1830
|
+
return data
|
|
1831
|
+
|
|
1832
|
+
def cluster_service_list_cluster_availabilities_with_http_info(self, **kwargs) -> 'V1ListClusterAvailabilitiesResponse': # noqa: E501
|
|
1833
|
+
"""cluster_service_list_cluster_availabilities # noqa: E501
|
|
1834
|
+
|
|
1835
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1836
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1837
|
+
>>> thread = api.cluster_service_list_cluster_availabilities_with_http_info(async_req=True)
|
|
1838
|
+
>>> result = thread.get()
|
|
1839
|
+
|
|
1840
|
+
:param async_req bool
|
|
1841
|
+
:param str org_id:
|
|
1842
|
+
:return: V1ListClusterAvailabilitiesResponse
|
|
1843
|
+
If the method is called asynchronously,
|
|
1844
|
+
returns the request thread.
|
|
1845
|
+
"""
|
|
1846
|
+
|
|
1847
|
+
all_params = ['org_id'] # noqa: E501
|
|
1848
|
+
all_params.append('async_req')
|
|
1849
|
+
all_params.append('_return_http_data_only')
|
|
1850
|
+
all_params.append('_preload_content')
|
|
1851
|
+
all_params.append('_request_timeout')
|
|
1852
|
+
|
|
1853
|
+
params = locals()
|
|
1854
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1855
|
+
if key not in all_params:
|
|
1856
|
+
raise TypeError(
|
|
1857
|
+
"Got an unexpected keyword argument '%s'"
|
|
1858
|
+
" to method cluster_service_list_cluster_availabilities" % key
|
|
1859
|
+
)
|
|
1860
|
+
params[key] = val
|
|
1861
|
+
del params['kwargs']
|
|
1862
|
+
|
|
1863
|
+
collection_formats = {}
|
|
1864
|
+
|
|
1865
|
+
path_params = {}
|
|
1866
|
+
|
|
1867
|
+
query_params = []
|
|
1868
|
+
if 'org_id' in params:
|
|
1869
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1870
|
+
|
|
1871
|
+
header_params = {}
|
|
1872
|
+
|
|
1873
|
+
form_params = []
|
|
1874
|
+
local_var_files = {}
|
|
1875
|
+
|
|
1876
|
+
body_params = None
|
|
1877
|
+
# HTTP header `Accept`
|
|
1878
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1879
|
+
['application/json']) # noqa: E501
|
|
1880
|
+
|
|
1881
|
+
# Authentication setting
|
|
1882
|
+
auth_settings = [] # noqa: E501
|
|
1883
|
+
|
|
1884
|
+
return self.api_client.call_api(
|
|
1885
|
+
'/v1/core/cluster-availabilities', 'GET',
|
|
1886
|
+
path_params,
|
|
1887
|
+
query_params,
|
|
1888
|
+
header_params,
|
|
1889
|
+
body=body_params,
|
|
1890
|
+
post_params=form_params,
|
|
1891
|
+
files=local_var_files,
|
|
1892
|
+
response_type='V1ListClusterAvailabilitiesResponse', # noqa: E501
|
|
1893
|
+
auth_settings=auth_settings,
|
|
1894
|
+
async_req=params.get('async_req'),
|
|
1895
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1896
|
+
_preload_content=params.get('_preload_content', True),
|
|
1897
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1898
|
+
collection_formats=collection_formats)
|
|
1899
|
+
|
|
1464
1900
|
def cluster_service_list_cluster_capacity_reservations(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1ListClusterCapacityReservationsResponse': # noqa: E501
|
|
1465
1901
|
"""cluster_service_list_cluster_capacity_reservations # noqa: E501
|
|
1466
1902
|
|
|
@@ -1562,43 +1998,45 @@ class ClusterServiceApi(object):
|
|
|
1562
1998
|
_request_timeout=params.get('_request_timeout'),
|
|
1563
1999
|
collection_formats=collection_formats)
|
|
1564
2000
|
|
|
1565
|
-
def
|
|
1566
|
-
"""
|
|
2001
|
+
def cluster_service_list_cluster_proxies(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterProxiesResponse': # noqa: E501
|
|
2002
|
+
"""cluster_service_list_cluster_proxies # noqa: E501
|
|
1567
2003
|
|
|
1568
2004
|
This method makes a synchronous HTTP request by default. To make an
|
|
1569
2005
|
asynchronous HTTP request, please pass async_req=True
|
|
1570
|
-
>>> thread = api.
|
|
2006
|
+
>>> thread = api.cluster_service_list_cluster_proxies(cluster_id, async_req=True)
|
|
1571
2007
|
>>> result = thread.get()
|
|
1572
2008
|
|
|
1573
2009
|
:param async_req bool
|
|
1574
|
-
:param str
|
|
1575
|
-
:
|
|
2010
|
+
:param str cluster_id: (required)
|
|
2011
|
+
:param str org_id:
|
|
2012
|
+
:return: V1ListClusterProxiesResponse
|
|
1576
2013
|
If the method is called asynchronously,
|
|
1577
2014
|
returns the request thread.
|
|
1578
2015
|
"""
|
|
1579
2016
|
kwargs['_return_http_data_only'] = True
|
|
1580
2017
|
if kwargs.get('async_req'):
|
|
1581
|
-
return self.
|
|
2018
|
+
return self.cluster_service_list_cluster_proxies_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
1582
2019
|
else:
|
|
1583
|
-
(data) = self.
|
|
2020
|
+
(data) = self.cluster_service_list_cluster_proxies_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
1584
2021
|
return data
|
|
1585
2022
|
|
|
1586
|
-
def
|
|
1587
|
-
"""
|
|
2023
|
+
def cluster_service_list_cluster_proxies_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterProxiesResponse': # noqa: E501
|
|
2024
|
+
"""cluster_service_list_cluster_proxies # noqa: E501
|
|
1588
2025
|
|
|
1589
2026
|
This method makes a synchronous HTTP request by default. To make an
|
|
1590
2027
|
asynchronous HTTP request, please pass async_req=True
|
|
1591
|
-
>>> thread = api.
|
|
2028
|
+
>>> thread = api.cluster_service_list_cluster_proxies_with_http_info(cluster_id, async_req=True)
|
|
1592
2029
|
>>> result = thread.get()
|
|
1593
2030
|
|
|
1594
2031
|
:param async_req bool
|
|
1595
|
-
:param str
|
|
1596
|
-
:
|
|
2032
|
+
:param str cluster_id: (required)
|
|
2033
|
+
:param str org_id:
|
|
2034
|
+
:return: V1ListClusterProxiesResponse
|
|
1597
2035
|
If the method is called asynchronously,
|
|
1598
2036
|
returns the request thread.
|
|
1599
2037
|
"""
|
|
1600
2038
|
|
|
1601
|
-
all_params = ['
|
|
2039
|
+
all_params = ['cluster_id', 'org_id'] # noqa: E501
|
|
1602
2040
|
all_params.append('async_req')
|
|
1603
2041
|
all_params.append('_return_http_data_only')
|
|
1604
2042
|
all_params.append('_preload_content')
|
|
@@ -1609,22 +2047,24 @@ class ClusterServiceApi(object):
|
|
|
1609
2047
|
if key not in all_params:
|
|
1610
2048
|
raise TypeError(
|
|
1611
2049
|
"Got an unexpected keyword argument '%s'"
|
|
1612
|
-
" to method
|
|
2050
|
+
" to method cluster_service_list_cluster_proxies" % key
|
|
1613
2051
|
)
|
|
1614
2052
|
params[key] = val
|
|
1615
2053
|
del params['kwargs']
|
|
1616
|
-
# verify the required parameter '
|
|
1617
|
-
if ('
|
|
1618
|
-
params['
|
|
1619
|
-
raise ValueError("Missing the required parameter `
|
|
2054
|
+
# verify the required parameter 'cluster_id' is set
|
|
2055
|
+
if ('cluster_id' not in params or
|
|
2056
|
+
params['cluster_id'] is None):
|
|
2057
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_cluster_proxies`") # noqa: E501
|
|
1620
2058
|
|
|
1621
2059
|
collection_formats = {}
|
|
1622
2060
|
|
|
1623
2061
|
path_params = {}
|
|
1624
|
-
if '
|
|
1625
|
-
path_params['
|
|
2062
|
+
if 'cluster_id' in params:
|
|
2063
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1626
2064
|
|
|
1627
2065
|
query_params = []
|
|
2066
|
+
if 'org_id' in params:
|
|
2067
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1628
2068
|
|
|
1629
2069
|
header_params = {}
|
|
1630
2070
|
|
|
@@ -1640,14 +2080,14 @@ class ClusterServiceApi(object):
|
|
|
1640
2080
|
auth_settings = [] # noqa: E501
|
|
1641
2081
|
|
|
1642
2082
|
return self.api_client.call_api(
|
|
1643
|
-
'/v1/core/clusters/{
|
|
2083
|
+
'/v1/core/clusters/{clusterId}/proxies', 'GET',
|
|
1644
2084
|
path_params,
|
|
1645
2085
|
query_params,
|
|
1646
2086
|
header_params,
|
|
1647
2087
|
body=body_params,
|
|
1648
2088
|
post_params=form_params,
|
|
1649
2089
|
files=local_var_files,
|
|
1650
|
-
response_type='
|
|
2090
|
+
response_type='V1ListClusterProxiesResponse', # noqa: E501
|
|
1651
2091
|
auth_settings=auth_settings,
|
|
1652
2092
|
async_req=params.get('async_req'),
|
|
1653
2093
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1757,6 +2197,7 @@ class ClusterServiceApi(object):
|
|
|
1757
2197
|
>>> result = thread.get()
|
|
1758
2198
|
|
|
1759
2199
|
:param async_req bool
|
|
2200
|
+
:param bool include_pricing:
|
|
1760
2201
|
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
1761
2202
|
If the method is called asynchronously,
|
|
1762
2203
|
returns the request thread.
|
|
@@ -1777,12 +2218,13 @@ class ClusterServiceApi(object):
|
|
|
1777
2218
|
>>> result = thread.get()
|
|
1778
2219
|
|
|
1779
2220
|
:param async_req bool
|
|
2221
|
+
:param bool include_pricing:
|
|
1780
2222
|
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
1781
2223
|
If the method is called asynchronously,
|
|
1782
2224
|
returns the request thread.
|
|
1783
2225
|
"""
|
|
1784
2226
|
|
|
1785
|
-
all_params = [] # noqa: E501
|
|
2227
|
+
all_params = ['include_pricing'] # noqa: E501
|
|
1786
2228
|
all_params.append('async_req')
|
|
1787
2229
|
all_params.append('_return_http_data_only')
|
|
1788
2230
|
all_params.append('_preload_content')
|
|
@@ -1803,6 +2245,8 @@ class ClusterServiceApi(object):
|
|
|
1803
2245
|
path_params = {}
|
|
1804
2246
|
|
|
1805
2247
|
query_params = []
|
|
2248
|
+
if 'include_pricing' in params:
|
|
2249
|
+
query_params.append(('includePricing', params['include_pricing'])) # noqa: E501
|
|
1806
2250
|
|
|
1807
2251
|
header_params = {}
|
|
1808
2252
|
|
|
@@ -2124,6 +2568,321 @@ class ClusterServiceApi(object):
|
|
|
2124
2568
|
_request_timeout=params.get('_request_timeout'),
|
|
2125
2569
|
collection_formats=collection_formats)
|
|
2126
2570
|
|
|
2571
|
+
def cluster_service_purchase_capacity_block(self, body: 'ClusterIdCapacityblockBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1PurchaseCapacityBlockResponse': # noqa: E501
|
|
2572
|
+
"""cluster_service_purchase_capacity_block # noqa: E501
|
|
2573
|
+
|
|
2574
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2575
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2576
|
+
>>> thread = api.cluster_service_purchase_capacity_block(body, project_id, cluster_id, async_req=True)
|
|
2577
|
+
>>> result = thread.get()
|
|
2578
|
+
|
|
2579
|
+
:param async_req bool
|
|
2580
|
+
:param ClusterIdCapacityblockBody body: (required)
|
|
2581
|
+
:param str project_id: (required)
|
|
2582
|
+
:param str cluster_id: (required)
|
|
2583
|
+
:return: V1PurchaseCapacityBlockResponse
|
|
2584
|
+
If the method is called asynchronously,
|
|
2585
|
+
returns the request thread.
|
|
2586
|
+
"""
|
|
2587
|
+
kwargs['_return_http_data_only'] = True
|
|
2588
|
+
if kwargs.get('async_req'):
|
|
2589
|
+
return self.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, **kwargs) # noqa: E501
|
|
2590
|
+
else:
|
|
2591
|
+
(data) = self.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, **kwargs) # noqa: E501
|
|
2592
|
+
return data
|
|
2593
|
+
|
|
2594
|
+
def cluster_service_purchase_capacity_block_with_http_info(self, body: 'ClusterIdCapacityblockBody', project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1PurchaseCapacityBlockResponse': # noqa: E501
|
|
2595
|
+
"""cluster_service_purchase_capacity_block # noqa: E501
|
|
2596
|
+
|
|
2597
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2598
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2599
|
+
>>> thread = api.cluster_service_purchase_capacity_block_with_http_info(body, project_id, cluster_id, async_req=True)
|
|
2600
|
+
>>> result = thread.get()
|
|
2601
|
+
|
|
2602
|
+
:param async_req bool
|
|
2603
|
+
:param ClusterIdCapacityblockBody body: (required)
|
|
2604
|
+
:param str project_id: (required)
|
|
2605
|
+
:param str cluster_id: (required)
|
|
2606
|
+
:return: V1PurchaseCapacityBlockResponse
|
|
2607
|
+
If the method is called asynchronously,
|
|
2608
|
+
returns the request thread.
|
|
2609
|
+
"""
|
|
2610
|
+
|
|
2611
|
+
all_params = ['body', 'project_id', 'cluster_id'] # noqa: E501
|
|
2612
|
+
all_params.append('async_req')
|
|
2613
|
+
all_params.append('_return_http_data_only')
|
|
2614
|
+
all_params.append('_preload_content')
|
|
2615
|
+
all_params.append('_request_timeout')
|
|
2616
|
+
|
|
2617
|
+
params = locals()
|
|
2618
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2619
|
+
if key not in all_params:
|
|
2620
|
+
raise TypeError(
|
|
2621
|
+
"Got an unexpected keyword argument '%s'"
|
|
2622
|
+
" to method cluster_service_purchase_capacity_block" % key
|
|
2623
|
+
)
|
|
2624
|
+
params[key] = val
|
|
2625
|
+
del params['kwargs']
|
|
2626
|
+
# verify the required parameter 'body' is set
|
|
2627
|
+
if ('body' not in params or
|
|
2628
|
+
params['body'] is None):
|
|
2629
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
|
|
2630
|
+
# verify the required parameter 'project_id' is set
|
|
2631
|
+
if ('project_id' not in params or
|
|
2632
|
+
params['project_id'] is None):
|
|
2633
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
|
|
2634
|
+
# verify the required parameter 'cluster_id' is set
|
|
2635
|
+
if ('cluster_id' not in params or
|
|
2636
|
+
params['cluster_id'] is None):
|
|
2637
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_purchase_capacity_block`") # noqa: E501
|
|
2638
|
+
|
|
2639
|
+
collection_formats = {}
|
|
2640
|
+
|
|
2641
|
+
path_params = {}
|
|
2642
|
+
if 'project_id' in params:
|
|
2643
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
2644
|
+
if 'cluster_id' in params:
|
|
2645
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2646
|
+
|
|
2647
|
+
query_params = []
|
|
2648
|
+
|
|
2649
|
+
header_params = {}
|
|
2650
|
+
|
|
2651
|
+
form_params = []
|
|
2652
|
+
local_var_files = {}
|
|
2653
|
+
|
|
2654
|
+
body_params = None
|
|
2655
|
+
if 'body' in params:
|
|
2656
|
+
body_params = params['body']
|
|
2657
|
+
# HTTP header `Accept`
|
|
2658
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2659
|
+
['application/json']) # noqa: E501
|
|
2660
|
+
|
|
2661
|
+
# HTTP header `Content-Type`
|
|
2662
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2663
|
+
['application/json']) # noqa: E501
|
|
2664
|
+
|
|
2665
|
+
# Authentication setting
|
|
2666
|
+
auth_settings = [] # noqa: E501
|
|
2667
|
+
|
|
2668
|
+
return self.api_client.call_api(
|
|
2669
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/capacity-block', 'POST',
|
|
2670
|
+
path_params,
|
|
2671
|
+
query_params,
|
|
2672
|
+
header_params,
|
|
2673
|
+
body=body_params,
|
|
2674
|
+
post_params=form_params,
|
|
2675
|
+
files=local_var_files,
|
|
2676
|
+
response_type='V1PurchaseCapacityBlockResponse', # noqa: E501
|
|
2677
|
+
auth_settings=auth_settings,
|
|
2678
|
+
async_req=params.get('async_req'),
|
|
2679
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2680
|
+
_preload_content=params.get('_preload_content', True),
|
|
2681
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2682
|
+
collection_formats=collection_formats)
|
|
2683
|
+
|
|
2684
|
+
def cluster_service_request_cluster_access(self, body: 'V1RequestClusterAccessRequest', **kwargs) -> 'V1RequestClusterAccessResponse': # noqa: E501
|
|
2685
|
+
"""cluster_service_request_cluster_access # noqa: E501
|
|
2686
|
+
|
|
2687
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2688
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2689
|
+
>>> thread = api.cluster_service_request_cluster_access(body, async_req=True)
|
|
2690
|
+
>>> result = thread.get()
|
|
2691
|
+
|
|
2692
|
+
:param async_req bool
|
|
2693
|
+
:param V1RequestClusterAccessRequest body: (required)
|
|
2694
|
+
:return: V1RequestClusterAccessResponse
|
|
2695
|
+
If the method is called asynchronously,
|
|
2696
|
+
returns the request thread.
|
|
2697
|
+
"""
|
|
2698
|
+
kwargs['_return_http_data_only'] = True
|
|
2699
|
+
if kwargs.get('async_req'):
|
|
2700
|
+
return self.cluster_service_request_cluster_access_with_http_info(body, **kwargs) # noqa: E501
|
|
2701
|
+
else:
|
|
2702
|
+
(data) = self.cluster_service_request_cluster_access_with_http_info(body, **kwargs) # noqa: E501
|
|
2703
|
+
return data
|
|
2704
|
+
|
|
2705
|
+
def cluster_service_request_cluster_access_with_http_info(self, body: 'V1RequestClusterAccessRequest', **kwargs) -> 'V1RequestClusterAccessResponse': # noqa: E501
|
|
2706
|
+
"""cluster_service_request_cluster_access # noqa: E501
|
|
2707
|
+
|
|
2708
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2709
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2710
|
+
>>> thread = api.cluster_service_request_cluster_access_with_http_info(body, async_req=True)
|
|
2711
|
+
>>> result = thread.get()
|
|
2712
|
+
|
|
2713
|
+
:param async_req bool
|
|
2714
|
+
:param V1RequestClusterAccessRequest body: (required)
|
|
2715
|
+
:return: V1RequestClusterAccessResponse
|
|
2716
|
+
If the method is called asynchronously,
|
|
2717
|
+
returns the request thread.
|
|
2718
|
+
"""
|
|
2719
|
+
|
|
2720
|
+
all_params = ['body'] # noqa: E501
|
|
2721
|
+
all_params.append('async_req')
|
|
2722
|
+
all_params.append('_return_http_data_only')
|
|
2723
|
+
all_params.append('_preload_content')
|
|
2724
|
+
all_params.append('_request_timeout')
|
|
2725
|
+
|
|
2726
|
+
params = locals()
|
|
2727
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2728
|
+
if key not in all_params:
|
|
2729
|
+
raise TypeError(
|
|
2730
|
+
"Got an unexpected keyword argument '%s'"
|
|
2731
|
+
" to method cluster_service_request_cluster_access" % key
|
|
2732
|
+
)
|
|
2733
|
+
params[key] = val
|
|
2734
|
+
del params['kwargs']
|
|
2735
|
+
# verify the required parameter 'body' is set
|
|
2736
|
+
if ('body' not in params or
|
|
2737
|
+
params['body'] is None):
|
|
2738
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_request_cluster_access`") # noqa: E501
|
|
2739
|
+
|
|
2740
|
+
collection_formats = {}
|
|
2741
|
+
|
|
2742
|
+
path_params = {}
|
|
2743
|
+
|
|
2744
|
+
query_params = []
|
|
2745
|
+
|
|
2746
|
+
header_params = {}
|
|
2747
|
+
|
|
2748
|
+
form_params = []
|
|
2749
|
+
local_var_files = {}
|
|
2750
|
+
|
|
2751
|
+
body_params = None
|
|
2752
|
+
if 'body' in params:
|
|
2753
|
+
body_params = params['body']
|
|
2754
|
+
# HTTP header `Accept`
|
|
2755
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2756
|
+
['application/json']) # noqa: E501
|
|
2757
|
+
|
|
2758
|
+
# HTTP header `Content-Type`
|
|
2759
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2760
|
+
['application/json']) # noqa: E501
|
|
2761
|
+
|
|
2762
|
+
# Authentication setting
|
|
2763
|
+
auth_settings = [] # noqa: E501
|
|
2764
|
+
|
|
2765
|
+
return self.api_client.call_api(
|
|
2766
|
+
'/v1/core/request-cluster-access', 'POST',
|
|
2767
|
+
path_params,
|
|
2768
|
+
query_params,
|
|
2769
|
+
header_params,
|
|
2770
|
+
body=body_params,
|
|
2771
|
+
post_params=form_params,
|
|
2772
|
+
files=local_var_files,
|
|
2773
|
+
response_type='V1RequestClusterAccessResponse', # noqa: E501
|
|
2774
|
+
auth_settings=auth_settings,
|
|
2775
|
+
async_req=params.get('async_req'),
|
|
2776
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2777
|
+
_preload_content=params.get('_preload_content', True),
|
|
2778
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2779
|
+
collection_formats=collection_formats)
|
|
2780
|
+
|
|
2781
|
+
def cluster_service_server_check_in(self, body: 'ServersServerIdBody', server_id: 'str', **kwargs) -> 'V1ServerCheckInResponse': # noqa: E501
|
|
2782
|
+
"""cluster_service_server_check_in # noqa: E501
|
|
2783
|
+
|
|
2784
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2785
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2786
|
+
>>> thread = api.cluster_service_server_check_in(body, server_id, async_req=True)
|
|
2787
|
+
>>> result = thread.get()
|
|
2788
|
+
|
|
2789
|
+
:param async_req bool
|
|
2790
|
+
:param ServersServerIdBody body: (required)
|
|
2791
|
+
:param str server_id: (required)
|
|
2792
|
+
:return: V1ServerCheckInResponse
|
|
2793
|
+
If the method is called asynchronously,
|
|
2794
|
+
returns the request thread.
|
|
2795
|
+
"""
|
|
2796
|
+
kwargs['_return_http_data_only'] = True
|
|
2797
|
+
if kwargs.get('async_req'):
|
|
2798
|
+
return self.cluster_service_server_check_in_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
2799
|
+
else:
|
|
2800
|
+
(data) = self.cluster_service_server_check_in_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
2801
|
+
return data
|
|
2802
|
+
|
|
2803
|
+
def cluster_service_server_check_in_with_http_info(self, body: 'ServersServerIdBody', server_id: 'str', **kwargs) -> 'V1ServerCheckInResponse': # noqa: E501
|
|
2804
|
+
"""cluster_service_server_check_in # noqa: E501
|
|
2805
|
+
|
|
2806
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2807
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2808
|
+
>>> thread = api.cluster_service_server_check_in_with_http_info(body, server_id, async_req=True)
|
|
2809
|
+
>>> result = thread.get()
|
|
2810
|
+
|
|
2811
|
+
:param async_req bool
|
|
2812
|
+
:param ServersServerIdBody body: (required)
|
|
2813
|
+
:param str server_id: (required)
|
|
2814
|
+
:return: V1ServerCheckInResponse
|
|
2815
|
+
If the method is called asynchronously,
|
|
2816
|
+
returns the request thread.
|
|
2817
|
+
"""
|
|
2818
|
+
|
|
2819
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
2820
|
+
all_params.append('async_req')
|
|
2821
|
+
all_params.append('_return_http_data_only')
|
|
2822
|
+
all_params.append('_preload_content')
|
|
2823
|
+
all_params.append('_request_timeout')
|
|
2824
|
+
|
|
2825
|
+
params = locals()
|
|
2826
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2827
|
+
if key not in all_params:
|
|
2828
|
+
raise TypeError(
|
|
2829
|
+
"Got an unexpected keyword argument '%s'"
|
|
2830
|
+
" to method cluster_service_server_check_in" % key
|
|
2831
|
+
)
|
|
2832
|
+
params[key] = val
|
|
2833
|
+
del params['kwargs']
|
|
2834
|
+
# verify the required parameter 'body' is set
|
|
2835
|
+
if ('body' not in params or
|
|
2836
|
+
params['body'] is None):
|
|
2837
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_server_check_in`") # noqa: E501
|
|
2838
|
+
# verify the required parameter 'server_id' is set
|
|
2839
|
+
if ('server_id' not in params or
|
|
2840
|
+
params['server_id'] is None):
|
|
2841
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_server_check_in`") # noqa: E501
|
|
2842
|
+
|
|
2843
|
+
collection_formats = {}
|
|
2844
|
+
|
|
2845
|
+
path_params = {}
|
|
2846
|
+
if 'server_id' in params:
|
|
2847
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
2848
|
+
|
|
2849
|
+
query_params = []
|
|
2850
|
+
|
|
2851
|
+
header_params = {}
|
|
2852
|
+
|
|
2853
|
+
form_params = []
|
|
2854
|
+
local_var_files = {}
|
|
2855
|
+
|
|
2856
|
+
body_params = None
|
|
2857
|
+
if 'body' in params:
|
|
2858
|
+
body_params = params['body']
|
|
2859
|
+
# HTTP header `Accept`
|
|
2860
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2861
|
+
['application/json']) # noqa: E501
|
|
2862
|
+
|
|
2863
|
+
# HTTP header `Content-Type`
|
|
2864
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2865
|
+
['application/json']) # noqa: E501
|
|
2866
|
+
|
|
2867
|
+
# Authentication setting
|
|
2868
|
+
auth_settings = [] # noqa: E501
|
|
2869
|
+
|
|
2870
|
+
return self.api_client.call_api(
|
|
2871
|
+
'/v1/core/servers/{serverId}', 'POST',
|
|
2872
|
+
path_params,
|
|
2873
|
+
query_params,
|
|
2874
|
+
header_params,
|
|
2875
|
+
body=body_params,
|
|
2876
|
+
post_params=form_params,
|
|
2877
|
+
files=local_var_files,
|
|
2878
|
+
response_type='V1ServerCheckInResponse', # noqa: E501
|
|
2879
|
+
auth_settings=auth_settings,
|
|
2880
|
+
async_req=params.get('async_req'),
|
|
2881
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2882
|
+
_preload_content=params.get('_preload_content', True),
|
|
2883
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2884
|
+
collection_formats=collection_formats)
|
|
2885
|
+
|
|
2127
2886
|
def cluster_service_update_cluster(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
2128
2887
|
"""cluster_service_update_cluster # noqa: E501
|
|
2129
2888
|
|
|
@@ -2229,43 +2988,43 @@ class ClusterServiceApi(object):
|
|
|
2229
2988
|
_request_timeout=params.get('_request_timeout'),
|
|
2230
2989
|
collection_formats=collection_formats)
|
|
2231
2990
|
|
|
2232
|
-
def cluster_service_update_cluster_accelerators(self,
|
|
2991
|
+
def cluster_service_update_cluster_accelerators(self, body: 'V1UpdateClusterAcceleratorsRequest', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
|
|
2233
2992
|
"""cluster_service_update_cluster_accelerators # noqa: E501
|
|
2234
2993
|
|
|
2235
2994
|
This method makes a synchronous HTTP request by default. To make an
|
|
2236
2995
|
asynchronous HTTP request, please pass async_req=True
|
|
2237
|
-
>>> thread = api.cluster_service_update_cluster_accelerators(
|
|
2996
|
+
>>> thread = api.cluster_service_update_cluster_accelerators(body, async_req=True)
|
|
2238
2997
|
>>> result = thread.get()
|
|
2239
2998
|
|
|
2240
2999
|
:param async_req bool
|
|
2241
|
-
:param
|
|
3000
|
+
:param V1UpdateClusterAcceleratorsRequest body: (required)
|
|
2242
3001
|
:return: V1UpdateClusterAcceleratorsResponse
|
|
2243
3002
|
If the method is called asynchronously,
|
|
2244
3003
|
returns the request thread.
|
|
2245
3004
|
"""
|
|
2246
3005
|
kwargs['_return_http_data_only'] = True
|
|
2247
3006
|
if kwargs.get('async_req'):
|
|
2248
|
-
return self.cluster_service_update_cluster_accelerators_with_http_info(
|
|
3007
|
+
return self.cluster_service_update_cluster_accelerators_with_http_info(body, **kwargs) # noqa: E501
|
|
2249
3008
|
else:
|
|
2250
|
-
(data) = self.cluster_service_update_cluster_accelerators_with_http_info(
|
|
3009
|
+
(data) = self.cluster_service_update_cluster_accelerators_with_http_info(body, **kwargs) # noqa: E501
|
|
2251
3010
|
return data
|
|
2252
3011
|
|
|
2253
|
-
def cluster_service_update_cluster_accelerators_with_http_info(self,
|
|
3012
|
+
def cluster_service_update_cluster_accelerators_with_http_info(self, body: 'V1UpdateClusterAcceleratorsRequest', **kwargs) -> 'V1UpdateClusterAcceleratorsResponse': # noqa: E501
|
|
2254
3013
|
"""cluster_service_update_cluster_accelerators # noqa: E501
|
|
2255
3014
|
|
|
2256
3015
|
This method makes a synchronous HTTP request by default. To make an
|
|
2257
3016
|
asynchronous HTTP request, please pass async_req=True
|
|
2258
|
-
>>> thread = api.cluster_service_update_cluster_accelerators_with_http_info(
|
|
3017
|
+
>>> thread = api.cluster_service_update_cluster_accelerators_with_http_info(body, async_req=True)
|
|
2259
3018
|
>>> result = thread.get()
|
|
2260
3019
|
|
|
2261
3020
|
:param async_req bool
|
|
2262
|
-
:param
|
|
3021
|
+
:param V1UpdateClusterAcceleratorsRequest body: (required)
|
|
2263
3022
|
:return: V1UpdateClusterAcceleratorsResponse
|
|
2264
3023
|
If the method is called asynchronously,
|
|
2265
3024
|
returns the request thread.
|
|
2266
3025
|
"""
|
|
2267
3026
|
|
|
2268
|
-
all_params = ['
|
|
3027
|
+
all_params = ['body'] # noqa: E501
|
|
2269
3028
|
all_params.append('async_req')
|
|
2270
3029
|
all_params.append('_return_http_data_only')
|
|
2271
3030
|
all_params.append('_preload_content')
|
|
@@ -2280,16 +3039,14 @@ class ClusterServiceApi(object):
|
|
|
2280
3039
|
)
|
|
2281
3040
|
params[key] = val
|
|
2282
3041
|
del params['kwargs']
|
|
2283
|
-
# verify the required parameter '
|
|
2284
|
-
if ('
|
|
2285
|
-
params['
|
|
2286
|
-
raise ValueError("Missing the required parameter `
|
|
3042
|
+
# verify the required parameter 'body' is set
|
|
3043
|
+
if ('body' not in params or
|
|
3044
|
+
params['body'] is None):
|
|
3045
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster_accelerators`") # noqa: E501
|
|
2287
3046
|
|
|
2288
3047
|
collection_formats = {}
|
|
2289
3048
|
|
|
2290
3049
|
path_params = {}
|
|
2291
|
-
if 'id' in params:
|
|
2292
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
2293
3050
|
|
|
2294
3051
|
query_params = []
|
|
2295
3052
|
|
|
@@ -2299,15 +3056,21 @@ class ClusterServiceApi(object):
|
|
|
2299
3056
|
local_var_files = {}
|
|
2300
3057
|
|
|
2301
3058
|
body_params = None
|
|
3059
|
+
if 'body' in params:
|
|
3060
|
+
body_params = params['body']
|
|
2302
3061
|
# HTTP header `Accept`
|
|
2303
3062
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2304
3063
|
['application/json']) # noqa: E501
|
|
2305
3064
|
|
|
3065
|
+
# HTTP header `Content-Type`
|
|
3066
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3067
|
+
['application/json']) # noqa: E501
|
|
3068
|
+
|
|
2306
3069
|
# Authentication setting
|
|
2307
3070
|
auth_settings = [] # noqa: E501
|
|
2308
3071
|
|
|
2309
3072
|
return self.api_client.call_api(
|
|
2310
|
-
'/v1/core/clusters/
|
|
3073
|
+
'/v1/core/clusters/accelerators', 'PUT',
|
|
2311
3074
|
path_params,
|
|
2312
3075
|
query_params,
|
|
2313
3076
|
header_params,
|