@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**.
72 lines • 3.74 kB
JavaScript
/*
* 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 'ObjectStoreSecretApi'.
* This API is part of the 'AI_CORE_API' service.
*/
export const ObjectStoreSecretApi = {
_defaultBasePath: undefined,
/**
* Retrieve a list of metadata of the stored secrets.
*
* @param queryParameters - Object containing the following keys: $top, $skip, $count.
* @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
kubesubmitV4ObjectStoreSecretsQuery: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/admin/objectStoreSecrets', {
queryParameters,
headerParameters
}, ObjectStoreSecretApi._defaultBasePath),
/**
* Create a secret based on the configuration in the request body
*
* @param body - Request body.
* @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
kubesubmitV4ObjectStoreSecretsCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/admin/objectStoreSecrets', {
body,
headerParameters
}, ObjectStoreSecretApi._defaultBasePath),
/**
* This retrieves the metadata of the stored secret which match the parameter objectStoreName.
* The fetched secret is constructed like objectStoreName-object-store-secret
* The base64 encoded field for the stored secret is not returned.
*
* @param objectStoreName - Name of the object store for the secret.
* @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
kubesubmitV4ObjectStoreSecretsGet: (objectStoreName, headerParameters) => new OpenApiRequestBuilder('get', '/admin/objectStoreSecrets/{objectStoreName}', {
pathParameters: { objectStoreName },
headerParameters
}, ObjectStoreSecretApi._defaultBasePath),
/**
* Update a secret with name of objectStoreName if it exists.
*
* @param objectStoreName - Name of the object store for the secret.
* @param body - Request body.
* @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
kubesubmitV4ObjectStoreSecretsPatch: (objectStoreName, body, headerParameters) => new OpenApiRequestBuilder('patch', '/admin/objectStoreSecrets/{objectStoreName}', {
pathParameters: { objectStoreName },
body,
headerParameters
}, ObjectStoreSecretApi._defaultBasePath),
/**
* Delete a secret with the name of objectStoreName if it exists.
* @param objectStoreName - Name of the object store for the secret.
* @param headerParameters - Object containing the following keys: Authorization, AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
kubesubmitV4ObjectStoreSecretsDelete: (objectStoreName, headerParameters) => new OpenApiRequestBuilder('delete', '/admin/objectStoreSecrets/{objectStoreName}', {
pathParameters: { objectStoreName },
headerParameters
}, ObjectStoreSecretApi._defaultBasePath)
};
//# sourceMappingURL=object-store-secret-api.js.map