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

66 lines 3.43 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 'SecretApi'. * This API is part of the 'AI_CORE_API' service. */ export const SecretApi = { _defaultBasePath: undefined, /** * Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data itself. * @param queryParameters - Object containing the following keys: $top, $skip, $count. * @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group, AI-Tenant-Scope. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4GenericSecretsGetAll: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/admin/secrets', { queryParameters, headerParameters }, SecretApi._defaultBasePath), /** * Create a new generic secret in the corresponding resource group or at main tenant level. * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group, AI-Tenant-Scope. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4GenericSecretsCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/admin/secrets', { body, headerParameters }, SecretApi._defaultBasePath), /** * Retrieve a single generic secret. This retrieves metadata only, not the secret data itself. * @param secretName - Path parameter. * @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group, AI-Tenant-Scope. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4GenericSecretsGet: (secretName, headerParameters) => new OpenApiRequestBuilder('get', '/admin/secrets/{secretName}', { pathParameters: { secretName }, headerParameters }, SecretApi._defaultBasePath), /** * Update secret credentials. Replace secret data with the provided data. * @param secretName - Path parameter. * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group, AI-Tenant-Scope. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4GenericSecretsUpdate: (secretName, body, headerParameters) => new OpenApiRequestBuilder('patch', '/admin/secrets/{secretName}', { pathParameters: { secretName }, body, headerParameters }, SecretApi._defaultBasePath), /** * Deletes the secret from provided resource group namespace * @param secretName - Path parameter. * @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group, AI-Tenant-Scope. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4GenericSecretsDelete: (secretName, headerParameters) => new OpenApiRequestBuilder('delete', '/admin/secrets/{secretName}', { pathParameters: { secretName }, headerParameters }, SecretApi._defaultBasePath) }; //# sourceMappingURL=secret-api.js.map