diff --git a/core/pom.xml b/core/pom.xml index 0f419b96..37355c30 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -97,11 +97,6 @@ ${project.basedir}/src/main/resources/spec/aicore.yaml com.sap.ai.sdk.core.client com.sap.ai.sdk.core.client.model - - true - \. - 3 - diff --git a/core/src/main/java/com/sap/ai/sdk/core/Core.java b/core/src/main/java/com/sap/ai/sdk/core/Core.java index 2b3771fd..0ccf5cc5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/Core.java +++ b/core/src/main/java/com/sap/ai/sdk/core/Core.java @@ -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() @@ -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() diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java index 041c6794..69102a74 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ApplicationApi.java @@ -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(); @@ -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); } /** @@ -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 @@ -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); } /** @@ -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 @@ -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); } /** @@ -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(); @@ -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); } /** @@ -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 @@ -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); } /** @@ -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 @@ -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); } /** @@ -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 @@ -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); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ArtifactApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ArtifactApi.java index 03cdfc4d..6082bdc7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ArtifactApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ArtifactApi.java @@ -87,12 +87,12 @@ public ArtifactApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String executionId, @Nullable final String name, @Nullable final String kind, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final List artifactLabelSelector) throws OpenApiRequestException { + public Integer artifactCount( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String executionId, @Nullable final String name, @Nullable final String kind, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final List artifactLabelSelector) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactCount"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts/$count").build().toUriString(); @@ -137,8 +137,8 @@ public Integer count( @Nonnull final String aiResourceGroup, @Nullable final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return count(aiResourceGroup, null, null, null, null, null, null, null); + public Integer artifactCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return artifactCount(aiResourceGroup, null, null, null, null, null, null, null); } /** *

Register artifact

@@ -153,17 +153,17 @@ public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifactCreationResponse create( @Nonnull final String aiResourceGroup, @Nonnull final AiArtifactPostData aiArtifactPostData) throws OpenApiRequestException { + public AiArtifactCreationResponse artifactCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiArtifactPostData aiArtifactPostData) throws OpenApiRequestException { final Object localVarPostBody = aiArtifactPostData; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactCreate"); } // verify the required parameter 'aiArtifactPostData' is set if (aiArtifactPostData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiArtifactPostData' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiArtifactPostData' when calling artifactCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); @@ -206,17 +206,17 @@ public AiArtifactCreationResponse create( @Nonnull final String aiResourceGroup, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifact get( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId, @Nullable final String $expand) throws OpenApiRequestException { + public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId, @Nullable final String $expand) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactGet"); } // verify the required parameter 'artifactId' is set if (artifactId == null) { - throw new OpenApiRequestException("Missing the required parameter 'artifactId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'artifactId' when calling artifactGet"); } // create path and map variables @@ -261,8 +261,8 @@ public AiArtifact get( @Nonnull final String aiResourceGroup, @Nonnull final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifact get( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId) throws OpenApiRequestException { - return get(aiResourceGroup, artifactId, null); + public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId) throws OpenApiRequestException { + return artifactGet(aiResourceGroup, artifactId, null); } /** @@ -296,12 +296,12 @@ public AiArtifact get( @Nonnull final String aiResourceGroup, @Nonnull final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifactList query( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String executionId, @Nullable final String name, @Nullable final String kind, @Nullable final List artifactLabelSelector, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final String $expand) throws OpenApiRequestException { + public AiArtifactList artifactQuery( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String executionId, @Nullable final String name, @Nullable final String kind, @Nullable final List artifactLabelSelector, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final String $expand) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); @@ -349,7 +349,7 @@ public AiArtifactList query( @Nonnull final String aiResourceGroup, @Nullable f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifactList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(aiResourceGroup, null, null, null, null, null, null, null, null, null, null); + public AiArtifactList artifactQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return artifactQuery(aiResourceGroup, null, null, null, null, null, null, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ConfigurationApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ConfigurationApi.java index e628974f..3a5ba88f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ConfigurationApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ConfigurationApi.java @@ -81,12 +81,12 @@ public ConfigurationApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final List executableIds) throws OpenApiRequestException { + public Integer configurationCount( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final List executableIds) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationCount"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations/$count").build().toUriString(); @@ -128,8 +128,8 @@ public Integer count( @Nonnull final String aiResourceGroup, @Nullable final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return count(aiResourceGroup, null, null, null, null); + public Integer configurationCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return configurationCount(aiResourceGroup, null, null, null, null); } /** *

Create configuration

@@ -144,17 +144,17 @@ public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfigurationCreationResponse create( @Nonnull final String aiResourceGroup, @Nonnull final AiConfigurationBaseData aiConfigurationBaseData) throws OpenApiRequestException { + public AiConfigurationCreationResponse configurationCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiConfigurationBaseData aiConfigurationBaseData) throws OpenApiRequestException { final Object localVarPostBody = aiConfigurationBaseData; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationCreate"); } // verify the required parameter 'aiConfigurationBaseData' is set if (aiConfigurationBaseData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiConfigurationBaseData' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiConfigurationBaseData' when calling configurationCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); @@ -197,17 +197,17 @@ public AiConfigurationCreationResponse create( @Nonnull final String aiResourceG * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfiguration get( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId, @Nullable final String $expand) throws OpenApiRequestException { + public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId, @Nullable final String $expand) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationGet"); } // verify the required parameter 'configurationId' is set if (configurationId == null) { - throw new OpenApiRequestException("Missing the required parameter 'configurationId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'configurationId' when calling configurationGet"); } // create path and map variables @@ -252,8 +252,8 @@ public AiConfiguration get( @Nonnull final String aiResourceGroup, @Nonnull fin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfiguration get( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId) throws OpenApiRequestException { - return get(aiResourceGroup, configurationId, null); + public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId) throws OpenApiRequestException { + return configurationGet(aiResourceGroup, configurationId, null); } /** @@ -281,12 +281,12 @@ public AiConfiguration get( @Nonnull final String aiResourceGroup, @Nonnull fin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfigurationList query( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final List executableIds, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final String $expand) throws OpenApiRequestException { + public AiConfigurationList configurationQuery( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final List executableIds, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final String $expand) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); @@ -331,7 +331,7 @@ public AiConfigurationList query( @Nonnull final String aiResourceGroup, @Nulla * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfigurationList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(aiResourceGroup, null, null, null, null, null, null, null); + public AiConfigurationList configurationQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return configurationQuery(aiResourceGroup, null, null, null, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/DeploymentApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/DeploymentApi.java index 2e0bf9b0..7a83b9ff 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/DeploymentApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/DeploymentApi.java @@ -82,17 +82,17 @@ public DeploymentApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentBulkModificationResponse batchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiDeploymentBulkModificationRequest aiDeploymentBulkModificationRequest) throws OpenApiRequestException { + public AiDeploymentBulkModificationResponse deploymentBatchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiDeploymentBulkModificationRequest aiDeploymentBulkModificationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiDeploymentBulkModificationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling batchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentBatchModify"); } // verify the required parameter 'aiDeploymentBulkModificationRequest' is set if (aiDeploymentBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling batchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling deploymentBatchModify"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); @@ -138,12 +138,12 @@ public AiDeploymentBulkModificationResponse batchModify( @Nonnull final String a * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String status) throws OpenApiRequestException { + public Integer deploymentCount( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String status) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentCount"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/$count").build().toUriString(); @@ -185,8 +185,8 @@ public Integer count( @Nonnull final String aiResourceGroup, @Nullable final Li * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return count(aiResourceGroup, null, null, null, null); + public Integer deploymentCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return deploymentCount(aiResourceGroup, null, null, null, null); } /** *

Create deployment

@@ -201,17 +201,17 @@ public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentCreationResponse create( @Nonnull final String aiResourceGroup, @Nonnull final AiDeploymentCreationRequest aiDeploymentCreationRequest) throws OpenApiRequestException { + public AiDeploymentCreationResponse deploymentCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiDeploymentCreationRequest aiDeploymentCreationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiDeploymentCreationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentCreate"); } // verify the required parameter 'aiDeploymentCreationRequest' is set if (aiDeploymentCreationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentCreationRequest' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentCreationRequest' when calling deploymentCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); @@ -252,17 +252,17 @@ public AiDeploymentCreationResponse create( @Nonnull final String aiResourceGrou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentDeletionResponse delete( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId) throws OpenApiRequestException { + public AiDeploymentDeletionResponse deploymentDelete( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentDelete"); } // verify the required parameter 'deploymentId' is set if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentDelete"); } // create path and map variables @@ -306,17 +306,17 @@ public AiDeploymentDeletionResponse delete( @Nonnull final String aiResourceGrou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentResponseWithDetails get( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId, @Nullable final String $select) throws OpenApiRequestException { + public AiDeploymentResponseWithDetails deploymentGet( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId, @Nullable final String $select) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentGet"); } // verify the required parameter 'deploymentId' is set if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentGet"); } // create path and map variables @@ -361,89 +361,8 @@ public AiDeploymentResponseWithDetails get( @Nonnull final String aiResourceGrou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentResponseWithDetails get( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId) throws OpenApiRequestException { - return get(aiResourceGroup, deploymentId, null); - } - - /** - *

Get logs of specific deployment

- *

Retrieve logs of a deployment for getting insight into the deployment results or failures.

- *

200 - The query was processed successfully and logs of the requested deployment will be returned. - *

400 - The request was malformed and could thus not be processed. - *

401 - Lacks valid authentication credentials for the target resource. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param deploymentId (required) - Deployment identifier - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional, default to 1000) - The max number of entries to return. Defaults to 1000. Limited to 5000 max. - * @param start (optional) - The start time for the query as a RFC 3339 datetime format. Defaults to one hour ago. + in timezone need to be encoded to %2B. - * @param end (optional) - The end time for the query as a RFC 3339 datetime format. Defaults to now. + in timezone need to be encoded to %2B. - * @param $order (optional) - Determines the sort order. Supported values are asc or desc. Defaults to asc. Sort order: * `asc` - Ascending, earliest in the order will appear at the top of the list * `desc` - Descending, last in the order will appear at the top of the list - * @return RTALogCommonResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public RTALogCommonResponse getLogs( @Nonnull final String deploymentId, @Nullable final String authorization, @Nullable final Integer $top, @Nullable final OffsetDateTime start, @Nullable final OffsetDateTime end, @Nullable final String $order) throws OpenApiRequestException { - final Object localVarPostBody = null; - - // verify the required parameter 'deploymentId' is set - if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling getLogs"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("deploymentId", deploymentId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}/logs").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "start", start)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "end", end)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$order", $order)); - - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Get logs of specific deployment

- *

Retrieve logs of a deployment for getting insight into the deployment results or failures.

- *

200 - The query was processed successfully and logs of the requested deployment will be returned. - *

400 - The request was malformed and could thus not be processed. - *

401 - Lacks valid authentication credentials for the target resource. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param deploymentId - * Deployment identifier - * @return RTALogCommonResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public RTALogCommonResponse getLogs( @Nonnull final String deploymentId) throws OpenApiRequestException { - return getLogs(deploymentId, null, null, null, null, null); + public AiDeploymentResponseWithDetails deploymentGet( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId) throws OpenApiRequestException { + return deploymentGet(aiResourceGroup, deploymentId, null); } /** *

Update target status or configuration of a deployment

@@ -462,22 +381,22 @@ public RTALogCommonResponse getLogs( @Nonnull final String deploymentId) throws * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentModificationResponse modify( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId, @Nonnull final AiDeploymentModificationRequest aiDeploymentModificationRequest) throws OpenApiRequestException { + public AiDeploymentModificationResponse deploymentModify( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId, @Nonnull final AiDeploymentModificationRequest aiDeploymentModificationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiDeploymentModificationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentModify"); } // verify the required parameter 'deploymentId' is set if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentModify"); } // verify the required parameter 'aiDeploymentModificationRequest' is set if (aiDeploymentModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentModificationRequest' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentModificationRequest' when calling deploymentModify"); } // create path and map variables @@ -532,12 +451,12 @@ public AiDeploymentModificationResponse modify( @Nonnull final String aiResource * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentList query( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $select) throws OpenApiRequestException { + public AiDeploymentList deploymentQuery( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $select) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); @@ -582,7 +501,88 @@ public AiDeploymentList query( @Nonnull final String aiResourceGroup, @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(aiResourceGroup, null, null, null, null, null, null, null); + public AiDeploymentList deploymentQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return deploymentQuery(aiResourceGroup, null, null, null, null, null, null, null); + } + + /** + *

Get logs of specific deployment

+ *

Retrieve logs of a deployment for getting insight into the deployment results or failures.

+ *

200 - The query was processed successfully and logs of the requested deployment will be returned. + *

400 - The request was malformed and could thus not be processed. + *

401 - Lacks valid authentication credentials for the target resource. + *

404 - The specified resource was not found + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * @param deploymentId (required) + Deployment identifier + * @param authorization (optional) + Authorization bearer token containing a JWT token. + * @param $top (optional, default to 1000) + The max number of entries to return. Defaults to 1000. Limited to 5000 max. + * @param start (optional) + The start time for the query as a RFC 3339 datetime format. Defaults to one hour ago. + in timezone need to be encoded to %2B. + * @param end (optional) + The end time for the query as a RFC 3339 datetime format. Defaults to now. + in timezone need to be encoded to %2B. + * @param $order (optional) + Determines the sort order. Supported values are asc or desc. Defaults to asc. Sort order: * `asc` - Ascending, earliest in the order will appear at the top of the list * `desc` - Descending, last in the order will appear at the top of the list + * @return RTALogCommonResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public RTALogCommonResponse kubesubmitV4DeploymentsGetLogs( @Nonnull final String deploymentId, @Nullable final String authorization, @Nullable final Integer $top, @Nullable final OffsetDateTime start, @Nullable final OffsetDateTime end, @Nullable final String $order) throws OpenApiRequestException { + final Object localVarPostBody = null; + + // verify the required parameter 'deploymentId' is set + if (deploymentId == null) { + throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling kubesubmitV4DeploymentsGetLogs"); + } + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("deploymentId", deploymentId); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}/logs").buildAndExpand(localVarPathParams).toUriString(); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "start", start)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "end", end)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$order", $order)); + + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] { "Oauth2" }; + + final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + *

Get logs of specific deployment

+ *

Retrieve logs of a deployment for getting insight into the deployment results or failures.

+ *

200 - The query was processed successfully and logs of the requested deployment will be returned. + *

400 - The request was malformed and could thus not be processed. + *

401 - Lacks valid authentication credentials for the target resource. + *

404 - The specified resource was not found + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * @param deploymentId + * Deployment identifier + * @return RTALogCommonResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public RTALogCommonResponse kubesubmitV4DeploymentsGetLogs( @Nonnull final String deploymentId) throws OpenApiRequestException { + return kubesubmitV4DeploymentsGetLogs(deploymentId, null, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/DockerRegistrySecretApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/DockerRegistrySecretApi.java index 4ef84c75..c3c2b577 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/DockerRegistrySecretApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/DockerRegistrySecretApi.java @@ -79,12 +79,12 @@ public DockerRegistrySecretApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretCreationResponse create( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretCreationResponse kubesubmitV4DockerRegistrySecretsCreate( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = kubesubmitV4DockerRegistrySecretsCreateRequest; // verify the required parameter 'kubesubmitV4DockerRegistrySecretsCreateRequest' is set if (kubesubmitV4DockerRegistrySecretsCreateRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4DockerRegistrySecretsCreateRequest' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4DockerRegistrySecretsCreateRequest' when calling kubesubmitV4DockerRegistrySecretsCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().toUriString(); @@ -123,8 +123,8 @@ public BcknddockerRegistrySecretCreationResponse create( @Nonnull final Kubesubm * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretCreationResponse create( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest) throws OpenApiRequestException { - return create(kubesubmitV4DockerRegistrySecretsCreateRequest, null); + public BcknddockerRegistrySecretCreationResponse kubesubmitV4DockerRegistrySecretsCreate( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest) throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsCreate(kubesubmitV4DockerRegistrySecretsCreateRequest, null); } /** @@ -142,12 +142,12 @@ public BcknddockerRegistrySecretCreationResponse create( @Nonnull final Kubesubm * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretDeletionResponse delete( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecretsDelete( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'dockerRegistryName' is set if (dockerRegistryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling kubesubmitV4DockerRegistrySecretsDelete"); } // create path and map variables @@ -188,8 +188,8 @@ public BcknddockerRegistrySecretDeletionResponse delete( @Nonnull final String d * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretDeletionResponse delete( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { - return delete(dockerRegistryName, null); + public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecretsDelete( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsDelete(dockerRegistryName, null); } /** @@ -207,12 +207,12 @@ public BcknddockerRegistrySecretDeletionResponse delete( @Nonnull final String d * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatus get( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'dockerRegistryName' is set if (dockerRegistryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling kubesubmitV4DockerRegistrySecretsGet"); } // create path and map variables @@ -253,8 +253,8 @@ public BcknddockerRegistrySecretStatus get( @Nonnull final String dockerRegistry * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatus get( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { - return get(dockerRegistryName, null); + public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsGet(dockerRegistryName, null); } /** @@ -274,17 +274,17 @@ public BcknddockerRegistrySecretStatus get( @Nonnull final String dockerRegistry * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretModificationResponse patch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistrySecretsPatch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bcknddockerRegistrySecretWithSensitiveDataRequest; // verify the required parameter 'dockerRegistryName' is set if (dockerRegistryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling kubesubmitV4DockerRegistrySecretsPatch"); } // verify the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' is set if (bcknddockerRegistrySecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling kubesubmitV4DockerRegistrySecretsPatch"); } // create path and map variables @@ -329,8 +329,8 @@ public BcknddockerRegistrySecretModificationResponse patch( @Nonnull final Strin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretModificationResponse patch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest) throws OpenApiRequestException { - return patch(dockerRegistryName, bcknddockerRegistrySecretWithSensitiveDataRequest, null); + public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistrySecretsPatch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest) throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsPatch(dockerRegistryName, bcknddockerRegistrySecretWithSensitiveDataRequest, null); } /** @@ -351,7 +351,7 @@ public BcknddockerRegistrySecretModificationResponse patch( @Nonnull final Strin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatusResponse query( @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery( @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().toUriString(); @@ -391,7 +391,7 @@ public BcknddockerRegistrySecretStatusResponse query( @Nullable final Integer $t * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatusResponse query() throws OpenApiRequestException { - return query(null, null, null, null); + public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery() throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsQuery(null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java index 9bf4a199..5a9629f7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java @@ -75,22 +75,22 @@ public ExecutableApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutable get( @Nonnull final String scenarioId, @Nonnull final String executableId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiExecutable executableGet( @Nonnull final String scenarioId, @Nonnull final String executableId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling executableGet"); } // verify the required parameter 'executableId' is set if (executableId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executableId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'executableId' when calling executableGet"); } // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableGet"); } // create path and map variables @@ -134,17 +134,17 @@ public AiExecutable get( @Nonnull final String scenarioId, @Nonnull final Strin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutableList query( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup, @Nullable final String versionId) throws OpenApiRequestException { + public AiExecutableList executableQuery( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup, @Nullable final String versionId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling executableQuery"); } // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableQuery"); } // create path and map variables @@ -188,7 +188,7 @@ public AiExecutableList query( @Nonnull final String scenarioId, @Nonnull final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutableList query( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(scenarioId, aiResourceGroup, null); + public AiExecutableList executableQuery( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return executableQuery(scenarioId, aiResourceGroup, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionApi.java index 77de440d..13fa2e93 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionApi.java @@ -82,17 +82,17 @@ public ExecutionApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionBulkModificationResponse batchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionBulkModificationRequest aiExecutionBulkModificationRequest) throws OpenApiRequestException { + public AiExecutionBulkModificationResponse executionBatchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionBulkModificationRequest aiExecutionBulkModificationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiExecutionBulkModificationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling batchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionBatchModify"); } // verify the required parameter 'aiExecutionBulkModificationRequest' is set if (aiExecutionBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionBulkModificationRequest' when calling batchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionBulkModificationRequest' when calling executionBatchModify"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); @@ -140,12 +140,12 @@ public AiExecutionBulkModificationResponse batchModify( @Nonnull final String ai * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String executionScheduleId, @Nullable final String status) throws OpenApiRequestException { + public Integer executionCount( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String executionScheduleId, @Nullable final String status) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionCount"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/$count").build().toUriString(); @@ -188,8 +188,8 @@ public Integer count( @Nonnull final String aiResourceGroup, @Nullable final Li * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return count(aiResourceGroup, null, null, null, null, null); + public Integer executionCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return executionCount(aiResourceGroup, null, null, null, null, null); } /** *

Create execution

@@ -204,17 +204,17 @@ public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionCreationResponse create( @Nonnull final String aiResourceGroup, @Nonnull final AiEnactmentCreationRequest aiEnactmentCreationRequest) throws OpenApiRequestException { + public AiExecutionCreationResponse executionCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiEnactmentCreationRequest aiEnactmentCreationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiEnactmentCreationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionCreate"); } // verify the required parameter 'aiEnactmentCreationRequest' is set if (aiEnactmentCreationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiEnactmentCreationRequest' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiEnactmentCreationRequest' when calling executionCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); @@ -255,17 +255,17 @@ public AiExecutionCreationResponse create( @Nonnull final String aiResourceGroup * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionDeletionResponse delete( @Nonnull final String aiResourceGroup, @Nonnull final String executionId) throws OpenApiRequestException { + public AiExecutionDeletionResponse executionDelete( @Nonnull final String aiResourceGroup, @Nonnull final String executionId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionDelete"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionDelete"); } // create path and map variables @@ -309,17 +309,17 @@ public AiExecutionDeletionResponse delete( @Nonnull final String aiResourceGroup * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionResponseWithDetails get( @Nonnull final String aiResourceGroup, @Nonnull final String executionId, @Nullable final String $select) throws OpenApiRequestException { + public AiExecutionResponseWithDetails executionGet( @Nonnull final String aiResourceGroup, @Nonnull final String executionId, @Nullable final String $select) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionGet"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionGet"); } // create path and map variables @@ -364,89 +364,8 @@ public AiExecutionResponseWithDetails get( @Nonnull final String aiResourceGroup * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionResponseWithDetails get( @Nonnull final String aiResourceGroup, @Nonnull final String executionId) throws OpenApiRequestException { - return get(aiResourceGroup, executionId, null); - } - - /** - *

Get logs of specific execution

- *

Retrieve logs of an execution for getting insight into the execution results or failures.

- *

200 - The query was processed successfully and logs of the requested execution will be returned. - *

400 - The request was malformed and could thus not be processed. - *

401 - Lacks valid authentication credentials for the target resource. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param executionId (required) - Execution identifier - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional, default to 1000) - The max number of entries to return. Defaults to 1000. Limited to 5000 max. - * @param start (optional) - The start time for the query as a RFC 3339 datetime format. Defaults to one hour ago. + in timezone need to be encoded to %2B. - * @param end (optional) - The end time for the query as a RFC 3339 datetime format. Defaults to now. + in timezone need to be encoded to %2B. - * @param $order (optional) - Determines the sort order. Supported values are asc or desc. Defaults to asc. Sort order: * `asc` - Ascending, earliest in the order will appear at the top of the list * `desc` - Descending, last in the order will appear at the top of the list - * @return RTALogCommonResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public RTALogCommonResponse getLogs( @Nonnull final String executionId, @Nullable final String authorization, @Nullable final Integer $top, @Nullable final OffsetDateTime start, @Nullable final OffsetDateTime end, @Nullable final String $order) throws OpenApiRequestException { - final Object localVarPostBody = null; - - // verify the required parameter 'executionId' is set - if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling getLogs"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionId", executionId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/{executionId}/logs").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "start", start)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "end", end)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$order", $order)); - - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Get logs of specific execution

- *

Retrieve logs of an execution for getting insight into the execution results or failures.

- *

200 - The query was processed successfully and logs of the requested execution will be returned. - *

400 - The request was malformed and could thus not be processed. - *

401 - Lacks valid authentication credentials for the target resource. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param executionId - * Execution identifier - * @return RTALogCommonResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public RTALogCommonResponse getLogs( @Nonnull final String executionId) throws OpenApiRequestException { - return getLogs(executionId, null, null, null, null, null); + public AiExecutionResponseWithDetails executionGet( @Nonnull final String aiResourceGroup, @Nonnull final String executionId) throws OpenApiRequestException { + return executionGet(aiResourceGroup, executionId, null); } /** *

Update target status of an execution

@@ -465,22 +384,22 @@ public RTALogCommonResponse getLogs( @Nonnull final String executionId) throws O * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionModificationResponse modify( @Nonnull final String aiResourceGroup, @Nonnull final String executionId, @Nonnull final AiExecutionModificationRequest aiExecutionModificationRequest) throws OpenApiRequestException { + public AiExecutionModificationResponse executionModify( @Nonnull final String aiResourceGroup, @Nonnull final String executionId, @Nonnull final AiExecutionModificationRequest aiExecutionModificationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiExecutionModificationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionModify"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionModify"); } // verify the required parameter 'aiExecutionModificationRequest' is set if (aiExecutionModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionModificationRequest' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionModificationRequest' when calling executionModify"); } // create path and map variables @@ -537,12 +456,12 @@ public AiExecutionModificationResponse modify( @Nonnull final String aiResourceG * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionList query( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String executionScheduleId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $select) throws OpenApiRequestException { + public AiExecutionList executionQuery( @Nonnull final String aiResourceGroup, @Nullable final List executableIds, @Nullable final String configurationId, @Nullable final String scenarioId, @Nullable final String executionScheduleId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final String $select) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); @@ -588,7 +507,88 @@ public AiExecutionList query( @Nonnull final String aiResourceGroup, @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(aiResourceGroup, null, null, null, null, null, null, null, null); + public AiExecutionList executionQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return executionQuery(aiResourceGroup, null, null, null, null, null, null, null, null); + } + + /** + *

Get logs of specific execution

+ *

Retrieve logs of an execution for getting insight into the execution results or failures.

+ *

200 - The query was processed successfully and logs of the requested execution will be returned. + *

400 - The request was malformed and could thus not be processed. + *

401 - Lacks valid authentication credentials for the target resource. + *

404 - The specified resource was not found + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * @param executionId (required) + Execution identifier + * @param authorization (optional) + Authorization bearer token containing a JWT token. + * @param $top (optional, default to 1000) + The max number of entries to return. Defaults to 1000. Limited to 5000 max. + * @param start (optional) + The start time for the query as a RFC 3339 datetime format. Defaults to one hour ago. + in timezone need to be encoded to %2B. + * @param end (optional) + The end time for the query as a RFC 3339 datetime format. Defaults to now. + in timezone need to be encoded to %2B. + * @param $order (optional) + Determines the sort order. Supported values are asc or desc. Defaults to asc. Sort order: * `asc` - Ascending, earliest in the order will appear at the top of the list * `desc` - Descending, last in the order will appear at the top of the list + * @return RTALogCommonResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public RTALogCommonResponse kubesubmitV4ExecutionsGetLogs( @Nonnull final String executionId, @Nullable final String authorization, @Nullable final Integer $top, @Nullable final OffsetDateTime start, @Nullable final OffsetDateTime end, @Nullable final String $order) throws OpenApiRequestException { + final Object localVarPostBody = null; + + // verify the required parameter 'executionId' is set + if (executionId == null) { + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling kubesubmitV4ExecutionsGetLogs"); + } + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionId", executionId); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/{executionId}/logs").buildAndExpand(localVarPathParams).toUriString(); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "start", start)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "end", end)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$order", $order)); + + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] { "Oauth2" }; + + final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + + /** + *

Get logs of specific execution

+ *

Retrieve logs of an execution for getting insight into the execution results or failures.

+ *

200 - The query was processed successfully and logs of the requested execution will be returned. + *

400 - The request was malformed and could thus not be processed. + *

401 - Lacks valid authentication credentials for the target resource. + *

404 - The specified resource was not found + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * @param executionId + * Execution identifier + * @return RTALogCommonResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public RTALogCommonResponse kubesubmitV4ExecutionsGetLogs( @Nonnull final String executionId) throws OpenApiRequestException { + return kubesubmitV4ExecutionsGetLogs(executionId, null, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionScheduleApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionScheduleApi.java index 6603981e..e518638b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionScheduleApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutionScheduleApi.java @@ -80,12 +80,12 @@ public ExecutionScheduleApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup, @Nullable final String configurationId, @Nullable final String status) throws OpenApiRequestException { + public Integer executionScheduleCount( @Nonnull final String aiResourceGroup, @Nullable final String configurationId, @Nullable final String status) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleCount"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/$count").build().toUriString(); @@ -125,8 +125,8 @@ public Integer count( @Nonnull final String aiResourceGroup, @Nullable final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return count(aiResourceGroup, null, null); + public Integer executionScheduleCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return executionScheduleCount(aiResourceGroup, null, null); } /** *

Create execution schedule

@@ -141,17 +141,17 @@ public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleCreationResponse create( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionScheduleCreationData aiExecutionScheduleCreationData) throws OpenApiRequestException { + public AiExecutionScheduleCreationResponse executionScheduleCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionScheduleCreationData aiExecutionScheduleCreationData) throws OpenApiRequestException { final Object localVarPostBody = aiExecutionScheduleCreationData; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleCreate"); } // verify the required parameter 'aiExecutionScheduleCreationData' is set if (aiExecutionScheduleCreationData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleCreationData' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleCreationData' when calling executionScheduleCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); @@ -191,17 +191,17 @@ public AiExecutionScheduleCreationResponse create( @Nonnull final String aiResou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleDeletionResponse delete( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { + public AiExecutionScheduleDeletionResponse executionScheduleDelete( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleDelete"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleDelete"); } // create path and map variables @@ -242,17 +242,17 @@ public AiExecutionScheduleDeletionResponse delete( @Nonnull final String aiResou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionSchedule get( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { + public AiExecutionSchedule executionScheduleGet( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleGet"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleGet"); } // create path and map variables @@ -295,22 +295,22 @@ public AiExecutionSchedule get( @Nonnull final String aiResourceGroup, @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleModificationResponse modify( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId, @Nonnull final AiExecutionScheduleModificationRequest aiExecutionScheduleModificationRequest) throws OpenApiRequestException { + public AiExecutionScheduleModificationResponse executionScheduleModify( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId, @Nonnull final AiExecutionScheduleModificationRequest aiExecutionScheduleModificationRequest) throws OpenApiRequestException { final Object localVarPostBody = aiExecutionScheduleModificationRequest; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleModify"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleModify"); } // verify the required parameter 'aiExecutionScheduleModificationRequest' is set if (aiExecutionScheduleModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling modify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling executionScheduleModify"); } // create path and map variables @@ -359,12 +359,12 @@ public AiExecutionScheduleModificationResponse modify( @Nonnull final String aiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleList query( @Nonnull final String aiResourceGroup, @Nullable final String configurationId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip) throws OpenApiRequestException { + public AiExecutionScheduleList executionScheduleQuery( @Nonnull final String aiResourceGroup, @Nullable final String configurationId, @Nullable final String status, @Nullable final Integer $top, @Nullable final Integer $skip) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); @@ -406,7 +406,7 @@ public AiExecutionScheduleList query( @Nonnull final String aiResourceGroup, @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return query(aiResourceGroup, null, null, null, null); + public AiExecutionScheduleList executionScheduleQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return executionScheduleQuery(aiResourceGroup, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/FileApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/FileApi.java index 64aed5b5..b1e17d3c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/FileApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/FileApi.java @@ -74,12 +74,12 @@ public FileApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse delete( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public OpenApiResponse fileDelete( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'path' is set if (path == null) { - throw new OpenApiRequestException("Missing the required parameter 'path' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling fileDelete"); } // create path and map variables @@ -120,8 +120,8 @@ public OpenApiResponse delete( @Nonnull final String path, @Nullable final Stri * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse delete( @Nonnull final String path) throws OpenApiRequestException { - return delete(path, null); + public OpenApiResponse fileDelete( @Nonnull final String path) throws OpenApiRequestException { + return fileDelete(path, null); } /** @@ -138,12 +138,12 @@ public OpenApiResponse delete( @Nonnull final String path) throws OpenApiRequest * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public File download( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public File fileDownload( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'path' is set if (path == null) { - throw new OpenApiRequestException("Missing the required parameter 'path' when calling download"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling fileDownload"); } // create path and map variables @@ -183,8 +183,8 @@ public File download( @Nonnull final String path, @Nullable final String aiReso * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public File download( @Nonnull final String path) throws OpenApiRequestException { - return download(path, null); + public File fileDownload( @Nonnull final String path) throws OpenApiRequestException { + return fileDownload(path, null); } /** @@ -206,12 +206,12 @@ public File download( @Nonnull final String path) throws OpenApiRequestException * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DSetFileCreationResponse upload( @Nonnull final String path, @Nullable final String aiResourceGroup, @Nullable final Boolean overwrite, @Nullable final String body) throws OpenApiRequestException { + public DSetFileCreationResponse fileUpload( @Nonnull final String path, @Nullable final String aiResourceGroup, @Nullable final Boolean overwrite, @Nullable final String body) throws OpenApiRequestException { final Object localVarPostBody = body; // verify the required parameter 'path' is set if (path == null) { - throw new OpenApiRequestException("Missing the required parameter 'path' when calling upload"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling fileUpload"); } // create path and map variables @@ -255,7 +255,7 @@ public DSetFileCreationResponse upload( @Nonnull final String path, @Nullable f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DSetFileCreationResponse upload( @Nonnull final String path) throws OpenApiRequestException { - return upload(path, null, null, null); + public DSetFileCreationResponse fileUpload( @Nonnull final String path) throws OpenApiRequestException { + return fileUpload(path, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/KpiApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/KpiApi.java index c5f4bdf6..febf8646 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/KpiApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/KpiApi.java @@ -74,7 +74,7 @@ public KpiApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public KpiResultSet get( @Nullable final Set $select) throws OpenApiRequestException { + public KpiResultSet kpiGet( @Nullable final Set $select) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/analytics/kpis").build().toUriString(); @@ -110,7 +110,7 @@ public KpiResultSet get( @Nullable final Set $select) throws Open * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public KpiResultSet get() throws OpenApiRequestException { - return get(null); + public KpiResultSet kpiGet() throws OpenApiRequestException { + return kpiGet(null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/MetaApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/MetaApi.java index 012c2b67..f2a1d356 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/MetaApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/MetaApi.java @@ -67,7 +67,7 @@ public MetaApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public MetaCapabilities get() throws OpenApiRequestException { + public MetaCapabilities metaGet() throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/lm/meta").build().toUriString(); diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/MetricsApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/MetricsApi.java index 89e05e99..89c2617f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/MetricsApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/MetricsApi.java @@ -74,17 +74,17 @@ public MetricsApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public TrckDeleteMetricsResponse delete( @Nonnull final String aiResourceGroup, @Nonnull final TrckExecutionId executionId) throws OpenApiRequestException { + public TrckDeleteMetricsResponse metricsDelete( @Nonnull final String aiResourceGroup, @Nonnull final TrckExecutionId executionId) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling metricsDelete"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling metricsDelete"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); @@ -129,12 +129,12 @@ executionIds parameter allows filtering of metric resource using single or multi * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public TrckGetMetricResourceList find( @Nonnull final String aiResourceGroup, @Nullable final String $filter, @Nullable final List executionIds, @Nullable final List $select) throws OpenApiRequestException { + public TrckGetMetricResourceList metricsFind( @Nonnull final String aiResourceGroup, @Nullable final String $filter, @Nullable final List executionIds, @Nullable final List $select) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling find"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling metricsFind"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); @@ -176,8 +176,8 @@ public TrckGetMetricResourceList find( @Nonnull final String aiResourceGroup, @ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public TrckGetMetricResourceList find( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return find(aiResourceGroup, null, null, null); + public TrckGetMetricResourceList metricsFind( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return metricsFind(aiResourceGroup, null, null, null); } /** *

Create or update metrics, tags, or labels

@@ -193,17 +193,17 @@ public TrckGetMetricResourceList find( @Nonnull final String aiResourceGroup) th * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse patch( @Nonnull final String aiResourceGroup, @Nonnull final TrckMetricResource trckMetricResource) throws OpenApiRequestException { + public OpenApiResponse metricsPatch( @Nonnull final String aiResourceGroup, @Nonnull final TrckMetricResource trckMetricResource) throws OpenApiRequestException { final Object localVarPostBody = trckMetricResource; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling metricsPatch"); } // verify the required parameter 'trckMetricResource' is set if (trckMetricResource == null) { - throw new OpenApiRequestException("Missing the required parameter 'trckMetricResource' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'trckMetricResource' when calling metricsPatch"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ObjectStoreSecretApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ObjectStoreSecretApi.java index 4a27ac0b..c35b222e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ObjectStoreSecretApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ObjectStoreSecretApi.java @@ -81,12 +81,12 @@ public ObjectStoreSecretApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretCreationResponse create( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretCreationResponse kubesubmitV4ObjectStoreSecretsCreate( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = bckndobjectStoreSecretWithSensitiveDataRequestForPostCall; // verify the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequestForPostCall' is set if (bckndobjectStoreSecretWithSensitiveDataRequestForPostCall == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequestForPostCall' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequestForPostCall' when calling kubesubmitV4ObjectStoreSecretsCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); @@ -127,8 +127,8 @@ public BckndobjectStoreSecretCreationResponse create( @Nonnull final Bckndobject * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretCreationResponse create( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall) throws OpenApiRequestException { - return create(bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, null, null); + public BckndobjectStoreSecretCreationResponse kubesubmitV4ObjectStoreSecretsCreate( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall) throws OpenApiRequestException { + return kubesubmitV4ObjectStoreSecretsCreate(bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, null, null); } /** @@ -148,12 +148,12 @@ public BckndobjectStoreSecretCreationResponse create( @Nonnull final Bckndobject * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretDeletionResponse delete( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDelete( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'objectStoreName' is set if (objectStoreName == null) { - throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling kubesubmitV4ObjectStoreSecretsDelete"); } // create path and map variables @@ -196,8 +196,8 @@ public BckndobjectStoreSecretDeletionResponse delete( @Nonnull final String obje * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretDeletionResponse delete( @Nonnull final String objectStoreName) throws OpenApiRequestException { - return delete(objectStoreName, null, null); + public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDelete( @Nonnull final String objectStoreName) throws OpenApiRequestException { + return kubesubmitV4ObjectStoreSecretsDelete(objectStoreName, null, null); } /** @@ -217,12 +217,12 @@ public BckndobjectStoreSecretDeletionResponse delete( @Nonnull final String obje * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatus get( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'objectStoreName' is set if (objectStoreName == null) { - throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling kubesubmitV4ObjectStoreSecretsGet"); } // create path and map variables @@ -265,8 +265,8 @@ public BckndobjectStoreSecretStatus get( @Nonnull final String objectStoreName, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatus get( @Nonnull final String objectStoreName) throws OpenApiRequestException { - return get(objectStoreName, null, null); + public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull final String objectStoreName) throws OpenApiRequestException { + return kubesubmitV4ObjectStoreSecretsGet(objectStoreName, null, null); } /** @@ -288,17 +288,17 @@ public BckndobjectStoreSecretStatus get( @Nonnull final String objectStoreName) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretModificationResponse patch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecretsPatch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = bckndobjectStoreSecretWithSensitiveDataRequest; // verify the required parameter 'objectStoreName' is set if (objectStoreName == null) { - throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling kubesubmitV4ObjectStoreSecretsPatch"); } // verify the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' is set if (bckndobjectStoreSecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling kubesubmitV4ObjectStoreSecretsPatch"); } // create path and map variables @@ -345,8 +345,8 @@ public BckndobjectStoreSecretModificationResponse patch( @Nonnull final String o * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretModificationResponse patch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest) throws OpenApiRequestException { - return patch(objectStoreName, bckndobjectStoreSecretWithSensitiveDataRequest, null, null); + public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecretsPatch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest) throws OpenApiRequestException { + return kubesubmitV4ObjectStoreSecretsPatch(objectStoreName, bckndobjectStoreSecretWithSensitiveDataRequest, null, null); } /** @@ -369,7 +369,7 @@ public BckndobjectStoreSecretModificationResponse patch( @Nonnull final String o * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatusResponse query( @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretStatusResponse kubesubmitV4ObjectStoreSecretsQuery( @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); @@ -411,7 +411,7 @@ public BckndobjectStoreSecretStatusResponse query( @Nullable final Integer $top, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatusResponse query() throws OpenApiRequestException { - return query(null, null, null, null, null); + public BckndobjectStoreSecretStatusResponse kubesubmitV4ObjectStoreSecretsQuery() throws OpenApiRequestException { + return kubesubmitV4ObjectStoreSecretsQuery(null, null, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/RepositoryApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/RepositoryApi.java index 64f004b2..09d68563 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/RepositoryApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/RepositoryApi.java @@ -80,12 +80,12 @@ public RepositoryApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryCreationResponse create( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryCreationResponse kubesubmitV4RepositoriesCreate( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bckndArgoCDRepositoryData; // verify the required parameter 'bckndArgoCDRepositoryData' is set if (bckndArgoCDRepositoryData == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryData' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryData' when calling kubesubmitV4RepositoriesCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories").build().toUriString(); @@ -125,8 +125,8 @@ public BckndArgoCDRepositoryCreationResponse create( @Nonnull final BckndArgoCDR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryCreationResponse create( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData) throws OpenApiRequestException { - return create(bckndArgoCDRepositoryData, null); + public BckndArgoCDRepositoryCreationResponse kubesubmitV4RepositoriesCreate( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData) throws OpenApiRequestException { + return kubesubmitV4RepositoriesCreate(bckndArgoCDRepositoryData, null); } /** @@ -144,12 +144,12 @@ public BckndArgoCDRepositoryCreationResponse create( @Nonnull final BckndArgoCDR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDeletionResponse delete( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'repositoryName' is set if (repositoryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling kubesubmitV4RepositoriesDelete"); } // create path and map variables @@ -190,8 +190,8 @@ public BckndArgoCDRepositoryDeletionResponse delete( @Nonnull final String repos * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDeletionResponse delete( @Nonnull final String repositoryName) throws OpenApiRequestException { - return delete(repositoryName, null); + public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @Nonnull final String repositoryName) throws OpenApiRequestException { + return kubesubmitV4RepositoriesDelete(repositoryName, null); } /** @@ -209,12 +209,12 @@ public BckndArgoCDRepositoryDeletionResponse delete( @Nonnull final String repos * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDetails get( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'repositoryName' is set if (repositoryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling kubesubmitV4RepositoriesGet"); } // create path and map variables @@ -255,8 +255,8 @@ public BckndArgoCDRepositoryDetails get( @Nonnull final String repositoryName, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDetails get( @Nonnull final String repositoryName) throws OpenApiRequestException { - return get(repositoryName, null); + public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final String repositoryName) throws OpenApiRequestException { + return kubesubmitV4RepositoriesGet(repositoryName, null); } /** @@ -277,7 +277,7 @@ public BckndArgoCDRepositoryDetails get( @Nonnull final String repositoryName) t * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDataResponse getAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count) throws OpenApiRequestException { + public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll( @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/repositories").build().toUriString(); @@ -317,8 +317,8 @@ public BckndArgoCDRepositoryDataResponse getAll( @Nullable final String authoriz * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDataResponse getAll() throws OpenApiRequestException { - return getAll(null, null, null, null); + public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll() throws OpenApiRequestException { + return kubesubmitV4RepositoriesGetAll(null, null, null, null); } /** @@ -338,17 +338,17 @@ public BckndArgoCDRepositoryDataResponse getAll() throws OpenApiRequestException * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryModificationResponse update( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryModificationResponse kubesubmitV4RepositoriesUpdate( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bckndArgoCDRepositoryCredentials; // verify the required parameter 'repositoryName' is set if (repositoryName == null) { - throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling update"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling kubesubmitV4RepositoriesUpdate"); } // verify the required parameter 'bckndArgoCDRepositoryCredentials' is set if (bckndArgoCDRepositoryCredentials == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling update"); + throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling kubesubmitV4RepositoriesUpdate"); } // create path and map variables @@ -393,7 +393,7 @@ public BckndArgoCDRepositoryModificationResponse update( @Nonnull final String r * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryModificationResponse update( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) throws OpenApiRequestException { - return update(repositoryName, bckndArgoCDRepositoryCredentials, null); + public BckndArgoCDRepositoryModificationResponse kubesubmitV4RepositoriesUpdate( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) throws OpenApiRequestException { + return kubesubmitV4RepositoriesUpdate(repositoryName, bckndArgoCDRepositoryCredentials, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceApi.java index 5939efee..c4b72048 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceApi.java @@ -73,7 +73,7 @@ public ResourceApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGetResponse get( @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGetResponse kubesubmitV4ResourcesGet( @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); @@ -108,8 +108,8 @@ public BckndResourceGetResponse get( @Nullable final String authorization) throw * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGetResponse get() throws OpenApiRequestException { - return get(null); + public BckndResourceGetResponse kubesubmitV4ResourcesGet() throws OpenApiRequestException { + return kubesubmitV4ResourcesGet(null); } /** @@ -126,12 +126,12 @@ public BckndResourceGetResponse get() throws OpenApiRequestException { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourcePatchResponse patch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourcePatchResponse kubesubmitV4ResourcesPatch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bckndResourcePatchBody; // verify the required parameter 'bckndResourcePatchBody' is set if (bckndResourcePatchBody == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndResourcePatchBody' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourcePatchBody' when calling kubesubmitV4ResourcesPatch"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); @@ -170,7 +170,7 @@ public BckndResourcePatchResponse patch( @Nonnull final BckndResourcePatchBody b * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourcePatchResponse patch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody) throws OpenApiRequestException { - return patch(bckndResourcePatchBody, null); + public BckndResourcePatchResponse kubesubmitV4ResourcesPatch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody) throws OpenApiRequestException { + return kubesubmitV4ResourcesPatch(bckndResourcePatchBody, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceGroupApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceGroupApi.java index 96f3fb59..278f521a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceGroupApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceGroupApi.java @@ -78,12 +78,12 @@ public ResourceGroupApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupBase create( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroupBase kubesubmitV4ResourcegroupsCreate( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bckndResourceGroupsPostRequest; // verify the required parameter 'bckndResourceGroupsPostRequest' is set if (bckndResourceGroupsPostRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupsPostRequest' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupsPostRequest' when calling kubesubmitV4ResourcegroupsCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); @@ -122,8 +122,8 @@ public BckndResourceGroupBase create( @Nonnull final BckndResourceGroupsPostRequ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupBase create( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest) throws OpenApiRequestException { - return create(bckndResourceGroupsPostRequest, null); + public BckndResourceGroupBase kubesubmitV4ResourcegroupsCreate( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest) throws OpenApiRequestException { + return kubesubmitV4ResourcegroupsCreate(bckndResourceGroupsPostRequest, null); } /** @@ -141,12 +141,12 @@ public BckndResourceGroupBase create( @Nonnull final BckndResourceGroupsPostRequ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupDeletionResponse delete( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'resourceGroupId' is set if (resourceGroupId == null) { - throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling kubesubmitV4ResourcegroupsDelete"); } // create path and map variables @@ -187,8 +187,8 @@ public BckndResourceGroupDeletionResponse delete( @Nonnull final String resource * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupDeletionResponse delete( @Nonnull final String resourceGroupId) throws OpenApiRequestException { - return delete(resourceGroupId, null); + public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Nonnull final String resourceGroupId) throws OpenApiRequestException { + return kubesubmitV4ResourcegroupsDelete(resourceGroupId, null); } /** @@ -206,12 +206,12 @@ public BckndResourceGroupDeletionResponse delete( @Nonnull final String resource * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroup get( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'resourceGroupId' is set if (resourceGroupId == null) { - throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling kubesubmitV4ResourcegroupsGet"); } // create path and map variables @@ -252,8 +252,8 @@ public BckndResourceGroup get( @Nonnull final String resourceGroupId, @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroup get( @Nonnull final String resourceGroupId) throws OpenApiRequestException { - return get(resourceGroupId, null); + public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String resourceGroupId) throws OpenApiRequestException { + return kubesubmitV4ResourcegroupsGet(resourceGroupId, null); } /** @@ -280,7 +280,7 @@ public BckndResourceGroup get( @Nonnull final String resourceGroupId) throws Ope * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupList getAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String prefer, @Nullable final String continueToken, @Nullable final List labelSelector) throws OpenApiRequestException { + public BckndResourceGroupList kubesubmitV4ResourcegroupsGetAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String prefer, @Nullable final String continueToken, @Nullable final List labelSelector) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); @@ -324,8 +324,8 @@ public BckndResourceGroupList getAll( @Nullable final String authorization, @Nu * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupList getAll() throws OpenApiRequestException { - return getAll(null, null, null, null, null, null, null); + public BckndResourceGroupList kubesubmitV4ResourcegroupsGetAll() throws OpenApiRequestException { + return kubesubmitV4ResourcegroupsGetAll(null, null, null, null, null, null, null); } /** @@ -344,17 +344,17 @@ public BckndResourceGroupList getAll() throws OpenApiRequestException { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse patch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest, @Nullable final String authorization) throws OpenApiRequestException { + public OpenApiResponse kubesubmitV4ResourcegroupsPatch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = bckndResourceGroupPatchRequest; // verify the required parameter 'resourceGroupId' is set if (resourceGroupId == null) { - throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling kubesubmitV4ResourcegroupsPatch"); } // verify the required parameter 'bckndResourceGroupPatchRequest' is set if (bckndResourceGroupPatchRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupPatchRequest' when calling patch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupPatchRequest' when calling kubesubmitV4ResourcegroupsPatch"); } // create path and map variables @@ -399,7 +399,7 @@ public OpenApiResponse patch( @Nonnull final String resourceGroupId, @Nonnull f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse patch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest) throws OpenApiRequestException { - return patch(resourceGroupId, bckndResourceGroupPatchRequest, null); + public OpenApiResponse kubesubmitV4ResourcegroupsPatch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest) throws OpenApiRequestException { + return kubesubmitV4ResourcegroupsPatch(resourceGroupId, bckndResourceGroupPatchRequest, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceQuotaApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceQuotaApi.java index ee266054..bef4d34f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ResourceQuotaApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ResourceQuotaApi.java @@ -74,7 +74,7 @@ public ResourceQuotaApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getApplicationQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/applications").build().toUriString(); @@ -111,8 +111,8 @@ public BckndCommonResourceQuotaResponse getApplicationQuota( @Nullable final Str * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getApplicationQuota() throws OpenApiRequestException { - return getApplicationQuota(null, null); + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetApplicationQuota(null, null); } /** @@ -129,7 +129,7 @@ public BckndCommonResourceQuotaResponse getApplicationQuota() throws OpenApiRequ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndDeploymentResourceQuotaResponse getDeploymentQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/deployments").build().toUriString(); @@ -167,8 +167,8 @@ public BckndDeploymentResourceQuotaResponse getDeploymentQuota( @Nullable final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndDeploymentResourceQuotaResponse getDeploymentQuota() throws OpenApiRequestException { - return getDeploymentQuota(null, null); + public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetDeploymentQuota(null, null); } /** @@ -184,7 +184,7 @@ public BckndDeploymentResourceQuotaResponse getDeploymentQuota() throws OpenApiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/dockerRegistrySecrets").build().toUriString(); @@ -221,8 +221,8 @@ public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota( @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota() throws OpenApiRequestException { - return getDockerRegistrySecretQuota(null, null); + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota(null, null); } /** @@ -238,7 +238,7 @@ public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota() throws Op * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExecutableResourceQuotaResponse getExecutableQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/executables").build().toUriString(); @@ -275,8 +275,8 @@ public BckndExecutableResourceQuotaResponse getExecutableQuota( @Nullable final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExecutableResourceQuotaResponse getExecutableQuota() throws OpenApiRequestException { - return getExecutableQuota(null, null); + public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetExecutableQuota(null, null); } /** @@ -292,7 +292,7 @@ public BckndExecutableResourceQuotaResponse getExecutableQuota() throws OpenApiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getGenericSecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/secrets").build().toUriString(); @@ -329,8 +329,8 @@ public BckndCommonResourceQuotaResponse getGenericSecretQuota( @Nullable final S * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getGenericSecretQuota() throws OpenApiRequestException { - return getGenericSecretQuota(null, null); + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetGenericSecretQuota(null, null); } /** @@ -346,7 +346,7 @@ public BckndCommonResourceQuotaResponse getGenericSecretQuota() throws OpenApiRe * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getRepositoryQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/repositories").build().toUriString(); @@ -383,8 +383,8 @@ public BckndCommonResourceQuotaResponse getRepositoryQuota( @Nullable final Stri * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getRepositoryQuota() throws OpenApiRequestException { - return getRepositoryQuota(null, null); + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetRepositoryQuota(null, null); } /** @@ -400,7 +400,7 @@ public BckndCommonResourceQuotaResponse getRepositoryQuota() throws OpenApiReque * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getResourceGroupQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/resourceGroups").build().toUriString(); @@ -437,7 +437,7 @@ public BckndCommonResourceQuotaResponse getResourceGroupQuota( @Nullable final S * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse getResourceGroupQuota() throws OpenApiRequestException { - return getResourceGroupQuota(null, null); + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota() throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetResourceGroupQuota(null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java index badfdf65..6ab2d68d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java @@ -62,36 +62,35 @@ public ScenarioApi( @Nonnull final ApiClient apiClient ) } /** - *

Get scenario by id

- *

Retrieve details for a scenario specified by scenarioId.

- *

200 - A scenario + *

Get information about all models available in LLM global scenario

+ *

Retrieve information about all models available in LLM global scenario

+ *

200 - The request was successful and information of all LLM models will be returned. *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id * @param scenarioId * Scenario identifier - * @return AiScenario + * @param aiResourceGroup + * Specify a resource group id + * @return AiModelList * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiScenario get( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { + public AiModelList modelsGet( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; - // verify the required parameter 'aiResourceGroup' is set - if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); - } - // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling modelsGet"); + } + + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modelsGet"); } // create path and map variables final Map localVarPathParams = new HashMap(); localVarPathParams.put("scenarioId", scenarioId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}").buildAndExpand(localVarPathParams).toUriString(); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/models").buildAndExpand(localVarPathParams).toUriString(); final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); final HttpHeaders localVarHeaderParams = new HttpHeaders(); @@ -109,39 +108,40 @@ public AiScenario get( @Nonnull final String aiResourceGroup, @Nonnull final St final String[] localVarAuthNames = new String[] { "Oauth2" }; - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - *

Get information about all models available in LLM global scenario

- *

Retrieve information about all models available in LLM global scenario

- *

200 - The request was successful and information of all LLM models will be returned. + *

Get scenario by id

+ *

Retrieve details for a scenario specified by scenarioId.

+ *

200 - A scenario *

400 - The specification of the resource was incorrect - * @param scenarioId - * Scenario identifier + *

404 - The specified resource was not found * @param aiResourceGroup * Specify a resource group id - * @return AiModelList + * @param scenarioId + * Scenario identifier + * @return AiScenario * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiModelList get_0( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiScenario scenarioGet( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { final Object localVarPostBody = null; - // verify the required parameter 'scenarioId' is set - if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling get_0"); - } - // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get_0"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling scenarioGet"); + } + + // verify the required parameter 'scenarioId' is set + if (scenarioId == null) { + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling scenarioGet"); } // create path and map variables final Map localVarPathParams = new HashMap(); localVarPathParams.put("scenarioId", scenarioId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/models").buildAndExpand(localVarPathParams).toUriString(); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}").buildAndExpand(localVarPathParams).toUriString(); final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); final HttpHeaders localVarHeaderParams = new HttpHeaders(); @@ -159,7 +159,7 @@ public AiModelList get_0( @Nonnull final String scenarioId, @Nonnull final Stri final String[] localVarAuthNames = new String[] { "Oauth2" }; - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; + final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -172,12 +172,12 @@ public AiModelList get_0( @Nonnull final String scenarioId, @Nonnull final Stri * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiScenarioList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiScenarioList scenarioQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling scenarioQuery"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios").build().toUriString(); @@ -217,17 +217,17 @@ public AiScenarioList query( @Nonnull final String aiResourceGroup) throws OpenA * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiVersionList queryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId, @Nullable final List labelSelector) throws OpenApiRequestException { + public AiVersionList scenarioQueryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId, @Nullable final List labelSelector) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling queryVersions"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling scenarioQueryVersions"); } // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling queryVersions"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling scenarioQueryVersions"); } // create path and map variables @@ -271,7 +271,7 @@ public AiVersionList queryVersions( @Nonnull final String aiResourceGroup, @Non * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiVersionList queryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { - return queryVersions(aiResourceGroup, scenarioId, null); + public AiVersionList scenarioQueryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { + return scenarioQueryVersions(aiResourceGroup, scenarioId, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/SecretApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/SecretApi.java index 648b899d..39c8a7ed 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/SecretApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/SecretApi.java @@ -80,12 +80,12 @@ public SecretApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse create( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsCreate( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { final Object localVarPostBody = bckndGenericSecretPostBody; // verify the required parameter 'bckndGenericSecretPostBody' is set if (bckndGenericSecretPostBody == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPostBody' when calling create"); + throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPostBody' when calling kubesubmitV4GenericSecretsCreate"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); @@ -128,8 +128,8 @@ public BckndGenericSecretDataResponse create( @Nonnull final BckndGenericSecretP * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse create( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody) throws OpenApiRequestException { - return create(bckndGenericSecretPostBody, null, null, null); + public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsCreate( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody) throws OpenApiRequestException { + return kubesubmitV4GenericSecretsCreate(bckndGenericSecretPostBody, null, null, null); } /** @@ -151,12 +151,12 @@ public BckndGenericSecretDataResponse create( @Nonnull final BckndGenericSecretP * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse delete( @Nonnull final String secretName, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String secretName, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'secretName' is set if (secretName == null) { - throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling delete"); + throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling kubesubmitV4GenericSecretsDelete"); } // create path and map variables @@ -202,8 +202,8 @@ public OpenApiResponse delete( @Nonnull final String secretName, @Nullable fina * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse delete( @Nonnull final String secretName) throws OpenApiRequestException { - return delete(secretName, null, null, null); + public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String secretName) throws OpenApiRequestException { + return kubesubmitV4GenericSecretsDelete(secretName, null, null, null); } /** @@ -228,7 +228,7 @@ public OpenApiResponse delete( @Nonnull final String secretName) throws OpenApiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndListGenericSecretsResponse get( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public BckndListGenericSecretsResponse kubesubmitV4GenericSecretsGet( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); @@ -272,8 +272,8 @@ public BckndListGenericSecretsResponse get( @Nullable final String authorization * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndListGenericSecretsResponse get() throws OpenApiRequestException { - return get(null, null, null, null, null, null); + public BckndListGenericSecretsResponse kubesubmitV4GenericSecretsGet() throws OpenApiRequestException { + return kubesubmitV4GenericSecretsGet(null, null, null, null, null, null); } /** @@ -297,17 +297,17 @@ public BckndListGenericSecretsResponse get() throws OpenApiRequestException { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse update( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsUpdate( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { final Object localVarPostBody = bckndGenericSecretPatchBody; // verify the required parameter 'secretName' is set if (secretName == null) { - throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling update"); + throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling kubesubmitV4GenericSecretsUpdate"); } // verify the required parameter 'bckndGenericSecretPatchBody' is set if (bckndGenericSecretPatchBody == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPatchBody' when calling update"); + throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPatchBody' when calling kubesubmitV4GenericSecretsUpdate"); } // create path and map variables @@ -356,7 +356,7 @@ public BckndGenericSecretDataResponse update( @Nonnull final String secretName, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse update( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody) throws OpenApiRequestException { - return update(secretName, bckndGenericSecretPatchBody, null, null, null); + public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsUpdate( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody) throws OpenApiRequestException { + return kubesubmitV4GenericSecretsUpdate(secretName, bckndGenericSecretPatchBody, null, null, null); } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ServiceApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ServiceApi.java index 095e7fa6..dea762f8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/ServiceApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/ServiceApi.java @@ -75,12 +75,12 @@ public ServiceApi( @Nonnull final ApiClient apiClient ) * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExtendedService get( @Nonnull final String serviceName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndExtendedService kubesubmitV4AiservicesGet( @Nonnull final String serviceName, @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; // verify the required parameter 'serviceName' is set if (serviceName == null) { - throw new OpenApiRequestException("Missing the required parameter 'serviceName' when calling get"); + throw new OpenApiRequestException("Missing the required parameter 'serviceName' when calling kubesubmitV4AiservicesGet"); } // create path and map variables @@ -121,8 +121,8 @@ public BckndExtendedService get( @Nonnull final String serviceName, @Nullable f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExtendedService get( @Nonnull final String serviceName) throws OpenApiRequestException { - return get(serviceName, null); + public BckndExtendedService kubesubmitV4AiservicesGet( @Nonnull final String serviceName) throws OpenApiRequestException { + return kubesubmitV4AiservicesGet(serviceName, null); } /** @@ -137,7 +137,7 @@ public BckndExtendedService get( @Nonnull final String serviceName) throws OpenA * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndServiceList getAll( @Nullable final String authorization) throws OpenApiRequestException { + public BckndServiceList kubesubmitV4AiservicesGetAll( @Nullable final String authorization) throws OpenApiRequestException { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/services").build().toUriString(); @@ -172,7 +172,7 @@ public BckndServiceList getAll( @Nullable final String authorization) throws Ope * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndServiceList getAll() throws OpenApiRequestException { - return getAll(null); + public BckndServiceList kubesubmitV4AiservicesGetAll() throws OpenApiRequestException { + return kubesubmitV4AiservicesGetAll(null); } } diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java index e7ee7f81..f1e34989 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java @@ -48,7 +48,7 @@ void testGetArtifact() { } """))); - final AiArtifactList artifactList = new ArtifactApi(getClient(destination)).query("default"); + final AiArtifactList artifactList = new ArtifactApi(getClient(destination)).artifactQuery("default"); assertThat(artifactList).isNotNull(); assertThat(artifactList.getCount()).isEqualTo(1); assertThat(artifactList.getResources().size()).isEqualTo(1); @@ -89,7 +89,7 @@ void testPostArtifact() { .scenarioId("foundation-models") .url("ai://default/spam/data"); final AiArtifactCreationResponse artifact = - new ArtifactApi(getClient(destination)).create("default", artifactPostData); + new ArtifactApi(getClient(destination)).artifactCreate("default", artifactPostData); assertThat(artifact).isNotNull(); assertThat(artifact.getId()).isEqualTo("1a84bb38-4a84-4d12-a5aa-300ae7d33fb4"); assertThat(artifact.getMessage()).isEqualTo("AiArtifact acknowledged"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java index 5fd3ce21..9a37fddd 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java @@ -59,7 +59,7 @@ void testGetConfigurations() { """))); final AiConfigurationList configurationList = - new ConfigurationApi(getClient(destination)).query("default"); + new ConfigurationApi(getClient(destination)).configurationQuery("default"); assertThat(configurationList).isNotNull(); assertThat(configurationList.getCount()).isEqualTo(1); assertThat(configurationList.getResources().size()).isEqualTo(1); @@ -103,7 +103,7 @@ void testPostConfiguration() { .artifactId("744b0136-ed4b-49b1-bd10-08c236ed5ce7") .key("spam-data"))); final AiConfigurationCreationResponse configuration = - new ConfigurationApi(getClient(destination)).create("default", configurationBaseData); + new ConfigurationApi(getClient(destination)).configurationCreate("default", configurationBaseData); assertThat(configuration).isNotNull(); assertThat(configuration.getId()).isEqualTo("f88e7581-ade7-45c6-94e9-807889b523ec"); assertThat(configuration.getMessage()).isEqualTo("Configuration created"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java index 0ffc23da..26efa14f 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java @@ -77,7 +77,7 @@ void testGetDeployments() { """))); final AiDeploymentList deploymentList = - new DeploymentApi(getClient(destination)).query("default"); + new DeploymentApi(getClient(destination)).deploymentQuery("default"); assertThat(deploymentList).isNotNull(); assertThat(deploymentList.getCount()).isEqualTo(1); assertThat(deploymentList.getResources().size()).isEqualTo(1); @@ -121,7 +121,7 @@ void testPostAiDeployment() { AiDeploymentCreationRequest deploymentCreationRequest = new AiDeploymentCreationRequest().configurationId("7652a231-ba9b-4fcc-b473-2c355cb21b61"); final AiDeploymentCreationResponse deployment = - new DeploymentApi(getClient(destination)).create("default", deploymentCreationRequest); + new DeploymentApi(getClient(destination)).deploymentCreate("default", deploymentCreationRequest); assertThat(deployment).isNotNull(); assertThat(deployment.getDeploymentUrl()).isEqualTo(""); assertThat(deployment.getId()).isEqualTo("d5b764fe55b3e87c"); @@ -149,7 +149,7 @@ void testPatchAiDeployment() { new AiDeploymentModificationRequest().targetStatus(AiDeploymentTargetStatus.STOPPED); AiDeploymentModificationResponse deployment = new DeploymentApi(getClient(destination)) - .modify("default", "d19b998f347341aa", configModification); + .deploymentModify("default", "d19b998f347341aa", configModification); assertThat(deployment).isNotNull(); assertThat(deployment.getId()).isEqualTo("d5b764fe55b3e87c"); assertThat(deployment.getMessage()).isEqualTo("AiDeployment modification scheduled"); @@ -186,7 +186,7 @@ void testDeleteAiDeployment() { """))); final AiDeploymentDeletionResponse deployment = - new DeploymentApi(getClient(destination)).delete("default", "d5b764fe55b3e87c"); + new DeploymentApi(getClient(destination)).deploymentDelete("default", "d5b764fe55b3e87c"); assertThat(deployment).isNotNull(); assertThat(deployment.getId()).isEqualTo("d5b764fe55b3e87c"); // targetStatus is not in the generated client, but we can still get it from the diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java index 1b2b36a6..b0410a71 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java @@ -67,7 +67,7 @@ void testGetExecutions() { } """))); - final AiExecutionList executionList = new ExecutionApi(getClient(destination)).query("default"); + final AiExecutionList executionList = new ExecutionApi(getClient(destination)).executionQuery("default"); assertThat(executionList).isNotNull(); assertThat(executionList.getCount()).isEqualTo(1); assertThat(executionList.getResources().size()).isEqualTo(1); @@ -109,7 +109,7 @@ void testPostExecution() { AiEnactmentCreationRequest enactmentCreationRequest = new AiEnactmentCreationRequest().configurationId("e0a9eb2e-9ea1-43bf-aff5-7660db166676"); final AiExecutionCreationResponse execution = - new ExecutionApi(getClient(destination)).create("default", enactmentCreationRequest); + new ExecutionApi(getClient(destination)).executionCreate("default", enactmentCreationRequest); assertThat(execution).isNotNull(); assertThat(execution.getId()).isEqualTo("eab289226fe981da"); assertThat(execution.getMessage()).isEqualTo("AiExecution acknowledged"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java index 0f40c35b..59acfe4d 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java @@ -49,7 +49,7 @@ void testGetScenarios() { """))); final AiScenarioList scenarioList = - new ScenarioApi(getClient(destination)).query("default"); + new ScenarioApi(getClient(destination)).scenarioQuery("default"); assertThat(scenarioList).isNotNull(); assertThat(scenarioList.getCount()).isEqualTo(1); assertThat(scenarioList.getResources().size()).isEqualTo(1); diff --git a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java index d4c2eee9..6eefc3ac 100644 --- a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java +++ b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java @@ -39,11 +39,11 @@ class DeploymentController { public AiDeploymentDeletionResponse createAndDeleteDeploymentByConfigId( @Nonnull @PathVariable("id") final String configId) { final var deployment = - API.create("default", new AiDeploymentCreationRequest().configurationId(configId)); + API.deploymentCreate("default", new AiDeploymentCreationRequest().configurationId(configId)); // shortly after creation, the deployment will be status UNKNOWN. // We can directly DELETE it, without going through STOPPED - return API.delete("default", Objects.requireNonNull(deployment).getId()); + return API.deploymentDelete("default", Objects.requireNonNull(deployment).getId()); } /** @@ -92,7 +92,7 @@ public List deleteByConfigId( // DELETE my deployments return myDeployments.stream() - .map(deployment -> API.delete("default", deployment.getId())) + .map(deployment -> API.deploymentDelete("default", deployment.getId())) .toList(); } @@ -105,7 +105,7 @@ public List deleteByConfigId( @GetMapping("/by-config/{id}/getAll") @Nonnull public List getAllByConfigId(@Nonnull @PathVariable("id") final String configId) { - final AiDeploymentList deploymentList = API.query("default"); + final AiDeploymentList deploymentList = API.deploymentQuery("default"); return Objects.requireNonNull(deploymentList).getResources().stream() .filter(deployment -> configId.equals(deployment.getConfigurationId())) @@ -120,6 +120,6 @@ public List getAllByConfigId(@Nonnull @PathVariable("id") final St @GetMapping("/getAll") @Nullable public AiDeploymentList getAll() { - return API.query("default"); + return API.deploymentQuery("default"); } } diff --git a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/ScenarioController.java b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/ScenarioController.java index f98a2466..32ab7a03 100644 --- a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/ScenarioController.java +++ b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/ScenarioController.java @@ -23,7 +23,7 @@ public class ScenarioController { */ @GetMapping("/scenarios") AiScenarioList getScenarios() { - return API.query("default"); + return API.scenarioQuery("default"); } /** @@ -34,6 +34,6 @@ AiScenarioList getScenarios() { @GetMapping("/models") @Nullable public AiModelList getModels() { - return API.get_0("foundation-models", "default"); + return API.modelsGet("foundation-models", "default"); } }