platform-api-python-client 4.6.0__tar.gz → 4.8.3__tar.gz
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.
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/PKG-INFO +1 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/README.md +7 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/__init__.py +5 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/api/external_api.py +542 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/api_client.py +1 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/configuration.py +1 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/__init__.py +4 -0
- platform_api_python_client-4.8.3/platform_api_python_client/models/cluster_capacity_response.py +99 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_c_serve_v3_deployment_request.py +5 -3
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_compute_deployment_request.py +4 -2
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_inference_v3_deployment_request.py +5 -3
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_c_serve_v3_deployment_response.py +5 -3
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_compute_deployment_response.py +5 -3
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_inference_v3_deployment_response.py +5 -3
- platform_api_python_client-4.8.3/platform_api_python_client/models/gpu_type_capacity.py +91 -0
- platform_api_python_client-4.8.3/platform_api_python_client/models/invite_user_request.py +87 -0
- platform_api_python_client-4.8.3/platform_api_python_client/models/list_cluster_capacity_response.py +95 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/user_vault_type.py +1 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client.egg-info/PKG-INFO +1 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client.egg-info/SOURCES.txt +8 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/pyproject.toml +1 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/setup.py +1 -1
- platform_api_python_client-4.8.3/test/test_cluster_capacity_response.py +66 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_c_serve_v3_deployment_request.py +2 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_compute_deployment_request.py +2 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_inference_v3_deployment_request.py +2 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_response.py +1 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_external_api.py +14 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_c_serve_v3_deployment_response.py +2 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_compute_deployment_response.py +2 -1
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_inference_v3_deployment_response.py +2 -1
- platform_api_python_client-4.8.3/test/test_gpu_type_capacity.py +56 -0
- platform_api_python_client-4.8.3/test/test_invite_user_request.py +52 -0
- platform_api_python_client-4.8.3/test/test_list_cluster_capacity_response.py +72 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/api/__init__.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/api_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/exceptions.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/api_key_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/api_key_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/backend_protocol.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_c_serve_v2_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_c_serve_v3_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_inference_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_organization_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_organization_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_rag_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_url_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/create_url_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/credits_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/daily_bill_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_status_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_status_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_status_v3_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_type.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_usage.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/deployment_usage_value.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_cluster_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_deployment_log_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_deployment_revision_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_deployment_usage_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/get_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/hardware_instance_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/http_validation_error.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/image_pull_secret_credentials.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_api_key_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_daily_bill_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_deployment_revisions_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_get_cluster_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_get_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/list_user_vault_items_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/metric.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/pod_details.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/pod_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/revision_pod_details.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/rollout_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/rollout_strategy_params.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/service_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/update_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/update_deployment_status_v3_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/user_vault_item.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/validation_error.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/validation_error_loc_inner.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/models/vault_scope.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/py.typed +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client/rest.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client.egg-info/dependency_links.txt +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client.egg-info/requires.txt +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/platform_api_python_client.egg-info/top_level.txt +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/setup.cfg +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_api_key_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_api_key_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_backend_protocol.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_c_serve_v2_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_c_serve_v3_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_inference_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_organization_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_organization_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_rag_deployment_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_url_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_create_url_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_credits_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_daily_bill_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_status_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_status_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_status_v3_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_type.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_usage.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_deployment_usage_value.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_cluster_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_deployment_log_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_deployment_revision_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_deployment_usage_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_get_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_http_validation_error.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_image_pull_secret_credentials.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_api_key_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_daily_bill_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_deployment_revisions_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_get_cluster_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_get_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_list_user_vault_items_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_metric.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_pod_details.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_pod_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_revision_pod_details.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_rollout_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_rollout_strategy_params.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_service_status.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_update_deployment_response.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_update_deployment_status_v3_request.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_user_vault_item.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_user_vault_type.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_validation_error.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_validation_error_loc_inner.py +0 -0
- {platform_api_python_client-4.6.0 → platform_api_python_client-4.8.3}/test/test_vault_scope.py +0 -0
|
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: 0.1.0
|
|
7
|
-
- Package version: 4.
|
|
7
|
+
- Package version: 4.8.3
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -127,6 +127,8 @@ Class | Method | HTTP request | Description
|
|
|
127
127
|
*EXTERNALApi* | [**get_rag_deployment_deployments_rag_deployment_id_get**](docs/EXTERNALApi.md#get_rag_deployment_deployments_rag_deployment_id_get) | **GET** /deployments/rag/{deployment_id} | Get Rag Deployment
|
|
128
128
|
*EXTERNALApi* | [**get_usage_daily_bills_get**](docs/EXTERNALApi.md#get_usage_daily_bills_get) | **GET** /daily_bills | Get Usage
|
|
129
129
|
*EXTERNALApi* | [**get_usage_deployments_usage_deployment_id_get**](docs/EXTERNALApi.md#get_usage_deployments_usage_deployment_id_get) | **GET** /deployments/usage/{deployment_id} | Get Usage
|
|
130
|
+
*EXTERNALApi* | [**invite_user_organizations_invite_post**](docs/EXTERNALApi.md#invite_user_organizations_invite_post) | **POST** /organizations/invite | Invite User
|
|
131
|
+
*EXTERNALApi* | [**list_cluster_capacity_capacity_get**](docs/EXTERNALApi.md#list_cluster_capacity_capacity_get) | **GET** /capacity | List Cluster Capacity
|
|
130
132
|
*EXTERNALApi* | [**rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put**](docs/EXTERNALApi.md#rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put) | **PUT** /deployments/revisions/{deployment_id}/{revision_number} | Rollout Existing Revision
|
|
131
133
|
*EXTERNALApi* | [**setup_stripe_customer_payments_setup_post**](docs/EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer
|
|
132
134
|
*EXTERNALApi* | [**update_compute_deployment_deployments_compute_put**](docs/EXTERNALApi.md#update_compute_deployment_deployments_compute_put) | **PUT** /deployments/compute | Update Compute Deployment
|
|
@@ -149,6 +151,7 @@ Class | Method | HTTP request | Description
|
|
|
149
151
|
- [CServeRecipePerf](docs/CServeRecipePerf.md)
|
|
150
152
|
- [CServeRecipeResponse](docs/CServeRecipeResponse.md)
|
|
151
153
|
- [CServeV2Recipe](docs/CServeV2Recipe.md)
|
|
154
|
+
- [ClusterCapacityResponse](docs/ClusterCapacityResponse.md)
|
|
152
155
|
- [CreateCServeV2DeploymentRequest](docs/CreateCServeV2DeploymentRequest.md)
|
|
153
156
|
- [CreateCServeV2DeploymentResponse](docs/CreateCServeV2DeploymentResponse.md)
|
|
154
157
|
- [CreateCServeV3DeploymentRequest](docs/CreateCServeV3DeploymentRequest.md)
|
|
@@ -185,11 +188,14 @@ Class | Method | HTTP request | Description
|
|
|
185
188
|
- [GetInferenceDeploymentResponse](docs/GetInferenceDeploymentResponse.md)
|
|
186
189
|
- [GetInferenceV3DeploymentResponse](docs/GetInferenceV3DeploymentResponse.md)
|
|
187
190
|
- [GetRagDeploymentResponse](docs/GetRagDeploymentResponse.md)
|
|
191
|
+
- [GpuTypeCapacity](docs/GpuTypeCapacity.md)
|
|
188
192
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
189
193
|
- [HardwareInstanceResponse](docs/HardwareInstanceResponse.md)
|
|
190
194
|
- [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md)
|
|
195
|
+
- [InviteUserRequest](docs/InviteUserRequest.md)
|
|
191
196
|
- [ListAPIKeyResponse](docs/ListAPIKeyResponse.md)
|
|
192
197
|
- [ListCServeRecipeResponse](docs/ListCServeRecipeResponse.md)
|
|
198
|
+
- [ListClusterCapacityResponse](docs/ListClusterCapacityResponse.md)
|
|
193
199
|
- [ListDailyBillResponse](docs/ListDailyBillResponse.md)
|
|
194
200
|
- [ListDeploymentRevisionsResponse](docs/ListDeploymentRevisionsResponse.md)
|
|
195
201
|
- [ListGetClusterResponse](docs/ListGetClusterResponse.md)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "4.
|
|
17
|
+
__version__ = "4.8.3"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -37,6 +37,7 @@ from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
|
37
37
|
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
38
38
|
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
39
39
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
40
|
+
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
40
41
|
from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
|
|
41
42
|
from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
|
|
42
43
|
from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
|
|
@@ -73,11 +74,14 @@ from platform_api_python_client.models.get_deployment_usage_response import GetD
|
|
|
73
74
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
74
75
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
75
76
|
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
|
|
77
|
+
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
76
78
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
77
79
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
78
80
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
81
|
+
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
79
82
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
80
83
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
84
|
+
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
81
85
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
82
86
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
83
87
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
@@ -50,8 +50,10 @@ from platform_api_python_client.models.get_deployment_usage_response import GetD
|
|
|
50
50
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
51
51
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
52
52
|
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
|
|
53
|
+
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
53
54
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
54
55
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
56
|
+
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
55
57
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
56
58
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
57
59
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
@@ -9185,6 +9187,546 @@ class EXTERNALApi:
|
|
|
9185
9187
|
|
|
9186
9188
|
|
|
9187
9189
|
|
|
9190
|
+
@validate_call
|
|
9191
|
+
def invite_user_organizations_invite_post(
|
|
9192
|
+
self,
|
|
9193
|
+
invite_user_request: InviteUserRequest,
|
|
9194
|
+
_request_timeout: Union[
|
|
9195
|
+
None,
|
|
9196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9197
|
+
Tuple[
|
|
9198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9200
|
+
]
|
|
9201
|
+
] = None,
|
|
9202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9203
|
+
_content_type: Optional[StrictStr] = None,
|
|
9204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9206
|
+
) -> object:
|
|
9207
|
+
"""Invite User
|
|
9208
|
+
|
|
9209
|
+
|
|
9210
|
+
:param invite_user_request: (required)
|
|
9211
|
+
:type invite_user_request: InviteUserRequest
|
|
9212
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9213
|
+
number provided, it will be total request
|
|
9214
|
+
timeout. It can also be a pair (tuple) of
|
|
9215
|
+
(connection, read) timeouts.
|
|
9216
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9217
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9218
|
+
request; this effectively ignores the
|
|
9219
|
+
authentication in the spec for a single request.
|
|
9220
|
+
:type _request_auth: dict, optional
|
|
9221
|
+
:param _content_type: force content-type for the request.
|
|
9222
|
+
:type _content_type: str, Optional
|
|
9223
|
+
:param _headers: set to override the headers for a single
|
|
9224
|
+
request; this effectively ignores the headers
|
|
9225
|
+
in the spec for a single request.
|
|
9226
|
+
:type _headers: dict, optional
|
|
9227
|
+
:param _host_index: set to override the host_index for a single
|
|
9228
|
+
request; this effectively ignores the host_index
|
|
9229
|
+
in the spec for a single request.
|
|
9230
|
+
:type _host_index: int, optional
|
|
9231
|
+
:return: Returns the result object.
|
|
9232
|
+
""" # noqa: E501
|
|
9233
|
+
|
|
9234
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9235
|
+
invite_user_request=invite_user_request,
|
|
9236
|
+
_request_auth=_request_auth,
|
|
9237
|
+
_content_type=_content_type,
|
|
9238
|
+
_headers=_headers,
|
|
9239
|
+
_host_index=_host_index
|
|
9240
|
+
)
|
|
9241
|
+
|
|
9242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9243
|
+
'200': "object",
|
|
9244
|
+
'422': "HTTPValidationError",
|
|
9245
|
+
}
|
|
9246
|
+
response_data = self.api_client.call_api(
|
|
9247
|
+
*_param,
|
|
9248
|
+
_request_timeout=_request_timeout
|
|
9249
|
+
)
|
|
9250
|
+
response_data.read()
|
|
9251
|
+
return self.api_client.response_deserialize(
|
|
9252
|
+
response_data=response_data,
|
|
9253
|
+
response_types_map=_response_types_map,
|
|
9254
|
+
).data
|
|
9255
|
+
|
|
9256
|
+
|
|
9257
|
+
@validate_call
|
|
9258
|
+
def invite_user_organizations_invite_post_with_http_info(
|
|
9259
|
+
self,
|
|
9260
|
+
invite_user_request: InviteUserRequest,
|
|
9261
|
+
_request_timeout: Union[
|
|
9262
|
+
None,
|
|
9263
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9264
|
+
Tuple[
|
|
9265
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9266
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9267
|
+
]
|
|
9268
|
+
] = None,
|
|
9269
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9270
|
+
_content_type: Optional[StrictStr] = None,
|
|
9271
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9272
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9273
|
+
) -> ApiResponse[object]:
|
|
9274
|
+
"""Invite User
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
:param invite_user_request: (required)
|
|
9278
|
+
:type invite_user_request: InviteUserRequest
|
|
9279
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9280
|
+
number provided, it will be total request
|
|
9281
|
+
timeout. It can also be a pair (tuple) of
|
|
9282
|
+
(connection, read) timeouts.
|
|
9283
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9284
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9285
|
+
request; this effectively ignores the
|
|
9286
|
+
authentication in the spec for a single request.
|
|
9287
|
+
:type _request_auth: dict, optional
|
|
9288
|
+
:param _content_type: force content-type for the request.
|
|
9289
|
+
:type _content_type: str, Optional
|
|
9290
|
+
:param _headers: set to override the headers for a single
|
|
9291
|
+
request; this effectively ignores the headers
|
|
9292
|
+
in the spec for a single request.
|
|
9293
|
+
:type _headers: dict, optional
|
|
9294
|
+
:param _host_index: set to override the host_index for a single
|
|
9295
|
+
request; this effectively ignores the host_index
|
|
9296
|
+
in the spec for a single request.
|
|
9297
|
+
:type _host_index: int, optional
|
|
9298
|
+
:return: Returns the result object.
|
|
9299
|
+
""" # noqa: E501
|
|
9300
|
+
|
|
9301
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9302
|
+
invite_user_request=invite_user_request,
|
|
9303
|
+
_request_auth=_request_auth,
|
|
9304
|
+
_content_type=_content_type,
|
|
9305
|
+
_headers=_headers,
|
|
9306
|
+
_host_index=_host_index
|
|
9307
|
+
)
|
|
9308
|
+
|
|
9309
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9310
|
+
'200': "object",
|
|
9311
|
+
'422': "HTTPValidationError",
|
|
9312
|
+
}
|
|
9313
|
+
response_data = self.api_client.call_api(
|
|
9314
|
+
*_param,
|
|
9315
|
+
_request_timeout=_request_timeout
|
|
9316
|
+
)
|
|
9317
|
+
response_data.read()
|
|
9318
|
+
return self.api_client.response_deserialize(
|
|
9319
|
+
response_data=response_data,
|
|
9320
|
+
response_types_map=_response_types_map,
|
|
9321
|
+
)
|
|
9322
|
+
|
|
9323
|
+
|
|
9324
|
+
@validate_call
|
|
9325
|
+
def invite_user_organizations_invite_post_without_preload_content(
|
|
9326
|
+
self,
|
|
9327
|
+
invite_user_request: InviteUserRequest,
|
|
9328
|
+
_request_timeout: Union[
|
|
9329
|
+
None,
|
|
9330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9331
|
+
Tuple[
|
|
9332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9334
|
+
]
|
|
9335
|
+
] = None,
|
|
9336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9337
|
+
_content_type: Optional[StrictStr] = None,
|
|
9338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9340
|
+
) -> RESTResponseType:
|
|
9341
|
+
"""Invite User
|
|
9342
|
+
|
|
9343
|
+
|
|
9344
|
+
:param invite_user_request: (required)
|
|
9345
|
+
:type invite_user_request: InviteUserRequest
|
|
9346
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9347
|
+
number provided, it will be total request
|
|
9348
|
+
timeout. It can also be a pair (tuple) of
|
|
9349
|
+
(connection, read) timeouts.
|
|
9350
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9351
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9352
|
+
request; this effectively ignores the
|
|
9353
|
+
authentication in the spec for a single request.
|
|
9354
|
+
:type _request_auth: dict, optional
|
|
9355
|
+
:param _content_type: force content-type for the request.
|
|
9356
|
+
:type _content_type: str, Optional
|
|
9357
|
+
:param _headers: set to override the headers for a single
|
|
9358
|
+
request; this effectively ignores the headers
|
|
9359
|
+
in the spec for a single request.
|
|
9360
|
+
:type _headers: dict, optional
|
|
9361
|
+
:param _host_index: set to override the host_index for a single
|
|
9362
|
+
request; this effectively ignores the host_index
|
|
9363
|
+
in the spec for a single request.
|
|
9364
|
+
:type _host_index: int, optional
|
|
9365
|
+
:return: Returns the result object.
|
|
9366
|
+
""" # noqa: E501
|
|
9367
|
+
|
|
9368
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9369
|
+
invite_user_request=invite_user_request,
|
|
9370
|
+
_request_auth=_request_auth,
|
|
9371
|
+
_content_type=_content_type,
|
|
9372
|
+
_headers=_headers,
|
|
9373
|
+
_host_index=_host_index
|
|
9374
|
+
)
|
|
9375
|
+
|
|
9376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9377
|
+
'200': "object",
|
|
9378
|
+
'422': "HTTPValidationError",
|
|
9379
|
+
}
|
|
9380
|
+
response_data = self.api_client.call_api(
|
|
9381
|
+
*_param,
|
|
9382
|
+
_request_timeout=_request_timeout
|
|
9383
|
+
)
|
|
9384
|
+
return response_data.response
|
|
9385
|
+
|
|
9386
|
+
|
|
9387
|
+
def _invite_user_organizations_invite_post_serialize(
|
|
9388
|
+
self,
|
|
9389
|
+
invite_user_request,
|
|
9390
|
+
_request_auth,
|
|
9391
|
+
_content_type,
|
|
9392
|
+
_headers,
|
|
9393
|
+
_host_index,
|
|
9394
|
+
) -> RequestSerialized:
|
|
9395
|
+
|
|
9396
|
+
_host = None
|
|
9397
|
+
|
|
9398
|
+
_collection_formats: Dict[str, str] = {
|
|
9399
|
+
}
|
|
9400
|
+
|
|
9401
|
+
_path_params: Dict[str, str] = {}
|
|
9402
|
+
_query_params: List[Tuple[str, str]] = []
|
|
9403
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
9404
|
+
_form_params: List[Tuple[str, str]] = []
|
|
9405
|
+
_files: Dict[
|
|
9406
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
9407
|
+
] = {}
|
|
9408
|
+
_body_params: Optional[bytes] = None
|
|
9409
|
+
|
|
9410
|
+
# process the path parameters
|
|
9411
|
+
# process the query parameters
|
|
9412
|
+
# process the header parameters
|
|
9413
|
+
# process the form parameters
|
|
9414
|
+
# process the body parameter
|
|
9415
|
+
if invite_user_request is not None:
|
|
9416
|
+
_body_params = invite_user_request
|
|
9417
|
+
|
|
9418
|
+
|
|
9419
|
+
# set the HTTP header `Accept`
|
|
9420
|
+
if 'Accept' not in _header_params:
|
|
9421
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
9422
|
+
[
|
|
9423
|
+
'application/json'
|
|
9424
|
+
]
|
|
9425
|
+
)
|
|
9426
|
+
|
|
9427
|
+
# set the HTTP header `Content-Type`
|
|
9428
|
+
if _content_type:
|
|
9429
|
+
_header_params['Content-Type'] = _content_type
|
|
9430
|
+
else:
|
|
9431
|
+
_default_content_type = (
|
|
9432
|
+
self.api_client.select_header_content_type(
|
|
9433
|
+
[
|
|
9434
|
+
'application/json'
|
|
9435
|
+
]
|
|
9436
|
+
)
|
|
9437
|
+
)
|
|
9438
|
+
if _default_content_type is not None:
|
|
9439
|
+
_header_params['Content-Type'] = _default_content_type
|
|
9440
|
+
|
|
9441
|
+
# authentication setting
|
|
9442
|
+
_auth_settings: List[str] = [
|
|
9443
|
+
'HTTPBearer'
|
|
9444
|
+
]
|
|
9445
|
+
|
|
9446
|
+
return self.api_client.param_serialize(
|
|
9447
|
+
method='POST',
|
|
9448
|
+
resource_path='/organizations/invite',
|
|
9449
|
+
path_params=_path_params,
|
|
9450
|
+
query_params=_query_params,
|
|
9451
|
+
header_params=_header_params,
|
|
9452
|
+
body=_body_params,
|
|
9453
|
+
post_params=_form_params,
|
|
9454
|
+
files=_files,
|
|
9455
|
+
auth_settings=_auth_settings,
|
|
9456
|
+
collection_formats=_collection_formats,
|
|
9457
|
+
_host=_host,
|
|
9458
|
+
_request_auth=_request_auth
|
|
9459
|
+
)
|
|
9460
|
+
|
|
9461
|
+
|
|
9462
|
+
|
|
9463
|
+
|
|
9464
|
+
@validate_call
|
|
9465
|
+
def list_cluster_capacity_capacity_get(
|
|
9466
|
+
self,
|
|
9467
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9468
|
+
_request_timeout: Union[
|
|
9469
|
+
None,
|
|
9470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9471
|
+
Tuple[
|
|
9472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9473
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9474
|
+
]
|
|
9475
|
+
] = None,
|
|
9476
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9477
|
+
_content_type: Optional[StrictStr] = None,
|
|
9478
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9479
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9480
|
+
) -> ListClusterCapacityResponse:
|
|
9481
|
+
"""List Cluster Capacity
|
|
9482
|
+
|
|
9483
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9484
|
+
|
|
9485
|
+
:param cluster_id:
|
|
9486
|
+
:type cluster_id: int
|
|
9487
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9488
|
+
number provided, it will be total request
|
|
9489
|
+
timeout. It can also be a pair (tuple) of
|
|
9490
|
+
(connection, read) timeouts.
|
|
9491
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9492
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9493
|
+
request; this effectively ignores the
|
|
9494
|
+
authentication in the spec for a single request.
|
|
9495
|
+
:type _request_auth: dict, optional
|
|
9496
|
+
:param _content_type: force content-type for the request.
|
|
9497
|
+
:type _content_type: str, Optional
|
|
9498
|
+
:param _headers: set to override the headers for a single
|
|
9499
|
+
request; this effectively ignores the headers
|
|
9500
|
+
in the spec for a single request.
|
|
9501
|
+
:type _headers: dict, optional
|
|
9502
|
+
:param _host_index: set to override the host_index for a single
|
|
9503
|
+
request; this effectively ignores the host_index
|
|
9504
|
+
in the spec for a single request.
|
|
9505
|
+
:type _host_index: int, optional
|
|
9506
|
+
:return: Returns the result object.
|
|
9507
|
+
""" # noqa: E501
|
|
9508
|
+
|
|
9509
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9510
|
+
cluster_id=cluster_id,
|
|
9511
|
+
_request_auth=_request_auth,
|
|
9512
|
+
_content_type=_content_type,
|
|
9513
|
+
_headers=_headers,
|
|
9514
|
+
_host_index=_host_index
|
|
9515
|
+
)
|
|
9516
|
+
|
|
9517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9518
|
+
'200': "ListClusterCapacityResponse",
|
|
9519
|
+
'422': "HTTPValidationError",
|
|
9520
|
+
}
|
|
9521
|
+
response_data = self.api_client.call_api(
|
|
9522
|
+
*_param,
|
|
9523
|
+
_request_timeout=_request_timeout
|
|
9524
|
+
)
|
|
9525
|
+
response_data.read()
|
|
9526
|
+
return self.api_client.response_deserialize(
|
|
9527
|
+
response_data=response_data,
|
|
9528
|
+
response_types_map=_response_types_map,
|
|
9529
|
+
).data
|
|
9530
|
+
|
|
9531
|
+
|
|
9532
|
+
@validate_call
|
|
9533
|
+
def list_cluster_capacity_capacity_get_with_http_info(
|
|
9534
|
+
self,
|
|
9535
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9536
|
+
_request_timeout: Union[
|
|
9537
|
+
None,
|
|
9538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9539
|
+
Tuple[
|
|
9540
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9541
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9542
|
+
]
|
|
9543
|
+
] = None,
|
|
9544
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9545
|
+
_content_type: Optional[StrictStr] = None,
|
|
9546
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9547
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9548
|
+
) -> ApiResponse[ListClusterCapacityResponse]:
|
|
9549
|
+
"""List Cluster Capacity
|
|
9550
|
+
|
|
9551
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9552
|
+
|
|
9553
|
+
:param cluster_id:
|
|
9554
|
+
:type cluster_id: int
|
|
9555
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9556
|
+
number provided, it will be total request
|
|
9557
|
+
timeout. It can also be a pair (tuple) of
|
|
9558
|
+
(connection, read) timeouts.
|
|
9559
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9560
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9561
|
+
request; this effectively ignores the
|
|
9562
|
+
authentication in the spec for a single request.
|
|
9563
|
+
:type _request_auth: dict, optional
|
|
9564
|
+
:param _content_type: force content-type for the request.
|
|
9565
|
+
:type _content_type: str, Optional
|
|
9566
|
+
:param _headers: set to override the headers for a single
|
|
9567
|
+
request; this effectively ignores the headers
|
|
9568
|
+
in the spec for a single request.
|
|
9569
|
+
:type _headers: dict, optional
|
|
9570
|
+
:param _host_index: set to override the host_index for a single
|
|
9571
|
+
request; this effectively ignores the host_index
|
|
9572
|
+
in the spec for a single request.
|
|
9573
|
+
:type _host_index: int, optional
|
|
9574
|
+
:return: Returns the result object.
|
|
9575
|
+
""" # noqa: E501
|
|
9576
|
+
|
|
9577
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9578
|
+
cluster_id=cluster_id,
|
|
9579
|
+
_request_auth=_request_auth,
|
|
9580
|
+
_content_type=_content_type,
|
|
9581
|
+
_headers=_headers,
|
|
9582
|
+
_host_index=_host_index
|
|
9583
|
+
)
|
|
9584
|
+
|
|
9585
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9586
|
+
'200': "ListClusterCapacityResponse",
|
|
9587
|
+
'422': "HTTPValidationError",
|
|
9588
|
+
}
|
|
9589
|
+
response_data = self.api_client.call_api(
|
|
9590
|
+
*_param,
|
|
9591
|
+
_request_timeout=_request_timeout
|
|
9592
|
+
)
|
|
9593
|
+
response_data.read()
|
|
9594
|
+
return self.api_client.response_deserialize(
|
|
9595
|
+
response_data=response_data,
|
|
9596
|
+
response_types_map=_response_types_map,
|
|
9597
|
+
)
|
|
9598
|
+
|
|
9599
|
+
|
|
9600
|
+
@validate_call
|
|
9601
|
+
def list_cluster_capacity_capacity_get_without_preload_content(
|
|
9602
|
+
self,
|
|
9603
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9604
|
+
_request_timeout: Union[
|
|
9605
|
+
None,
|
|
9606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9607
|
+
Tuple[
|
|
9608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9609
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9610
|
+
]
|
|
9611
|
+
] = None,
|
|
9612
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9613
|
+
_content_type: Optional[StrictStr] = None,
|
|
9614
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9615
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9616
|
+
) -> RESTResponseType:
|
|
9617
|
+
"""List Cluster Capacity
|
|
9618
|
+
|
|
9619
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9620
|
+
|
|
9621
|
+
:param cluster_id:
|
|
9622
|
+
:type cluster_id: int
|
|
9623
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9624
|
+
number provided, it will be total request
|
|
9625
|
+
timeout. It can also be a pair (tuple) of
|
|
9626
|
+
(connection, read) timeouts.
|
|
9627
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9628
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9629
|
+
request; this effectively ignores the
|
|
9630
|
+
authentication in the spec for a single request.
|
|
9631
|
+
:type _request_auth: dict, optional
|
|
9632
|
+
:param _content_type: force content-type for the request.
|
|
9633
|
+
:type _content_type: str, Optional
|
|
9634
|
+
:param _headers: set to override the headers for a single
|
|
9635
|
+
request; this effectively ignores the headers
|
|
9636
|
+
in the spec for a single request.
|
|
9637
|
+
:type _headers: dict, optional
|
|
9638
|
+
:param _host_index: set to override the host_index for a single
|
|
9639
|
+
request; this effectively ignores the host_index
|
|
9640
|
+
in the spec for a single request.
|
|
9641
|
+
:type _host_index: int, optional
|
|
9642
|
+
:return: Returns the result object.
|
|
9643
|
+
""" # noqa: E501
|
|
9644
|
+
|
|
9645
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9646
|
+
cluster_id=cluster_id,
|
|
9647
|
+
_request_auth=_request_auth,
|
|
9648
|
+
_content_type=_content_type,
|
|
9649
|
+
_headers=_headers,
|
|
9650
|
+
_host_index=_host_index
|
|
9651
|
+
)
|
|
9652
|
+
|
|
9653
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9654
|
+
'200': "ListClusterCapacityResponse",
|
|
9655
|
+
'422': "HTTPValidationError",
|
|
9656
|
+
}
|
|
9657
|
+
response_data = self.api_client.call_api(
|
|
9658
|
+
*_param,
|
|
9659
|
+
_request_timeout=_request_timeout
|
|
9660
|
+
)
|
|
9661
|
+
return response_data.response
|
|
9662
|
+
|
|
9663
|
+
|
|
9664
|
+
def _list_cluster_capacity_capacity_get_serialize(
|
|
9665
|
+
self,
|
|
9666
|
+
cluster_id,
|
|
9667
|
+
_request_auth,
|
|
9668
|
+
_content_type,
|
|
9669
|
+
_headers,
|
|
9670
|
+
_host_index,
|
|
9671
|
+
) -> RequestSerialized:
|
|
9672
|
+
|
|
9673
|
+
_host = None
|
|
9674
|
+
|
|
9675
|
+
_collection_formats: Dict[str, str] = {
|
|
9676
|
+
}
|
|
9677
|
+
|
|
9678
|
+
_path_params: Dict[str, str] = {}
|
|
9679
|
+
_query_params: List[Tuple[str, str]] = []
|
|
9680
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
9681
|
+
_form_params: List[Tuple[str, str]] = []
|
|
9682
|
+
_files: Dict[
|
|
9683
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
9684
|
+
] = {}
|
|
9685
|
+
_body_params: Optional[bytes] = None
|
|
9686
|
+
|
|
9687
|
+
# process the path parameters
|
|
9688
|
+
# process the query parameters
|
|
9689
|
+
if cluster_id is not None:
|
|
9690
|
+
|
|
9691
|
+
_query_params.append(('cluster_id', cluster_id))
|
|
9692
|
+
|
|
9693
|
+
# process the header parameters
|
|
9694
|
+
# process the form parameters
|
|
9695
|
+
# process the body parameter
|
|
9696
|
+
|
|
9697
|
+
|
|
9698
|
+
# set the HTTP header `Accept`
|
|
9699
|
+
if 'Accept' not in _header_params:
|
|
9700
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
9701
|
+
[
|
|
9702
|
+
'application/json'
|
|
9703
|
+
]
|
|
9704
|
+
)
|
|
9705
|
+
|
|
9706
|
+
|
|
9707
|
+
# authentication setting
|
|
9708
|
+
_auth_settings: List[str] = [
|
|
9709
|
+
'HTTPBearer'
|
|
9710
|
+
]
|
|
9711
|
+
|
|
9712
|
+
return self.api_client.param_serialize(
|
|
9713
|
+
method='GET',
|
|
9714
|
+
resource_path='/capacity',
|
|
9715
|
+
path_params=_path_params,
|
|
9716
|
+
query_params=_query_params,
|
|
9717
|
+
header_params=_header_params,
|
|
9718
|
+
body=_body_params,
|
|
9719
|
+
post_params=_form_params,
|
|
9720
|
+
files=_files,
|
|
9721
|
+
auth_settings=_auth_settings,
|
|
9722
|
+
collection_formats=_collection_formats,
|
|
9723
|
+
_host=_host,
|
|
9724
|
+
_request_auth=_request_auth
|
|
9725
|
+
)
|
|
9726
|
+
|
|
9727
|
+
|
|
9728
|
+
|
|
9729
|
+
|
|
9188
9730
|
@validate_call
|
|
9189
9731
|
def rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(
|
|
9190
9732
|
self,
|
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/4.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/4.8.3/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
|
392
392
|
"OS: {env}\n"\
|
|
393
393
|
"Python Version: {pyversion}\n"\
|
|
394
394
|
"Version of the API: 0.1.0\n"\
|
|
395
|
-
"SDK Package Version: 4.
|
|
395
|
+
"SDK Package Version: 4.8.3".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -20,6 +20,7 @@ from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
|
20
20
|
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
21
21
|
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
22
22
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
23
|
+
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
23
24
|
from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
|
|
24
25
|
from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
|
|
25
26
|
from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
|
|
@@ -56,11 +57,14 @@ from platform_api_python_client.models.get_deployment_usage_response import GetD
|
|
|
56
57
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
57
58
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
58
59
|
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
|
|
60
|
+
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
59
61
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
60
62
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
61
63
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
64
|
+
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
62
65
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
63
66
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
67
|
+
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
64
68
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
65
69
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
66
70
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|