Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
newtork committed Aug 13, 2024
1 parent ca61b53 commit 0466cc2
Show file tree
Hide file tree
Showing 29 changed files with 519 additions and 524 deletions.
5 changes: 0 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@
<inputSpec>${project.basedir}/src/main/resources/spec/aicore.yaml</inputSpec>
<apiPackage>com.sap.ai.sdk.core.client</apiPackage>
<modelPackage>com.sap.ai.sdk.core.client.model</modelPackage>
<additionalProperties>
<removeOperationIdPrefix>true</removeOperationIdPrefix>
<removeOperationIdPrefixDelimiter>\.</removeOperationIdPrefixDelimiter>
<removeOperationIdPrefixCount>3</removeOperationIdPrefixCount>
</additionalProperties>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/com/sap/ai/sdk/core/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static ApiClient getOrchestrationClient(@Nonnull final String resourceGro
*/
private static String getOrchestrationDeployment(@Nonnull final String resourceGroup)
throws NoSuchElementException {
final var deployments = new DeploymentApi(getClient(getDestination())).query(resourceGroup);
final var deployments = new DeploymentApi(getClient(getDestination())).deploymentQuery(resourceGroup);
Objects.requireNonNull(deployments, "Deployment get request failed");

return deployments.getResources().stream()
Expand Down Expand Up @@ -243,7 +243,7 @@ public static Destination getDestinationForModel(
private static String getDeploymentForModel(
@Nonnull final String modelName, @Nonnull final String resourceGroup)
throws NoSuchElementException {
final var deployments = new DeploymentApi(getClient()).query(resourceGroup);
final var deployments = new DeploymentApi(getClient()).deploymentQuery(resourceGroup);
Objects.requireNonNull(deployments, "Deployment get request failed");

return deployments.getResources().stream()
Expand Down
56 changes: 28 additions & 28 deletions core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public ApplicationApi( @Nonnull final ApiClient apiClient )
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationCreationResponse create( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationCreationResponse kubesubmitV4ApplicationsCreate( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = kubesubmitV4ApplicationsCreateRequest;

// verify the required parameter 'kubesubmitV4ApplicationsCreateRequest' is set
if (kubesubmitV4ApplicationsCreateRequest == null) {
throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4ApplicationsCreateRequest' when calling create");
throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4ApplicationsCreateRequest' when calling kubesubmitV4ApplicationsCreate");
}

final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications").build().toUriString();
Expand Down Expand Up @@ -125,8 +125,8 @@ public BckndArgoCDApplicationCreationResponse create( @Nonnull final KubesubmitV
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationCreationResponse create( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) throws OpenApiRequestException {
return create(kubesubmitV4ApplicationsCreateRequest, null);
public BckndArgoCDApplicationCreationResponse kubesubmitV4ApplicationsCreate( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) throws OpenApiRequestException {
return kubesubmitV4ApplicationsCreate(kubesubmitV4ApplicationsCreateRequest, null);
}

/**
Expand All @@ -144,12 +144,12 @@ public BckndArgoCDApplicationCreationResponse create( @Nonnull final KubesubmitV
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationDeletionResponse delete( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = null;

// verify the required parameter 'applicationName' is set
if (applicationName == null) {
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling delete");
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling kubesubmitV4ApplicationsDelete");
}

// create path and map variables
Expand Down Expand Up @@ -190,8 +190,8 @@ public BckndArgoCDApplicationDeletionResponse delete( @Nonnull final String appl
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationDeletionResponse delete( @Nonnull final String applicationName) throws OpenApiRequestException {
return delete(applicationName, null);
public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @Nonnull final String applicationName) throws OpenApiRequestException {
return kubesubmitV4ApplicationsDelete(applicationName, null);
}

/**
Expand All @@ -209,12 +209,12 @@ public BckndArgoCDApplicationDeletionResponse delete( @Nonnull final String appl
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationData get( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = null;

// verify the required parameter 'applicationName' is set
if (applicationName == null) {
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling get");
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling kubesubmitV4ApplicationsGet");
}

// create path and map variables
Expand Down Expand Up @@ -255,8 +255,8 @@ public BckndArgoCDApplicationData get( @Nonnull final String applicationName, @
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationData get( @Nonnull final String applicationName) throws OpenApiRequestException {
return get(applicationName, null);
public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final String applicationName) throws OpenApiRequestException {
return kubesubmitV4ApplicationsGet(applicationName, null);
}

/**
Expand All @@ -277,7 +277,7 @@ public BckndArgoCDApplicationData get( @Nonnull final String applicationName) th
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndAllArgoCDApplicationData getAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count) throws OpenApiRequestException {
public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count) throws OpenApiRequestException {
final Object localVarPostBody = null;

final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications").build().toUriString();
Expand Down Expand Up @@ -317,8 +317,8 @@ public BckndAllArgoCDApplicationData getAll( @Nullable final String authorizatio
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndAllArgoCDApplicationData getAll() throws OpenApiRequestException {
return getAll(null, null, null, null);
public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll() throws OpenApiRequestException {
return kubesubmitV4ApplicationsGetAll(null, null, null, null);
}

/**
Expand All @@ -336,12 +336,12 @@ public BckndAllArgoCDApplicationData getAll() throws OpenApiRequestException {
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationStatus getStatus( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = null;

// verify the required parameter 'applicationName' is set
if (applicationName == null) {
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling getStatus");
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling kubesubmitV4ApplicationsGetStatus");
}

// create path and map variables
Expand Down Expand Up @@ -382,8 +382,8 @@ public BckndArgoCDApplicationStatus getStatus( @Nonnull final String application
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationStatus getStatus( @Nonnull final String applicationName) throws OpenApiRequestException {
return getStatus(applicationName, null);
public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull final String applicationName) throws OpenApiRequestException {
return kubesubmitV4ApplicationsGetStatus(applicationName, null);
}

/**
Expand All @@ -401,12 +401,12 @@ public BckndArgoCDApplicationStatus getStatus( @Nonnull final String application
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationRefreshResponse refresh( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = null;

// verify the required parameter 'applicationName' is set
if (applicationName == null) {
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling refresh");
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling kubesubmitV4ApplicationsRefresh");
}

// create path and map variables
Expand Down Expand Up @@ -447,8 +447,8 @@ public BckndArgoCDApplicationRefreshResponse refresh( @Nonnull final String appl
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationRefreshResponse refresh( @Nonnull final String applicationName) throws OpenApiRequestException {
return refresh(applicationName, null);
public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @Nonnull final String applicationName) throws OpenApiRequestException {
return kubesubmitV4ApplicationsRefresh(applicationName, null);
}

/**
Expand All @@ -468,17 +468,17 @@ public BckndArgoCDApplicationRefreshResponse refresh( @Nonnull final String appl
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationModificationResponse update( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData, @Nullable final String authorization) throws OpenApiRequestException {
public BckndArgoCDApplicationModificationResponse kubesubmitV4ApplicationsUpdate( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData, @Nullable final String authorization) throws OpenApiRequestException {
final Object localVarPostBody = bckndArgoCDApplicationBaseData;

// verify the required parameter 'applicationName' is set
if (applicationName == null) {
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling update");
throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling kubesubmitV4ApplicationsUpdate");
}

// verify the required parameter 'bckndArgoCDApplicationBaseData' is set
if (bckndArgoCDApplicationBaseData == null) {
throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling update");
throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling kubesubmitV4ApplicationsUpdate");
}

// create path and map variables
Expand Down Expand Up @@ -523,7 +523,7 @@ public BckndArgoCDApplicationModificationResponse update( @Nonnull final String
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public BckndArgoCDApplicationModificationResponse update( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) throws OpenApiRequestException {
return update(applicationName, bckndArgoCDApplicationBaseData, null);
public BckndArgoCDApplicationModificationResponse kubesubmitV4ApplicationsUpdate( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) throws OpenApiRequestException {
return kubesubmitV4ApplicationsUpdate(applicationName, bckndArgoCDApplicationBaseData, null);
}
}
Loading

0 comments on commit 0466cc2

Please sign in to comment.