Class ApplicationApi
Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
apiClient, defaultHeaders -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates this API class to invoke operations on the AI CoreApplicationApi(AiCoreService aiCoreService) Instantiates this API class to invoke operations on the AI Core -
Method Summary
Modifier and TypeMethodDescriptioncreate(KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) Create an applicationcreate(KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest, String authorization) Create an applicationDelete applicationDelete applicationGet ArgoCD applicationGet ArgoCD applicationgetAll()Return all applicationsReturn all applicationsReturns the ArgoCD application statusReturns the ArgoCD application statusMakes ArgoDC refresh the specified applicationMakes ArgoDC refresh the specified applicationupdate(String applicationName, BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) Update the ArgoCD application.update(String applicationName, BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData, String authorization) Update the ArgoCD application.withDefaultHeaders(Map<String, String> defaultHeaders) Creates a new API instance with additional default headers.
-
Constructor Details
-
ApplicationApi
public ApplicationApi()Instantiates this API class to invoke operations on the AI Core -
ApplicationApi
Instantiates this API class to invoke operations on the AI Core- Parameters:
aiCoreService- The configured connectivity instance to AI Core
-
-
Method Details
-
withDefaultHeaders
Creates a new API instance with additional default headers.- Parameters:
defaultHeaders- Additional headers to include in all requests- Returns:
- A new API instance with the combined headers
-
create
@Nonnull public BckndArgoCDApplicationCreationResponse create(@Nonnull KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Create an applicationCreate an ArgoCD application to synchronise a repository.
200 - The ArgoCD application has been created and will be eventually synchronised with the repository.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
kubesubmitV4ApplicationsCreateRequest- (required) The value for the parameter kubesubmitV4ApplicationsCreateRequestauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationCreationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
create
@Nonnull public BckndArgoCDApplicationCreationResponse create(@Nonnull KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Create an applicationCreate an ArgoCD application to synchronise a repository.
200 - The ArgoCD application has been created and will be eventually synchronised with the repository.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
kubesubmitV4ApplicationsCreateRequest- The value for the parameter kubesubmitV4ApplicationsCreateRequest- Returns:
- BckndArgoCDApplicationCreationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
delete
@Nonnull public BckndArgoCDApplicationDeletionResponse delete(@Nonnull String applicationName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Delete applicationDelete an ArgoCD application
200 - The argoCD application has been deleted successfully.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- (required) Name of the ArgoCD applicationauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationDeletionResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
delete
@Nonnull public BckndArgoCDApplicationDeletionResponse delete(@Nonnull String applicationName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Delete applicationDelete an ArgoCD application
200 - The argoCD application has been deleted successfully.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- Name of the ArgoCD application- Returns:
- BckndArgoCDApplicationDeletionResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
get
@Nonnull public BckndArgoCDApplicationDataResponse get(@Nonnull String applicationName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get ArgoCD applicationRetrieve the ArgoCD application details.
200 - The application has been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- (required) Name of the ArgoCD applicationauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationDataResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
get
@Nonnull public BckndArgoCDApplicationDataResponse get(@Nonnull String applicationName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get ArgoCD applicationRetrieve the ArgoCD application details.
200 - The application has been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- Name of the ArgoCD application- Returns:
- BckndArgoCDApplicationDataResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getAll
@Nonnull public BckndAllArgoCDApplicationData getAll(@Nullable String authorization, @Nullable Integer $top, @Nullable Integer $skip, @Nullable Boolean $count) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Return all applicationsReturn all Argo CD application data objects.
200 - All applications have been found and returned.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.$top- (optional) Number of results to display$skip- (optional) Number of results to be skipped from the ordered list of results$count- (optional) When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default.- Returns:
- BckndAllArgoCDApplicationData
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getAll
@Nonnull public BckndAllArgoCDApplicationData getAll() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionReturn all applicationsReturn all Argo CD application data objects.
200 - All applications have been found and returned.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndAllArgoCDApplicationData
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getStatus
@Nonnull public BckndArgoCDApplicationStatus getStatus(@Nonnull String applicationName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Returns the ArgoCD application statusReturns the ArgoCD application health and sync status.
200 - The application status has been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- (required) Name of the ArgoCD applicationauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationStatus
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getStatus
@Nonnull public BckndArgoCDApplicationStatus getStatus(@Nonnull String applicationName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Returns the ArgoCD application statusReturns the ArgoCD application health and sync status.
200 - The application status has been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- Name of the ArgoCD application- Returns:
- BckndArgoCDApplicationStatus
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
refresh
@Nonnull public BckndArgoCDApplicationRefreshResponse refresh(@Nonnull String applicationName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Makes ArgoDC refresh the specified applicationSchedules a refresh of the specified application that will be picked up by ArgoCD asynchronously
202 - A refresh of the application has been scheduled
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- (required) Name of the ArgoCD applicationauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationRefreshResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
refresh
@Nonnull public BckndArgoCDApplicationRefreshResponse refresh(@Nonnull String applicationName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Makes ArgoDC refresh the specified applicationSchedules a refresh of the specified application that will be picked up by ArgoCD asynchronously
202 - A refresh of the application has been scheduled
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- Name of the ArgoCD application- Returns:
- BckndArgoCDApplicationRefreshResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
update
@Nonnull public BckndArgoCDApplicationModificationResponse update(@Nonnull String applicationName, @Nonnull BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Update the ArgoCD application.Update the referenced ArgoCD application to synchronize the repository.
200 - The ArgoCD application has been created and will be eventually synchronised with the repository.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- (required) Name of the ArgoCD applicationbckndArgoCDApplicationBaseData- (required) The value for the parameter bckndArgoCDApplicationBaseDataauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDApplicationModificationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
update
@Nonnull public BckndArgoCDApplicationModificationResponse update(@Nonnull String applicationName, @Nonnull BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Update the ArgoCD application.Update the referenced ArgoCD application to synchronize the repository.
200 - The ArgoCD application has been created and will be eventually synchronised with the repository.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
applicationName- Name of the ArgoCD applicationbckndArgoCDApplicationBaseData- The value for the parameter bckndArgoCDApplicationBaseData- Returns:
- BckndArgoCDApplicationModificationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-