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**.

71 lines 3.42 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 'ResourceGroupApi'. * This API is part of the 'AI_CORE_API' service. */ export const ResourceGroupApi = { _defaultBasePath: undefined, /** * Retrieve a list of resource groups for a given tenant. * * @param queryParameters - Object containing the following keys: $top, $skip, $count, continueToken, labelSelector. * @param headerParameters - Object containing the following keys: Authorization, Prefer. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcegroupsGetAll: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/admin/resourceGroups', { queryParameters, headerParameters }, ResourceGroupApi._defaultBasePath), /** * Create resource group to a given main tenant. The length of resource group id must be between 3 and 253. * * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcegroupsCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/admin/resourceGroups', { body, headerParameters }, ResourceGroupApi._defaultBasePath), /** * Get a resource group of a given main tenant. * * @param resourceGroupId - Resource group identifier * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcegroupsGet: (resourceGroupId, headerParameters) => new OpenApiRequestBuilder('get', '/admin/resourceGroups/{resourceGroupId}', { pathParameters: { resourceGroupId }, headerParameters }, ResourceGroupApi._defaultBasePath), /** * Replace some characteristics of the resource group, for instance labels. * * @param resourceGroupId - Resource group identifier * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcegroupsPatch: (resourceGroupId, body, headerParameters) => new OpenApiRequestBuilder('patch', '/admin/resourceGroups/{resourceGroupId}', { pathParameters: { resourceGroupId }, body, headerParameters }, ResourceGroupApi._defaultBasePath), /** * Delete a resource group of a given main tenant. * * @param resourceGroupId - Resource group identifier * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ResourcegroupsDelete: (resourceGroupId, headerParameters) => new OpenApiRequestBuilder('delete', '/admin/resourceGroups/{resourceGroupId}', { pathParameters: { resourceGroupId }, headerParameters }, ResourceGroupApi._defaultBasePath) }; //# sourceMappingURL=resource-group-api.js.map