UNPKG

@sap-ai-sdk/ai-api

Version:

SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.

40 lines 1.81 kB
/* * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; /** * Representation of the 'ResourceApi'. * This API is part of the 'AI_CORE_API' service. */ export const ResourceApi = { _defaultBasePath: undefined, /** * Lists all hot spare nodes, used nodes and total nodes corresponding to tenant. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcesGet: (headerParameters) => new OpenApiRequestBuilder('get', '/admin/resources/nodes', { headerParameters }, ResourceApi._defaultBasePath), /** * Set hot spare nodes corresponding to tenant at main tenant level. * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcesPatch: (body, headerParameters) => new OpenApiRequestBuilder('patch', '/admin/resources/nodes', { body, headerParameters }, ResourceApi._defaultBasePath), /** * Lists all the instance types available in the cluster. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4InstanceTypesGet: (headerParameters) => new OpenApiRequestBuilder('get', '/admin/resources/instanceTypes', { headerParameters }, ResourceApi._defaultBasePath) }; //# sourceMappingURL=resource-api.js.map