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