generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable automatic formatting of generated code (#33)
* Add core * Add orchestration
- Loading branch information
Showing
275 changed files
with
38,058 additions
and
34,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,167 changes: 677 additions & 490 deletions
1,167
core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
760 changes: 438 additions & 322 deletions
760
core/src/main/java/com/sap/ai/sdk/core/client/ArtifactApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
707 changes: 403 additions & 304 deletions
707
core/src/main/java/com/sap/ai/sdk/core/client/ConfigurationApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
1,275 changes: 738 additions & 537 deletions
1,275
core/src/main/java/com/sap/ai/sdk/core/client/DeploymentApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
879 changes: 515 additions & 364 deletions
879
core/src/main/java/com/sap/ai/sdk/core/client/DockerRegistrySecretApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
374 changes: 207 additions & 167 deletions
374
core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
1,286 changes: 743 additions & 543 deletions
1,286
core/src/main/java/com/sap/ai/sdk/core/client/ExecutionApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
876 changes: 502 additions & 374 deletions
876
core/src/main/java/com/sap/ai/sdk/core/client/ExecutionScheduleApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
560 changes: 324 additions & 236 deletions
560
core/src/main/java/com/sap/ai/sdk/core/client/FileApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
217 changes: 118 additions & 99 deletions
217
core/src/main/java/com/sap/ai/sdk/core/client/KpiApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,116 +1,135 @@ | ||
|
||
|
||
package com.sap.ai.sdk.core.client; | ||
|
||
import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; | ||
import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; | ||
import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; | ||
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; | ||
|
||
import com.google.common.annotations.Beta; | ||
import com.sap.ai.sdk.core.client.model.KpiColumnName; | ||
import com.sap.ai.sdk.core.client.model.KpiGet400Response; | ||
import com.sap.ai.sdk.core.client.model.KpiResultSet; | ||
import java.util.Set; | ||
|
||
import java.util.HashMap; | ||
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; | ||
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; | ||
import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; | ||
import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; | ||
import java.util.List; | ||
import java.util.Locale; | ||
import java.util.Map; | ||
|
||
import org.springframework.util.LinkedMultiValueMap; | ||
import org.springframework.util.MultiValueMap; | ||
import org.springframework.web.util.UriComponentsBuilder; | ||
import java.util.Set; | ||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
import org.springframework.core.ParameterizedTypeReference; | ||
import org.springframework.core.io.FileSystemResource; | ||
import org.springframework.http.HttpHeaders; | ||
import org.springframework.http.HttpMethod; | ||
import org.springframework.http.MediaType; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
import com.google.common.annotations.Beta; | ||
|
||
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; | ||
import org.springframework.util.LinkedMultiValueMap; | ||
import org.springframework.util.MultiValueMap; | ||
import org.springframework.web.util.UriComponentsBuilder; | ||
|
||
/** | ||
* AI Core in version 2.33.0. | ||
* | ||
* 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. | ||
* <p>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. | ||
*/ | ||
public class KpiApi extends AbstractOpenApiService { | ||
/** | ||
* Instantiates this API class to invoke operations on the AI Core. | ||
* | ||
* @param httpDestination The destination that API should be used with | ||
*/ | ||
public KpiApi( @Nonnull final Destination httpDestination ) | ||
{ | ||
super(httpDestination); | ||
} | ||
|
||
/** | ||
* Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. | ||
* | ||
* @param apiClient | ||
* ApiClient to invoke the API on | ||
*/ | ||
@Beta | ||
public KpiApi( @Nonnull final ApiClient apiClient ) | ||
{ | ||
super(apiClient); | ||
} | ||
|
||
|
||
/** | ||
* <p>Get KPIs</p> | ||
*<p>Retrieve the number of executions, artifacts, and deployments for each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter. </p> | ||
* <p><b>200</b> - KPIs | ||
* <p><b>400</b> - Invalid request | ||
* <p><b>404</b> - The specified resource was not found | ||
* <p><b>429</b> - Too many requests | ||
* @param $select (optional | ||
Columns to select | ||
* @return KpiResultSet | ||
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API | ||
*/ | ||
@Nonnull | ||
public KpiResultSet kpiGet( @Nullable final Set<KpiColumnName> $select) throws OpenApiRequestException { | ||
final Object localVarPostBody = null; | ||
|
||
final String localVarPath = UriComponentsBuilder.fromPath("/analytics/kpis").build().toUriString(); | ||
|
||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>(); | ||
final HttpHeaders localVarHeaderParams = new HttpHeaders(); | ||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>(); | ||
|
||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "$select", $select)); | ||
|
||
|
||
final String[] localVarAccepts = { | ||
"application/json" | ||
}; | ||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); | ||
final String[] localVarContentTypes = { }; | ||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); | ||
|
||
final String[] localVarAuthNames = new String[] { "Oauth2" }; | ||
|
||
final ParameterizedTypeReference<KpiResultSet> localVarReturnType = new ParameterizedTypeReference<KpiResultSet>() {}; | ||
return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); | ||
} | ||
|
||
/** | ||
* <p>Get KPIs</p> | ||
* <p>Retrieve the number of executions, artifacts, and deployments for each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter. </p> | ||
* <p><b>200</b> - KPIs | ||
* <p><b>400</b> - Invalid request | ||
* <p><b>404</b> - The specified resource was not found | ||
* <p><b>429</b> - Too many requests | ||
* @return KpiResultSet | ||
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API | ||
*/ | ||
@Nonnull | ||
public KpiResultSet kpiGet() throws OpenApiRequestException { | ||
return kpiGet(null); | ||
} | ||
/** | ||
* Instantiates this API class to invoke operations on the AI Core. | ||
* | ||
* @param httpDestination The destination that API should be used with | ||
*/ | ||
public KpiApi(@Nonnull final Destination httpDestination) { | ||
super(httpDestination); | ||
} | ||
|
||
/** | ||
* Instantiates this API class to invoke operations on the AI Core based on a given {@link | ||
* ApiClient}. | ||
* | ||
* @param apiClient ApiClient to invoke the API on | ||
*/ | ||
@Beta | ||
public KpiApi(@Nonnull final ApiClient apiClient) { | ||
super(apiClient); | ||
} | ||
|
||
/** | ||
* Get KPIs | ||
* | ||
* <p>Retrieve the number of executions, artifacts, and deployments for each resource group, | ||
* scenario, and executable. The columns to be returned can be specified in a query parameter. | ||
* | ||
* <p><b>200</b> - KPIs | ||
* | ||
* <p><b>400</b> - Invalid request | ||
* | ||
* <p><b>404</b> - The specified resource was not found | ||
* | ||
* <p><b>429</b> - Too many requests | ||
* | ||
* @param $select (optional Columns to select | ||
* @return KpiResultSet | ||
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API | ||
*/ | ||
@Nonnull | ||
public KpiResultSet kpiGet(@Nullable final Set<KpiColumnName> $select) | ||
throws OpenApiRequestException { | ||
final Object localVarPostBody = null; | ||
|
||
final String localVarPath = | ||
UriComponentsBuilder.fromPath("/analytics/kpis").build().toUriString(); | ||
|
||
final MultiValueMap<String, String> localVarQueryParams = | ||
new LinkedMultiValueMap<String, String>(); | ||
final HttpHeaders localVarHeaderParams = new HttpHeaders(); | ||
final MultiValueMap<String, Object> localVarFormParams = | ||
new LinkedMultiValueMap<String, Object>(); | ||
|
||
localVarQueryParams.putAll( | ||
apiClient.parameterToMultiValueMap( | ||
ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), | ||
"$select", | ||
$select)); | ||
|
||
final String[] localVarAccepts = {"application/json"}; | ||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); | ||
final String[] localVarContentTypes = {}; | ||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); | ||
|
||
final String[] localVarAuthNames = new String[] {"Oauth2"}; | ||
|
||
final ParameterizedTypeReference<KpiResultSet> localVarReturnType = | ||
new ParameterizedTypeReference<KpiResultSet>() {}; | ||
return apiClient.invokeAPI( | ||
localVarPath, | ||
HttpMethod.GET, | ||
localVarQueryParams, | ||
localVarPostBody, | ||
localVarHeaderParams, | ||
localVarFormParams, | ||
localVarAccept, | ||
localVarContentType, | ||
localVarAuthNames, | ||
localVarReturnType); | ||
} | ||
|
||
/** | ||
* Get KPIs | ||
* | ||
* <p>Retrieve the number of executions, artifacts, and deployments for each resource group, | ||
* scenario, and executable. The columns to be returned can be specified in a query parameter. | ||
* | ||
* <p><b>200</b> - KPIs | ||
* | ||
* <p><b>400</b> - Invalid request | ||
* | ||
* <p><b>404</b> - The specified resource was not found | ||
* | ||
* <p><b>429</b> - Too many requests | ||
* | ||
* @return KpiResultSet | ||
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API | ||
*/ | ||
@Nonnull | ||
public KpiResultSet kpiGet() throws OpenApiRequestException { | ||
return kpiGet(null); | ||
} | ||
} |
Oops, something went wrong.