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 69102a74..041c6794 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 kubesubmitV4ApplicationsCreate( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationCreationResponse create( @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 kubesubmitV4ApplicationsCreate"); + throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4ApplicationsCreateRequest' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications").build().toUriString(); @@ -125,8 +125,8 @@ public BckndArgoCDApplicationCreationResponse kubesubmitV4ApplicationsCreate( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationCreationResponse kubesubmitV4ApplicationsCreate( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) throws OpenApiRequestException { - return kubesubmitV4ApplicationsCreate(kubesubmitV4ApplicationsCreateRequest, null); + public BckndArgoCDApplicationCreationResponse create( @Nonnull final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest) throws OpenApiRequestException { + return create(kubesubmitV4ApplicationsCreateRequest, null); } /** @@ -144,12 +144,12 @@ public BckndArgoCDApplicationCreationResponse kubesubmitV4ApplicationsCreate( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationDeletionResponse delete( @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 kubesubmitV4ApplicationsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling delete"); } // create path and map variables @@ -190,8 +190,8 @@ public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @Nonnull final String applicationName) throws OpenApiRequestException { - return kubesubmitV4ApplicationsDelete(applicationName, null); + public BckndArgoCDApplicationDeletionResponse delete( @Nonnull final String applicationName) throws OpenApiRequestException { + return delete(applicationName, null); } /** @@ -209,12 +209,12 @@ public BckndArgoCDApplicationDeletionResponse kubesubmitV4ApplicationsDelete( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationData get( @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 kubesubmitV4ApplicationsGet"); + throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling get"); } // create path and map variables @@ -255,8 +255,8 @@ public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final String applicationName) throws OpenApiRequestException { - return kubesubmitV4ApplicationsGet(applicationName, null); + public BckndArgoCDApplicationData get( @Nonnull final String applicationName) throws OpenApiRequestException { + return get(applicationName, null); } /** @@ -277,7 +277,7 @@ public BckndArgoCDApplicationData kubesubmitV4ApplicationsGet( @Nonnull final St * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count) throws OpenApiRequestException { + public BckndAllArgoCDApplicationData getAll( @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 kubesubmitV4ApplicationsGetAll( @Nullable f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll() throws OpenApiRequestException { - return kubesubmitV4ApplicationsGetAll(null, null, null, null); + public BckndAllArgoCDApplicationData getAll() throws OpenApiRequestException { + return getAll(null, null, null, null); } /** @@ -336,12 +336,12 @@ public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll() throws Ope * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationStatus getStatus( @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 kubesubmitV4ApplicationsGetStatus"); + throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling getStatus"); } // create path and map variables @@ -382,8 +382,8 @@ public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull final String applicationName) throws OpenApiRequestException { - return kubesubmitV4ApplicationsGetStatus(applicationName, null); + public BckndArgoCDApplicationStatus getStatus( @Nonnull final String applicationName) throws OpenApiRequestException { + return getStatus(applicationName, null); } /** @@ -401,12 +401,12 @@ public BckndArgoCDApplicationStatus kubesubmitV4ApplicationsGetStatus( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @Nonnull final String applicationName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationRefreshResponse refresh( @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 kubesubmitV4ApplicationsRefresh"); + throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling refresh"); } // create path and map variables @@ -447,8 +447,8 @@ public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @Nonnull final String applicationName) throws OpenApiRequestException { - return kubesubmitV4ApplicationsRefresh(applicationName, null); + public BckndArgoCDApplicationRefreshResponse refresh( @Nonnull final String applicationName) throws OpenApiRequestException { + return refresh(applicationName, null); } /** @@ -468,17 +468,17 @@ public BckndArgoCDApplicationRefreshResponse kubesubmitV4ApplicationsRefresh( @N * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationModificationResponse kubesubmitV4ApplicationsUpdate( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDApplicationModificationResponse update( @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 kubesubmitV4ApplicationsUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'applicationName' when calling update"); } // verify the required parameter 'bckndArgoCDApplicationBaseData' is set if (bckndArgoCDApplicationBaseData == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling kubesubmitV4ApplicationsUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling update"); } // create path and map variables @@ -523,7 +523,7 @@ public BckndArgoCDApplicationModificationResponse kubesubmitV4ApplicationsUpdate * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDApplicationModificationResponse kubesubmitV4ApplicationsUpdate( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) throws OpenApiRequestException { - return kubesubmitV4ApplicationsUpdate(applicationName, bckndArgoCDApplicationBaseData, null); + public BckndArgoCDApplicationModificationResponse update( @Nonnull final String applicationName, @Nonnull final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData) throws OpenApiRequestException { + return update(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 6082bdc7..03cdfc4d 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 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactCount"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts/$count").build().toUriString(); @@ -137,8 +137,8 @@ public Integer artifactCount( @Nonnull final String aiResourceGroup, @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer artifactCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return artifactCount(aiResourceGroup, null, null, null, null, null, null, null); + public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return count(aiResourceGroup, null, null, null, null, null, null, null); } /** *

Register artifact

@@ -153,17 +153,17 @@ public Integer artifactCount( @Nonnull final String aiResourceGroup) throws Open * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifactCreationResponse artifactCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiArtifactPostData aiArtifactPostData) throws OpenApiRequestException { + public AiArtifactCreationResponse create( @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 artifactCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); } // verify the required parameter 'aiArtifactPostData' is set if (aiArtifactPostData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiArtifactPostData' when calling artifactCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiArtifactPostData' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); @@ -206,17 +206,17 @@ public AiArtifactCreationResponse artifactCreate( @Nonnull final String aiResour * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId, @Nullable final String $expand) throws OpenApiRequestException { + public AiArtifact get( @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 artifactGet"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); } // verify the required parameter 'artifactId' is set if (artifactId == null) { - throw new OpenApiRequestException("Missing the required parameter 'artifactId' when calling artifactGet"); + throw new OpenApiRequestException("Missing the required parameter 'artifactId' when calling get"); } // create path and map variables @@ -261,8 +261,8 @@ public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId) throws OpenApiRequestException { - return artifactGet(aiResourceGroup, artifactId, null); + public AiArtifact get( @Nonnull final String aiResourceGroup, @Nonnull final String artifactId) throws OpenApiRequestException { + return get(aiResourceGroup, artifactId, null); } /** @@ -296,12 +296,12 @@ public AiArtifact artifactGet( @Nonnull final String aiResourceGroup, @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling artifactQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); @@ -349,7 +349,7 @@ public AiArtifactList artifactQuery( @Nonnull final String aiResourceGroup, @Nu * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiArtifactList artifactQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return artifactQuery(aiResourceGroup, null, null, null, null, null, null, null, null, null, null); + public AiArtifactList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(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 3a5ba88f..e628974f 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 configurationCount( @Nonnull final String aiResourceGroup, @Nullable final String scenarioId, @Nullable final String $search, @Nullable final Boolean searchCaseInsensitive, @Nullable final List executableIds) throws OpenApiRequestException { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationCount"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations/$count").build().toUriString(); @@ -128,8 +128,8 @@ public Integer configurationCount( @Nonnull final String aiResourceGroup, @Null * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer configurationCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return configurationCount(aiResourceGroup, null, null, null, null); + public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return count(aiResourceGroup, null, null, null, null); } /** *

Create configuration

@@ -144,17 +144,17 @@ public Integer configurationCount( @Nonnull final String aiResourceGroup) throws * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfigurationCreationResponse configurationCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiConfigurationBaseData aiConfigurationBaseData) throws OpenApiRequestException { + public AiConfigurationCreationResponse create( @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 configurationCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); } // verify the required parameter 'aiConfigurationBaseData' is set if (aiConfigurationBaseData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiConfigurationBaseData' when calling configurationCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiConfigurationBaseData' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); @@ -197,17 +197,17 @@ public AiConfigurationCreationResponse configurationCreate( @Nonnull final Strin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId, @Nullable final String $expand) throws OpenApiRequestException { + public AiConfiguration get( @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 configurationGet"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); } // verify the required parameter 'configurationId' is set if (configurationId == null) { - throw new OpenApiRequestException("Missing the required parameter 'configurationId' when calling configurationGet"); + throw new OpenApiRequestException("Missing the required parameter 'configurationId' when calling get"); } // create path and map variables @@ -252,8 +252,8 @@ public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId) throws OpenApiRequestException { - return configurationGet(aiResourceGroup, configurationId, null); + public AiConfiguration get( @Nonnull final String aiResourceGroup, @Nonnull final String configurationId) throws OpenApiRequestException { + return get(aiResourceGroup, configurationId, null); } /** @@ -281,12 +281,12 @@ public AiConfiguration configurationGet( @Nonnull final String aiResourceGroup, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling configurationQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); @@ -331,7 +331,7 @@ public AiConfigurationList configurationQuery( @Nonnull final String aiResourceG * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiConfigurationList configurationQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return configurationQuery(aiResourceGroup, null, null, null, null, null, null, null); + public AiConfigurationList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(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 7a83b9ff..2e0bf9b0 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 deploymentBatchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiDeploymentBulkModificationRequest aiDeploymentBulkModificationRequest) throws OpenApiRequestException { + public AiDeploymentBulkModificationResponse batchModify( @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 deploymentBatchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling batchModify"); } // verify the required parameter 'aiDeploymentBulkModificationRequest' is set if (aiDeploymentBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling deploymentBatchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling batchModify"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); @@ -138,12 +138,12 @@ public AiDeploymentBulkModificationResponse deploymentBatchModify( @Nonnull fina * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentCount"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/$count").build().toUriString(); @@ -185,8 +185,8 @@ public Integer deploymentCount( @Nonnull final String aiResourceGroup, @Nullabl * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer deploymentCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return deploymentCount(aiResourceGroup, null, null, null, null); + public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return count(aiResourceGroup, null, null, null, null); } /** *

Create deployment

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

Update target status or configuration of a deployment

@@ -381,22 +462,22 @@ public AiDeploymentResponseWithDetails deploymentGet( @Nonnull final String aiRe * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiDeploymentModificationResponse deploymentModify( @Nonnull final String aiResourceGroup, @Nonnull final String deploymentId, @Nonnull final AiDeploymentModificationRequest aiDeploymentModificationRequest) throws OpenApiRequestException { + public AiDeploymentModificationResponse modify( @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 deploymentModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); } // verify the required parameter 'deploymentId' is set if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentModify"); + throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling modify"); } // verify the required parameter 'aiDeploymentModificationRequest' is set if (aiDeploymentModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentModificationRequest' when calling deploymentModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentModificationRequest' when calling modify"); } // create path and map variables @@ -451,12 +532,12 @@ public AiDeploymentModificationResponse deploymentModify( @Nonnull final String * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling deploymentQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); @@ -501,88 +582,7 @@ public AiDeploymentList deploymentQuery( @Nonnull final String aiResourceGroup, * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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); + public AiDeploymentList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(aiResourceGroup, null, null, 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 c3c2b577..4ef84c75 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 kubesubmitV4DockerRegistrySecretsCreate( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretCreationResponse create( @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 kubesubmitV4DockerRegistrySecretsCreate"); + throw new OpenApiRequestException("Missing the required parameter 'kubesubmitV4DockerRegistrySecretsCreateRequest' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().toUriString(); @@ -123,8 +123,8 @@ public BcknddockerRegistrySecretCreationResponse kubesubmitV4DockerRegistrySecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretCreationResponse kubesubmitV4DockerRegistrySecretsCreate( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest) throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsCreate(kubesubmitV4DockerRegistrySecretsCreateRequest, null); + public BcknddockerRegistrySecretCreationResponse create( @Nonnull final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest) throws OpenApiRequestException { + return create(kubesubmitV4DockerRegistrySecretsCreateRequest, null); } /** @@ -142,12 +142,12 @@ public BcknddockerRegistrySecretCreationResponse kubesubmitV4DockerRegistrySecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecretsDelete( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretDeletionResponse delete( @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 kubesubmitV4DockerRegistrySecretsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling delete"); } // create path and map variables @@ -188,8 +188,8 @@ public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecretsDelete( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsDelete(dockerRegistryName, null); + public BcknddockerRegistrySecretDeletionResponse delete( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { + return delete(dockerRegistryName, null); } /** @@ -207,12 +207,12 @@ public BcknddockerRegistrySecretDeletionResponse kubesubmitV4DockerRegistrySecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @Nonnull final String dockerRegistryName, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretStatus get( @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 kubesubmitV4DockerRegistrySecretsGet"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling get"); } // create path and map variables @@ -253,8 +253,8 @@ public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsGet(dockerRegistryName, null); + public BcknddockerRegistrySecretStatus get( @Nonnull final String dockerRegistryName) throws OpenApiRequestException { + return get(dockerRegistryName, null); } /** @@ -274,17 +274,17 @@ public BcknddockerRegistrySecretStatus kubesubmitV4DockerRegistrySecretsGet( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistrySecretsPatch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretModificationResponse patch( @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 kubesubmitV4DockerRegistrySecretsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'dockerRegistryName' when calling patch"); } // verify the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' is set if (bcknddockerRegistrySecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling kubesubmitV4DockerRegistrySecretsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling patch"); } // create path and map variables @@ -329,8 +329,8 @@ public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistryS * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistrySecretsPatch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest) throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsPatch(dockerRegistryName, bcknddockerRegistrySecretWithSensitiveDataRequest, null); + public BcknddockerRegistrySecretModificationResponse patch( @Nonnull final String dockerRegistryName, @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest) throws OpenApiRequestException { + return patch(dockerRegistryName, bcknddockerRegistrySecretWithSensitiveDataRequest, null); } /** @@ -351,7 +351,7 @@ public BcknddockerRegistrySecretModificationResponse kubesubmitV4DockerRegistryS * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery( @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count, @Nullable final String authorization) throws OpenApiRequestException { + public BcknddockerRegistrySecretStatusResponse query( @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 kubesubmitV4DockerRegistrySecrets * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery() throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsQuery(null, null, null, null); + public BcknddockerRegistrySecretStatusResponse query() throws OpenApiRequestException { + return query(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 5a9629f7..9bf4a199 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 executableGet( @Nonnull final String scenarioId, @Nonnull final String executableId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiExecutable get( @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 executableGet"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling get"); } // verify the required parameter 'executableId' is set if (executableId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executableId' when calling executableGet"); + throw new OpenApiRequestException("Missing the required parameter 'executableId' when calling get"); } // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableGet"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); } // create path and map variables @@ -134,17 +134,17 @@ public AiExecutable executableGet( @Nonnull final String scenarioId, @Nonnull f * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutableList executableQuery( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup, @Nullable final String versionId) throws OpenApiRequestException { + public AiExecutableList query( @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 executableQuery"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling query"); } // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } // create path and map variables @@ -188,7 +188,7 @@ public AiExecutableList executableQuery( @Nonnull final String scenarioId, @Non * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutableList executableQuery( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return executableQuery(scenarioId, aiResourceGroup, null); + public AiExecutableList query( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(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 13fa2e93..77de440d 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 executionBatchModify( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionBulkModificationRequest aiExecutionBulkModificationRequest) throws OpenApiRequestException { + public AiExecutionBulkModificationResponse batchModify( @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 executionBatchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling batchModify"); } // verify the required parameter 'aiExecutionBulkModificationRequest' is set if (aiExecutionBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionBulkModificationRequest' when calling executionBatchModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionBulkModificationRequest' when calling batchModify"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); @@ -140,12 +140,12 @@ public AiExecutionBulkModificationResponse executionBatchModify( @Nonnull final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionCount"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/$count").build().toUriString(); @@ -188,8 +188,8 @@ public Integer executionCount( @Nonnull final String aiResourceGroup, @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer executionCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return executionCount(aiResourceGroup, null, null, null, null, null); + public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return count(aiResourceGroup, null, null, null, null, null); } /** *

Create execution

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

Update target status of an execution

@@ -384,22 +465,22 @@ public AiExecutionResponseWithDetails executionGet( @Nonnull final String aiReso * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionModificationResponse executionModify( @Nonnull final String aiResourceGroup, @Nonnull final String executionId, @Nonnull final AiExecutionModificationRequest aiExecutionModificationRequest) throws OpenApiRequestException { + public AiExecutionModificationResponse modify( @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 executionModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionModify"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling modify"); } // verify the required parameter 'aiExecutionModificationRequest' is set if (aiExecutionModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionModificationRequest' when calling executionModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionModificationRequest' when calling modify"); } // create path and map variables @@ -456,12 +537,12 @@ public AiExecutionModificationResponse executionModify( @Nonnull final String ai * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); @@ -507,88 +588,7 @@ public AiExecutionList executionQuery( @Nonnull final String aiResourceGroup, @ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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); + public AiExecutionList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(aiResourceGroup, null, null, null, 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 e518638b..6603981e 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 executionScheduleCount( @Nonnull final String aiResourceGroup, @Nullable final String configurationId, @Nullable final String status) throws OpenApiRequestException { + public Integer count( @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 executionScheduleCount"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling count"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/$count").build().toUriString(); @@ -125,8 +125,8 @@ public Integer executionScheduleCount( @Nonnull final String aiResourceGroup, @ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Integer executionScheduleCount( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return executionScheduleCount(aiResourceGroup, null, null); + public Integer count( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return count(aiResourceGroup, null, null); } /** *

Create execution schedule

@@ -141,17 +141,17 @@ public Integer executionScheduleCount( @Nonnull final String aiResourceGroup) th * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleCreationResponse executionScheduleCreate( @Nonnull final String aiResourceGroup, @Nonnull final AiExecutionScheduleCreationData aiExecutionScheduleCreationData) throws OpenApiRequestException { + public AiExecutionScheduleCreationResponse create( @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 executionScheduleCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling create"); } // verify the required parameter 'aiExecutionScheduleCreationData' is set if (aiExecutionScheduleCreationData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleCreationData' when calling executionScheduleCreate"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleCreationData' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); @@ -191,17 +191,17 @@ public AiExecutionScheduleCreationResponse executionScheduleCreate( @Nonnull fin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleDeletionResponse executionScheduleDelete( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { + public AiExecutionScheduleDeletionResponse delete( @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 executionScheduleDelete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleDelete"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling delete"); } // create path and map variables @@ -242,17 +242,17 @@ public AiExecutionScheduleDeletionResponse executionScheduleDelete( @Nonnull fin * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionSchedule executionScheduleGet( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId) throws OpenApiRequestException { + public AiExecutionSchedule get( @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 executionScheduleGet"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling get"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleGet"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling get"); } // create path and map variables @@ -295,22 +295,22 @@ public AiExecutionSchedule executionScheduleGet( @Nonnull final String aiResourc * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleModificationResponse executionScheduleModify( @Nonnull final String aiResourceGroup, @Nonnull final String executionScheduleId, @Nonnull final AiExecutionScheduleModificationRequest aiExecutionScheduleModificationRequest) throws OpenApiRequestException { + public AiExecutionScheduleModificationResponse modify( @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 executionScheduleModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modify"); } // verify the required parameter 'executionScheduleId' is set if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleModify"); + throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling modify"); } // verify the required parameter 'aiExecutionScheduleModificationRequest' is set if (aiExecutionScheduleModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling executionScheduleModify"); + throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling modify"); } // create path and map variables @@ -359,12 +359,12 @@ public AiExecutionScheduleModificationResponse executionScheduleModify( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executionScheduleQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); @@ -406,7 +406,7 @@ public AiExecutionScheduleList executionScheduleQuery( @Nonnull final String aiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiExecutionScheduleList executionScheduleQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return executionScheduleQuery(aiResourceGroup, null, null, null, null); + public AiExecutionScheduleList query( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return query(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 b1e17d3c..64aed5b5 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 fileDelete( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public OpenApiResponse delete( @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 fileDelete"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling delete"); } // create path and map variables @@ -120,8 +120,8 @@ public OpenApiResponse fileDelete( @Nonnull final String path, @Nullable final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse fileDelete( @Nonnull final String path) throws OpenApiRequestException { - return fileDelete(path, null); + public OpenApiResponse delete( @Nonnull final String path) throws OpenApiRequestException { + return delete(path, null); } /** @@ -138,12 +138,12 @@ public OpenApiResponse fileDelete( @Nonnull final String path) throws OpenApiReq * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public File fileDownload( @Nonnull final String path, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public File download( @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 fileDownload"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling download"); } // create path and map variables @@ -183,8 +183,8 @@ public File fileDownload( @Nonnull final String path, @Nullable final String ai * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public File fileDownload( @Nonnull final String path) throws OpenApiRequestException { - return fileDownload(path, null); + public File download( @Nonnull final String path) throws OpenApiRequestException { + return download(path, null); } /** @@ -206,12 +206,12 @@ public File fileDownload( @Nonnull final String path) throws OpenApiRequestExcep * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DSetFileCreationResponse fileUpload( @Nonnull final String path, @Nullable final String aiResourceGroup, @Nullable final Boolean overwrite, @Nullable final String body) throws OpenApiRequestException { + public DSetFileCreationResponse upload( @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 fileUpload"); + throw new OpenApiRequestException("Missing the required parameter 'path' when calling upload"); } // create path and map variables @@ -255,7 +255,7 @@ public DSetFileCreationResponse fileUpload( @Nonnull final String path, @Nullab * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DSetFileCreationResponse fileUpload( @Nonnull final String path) throws OpenApiRequestException { - return fileUpload(path, null, null, null); + public DSetFileCreationResponse upload( @Nonnull final String path) throws OpenApiRequestException { + return upload(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 febf8646..c5f4bdf6 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 kpiGet( @Nullable final Set $select) throws OpenApiRequestException { + public KpiResultSet get( @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 kpiGet( @Nullable final Set $select) throws O * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public KpiResultSet kpiGet() throws OpenApiRequestException { - return kpiGet(null); + public KpiResultSet get() throws OpenApiRequestException { + return get(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 f2a1d356..012c2b67 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 metaGet() throws OpenApiRequestException { + public MetaCapabilities get() 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 89c2617f..89e05e99 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 metricsDelete( @Nonnull final String aiResourceGroup, @Nonnull final TrckExecutionId executionId) throws OpenApiRequestException { + public TrckDeleteMetricsResponse delete( @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 metricsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling delete"); } // verify the required parameter 'executionId' is set if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling metricsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling delete"); } 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 metricsFind( @Nonnull final String aiResourceGroup, @Nullable final String $filter, @Nullable final List executionIds, @Nullable final List $select) throws OpenApiRequestException { + public TrckGetMetricResourceList find( @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 metricsFind"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling find"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); @@ -176,8 +176,8 @@ public TrckGetMetricResourceList metricsFind( @Nonnull final String aiResourceGr * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public TrckGetMetricResourceList metricsFind( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return metricsFind(aiResourceGroup, null, null, null); + public TrckGetMetricResourceList find( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + return find(aiResourceGroup, null, null, null); } /** *

Create or update metrics, tags, or labels

@@ -193,17 +193,17 @@ public TrckGetMetricResourceList metricsFind( @Nonnull final String aiResourceGr * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse metricsPatch( @Nonnull final String aiResourceGroup, @Nonnull final TrckMetricResource trckMetricResource) throws OpenApiRequestException { + public OpenApiResponse patch( @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 metricsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling patch"); } // verify the required parameter 'trckMetricResource' is set if (trckMetricResource == null) { - throw new OpenApiRequestException("Missing the required parameter 'trckMetricResource' when calling metricsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'trckMetricResource' when calling patch"); } 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 c35b222e..4a27ac0b 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 kubesubmitV4ObjectStoreSecretsCreate( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretCreationResponse create( @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 kubesubmitV4ObjectStoreSecretsCreate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequestForPostCall' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); @@ -127,8 +127,8 @@ public BckndobjectStoreSecretCreationResponse kubesubmitV4ObjectStoreSecretsCrea * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretCreationResponse kubesubmitV4ObjectStoreSecretsCreate( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall) throws OpenApiRequestException { - return kubesubmitV4ObjectStoreSecretsCreate(bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, null, null); + public BckndobjectStoreSecretCreationResponse create( @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall) throws OpenApiRequestException { + return create(bckndobjectStoreSecretWithSensitiveDataRequestForPostCall, null, null); } /** @@ -148,12 +148,12 @@ public BckndobjectStoreSecretCreationResponse kubesubmitV4ObjectStoreSecretsCrea * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDelete( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretDeletionResponse delete( @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 kubesubmitV4ObjectStoreSecretsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling delete"); } // create path and map variables @@ -196,8 +196,8 @@ public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDele * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDelete( @Nonnull final String objectStoreName) throws OpenApiRequestException { - return kubesubmitV4ObjectStoreSecretsDelete(objectStoreName, null, null); + public BckndobjectStoreSecretDeletionResponse delete( @Nonnull final String objectStoreName) throws OpenApiRequestException { + return delete(objectStoreName, null, null); } /** @@ -217,12 +217,12 @@ public BckndobjectStoreSecretDeletionResponse kubesubmitV4ObjectStoreSecretsDele * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull final String objectStoreName, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretStatus get( @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 kubesubmitV4ObjectStoreSecretsGet"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling get"); } // create path and map variables @@ -265,8 +265,8 @@ public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull final String objectStoreName) throws OpenApiRequestException { - return kubesubmitV4ObjectStoreSecretsGet(objectStoreName, null, null); + public BckndobjectStoreSecretStatus get( @Nonnull final String objectStoreName) throws OpenApiRequestException { + return get(objectStoreName, null, null); } /** @@ -288,17 +288,17 @@ public BckndobjectStoreSecretStatus kubesubmitV4ObjectStoreSecretsGet( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecretsPatch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest, @Nullable final String authorization, @Nullable final String aiResourceGroup) throws OpenApiRequestException { + public BckndobjectStoreSecretModificationResponse patch( @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 kubesubmitV4ObjectStoreSecretsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'objectStoreName' when calling patch"); } // verify the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' is set if (bckndobjectStoreSecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling kubesubmitV4ObjectStoreSecretsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling patch"); } // create path and map variables @@ -345,8 +345,8 @@ public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecrets * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecretsPatch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest) throws OpenApiRequestException { - return kubesubmitV4ObjectStoreSecretsPatch(objectStoreName, bckndobjectStoreSecretWithSensitiveDataRequest, null, null); + public BckndobjectStoreSecretModificationResponse patch( @Nonnull final String objectStoreName, @Nonnull final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest) throws OpenApiRequestException { + return patch(objectStoreName, bckndobjectStoreSecretWithSensitiveDataRequest, null, null); } /** @@ -369,7 +369,7 @@ public BckndobjectStoreSecretModificationResponse kubesubmitV4ObjectStoreSecrets * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); @@ -411,7 +411,7 @@ public BckndobjectStoreSecretStatusResponse kubesubmitV4ObjectStoreSecretsQuery( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndobjectStoreSecretStatusResponse kubesubmitV4ObjectStoreSecretsQuery() throws OpenApiRequestException { - return kubesubmitV4ObjectStoreSecretsQuery(null, null, null, null, null); + public BckndobjectStoreSecretStatusResponse query() throws OpenApiRequestException { + return query(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 09d68563..64f004b2 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 kubesubmitV4RepositoriesCreate( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryCreationResponse create( @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 kubesubmitV4RepositoriesCreate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryData' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories").build().toUriString(); @@ -125,8 +125,8 @@ public BckndArgoCDRepositoryCreationResponse kubesubmitV4RepositoriesCreate( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryCreationResponse kubesubmitV4RepositoriesCreate( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData) throws OpenApiRequestException { - return kubesubmitV4RepositoriesCreate(bckndArgoCDRepositoryData, null); + public BckndArgoCDRepositoryCreationResponse create( @Nonnull final BckndArgoCDRepositoryData bckndArgoCDRepositoryData) throws OpenApiRequestException { + return create(bckndArgoCDRepositoryData, null); } /** @@ -144,12 +144,12 @@ public BckndArgoCDRepositoryCreationResponse kubesubmitV4RepositoriesCreate( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryDeletionResponse delete( @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 kubesubmitV4RepositoriesDelete"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling delete"); } // create path and map variables @@ -190,8 +190,8 @@ public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @Nonnull final String repositoryName) throws OpenApiRequestException { - return kubesubmitV4RepositoriesDelete(repositoryName, null); + public BckndArgoCDRepositoryDeletionResponse delete( @Nonnull final String repositoryName) throws OpenApiRequestException { + return delete(repositoryName, null); } /** @@ -209,12 +209,12 @@ public BckndArgoCDRepositoryDeletionResponse kubesubmitV4RepositoriesDelete( @No * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final String repositoryName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryDetails get( @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 kubesubmitV4RepositoriesGet"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling get"); } // create path and map variables @@ -255,8 +255,8 @@ public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final String repositoryName) throws OpenApiRequestException { - return kubesubmitV4RepositoriesGet(repositoryName, null); + public BckndArgoCDRepositoryDetails get( @Nonnull final String repositoryName) throws OpenApiRequestException { + return get(repositoryName, null); } /** @@ -277,7 +277,7 @@ public BckndArgoCDRepositoryDetails kubesubmitV4RepositoriesGet( @Nonnull final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll( @Nullable final String authorization, @Nullable final Integer $top, @Nullable final Integer $skip, @Nullable final Boolean $count) throws OpenApiRequestException { + public BckndArgoCDRepositoryDataResponse getAll( @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 kubesubmitV4RepositoriesGetAll( @Nullab * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll() throws OpenApiRequestException { - return kubesubmitV4RepositoriesGetAll(null, null, null, null); + public BckndArgoCDRepositoryDataResponse getAll() throws OpenApiRequestException { + return getAll(null, null, null, null); } /** @@ -338,17 +338,17 @@ public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll() throws * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryModificationResponse kubesubmitV4RepositoriesUpdate( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials, @Nullable final String authorization) throws OpenApiRequestException { + public BckndArgoCDRepositoryModificationResponse update( @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 kubesubmitV4RepositoriesUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'repositoryName' when calling update"); } // verify the required parameter 'bckndArgoCDRepositoryCredentials' is set if (bckndArgoCDRepositoryCredentials == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling kubesubmitV4RepositoriesUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling update"); } // create path and map variables @@ -393,7 +393,7 @@ public BckndArgoCDRepositoryModificationResponse kubesubmitV4RepositoriesUpdate( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndArgoCDRepositoryModificationResponse kubesubmitV4RepositoriesUpdate( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) throws OpenApiRequestException { - return kubesubmitV4RepositoriesUpdate(repositoryName, bckndArgoCDRepositoryCredentials, null); + public BckndArgoCDRepositoryModificationResponse update( @Nonnull final String repositoryName, @Nonnull final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) throws OpenApiRequestException { + return update(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 c4b72048..5939efee 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 kubesubmitV4ResourcesGet( @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGetResponse get( @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 kubesubmitV4ResourcesGet( @Nullable final String * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGetResponse kubesubmitV4ResourcesGet() throws OpenApiRequestException { - return kubesubmitV4ResourcesGet(null); + public BckndResourceGetResponse get() throws OpenApiRequestException { + return get(null); } /** @@ -126,12 +126,12 @@ public BckndResourceGetResponse kubesubmitV4ResourcesGet() throws OpenApiRequest * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourcePatchResponse kubesubmitV4ResourcesPatch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourcePatchResponse patch( @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 kubesubmitV4ResourcesPatch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourcePatchBody' when calling patch"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); @@ -170,7 +170,7 @@ public BckndResourcePatchResponse kubesubmitV4ResourcesPatch( @Nonnull final Bck * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourcePatchResponse kubesubmitV4ResourcesPatch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody) throws OpenApiRequestException { - return kubesubmitV4ResourcesPatch(bckndResourcePatchBody, null); + public BckndResourcePatchResponse patch( @Nonnull final BckndResourcePatchBody bckndResourcePatchBody) throws OpenApiRequestException { + return patch(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 278f521a..96f3fb59 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 kubesubmitV4ResourcegroupsCreate( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroupBase create( @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 kubesubmitV4ResourcegroupsCreate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupsPostRequest' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); @@ -122,8 +122,8 @@ public BckndResourceGroupBase kubesubmitV4ResourcegroupsCreate( @Nonnull final B * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupBase kubesubmitV4ResourcegroupsCreate( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest) throws OpenApiRequestException { - return kubesubmitV4ResourcegroupsCreate(bckndResourceGroupsPostRequest, null); + public BckndResourceGroupBase create( @Nonnull final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest) throws OpenApiRequestException { + return create(bckndResourceGroupsPostRequest, null); } /** @@ -141,12 +141,12 @@ public BckndResourceGroupBase kubesubmitV4ResourcegroupsCreate( @Nonnull final B * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroupDeletionResponse delete( @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 kubesubmitV4ResourcegroupsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling delete"); } // create path and map variables @@ -187,8 +187,8 @@ public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Non * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Nonnull final String resourceGroupId) throws OpenApiRequestException { - return kubesubmitV4ResourcegroupsDelete(resourceGroupId, null); + public BckndResourceGroupDeletionResponse delete( @Nonnull final String resourceGroupId) throws OpenApiRequestException { + return delete(resourceGroupId, null); } /** @@ -206,12 +206,12 @@ public BckndResourceGroupDeletionResponse kubesubmitV4ResourcegroupsDelete( @Non * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String resourceGroupId, @Nullable final String authorization) throws OpenApiRequestException { + public BckndResourceGroup get( @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 kubesubmitV4ResourcegroupsGet"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling get"); } // create path and map variables @@ -252,8 +252,8 @@ public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String r * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String resourceGroupId) throws OpenApiRequestException { - return kubesubmitV4ResourcegroupsGet(resourceGroupId, null); + public BckndResourceGroup get( @Nonnull final String resourceGroupId) throws OpenApiRequestException { + return get(resourceGroupId, null); } /** @@ -280,7 +280,7 @@ public BckndResourceGroup kubesubmitV4ResourcegroupsGet( @Nonnull final String r * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); @@ -324,8 +324,8 @@ public BckndResourceGroupList kubesubmitV4ResourcegroupsGetAll( @Nullable final * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndResourceGroupList kubesubmitV4ResourcegroupsGetAll() throws OpenApiRequestException { - return kubesubmitV4ResourcegroupsGetAll(null, null, null, null, null, null, null); + public BckndResourceGroupList getAll() throws OpenApiRequestException { + return getAll(null, null, null, null, null, null, null); } /** @@ -344,17 +344,17 @@ public BckndResourceGroupList kubesubmitV4ResourcegroupsGetAll() throws OpenApiR * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse kubesubmitV4ResourcegroupsPatch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest, @Nullable final String authorization) throws OpenApiRequestException { + public OpenApiResponse patch( @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 kubesubmitV4ResourcegroupsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'resourceGroupId' when calling patch"); } // verify the required parameter 'bckndResourceGroupPatchRequest' is set if (bckndResourceGroupPatchRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupPatchRequest' when calling kubesubmitV4ResourcegroupsPatch"); + throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupPatchRequest' when calling patch"); } // create path and map variables @@ -399,7 +399,7 @@ public OpenApiResponse kubesubmitV4ResourcegroupsPatch( @Nonnull final String re * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse kubesubmitV4ResourcegroupsPatch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest) throws OpenApiRequestException { - return kubesubmitV4ResourcegroupsPatch(resourceGroupId, bckndResourceGroupPatchRequest, null); + public OpenApiResponse patch( @Nonnull final String resourceGroupId, @Nonnull final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest) throws OpenApiRequestException { + return patch(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 bef4d34f..ee266054 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 kubesubmitV4ResourceQuotaGetApplicationQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse getApplicationQuota( @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 kubesubmitV4ResourceQuotaGetApplicationQ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetApplicationQuota(null, null); + public BckndCommonResourceQuotaResponse getApplicationQuota() throws OpenApiRequestException { + return getApplicationQuota(null, null); } /** @@ -129,7 +129,7 @@ public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndDeploymentResourceQuotaResponse getDeploymentQuota( @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 kubesubmitV4ResourceQuotaGetDeployme * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetDeploymentQuota(null, null); + public BckndDeploymentResourceQuotaResponse getDeploymentQuota() throws OpenApiRequestException { + return getDeploymentQuota(null, null); } /** @@ -184,7 +184,7 @@ public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeployme * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota( @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 kubesubmitV4ResourceQuotaGetDockerRegist * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota(null, null); + public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota() throws OpenApiRequestException { + return getDockerRegistrySecretQuota(null, null); } /** @@ -238,7 +238,7 @@ public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegist * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndExecutableResourceQuotaResponse getExecutableQuota( @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 kubesubmitV4ResourceQuotaGetExecutab * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetExecutableQuota(null, null); + public BckndExecutableResourceQuotaResponse getExecutableQuota() throws OpenApiRequestException { + return getExecutableQuota(null, null); } /** @@ -292,7 +292,7 @@ public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutab * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse getGenericSecretQuota( @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 kubesubmitV4ResourceQuotaGetGenericSecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetGenericSecretQuota(null, null); + public BckndCommonResourceQuotaResponse getGenericSecretQuota() throws OpenApiRequestException { + return getGenericSecretQuota(null, null); } /** @@ -346,7 +346,7 @@ public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecre * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse getRepositoryQuota( @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 kubesubmitV4ResourceQuotaGetRepositoryQu * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetRepositoryQuota(null, null); + public BckndCommonResourceQuotaResponse getRepositoryQuota() throws OpenApiRequestException { + return getRepositoryQuota(null, null); } /** @@ -400,7 +400,7 @@ public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQu * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota( @Nullable final String authorization, @Nullable final Boolean quotaOnly) throws OpenApiRequestException { + public BckndCommonResourceQuotaResponse getResourceGroupQuota( @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 kubesubmitV4ResourceQuotaGetResourceGrou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetResourceGroupQuota(null, null); + public BckndCommonResourceQuotaResponse getResourceGroupQuota() throws OpenApiRequestException { + return getResourceGroupQuota(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 6ab2d68d..badfdf65 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,35 +62,36 @@ public ScenarioApi( @Nonnull final ApiClient apiClient ) } /** - *

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 modelsGet( @Nonnull final String scenarioId, @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiScenario get( @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 modelsGet"); - } - // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling modelsGet"); + 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"); } // 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(); @@ -108,40 +109,39 @@ public AiModelList modelsGet( @Nonnull final String scenarioId, @Nonnull final 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 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 scenarioGet( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { + public AiModelList get_0( @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 scenarioGet"); - } - // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling scenarioGet"); + 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"); } // 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(); @@ -159,7 +159,7 @@ public AiScenario scenarioGet( @Nonnull final String aiResourceGroup, @Nonnull 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 AiScenario scenarioGet( @Nonnull final String aiResourceGroup, @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiScenarioList scenarioQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { + public AiScenarioList query( @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 scenarioQuery"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling query"); } final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios").build().toUriString(); @@ -217,17 +217,17 @@ public AiScenarioList scenarioQuery( @Nonnull final String aiResourceGroup) thro * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiVersionList scenarioQueryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId, @Nullable final List labelSelector) throws OpenApiRequestException { + public AiVersionList queryVersions( @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 scenarioQueryVersions"); + throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling queryVersions"); } // verify the required parameter 'scenarioId' is set if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling scenarioQueryVersions"); + throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling queryVersions"); } // create path and map variables @@ -271,7 +271,7 @@ public AiVersionList scenarioQueryVersions( @Nonnull final String aiResourceGrou * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public AiVersionList scenarioQueryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { - return scenarioQueryVersions(aiResourceGroup, scenarioId, null); + public AiVersionList queryVersions( @Nonnull final String aiResourceGroup, @Nonnull final String scenarioId) throws OpenApiRequestException { + return queryVersions(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 39c8a7ed..648b899d 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 kubesubmitV4GenericSecretsCreate( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public BckndGenericSecretDataResponse create( @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 kubesubmitV4GenericSecretsCreate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPostBody' when calling create"); } final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); @@ -128,8 +128,8 @@ public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsCreate( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsCreate( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody) throws OpenApiRequestException { - return kubesubmitV4GenericSecretsCreate(bckndGenericSecretPostBody, null, null, null); + public BckndGenericSecretDataResponse create( @Nonnull final BckndGenericSecretPostBody bckndGenericSecretPostBody) throws OpenApiRequestException { + return create(bckndGenericSecretPostBody, null, null, null); } /** @@ -151,12 +151,12 @@ public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsCreate( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String secretName, @Nullable final String authorization, @Nullable final String aiResourceGroup, @Nullable final Boolean aiTenantScope) throws OpenApiRequestException { + public OpenApiResponse delete( @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 kubesubmitV4GenericSecretsDelete"); + throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling delete"); } // create path and map variables @@ -202,8 +202,8 @@ public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String s * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String secretName) throws OpenApiRequestException { - return kubesubmitV4GenericSecretsDelete(secretName, null, null, null); + public OpenApiResponse delete( @Nonnull final String secretName) throws OpenApiRequestException { + return delete(secretName, null, null, null); } /** @@ -228,7 +228,7 @@ public OpenApiResponse kubesubmitV4GenericSecretsDelete( @Nonnull final String s * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = null; final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); @@ -272,8 +272,8 @@ public BckndListGenericSecretsResponse kubesubmitV4GenericSecretsGet( @Nullable * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndListGenericSecretsResponse kubesubmitV4GenericSecretsGet() throws OpenApiRequestException { - return kubesubmitV4GenericSecretsGet(null, null, null, null, null, null); + public BckndListGenericSecretsResponse get() throws OpenApiRequestException { + return get(null, null, null, null, null, null); } /** @@ -297,17 +297,17 @@ public BckndListGenericSecretsResponse kubesubmitV4GenericSecretsGet() throws Op * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - 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 { + 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 { final Object localVarPostBody = bckndGenericSecretPatchBody; // verify the required parameter 'secretName' is set if (secretName == null) { - throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling kubesubmitV4GenericSecretsUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'secretName' when calling update"); } // verify the required parameter 'bckndGenericSecretPatchBody' is set if (bckndGenericSecretPatchBody == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPatchBody' when calling kubesubmitV4GenericSecretsUpdate"); + throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPatchBody' when calling update"); } // create path and map variables @@ -356,7 +356,7 @@ public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsUpdate( @Nonnull * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndGenericSecretDataResponse kubesubmitV4GenericSecretsUpdate( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody) throws OpenApiRequestException { - return kubesubmitV4GenericSecretsUpdate(secretName, bckndGenericSecretPatchBody, null, null, null); + public BckndGenericSecretDataResponse update( @Nonnull final String secretName, @Nonnull final BckndGenericSecretPatchBody bckndGenericSecretPatchBody) throws OpenApiRequestException { + return update(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 dea762f8..095e7fa6 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 kubesubmitV4AiservicesGet( @Nonnull final String serviceName, @Nullable final String authorization) throws OpenApiRequestException { + public BckndExtendedService get( @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 kubesubmitV4AiservicesGet"); + throw new OpenApiRequestException("Missing the required parameter 'serviceName' when calling get"); } // create path and map variables @@ -121,8 +121,8 @@ public BckndExtendedService kubesubmitV4AiservicesGet( @Nonnull final String ser * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndExtendedService kubesubmitV4AiservicesGet( @Nonnull final String serviceName) throws OpenApiRequestException { - return kubesubmitV4AiservicesGet(serviceName, null); + public BckndExtendedService get( @Nonnull final String serviceName) throws OpenApiRequestException { + return get(serviceName, null); } /** @@ -137,7 +137,7 @@ public BckndExtendedService kubesubmitV4AiservicesGet( @Nonnull final String ser * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndServiceList kubesubmitV4AiservicesGetAll( @Nullable final String authorization) throws OpenApiRequestException { + public BckndServiceList getAll( @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 kubesubmitV4AiservicesGetAll( @Nullable final String aut * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public BckndServiceList kubesubmitV4AiservicesGetAll() throws OpenApiRequestException { - return kubesubmitV4AiservicesGetAll(null); + public BckndServiceList getAll() throws OpenApiRequestException { + return getAll(null); } }