lightning-sdk 0.1.49__py3-none-any.whl → 2025.11.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +19 -9
- lightning_sdk/__version__.py +3 -0
- lightning_sdk/agents.py +2 -1
- lightning_sdk/ai_hub.py +43 -38
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +49 -6
- lightning_sdk/api/base_studio_api.py +90 -0
- lightning_sdk/api/cloud_account_api.py +225 -0
- lightning_sdk/api/deployment_api.py +133 -27
- lightning_sdk/api/job_api.py +147 -34
- lightning_sdk/api/license_api.py +37 -0
- lightning_sdk/api/lit_container_api.py +231 -19
- lightning_sdk/api/llm_api.py +306 -0
- lightning_sdk/api/mmt_api.py +112 -28
- lightning_sdk/api/pipeline_api.py +120 -0
- lightning_sdk/api/studio_api.py +440 -89
- lightning_sdk/api/teamspace_api.py +269 -31
- lightning_sdk/api/user_api.py +56 -2
- lightning_sdk/api/utils.py +185 -52
- lightning_sdk/base_studio.py +123 -0
- lightning_sdk/cli/__init__.py +1 -0
- lightning_sdk/cli/base_studio/__init__.py +10 -0
- lightning_sdk/cli/base_studio/list.py +43 -0
- lightning_sdk/cli/config/__init__.py +14 -0
- lightning_sdk/cli/config/get.py +57 -0
- lightning_sdk/cli/config/set.py +92 -0
- lightning_sdk/cli/config/show.py +9 -0
- lightning_sdk/cli/entrypoint.py +98 -56
- lightning_sdk/cli/groups.py +56 -0
- lightning_sdk/cli/job/__init__.py +7 -0
- lightning_sdk/cli/legacy/__init__.py +0 -0
- lightning_sdk/cli/legacy/ai_hub.py +65 -0
- lightning_sdk/cli/legacy/clusters_menu.py +49 -0
- lightning_sdk/cli/legacy/configure.py +129 -0
- lightning_sdk/cli/legacy/connect.py +34 -0
- lightning_sdk/cli/legacy/create.py +115 -0
- lightning_sdk/cli/legacy/delete.py +131 -0
- lightning_sdk/cli/legacy/deploy/__init__.py +0 -0
- lightning_sdk/cli/legacy/deploy/_auth.py +196 -0
- lightning_sdk/cli/legacy/deploy/devbox.py +163 -0
- lightning_sdk/cli/legacy/deploy/serve.py +452 -0
- lightning_sdk/cli/legacy/docker_cli.py +22 -0
- lightning_sdk/cli/legacy/download.py +322 -0
- lightning_sdk/cli/legacy/entrypoint.py +110 -0
- lightning_sdk/cli/legacy/generate.py +52 -0
- lightning_sdk/cli/legacy/inspection.py +45 -0
- lightning_sdk/cli/{job_and_mmt_action.py → legacy/job_and_mmt_action.py} +6 -6
- lightning_sdk/cli/{jobs_menu.py → legacy/jobs_menu.py} +3 -2
- lightning_sdk/cli/legacy/list.py +326 -0
- lightning_sdk/cli/{mmts_menu.py → legacy/mmts_menu.py} +3 -2
- lightning_sdk/cli/legacy/open.py +81 -0
- lightning_sdk/cli/legacy/run.py +443 -0
- lightning_sdk/cli/legacy/start.py +107 -0
- lightning_sdk/cli/legacy/stop.py +107 -0
- lightning_sdk/cli/{studios_menu.py → legacy/studios_menu.py} +24 -1
- lightning_sdk/cli/legacy/switch.py +63 -0
- lightning_sdk/cli/{teamspace_menu.py → legacy/teamspace_menu.py} +12 -3
- lightning_sdk/cli/legacy/upload.py +382 -0
- lightning_sdk/cli/license/__init__.py +14 -0
- lightning_sdk/cli/license/get.py +15 -0
- lightning_sdk/cli/license/list.py +45 -0
- lightning_sdk/cli/license/set.py +13 -0
- lightning_sdk/cli/mmt/__init__.py +7 -0
- lightning_sdk/cli/studio/__init__.py +24 -0
- lightning_sdk/cli/studio/connect.py +139 -0
- lightning_sdk/cli/studio/create.py +96 -0
- lightning_sdk/cli/studio/delete.py +49 -0
- lightning_sdk/cli/studio/list.py +85 -0
- lightning_sdk/cli/studio/ssh.py +64 -0
- lightning_sdk/cli/studio/start.py +115 -0
- lightning_sdk/cli/studio/stop.py +45 -0
- lightning_sdk/cli/studio/switch.py +66 -0
- lightning_sdk/cli/utils/__init__.py +7 -0
- lightning_sdk/cli/utils/cloud_account_map.py +10 -0
- lightning_sdk/cli/utils/coloring.py +60 -0
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +69 -0
- lightning_sdk/cli/utils/logging.py +122 -0
- lightning_sdk/cli/utils/owner_selection.py +110 -0
- lightning_sdk/cli/utils/resolve.py +28 -0
- lightning_sdk/cli/utils/richt_print.py +35 -0
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/ssh_connection.py +59 -0
- lightning_sdk/cli/utils/studio_selection.py +113 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/cli/vm/__init__.py +20 -0
- lightning_sdk/cli/vm/create.py +33 -0
- lightning_sdk/cli/vm/delete.py +25 -0
- lightning_sdk/cli/vm/list.py +30 -0
- lightning_sdk/cli/vm/ssh.py +31 -0
- lightning_sdk/cli/vm/start.py +60 -0
- lightning_sdk/cli/vm/stop.py +25 -0
- lightning_sdk/cli/vm/switch.py +38 -0
- lightning_sdk/constants.py +1 -0
- lightning_sdk/deployment/__init__.py +4 -0
- lightning_sdk/deployment/deployment.py +208 -28
- lightning_sdk/helpers.py +73 -34
- lightning_sdk/job/base.py +112 -12
- lightning_sdk/job/job.py +73 -44
- lightning_sdk/job/v1.py +28 -35
- lightning_sdk/job/v2.py +54 -17
- lightning_sdk/job/work.py +7 -3
- lightning_sdk/lightning_cloud/login.py +325 -18
- lightning_sdk/lightning_cloud/openapi/__init__.py +346 -26
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +1801 -384
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +376 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +414 -2
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +638 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +2563 -866
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +327 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1720 -347
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +210 -4
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2119
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +283 -0
- lightning_sdk/lightning_cloud/openapi/api/git_credentials_service_api.py +497 -0
- lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +2326 -492
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +2273 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +17 -5
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +473 -5
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +145 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +24 -24
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +795 -0
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +106 -5
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +924 -0
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +1508 -251
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +121 -97
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +4 -20
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +332 -26
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +303 -17
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_kubernetestemplates_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +199 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +1 -53
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_service_executions_response.py → job_id_reportroutingtelemetry_body.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +627 -3
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/project_tab_management_messages.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +523 -3
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → protobuf_null_value.py} +7 -9
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +93 -15
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +233 -129
- lightning_sdk/lightning_cloud/openapi/models/update1.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +188 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +6 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +117 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +313 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +669 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +445 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +211 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +1527 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +521 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_response.py → v1_cluster_upload.py} +34 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_complete_body.py → v1_complete_upload_temporary_artifact_request.py} +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_git_credentials_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_incident_request.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +261 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cloud_space_environment_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_git_credentials_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_registry_repository_image_artifact_version_by_digest_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_file_endpoint_response.py → v1_delete_pipeline_response.py} +25 -25
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +315 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +112 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -2
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +931 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metric.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{id_uploads_body1.py → v1_firewall_rule.py} +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_gcp_data_connection_setup.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_system_metrics_aggregate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_get_lit_dataset_file_upload_urls_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_market_pricing_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +263 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_git_credentials.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +185 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_service_artifact.py → v1_guest_user.py} +60 -60
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +95 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_resource.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +109 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_aws_config.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +67 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_download_service_execution_artifact_response.py → v1_list_blog_posts_response.py} +41 -41
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_conversation_message_actions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_git_credentials_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_job_resources_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +257 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_machines_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_file_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_node_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_platform_notifications_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedule_runs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/{id_storage_body.py → v1_lit_dataset_file.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +35 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +81 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +341 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_market_price.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_modify_filesystem_volume_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +695 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +837 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_platform_notification.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +747 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +525 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +235 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_tab.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_k8s_cluster_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_request_cloud_space_access_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_request.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reset_api_key_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resources.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_schedule_action_type.py} +9 -8
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_run.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_service_execution_status_response.py → v1_server_alert.py} +74 -48
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +84 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +159 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics_aggregated.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_update_organization_credits_auto_replenish_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_update_project_tab_order_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → v1_upload_temporary_artifact_request.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +894 -842
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_license_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +229 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +513 -45
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +61 -48
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/lightning_cloud/utils/data_connection.py +234 -7
- lightning_sdk/lit_container.py +68 -9
- lightning_sdk/llm/__init__.py +3 -0
- lightning_sdk/llm/llm.py +497 -0
- lightning_sdk/llm/public_assistants.py +54 -0
- lightning_sdk/machine.py +221 -30
- lightning_sdk/mmt/base.py +67 -32
- lightning_sdk/mmt/mmt.py +68 -50
- lightning_sdk/mmt/v1.py +16 -32
- lightning_sdk/mmt/v2.py +47 -18
- lightning_sdk/models.py +74 -24
- lightning_sdk/organization.py +4 -0
- lightning_sdk/owner.py +2 -1
- lightning_sdk/pipeline/__init__.py +14 -0
- lightning_sdk/pipeline/pipeline.py +163 -0
- lightning_sdk/pipeline/printer.py +124 -0
- lightning_sdk/pipeline/schedule.py +859 -0
- lightning_sdk/pipeline/steps.py +365 -0
- lightning_sdk/pipeline/utils.py +116 -0
- lightning_sdk/plugin.py +39 -20
- lightning_sdk/sandbox.py +160 -0
- lightning_sdk/serve.py +309 -0
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- lightning_sdk/services/utilities.py +16 -2
- lightning_sdk/studio.py +515 -41
- lightning_sdk/teamspace.py +335 -30
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +179 -0
- lightning_sdk/utils/license.py +13 -0
- lightning_sdk/utils/logging.py +79 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +283 -0
- lightning_sdk/utils/resolve.py +149 -13
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/METADATA +14 -11
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/RECORD +649 -250
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/entry_points.txt +1 -0
- lightning_sdk/cli/ai_hub.py +0 -49
- lightning_sdk/cli/delete.py +0 -58
- lightning_sdk/cli/download.py +0 -132
- lightning_sdk/cli/inspect.py +0 -31
- lightning_sdk/cli/legacy.py +0 -135
- lightning_sdk/cli/list.py +0 -112
- lightning_sdk/cli/run.py +0 -225
- lightning_sdk/cli/serve.py +0 -218
- lightning_sdk/cli/stop.py +0 -37
- lightning_sdk/cli/upload.py +0 -255
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- /lightning_sdk/cli/{exceptions.py → legacy/exceptions.py} +0 -0
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.49.dist-info → lightning_sdk-2025.11.5.dist-info}/top_level.txt +0 -0
|
@@ -43,6 +43,103 @@ class ClusterServiceApi(object):
|
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
|
+
def cluster_service_check_cluster_name_availability(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
|
|
47
|
+
"""cluster_service_check_cluster_name_availability # noqa: E501
|
|
48
|
+
|
|
49
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
50
|
+
asynchronous HTTP request, please pass async_req=True
|
|
51
|
+
>>> thread = api.cluster_service_check_cluster_name_availability(body, async_req=True)
|
|
52
|
+
>>> result = thread.get()
|
|
53
|
+
|
|
54
|
+
:param async_req bool
|
|
55
|
+
:param V1CheckClusterNameAvailabilityRequest body: (required)
|
|
56
|
+
:return: V1CheckClusterNameAvailabilityResponse
|
|
57
|
+
If the method is called asynchronously,
|
|
58
|
+
returns the request thread.
|
|
59
|
+
"""
|
|
60
|
+
kwargs['_return_http_data_only'] = True
|
|
61
|
+
if kwargs.get('async_req'):
|
|
62
|
+
return self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
|
|
63
|
+
else:
|
|
64
|
+
(data) = self.cluster_service_check_cluster_name_availability_with_http_info(body, **kwargs) # noqa: E501
|
|
65
|
+
return data
|
|
66
|
+
|
|
67
|
+
def cluster_service_check_cluster_name_availability_with_http_info(self, body: 'V1CheckClusterNameAvailabilityRequest', **kwargs) -> 'V1CheckClusterNameAvailabilityResponse': # noqa: E501
|
|
68
|
+
"""cluster_service_check_cluster_name_availability # noqa: E501
|
|
69
|
+
|
|
70
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
71
|
+
asynchronous HTTP request, please pass async_req=True
|
|
72
|
+
>>> thread = api.cluster_service_check_cluster_name_availability_with_http_info(body, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool
|
|
76
|
+
:param V1CheckClusterNameAvailabilityRequest body: (required)
|
|
77
|
+
:return: V1CheckClusterNameAvailabilityResponse
|
|
78
|
+
If the method is called asynchronously,
|
|
79
|
+
returns the request thread.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
all_params = ['body'] # noqa: E501
|
|
83
|
+
all_params.append('async_req')
|
|
84
|
+
all_params.append('_return_http_data_only')
|
|
85
|
+
all_params.append('_preload_content')
|
|
86
|
+
all_params.append('_request_timeout')
|
|
87
|
+
|
|
88
|
+
params = locals()
|
|
89
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
90
|
+
if key not in all_params:
|
|
91
|
+
raise TypeError(
|
|
92
|
+
"Got an unexpected keyword argument '%s'"
|
|
93
|
+
" to method cluster_service_check_cluster_name_availability" % key
|
|
94
|
+
)
|
|
95
|
+
params[key] = val
|
|
96
|
+
del params['kwargs']
|
|
97
|
+
# verify the required parameter 'body' is set
|
|
98
|
+
if ('body' not in params or
|
|
99
|
+
params['body'] is None):
|
|
100
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_check_cluster_name_availability`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
collection_formats = {}
|
|
103
|
+
|
|
104
|
+
path_params = {}
|
|
105
|
+
|
|
106
|
+
query_params = []
|
|
107
|
+
|
|
108
|
+
header_params = {}
|
|
109
|
+
|
|
110
|
+
form_params = []
|
|
111
|
+
local_var_files = {}
|
|
112
|
+
|
|
113
|
+
body_params = None
|
|
114
|
+
if 'body' in params:
|
|
115
|
+
body_params = params['body']
|
|
116
|
+
# HTTP header `Accept`
|
|
117
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
118
|
+
['application/json']) # noqa: E501
|
|
119
|
+
|
|
120
|
+
# HTTP header `Content-Type`
|
|
121
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
122
|
+
['application/json']) # noqa: E501
|
|
123
|
+
|
|
124
|
+
# Authentication setting
|
|
125
|
+
auth_settings = [] # noqa: E501
|
|
126
|
+
|
|
127
|
+
return self.api_client.call_api(
|
|
128
|
+
'/v1/core/cluster-name-available', 'POST',
|
|
129
|
+
path_params,
|
|
130
|
+
query_params,
|
|
131
|
+
header_params,
|
|
132
|
+
body=body_params,
|
|
133
|
+
post_params=form_params,
|
|
134
|
+
files=local_var_files,
|
|
135
|
+
response_type='V1CheckClusterNameAvailabilityResponse', # noqa: E501
|
|
136
|
+
auth_settings=auth_settings,
|
|
137
|
+
async_req=params.get('async_req'),
|
|
138
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
139
|
+
_preload_content=params.get('_preload_content', True),
|
|
140
|
+
_request_timeout=params.get('_request_timeout'),
|
|
141
|
+
collection_formats=collection_formats)
|
|
142
|
+
|
|
46
143
|
def cluster_service_create_cluster(self, body: 'V1CreateClusterRequest', **kwargs) -> 'V1CreateClusterResponse': # noqa: E501
|
|
47
144
|
"""TODO: delete all non-project related endpoints # noqa: E501
|
|
48
145
|
|
|
@@ -455,45 +552,45 @@ class ClusterServiceApi(object):
|
|
|
455
552
|
_request_timeout=params.get('_request_timeout'),
|
|
456
553
|
collection_formats=collection_formats)
|
|
457
554
|
|
|
458
|
-
def
|
|
459
|
-
"""
|
|
555
|
+
def cluster_service_create_cluster_usage_restriction(self, body: 'ClusterIdUsagerestrictionsBody', cluster_id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
556
|
+
"""cluster_service_create_cluster_usage_restriction # noqa: E501
|
|
460
557
|
|
|
461
558
|
This method makes a synchronous HTTP request by default. To make an
|
|
462
559
|
asynchronous HTTP request, please pass async_req=True
|
|
463
|
-
>>> thread = api.
|
|
560
|
+
>>> thread = api.cluster_service_create_cluster_usage_restriction(body, cluster_id, async_req=True)
|
|
464
561
|
>>> result = thread.get()
|
|
465
562
|
|
|
466
563
|
:param async_req bool
|
|
467
|
-
:param
|
|
468
|
-
:param str
|
|
469
|
-
:return:
|
|
564
|
+
:param ClusterIdUsagerestrictionsBody body: (required)
|
|
565
|
+
:param str cluster_id: (required)
|
|
566
|
+
:return: V1ClusterUsageRestriction
|
|
470
567
|
If the method is called asynchronously,
|
|
471
568
|
returns the request thread.
|
|
472
569
|
"""
|
|
473
570
|
kwargs['_return_http_data_only'] = True
|
|
474
571
|
if kwargs.get('async_req'):
|
|
475
|
-
return self.
|
|
572
|
+
return self.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
476
573
|
else:
|
|
477
|
-
(data) = self.
|
|
574
|
+
(data) = self.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
478
575
|
return data
|
|
479
576
|
|
|
480
|
-
def
|
|
481
|
-
"""
|
|
577
|
+
def cluster_service_create_cluster_usage_restriction_with_http_info(self, body: 'ClusterIdUsagerestrictionsBody', cluster_id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
578
|
+
"""cluster_service_create_cluster_usage_restriction # noqa: E501
|
|
482
579
|
|
|
483
580
|
This method makes a synchronous HTTP request by default. To make an
|
|
484
581
|
asynchronous HTTP request, please pass async_req=True
|
|
485
|
-
>>> thread = api.
|
|
582
|
+
>>> thread = api.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, async_req=True)
|
|
486
583
|
>>> result = thread.get()
|
|
487
584
|
|
|
488
585
|
:param async_req bool
|
|
489
|
-
:param
|
|
490
|
-
:param str
|
|
491
|
-
:return:
|
|
586
|
+
:param ClusterIdUsagerestrictionsBody body: (required)
|
|
587
|
+
:param str cluster_id: (required)
|
|
588
|
+
:return: V1ClusterUsageRestriction
|
|
492
589
|
If the method is called asynchronously,
|
|
493
590
|
returns the request thread.
|
|
494
591
|
"""
|
|
495
592
|
|
|
496
|
-
all_params = ['body', '
|
|
593
|
+
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
497
594
|
all_params.append('async_req')
|
|
498
595
|
all_params.append('_return_http_data_only')
|
|
499
596
|
all_params.append('_preload_content')
|
|
@@ -504,24 +601,24 @@ class ClusterServiceApi(object):
|
|
|
504
601
|
if key not in all_params:
|
|
505
602
|
raise TypeError(
|
|
506
603
|
"Got an unexpected keyword argument '%s'"
|
|
507
|
-
" to method
|
|
604
|
+
" to method cluster_service_create_cluster_usage_restriction" % key
|
|
508
605
|
)
|
|
509
606
|
params[key] = val
|
|
510
607
|
del params['kwargs']
|
|
511
608
|
# verify the required parameter 'body' is set
|
|
512
609
|
if ('body' not in params or
|
|
513
610
|
params['body'] is None):
|
|
514
|
-
raise ValueError("Missing the required parameter `body` when calling `
|
|
515
|
-
# verify the required parameter '
|
|
516
|
-
if ('
|
|
517
|
-
params['
|
|
518
|
-
raise ValueError("Missing the required parameter `
|
|
611
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_cluster_usage_restriction`") # noqa: E501
|
|
612
|
+
# verify the required parameter 'cluster_id' is set
|
|
613
|
+
if ('cluster_id' not in params or
|
|
614
|
+
params['cluster_id'] is None):
|
|
615
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_cluster_usage_restriction`") # noqa: E501
|
|
519
616
|
|
|
520
617
|
collection_formats = {}
|
|
521
618
|
|
|
522
619
|
path_params = {}
|
|
523
|
-
if '
|
|
524
|
-
path_params['
|
|
620
|
+
if 'cluster_id' in params:
|
|
621
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
525
622
|
|
|
526
623
|
query_params = []
|
|
527
624
|
|
|
@@ -545,14 +642,14 @@ class ClusterServiceApi(object):
|
|
|
545
642
|
auth_settings = [] # noqa: E501
|
|
546
643
|
|
|
547
644
|
return self.api_client.call_api(
|
|
548
|
-
'/v1/
|
|
645
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions', 'POST',
|
|
549
646
|
path_params,
|
|
550
647
|
query_params,
|
|
551
648
|
header_params,
|
|
552
649
|
body=body_params,
|
|
553
650
|
post_params=form_params,
|
|
554
651
|
files=local_var_files,
|
|
555
|
-
response_type='
|
|
652
|
+
response_type='V1ClusterUsageRestriction', # noqa: E501
|
|
556
653
|
auth_settings=auth_settings,
|
|
557
654
|
async_req=params.get('async_req'),
|
|
558
655
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -560,53 +657,45 @@ class ClusterServiceApi(object):
|
|
|
560
657
|
_request_timeout=params.get('_request_timeout'),
|
|
561
658
|
collection_formats=collection_formats)
|
|
562
659
|
|
|
563
|
-
def
|
|
564
|
-
"""
|
|
660
|
+
def cluster_service_create_machine(self, body: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine', cluster_id: 'str', **kwargs) -> 'V1CreateMachineResponse': # noqa: E501
|
|
661
|
+
"""cluster_service_create_machine # noqa: E501
|
|
565
662
|
|
|
566
663
|
This method makes a synchronous HTTP request by default. To make an
|
|
567
664
|
asynchronous HTTP request, please pass async_req=True
|
|
568
|
-
>>> thread = api.
|
|
665
|
+
>>> thread = api.cluster_service_create_machine(body, cluster_id, async_req=True)
|
|
569
666
|
>>> result = thread.get()
|
|
570
667
|
|
|
571
668
|
:param async_req bool
|
|
572
|
-
:param
|
|
573
|
-
:param str
|
|
574
|
-
:
|
|
575
|
-
:param bool force:
|
|
576
|
-
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
577
|
-
:param bool delete_system_logs:
|
|
578
|
-
:return: V1DeleteClusterResponse
|
|
669
|
+
:param CreateMachineRequestRepresentsTheRequestToCreateAMachine body: (required)
|
|
670
|
+
:param str cluster_id: (required)
|
|
671
|
+
:return: V1CreateMachineResponse
|
|
579
672
|
If the method is called asynchronously,
|
|
580
673
|
returns the request thread.
|
|
581
674
|
"""
|
|
582
675
|
kwargs['_return_http_data_only'] = True
|
|
583
676
|
if kwargs.get('async_req'):
|
|
584
|
-
return self.
|
|
677
|
+
return self.cluster_service_create_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
585
678
|
else:
|
|
586
|
-
(data) = self.
|
|
679
|
+
(data) = self.cluster_service_create_machine_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
587
680
|
return data
|
|
588
681
|
|
|
589
|
-
def
|
|
590
|
-
"""
|
|
682
|
+
def cluster_service_create_machine_with_http_info(self, body: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine', cluster_id: 'str', **kwargs) -> 'V1CreateMachineResponse': # noqa: E501
|
|
683
|
+
"""cluster_service_create_machine # noqa: E501
|
|
591
684
|
|
|
592
685
|
This method makes a synchronous HTTP request by default. To make an
|
|
593
686
|
asynchronous HTTP request, please pass async_req=True
|
|
594
|
-
>>> thread = api.
|
|
687
|
+
>>> thread = api.cluster_service_create_machine_with_http_info(body, cluster_id, async_req=True)
|
|
595
688
|
>>> result = thread.get()
|
|
596
689
|
|
|
597
690
|
:param async_req bool
|
|
598
|
-
:param
|
|
599
|
-
:param str
|
|
600
|
-
:
|
|
601
|
-
:param bool force:
|
|
602
|
-
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
603
|
-
:param bool delete_system_logs:
|
|
604
|
-
:return: V1DeleteClusterResponse
|
|
691
|
+
:param CreateMachineRequestRepresentsTheRequestToCreateAMachine body: (required)
|
|
692
|
+
:param str cluster_id: (required)
|
|
693
|
+
:return: V1CreateMachineResponse
|
|
605
694
|
If the method is called asynchronously,
|
|
606
695
|
returns the request thread.
|
|
607
696
|
"""
|
|
608
697
|
|
|
609
|
-
all_params = ['
|
|
698
|
+
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
610
699
|
all_params.append('async_req')
|
|
611
700
|
all_params.append('_return_http_data_only')
|
|
612
701
|
all_params.append('_preload_content')
|
|
@@ -617,32 +706,26 @@ class ClusterServiceApi(object):
|
|
|
617
706
|
if key not in all_params:
|
|
618
707
|
raise TypeError(
|
|
619
708
|
"Got an unexpected keyword argument '%s'"
|
|
620
|
-
" to method
|
|
709
|
+
" to method cluster_service_create_machine" % key
|
|
621
710
|
)
|
|
622
711
|
params[key] = val
|
|
623
712
|
del params['kwargs']
|
|
624
|
-
# verify the required parameter '
|
|
625
|
-
if ('
|
|
626
|
-
params['
|
|
627
|
-
raise ValueError("Missing the required parameter `
|
|
713
|
+
# verify the required parameter 'body' is set
|
|
714
|
+
if ('body' not in params or
|
|
715
|
+
params['body'] is None):
|
|
716
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_machine`") # noqa: E501
|
|
717
|
+
# verify the required parameter 'cluster_id' is set
|
|
718
|
+
if ('cluster_id' not in params or
|
|
719
|
+
params['cluster_id'] is None):
|
|
720
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_machine`") # noqa: E501
|
|
628
721
|
|
|
629
722
|
collection_formats = {}
|
|
630
723
|
|
|
631
724
|
path_params = {}
|
|
632
|
-
if '
|
|
633
|
-
path_params['
|
|
725
|
+
if 'cluster_id' in params:
|
|
726
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
634
727
|
|
|
635
728
|
query_params = []
|
|
636
|
-
if 'org_id' in params:
|
|
637
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
638
|
-
if 'project_id' in params:
|
|
639
|
-
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
640
|
-
if 'force' in params:
|
|
641
|
-
query_params.append(('force', params['force'])) # noqa: E501
|
|
642
|
-
if 'delete_artifacts' in params:
|
|
643
|
-
query_params.append(('deleteArtifacts', params['delete_artifacts'])) # noqa: E501
|
|
644
|
-
if 'delete_system_logs' in params:
|
|
645
|
-
query_params.append(('deleteSystemLogs', params['delete_system_logs'])) # noqa: E501
|
|
646
729
|
|
|
647
730
|
header_params = {}
|
|
648
731
|
|
|
@@ -650,22 +733,28 @@ class ClusterServiceApi(object):
|
|
|
650
733
|
local_var_files = {}
|
|
651
734
|
|
|
652
735
|
body_params = None
|
|
736
|
+
if 'body' in params:
|
|
737
|
+
body_params = params['body']
|
|
653
738
|
# HTTP header `Accept`
|
|
654
739
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
655
740
|
['application/json']) # noqa: E501
|
|
656
741
|
|
|
742
|
+
# HTTP header `Content-Type`
|
|
743
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
744
|
+
['application/json']) # noqa: E501
|
|
745
|
+
|
|
657
746
|
# Authentication setting
|
|
658
747
|
auth_settings = [] # noqa: E501
|
|
659
748
|
|
|
660
749
|
return self.api_client.call_api(
|
|
661
|
-
'/v1/core/clusters/{
|
|
750
|
+
'/v1/core/clusters/{clusterId}/machines', 'POST',
|
|
662
751
|
path_params,
|
|
663
752
|
query_params,
|
|
664
753
|
header_params,
|
|
665
754
|
body=body_params,
|
|
666
755
|
post_params=form_params,
|
|
667
756
|
files=local_var_files,
|
|
668
|
-
response_type='
|
|
757
|
+
response_type='V1CreateMachineResponse', # noqa: E501
|
|
669
758
|
auth_settings=auth_settings,
|
|
670
759
|
async_req=params.get('async_req'),
|
|
671
760
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -673,47 +762,45 @@ class ClusterServiceApi(object):
|
|
|
673
762
|
_request_timeout=params.get('_request_timeout'),
|
|
674
763
|
collection_formats=collection_formats)
|
|
675
764
|
|
|
676
|
-
def
|
|
677
|
-
"""
|
|
765
|
+
def cluster_service_create_project_cluster(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
766
|
+
"""cluster_service_create_project_cluster # noqa: E501
|
|
678
767
|
|
|
679
768
|
This method makes a synchronous HTTP request by default. To make an
|
|
680
769
|
asynchronous HTTP request, please pass async_req=True
|
|
681
|
-
>>> thread = api.
|
|
770
|
+
>>> thread = api.cluster_service_create_project_cluster(body, project_id, async_req=True)
|
|
682
771
|
>>> result = thread.get()
|
|
683
772
|
|
|
684
773
|
:param async_req bool
|
|
774
|
+
:param ProjectIdClustersBody body: (required)
|
|
685
775
|
:param str project_id: (required)
|
|
686
|
-
:
|
|
687
|
-
:param str id: (required)
|
|
688
|
-
:return: V1DeleteClusterCapacityReservationResponse
|
|
776
|
+
:return: Externalv1Cluster
|
|
689
777
|
If the method is called asynchronously,
|
|
690
778
|
returns the request thread.
|
|
691
779
|
"""
|
|
692
780
|
kwargs['_return_http_data_only'] = True
|
|
693
781
|
if kwargs.get('async_req'):
|
|
694
|
-
return self.
|
|
782
|
+
return self.cluster_service_create_project_cluster_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
695
783
|
else:
|
|
696
|
-
(data) = self.
|
|
784
|
+
(data) = self.cluster_service_create_project_cluster_with_http_info(body, project_id, **kwargs) # noqa: E501
|
|
697
785
|
return data
|
|
698
786
|
|
|
699
|
-
def
|
|
700
|
-
"""
|
|
787
|
+
def cluster_service_create_project_cluster_with_http_info(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
788
|
+
"""cluster_service_create_project_cluster # noqa: E501
|
|
701
789
|
|
|
702
790
|
This method makes a synchronous HTTP request by default. To make an
|
|
703
791
|
asynchronous HTTP request, please pass async_req=True
|
|
704
|
-
>>> thread = api.
|
|
792
|
+
>>> thread = api.cluster_service_create_project_cluster_with_http_info(body, project_id, async_req=True)
|
|
705
793
|
>>> result = thread.get()
|
|
706
794
|
|
|
707
795
|
:param async_req bool
|
|
796
|
+
:param ProjectIdClustersBody body: (required)
|
|
708
797
|
:param str project_id: (required)
|
|
709
|
-
:
|
|
710
|
-
:param str id: (required)
|
|
711
|
-
:return: V1DeleteClusterCapacityReservationResponse
|
|
798
|
+
:return: Externalv1Cluster
|
|
712
799
|
If the method is called asynchronously,
|
|
713
800
|
returns the request thread.
|
|
714
801
|
"""
|
|
715
802
|
|
|
716
|
-
all_params = ['
|
|
803
|
+
all_params = ['body', 'project_id'] # noqa: E501
|
|
717
804
|
all_params.append('async_req')
|
|
718
805
|
all_params.append('_return_http_data_only')
|
|
719
806
|
all_params.append('_preload_content')
|
|
@@ -724,32 +811,24 @@ class ClusterServiceApi(object):
|
|
|
724
811
|
if key not in all_params:
|
|
725
812
|
raise TypeError(
|
|
726
813
|
"Got an unexpected keyword argument '%s'"
|
|
727
|
-
" to method
|
|
814
|
+
" to method cluster_service_create_project_cluster" % key
|
|
728
815
|
)
|
|
729
816
|
params[key] = val
|
|
730
817
|
del params['kwargs']
|
|
818
|
+
# verify the required parameter 'body' is set
|
|
819
|
+
if ('body' not in params or
|
|
820
|
+
params['body'] is None):
|
|
821
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_project_cluster`") # noqa: E501
|
|
731
822
|
# verify the required parameter 'project_id' is set
|
|
732
823
|
if ('project_id' not in params or
|
|
733
824
|
params['project_id'] is None):
|
|
734
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
735
|
-
# verify the required parameter 'cluster_id' is set
|
|
736
|
-
if ('cluster_id' not in params or
|
|
737
|
-
params['cluster_id'] is None):
|
|
738
|
-
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_capacity_reservation`") # noqa: E501
|
|
739
|
-
# verify the required parameter 'id' is set
|
|
740
|
-
if ('id' not in params or
|
|
741
|
-
params['id'] is None):
|
|
742
|
-
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster_capacity_reservation`") # noqa: E501
|
|
825
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_create_project_cluster`") # noqa: E501
|
|
743
826
|
|
|
744
827
|
collection_formats = {}
|
|
745
828
|
|
|
746
829
|
path_params = {}
|
|
747
830
|
if 'project_id' in params:
|
|
748
831
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
749
|
-
if 'cluster_id' in params:
|
|
750
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
751
|
-
if 'id' in params:
|
|
752
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
753
832
|
|
|
754
833
|
query_params = []
|
|
755
834
|
|
|
@@ -759,22 +838,28 @@ class ClusterServiceApi(object):
|
|
|
759
838
|
local_var_files = {}
|
|
760
839
|
|
|
761
840
|
body_params = None
|
|
841
|
+
if 'body' in params:
|
|
842
|
+
body_params = params['body']
|
|
762
843
|
# HTTP header `Accept`
|
|
763
844
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
764
845
|
['application/json']) # noqa: E501
|
|
765
846
|
|
|
847
|
+
# HTTP header `Content-Type`
|
|
848
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
849
|
+
['application/json']) # noqa: E501
|
|
850
|
+
|
|
766
851
|
# Authentication setting
|
|
767
852
|
auth_settings = [] # noqa: E501
|
|
768
853
|
|
|
769
854
|
return self.api_client.call_api(
|
|
770
|
-
'/v1/projects/{projectId}/clusters
|
|
855
|
+
'/v1/projects/{projectId}/clusters', 'POST',
|
|
771
856
|
path_params,
|
|
772
857
|
query_params,
|
|
773
858
|
header_params,
|
|
774
859
|
body=body_params,
|
|
775
860
|
post_params=form_params,
|
|
776
861
|
files=local_var_files,
|
|
777
|
-
response_type='
|
|
862
|
+
response_type='Externalv1Cluster', # noqa: E501
|
|
778
863
|
auth_settings=auth_settings,
|
|
779
864
|
async_req=params.get('async_req'),
|
|
780
865
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -782,43 +867,45 @@ class ClusterServiceApi(object):
|
|
|
782
867
|
_request_timeout=params.get('_request_timeout'),
|
|
783
868
|
collection_formats=collection_formats)
|
|
784
869
|
|
|
785
|
-
def
|
|
786
|
-
"""
|
|
870
|
+
def cluster_service_create_server_alert(self, body: 'ServerIdAlertsBody', server_id: 'str', **kwargs) -> 'V1CreateServerAlertResponse': # noqa: E501
|
|
871
|
+
"""cluster_service_create_server_alert # noqa: E501
|
|
787
872
|
|
|
788
873
|
This method makes a synchronous HTTP request by default. To make an
|
|
789
874
|
asynchronous HTTP request, please pass async_req=True
|
|
790
|
-
>>> thread = api.
|
|
875
|
+
>>> thread = api.cluster_service_create_server_alert(body, server_id, async_req=True)
|
|
791
876
|
>>> result = thread.get()
|
|
792
877
|
|
|
793
878
|
:param async_req bool
|
|
794
|
-
:param
|
|
795
|
-
:
|
|
879
|
+
:param ServerIdAlertsBody body: (required)
|
|
880
|
+
:param str server_id: (required)
|
|
881
|
+
:return: V1CreateServerAlertResponse
|
|
796
882
|
If the method is called asynchronously,
|
|
797
883
|
returns the request thread.
|
|
798
884
|
"""
|
|
799
885
|
kwargs['_return_http_data_only'] = True
|
|
800
886
|
if kwargs.get('async_req'):
|
|
801
|
-
return self.
|
|
887
|
+
return self.cluster_service_create_server_alert_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
802
888
|
else:
|
|
803
|
-
(data) = self.
|
|
889
|
+
(data) = self.cluster_service_create_server_alert_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
804
890
|
return data
|
|
805
891
|
|
|
806
|
-
def
|
|
807
|
-
"""
|
|
892
|
+
def cluster_service_create_server_alert_with_http_info(self, body: 'ServerIdAlertsBody', server_id: 'str', **kwargs) -> 'V1CreateServerAlertResponse': # noqa: E501
|
|
893
|
+
"""cluster_service_create_server_alert # noqa: E501
|
|
808
894
|
|
|
809
895
|
This method makes a synchronous HTTP request by default. To make an
|
|
810
896
|
asynchronous HTTP request, please pass async_req=True
|
|
811
|
-
>>> thread = api.
|
|
897
|
+
>>> thread = api.cluster_service_create_server_alert_with_http_info(body, server_id, async_req=True)
|
|
812
898
|
>>> result = thread.get()
|
|
813
899
|
|
|
814
900
|
:param async_req bool
|
|
815
|
-
:param
|
|
816
|
-
:
|
|
901
|
+
:param ServerIdAlertsBody body: (required)
|
|
902
|
+
:param str server_id: (required)
|
|
903
|
+
:return: V1CreateServerAlertResponse
|
|
817
904
|
If the method is called asynchronously,
|
|
818
905
|
returns the request thread.
|
|
819
906
|
"""
|
|
820
907
|
|
|
821
|
-
all_params = ['
|
|
908
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
822
909
|
all_params.append('async_req')
|
|
823
910
|
all_params.append('_return_http_data_only')
|
|
824
911
|
all_params.append('_preload_content')
|
|
@@ -829,20 +916,24 @@ class ClusterServiceApi(object):
|
|
|
829
916
|
if key not in all_params:
|
|
830
917
|
raise TypeError(
|
|
831
918
|
"Got an unexpected keyword argument '%s'"
|
|
832
|
-
" to method
|
|
919
|
+
" to method cluster_service_create_server_alert" % key
|
|
833
920
|
)
|
|
834
921
|
params[key] = val
|
|
835
922
|
del params['kwargs']
|
|
836
|
-
# verify the required parameter '
|
|
837
|
-
if ('
|
|
838
|
-
params['
|
|
839
|
-
raise ValueError("Missing the required parameter `
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
923
|
+
# verify the required parameter 'body' is set
|
|
924
|
+
if ('body' not in params or
|
|
925
|
+
params['body'] is None):
|
|
926
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_server_alert`") # noqa: E501
|
|
927
|
+
# verify the required parameter 'server_id' is set
|
|
928
|
+
if ('server_id' not in params or
|
|
929
|
+
params['server_id'] is None):
|
|
930
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_create_server_alert`") # noqa: E501
|
|
931
|
+
|
|
932
|
+
collection_formats = {}
|
|
933
|
+
|
|
934
|
+
path_params = {}
|
|
935
|
+
if 'server_id' in params:
|
|
936
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
846
937
|
|
|
847
938
|
query_params = []
|
|
848
939
|
|
|
@@ -852,22 +943,28 @@ class ClusterServiceApi(object):
|
|
|
852
943
|
local_var_files = {}
|
|
853
944
|
|
|
854
945
|
body_params = None
|
|
946
|
+
if 'body' in params:
|
|
947
|
+
body_params = params['body']
|
|
855
948
|
# HTTP header `Accept`
|
|
856
949
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
857
950
|
['application/json']) # noqa: E501
|
|
858
951
|
|
|
952
|
+
# HTTP header `Content-Type`
|
|
953
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
954
|
+
['application/json']) # noqa: E501
|
|
955
|
+
|
|
859
956
|
# Authentication setting
|
|
860
957
|
auth_settings = [] # noqa: E501
|
|
861
958
|
|
|
862
959
|
return self.api_client.call_api(
|
|
863
|
-
'/v1/core/
|
|
960
|
+
'/v1/core/servers/{serverId}/alerts', 'POST',
|
|
864
961
|
path_params,
|
|
865
962
|
query_params,
|
|
866
963
|
header_params,
|
|
867
964
|
body=body_params,
|
|
868
965
|
post_params=form_params,
|
|
869
966
|
files=local_var_files,
|
|
870
|
-
response_type='
|
|
967
|
+
response_type='V1CreateServerAlertResponse', # noqa: E501
|
|
871
968
|
auth_settings=auth_settings,
|
|
872
969
|
async_req=params.get('async_req'),
|
|
873
970
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -875,47 +972,53 @@ class ClusterServiceApi(object):
|
|
|
875
972
|
_request_timeout=params.get('_request_timeout'),
|
|
876
973
|
collection_formats=collection_formats)
|
|
877
974
|
|
|
878
|
-
def
|
|
879
|
-
"""
|
|
975
|
+
def cluster_service_delete_cluster(self, id: 'str', **kwargs) -> 'V1DeleteClusterResponse': # noqa: E501
|
|
976
|
+
"""cluster_service_delete_cluster # noqa: E501
|
|
880
977
|
|
|
881
978
|
This method makes a synchronous HTTP request by default. To make an
|
|
882
979
|
asynchronous HTTP request, please pass async_req=True
|
|
883
|
-
>>> thread = api.
|
|
980
|
+
>>> thread = api.cluster_service_delete_cluster(id, async_req=True)
|
|
884
981
|
>>> result = thread.get()
|
|
885
982
|
|
|
886
983
|
:param async_req bool
|
|
887
|
-
:param str
|
|
888
|
-
:param str proxy_id: (required)
|
|
984
|
+
:param str id: (required)
|
|
889
985
|
:param str org_id:
|
|
890
|
-
:
|
|
986
|
+
:param str project_id:
|
|
987
|
+
:param bool force:
|
|
988
|
+
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
989
|
+
:param bool delete_system_logs:
|
|
990
|
+
:return: V1DeleteClusterResponse
|
|
891
991
|
If the method is called asynchronously,
|
|
892
992
|
returns the request thread.
|
|
893
993
|
"""
|
|
894
994
|
kwargs['_return_http_data_only'] = True
|
|
895
995
|
if kwargs.get('async_req'):
|
|
896
|
-
return self.
|
|
996
|
+
return self.cluster_service_delete_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
897
997
|
else:
|
|
898
|
-
(data) = self.
|
|
998
|
+
(data) = self.cluster_service_delete_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
899
999
|
return data
|
|
900
1000
|
|
|
901
|
-
def
|
|
902
|
-
"""
|
|
1001
|
+
def cluster_service_delete_cluster_with_http_info(self, id: 'str', **kwargs) -> 'V1DeleteClusterResponse': # noqa: E501
|
|
1002
|
+
"""cluster_service_delete_cluster # noqa: E501
|
|
903
1003
|
|
|
904
1004
|
This method makes a synchronous HTTP request by default. To make an
|
|
905
1005
|
asynchronous HTTP request, please pass async_req=True
|
|
906
|
-
>>> thread = api.
|
|
1006
|
+
>>> thread = api.cluster_service_delete_cluster_with_http_info(id, async_req=True)
|
|
907
1007
|
>>> result = thread.get()
|
|
908
1008
|
|
|
909
1009
|
:param async_req bool
|
|
910
|
-
:param str
|
|
911
|
-
:param str proxy_id: (required)
|
|
1010
|
+
:param str id: (required)
|
|
912
1011
|
:param str org_id:
|
|
913
|
-
:
|
|
1012
|
+
:param str project_id:
|
|
1013
|
+
:param bool force:
|
|
1014
|
+
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
1015
|
+
:param bool delete_system_logs:
|
|
1016
|
+
:return: V1DeleteClusterResponse
|
|
914
1017
|
If the method is called asynchronously,
|
|
915
1018
|
returns the request thread.
|
|
916
1019
|
"""
|
|
917
1020
|
|
|
918
|
-
all_params = ['
|
|
1021
|
+
all_params = ['id', 'org_id', 'project_id', 'force', 'delete_artifacts', 'delete_system_logs'] # noqa: E501
|
|
919
1022
|
all_params.append('async_req')
|
|
920
1023
|
all_params.append('_return_http_data_only')
|
|
921
1024
|
all_params.append('_preload_content')
|
|
@@ -926,30 +1029,32 @@ class ClusterServiceApi(object):
|
|
|
926
1029
|
if key not in all_params:
|
|
927
1030
|
raise TypeError(
|
|
928
1031
|
"Got an unexpected keyword argument '%s'"
|
|
929
|
-
" to method
|
|
1032
|
+
" to method cluster_service_delete_cluster" % key
|
|
930
1033
|
)
|
|
931
1034
|
params[key] = val
|
|
932
1035
|
del params['kwargs']
|
|
933
|
-
# verify the required parameter '
|
|
934
|
-
if ('
|
|
935
|
-
params['
|
|
936
|
-
raise ValueError("Missing the required parameter `
|
|
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
|
|
1036
|
+
# verify the required parameter 'id' is set
|
|
1037
|
+
if ('id' not in params or
|
|
1038
|
+
params['id'] is None):
|
|
1039
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster`") # noqa: E501
|
|
941
1040
|
|
|
942
1041
|
collection_formats = {}
|
|
943
1042
|
|
|
944
1043
|
path_params = {}
|
|
945
|
-
if '
|
|
946
|
-
path_params['
|
|
947
|
-
if 'proxy_id' in params:
|
|
948
|
-
path_params['proxyId'] = params['proxy_id'] # noqa: E501
|
|
1044
|
+
if 'id' in params:
|
|
1045
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
949
1046
|
|
|
950
1047
|
query_params = []
|
|
951
1048
|
if 'org_id' in params:
|
|
952
1049
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1050
|
+
if 'project_id' in params:
|
|
1051
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1052
|
+
if 'force' in params:
|
|
1053
|
+
query_params.append(('force', params['force'])) # noqa: E501
|
|
1054
|
+
if 'delete_artifacts' in params:
|
|
1055
|
+
query_params.append(('deleteArtifacts', params['delete_artifacts'])) # noqa: E501
|
|
1056
|
+
if 'delete_system_logs' in params:
|
|
1057
|
+
query_params.append(('deleteSystemLogs', params['delete_system_logs'])) # noqa: E501
|
|
953
1058
|
|
|
954
1059
|
header_params = {}
|
|
955
1060
|
|
|
@@ -965,14 +1070,14 @@ class ClusterServiceApi(object):
|
|
|
965
1070
|
auth_settings = [] # noqa: E501
|
|
966
1071
|
|
|
967
1072
|
return self.api_client.call_api(
|
|
968
|
-
'/v1/core/clusters/{
|
|
1073
|
+
'/v1/core/clusters/{id}', 'DELETE',
|
|
969
1074
|
path_params,
|
|
970
1075
|
query_params,
|
|
971
1076
|
header_params,
|
|
972
1077
|
body=body_params,
|
|
973
1078
|
post_params=form_params,
|
|
974
1079
|
files=local_var_files,
|
|
975
|
-
response_type='
|
|
1080
|
+
response_type='V1DeleteClusterResponse', # noqa: E501
|
|
976
1081
|
auth_settings=auth_settings,
|
|
977
1082
|
async_req=params.get('async_req'),
|
|
978
1083
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -980,51 +1085,47 @@ class ClusterServiceApi(object):
|
|
|
980
1085
|
_request_timeout=params.get('_request_timeout'),
|
|
981
1086
|
collection_formats=collection_formats)
|
|
982
1087
|
|
|
983
|
-
def
|
|
984
|
-
"""
|
|
1088
|
+
def cluster_service_delete_cluster_capacity_reservation(self, project_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterCapacityReservationResponse': # noqa: E501
|
|
1089
|
+
"""cluster_service_delete_cluster_capacity_reservation # noqa: E501
|
|
985
1090
|
|
|
986
1091
|
This method makes a synchronous HTTP request by default. To make an
|
|
987
1092
|
asynchronous HTTP request, please pass async_req=True
|
|
988
|
-
>>> thread = api.
|
|
1093
|
+
>>> thread = api.cluster_service_delete_cluster_capacity_reservation(project_id, cluster_id, id, async_req=True)
|
|
989
1094
|
>>> result = thread.get()
|
|
990
1095
|
|
|
991
1096
|
:param async_req bool
|
|
992
1097
|
:param str project_id: (required)
|
|
1098
|
+
:param str cluster_id: (required)
|
|
993
1099
|
:param str id: (required)
|
|
994
|
-
:
|
|
995
|
-
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
996
|
-
:param bool delete_system_logs:
|
|
997
|
-
:return: V1DeleteProjectClusterResponse
|
|
1100
|
+
:return: V1DeleteClusterCapacityReservationResponse
|
|
998
1101
|
If the method is called asynchronously,
|
|
999
1102
|
returns the request thread.
|
|
1000
1103
|
"""
|
|
1001
1104
|
kwargs['_return_http_data_only'] = True
|
|
1002
1105
|
if kwargs.get('async_req'):
|
|
1003
|
-
return self.
|
|
1106
|
+
return self.cluster_service_delete_cluster_capacity_reservation_with_http_info(project_id, cluster_id, id, **kwargs) # noqa: E501
|
|
1004
1107
|
else:
|
|
1005
|
-
(data) = self.
|
|
1108
|
+
(data) = self.cluster_service_delete_cluster_capacity_reservation_with_http_info(project_id, cluster_id, id, **kwargs) # noqa: E501
|
|
1006
1109
|
return data
|
|
1007
1110
|
|
|
1008
|
-
def
|
|
1009
|
-
"""
|
|
1111
|
+
def cluster_service_delete_cluster_capacity_reservation_with_http_info(self, project_id: 'str', cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterCapacityReservationResponse': # noqa: E501
|
|
1112
|
+
"""cluster_service_delete_cluster_capacity_reservation # noqa: E501
|
|
1010
1113
|
|
|
1011
1114
|
This method makes a synchronous HTTP request by default. To make an
|
|
1012
1115
|
asynchronous HTTP request, please pass async_req=True
|
|
1013
|
-
>>> thread = api.
|
|
1116
|
+
>>> thread = api.cluster_service_delete_cluster_capacity_reservation_with_http_info(project_id, cluster_id, id, async_req=True)
|
|
1014
1117
|
>>> result = thread.get()
|
|
1015
1118
|
|
|
1016
1119
|
:param async_req bool
|
|
1017
1120
|
:param str project_id: (required)
|
|
1121
|
+
:param str cluster_id: (required)
|
|
1018
1122
|
:param str id: (required)
|
|
1019
|
-
:
|
|
1020
|
-
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
1021
|
-
:param bool delete_system_logs:
|
|
1022
|
-
:return: V1DeleteProjectClusterResponse
|
|
1123
|
+
:return: V1DeleteClusterCapacityReservationResponse
|
|
1023
1124
|
If the method is called asynchronously,
|
|
1024
1125
|
returns the request thread.
|
|
1025
1126
|
"""
|
|
1026
1127
|
|
|
1027
|
-
all_params = ['project_id', '
|
|
1128
|
+
all_params = ['project_id', 'cluster_id', 'id'] # noqa: E501
|
|
1028
1129
|
all_params.append('async_req')
|
|
1029
1130
|
all_params.append('_return_http_data_only')
|
|
1030
1131
|
all_params.append('_preload_content')
|
|
@@ -1035,34 +1136,34 @@ class ClusterServiceApi(object):
|
|
|
1035
1136
|
if key not in all_params:
|
|
1036
1137
|
raise TypeError(
|
|
1037
1138
|
"Got an unexpected keyword argument '%s'"
|
|
1038
|
-
" to method
|
|
1139
|
+
" to method cluster_service_delete_cluster_capacity_reservation" % key
|
|
1039
1140
|
)
|
|
1040
1141
|
params[key] = val
|
|
1041
1142
|
del params['kwargs']
|
|
1042
1143
|
# verify the required parameter 'project_id' is set
|
|
1043
1144
|
if ('project_id' not in params or
|
|
1044
1145
|
params['project_id'] is None):
|
|
1045
|
-
raise ValueError("Missing the required parameter `project_id` when calling `
|
|
1146
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_delete_cluster_capacity_reservation`") # noqa: E501
|
|
1147
|
+
# verify the required parameter 'cluster_id' is set
|
|
1148
|
+
if ('cluster_id' not in params or
|
|
1149
|
+
params['cluster_id'] is None):
|
|
1150
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_capacity_reservation`") # noqa: E501
|
|
1046
1151
|
# verify the required parameter 'id' is set
|
|
1047
1152
|
if ('id' not in params or
|
|
1048
1153
|
params['id'] is None):
|
|
1049
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
1154
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster_capacity_reservation`") # noqa: E501
|
|
1050
1155
|
|
|
1051
1156
|
collection_formats = {}
|
|
1052
1157
|
|
|
1053
1158
|
path_params = {}
|
|
1054
1159
|
if 'project_id' in params:
|
|
1055
1160
|
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1161
|
+
if 'cluster_id' in params:
|
|
1162
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1056
1163
|
if 'id' in params:
|
|
1057
1164
|
path_params['id'] = params['id'] # noqa: E501
|
|
1058
1165
|
|
|
1059
1166
|
query_params = []
|
|
1060
|
-
if 'force' in params:
|
|
1061
|
-
query_params.append(('force', params['force'])) # noqa: E501
|
|
1062
|
-
if 'delete_artifacts' in params:
|
|
1063
|
-
query_params.append(('deleteArtifacts', params['delete_artifacts'])) # noqa: E501
|
|
1064
|
-
if 'delete_system_logs' in params:
|
|
1065
|
-
query_params.append(('deleteSystemLogs', params['delete_system_logs'])) # noqa: E501
|
|
1066
1167
|
|
|
1067
1168
|
header_params = {}
|
|
1068
1169
|
|
|
@@ -1078,14 +1179,14 @@ class ClusterServiceApi(object):
|
|
|
1078
1179
|
auth_settings = [] # noqa: E501
|
|
1079
1180
|
|
|
1080
1181
|
return self.api_client.call_api(
|
|
1081
|
-
'/v1/projects/{projectId}/clusters/{id}', 'DELETE',
|
|
1182
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/capacity-reservations/{id}', 'DELETE',
|
|
1082
1183
|
path_params,
|
|
1083
1184
|
query_params,
|
|
1084
1185
|
header_params,
|
|
1085
1186
|
body=body_params,
|
|
1086
1187
|
post_params=form_params,
|
|
1087
1188
|
files=local_var_files,
|
|
1088
|
-
response_type='
|
|
1189
|
+
response_type='V1DeleteClusterCapacityReservationResponse', # noqa: E501
|
|
1089
1190
|
auth_settings=auth_settings,
|
|
1090
1191
|
async_req=params.get('async_req'),
|
|
1091
1192
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1093,57 +1194,43 @@ class ClusterServiceApi(object):
|
|
|
1093
1194
|
_request_timeout=params.get('_request_timeout'),
|
|
1094
1195
|
collection_formats=collection_formats)
|
|
1095
1196
|
|
|
1096
|
-
def
|
|
1097
|
-
"""
|
|
1197
|
+
def cluster_service_delete_cluster_encryption_key(self, id: 'str', **kwargs) -> 'V1DeleteClusterEncryptionKeyResponse': # noqa: E501
|
|
1198
|
+
"""cluster_service_delete_cluster_encryption_key # noqa: E501
|
|
1098
1199
|
|
|
1099
1200
|
This method makes a synchronous HTTP request by default. To make an
|
|
1100
1201
|
asynchronous HTTP request, please pass async_req=True
|
|
1101
|
-
>>> thread = api.
|
|
1202
|
+
>>> thread = api.cluster_service_delete_cluster_encryption_key(id, async_req=True)
|
|
1102
1203
|
>>> result = thread.get()
|
|
1103
1204
|
|
|
1104
1205
|
:param async_req bool
|
|
1105
|
-
:param str
|
|
1106
|
-
:
|
|
1107
|
-
:param str instance_type:
|
|
1108
|
-
:param int instance_count:
|
|
1109
|
-
:param datetime start_date:
|
|
1110
|
-
:param str timezone:
|
|
1111
|
-
:param str org_id:
|
|
1112
|
-
:param int capacity_block_duration_days:
|
|
1113
|
-
:return: V1FindCapacityBlockOfferingResponse
|
|
1206
|
+
:param str id: (required)
|
|
1207
|
+
:return: V1DeleteClusterEncryptionKeyResponse
|
|
1114
1208
|
If the method is called asynchronously,
|
|
1115
1209
|
returns the request thread.
|
|
1116
1210
|
"""
|
|
1117
1211
|
kwargs['_return_http_data_only'] = True
|
|
1118
1212
|
if kwargs.get('async_req'):
|
|
1119
|
-
return self.
|
|
1213
|
+
return self.cluster_service_delete_cluster_encryption_key_with_http_info(id, **kwargs) # noqa: E501
|
|
1120
1214
|
else:
|
|
1121
|
-
(data) = self.
|
|
1215
|
+
(data) = self.cluster_service_delete_cluster_encryption_key_with_http_info(id, **kwargs) # noqa: E501
|
|
1122
1216
|
return data
|
|
1123
1217
|
|
|
1124
|
-
def
|
|
1125
|
-
"""
|
|
1218
|
+
def cluster_service_delete_cluster_encryption_key_with_http_info(self, id: 'str', **kwargs) -> 'V1DeleteClusterEncryptionKeyResponse': # noqa: E501
|
|
1219
|
+
"""cluster_service_delete_cluster_encryption_key # noqa: E501
|
|
1126
1220
|
|
|
1127
1221
|
This method makes a synchronous HTTP request by default. To make an
|
|
1128
1222
|
asynchronous HTTP request, please pass async_req=True
|
|
1129
|
-
>>> thread = api.
|
|
1223
|
+
>>> thread = api.cluster_service_delete_cluster_encryption_key_with_http_info(id, async_req=True)
|
|
1130
1224
|
>>> result = thread.get()
|
|
1131
1225
|
|
|
1132
1226
|
:param async_req bool
|
|
1133
|
-
:param str
|
|
1134
|
-
:
|
|
1135
|
-
:param str instance_type:
|
|
1136
|
-
:param int instance_count:
|
|
1137
|
-
:param datetime start_date:
|
|
1138
|
-
:param str timezone:
|
|
1139
|
-
:param str org_id:
|
|
1140
|
-
:param int capacity_block_duration_days:
|
|
1141
|
-
:return: V1FindCapacityBlockOfferingResponse
|
|
1227
|
+
:param str id: (required)
|
|
1228
|
+
:return: V1DeleteClusterEncryptionKeyResponse
|
|
1142
1229
|
If the method is called asynchronously,
|
|
1143
1230
|
returns the request thread.
|
|
1144
1231
|
"""
|
|
1145
1232
|
|
|
1146
|
-
all_params = ['
|
|
1233
|
+
all_params = ['id'] # noqa: E501
|
|
1147
1234
|
all_params.append('async_req')
|
|
1148
1235
|
all_params.append('_return_http_data_only')
|
|
1149
1236
|
all_params.append('_preload_content')
|
|
@@ -1154,40 +1241,22 @@ class ClusterServiceApi(object):
|
|
|
1154
1241
|
if key not in all_params:
|
|
1155
1242
|
raise TypeError(
|
|
1156
1243
|
"Got an unexpected keyword argument '%s'"
|
|
1157
|
-
" to method
|
|
1244
|
+
" to method cluster_service_delete_cluster_encryption_key" % key
|
|
1158
1245
|
)
|
|
1159
1246
|
params[key] = val
|
|
1160
1247
|
del params['kwargs']
|
|
1161
|
-
# verify the required parameter '
|
|
1162
|
-
if ('
|
|
1163
|
-
params['
|
|
1164
|
-
raise ValueError("Missing the required parameter `
|
|
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
|
|
1248
|
+
# verify the required parameter 'id' is set
|
|
1249
|
+
if ('id' not in params or
|
|
1250
|
+
params['id'] is None):
|
|
1251
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster_encryption_key`") # noqa: E501
|
|
1169
1252
|
|
|
1170
1253
|
collection_formats = {}
|
|
1171
1254
|
|
|
1172
1255
|
path_params = {}
|
|
1173
|
-
if '
|
|
1174
|
-
path_params['
|
|
1175
|
-
if 'cluster_id' in params:
|
|
1176
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1256
|
+
if 'id' in params:
|
|
1257
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1177
1258
|
|
|
1178
1259
|
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
|
|
1187
|
-
if 'org_id' in params:
|
|
1188
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1189
|
-
if 'capacity_block_duration_days' in params:
|
|
1190
|
-
query_params.append(('capacityBlockDurationDays', params['capacity_block_duration_days'])) # noqa: E501
|
|
1191
1260
|
|
|
1192
1261
|
header_params = {}
|
|
1193
1262
|
|
|
@@ -1203,14 +1272,14 @@ class ClusterServiceApi(object):
|
|
|
1203
1272
|
auth_settings = [] # noqa: E501
|
|
1204
1273
|
|
|
1205
1274
|
return self.api_client.call_api(
|
|
1206
|
-
'/v1/
|
|
1275
|
+
'/v1/core/cluster-encryption-keys/{id}', 'DELETE',
|
|
1207
1276
|
path_params,
|
|
1208
1277
|
query_params,
|
|
1209
1278
|
header_params,
|
|
1210
1279
|
body=body_params,
|
|
1211
1280
|
post_params=form_params,
|
|
1212
1281
|
files=local_var_files,
|
|
1213
|
-
response_type='
|
|
1282
|
+
response_type='V1DeleteClusterEncryptionKeyResponse', # noqa: E501
|
|
1214
1283
|
auth_settings=auth_settings,
|
|
1215
1284
|
async_req=params.get('async_req'),
|
|
1216
1285
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1218,47 +1287,47 @@ class ClusterServiceApi(object):
|
|
|
1218
1287
|
_request_timeout=params.get('_request_timeout'),
|
|
1219
1288
|
collection_formats=collection_formats)
|
|
1220
1289
|
|
|
1221
|
-
def
|
|
1222
|
-
"""
|
|
1290
|
+
def cluster_service_delete_cluster_proxy(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
|
|
1291
|
+
"""cluster_service_delete_cluster_proxy # noqa: E501
|
|
1223
1292
|
|
|
1224
1293
|
This method makes a synchronous HTTP request by default. To make an
|
|
1225
1294
|
asynchronous HTTP request, please pass async_req=True
|
|
1226
|
-
>>> thread = api.
|
|
1295
|
+
>>> thread = api.cluster_service_delete_cluster_proxy(cluster_id, proxy_id, async_req=True)
|
|
1227
1296
|
>>> result = thread.get()
|
|
1228
1297
|
|
|
1229
1298
|
:param async_req bool
|
|
1230
|
-
:param str
|
|
1299
|
+
:param str cluster_id: (required)
|
|
1300
|
+
:param str proxy_id: (required)
|
|
1231
1301
|
:param str org_id:
|
|
1232
|
-
:
|
|
1233
|
-
:return: Externalv1Cluster
|
|
1302
|
+
:return: V1DeleteClusterProxyResponse
|
|
1234
1303
|
If the method is called asynchronously,
|
|
1235
1304
|
returns the request thread.
|
|
1236
1305
|
"""
|
|
1237
1306
|
kwargs['_return_http_data_only'] = True
|
|
1238
1307
|
if kwargs.get('async_req'):
|
|
1239
|
-
return self.
|
|
1308
|
+
return self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
|
|
1240
1309
|
else:
|
|
1241
|
-
(data) = self.
|
|
1310
|
+
(data) = self.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, **kwargs) # noqa: E501
|
|
1242
1311
|
return data
|
|
1243
1312
|
|
|
1244
|
-
def
|
|
1245
|
-
"""
|
|
1313
|
+
def cluster_service_delete_cluster_proxy_with_http_info(self, cluster_id: 'str', proxy_id: 'str', **kwargs) -> 'V1DeleteClusterProxyResponse': # noqa: E501
|
|
1314
|
+
"""cluster_service_delete_cluster_proxy # noqa: E501
|
|
1246
1315
|
|
|
1247
1316
|
This method makes a synchronous HTTP request by default. To make an
|
|
1248
1317
|
asynchronous HTTP request, please pass async_req=True
|
|
1249
|
-
>>> thread = api.
|
|
1318
|
+
>>> thread = api.cluster_service_delete_cluster_proxy_with_http_info(cluster_id, proxy_id, async_req=True)
|
|
1250
1319
|
>>> result = thread.get()
|
|
1251
1320
|
|
|
1252
1321
|
:param async_req bool
|
|
1253
|
-
:param str
|
|
1322
|
+
:param str cluster_id: (required)
|
|
1323
|
+
:param str proxy_id: (required)
|
|
1254
1324
|
:param str org_id:
|
|
1255
|
-
:
|
|
1256
|
-
:return: Externalv1Cluster
|
|
1325
|
+
:return: V1DeleteClusterProxyResponse
|
|
1257
1326
|
If the method is called asynchronously,
|
|
1258
1327
|
returns the request thread.
|
|
1259
1328
|
"""
|
|
1260
1329
|
|
|
1261
|
-
all_params = ['
|
|
1330
|
+
all_params = ['cluster_id', 'proxy_id', 'org_id'] # noqa: E501
|
|
1262
1331
|
all_params.append('async_req')
|
|
1263
1332
|
all_params.append('_return_http_data_only')
|
|
1264
1333
|
all_params.append('_preload_content')
|
|
@@ -1269,26 +1338,866 @@ class ClusterServiceApi(object):
|
|
|
1269
1338
|
if key not in all_params:
|
|
1270
1339
|
raise TypeError(
|
|
1271
1340
|
"Got an unexpected keyword argument '%s'"
|
|
1272
|
-
" to method
|
|
1341
|
+
" to method cluster_service_delete_cluster_proxy" % key
|
|
1342
|
+
)
|
|
1343
|
+
params[key] = val
|
|
1344
|
+
del params['kwargs']
|
|
1345
|
+
# verify the required parameter 'cluster_id' is set
|
|
1346
|
+
if ('cluster_id' not in params or
|
|
1347
|
+
params['cluster_id'] is None):
|
|
1348
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
|
|
1349
|
+
# verify the required parameter 'proxy_id' is set
|
|
1350
|
+
if ('proxy_id' not in params or
|
|
1351
|
+
params['proxy_id'] is None):
|
|
1352
|
+
raise ValueError("Missing the required parameter `proxy_id` when calling `cluster_service_delete_cluster_proxy`") # noqa: E501
|
|
1353
|
+
|
|
1354
|
+
collection_formats = {}
|
|
1355
|
+
|
|
1356
|
+
path_params = {}
|
|
1357
|
+
if 'cluster_id' in params:
|
|
1358
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1359
|
+
if 'proxy_id' in params:
|
|
1360
|
+
path_params['proxyId'] = params['proxy_id'] # noqa: E501
|
|
1361
|
+
|
|
1362
|
+
query_params = []
|
|
1363
|
+
if 'org_id' in params:
|
|
1364
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1365
|
+
|
|
1366
|
+
header_params = {}
|
|
1367
|
+
|
|
1368
|
+
form_params = []
|
|
1369
|
+
local_var_files = {}
|
|
1370
|
+
|
|
1371
|
+
body_params = None
|
|
1372
|
+
# HTTP header `Accept`
|
|
1373
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1374
|
+
['application/json']) # noqa: E501
|
|
1375
|
+
|
|
1376
|
+
# Authentication setting
|
|
1377
|
+
auth_settings = [] # noqa: E501
|
|
1378
|
+
|
|
1379
|
+
return self.api_client.call_api(
|
|
1380
|
+
'/v1/core/clusters/{clusterId}/proxies/{proxyId}', 'DELETE',
|
|
1381
|
+
path_params,
|
|
1382
|
+
query_params,
|
|
1383
|
+
header_params,
|
|
1384
|
+
body=body_params,
|
|
1385
|
+
post_params=form_params,
|
|
1386
|
+
files=local_var_files,
|
|
1387
|
+
response_type='V1DeleteClusterProxyResponse', # noqa: E501
|
|
1388
|
+
auth_settings=auth_settings,
|
|
1389
|
+
async_req=params.get('async_req'),
|
|
1390
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1391
|
+
_preload_content=params.get('_preload_content', True),
|
|
1392
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1393
|
+
collection_formats=collection_formats)
|
|
1394
|
+
|
|
1395
|
+
def cluster_service_delete_cluster_usage_restriction(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterUsageRestrictionResponse': # noqa: E501
|
|
1396
|
+
"""cluster_service_delete_cluster_usage_restriction # noqa: E501
|
|
1397
|
+
|
|
1398
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1399
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1400
|
+
>>> thread = api.cluster_service_delete_cluster_usage_restriction(cluster_id, id, async_req=True)
|
|
1401
|
+
>>> result = thread.get()
|
|
1402
|
+
|
|
1403
|
+
:param async_req bool
|
|
1404
|
+
:param str cluster_id: (required)
|
|
1405
|
+
:param str id: (required)
|
|
1406
|
+
:param str org_id:
|
|
1407
|
+
:return: V1DeleteClusterUsageRestrictionResponse
|
|
1408
|
+
If the method is called asynchronously,
|
|
1409
|
+
returns the request thread.
|
|
1410
|
+
"""
|
|
1411
|
+
kwargs['_return_http_data_only'] = True
|
|
1412
|
+
if kwargs.get('async_req'):
|
|
1413
|
+
return self.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1414
|
+
else:
|
|
1415
|
+
(data) = self.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1416
|
+
return data
|
|
1417
|
+
|
|
1418
|
+
def cluster_service_delete_cluster_usage_restriction_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterUsageRestrictionResponse': # noqa: E501
|
|
1419
|
+
"""cluster_service_delete_cluster_usage_restriction # noqa: E501
|
|
1420
|
+
|
|
1421
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1422
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1423
|
+
>>> thread = api.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, async_req=True)
|
|
1424
|
+
>>> result = thread.get()
|
|
1425
|
+
|
|
1426
|
+
:param async_req bool
|
|
1427
|
+
:param str cluster_id: (required)
|
|
1428
|
+
:param str id: (required)
|
|
1429
|
+
:param str org_id:
|
|
1430
|
+
:return: V1DeleteClusterUsageRestrictionResponse
|
|
1431
|
+
If the method is called asynchronously,
|
|
1432
|
+
returns the request thread.
|
|
1433
|
+
"""
|
|
1434
|
+
|
|
1435
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
1436
|
+
all_params.append('async_req')
|
|
1437
|
+
all_params.append('_return_http_data_only')
|
|
1438
|
+
all_params.append('_preload_content')
|
|
1439
|
+
all_params.append('_request_timeout')
|
|
1440
|
+
|
|
1441
|
+
params = locals()
|
|
1442
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1443
|
+
if key not in all_params:
|
|
1444
|
+
raise TypeError(
|
|
1445
|
+
"Got an unexpected keyword argument '%s'"
|
|
1446
|
+
" to method cluster_service_delete_cluster_usage_restriction" % key
|
|
1447
|
+
)
|
|
1448
|
+
params[key] = val
|
|
1449
|
+
del params['kwargs']
|
|
1450
|
+
# verify the required parameter 'cluster_id' is set
|
|
1451
|
+
if ('cluster_id' not in params or
|
|
1452
|
+
params['cluster_id'] is None):
|
|
1453
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_usage_restriction`") # noqa: E501
|
|
1454
|
+
# verify the required parameter 'id' is set
|
|
1455
|
+
if ('id' not in params or
|
|
1456
|
+
params['id'] is None):
|
|
1457
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster_usage_restriction`") # noqa: E501
|
|
1458
|
+
|
|
1459
|
+
collection_formats = {}
|
|
1460
|
+
|
|
1461
|
+
path_params = {}
|
|
1462
|
+
if 'cluster_id' in params:
|
|
1463
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1464
|
+
if 'id' in params:
|
|
1465
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1466
|
+
|
|
1467
|
+
query_params = []
|
|
1468
|
+
if 'org_id' in params:
|
|
1469
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1470
|
+
|
|
1471
|
+
header_params = {}
|
|
1472
|
+
|
|
1473
|
+
form_params = []
|
|
1474
|
+
local_var_files = {}
|
|
1475
|
+
|
|
1476
|
+
body_params = None
|
|
1477
|
+
# HTTP header `Accept`
|
|
1478
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1479
|
+
['application/json']) # noqa: E501
|
|
1480
|
+
|
|
1481
|
+
# Authentication setting
|
|
1482
|
+
auth_settings = [] # noqa: E501
|
|
1483
|
+
|
|
1484
|
+
return self.api_client.call_api(
|
|
1485
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions/{id}', 'DELETE',
|
|
1486
|
+
path_params,
|
|
1487
|
+
query_params,
|
|
1488
|
+
header_params,
|
|
1489
|
+
body=body_params,
|
|
1490
|
+
post_params=form_params,
|
|
1491
|
+
files=local_var_files,
|
|
1492
|
+
response_type='V1DeleteClusterUsageRestrictionResponse', # noqa: E501
|
|
1493
|
+
auth_settings=auth_settings,
|
|
1494
|
+
async_req=params.get('async_req'),
|
|
1495
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1496
|
+
_preload_content=params.get('_preload_content', True),
|
|
1497
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1498
|
+
collection_formats=collection_formats)
|
|
1499
|
+
|
|
1500
|
+
def cluster_service_delete_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
|
|
1501
|
+
"""Delete a machine # noqa: E501
|
|
1502
|
+
|
|
1503
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1504
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1505
|
+
>>> thread = api.cluster_service_delete_machine(cluster_id, id, async_req=True)
|
|
1506
|
+
>>> result = thread.get()
|
|
1507
|
+
|
|
1508
|
+
:param async_req bool
|
|
1509
|
+
:param str cluster_id: (required)
|
|
1510
|
+
:param str id: (required)
|
|
1511
|
+
:param str org_id:
|
|
1512
|
+
:return: V1DeleteMachineResponse
|
|
1513
|
+
If the method is called asynchronously,
|
|
1514
|
+
returns the request thread.
|
|
1515
|
+
"""
|
|
1516
|
+
kwargs['_return_http_data_only'] = True
|
|
1517
|
+
if kwargs.get('async_req'):
|
|
1518
|
+
return self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1519
|
+
else:
|
|
1520
|
+
(data) = self.cluster_service_delete_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1521
|
+
return data
|
|
1522
|
+
|
|
1523
|
+
def cluster_service_delete_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteMachineResponse': # noqa: E501
|
|
1524
|
+
"""Delete a machine # noqa: E501
|
|
1525
|
+
|
|
1526
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1527
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1528
|
+
>>> thread = api.cluster_service_delete_machine_with_http_info(cluster_id, id, async_req=True)
|
|
1529
|
+
>>> result = thread.get()
|
|
1530
|
+
|
|
1531
|
+
:param async_req bool
|
|
1532
|
+
:param str cluster_id: (required)
|
|
1533
|
+
:param str id: (required)
|
|
1534
|
+
:param str org_id:
|
|
1535
|
+
:return: V1DeleteMachineResponse
|
|
1536
|
+
If the method is called asynchronously,
|
|
1537
|
+
returns the request thread.
|
|
1538
|
+
"""
|
|
1539
|
+
|
|
1540
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
1541
|
+
all_params.append('async_req')
|
|
1542
|
+
all_params.append('_return_http_data_only')
|
|
1543
|
+
all_params.append('_preload_content')
|
|
1544
|
+
all_params.append('_request_timeout')
|
|
1545
|
+
|
|
1546
|
+
params = locals()
|
|
1547
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1548
|
+
if key not in all_params:
|
|
1549
|
+
raise TypeError(
|
|
1550
|
+
"Got an unexpected keyword argument '%s'"
|
|
1551
|
+
" to method cluster_service_delete_machine" % key
|
|
1552
|
+
)
|
|
1553
|
+
params[key] = val
|
|
1554
|
+
del params['kwargs']
|
|
1555
|
+
# verify the required parameter 'cluster_id' is set
|
|
1556
|
+
if ('cluster_id' not in params or
|
|
1557
|
+
params['cluster_id'] is None):
|
|
1558
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_machine`") # noqa: E501
|
|
1559
|
+
# verify the required parameter 'id' is set
|
|
1560
|
+
if ('id' not in params or
|
|
1561
|
+
params['id'] is None):
|
|
1562
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_machine`") # noqa: E501
|
|
1563
|
+
|
|
1564
|
+
collection_formats = {}
|
|
1565
|
+
|
|
1566
|
+
path_params = {}
|
|
1567
|
+
if 'cluster_id' in params:
|
|
1568
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1569
|
+
if 'id' in params:
|
|
1570
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1571
|
+
|
|
1572
|
+
query_params = []
|
|
1573
|
+
if 'org_id' in params:
|
|
1574
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1575
|
+
|
|
1576
|
+
header_params = {}
|
|
1577
|
+
|
|
1578
|
+
form_params = []
|
|
1579
|
+
local_var_files = {}
|
|
1580
|
+
|
|
1581
|
+
body_params = None
|
|
1582
|
+
# HTTP header `Accept`
|
|
1583
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1584
|
+
['application/json']) # noqa: E501
|
|
1585
|
+
|
|
1586
|
+
# Authentication setting
|
|
1587
|
+
auth_settings = [] # noqa: E501
|
|
1588
|
+
|
|
1589
|
+
return self.api_client.call_api(
|
|
1590
|
+
'/v1/core/clusters/{clusterId}/machines/{id}', 'DELETE',
|
|
1591
|
+
path_params,
|
|
1592
|
+
query_params,
|
|
1593
|
+
header_params,
|
|
1594
|
+
body=body_params,
|
|
1595
|
+
post_params=form_params,
|
|
1596
|
+
files=local_var_files,
|
|
1597
|
+
response_type='V1DeleteMachineResponse', # noqa: E501
|
|
1598
|
+
auth_settings=auth_settings,
|
|
1599
|
+
async_req=params.get('async_req'),
|
|
1600
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1601
|
+
_preload_content=params.get('_preload_content', True),
|
|
1602
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1603
|
+
collection_formats=collection_formats)
|
|
1604
|
+
|
|
1605
|
+
def cluster_service_delete_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
|
|
1606
|
+
"""cluster_service_delete_project_cluster # noqa: E501
|
|
1607
|
+
|
|
1608
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1609
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1610
|
+
>>> thread = api.cluster_service_delete_project_cluster(project_id, id, async_req=True)
|
|
1611
|
+
>>> result = thread.get()
|
|
1612
|
+
|
|
1613
|
+
:param async_req bool
|
|
1614
|
+
:param str project_id: (required)
|
|
1615
|
+
:param str id: (required)
|
|
1616
|
+
:param bool force:
|
|
1617
|
+
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
1618
|
+
:param bool delete_system_logs:
|
|
1619
|
+
:return: V1DeleteProjectClusterResponse
|
|
1620
|
+
If the method is called asynchronously,
|
|
1621
|
+
returns the request thread.
|
|
1622
|
+
"""
|
|
1623
|
+
kwargs['_return_http_data_only'] = True
|
|
1624
|
+
if kwargs.get('async_req'):
|
|
1625
|
+
return self.cluster_service_delete_project_cluster_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1626
|
+
else:
|
|
1627
|
+
(data) = self.cluster_service_delete_project_cluster_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
1628
|
+
return data
|
|
1629
|
+
|
|
1630
|
+
def cluster_service_delete_project_cluster_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
|
|
1631
|
+
"""cluster_service_delete_project_cluster # noqa: E501
|
|
1632
|
+
|
|
1633
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1634
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1635
|
+
>>> thread = api.cluster_service_delete_project_cluster_with_http_info(project_id, id, async_req=True)
|
|
1636
|
+
>>> result = thread.get()
|
|
1637
|
+
|
|
1638
|
+
:param async_req bool
|
|
1639
|
+
:param str project_id: (required)
|
|
1640
|
+
:param str id: (required)
|
|
1641
|
+
:param bool force:
|
|
1642
|
+
:param bool delete_artifacts: if set to true, artifacts in the cloud provider object storage will be deleted.
|
|
1643
|
+
:param bool delete_system_logs:
|
|
1644
|
+
:return: V1DeleteProjectClusterResponse
|
|
1645
|
+
If the method is called asynchronously,
|
|
1646
|
+
returns the request thread.
|
|
1647
|
+
"""
|
|
1648
|
+
|
|
1649
|
+
all_params = ['project_id', 'id', 'force', 'delete_artifacts', 'delete_system_logs'] # noqa: E501
|
|
1650
|
+
all_params.append('async_req')
|
|
1651
|
+
all_params.append('_return_http_data_only')
|
|
1652
|
+
all_params.append('_preload_content')
|
|
1653
|
+
all_params.append('_request_timeout')
|
|
1654
|
+
|
|
1655
|
+
params = locals()
|
|
1656
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1657
|
+
if key not in all_params:
|
|
1658
|
+
raise TypeError(
|
|
1659
|
+
"Got an unexpected keyword argument '%s'"
|
|
1660
|
+
" to method cluster_service_delete_project_cluster" % key
|
|
1661
|
+
)
|
|
1662
|
+
params[key] = val
|
|
1663
|
+
del params['kwargs']
|
|
1664
|
+
# verify the required parameter 'project_id' is set
|
|
1665
|
+
if ('project_id' not in params or
|
|
1666
|
+
params['project_id'] is None):
|
|
1667
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_delete_project_cluster`") # noqa: E501
|
|
1668
|
+
# verify the required parameter 'id' is set
|
|
1669
|
+
if ('id' not in params or
|
|
1670
|
+
params['id'] is None):
|
|
1671
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_project_cluster`") # noqa: E501
|
|
1672
|
+
|
|
1673
|
+
collection_formats = {}
|
|
1674
|
+
|
|
1675
|
+
path_params = {}
|
|
1676
|
+
if 'project_id' in params:
|
|
1677
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1678
|
+
if 'id' in params:
|
|
1679
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1680
|
+
|
|
1681
|
+
query_params = []
|
|
1682
|
+
if 'force' in params:
|
|
1683
|
+
query_params.append(('force', params['force'])) # noqa: E501
|
|
1684
|
+
if 'delete_artifacts' in params:
|
|
1685
|
+
query_params.append(('deleteArtifacts', params['delete_artifacts'])) # noqa: E501
|
|
1686
|
+
if 'delete_system_logs' in params:
|
|
1687
|
+
query_params.append(('deleteSystemLogs', params['delete_system_logs'])) # noqa: E501
|
|
1688
|
+
|
|
1689
|
+
header_params = {}
|
|
1690
|
+
|
|
1691
|
+
form_params = []
|
|
1692
|
+
local_var_files = {}
|
|
1693
|
+
|
|
1694
|
+
body_params = None
|
|
1695
|
+
# HTTP header `Accept`
|
|
1696
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1697
|
+
['application/json']) # noqa: E501
|
|
1698
|
+
|
|
1699
|
+
# Authentication setting
|
|
1700
|
+
auth_settings = [] # noqa: E501
|
|
1701
|
+
|
|
1702
|
+
return self.api_client.call_api(
|
|
1703
|
+
'/v1/projects/{projectId}/clusters/{id}', 'DELETE',
|
|
1704
|
+
path_params,
|
|
1705
|
+
query_params,
|
|
1706
|
+
header_params,
|
|
1707
|
+
body=body_params,
|
|
1708
|
+
post_params=form_params,
|
|
1709
|
+
files=local_var_files,
|
|
1710
|
+
response_type='V1DeleteProjectClusterResponse', # noqa: E501
|
|
1711
|
+
auth_settings=auth_settings,
|
|
1712
|
+
async_req=params.get('async_req'),
|
|
1713
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1714
|
+
_preload_content=params.get('_preload_content', True),
|
|
1715
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1716
|
+
collection_formats=collection_formats)
|
|
1717
|
+
|
|
1718
|
+
def cluster_service_find_capacity_block_offering(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
|
|
1719
|
+
"""cluster_service_find_capacity_block_offering # noqa: E501
|
|
1720
|
+
|
|
1721
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1722
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1723
|
+
>>> thread = api.cluster_service_find_capacity_block_offering(project_id, cluster_id, async_req=True)
|
|
1724
|
+
>>> result = thread.get()
|
|
1725
|
+
|
|
1726
|
+
:param async_req bool
|
|
1727
|
+
:param str project_id: (required)
|
|
1728
|
+
:param str cluster_id: (required)
|
|
1729
|
+
:param str instance_type:
|
|
1730
|
+
:param int instance_count:
|
|
1731
|
+
:param datetime start_date:
|
|
1732
|
+
:param str timezone:
|
|
1733
|
+
:param str org_id:
|
|
1734
|
+
:param int capacity_block_duration_hours:
|
|
1735
|
+
:return: V1FindCapacityBlockOfferingResponse
|
|
1736
|
+
If the method is called asynchronously,
|
|
1737
|
+
returns the request thread.
|
|
1738
|
+
"""
|
|
1739
|
+
kwargs['_return_http_data_only'] = True
|
|
1740
|
+
if kwargs.get('async_req'):
|
|
1741
|
+
return self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1742
|
+
else:
|
|
1743
|
+
(data) = self.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, **kwargs) # noqa: E501
|
|
1744
|
+
return data
|
|
1745
|
+
|
|
1746
|
+
def cluster_service_find_capacity_block_offering_with_http_info(self, project_id: 'str', cluster_id: 'str', **kwargs) -> 'V1FindCapacityBlockOfferingResponse': # noqa: E501
|
|
1747
|
+
"""cluster_service_find_capacity_block_offering # noqa: E501
|
|
1748
|
+
|
|
1749
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1750
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1751
|
+
>>> thread = api.cluster_service_find_capacity_block_offering_with_http_info(project_id, cluster_id, async_req=True)
|
|
1752
|
+
>>> result = thread.get()
|
|
1753
|
+
|
|
1754
|
+
:param async_req bool
|
|
1755
|
+
:param str project_id: (required)
|
|
1756
|
+
:param str cluster_id: (required)
|
|
1757
|
+
:param str instance_type:
|
|
1758
|
+
:param int instance_count:
|
|
1759
|
+
:param datetime start_date:
|
|
1760
|
+
:param str timezone:
|
|
1761
|
+
:param str org_id:
|
|
1762
|
+
:param int capacity_block_duration_hours:
|
|
1763
|
+
:return: V1FindCapacityBlockOfferingResponse
|
|
1764
|
+
If the method is called asynchronously,
|
|
1765
|
+
returns the request thread.
|
|
1766
|
+
"""
|
|
1767
|
+
|
|
1768
|
+
all_params = ['project_id', 'cluster_id', 'instance_type', 'instance_count', 'start_date', 'timezone', 'org_id', 'capacity_block_duration_hours'] # noqa: E501
|
|
1769
|
+
all_params.append('async_req')
|
|
1770
|
+
all_params.append('_return_http_data_only')
|
|
1771
|
+
all_params.append('_preload_content')
|
|
1772
|
+
all_params.append('_request_timeout')
|
|
1773
|
+
|
|
1774
|
+
params = locals()
|
|
1775
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1776
|
+
if key not in all_params:
|
|
1777
|
+
raise TypeError(
|
|
1778
|
+
"Got an unexpected keyword argument '%s'"
|
|
1779
|
+
" to method cluster_service_find_capacity_block_offering" % key
|
|
1780
|
+
)
|
|
1781
|
+
params[key] = val
|
|
1782
|
+
del params['kwargs']
|
|
1783
|
+
# verify the required parameter 'project_id' is set
|
|
1784
|
+
if ('project_id' not in params or
|
|
1785
|
+
params['project_id'] is None):
|
|
1786
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
|
|
1787
|
+
# verify the required parameter 'cluster_id' is set
|
|
1788
|
+
if ('cluster_id' not in params or
|
|
1789
|
+
params['cluster_id'] is None):
|
|
1790
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_find_capacity_block_offering`") # noqa: E501
|
|
1791
|
+
|
|
1792
|
+
collection_formats = {}
|
|
1793
|
+
|
|
1794
|
+
path_params = {}
|
|
1795
|
+
if 'project_id' in params:
|
|
1796
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
1797
|
+
if 'cluster_id' in params:
|
|
1798
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1799
|
+
|
|
1800
|
+
query_params = []
|
|
1801
|
+
if 'instance_type' in params:
|
|
1802
|
+
query_params.append(('instanceType', params['instance_type'])) # noqa: E501
|
|
1803
|
+
if 'instance_count' in params:
|
|
1804
|
+
query_params.append(('instanceCount', params['instance_count'])) # noqa: E501
|
|
1805
|
+
if 'start_date' in params:
|
|
1806
|
+
query_params.append(('startDate', params['start_date'])) # noqa: E501
|
|
1807
|
+
if 'timezone' in params:
|
|
1808
|
+
query_params.append(('timezone', params['timezone'])) # noqa: E501
|
|
1809
|
+
if 'org_id' in params:
|
|
1810
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1811
|
+
if 'capacity_block_duration_hours' in params:
|
|
1812
|
+
query_params.append(('capacityBlockDurationHours', params['capacity_block_duration_hours'])) # noqa: E501
|
|
1813
|
+
|
|
1814
|
+
header_params = {}
|
|
1815
|
+
|
|
1816
|
+
form_params = []
|
|
1817
|
+
local_var_files = {}
|
|
1818
|
+
|
|
1819
|
+
body_params = None
|
|
1820
|
+
# HTTP header `Accept`
|
|
1821
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1822
|
+
['application/json']) # noqa: E501
|
|
1823
|
+
|
|
1824
|
+
# Authentication setting
|
|
1825
|
+
auth_settings = [] # noqa: E501
|
|
1826
|
+
|
|
1827
|
+
return self.api_client.call_api(
|
|
1828
|
+
'/v1/projects/{projectId}/clusters/{clusterId}/capacity-block-offering', 'GET',
|
|
1829
|
+
path_params,
|
|
1830
|
+
query_params,
|
|
1831
|
+
header_params,
|
|
1832
|
+
body=body_params,
|
|
1833
|
+
post_params=form_params,
|
|
1834
|
+
files=local_var_files,
|
|
1835
|
+
response_type='V1FindCapacityBlockOfferingResponse', # noqa: E501
|
|
1836
|
+
auth_settings=auth_settings,
|
|
1837
|
+
async_req=params.get('async_req'),
|
|
1838
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1839
|
+
_preload_content=params.get('_preload_content', True),
|
|
1840
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1841
|
+
collection_formats=collection_formats)
|
|
1842
|
+
|
|
1843
|
+
def cluster_service_get_cluster(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
1844
|
+
"""cluster_service_get_cluster # noqa: E501
|
|
1845
|
+
|
|
1846
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1847
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1848
|
+
>>> thread = api.cluster_service_get_cluster(id, async_req=True)
|
|
1849
|
+
>>> result = thread.get()
|
|
1850
|
+
|
|
1851
|
+
:param async_req bool
|
|
1852
|
+
:param str id: (required)
|
|
1853
|
+
:param str org_id:
|
|
1854
|
+
:param str project_id:
|
|
1855
|
+
:param str auth_token:
|
|
1856
|
+
:return: Externalv1Cluster
|
|
1857
|
+
If the method is called asynchronously,
|
|
1858
|
+
returns the request thread.
|
|
1859
|
+
"""
|
|
1860
|
+
kwargs['_return_http_data_only'] = True
|
|
1861
|
+
if kwargs.get('async_req'):
|
|
1862
|
+
return self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
1863
|
+
else:
|
|
1864
|
+
(data) = self.cluster_service_get_cluster_with_http_info(id, **kwargs) # noqa: E501
|
|
1865
|
+
return data
|
|
1866
|
+
|
|
1867
|
+
def cluster_service_get_cluster_with_http_info(self, id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
1868
|
+
"""cluster_service_get_cluster # noqa: E501
|
|
1869
|
+
|
|
1870
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1871
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1872
|
+
>>> thread = api.cluster_service_get_cluster_with_http_info(id, async_req=True)
|
|
1873
|
+
>>> result = thread.get()
|
|
1874
|
+
|
|
1875
|
+
:param async_req bool
|
|
1876
|
+
:param str id: (required)
|
|
1877
|
+
:param str org_id:
|
|
1878
|
+
:param str project_id:
|
|
1879
|
+
:param str auth_token:
|
|
1880
|
+
:return: Externalv1Cluster
|
|
1881
|
+
If the method is called asynchronously,
|
|
1882
|
+
returns the request thread.
|
|
1883
|
+
"""
|
|
1884
|
+
|
|
1885
|
+
all_params = ['id', 'org_id', 'project_id', 'auth_token'] # noqa: E501
|
|
1886
|
+
all_params.append('async_req')
|
|
1887
|
+
all_params.append('_return_http_data_only')
|
|
1888
|
+
all_params.append('_preload_content')
|
|
1889
|
+
all_params.append('_request_timeout')
|
|
1890
|
+
|
|
1891
|
+
params = locals()
|
|
1892
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1893
|
+
if key not in all_params:
|
|
1894
|
+
raise TypeError(
|
|
1895
|
+
"Got an unexpected keyword argument '%s'"
|
|
1896
|
+
" to method cluster_service_get_cluster" % key
|
|
1897
|
+
)
|
|
1898
|
+
params[key] = val
|
|
1899
|
+
del params['kwargs']
|
|
1900
|
+
# verify the required parameter 'id' is set
|
|
1901
|
+
if ('id' not in params or
|
|
1902
|
+
params['id'] is None):
|
|
1903
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster`") # noqa: E501
|
|
1904
|
+
|
|
1905
|
+
collection_formats = {}
|
|
1906
|
+
|
|
1907
|
+
path_params = {}
|
|
1908
|
+
if 'id' in params:
|
|
1909
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1910
|
+
|
|
1911
|
+
query_params = []
|
|
1912
|
+
if 'org_id' in params:
|
|
1913
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1914
|
+
if 'project_id' in params:
|
|
1915
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1916
|
+
if 'auth_token' in params:
|
|
1917
|
+
query_params.append(('authToken', params['auth_token'])) # noqa: E501
|
|
1918
|
+
|
|
1919
|
+
header_params = {}
|
|
1920
|
+
|
|
1921
|
+
form_params = []
|
|
1922
|
+
local_var_files = {}
|
|
1923
|
+
|
|
1924
|
+
body_params = None
|
|
1925
|
+
# HTTP header `Accept`
|
|
1926
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1927
|
+
['application/json']) # noqa: E501
|
|
1928
|
+
|
|
1929
|
+
# Authentication setting
|
|
1930
|
+
auth_settings = [] # noqa: E501
|
|
1931
|
+
|
|
1932
|
+
return self.api_client.call_api(
|
|
1933
|
+
'/v1/core/clusters/{id}', 'GET',
|
|
1934
|
+
path_params,
|
|
1935
|
+
query_params,
|
|
1936
|
+
header_params,
|
|
1937
|
+
body=body_params,
|
|
1938
|
+
post_params=form_params,
|
|
1939
|
+
files=local_var_files,
|
|
1940
|
+
response_type='Externalv1Cluster', # noqa: E501
|
|
1941
|
+
auth_settings=auth_settings,
|
|
1942
|
+
async_req=params.get('async_req'),
|
|
1943
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1944
|
+
_preload_content=params.get('_preload_content', True),
|
|
1945
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1946
|
+
collection_formats=collection_formats)
|
|
1947
|
+
|
|
1948
|
+
def cluster_service_get_cluster_accelerator_demand(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetClusterAcceleratorDemandResponse': # noqa: E501
|
|
1949
|
+
"""cluster_service_get_cluster_accelerator_demand # noqa: E501
|
|
1950
|
+
|
|
1951
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1952
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1953
|
+
>>> thread = api.cluster_service_get_cluster_accelerator_demand(cluster_id, id, async_req=True)
|
|
1954
|
+
>>> result = thread.get()
|
|
1955
|
+
|
|
1956
|
+
:param async_req bool
|
|
1957
|
+
:param str cluster_id: (required)
|
|
1958
|
+
:param str id: (required)
|
|
1959
|
+
:param bool spot:
|
|
1960
|
+
:return: V1GetClusterAcceleratorDemandResponse
|
|
1961
|
+
If the method is called asynchronously,
|
|
1962
|
+
returns the request thread.
|
|
1963
|
+
"""
|
|
1964
|
+
kwargs['_return_http_data_only'] = True
|
|
1965
|
+
if kwargs.get('async_req'):
|
|
1966
|
+
return self.cluster_service_get_cluster_accelerator_demand_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1967
|
+
else:
|
|
1968
|
+
(data) = self.cluster_service_get_cluster_accelerator_demand_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1969
|
+
return data
|
|
1970
|
+
|
|
1971
|
+
def cluster_service_get_cluster_accelerator_demand_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetClusterAcceleratorDemandResponse': # noqa: E501
|
|
1972
|
+
"""cluster_service_get_cluster_accelerator_demand # noqa: E501
|
|
1973
|
+
|
|
1974
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1975
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1976
|
+
>>> thread = api.cluster_service_get_cluster_accelerator_demand_with_http_info(cluster_id, id, async_req=True)
|
|
1977
|
+
>>> result = thread.get()
|
|
1978
|
+
|
|
1979
|
+
:param async_req bool
|
|
1980
|
+
:param str cluster_id: (required)
|
|
1981
|
+
:param str id: (required)
|
|
1982
|
+
:param bool spot:
|
|
1983
|
+
:return: V1GetClusterAcceleratorDemandResponse
|
|
1984
|
+
If the method is called asynchronously,
|
|
1985
|
+
returns the request thread.
|
|
1986
|
+
"""
|
|
1987
|
+
|
|
1988
|
+
all_params = ['cluster_id', 'id', 'spot'] # noqa: E501
|
|
1989
|
+
all_params.append('async_req')
|
|
1990
|
+
all_params.append('_return_http_data_only')
|
|
1991
|
+
all_params.append('_preload_content')
|
|
1992
|
+
all_params.append('_request_timeout')
|
|
1993
|
+
|
|
1994
|
+
params = locals()
|
|
1995
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1996
|
+
if key not in all_params:
|
|
1997
|
+
raise TypeError(
|
|
1998
|
+
"Got an unexpected keyword argument '%s'"
|
|
1999
|
+
" to method cluster_service_get_cluster_accelerator_demand" % key
|
|
2000
|
+
)
|
|
2001
|
+
params[key] = val
|
|
2002
|
+
del params['kwargs']
|
|
2003
|
+
# verify the required parameter 'cluster_id' is set
|
|
2004
|
+
if ('cluster_id' not in params or
|
|
2005
|
+
params['cluster_id'] is None):
|
|
2006
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_get_cluster_accelerator_demand`") # noqa: E501
|
|
2007
|
+
# verify the required parameter 'id' is set
|
|
2008
|
+
if ('id' not in params or
|
|
2009
|
+
params['id'] is None):
|
|
2010
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_accelerator_demand`") # noqa: E501
|
|
2011
|
+
|
|
2012
|
+
collection_formats = {}
|
|
2013
|
+
|
|
2014
|
+
path_params = {}
|
|
2015
|
+
if 'cluster_id' in params:
|
|
2016
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2017
|
+
if 'id' in params:
|
|
2018
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
2019
|
+
|
|
2020
|
+
query_params = []
|
|
2021
|
+
if 'spot' in params:
|
|
2022
|
+
query_params.append(('spot', params['spot'])) # noqa: E501
|
|
2023
|
+
|
|
2024
|
+
header_params = {}
|
|
2025
|
+
|
|
2026
|
+
form_params = []
|
|
2027
|
+
local_var_files = {}
|
|
2028
|
+
|
|
2029
|
+
body_params = None
|
|
2030
|
+
# HTTP header `Accept`
|
|
2031
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2032
|
+
['application/json']) # noqa: E501
|
|
2033
|
+
|
|
2034
|
+
# Authentication setting
|
|
2035
|
+
auth_settings = [] # noqa: E501
|
|
2036
|
+
|
|
2037
|
+
return self.api_client.call_api(
|
|
2038
|
+
'/v1/core/clusters/{clusterId}/accelerator/{id}/demand', 'GET',
|
|
2039
|
+
path_params,
|
|
2040
|
+
query_params,
|
|
2041
|
+
header_params,
|
|
2042
|
+
body=body_params,
|
|
2043
|
+
post_params=form_params,
|
|
2044
|
+
files=local_var_files,
|
|
2045
|
+
response_type='V1GetClusterAcceleratorDemandResponse', # noqa: E501
|
|
2046
|
+
auth_settings=auth_settings,
|
|
2047
|
+
async_req=params.get('async_req'),
|
|
2048
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2049
|
+
_preload_content=params.get('_preload_content', True),
|
|
2050
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2051
|
+
collection_formats=collection_formats)
|
|
2052
|
+
|
|
2053
|
+
def cluster_service_get_cluster_availability(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
|
|
2054
|
+
"""cluster_service_get_cluster_availability # noqa: E501
|
|
2055
|
+
|
|
2056
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2057
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2058
|
+
>>> thread = api.cluster_service_get_cluster_availability(async_req=True)
|
|
2059
|
+
>>> result = thread.get()
|
|
2060
|
+
|
|
2061
|
+
:param async_req bool
|
|
2062
|
+
:param str org_id:
|
|
2063
|
+
:param str cluster_id:
|
|
2064
|
+
:return: V1ClusterAvailability
|
|
2065
|
+
If the method is called asynchronously,
|
|
2066
|
+
returns the request thread.
|
|
2067
|
+
"""
|
|
2068
|
+
kwargs['_return_http_data_only'] = True
|
|
2069
|
+
if kwargs.get('async_req'):
|
|
2070
|
+
return self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
|
|
2071
|
+
else:
|
|
2072
|
+
(data) = self.cluster_service_get_cluster_availability_with_http_info(**kwargs) # noqa: E501
|
|
2073
|
+
return data
|
|
2074
|
+
|
|
2075
|
+
def cluster_service_get_cluster_availability_with_http_info(self, **kwargs) -> 'V1ClusterAvailability': # noqa: E501
|
|
2076
|
+
"""cluster_service_get_cluster_availability # noqa: E501
|
|
2077
|
+
|
|
2078
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2079
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2080
|
+
>>> thread = api.cluster_service_get_cluster_availability_with_http_info(async_req=True)
|
|
2081
|
+
>>> result = thread.get()
|
|
2082
|
+
|
|
2083
|
+
:param async_req bool
|
|
2084
|
+
:param str org_id:
|
|
2085
|
+
:param str cluster_id:
|
|
2086
|
+
:return: V1ClusterAvailability
|
|
2087
|
+
If the method is called asynchronously,
|
|
2088
|
+
returns the request thread.
|
|
2089
|
+
"""
|
|
2090
|
+
|
|
2091
|
+
all_params = ['org_id', 'cluster_id'] # noqa: E501
|
|
2092
|
+
all_params.append('async_req')
|
|
2093
|
+
all_params.append('_return_http_data_only')
|
|
2094
|
+
all_params.append('_preload_content')
|
|
2095
|
+
all_params.append('_request_timeout')
|
|
2096
|
+
|
|
2097
|
+
params = locals()
|
|
2098
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2099
|
+
if key not in all_params:
|
|
2100
|
+
raise TypeError(
|
|
2101
|
+
"Got an unexpected keyword argument '%s'"
|
|
2102
|
+
" to method cluster_service_get_cluster_availability" % key
|
|
2103
|
+
)
|
|
2104
|
+
params[key] = val
|
|
2105
|
+
del params['kwargs']
|
|
2106
|
+
|
|
2107
|
+
collection_formats = {}
|
|
2108
|
+
|
|
2109
|
+
path_params = {}
|
|
2110
|
+
|
|
2111
|
+
query_params = []
|
|
2112
|
+
if 'org_id' in params:
|
|
2113
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
2114
|
+
if 'cluster_id' in params:
|
|
2115
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
2116
|
+
|
|
2117
|
+
header_params = {}
|
|
2118
|
+
|
|
2119
|
+
form_params = []
|
|
2120
|
+
local_var_files = {}
|
|
2121
|
+
|
|
2122
|
+
body_params = None
|
|
2123
|
+
# HTTP header `Accept`
|
|
2124
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2125
|
+
['application/json']) # noqa: E501
|
|
2126
|
+
|
|
2127
|
+
# Authentication setting
|
|
2128
|
+
auth_settings = [] # noqa: E501
|
|
2129
|
+
|
|
2130
|
+
return self.api_client.call_api(
|
|
2131
|
+
'/v1/core/cluster-availability', 'GET',
|
|
2132
|
+
path_params,
|
|
2133
|
+
query_params,
|
|
2134
|
+
header_params,
|
|
2135
|
+
body=body_params,
|
|
2136
|
+
post_params=form_params,
|
|
2137
|
+
files=local_var_files,
|
|
2138
|
+
response_type='V1ClusterAvailability', # noqa: E501
|
|
2139
|
+
auth_settings=auth_settings,
|
|
2140
|
+
async_req=params.get('async_req'),
|
|
2141
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2142
|
+
_preload_content=params.get('_preload_content', True),
|
|
2143
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2144
|
+
collection_formats=collection_formats)
|
|
2145
|
+
|
|
2146
|
+
def cluster_service_get_cluster_credentials(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
|
|
2147
|
+
"""cluster_service_get_cluster_credentials # noqa: E501
|
|
2148
|
+
|
|
2149
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2150
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2151
|
+
>>> thread = api.cluster_service_get_cluster_credentials(async_req=True)
|
|
2152
|
+
>>> result = thread.get()
|
|
2153
|
+
|
|
2154
|
+
:param async_req bool
|
|
2155
|
+
:return: V1GetClusterCredentialsResponse
|
|
2156
|
+
If the method is called asynchronously,
|
|
2157
|
+
returns the request thread.
|
|
2158
|
+
"""
|
|
2159
|
+
kwargs['_return_http_data_only'] = True
|
|
2160
|
+
if kwargs.get('async_req'):
|
|
2161
|
+
return self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
|
|
2162
|
+
else:
|
|
2163
|
+
(data) = self.cluster_service_get_cluster_credentials_with_http_info(**kwargs) # noqa: E501
|
|
2164
|
+
return data
|
|
2165
|
+
|
|
2166
|
+
def cluster_service_get_cluster_credentials_with_http_info(self, **kwargs) -> 'V1GetClusterCredentialsResponse': # noqa: E501
|
|
2167
|
+
"""cluster_service_get_cluster_credentials # noqa: E501
|
|
2168
|
+
|
|
2169
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2170
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2171
|
+
>>> thread = api.cluster_service_get_cluster_credentials_with_http_info(async_req=True)
|
|
2172
|
+
>>> result = thread.get()
|
|
2173
|
+
|
|
2174
|
+
:param async_req bool
|
|
2175
|
+
:return: V1GetClusterCredentialsResponse
|
|
2176
|
+
If the method is called asynchronously,
|
|
2177
|
+
returns the request thread.
|
|
2178
|
+
"""
|
|
2179
|
+
|
|
2180
|
+
all_params = [] # noqa: E501
|
|
2181
|
+
all_params.append('async_req')
|
|
2182
|
+
all_params.append('_return_http_data_only')
|
|
2183
|
+
all_params.append('_preload_content')
|
|
2184
|
+
all_params.append('_request_timeout')
|
|
2185
|
+
|
|
2186
|
+
params = locals()
|
|
2187
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2188
|
+
if key not in all_params:
|
|
2189
|
+
raise TypeError(
|
|
2190
|
+
"Got an unexpected keyword argument '%s'"
|
|
2191
|
+
" to method cluster_service_get_cluster_credentials" % key
|
|
1273
2192
|
)
|
|
1274
2193
|
params[key] = val
|
|
1275
2194
|
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
|
|
1280
2195
|
|
|
1281
2196
|
collection_formats = {}
|
|
1282
2197
|
|
|
1283
2198
|
path_params = {}
|
|
1284
|
-
if 'id' in params:
|
|
1285
|
-
path_params['id'] = params['id'] # noqa: E501
|
|
1286
2199
|
|
|
1287
2200
|
query_params = []
|
|
1288
|
-
if 'org_id' in params:
|
|
1289
|
-
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1290
|
-
if 'project_id' in params:
|
|
1291
|
-
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
1292
2201
|
|
|
1293
2202
|
header_params = {}
|
|
1294
2203
|
|
|
@@ -1304,14 +2213,14 @@ class ClusterServiceApi(object):
|
|
|
1304
2213
|
auth_settings = [] # noqa: E501
|
|
1305
2214
|
|
|
1306
2215
|
return self.api_client.call_api(
|
|
1307
|
-
'/v1/core/
|
|
2216
|
+
'/v1/core/cluster-credentials', 'GET',
|
|
1308
2217
|
path_params,
|
|
1309
2218
|
query_params,
|
|
1310
2219
|
header_params,
|
|
1311
2220
|
body=body_params,
|
|
1312
2221
|
post_params=form_params,
|
|
1313
2222
|
files=local_var_files,
|
|
1314
|
-
response_type='
|
|
2223
|
+
response_type='V1GetClusterCredentialsResponse', # noqa: E501
|
|
1315
2224
|
auth_settings=auth_settings,
|
|
1316
2225
|
async_req=params.get('async_req'),
|
|
1317
2226
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1319,45 +2228,43 @@ class ClusterServiceApi(object):
|
|
|
1319
2228
|
_request_timeout=params.get('_request_timeout'),
|
|
1320
2229
|
collection_formats=collection_formats)
|
|
1321
2230
|
|
|
1322
|
-
def
|
|
1323
|
-
"""
|
|
2231
|
+
def cluster_service_get_cluster_health(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
|
|
2232
|
+
"""cluster_service_get_cluster_health # noqa: E501
|
|
1324
2233
|
|
|
1325
2234
|
This method makes a synchronous HTTP request by default. To make an
|
|
1326
2235
|
asynchronous HTTP request, please pass async_req=True
|
|
1327
|
-
>>> thread = api.
|
|
2236
|
+
>>> thread = api.cluster_service_get_cluster_health(id, async_req=True)
|
|
1328
2237
|
>>> result = thread.get()
|
|
1329
2238
|
|
|
1330
2239
|
:param async_req bool
|
|
1331
|
-
:param str
|
|
1332
|
-
:
|
|
1333
|
-
:return: V1ClusterAvailability
|
|
2240
|
+
:param str id: (required)
|
|
2241
|
+
:return: V1GetClusterHealthResponse
|
|
1334
2242
|
If the method is called asynchronously,
|
|
1335
2243
|
returns the request thread.
|
|
1336
2244
|
"""
|
|
1337
2245
|
kwargs['_return_http_data_only'] = True
|
|
1338
2246
|
if kwargs.get('async_req'):
|
|
1339
|
-
return self.
|
|
2247
|
+
return self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
|
|
1340
2248
|
else:
|
|
1341
|
-
(data) = self.
|
|
2249
|
+
(data) = self.cluster_service_get_cluster_health_with_http_info(id, **kwargs) # noqa: E501
|
|
1342
2250
|
return data
|
|
1343
2251
|
|
|
1344
|
-
def
|
|
1345
|
-
"""
|
|
2252
|
+
def cluster_service_get_cluster_health_with_http_info(self, id: 'str', **kwargs) -> 'V1GetClusterHealthResponse': # noqa: E501
|
|
2253
|
+
"""cluster_service_get_cluster_health # noqa: E501
|
|
1346
2254
|
|
|
1347
2255
|
This method makes a synchronous HTTP request by default. To make an
|
|
1348
2256
|
asynchronous HTTP request, please pass async_req=True
|
|
1349
|
-
>>> thread = api.
|
|
2257
|
+
>>> thread = api.cluster_service_get_cluster_health_with_http_info(id, async_req=True)
|
|
1350
2258
|
>>> result = thread.get()
|
|
1351
2259
|
|
|
1352
2260
|
:param async_req bool
|
|
1353
|
-
:param str
|
|
1354
|
-
:
|
|
1355
|
-
:return: V1ClusterAvailability
|
|
2261
|
+
:param str id: (required)
|
|
2262
|
+
:return: V1GetClusterHealthResponse
|
|
1356
2263
|
If the method is called asynchronously,
|
|
1357
2264
|
returns the request thread.
|
|
1358
2265
|
"""
|
|
1359
2266
|
|
|
1360
|
-
all_params = ['
|
|
2267
|
+
all_params = ['id'] # noqa: E501
|
|
1361
2268
|
all_params.append('async_req')
|
|
1362
2269
|
all_params.append('_return_http_data_only')
|
|
1363
2270
|
all_params.append('_preload_content')
|
|
@@ -1368,20 +2275,22 @@ class ClusterServiceApi(object):
|
|
|
1368
2275
|
if key not in all_params:
|
|
1369
2276
|
raise TypeError(
|
|
1370
2277
|
"Got an unexpected keyword argument '%s'"
|
|
1371
|
-
" to method
|
|
2278
|
+
" to method cluster_service_get_cluster_health" % key
|
|
1372
2279
|
)
|
|
1373
2280
|
params[key] = val
|
|
1374
2281
|
del params['kwargs']
|
|
2282
|
+
# verify the required parameter 'id' is set
|
|
2283
|
+
if ('id' not in params or
|
|
2284
|
+
params['id'] is None):
|
|
2285
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_cluster_health`") # noqa: E501
|
|
1375
2286
|
|
|
1376
2287
|
collection_formats = {}
|
|
1377
2288
|
|
|
1378
2289
|
path_params = {}
|
|
2290
|
+
if 'id' in params:
|
|
2291
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1379
2292
|
|
|
1380
2293
|
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
|
|
1385
2294
|
|
|
1386
2295
|
header_params = {}
|
|
1387
2296
|
|
|
@@ -1397,14 +2306,14 @@ class ClusterServiceApi(object):
|
|
|
1397
2306
|
auth_settings = [] # noqa: E501
|
|
1398
2307
|
|
|
1399
2308
|
return self.api_client.call_api(
|
|
1400
|
-
'/v1/core/
|
|
2309
|
+
'/v1/core/clusters/{id}/health', 'GET',
|
|
1401
2310
|
path_params,
|
|
1402
2311
|
query_params,
|
|
1403
2312
|
header_params,
|
|
1404
2313
|
body=body_params,
|
|
1405
2314
|
post_params=form_params,
|
|
1406
2315
|
files=local_var_files,
|
|
1407
|
-
response_type='
|
|
2316
|
+
response_type='V1GetClusterHealthResponse', # noqa: E501
|
|
1408
2317
|
auth_settings=auth_settings,
|
|
1409
2318
|
async_req=params.get('async_req'),
|
|
1410
2319
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1412,41 +2321,47 @@ class ClusterServiceApi(object):
|
|
|
1412
2321
|
_request_timeout=params.get('_request_timeout'),
|
|
1413
2322
|
collection_formats=collection_formats)
|
|
1414
2323
|
|
|
1415
|
-
def
|
|
1416
|
-
"""
|
|
2324
|
+
def cluster_service_get_machine(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
|
|
2325
|
+
"""Get a machine by ID # noqa: E501
|
|
1417
2326
|
|
|
1418
2327
|
This method makes a synchronous HTTP request by default. To make an
|
|
1419
2328
|
asynchronous HTTP request, please pass async_req=True
|
|
1420
|
-
>>> thread = api.
|
|
2329
|
+
>>> thread = api.cluster_service_get_machine(cluster_id, id, async_req=True)
|
|
1421
2330
|
>>> result = thread.get()
|
|
1422
2331
|
|
|
1423
2332
|
:param async_req bool
|
|
1424
|
-
:
|
|
2333
|
+
:param str cluster_id: (required)
|
|
2334
|
+
:param str id: (required)
|
|
2335
|
+
:param str org_id:
|
|
2336
|
+
:return: V1GetMachineResponse
|
|
1425
2337
|
If the method is called asynchronously,
|
|
1426
2338
|
returns the request thread.
|
|
1427
2339
|
"""
|
|
1428
2340
|
kwargs['_return_http_data_only'] = True
|
|
1429
2341
|
if kwargs.get('async_req'):
|
|
1430
|
-
return self.
|
|
2342
|
+
return self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1431
2343
|
else:
|
|
1432
|
-
(data) = self.
|
|
2344
|
+
(data) = self.cluster_service_get_machine_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1433
2345
|
return data
|
|
1434
2346
|
|
|
1435
|
-
def
|
|
1436
|
-
"""
|
|
2347
|
+
def cluster_service_get_machine_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetMachineResponse': # noqa: E501
|
|
2348
|
+
"""Get a machine by ID # noqa: E501
|
|
1437
2349
|
|
|
1438
2350
|
This method makes a synchronous HTTP request by default. To make an
|
|
1439
2351
|
asynchronous HTTP request, please pass async_req=True
|
|
1440
|
-
>>> thread = api.
|
|
2352
|
+
>>> thread = api.cluster_service_get_machine_with_http_info(cluster_id, id, async_req=True)
|
|
1441
2353
|
>>> result = thread.get()
|
|
1442
2354
|
|
|
1443
2355
|
:param async_req bool
|
|
1444
|
-
:
|
|
2356
|
+
:param str cluster_id: (required)
|
|
2357
|
+
:param str id: (required)
|
|
2358
|
+
:param str org_id:
|
|
2359
|
+
:return: V1GetMachineResponse
|
|
1445
2360
|
If the method is called asynchronously,
|
|
1446
2361
|
returns the request thread.
|
|
1447
2362
|
"""
|
|
1448
2363
|
|
|
1449
|
-
all_params = [] # noqa: E501
|
|
2364
|
+
all_params = ['cluster_id', 'id', 'org_id'] # noqa: E501
|
|
1450
2365
|
all_params.append('async_req')
|
|
1451
2366
|
all_params.append('_return_http_data_only')
|
|
1452
2367
|
all_params.append('_preload_content')
|
|
@@ -1457,16 +2372,30 @@ class ClusterServiceApi(object):
|
|
|
1457
2372
|
if key not in all_params:
|
|
1458
2373
|
raise TypeError(
|
|
1459
2374
|
"Got an unexpected keyword argument '%s'"
|
|
1460
|
-
" to method
|
|
2375
|
+
" to method cluster_service_get_machine" % key
|
|
1461
2376
|
)
|
|
1462
2377
|
params[key] = val
|
|
1463
2378
|
del params['kwargs']
|
|
2379
|
+
# verify the required parameter 'cluster_id' is set
|
|
2380
|
+
if ('cluster_id' not in params or
|
|
2381
|
+
params['cluster_id'] is None):
|
|
2382
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_get_machine`") # noqa: E501
|
|
2383
|
+
# verify the required parameter 'id' is set
|
|
2384
|
+
if ('id' not in params or
|
|
2385
|
+
params['id'] is None):
|
|
2386
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_get_machine`") # noqa: E501
|
|
1464
2387
|
|
|
1465
2388
|
collection_formats = {}
|
|
1466
2389
|
|
|
1467
2390
|
path_params = {}
|
|
2391
|
+
if 'cluster_id' in params:
|
|
2392
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2393
|
+
if 'id' in params:
|
|
2394
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1468
2395
|
|
|
1469
2396
|
query_params = []
|
|
2397
|
+
if 'org_id' in params:
|
|
2398
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
1470
2399
|
|
|
1471
2400
|
header_params = {}
|
|
1472
2401
|
|
|
@@ -1482,14 +2411,14 @@ class ClusterServiceApi(object):
|
|
|
1482
2411
|
auth_settings = [] # noqa: E501
|
|
1483
2412
|
|
|
1484
2413
|
return self.api_client.call_api(
|
|
1485
|
-
'/v1/core/
|
|
2414
|
+
'/v1/core/clusters/{clusterId}/machines/{id}', 'GET',
|
|
1486
2415
|
path_params,
|
|
1487
2416
|
query_params,
|
|
1488
2417
|
header_params,
|
|
1489
2418
|
body=body_params,
|
|
1490
2419
|
post_params=form_params,
|
|
1491
2420
|
files=local_var_files,
|
|
1492
|
-
response_type='
|
|
2421
|
+
response_type='V1GetMachineResponse', # noqa: E501
|
|
1493
2422
|
auth_settings=auth_settings,
|
|
1494
2423
|
async_req=params.get('async_req'),
|
|
1495
2424
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1908,6 +2837,11 @@ class ClusterServiceApi(object):
|
|
|
1908
2837
|
:param async_req bool
|
|
1909
2838
|
:param str project_id: (required)
|
|
1910
2839
|
:param str cluster_id: (required)
|
|
2840
|
+
:param datetime start_time:
|
|
2841
|
+
:param datetime end_time:
|
|
2842
|
+
:param bool available_only:
|
|
2843
|
+
:param bool from_aggregate:
|
|
2844
|
+
:param str apparent_provider:
|
|
1911
2845
|
:return: V1ListClusterCapacityReservationsResponse
|
|
1912
2846
|
If the method is called asynchronously,
|
|
1913
2847
|
returns the request thread.
|
|
@@ -1930,12 +2864,17 @@ class ClusterServiceApi(object):
|
|
|
1930
2864
|
:param async_req bool
|
|
1931
2865
|
:param str project_id: (required)
|
|
1932
2866
|
:param str cluster_id: (required)
|
|
2867
|
+
:param datetime start_time:
|
|
2868
|
+
:param datetime end_time:
|
|
2869
|
+
:param bool available_only:
|
|
2870
|
+
:param bool from_aggregate:
|
|
2871
|
+
:param str apparent_provider:
|
|
1933
2872
|
:return: V1ListClusterCapacityReservationsResponse
|
|
1934
2873
|
If the method is called asynchronously,
|
|
1935
2874
|
returns the request thread.
|
|
1936
2875
|
"""
|
|
1937
2876
|
|
|
1938
|
-
all_params = ['project_id', 'cluster_id'] # noqa: E501
|
|
2877
|
+
all_params = ['project_id', 'cluster_id', 'start_time', 'end_time', 'available_only', 'from_aggregate', 'apparent_provider'] # noqa: E501
|
|
1939
2878
|
all_params.append('async_req')
|
|
1940
2879
|
all_params.append('_return_http_data_only')
|
|
1941
2880
|
all_params.append('_preload_content')
|
|
@@ -1968,6 +2907,16 @@ class ClusterServiceApi(object):
|
|
|
1968
2907
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1969
2908
|
|
|
1970
2909
|
query_params = []
|
|
2910
|
+
if 'start_time' in params:
|
|
2911
|
+
query_params.append(('startTime', params['start_time'])) # noqa: E501
|
|
2912
|
+
if 'end_time' in params:
|
|
2913
|
+
query_params.append(('endTime', params['end_time'])) # noqa: E501
|
|
2914
|
+
if 'available_only' in params:
|
|
2915
|
+
query_params.append(('availableOnly', params['available_only'])) # noqa: E501
|
|
2916
|
+
if 'from_aggregate' in params:
|
|
2917
|
+
query_params.append(('fromAggregate', params['from_aggregate'])) # noqa: E501
|
|
2918
|
+
if 'apparent_provider' in params:
|
|
2919
|
+
query_params.append(('apparentProvider', params['apparent_provider'])) # noqa: E501
|
|
1971
2920
|
|
|
1972
2921
|
header_params = {}
|
|
1973
2922
|
|
|
@@ -2036,7 +2985,201 @@ class ClusterServiceApi(object):
|
|
|
2036
2985
|
returns the request thread.
|
|
2037
2986
|
"""
|
|
2038
2987
|
|
|
2039
|
-
all_params = ['cluster_id', 'org_id'] # noqa: E501
|
|
2988
|
+
all_params = ['cluster_id', 'org_id'] # noqa: E501
|
|
2989
|
+
all_params.append('async_req')
|
|
2990
|
+
all_params.append('_return_http_data_only')
|
|
2991
|
+
all_params.append('_preload_content')
|
|
2992
|
+
all_params.append('_request_timeout')
|
|
2993
|
+
|
|
2994
|
+
params = locals()
|
|
2995
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2996
|
+
if key not in all_params:
|
|
2997
|
+
raise TypeError(
|
|
2998
|
+
"Got an unexpected keyword argument '%s'"
|
|
2999
|
+
" to method cluster_service_list_cluster_proxies" % key
|
|
3000
|
+
)
|
|
3001
|
+
params[key] = val
|
|
3002
|
+
del params['kwargs']
|
|
3003
|
+
# verify the required parameter 'cluster_id' is set
|
|
3004
|
+
if ('cluster_id' not in params or
|
|
3005
|
+
params['cluster_id'] is None):
|
|
3006
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_cluster_proxies`") # noqa: E501
|
|
3007
|
+
|
|
3008
|
+
collection_formats = {}
|
|
3009
|
+
|
|
3010
|
+
path_params = {}
|
|
3011
|
+
if 'cluster_id' in params:
|
|
3012
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
3013
|
+
|
|
3014
|
+
query_params = []
|
|
3015
|
+
if 'org_id' in params:
|
|
3016
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3017
|
+
|
|
3018
|
+
header_params = {}
|
|
3019
|
+
|
|
3020
|
+
form_params = []
|
|
3021
|
+
local_var_files = {}
|
|
3022
|
+
|
|
3023
|
+
body_params = None
|
|
3024
|
+
# HTTP header `Accept`
|
|
3025
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3026
|
+
['application/json']) # noqa: E501
|
|
3027
|
+
|
|
3028
|
+
# Authentication setting
|
|
3029
|
+
auth_settings = [] # noqa: E501
|
|
3030
|
+
|
|
3031
|
+
return self.api_client.call_api(
|
|
3032
|
+
'/v1/core/clusters/{clusterId}/proxies', 'GET',
|
|
3033
|
+
path_params,
|
|
3034
|
+
query_params,
|
|
3035
|
+
header_params,
|
|
3036
|
+
body=body_params,
|
|
3037
|
+
post_params=form_params,
|
|
3038
|
+
files=local_var_files,
|
|
3039
|
+
response_type='V1ListClusterProxiesResponse', # noqa: E501
|
|
3040
|
+
auth_settings=auth_settings,
|
|
3041
|
+
async_req=params.get('async_req'),
|
|
3042
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3043
|
+
_preload_content=params.get('_preload_content', True),
|
|
3044
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3045
|
+
collection_formats=collection_formats)
|
|
3046
|
+
|
|
3047
|
+
def cluster_service_list_cluster_usage_restrictions(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterUsageRestrictionsResponse': # noqa: E501
|
|
3048
|
+
"""cluster_service_list_cluster_usage_restrictions # noqa: E501
|
|
3049
|
+
|
|
3050
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3051
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3052
|
+
>>> thread = api.cluster_service_list_cluster_usage_restrictions(cluster_id, async_req=True)
|
|
3053
|
+
>>> result = thread.get()
|
|
3054
|
+
|
|
3055
|
+
:param async_req bool
|
|
3056
|
+
:param str cluster_id: (required)
|
|
3057
|
+
:param str org_id:
|
|
3058
|
+
:return: V1ListClusterUsageRestrictionsResponse
|
|
3059
|
+
If the method is called asynchronously,
|
|
3060
|
+
returns the request thread.
|
|
3061
|
+
"""
|
|
3062
|
+
kwargs['_return_http_data_only'] = True
|
|
3063
|
+
if kwargs.get('async_req'):
|
|
3064
|
+
return self.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3065
|
+
else:
|
|
3066
|
+
(data) = self.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
3067
|
+
return data
|
|
3068
|
+
|
|
3069
|
+
def cluster_service_list_cluster_usage_restrictions_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterUsageRestrictionsResponse': # noqa: E501
|
|
3070
|
+
"""cluster_service_list_cluster_usage_restrictions # noqa: E501
|
|
3071
|
+
|
|
3072
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3073
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3074
|
+
>>> thread = api.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, async_req=True)
|
|
3075
|
+
>>> result = thread.get()
|
|
3076
|
+
|
|
3077
|
+
:param async_req bool
|
|
3078
|
+
:param str cluster_id: (required)
|
|
3079
|
+
:param str org_id:
|
|
3080
|
+
:return: V1ListClusterUsageRestrictionsResponse
|
|
3081
|
+
If the method is called asynchronously,
|
|
3082
|
+
returns the request thread.
|
|
3083
|
+
"""
|
|
3084
|
+
|
|
3085
|
+
all_params = ['cluster_id', 'org_id'] # noqa: E501
|
|
3086
|
+
all_params.append('async_req')
|
|
3087
|
+
all_params.append('_return_http_data_only')
|
|
3088
|
+
all_params.append('_preload_content')
|
|
3089
|
+
all_params.append('_request_timeout')
|
|
3090
|
+
|
|
3091
|
+
params = locals()
|
|
3092
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3093
|
+
if key not in all_params:
|
|
3094
|
+
raise TypeError(
|
|
3095
|
+
"Got an unexpected keyword argument '%s'"
|
|
3096
|
+
" to method cluster_service_list_cluster_usage_restrictions" % key
|
|
3097
|
+
)
|
|
3098
|
+
params[key] = val
|
|
3099
|
+
del params['kwargs']
|
|
3100
|
+
# verify the required parameter 'cluster_id' is set
|
|
3101
|
+
if ('cluster_id' not in params or
|
|
3102
|
+
params['cluster_id'] is None):
|
|
3103
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_cluster_usage_restrictions`") # noqa: E501
|
|
3104
|
+
|
|
3105
|
+
collection_formats = {}
|
|
3106
|
+
|
|
3107
|
+
path_params = {}
|
|
3108
|
+
if 'cluster_id' in params:
|
|
3109
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
3110
|
+
|
|
3111
|
+
query_params = []
|
|
3112
|
+
if 'org_id' in params:
|
|
3113
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3114
|
+
|
|
3115
|
+
header_params = {}
|
|
3116
|
+
|
|
3117
|
+
form_params = []
|
|
3118
|
+
local_var_files = {}
|
|
3119
|
+
|
|
3120
|
+
body_params = None
|
|
3121
|
+
# HTTP header `Accept`
|
|
3122
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3123
|
+
['application/json']) # noqa: E501
|
|
3124
|
+
|
|
3125
|
+
# Authentication setting
|
|
3126
|
+
auth_settings = [] # noqa: E501
|
|
3127
|
+
|
|
3128
|
+
return self.api_client.call_api(
|
|
3129
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions', 'GET',
|
|
3130
|
+
path_params,
|
|
3131
|
+
query_params,
|
|
3132
|
+
header_params,
|
|
3133
|
+
body=body_params,
|
|
3134
|
+
post_params=form_params,
|
|
3135
|
+
files=local_var_files,
|
|
3136
|
+
response_type='V1ListClusterUsageRestrictionsResponse', # noqa: E501
|
|
3137
|
+
auth_settings=auth_settings,
|
|
3138
|
+
async_req=params.get('async_req'),
|
|
3139
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3140
|
+
_preload_content=params.get('_preload_content', True),
|
|
3141
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3142
|
+
collection_formats=collection_formats)
|
|
3143
|
+
|
|
3144
|
+
def cluster_service_list_clusters(self, **kwargs) -> 'V1ListClustersResponse': # noqa: E501
|
|
3145
|
+
"""cluster_service_list_clusters # noqa: E501
|
|
3146
|
+
|
|
3147
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3148
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3149
|
+
>>> thread = api.cluster_service_list_clusters(async_req=True)
|
|
3150
|
+
>>> result = thread.get()
|
|
3151
|
+
|
|
3152
|
+
:param async_req bool
|
|
3153
|
+
:param str org_id:
|
|
3154
|
+
:param str project_id:
|
|
3155
|
+
:return: V1ListClustersResponse
|
|
3156
|
+
If the method is called asynchronously,
|
|
3157
|
+
returns the request thread.
|
|
3158
|
+
"""
|
|
3159
|
+
kwargs['_return_http_data_only'] = True
|
|
3160
|
+
if kwargs.get('async_req'):
|
|
3161
|
+
return self.cluster_service_list_clusters_with_http_info(**kwargs) # noqa: E501
|
|
3162
|
+
else:
|
|
3163
|
+
(data) = self.cluster_service_list_clusters_with_http_info(**kwargs) # noqa: E501
|
|
3164
|
+
return data
|
|
3165
|
+
|
|
3166
|
+
def cluster_service_list_clusters_with_http_info(self, **kwargs) -> 'V1ListClustersResponse': # noqa: E501
|
|
3167
|
+
"""cluster_service_list_clusters # noqa: E501
|
|
3168
|
+
|
|
3169
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3170
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3171
|
+
>>> thread = api.cluster_service_list_clusters_with_http_info(async_req=True)
|
|
3172
|
+
>>> result = thread.get()
|
|
3173
|
+
|
|
3174
|
+
:param async_req bool
|
|
3175
|
+
:param str org_id:
|
|
3176
|
+
:param str project_id:
|
|
3177
|
+
:return: V1ListClustersResponse
|
|
3178
|
+
If the method is called asynchronously,
|
|
3179
|
+
returns the request thread.
|
|
3180
|
+
"""
|
|
3181
|
+
|
|
3182
|
+
all_params = ['org_id', 'project_id'] # noqa: E501
|
|
2040
3183
|
all_params.append('async_req')
|
|
2041
3184
|
all_params.append('_return_http_data_only')
|
|
2042
3185
|
all_params.append('_preload_content')
|
|
@@ -2047,24 +3190,20 @@ class ClusterServiceApi(object):
|
|
|
2047
3190
|
if key not in all_params:
|
|
2048
3191
|
raise TypeError(
|
|
2049
3192
|
"Got an unexpected keyword argument '%s'"
|
|
2050
|
-
" to method
|
|
3193
|
+
" to method cluster_service_list_clusters" % key
|
|
2051
3194
|
)
|
|
2052
3195
|
params[key] = val
|
|
2053
3196
|
del params['kwargs']
|
|
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
|
|
2058
3197
|
|
|
2059
3198
|
collection_formats = {}
|
|
2060
3199
|
|
|
2061
3200
|
path_params = {}
|
|
2062
|
-
if 'cluster_id' in params:
|
|
2063
|
-
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2064
3201
|
|
|
2065
3202
|
query_params = []
|
|
2066
3203
|
if 'org_id' in params:
|
|
2067
3204
|
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3205
|
+
if 'project_id' in params:
|
|
3206
|
+
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
2068
3207
|
|
|
2069
3208
|
header_params = {}
|
|
2070
3209
|
|
|
@@ -2080,14 +3219,14 @@ class ClusterServiceApi(object):
|
|
|
2080
3219
|
auth_settings = [] # noqa: E501
|
|
2081
3220
|
|
|
2082
3221
|
return self.api_client.call_api(
|
|
2083
|
-
'/v1/core/clusters
|
|
3222
|
+
'/v1/core/clusters', 'GET',
|
|
2084
3223
|
path_params,
|
|
2085
3224
|
query_params,
|
|
2086
3225
|
header_params,
|
|
2087
3226
|
body=body_params,
|
|
2088
3227
|
post_params=form_params,
|
|
2089
3228
|
files=local_var_files,
|
|
2090
|
-
response_type='
|
|
3229
|
+
response_type='V1ListClustersResponse', # noqa: E501
|
|
2091
3230
|
auth_settings=auth_settings,
|
|
2092
3231
|
async_req=params.get('async_req'),
|
|
2093
3232
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2095,45 +3234,45 @@ class ClusterServiceApi(object):
|
|
|
2095
3234
|
_request_timeout=params.get('_request_timeout'),
|
|
2096
3235
|
collection_formats=collection_formats)
|
|
2097
3236
|
|
|
2098
|
-
def
|
|
2099
|
-
"""
|
|
3237
|
+
def cluster_service_list_default_cluster_accelerators(self, **kwargs) -> 'V1ListDefaultClusterAcceleratorsResponse': # noqa: E501
|
|
3238
|
+
"""cluster_service_list_default_cluster_accelerators # noqa: E501
|
|
2100
3239
|
|
|
2101
3240
|
This method makes a synchronous HTTP request by default. To make an
|
|
2102
3241
|
asynchronous HTTP request, please pass async_req=True
|
|
2103
|
-
>>> thread = api.
|
|
3242
|
+
>>> thread = api.cluster_service_list_default_cluster_accelerators(async_req=True)
|
|
2104
3243
|
>>> result = thread.get()
|
|
2105
3244
|
|
|
2106
3245
|
:param async_req bool
|
|
2107
|
-
:param str
|
|
3246
|
+
:param str cloud_provider:
|
|
2108
3247
|
:param str project_id:
|
|
2109
|
-
:return:
|
|
3248
|
+
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
2110
3249
|
If the method is called asynchronously,
|
|
2111
3250
|
returns the request thread.
|
|
2112
3251
|
"""
|
|
2113
3252
|
kwargs['_return_http_data_only'] = True
|
|
2114
3253
|
if kwargs.get('async_req'):
|
|
2115
|
-
return self.
|
|
3254
|
+
return self.cluster_service_list_default_cluster_accelerators_with_http_info(**kwargs) # noqa: E501
|
|
2116
3255
|
else:
|
|
2117
|
-
(data) = self.
|
|
3256
|
+
(data) = self.cluster_service_list_default_cluster_accelerators_with_http_info(**kwargs) # noqa: E501
|
|
2118
3257
|
return data
|
|
2119
3258
|
|
|
2120
|
-
def
|
|
2121
|
-
"""
|
|
3259
|
+
def cluster_service_list_default_cluster_accelerators_with_http_info(self, **kwargs) -> 'V1ListDefaultClusterAcceleratorsResponse': # noqa: E501
|
|
3260
|
+
"""cluster_service_list_default_cluster_accelerators # noqa: E501
|
|
2122
3261
|
|
|
2123
3262
|
This method makes a synchronous HTTP request by default. To make an
|
|
2124
3263
|
asynchronous HTTP request, please pass async_req=True
|
|
2125
|
-
>>> thread = api.
|
|
3264
|
+
>>> thread = api.cluster_service_list_default_cluster_accelerators_with_http_info(async_req=True)
|
|
2126
3265
|
>>> result = thread.get()
|
|
2127
3266
|
|
|
2128
3267
|
:param async_req bool
|
|
2129
|
-
:param str
|
|
3268
|
+
:param str cloud_provider:
|
|
2130
3269
|
:param str project_id:
|
|
2131
|
-
:return:
|
|
3270
|
+
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
2132
3271
|
If the method is called asynchronously,
|
|
2133
3272
|
returns the request thread.
|
|
2134
3273
|
"""
|
|
2135
3274
|
|
|
2136
|
-
all_params = ['
|
|
3275
|
+
all_params = ['cloud_provider', 'project_id'] # noqa: E501
|
|
2137
3276
|
all_params.append('async_req')
|
|
2138
3277
|
all_params.append('_return_http_data_only')
|
|
2139
3278
|
all_params.append('_preload_content')
|
|
@@ -2144,7 +3283,7 @@ class ClusterServiceApi(object):
|
|
|
2144
3283
|
if key not in all_params:
|
|
2145
3284
|
raise TypeError(
|
|
2146
3285
|
"Got an unexpected keyword argument '%s'"
|
|
2147
|
-
" to method
|
|
3286
|
+
" to method cluster_service_list_default_cluster_accelerators" % key
|
|
2148
3287
|
)
|
|
2149
3288
|
params[key] = val
|
|
2150
3289
|
del params['kwargs']
|
|
@@ -2154,8 +3293,8 @@ class ClusterServiceApi(object):
|
|
|
2154
3293
|
path_params = {}
|
|
2155
3294
|
|
|
2156
3295
|
query_params = []
|
|
2157
|
-
if '
|
|
2158
|
-
query_params.append(('
|
|
3296
|
+
if 'cloud_provider' in params:
|
|
3297
|
+
query_params.append(('cloudProvider', params['cloud_provider'])) # noqa: E501
|
|
2159
3298
|
if 'project_id' in params:
|
|
2160
3299
|
query_params.append(('projectId', params['project_id'])) # noqa: E501
|
|
2161
3300
|
|
|
@@ -2173,14 +3312,14 @@ class ClusterServiceApi(object):
|
|
|
2173
3312
|
auth_settings = [] # noqa: E501
|
|
2174
3313
|
|
|
2175
3314
|
return self.api_client.call_api(
|
|
2176
|
-
'/v1/core/
|
|
3315
|
+
'/v1/core/accelerators', 'GET',
|
|
2177
3316
|
path_params,
|
|
2178
3317
|
query_params,
|
|
2179
3318
|
header_params,
|
|
2180
3319
|
body=body_params,
|
|
2181
3320
|
post_params=form_params,
|
|
2182
3321
|
files=local_var_files,
|
|
2183
|
-
response_type='
|
|
3322
|
+
response_type='V1ListDefaultClusterAcceleratorsResponse', # noqa: E501
|
|
2184
3323
|
auth_settings=auth_settings,
|
|
2185
3324
|
async_req=params.get('async_req'),
|
|
2186
3325
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2188,43 +3327,49 @@ class ClusterServiceApi(object):
|
|
|
2188
3327
|
_request_timeout=params.get('_request_timeout'),
|
|
2189
3328
|
collection_formats=collection_formats)
|
|
2190
3329
|
|
|
2191
|
-
def
|
|
2192
|
-
"""
|
|
3330
|
+
def cluster_service_list_machines(self, cluster_id: 'str', **kwargs) -> 'V1ListMachinesResponse': # noqa: E501
|
|
3331
|
+
"""List machines with optional filtering # noqa: E501
|
|
2193
3332
|
|
|
2194
3333
|
This method makes a synchronous HTTP request by default. To make an
|
|
2195
3334
|
asynchronous HTTP request, please pass async_req=True
|
|
2196
|
-
>>> thread = api.
|
|
3335
|
+
>>> thread = api.cluster_service_list_machines(cluster_id, async_req=True)
|
|
2197
3336
|
>>> result = thread.get()
|
|
2198
3337
|
|
|
2199
3338
|
:param async_req bool
|
|
2200
|
-
:param
|
|
2201
|
-
:
|
|
3339
|
+
:param str cluster_id: (required)
|
|
3340
|
+
:param str org_id:
|
|
3341
|
+
:param int page_size:
|
|
3342
|
+
:param str page_token:
|
|
3343
|
+
:return: V1ListMachinesResponse
|
|
2202
3344
|
If the method is called asynchronously,
|
|
2203
3345
|
returns the request thread.
|
|
2204
3346
|
"""
|
|
2205
3347
|
kwargs['_return_http_data_only'] = True
|
|
2206
3348
|
if kwargs.get('async_req'):
|
|
2207
|
-
return self.
|
|
3349
|
+
return self.cluster_service_list_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
2208
3350
|
else:
|
|
2209
|
-
(data) = self.
|
|
3351
|
+
(data) = self.cluster_service_list_machines_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
2210
3352
|
return data
|
|
2211
3353
|
|
|
2212
|
-
def
|
|
2213
|
-
"""
|
|
3354
|
+
def cluster_service_list_machines_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListMachinesResponse': # noqa: E501
|
|
3355
|
+
"""List machines with optional filtering # noqa: E501
|
|
2214
3356
|
|
|
2215
3357
|
This method makes a synchronous HTTP request by default. To make an
|
|
2216
3358
|
asynchronous HTTP request, please pass async_req=True
|
|
2217
|
-
>>> thread = api.
|
|
3359
|
+
>>> thread = api.cluster_service_list_machines_with_http_info(cluster_id, async_req=True)
|
|
2218
3360
|
>>> result = thread.get()
|
|
2219
3361
|
|
|
2220
3362
|
:param async_req bool
|
|
2221
|
-
:param
|
|
2222
|
-
:
|
|
3363
|
+
:param str cluster_id: (required)
|
|
3364
|
+
:param str org_id:
|
|
3365
|
+
:param int page_size:
|
|
3366
|
+
:param str page_token:
|
|
3367
|
+
:return: V1ListMachinesResponse
|
|
2223
3368
|
If the method is called asynchronously,
|
|
2224
3369
|
returns the request thread.
|
|
2225
3370
|
"""
|
|
2226
3371
|
|
|
2227
|
-
all_params = ['
|
|
3372
|
+
all_params = ['cluster_id', 'org_id', 'page_size', 'page_token'] # noqa: E501
|
|
2228
3373
|
all_params.append('async_req')
|
|
2229
3374
|
all_params.append('_return_http_data_only')
|
|
2230
3375
|
all_params.append('_preload_content')
|
|
@@ -2235,18 +3380,28 @@ class ClusterServiceApi(object):
|
|
|
2235
3380
|
if key not in all_params:
|
|
2236
3381
|
raise TypeError(
|
|
2237
3382
|
"Got an unexpected keyword argument '%s'"
|
|
2238
|
-
" to method
|
|
3383
|
+
" to method cluster_service_list_machines" % key
|
|
2239
3384
|
)
|
|
2240
3385
|
params[key] = val
|
|
2241
3386
|
del params['kwargs']
|
|
3387
|
+
# verify the required parameter 'cluster_id' is set
|
|
3388
|
+
if ('cluster_id' not in params or
|
|
3389
|
+
params['cluster_id'] is None):
|
|
3390
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_machines`") # noqa: E501
|
|
2242
3391
|
|
|
2243
3392
|
collection_formats = {}
|
|
2244
3393
|
|
|
2245
3394
|
path_params = {}
|
|
3395
|
+
if 'cluster_id' in params:
|
|
3396
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2246
3397
|
|
|
2247
3398
|
query_params = []
|
|
2248
|
-
if '
|
|
2249
|
-
query_params.append(('
|
|
3399
|
+
if 'org_id' in params:
|
|
3400
|
+
query_params.append(('orgId', params['org_id'])) # noqa: E501
|
|
3401
|
+
if 'page_size' in params:
|
|
3402
|
+
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
3403
|
+
if 'page_token' in params:
|
|
3404
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
2250
3405
|
|
|
2251
3406
|
header_params = {}
|
|
2252
3407
|
|
|
@@ -2262,14 +3417,14 @@ class ClusterServiceApi(object):
|
|
|
2262
3417
|
auth_settings = [] # noqa: E501
|
|
2263
3418
|
|
|
2264
3419
|
return self.api_client.call_api(
|
|
2265
|
-
'/v1/core/
|
|
3420
|
+
'/v1/core/clusters/{clusterId}/machines', 'GET',
|
|
2266
3421
|
path_params,
|
|
2267
3422
|
query_params,
|
|
2268
3423
|
header_params,
|
|
2269
3424
|
body=body_params,
|
|
2270
3425
|
post_params=form_params,
|
|
2271
3426
|
files=local_var_files,
|
|
2272
|
-
response_type='
|
|
3427
|
+
response_type='V1ListMachinesResponse', # noqa: E501
|
|
2273
3428
|
auth_settings=auth_settings,
|
|
2274
3429
|
async_req=params.get('async_req'),
|
|
2275
3430
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2883,6 +4038,111 @@ class ClusterServiceApi(object):
|
|
|
2883
4038
|
_request_timeout=params.get('_request_timeout'),
|
|
2884
4039
|
collection_formats=collection_formats)
|
|
2885
4040
|
|
|
4041
|
+
def cluster_service_sleep_server(self, body: 'object', server_id: 'str', **kwargs) -> 'V1SleepServerResponse': # noqa: E501
|
|
4042
|
+
"""cluster_service_sleep_server # noqa: E501
|
|
4043
|
+
|
|
4044
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4045
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4046
|
+
>>> thread = api.cluster_service_sleep_server(body, server_id, async_req=True)
|
|
4047
|
+
>>> result = thread.get()
|
|
4048
|
+
|
|
4049
|
+
:param async_req bool
|
|
4050
|
+
:param object body: (required)
|
|
4051
|
+
:param str server_id: (required)
|
|
4052
|
+
:return: V1SleepServerResponse
|
|
4053
|
+
If the method is called asynchronously,
|
|
4054
|
+
returns the request thread.
|
|
4055
|
+
"""
|
|
4056
|
+
kwargs['_return_http_data_only'] = True
|
|
4057
|
+
if kwargs.get('async_req'):
|
|
4058
|
+
return self.cluster_service_sleep_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
4059
|
+
else:
|
|
4060
|
+
(data) = self.cluster_service_sleep_server_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
4061
|
+
return data
|
|
4062
|
+
|
|
4063
|
+
def cluster_service_sleep_server_with_http_info(self, body: 'object', server_id: 'str', **kwargs) -> 'V1SleepServerResponse': # noqa: E501
|
|
4064
|
+
"""cluster_service_sleep_server # noqa: E501
|
|
4065
|
+
|
|
4066
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4067
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4068
|
+
>>> thread = api.cluster_service_sleep_server_with_http_info(body, server_id, async_req=True)
|
|
4069
|
+
>>> result = thread.get()
|
|
4070
|
+
|
|
4071
|
+
:param async_req bool
|
|
4072
|
+
:param object body: (required)
|
|
4073
|
+
:param str server_id: (required)
|
|
4074
|
+
:return: V1SleepServerResponse
|
|
4075
|
+
If the method is called asynchronously,
|
|
4076
|
+
returns the request thread.
|
|
4077
|
+
"""
|
|
4078
|
+
|
|
4079
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
4080
|
+
all_params.append('async_req')
|
|
4081
|
+
all_params.append('_return_http_data_only')
|
|
4082
|
+
all_params.append('_preload_content')
|
|
4083
|
+
all_params.append('_request_timeout')
|
|
4084
|
+
|
|
4085
|
+
params = locals()
|
|
4086
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4087
|
+
if key not in all_params:
|
|
4088
|
+
raise TypeError(
|
|
4089
|
+
"Got an unexpected keyword argument '%s'"
|
|
4090
|
+
" to method cluster_service_sleep_server" % key
|
|
4091
|
+
)
|
|
4092
|
+
params[key] = val
|
|
4093
|
+
del params['kwargs']
|
|
4094
|
+
# verify the required parameter 'body' is set
|
|
4095
|
+
if ('body' not in params or
|
|
4096
|
+
params['body'] is None):
|
|
4097
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_sleep_server`") # noqa: E501
|
|
4098
|
+
# verify the required parameter 'server_id' is set
|
|
4099
|
+
if ('server_id' not in params or
|
|
4100
|
+
params['server_id'] is None):
|
|
4101
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_sleep_server`") # noqa: E501
|
|
4102
|
+
|
|
4103
|
+
collection_formats = {}
|
|
4104
|
+
|
|
4105
|
+
path_params = {}
|
|
4106
|
+
if 'server_id' in params:
|
|
4107
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
4108
|
+
|
|
4109
|
+
query_params = []
|
|
4110
|
+
|
|
4111
|
+
header_params = {}
|
|
4112
|
+
|
|
4113
|
+
form_params = []
|
|
4114
|
+
local_var_files = {}
|
|
4115
|
+
|
|
4116
|
+
body_params = None
|
|
4117
|
+
if 'body' in params:
|
|
4118
|
+
body_params = params['body']
|
|
4119
|
+
# HTTP header `Accept`
|
|
4120
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4121
|
+
['application/json']) # noqa: E501
|
|
4122
|
+
|
|
4123
|
+
# HTTP header `Content-Type`
|
|
4124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4125
|
+
['application/json']) # noqa: E501
|
|
4126
|
+
|
|
4127
|
+
# Authentication setting
|
|
4128
|
+
auth_settings = [] # noqa: E501
|
|
4129
|
+
|
|
4130
|
+
return self.api_client.call_api(
|
|
4131
|
+
'/v1/core/servers/{serverId}/sleep', 'POST',
|
|
4132
|
+
path_params,
|
|
4133
|
+
query_params,
|
|
4134
|
+
header_params,
|
|
4135
|
+
body=body_params,
|
|
4136
|
+
post_params=form_params,
|
|
4137
|
+
files=local_var_files,
|
|
4138
|
+
response_type='V1SleepServerResponse', # noqa: E501
|
|
4139
|
+
auth_settings=auth_settings,
|
|
4140
|
+
async_req=params.get('async_req'),
|
|
4141
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4142
|
+
_preload_content=params.get('_preload_content', True),
|
|
4143
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4144
|
+
collection_formats=collection_formats)
|
|
4145
|
+
|
|
2886
4146
|
def cluster_service_update_cluster(self, body: 'ClustersIdBody', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
2887
4147
|
"""cluster_service_update_cluster # noqa: E501
|
|
2888
4148
|
|
|
@@ -3182,6 +4442,119 @@ class ClusterServiceApi(object):
|
|
|
3182
4442
|
_request_timeout=params.get('_request_timeout'),
|
|
3183
4443
|
collection_formats=collection_formats)
|
|
3184
4444
|
|
|
4445
|
+
def cluster_service_update_cluster_usage_restriction(self, body: 'UsagerestrictionsIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
4446
|
+
"""cluster_service_update_cluster_usage_restriction # noqa: E501
|
|
4447
|
+
|
|
4448
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4449
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4450
|
+
>>> thread = api.cluster_service_update_cluster_usage_restriction(body, cluster_id, id, async_req=True)
|
|
4451
|
+
>>> result = thread.get()
|
|
4452
|
+
|
|
4453
|
+
:param async_req bool
|
|
4454
|
+
:param UsagerestrictionsIdBody body: (required)
|
|
4455
|
+
:param str cluster_id: (required)
|
|
4456
|
+
:param str id: (required)
|
|
4457
|
+
:return: V1ClusterUsageRestriction
|
|
4458
|
+
If the method is called asynchronously,
|
|
4459
|
+
returns the request thread.
|
|
4460
|
+
"""
|
|
4461
|
+
kwargs['_return_http_data_only'] = True
|
|
4462
|
+
if kwargs.get('async_req'):
|
|
4463
|
+
return self.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
4464
|
+
else:
|
|
4465
|
+
(data) = self.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
4466
|
+
return data
|
|
4467
|
+
|
|
4468
|
+
def cluster_service_update_cluster_usage_restriction_with_http_info(self, body: 'UsagerestrictionsIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
4469
|
+
"""cluster_service_update_cluster_usage_restriction # noqa: E501
|
|
4470
|
+
|
|
4471
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4472
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4473
|
+
>>> thread = api.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, async_req=True)
|
|
4474
|
+
>>> result = thread.get()
|
|
4475
|
+
|
|
4476
|
+
:param async_req bool
|
|
4477
|
+
:param UsagerestrictionsIdBody body: (required)
|
|
4478
|
+
:param str cluster_id: (required)
|
|
4479
|
+
:param str id: (required)
|
|
4480
|
+
:return: V1ClusterUsageRestriction
|
|
4481
|
+
If the method is called asynchronously,
|
|
4482
|
+
returns the request thread.
|
|
4483
|
+
"""
|
|
4484
|
+
|
|
4485
|
+
all_params = ['body', 'cluster_id', 'id'] # noqa: E501
|
|
4486
|
+
all_params.append('async_req')
|
|
4487
|
+
all_params.append('_return_http_data_only')
|
|
4488
|
+
all_params.append('_preload_content')
|
|
4489
|
+
all_params.append('_request_timeout')
|
|
4490
|
+
|
|
4491
|
+
params = locals()
|
|
4492
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4493
|
+
if key not in all_params:
|
|
4494
|
+
raise TypeError(
|
|
4495
|
+
"Got an unexpected keyword argument '%s'"
|
|
4496
|
+
" to method cluster_service_update_cluster_usage_restriction" % key
|
|
4497
|
+
)
|
|
4498
|
+
params[key] = val
|
|
4499
|
+
del params['kwargs']
|
|
4500
|
+
# verify the required parameter 'body' is set
|
|
4501
|
+
if ('body' not in params or
|
|
4502
|
+
params['body'] is None):
|
|
4503
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
4504
|
+
# verify the required parameter 'cluster_id' is set
|
|
4505
|
+
if ('cluster_id' not in params or
|
|
4506
|
+
params['cluster_id'] is None):
|
|
4507
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
4508
|
+
# verify the required parameter 'id' is set
|
|
4509
|
+
if ('id' not in params or
|
|
4510
|
+
params['id'] is None):
|
|
4511
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
4512
|
+
|
|
4513
|
+
collection_formats = {}
|
|
4514
|
+
|
|
4515
|
+
path_params = {}
|
|
4516
|
+
if 'cluster_id' in params:
|
|
4517
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
4518
|
+
if 'id' in params:
|
|
4519
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
4520
|
+
|
|
4521
|
+
query_params = []
|
|
4522
|
+
|
|
4523
|
+
header_params = {}
|
|
4524
|
+
|
|
4525
|
+
form_params = []
|
|
4526
|
+
local_var_files = {}
|
|
4527
|
+
|
|
4528
|
+
body_params = None
|
|
4529
|
+
if 'body' in params:
|
|
4530
|
+
body_params = params['body']
|
|
4531
|
+
# HTTP header `Accept`
|
|
4532
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4533
|
+
['application/json']) # noqa: E501
|
|
4534
|
+
|
|
4535
|
+
# HTTP header `Content-Type`
|
|
4536
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4537
|
+
['application/json']) # noqa: E501
|
|
4538
|
+
|
|
4539
|
+
# Authentication setting
|
|
4540
|
+
auth_settings = [] # noqa: E501
|
|
4541
|
+
|
|
4542
|
+
return self.api_client.call_api(
|
|
4543
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions/{id}', 'PUT',
|
|
4544
|
+
path_params,
|
|
4545
|
+
query_params,
|
|
4546
|
+
header_params,
|
|
4547
|
+
body=body_params,
|
|
4548
|
+
post_params=form_params,
|
|
4549
|
+
files=local_var_files,
|
|
4550
|
+
response_type='V1ClusterUsageRestriction', # noqa: E501
|
|
4551
|
+
auth_settings=auth_settings,
|
|
4552
|
+
async_req=params.get('async_req'),
|
|
4553
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4554
|
+
_preload_content=params.get('_preload_content', True),
|
|
4555
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4556
|
+
collection_formats=collection_formats)
|
|
4557
|
+
|
|
3185
4558
|
def cluster_service_update_project_cluster(self, body: 'ClustersIdBody1', project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
3186
4559
|
"""cluster_service_update_project_cluster # noqa: E501
|
|
3187
4560
|
|