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

92 lines 4.5 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 'ApplicationApi'. * This API is part of the 'AI_CORE_API' service. */ export const ApplicationApi = { _defaultBasePath: undefined, /** * Return all Argo CD application data objects. * * @param queryParameters - Object containing the following keys: $top, $skip, $count. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsGetAll: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/admin/applications', { queryParameters, headerParameters }, ApplicationApi._defaultBasePath), /** * Create an ArgoCD application to synchronise a repository. * * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/admin/applications', { body, headerParameters }, ApplicationApi._defaultBasePath), /** * Returns the ArgoCD application health and sync status. * * @param applicationName - Name of the ArgoCD application * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsGetStatus: (applicationName, headerParameters) => new OpenApiRequestBuilder('get', '/admin/applications/{applicationName}/status', { pathParameters: { applicationName }, headerParameters }, ApplicationApi._defaultBasePath), /** * Retrieve the ArgoCD application details. * * @param applicationName - Name of the ArgoCD application * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsGet: (applicationName, headerParameters) => new OpenApiRequestBuilder('get', '/admin/applications/{applicationName}', { pathParameters: { applicationName }, headerParameters }, ApplicationApi._defaultBasePath), /** * Update the referenced ArgoCD application to synchronize the repository. * * @param applicationName - Name of the ArgoCD application * @param body - Request body. * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsUpdate: (applicationName, body, headerParameters) => new OpenApiRequestBuilder('patch', '/admin/applications/{applicationName}', { pathParameters: { applicationName }, body, headerParameters }, ApplicationApi._defaultBasePath), /** * Delete an ArgoCD application * @param applicationName - Name of the ArgoCD application * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsDelete: (applicationName, headerParameters) => new OpenApiRequestBuilder('delete', '/admin/applications/{applicationName}', { pathParameters: { applicationName }, headerParameters }, ApplicationApi._defaultBasePath), /** * Schedules a refresh of the specified application that will be picked up by ArgoCD asynchronously * * @param applicationName - Name of the ArgoCD application * @param headerParameters - Object containing the following keys: Authorization. * @returns The request builder, use the `execute()` method to trigger the request. */ kubesubmitV4ApplicationsRefresh: (applicationName, headerParameters) => new OpenApiRequestBuilder('post', '/admin/applications/{applicationName}/refresh', { pathParameters: { applicationName }, headerParameters }, ApplicationApi._defaultBasePath) }; //# sourceMappingURL=application-api.js.map